/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__webpack_require__.d = function(exports, name, getter) {
/******/ 		if(!__webpack_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ 		}
/******/ 	};
/******/
/******/ 	// define __esModule on exports
/******/ 	__webpack_require__.r = function(exports) {
/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 		}
/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
/******/ 	};
/******/
/******/ 	// create a fake namespace object
/******/ 	// mode & 1: value is a module id, require it
/******/ 	// mode & 2: merge all properties of value into the ns
/******/ 	// mode & 4: return value when already ns object
/******/ 	// mode & 8|1: behave like require
/******/ 	__webpack_require__.t = function(value, mode) {
/******/ 		if(mode & 1) value = __webpack_require__(value);
/******/ 		if(mode & 8) return value;
/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ 		var ns = Object.create(null);
/******/ 		__webpack_require__.r(ns);
/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ 		return ns;
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__webpack_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__webpack_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";
/******/
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = 0);
/******/ })
/************************************************************************/
/******/ ({

/***/ "./node_modules/@babel/runtime-corejs2/core-js/array/from.js":
/*!*******************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/core-js/array/from.js ***!
  \*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! core-js/library/fn/array/from */ "./node_modules/core-js/library/fn/array/from.js");

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/core-js/array/is-array.js":
/*!***********************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/core-js/array/is-array.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! core-js/library/fn/array/is-array */ "./node_modules/core-js/library/fn/array/is-array.js");

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/core-js/object/assign.js":
/*!**********************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/core-js/object/assign.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! core-js/library/fn/object/assign */ "./node_modules/core-js/library/fn/object/assign.js");

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/core-js/object/create.js":
/*!**********************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/core-js/object/create.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! core-js/library/fn/object/create */ "./node_modules/core-js/library/fn/object/create.js");

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/core-js/object/define-property.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/core-js/object/define-property.js ***!
  \*******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! core-js/library/fn/object/define-property */ "./node_modules/core-js/library/fn/object/define-property.js");

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/core-js/object/entries.js":
/*!***********************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/core-js/object/entries.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! core-js/library/fn/object/entries */ "./node_modules/core-js/library/fn/object/entries.js");

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/core-js/object/get-own-property-descriptor.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/core-js/object/get-own-property-descriptor.js ***!
  \*******************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! core-js/library/fn/object/get-own-property-descriptor */ "./node_modules/core-js/library/fn/object/get-own-property-descriptor.js");

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/core-js/object/keys.js":
/*!********************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/core-js/object/keys.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! core-js/library/fn/object/keys */ "./node_modules/core-js/library/fn/object/keys.js");

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/core-js/object/values.js":
/*!**********************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/core-js/object/values.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! core-js/library/fn/object/values */ "./node_modules/core-js/library/fn/object/values.js");

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/core-js/parse-int.js":
/*!******************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/core-js/parse-int.js ***!
  \******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! core-js/library/fn/parse-int */ "./node_modules/core-js/library/fn/parse-int.js");

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/helpers/esm/assertThisInitialized.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/helpers/esm/assertThisInitialized.js ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _assertThisInitialized; });
function _assertThisInitialized(self) {
  if (self === void 0) {
    throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  }

  return self;
}

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js":
/*!********************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js ***!
  \********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _extends; });
/* harmony import */ var _core_js_object_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../core-js/object/assign */ "./node_modules/@babel/runtime-corejs2/core-js/object/assign.js");
/* harmony import */ var _core_js_object_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_core_js_object_assign__WEBPACK_IMPORTED_MODULE_0__);

function _extends() {
  _extends = _core_js_object_assign__WEBPACK_IMPORTED_MODULE_0___default.a || 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;
  };

  return _extends.apply(this, arguments);
}

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js":
/*!**************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js ***!
  \**************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _inheritsLoose; });
/* harmony import */ var _core_js_object_create__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../core-js/object/create */ "./node_modules/@babel/runtime-corejs2/core-js/object/create.js");
/* harmony import */ var _core_js_object_create__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_core_js_object_create__WEBPACK_IMPORTED_MODULE_0__);

function _inheritsLoose(subClass, superClass) {
  subClass.prototype = _core_js_object_create__WEBPACK_IMPORTED_MODULE_0___default()(superClass.prototype);
  subClass.prototype.constructor = subClass;
  subClass.__proto__ = superClass;
}

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js ***!
  \*****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _objectWithoutPropertiesLoose; });
/* harmony import */ var _core_js_object_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../core-js/object/keys */ "./node_modules/@babel/runtime-corejs2/core-js/object/keys.js");
/* harmony import */ var _core_js_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_core_js_object_keys__WEBPACK_IMPORTED_MODULE_0__);

function _objectWithoutPropertiesLoose(source, excluded) {
  if (source == null) return {};
  var target = {};

  var sourceKeys = _core_js_object_keys__WEBPACK_IMPORTED_MODULE_0___default()(source);

  var key, i;

  for (i = 0; i < sourceKeys.length; i++) {
    key = sourceKeys[i];
    if (excluded.indexOf(key) >= 0) continue;
    target[key] = source[key];
  }

  return target;
}

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/helpers/extends.js":
/*!****************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/helpers/extends.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var _Object$assign = __webpack_require__(/*! ../core-js/object/assign */ "./node_modules/@babel/runtime-corejs2/core-js/object/assign.js");

function _extends() {
  module.exports = _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;
  };

  return _extends.apply(this, arguments);
}

module.exports = _extends;

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js":
/*!******************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js ***!
  \******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

function _interopRequireDefault(obj) {
  return obj && obj.__esModule ? obj : {
    default: obj
  };
}

module.exports = _interopRequireDefault;

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/helpers/interopRequireWildcard.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/helpers/interopRequireWildcard.js ***!
  \*******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var _Object$getOwnPropertyDescriptor = __webpack_require__(/*! ../core-js/object/get-own-property-descriptor */ "./node_modules/@babel/runtime-corejs2/core-js/object/get-own-property-descriptor.js");

var _Object$defineProperty = __webpack_require__(/*! ../core-js/object/define-property */ "./node_modules/@babel/runtime-corejs2/core-js/object/define-property.js");

function _interopRequireWildcard(obj) {
  if (obj && obj.__esModule) {
    return obj;
  } else {
    var newObj = {};

    if (obj != null) {
      for (var key in obj) {
        if (Object.prototype.hasOwnProperty.call(obj, key)) {
          var desc = _Object$defineProperty && _Object$getOwnPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : {};

          if (desc.get || desc.set) {
            _Object$defineProperty(newObj, key, desc);
          } else {
            newObj[key] = obj[key];
          }
        }
      }
    }

    newObj.default = obj;
    return newObj;
  }
}

module.exports = _interopRequireWildcard;

/***/ }),

/***/ "./node_modules/@babel/runtime/helpers/esm/extends.js":
/*!************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/esm/extends.js ***!
  \************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _extends; });
function _extends() {
  _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;
  };

  return _extends.apply(this, arguments);
}

/***/ }),

/***/ "./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js":
/*!******************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js ***!
  \******************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _inheritsLoose; });
function _inheritsLoose(subClass, superClass) {
  subClass.prototype = Object.create(superClass.prototype);
  subClass.prototype.constructor = subClass;
  subClass.__proto__ = superClass;
}

/***/ }),

/***/ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js ***!
  \*********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _objectWithoutPropertiesLoose; });
function _objectWithoutPropertiesLoose(source, excluded) {
  if (source == null) return {};
  var target = {};
  var sourceKeys = Object.keys(source);
  var key, i;

  for (i = 0; i < sourceKeys.length; i++) {
    key = sourceKeys[i];
    if (excluded.indexOf(key) >= 0) continue;
    target[key] = source[key];
  }

  return target;
}

/***/ }),

/***/ "./node_modules/@babel/runtime/helpers/extends.js":
/*!********************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/extends.js ***!
  \********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

function _extends() {
  module.exports = _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;
  };

  return _extends.apply(this, arguments);
}

module.exports = _extends;

/***/ }),

/***/ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js":
/*!**********************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

function _interopRequireDefault(obj) {
  return obj && obj.__esModule ? obj : {
    default: obj
  };
}

module.exports = _interopRequireDefault;

/***/ }),

/***/ "./node_modules/babel-runtime/core-js/object/assign.js":
/*!*************************************************************!*\
  !*** ./node_modules/babel-runtime/core-js/object/assign.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = { "default": __webpack_require__(/*! core-js/library/fn/object/assign */ "./node_modules/core-js/library/fn/object/assign.js"), __esModule: true };

/***/ }),

/***/ "./node_modules/babel-runtime/core-js/object/create.js":
/*!*************************************************************!*\
  !*** ./node_modules/babel-runtime/core-js/object/create.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = { "default": __webpack_require__(/*! core-js/library/fn/object/create */ "./node_modules/core-js/library/fn/object/create.js"), __esModule: true };

/***/ }),

/***/ "./node_modules/babel-runtime/core-js/object/set-prototype-of.js":
/*!***********************************************************************!*\
  !*** ./node_modules/babel-runtime/core-js/object/set-prototype-of.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = { "default": __webpack_require__(/*! core-js/library/fn/object/set-prototype-of */ "./node_modules/core-js/library/fn/object/set-prototype-of.js"), __esModule: true };

/***/ }),

/***/ "./node_modules/babel-runtime/core-js/symbol.js":
/*!******************************************************!*\
  !*** ./node_modules/babel-runtime/core-js/symbol.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = { "default": __webpack_require__(/*! core-js/library/fn/symbol */ "./node_modules/core-js/library/fn/symbol/index.js"), __esModule: true };

/***/ }),

/***/ "./node_modules/babel-runtime/core-js/symbol/iterator.js":
/*!***************************************************************!*\
  !*** ./node_modules/babel-runtime/core-js/symbol/iterator.js ***!
  \***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = { "default": __webpack_require__(/*! core-js/library/fn/symbol/iterator */ "./node_modules/core-js/library/fn/symbol/iterator.js"), __esModule: true };

/***/ }),

/***/ "./node_modules/babel-runtime/helpers/classCallCheck.js":
/*!**************************************************************!*\
  !*** ./node_modules/babel-runtime/helpers/classCallCheck.js ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

exports.default = function (instance, Constructor) {
  if (!(instance instanceof Constructor)) {
    throw new TypeError("Cannot call a class as a function");
  }
};

/***/ }),

/***/ "./node_modules/babel-runtime/helpers/extends.js":
/*!*******************************************************!*\
  !*** ./node_modules/babel-runtime/helpers/extends.js ***!
  \*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _assign = __webpack_require__(/*! ../core-js/object/assign */ "./node_modules/babel-runtime/core-js/object/assign.js");

var _assign2 = _interopRequireDefault(_assign);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = _assign2.default || 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;
};

/***/ }),

/***/ "./node_modules/babel-runtime/helpers/inherits.js":
/*!********************************************************!*\
  !*** ./node_modules/babel-runtime/helpers/inherits.js ***!
  \********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _setPrototypeOf = __webpack_require__(/*! ../core-js/object/set-prototype-of */ "./node_modules/babel-runtime/core-js/object/set-prototype-of.js");

var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);

var _create = __webpack_require__(/*! ../core-js/object/create */ "./node_modules/babel-runtime/core-js/object/create.js");

var _create2 = _interopRequireDefault(_create);

var _typeof2 = __webpack_require__(/*! ../helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");

var _typeof3 = _interopRequireDefault(_typeof2);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = function (subClass, superClass) {
  if (typeof superClass !== "function" && superClass !== null) {
    throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : (0, _typeof3.default)(superClass)));
  }

  subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {
    constructor: {
      value: subClass,
      enumerable: false,
      writable: true,
      configurable: true
    }
  });
  if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;
};

/***/ }),

/***/ "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js":
/*!*************************************************************************!*\
  !*** ./node_modules/babel-runtime/helpers/possibleConstructorReturn.js ***!
  \*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _typeof2 = __webpack_require__(/*! ../helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");

var _typeof3 = _interopRequireDefault(_typeof2);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = function (self, call) {
  if (!self) {
    throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  }

  return call && ((typeof call === "undefined" ? "undefined" : (0, _typeof3.default)(call)) === "object" || typeof call === "function") ? call : self;
};

/***/ }),

/***/ "./node_modules/babel-runtime/helpers/typeof.js":
/*!******************************************************!*\
  !*** ./node_modules/babel-runtime/helpers/typeof.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _iterator = __webpack_require__(/*! ../core-js/symbol/iterator */ "./node_modules/babel-runtime/core-js/symbol/iterator.js");

var _iterator2 = _interopRequireDefault(_iterator);

var _symbol = __webpack_require__(/*! ../core-js/symbol */ "./node_modules/babel-runtime/core-js/symbol.js");

var _symbol2 = _interopRequireDefault(_symbol);

var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; };

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) {
  return typeof obj === "undefined" ? "undefined" : _typeof(obj);
} : function (obj) {
  return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj);
};

/***/ }),

/***/ "./node_modules/bootstrap-slider-without-jquery/dist/bootstrap-slider.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/bootstrap-slider-without-jquery/dist/bootstrap-slider.js ***!
  \*******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(module) {/*! =======================================================
                      VERSION  10.0.0
========================================================= */


var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };

/*! =========================================================
 * bootstrap-slider.js
 *
 * Maintainers:
 *		Kyle Kemp
 *			- Twitter: @seiyria
 *			- Github:  seiyria
 *		Rohit Kalkur
 *			- Twitter: @Rovolutionary
 *			- Github:  rovolution
 *
 * =========================================================
 *
 * bootstrap-slider is released under the MIT License
 * Copyright (c) 2017 Kyle Kemp, Rohit Kalkur, and contributors
 *
 * Permission is hereby granted, free of charge, to any person
 * obtaining a copy of this software and associated documentation
 * files (the "Software"), to deal in the Software without
 * restriction, including without limitation the rights to use,
 * copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following
 * conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 *
 * ========================================================= */

/**
 * Bridget makes jQuery widgets
 * v1.0.1
 * MIT license
 */
var windowIsDefined = (typeof window === "undefined" ? "undefined" : _typeof(window)) === "object";

(function (factory) {
	var jQuery = null;
	if (( false ? undefined : _typeof(module)) === "object" && module.exports) {
		module.exports = factory(jQuery);
	}
})(function ($) {
	// Constants
	var NAMESPACE_MAIN = 'slider';
	var NAMESPACE_ALTERNATE = 'bootstrapSlider';

	// Polyfill console methods
	if (windowIsDefined && !window.console) {
		window.console = {};
	}
	if (windowIsDefined && !window.console.log) {
		window.console.log = function () {};
	}
	if (windowIsDefined && !window.console.warn) {
		window.console.warn = function () {};
	}

	// Reference to Slider constructor
	var Slider;

	(function ($) {

		'use strict';

		// -------------------------- utils -------------------------- //

		var slice = Array.prototype.slice;

		function noop() {}

		// -------------------------- definition -------------------------- //

		function defineBridget($) {

			// bail if no jQuery
			if (!$) {
				return;
			}

			// -------------------------- addOptionMethod -------------------------- //

			/**
    * adds option method -> $().plugin('option', {...})
    * @param {Function} PluginClass - constructor class
    */
			function addOptionMethod(PluginClass) {
				// don't overwrite original option method
				if (PluginClass.prototype.option) {
					return;
				}

				// option setter
				PluginClass.prototype.option = function (opts) {
					// bail out if not an object
					if (!$.isPlainObject(opts)) {
						return;
					}
					this.options = $.extend(true, this.options, opts);
				};
			}

			// -------------------------- plugin bridge -------------------------- //

			// helper function for logging errors
			// $.error breaks jQuery chaining
			var logError = typeof console === 'undefined' ? noop : function (message) {
				console.error(message);
			};

			/**
    * jQuery plugin bridge, access methods like $elem.plugin('method')
    * @param {String} namespace - plugin name
    * @param {Function} PluginClass - constructor class
    */
			function bridge(namespace, PluginClass) {
				// add to jQuery fn namespace
				$.fn[namespace] = function (options) {
					if (typeof options === 'string') {
						// call plugin method when first argument is a string
						// get arguments for method
						var args = slice.call(arguments, 1);

						for (var i = 0, len = this.length; i < len; i++) {
							var elem = this[i];
							var instance = $.data(elem, namespace);
							if (!instance) {
								logError("cannot call methods on " + namespace + " prior to initialization; " + "attempted to call '" + options + "'");
								continue;
							}
							if (!$.isFunction(instance[options]) || options.charAt(0) === '_') {
								logError("no such method '" + options + "' for " + namespace + " instance");
								continue;
							}

							// trigger method with arguments
							var returnValue = instance[options].apply(instance, args);

							// break look and return first value if provided
							if (returnValue !== undefined && returnValue !== instance) {
								return returnValue;
							}
						}
						// return this if no return value
						return this;
					} else {
						var objects = this.map(function () {
							var instance = $.data(this, namespace);
							if (instance) {
								// apply options & init
								instance.option(options);
								instance._init();
							} else {
								// initialize new instance
								instance = new PluginClass(this, options);
								$.data(this, namespace, instance);
							}
							return $(this);
						});

						if (!objects || objects.length > 1) {
							return objects;
						} else {
							return objects[0];
						}
					}
				};
			}

			// -------------------------- bridget -------------------------- //

			/**
    * converts a Prototypical class into a proper jQuery plugin
    *   the class must have a ._init method
    * @param {String} namespace - plugin name, used in $().pluginName
    * @param {Function} PluginClass - constructor class
    */
			$.bridget = function (namespace, PluginClass) {
				addOptionMethod(PluginClass);
				bridge(namespace, PluginClass);
			};

			return $.bridget;
		}

		// get jquery from browser global
		defineBridget($);
	})($);

	/*************************************************
 			BOOTSTRAP-SLIDER SOURCE CODE
 	**************************************************/

	(function ($) {

		var ErrorMsgs = {
			formatInvalidInputErrorMsg: function formatInvalidInputErrorMsg(input) {
				return "Invalid input value '" + input + "' passed in";
			},
			callingContextNotSliderInstance: "Calling context element does not have instance of Slider bound to it. Check your code to make sure the JQuery object returned from the call to the slider() initializer is calling the method"
		};

		var SliderScale = {
			linear: {
				toValue: function toValue(percentage) {
					var rawValue = percentage / 100 * (this.options.max - this.options.min);
					var shouldAdjustWithBase = true;
					if (this.options.ticks_positions.length > 0) {
						var minv,
						    maxv,
						    minp,
						    maxp = 0;
						for (var i = 1; i < this.options.ticks_positions.length; i++) {
							if (percentage <= this.options.ticks_positions[i]) {
								minv = this.options.ticks[i - 1];
								minp = this.options.ticks_positions[i - 1];
								maxv = this.options.ticks[i];
								maxp = this.options.ticks_positions[i];

								break;
							}
						}
						var partialPercentage = (percentage - minp) / (maxp - minp);
						rawValue = minv + partialPercentage * (maxv - minv);
						shouldAdjustWithBase = false;
					}

					var adjustment = shouldAdjustWithBase ? this.options.min : 0;
					var value = adjustment + Math.round(rawValue / this.options.step) * this.options.step;
					if (value < this.options.min) {
						return this.options.min;
					} else if (value > this.options.max) {
						return this.options.max;
					} else {
						return value;
					}
				},
				toPercentage: function toPercentage(value) {
					if (this.options.max === this.options.min) {
						return 0;
					}

					if (this.options.ticks_positions.length > 0) {
						var minv,
						    maxv,
						    minp,
						    maxp = 0;
						for (var i = 0; i < this.options.ticks.length; i++) {
							if (value <= this.options.ticks[i]) {
								minv = i > 0 ? this.options.ticks[i - 1] : 0;
								minp = i > 0 ? this.options.ticks_positions[i - 1] : 0;
								maxv = this.options.ticks[i];
								maxp = this.options.ticks_positions[i];

								break;
							}
						}
						if (i > 0) {
							var partialPercentage = (value - minv) / (maxv - minv);
							return minp + partialPercentage * (maxp - minp);
						}
					}

					return 100 * (value - this.options.min) / (this.options.max - this.options.min);
				}
			},

			logarithmic: {
				/* Based on http://stackoverflow.com/questions/846221/logarithmic-slider */
				toValue: function toValue(percentage) {
					var min = this.options.min === 0 ? 0 : Math.log(this.options.min);
					var max = Math.log(this.options.max);
					var value = Math.exp(min + (max - min) * percentage / 100);
					if (Math.round(value) === this.options.max) {
						return this.options.max;
					}
					value = this.options.min + Math.round((value - this.options.min) / this.options.step) * this.options.step;
					/* Rounding to the nearest step could exceed the min or
      * max, so clip to those values. */
					if (value < this.options.min) {
						return this.options.min;
					} else if (value > this.options.max) {
						return this.options.max;
					} else {
						return value;
					}
				},
				toPercentage: function toPercentage(value) {
					if (this.options.max === this.options.min) {
						return 0;
					} else {
						var max = Math.log(this.options.max);
						var min = this.options.min === 0 ? 0 : Math.log(this.options.min);
						var v = value === 0 ? 0 : Math.log(value);
						return 100 * (v - min) / (max - min);
					}
				}
			}
		};

		/*************************************************
  						CONSTRUCTOR
  	**************************************************/
		Slider = function Slider(element, options) {
			createNewSlider.call(this, element, options);
			return this;
		};

		function createNewSlider(element, options) {

			/*
   	The internal state object is used to store data about the current 'state' of slider.
   	This includes values such as the `value`, `enabled`, etc...
   */
			this._state = {
				value: null,
				enabled: null,
				offset: null,
				size: null,
				percentage: null,
				inDrag: false,
				over: false
			};

			// The objects used to store the reference to the tick methods if ticks_tooltip is on
			this.ticksCallbackMap = {};
			this.handleCallbackMap = {};

			if (typeof element === "string") {
				this.element = document.querySelector(element);
			} else if (element instanceof HTMLElement) {
				this.element = element;
			}

			/*************************************************
   					Process Options
   	**************************************************/
			options = options ? options : {};
			var optionTypes = Object.keys(this.defaultOptions);

			for (var i = 0; i < optionTypes.length; i++) {
				var optName = optionTypes[i];

				// First check if an option was passed in via the constructor
				var val = options[optName];
				// If no data attrib, then check data atrributes
				val = typeof val !== 'undefined' ? val : getDataAttrib(this.element, optName);
				// Finally, if nothing was specified, use the defaults
				val = val !== null ? val : this.defaultOptions[optName];

				// Set all options on the instance of the Slider
				if (!this.options) {
					this.options = {};
				}
				this.options[optName] = val;
			}

			// Check options.rtl
			if (this.options.rtl === 'auto') {
				this.options.rtl = window.getComputedStyle(this.element).direction === 'rtl';
			}

			/*
   	Validate `tooltip_position` against 'orientation`
   	- if `tooltip_position` is incompatible with orientation, swith it to a default compatible with specified `orientation`
   		-- default for "vertical" -> "right", "left" if rtl
   		-- default for "horizontal" -> "top"
   */
			if (this.options.orientation === "vertical" && (this.options.tooltip_position === "top" || this.options.tooltip_position === "bottom")) {
				if (this.options.rtl) {
					this.options.tooltip_position = "left";
				} else {
					this.options.tooltip_position = "right";
				}
			} else if (this.options.orientation === "horizontal" && (this.options.tooltip_position === "left" || this.options.tooltip_position === "right")) {

				this.options.tooltip_position = "top";
			}

			function getDataAttrib(element, optName) {
				var dataName = "data-slider-" + optName.replace(/_/g, '-');
				var dataValString = element.getAttribute(dataName);

				try {
					return JSON.parse(dataValString);
				} catch (err) {
					return dataValString;
				}
			}

			/*************************************************
   					Create Markup
   	**************************************************/

			var origWidth = this.element.style.width;
			var updateSlider = false;
			var parent = this.element.parentNode;
			var sliderTrackSelection;
			var sliderTrackLow, sliderTrackHigh;
			var sliderMinHandle;
			var sliderMaxHandle;

			if (this.sliderElem) {
				updateSlider = true;
			} else {
				/* Create elements needed for slider */
				this.sliderElem = document.createElement("div");
				this.sliderElem.className = "slider";

				/* Create slider track elements */
				var sliderTrack = document.createElement("div");
				sliderTrack.className = "slider-track";

				sliderTrackLow = document.createElement("div");
				sliderTrackLow.className = "slider-track-low";

				sliderTrackSelection = document.createElement("div");
				sliderTrackSelection.className = "slider-selection";

				sliderTrackHigh = document.createElement("div");
				sliderTrackHigh.className = "slider-track-high";

				sliderMinHandle = document.createElement("div");
				sliderMinHandle.className = "slider-handle min-slider-handle";
				sliderMinHandle.setAttribute('role', 'slider');
				sliderMinHandle.setAttribute('aria-valuemin', this.options.min);
				sliderMinHandle.setAttribute('aria-valuemax', this.options.max);

				sliderMaxHandle = document.createElement("div");
				sliderMaxHandle.className = "slider-handle max-slider-handle";
				sliderMaxHandle.setAttribute('role', 'slider');
				sliderMaxHandle.setAttribute('aria-valuemin', this.options.min);
				sliderMaxHandle.setAttribute('aria-valuemax', this.options.max);

				sliderTrack.appendChild(sliderTrackLow);
				sliderTrack.appendChild(sliderTrackSelection);
				sliderTrack.appendChild(sliderTrackHigh);

				/* Create highlight range elements */
				this.rangeHighlightElements = [];
				var rangeHighlightsOpts = this.options.rangeHighlights;
				if (Array.isArray(rangeHighlightsOpts) && rangeHighlightsOpts.length > 0) {
					for (var j = 0; j < rangeHighlightsOpts.length; j++) {
						var rangeHighlightElement = document.createElement("div");
						var customClassString = rangeHighlightsOpts[j].class || "";
						rangeHighlightElement.className = "slider-rangeHighlight slider-selection " + customClassString;
						this.rangeHighlightElements.push(rangeHighlightElement);
						sliderTrack.appendChild(rangeHighlightElement);
					}
				}

				/* Add aria-labelledby to handle's */
				var isLabelledbyArray = Array.isArray(this.options.labelledby);
				if (isLabelledbyArray && this.options.labelledby[0]) {
					sliderMinHandle.setAttribute('aria-labelledby', this.options.labelledby[0]);
				}
				if (isLabelledbyArray && this.options.labelledby[1]) {
					sliderMaxHandle.setAttribute('aria-labelledby', this.options.labelledby[1]);
				}
				if (!isLabelledbyArray && this.options.labelledby) {
					sliderMinHandle.setAttribute('aria-labelledby', this.options.labelledby);
					sliderMaxHandle.setAttribute('aria-labelledby', this.options.labelledby);
				}

				/* Create ticks */
				this.ticks = [];
				if (Array.isArray(this.options.ticks) && this.options.ticks.length > 0) {
					this.ticksContainer = document.createElement('div');
					this.ticksContainer.className = 'slider-tick-container';

					for (i = 0; i < this.options.ticks.length; i++) {
						var tick = document.createElement('div');
						tick.className = 'slider-tick';
						if (this.options.ticks_tooltip) {
							var tickListenerReference = this._addTickListener();
							var enterCallback = tickListenerReference.addMouseEnter(this, tick, i);
							var leaveCallback = tickListenerReference.addMouseLeave(this, tick);

							this.ticksCallbackMap[i] = {
								mouseEnter: enterCallback,
								mouseLeave: leaveCallback
							};
						}
						this.ticks.push(tick);
						this.ticksContainer.appendChild(tick);
					}

					sliderTrackSelection.className += " tick-slider-selection";
				}

				this.tickLabels = [];
				if (Array.isArray(this.options.ticks_labels) && this.options.ticks_labels.length > 0) {
					this.tickLabelContainer = document.createElement('div');
					this.tickLabelContainer.className = 'slider-tick-label-container';

					for (i = 0; i < this.options.ticks_labels.length; i++) {
						var label = document.createElement('div');
						var noTickPositionsSpecified = this.options.ticks_positions.length === 0;
						var tickLabelsIndex = this.options.reversed && noTickPositionsSpecified ? this.options.ticks_labels.length - (i + 1) : i;
						label.className = 'slider-tick-label';
						label.innerHTML = this.options.ticks_labels[tickLabelsIndex];

						this.tickLabels.push(label);
						this.tickLabelContainer.appendChild(label);
					}
				}

				var createAndAppendTooltipSubElements = function createAndAppendTooltipSubElements(tooltipElem) {
					var arrow = document.createElement("div");
					arrow.className = "tooltip-arrow";

					var inner = document.createElement("div");
					inner.className = "tooltip-inner";

					tooltipElem.appendChild(arrow);
					tooltipElem.appendChild(inner);
				};

				/* Create tooltip elements */
				var sliderTooltip = document.createElement("div");
				sliderTooltip.className = "tooltip tooltip-main";
				sliderTooltip.setAttribute('role', 'presentation');
				createAndAppendTooltipSubElements(sliderTooltip);

				var sliderTooltipMin = document.createElement("div");
				sliderTooltipMin.className = "tooltip tooltip-min";
				sliderTooltipMin.setAttribute('role', 'presentation');
				createAndAppendTooltipSubElements(sliderTooltipMin);

				var sliderTooltipMax = document.createElement("div");
				sliderTooltipMax.className = "tooltip tooltip-max";
				sliderTooltipMax.setAttribute('role', 'presentation');
				createAndAppendTooltipSubElements(sliderTooltipMax);

				/* Append components to sliderElem */
				this.sliderElem.appendChild(sliderTrack);
				this.sliderElem.appendChild(sliderTooltip);
				this.sliderElem.appendChild(sliderTooltipMin);
				this.sliderElem.appendChild(sliderTooltipMax);

				if (this.tickLabelContainer) {
					this.sliderElem.appendChild(this.tickLabelContainer);
				}
				if (this.ticksContainer) {
					this.sliderElem.appendChild(this.ticksContainer);
				}

				this.sliderElem.appendChild(sliderMinHandle);
				this.sliderElem.appendChild(sliderMaxHandle);

				/* Append slider element to parent container, right before the original <input> element */
				parent.insertBefore(this.sliderElem, this.element);

				/* Hide original <input> element */
				this.element.style.display = "none";
			}
			/* If JQuery exists, cache JQ references */
			if ($) {
				this.$element = $(this.element);
				this.$sliderElem = $(this.sliderElem);
			}

			/*************************************************
   						Setup
   	**************************************************/
			this.eventToCallbackMap = {};
			this.sliderElem.id = this.options.id;

			this.touchCapable = 'ontouchstart' in window || window.DocumentTouch && document instanceof window.DocumentTouch;

			this.touchX = 0;
			this.touchY = 0;

			this.tooltip = this.sliderElem.querySelector('.tooltip-main');
			this.tooltipInner = this.tooltip.querySelector('.tooltip-inner');

			this.tooltip_min = this.sliderElem.querySelector('.tooltip-min');
			this.tooltipInner_min = this.tooltip_min.querySelector('.tooltip-inner');

			this.tooltip_max = this.sliderElem.querySelector('.tooltip-max');
			this.tooltipInner_max = this.tooltip_max.querySelector('.tooltip-inner');

			if (SliderScale[this.options.scale]) {
				this.options.scale = SliderScale[this.options.scale];
			}

			if (updateSlider === true) {
				// Reset classes
				this._removeClass(this.sliderElem, 'slider-horizontal');
				this._removeClass(this.sliderElem, 'slider-vertical');
				this._removeClass(this.sliderElem, 'slider-rtl');
				this._removeClass(this.tooltip, 'hide');
				this._removeClass(this.tooltip_min, 'hide');
				this._removeClass(this.tooltip_max, 'hide');

				// Undo existing inline styles for track
				["left", "right", "top", "width", "height"].forEach(function (prop) {
					this._removeProperty(this.trackLow, prop);
					this._removeProperty(this.trackSelection, prop);
					this._removeProperty(this.trackHigh, prop);
				}, this);

				// Undo inline styles on handles
				[this.handle1, this.handle2].forEach(function (handle) {
					this._removeProperty(handle, 'left');
					this._removeProperty(handle, 'right');
					this._removeProperty(handle, 'top');
				}, this);

				// Undo inline styles and classes on tooltips
				[this.tooltip, this.tooltip_min, this.tooltip_max].forEach(function (tooltip) {
					this._removeProperty(tooltip, 'left');
					this._removeProperty(tooltip, 'right');
					this._removeProperty(tooltip, 'top');

					this._removeClass(tooltip, 'right');
					this._removeClass(tooltip, 'left');
					this._removeClass(tooltip, 'top');
				}, this);
			}

			if (this.options.orientation === 'vertical') {
				this._addClass(this.sliderElem, 'slider-vertical');
				this.stylePos = 'top';
				this.mousePos = 'pageY';
				this.sizePos = 'offsetHeight';
			} else {
				this._addClass(this.sliderElem, 'slider-horizontal');
				this.sliderElem.style.width = origWidth;
				this.options.orientation = 'horizontal';
				if (this.options.rtl) {
					this.stylePos = 'right';
				} else {
					this.stylePos = 'left';
				}
				this.mousePos = 'pageX';
				this.sizePos = 'offsetWidth';
			}
			// specific rtl class
			if (this.options.rtl) {
				this._addClass(this.sliderElem, 'slider-rtl');
			}
			this._setTooltipPosition();
			/* In case ticks are specified, overwrite the min and max bounds */
			if (Array.isArray(this.options.ticks) && this.options.ticks.length > 0) {
				this.options.max = Math.max.apply(Math, this.options.ticks);
				this.options.min = Math.min.apply(Math, this.options.ticks);
			}

			if (Array.isArray(this.options.value)) {
				this.options.range = true;
				this._state.value = this.options.value;
			} else if (this.options.range) {
				// User wants a range, but value is not an array
				this._state.value = [this.options.value, this.options.max];
			} else {
				this._state.value = this.options.value;
			}

			this.trackLow = sliderTrackLow || this.trackLow;
			this.trackSelection = sliderTrackSelection || this.trackSelection;
			this.trackHigh = sliderTrackHigh || this.trackHigh;

			if (this.options.selection === 'none') {
				this._addClass(this.trackLow, 'hide');
				this._addClass(this.trackSelection, 'hide');
				this._addClass(this.trackHigh, 'hide');
			} else if (this.options.selection === 'after' || this.options.selection === 'before') {
				this._removeClass(this.trackLow, 'hide');
				this._removeClass(this.trackSelection, 'hide');
				this._removeClass(this.trackHigh, 'hide');
			}

			this.handle1 = sliderMinHandle || this.handle1;
			this.handle2 = sliderMaxHandle || this.handle2;

			if (updateSlider === true) {
				// Reset classes
				this._removeClass(this.handle1, 'round triangle');
				this._removeClass(this.handle2, 'round triangle hide');

				for (i = 0; i < this.ticks.length; i++) {
					this._removeClass(this.ticks[i], 'round triangle hide');
				}
			}

			var availableHandleModifiers = ['round', 'triangle', 'custom'];
			var isValidHandleType = availableHandleModifiers.indexOf(this.options.handle) !== -1;
			if (isValidHandleType) {
				this._addClass(this.handle1, this.options.handle);
				this._addClass(this.handle2, this.options.handle);

				for (i = 0; i < this.ticks.length; i++) {
					this._addClass(this.ticks[i], this.options.handle);
				}
			}

			this._state.offset = this._offset(this.sliderElem);
			this._state.size = this.sliderElem[this.sizePos];
			this.setValue(this._state.value);

			/******************************************
   				Bind Event Listeners
   	******************************************/

			// Bind keyboard handlers
			this.handle1Keydown = this._keydown.bind(this, 0);
			this.handle1.addEventListener("keydown", this.handle1Keydown, false);

			this.handle2Keydown = this._keydown.bind(this, 1);
			this.handle2.addEventListener("keydown", this.handle2Keydown, false);

			this.mousedown = this._mousedown.bind(this);
			this.touchstart = this._touchstart.bind(this);
			this.touchmove = this._touchmove.bind(this);

			if (this.touchCapable) {
				// Test for passive event support
				var supportsPassive = false;
				try {
					var opts = Object.defineProperty({}, 'passive', {
						get: function get() {
							supportsPassive = true;
						}
					});
					window.addEventListener("test", null, opts);
				} catch (e) {}
				// Use our detect's results. passive applied if supported, capture will be false either way.
				var eventOptions = supportsPassive ? { passive: true } : false;
				// Bind touch handlers
				this.sliderElem.addEventListener("touchstart", this.touchstart, eventOptions);
				this.sliderElem.addEventListener("touchmove", this.touchmove, eventOptions);
			}
			this.sliderElem.addEventListener("mousedown", this.mousedown, false);

			// Bind window handlers
			this.resize = this._resize.bind(this);
			window.addEventListener("resize", this.resize, false);

			// Bind tooltip-related handlers
			if (this.options.tooltip === 'hide') {
				this._addClass(this.tooltip, 'hide');
				this._addClass(this.tooltip_min, 'hide');
				this._addClass(this.tooltip_max, 'hide');
			} else if (this.options.tooltip === 'always') {
				this._showTooltip();
				this._alwaysShowTooltip = true;
			} else {
				this.showTooltip = this._showTooltip.bind(this);
				this.hideTooltip = this._hideTooltip.bind(this);

				if (this.options.ticks_tooltip) {
					var callbackHandle = this._addTickListener();
					//create handle1 listeners and store references in map
					var mouseEnter = callbackHandle.addMouseEnter(this, this.handle1);
					var mouseLeave = callbackHandle.addMouseLeave(this, this.handle1);
					this.handleCallbackMap.handle1 = {
						mouseEnter: mouseEnter,
						mouseLeave: mouseLeave
					};
					//create handle2 listeners and store references in map
					mouseEnter = callbackHandle.addMouseEnter(this, this.handle2);
					mouseLeave = callbackHandle.addMouseLeave(this, this.handle2);
					this.handleCallbackMap.handle2 = {
						mouseEnter: mouseEnter,
						mouseLeave: mouseLeave
					};
				} else {
					this.sliderElem.addEventListener("mouseenter", this.showTooltip, false);
					this.sliderElem.addEventListener("mouseleave", this.hideTooltip, false);
				}

				this.handle1.addEventListener("focus", this.showTooltip, false);
				this.handle1.addEventListener("blur", this.hideTooltip, false);

				this.handle2.addEventListener("focus", this.showTooltip, false);
				this.handle2.addEventListener("blur", this.hideTooltip, false);
			}

			if (this.options.enabled) {
				this.enable();
			} else {
				this.disable();
			}
		}

		/*************************************************
  				INSTANCE PROPERTIES/METHODS
  	- Any methods bound to the prototype are considered
  part of the plugin's `public` interface
  	**************************************************/
		Slider.prototype = {
			_init: function _init() {}, // NOTE: Must exist to support bridget

			constructor: Slider,

			defaultOptions: {
				id: "",
				min: 0,
				max: 10,
				step: 1,
				precision: 0,
				orientation: 'horizontal',
				value: 5,
				range: false,
				selection: 'before',
				tooltip: 'show',
				tooltip_split: false,
				handle: 'round',
				reversed: false,
				rtl: 'auto',
				enabled: true,
				formatter: function formatter(val) {
					if (Array.isArray(val)) {
						return val[0] + " : " + val[1];
					} else {
						return val;
					}
				},
				natural_arrow_keys: false,
				ticks: [],
				ticks_positions: [],
				ticks_labels: [],
				ticks_snap_bounds: 0,
				ticks_tooltip: false,
				scale: 'linear',
				focus: false,
				tooltip_position: null,
				labelledby: null,
				rangeHighlights: []
			},

			getElement: function getElement() {
				return this.sliderElem;
			},

			getValue: function getValue() {
				if (this.options.range) {
					return this._state.value;
				} else {
					return this._state.value[0];
				}
			},

			setValue: function setValue(val, triggerSlideEvent, triggerChangeEvent) {
				if (!val) {
					val = 0;
				}
				var oldValue = this.getValue();
				this._state.value = this._validateInputValue(val);
				var applyPrecision = this._applyPrecision.bind(this);

				if (this.options.range) {
					this._state.value[0] = applyPrecision(this._state.value[0]);
					this._state.value[1] = applyPrecision(this._state.value[1]);

					this._state.value[0] = Math.max(this.options.min, Math.min(this.options.max, this._state.value[0]));
					this._state.value[1] = Math.max(this.options.min, Math.min(this.options.max, this._state.value[1]));
				} else {
					this._state.value = applyPrecision(this._state.value);
					this._state.value = [Math.max(this.options.min, Math.min(this.options.max, this._state.value))];
					this._addClass(this.handle2, 'hide');
					if (this.options.selection === 'after') {
						this._state.value[1] = this.options.max;
					} else {
						this._state.value[1] = this.options.min;
					}
				}

				if (this.options.max > this.options.min) {
					this._state.percentage = [this._toPercentage(this._state.value[0]), this._toPercentage(this._state.value[1]), this.options.step * 100 / (this.options.max - this.options.min)];
				} else {
					this._state.percentage = [0, 0, 100];
				}

				this._layout();
				var newValue = this.options.range ? this._state.value : this._state.value[0];

				this._setDataVal(newValue);
				if (triggerSlideEvent === true) {
					this._trigger('slide', newValue);
				}
				if (oldValue !== newValue && triggerChangeEvent === true) {
					this._trigger('change', {
						oldValue: oldValue,
						newValue: newValue
					});
				}

				return this;
			},

			destroy: function destroy() {
				// Remove event handlers on slider elements
				this._removeSliderEventHandlers();

				// Remove the slider from the DOM
				this.sliderElem.parentNode.removeChild(this.sliderElem);
				/* Show original <input> element */
				this.element.style.display = "";

				// Clear out custom event bindings
				this._cleanUpEventCallbacksMap();

				// Remove data values
				this.element.removeAttribute("data");

				// Remove JQuery handlers/data
				if ($) {
					this._unbindJQueryEventHandlers();
					this.$element.removeData('slider');
				}
			},

			disable: function disable() {
				this._state.enabled = false;
				this.handle1.removeAttribute("tabindex");
				this.handle2.removeAttribute("tabindex");
				this._addClass(this.sliderElem, 'slider-disabled');
				this._trigger('slideDisabled');

				return this;
			},

			enable: function enable() {
				this._state.enabled = true;
				this.handle1.setAttribute("tabindex", 0);
				this.handle2.setAttribute("tabindex", 0);
				this._removeClass(this.sliderElem, 'slider-disabled');
				this._trigger('slideEnabled');

				return this;
			},

			toggle: function toggle() {
				if (this._state.enabled) {
					this.disable();
				} else {
					this.enable();
				}
				return this;
			},

			isEnabled: function isEnabled() {
				return this._state.enabled;
			},

			on: function on(evt, callback) {
				this._bindNonQueryEventHandler(evt, callback);
				return this;
			},

			off: function off(evt, callback) {
				if ($) {
					this.$element.off(evt, callback);
					this.$sliderElem.off(evt, callback);
				} else {
					this._unbindNonQueryEventHandler(evt, callback);
				}
			},

			getAttribute: function getAttribute(attribute) {
				if (attribute) {
					return this.options[attribute];
				} else {
					return this.options;
				}
			},

			setAttribute: function setAttribute(attribute, value) {
				this.options[attribute] = value;
				return this;
			},

			refresh: function refresh() {
				this._removeSliderEventHandlers();
				createNewSlider.call(this, this.element, this.options);
				if ($) {
					// Bind new instance of slider to the element
					$.data(this.element, 'slider', this);
				}
				return this;
			},

			relayout: function relayout() {
				this._resize();
				this._layout();
				return this;
			},

			/******************************+
   				HELPERS
   	- Any method that is not part of the public interface.
   - Place it underneath this comment block and write its signature like so:
   		_fnName : function() {...}
   	********************************/
			_removeSliderEventHandlers: function _removeSliderEventHandlers() {
				// Remove keydown event listeners
				this.handle1.removeEventListener("keydown", this.handle1Keydown, false);
				this.handle2.removeEventListener("keydown", this.handle2Keydown, false);

				//remove the listeners from the ticks and handles if they had their own listeners
				if (this.options.ticks_tooltip) {
					var ticks = this.ticksContainer.getElementsByClassName('slider-tick');
					for (var i = 0; i < ticks.length; i++) {
						ticks[i].removeEventListener('mouseenter', this.ticksCallbackMap[i].mouseEnter, false);
						ticks[i].removeEventListener('mouseleave', this.ticksCallbackMap[i].mouseLeave, false);
					}
					this.handle1.removeEventListener('mouseenter', this.handleCallbackMap.handle1.mouseEnter, false);
					this.handle2.removeEventListener('mouseenter', this.handleCallbackMap.handle2.mouseEnter, false);
					this.handle1.removeEventListener('mouseleave', this.handleCallbackMap.handle1.mouseLeave, false);
					this.handle2.removeEventListener('mouseleave', this.handleCallbackMap.handle2.mouseLeave, false);
				}

				this.handleCallbackMap = null;
				this.ticksCallbackMap = null;

				if (this.showTooltip) {
					this.handle1.removeEventListener("focus", this.showTooltip, false);
					this.handle2.removeEventListener("focus", this.showTooltip, false);
				}
				if (this.hideTooltip) {
					this.handle1.removeEventListener("blur", this.hideTooltip, false);
					this.handle2.removeEventListener("blur", this.hideTooltip, false);
				}

				// Remove event listeners from sliderElem
				if (this.showTooltip) {
					this.sliderElem.removeEventListener("mouseenter", this.showTooltip, false);
				}
				if (this.hideTooltip) {
					this.sliderElem.removeEventListener("mouseleave", this.hideTooltip, false);
				}
				this.sliderElem.removeEventListener("touchstart", this.touchstart, false);
				this.sliderElem.removeEventListener("touchmove", this.touchmove, false);
				this.sliderElem.removeEventListener("mousedown", this.mousedown, false);

				// Remove window event listener
				window.removeEventListener("resize", this.resize, false);
			},
			_bindNonQueryEventHandler: function _bindNonQueryEventHandler(evt, callback) {
				if (this.eventToCallbackMap[evt] === undefined) {
					this.eventToCallbackMap[evt] = [];
				}
				this.eventToCallbackMap[evt].push(callback);
			},
			_unbindNonQueryEventHandler: function _unbindNonQueryEventHandler(evt, callback) {
				var callbacks = this.eventToCallbackMap[evt];
				if (callbacks !== undefined) {
					for (var i = 0; i < callbacks.length; i++) {
						if (callbacks[i] === callback) {
							callbacks.splice(i, 1);
							break;
						}
					}
				}
			},
			_cleanUpEventCallbacksMap: function _cleanUpEventCallbacksMap() {
				var eventNames = Object.keys(this.eventToCallbackMap);
				for (var i = 0; i < eventNames.length; i++) {
					var eventName = eventNames[i];
					delete this.eventToCallbackMap[eventName];
				}
			},
			_showTooltip: function _showTooltip() {
				if (this.options.tooltip_split === false) {
					this._addClass(this.tooltip, 'in');
					this.tooltip_min.style.display = 'none';
					this.tooltip_max.style.display = 'none';
				} else {
					this._addClass(this.tooltip_min, 'in');
					this._addClass(this.tooltip_max, 'in');
					this.tooltip.style.display = 'none';
				}
				this._state.over = true;
			},
			_hideTooltip: function _hideTooltip() {
				if (this._state.inDrag === false && this.alwaysShowTooltip !== true) {
					this._removeClass(this.tooltip, 'in');
					this._removeClass(this.tooltip_min, 'in');
					this._removeClass(this.tooltip_max, 'in');
				}
				this._state.over = false;
			},
			_setToolTipOnMouseOver: function _setToolTipOnMouseOver(tempState) {
				var formattedTooltipVal = this.options.formatter(!tempState ? this._state.value[0] : tempState.value[0]);
				var positionPercentages = !tempState ? getPositionPercentages(this._state, this.options.reversed) : getPositionPercentages(tempState, this.options.reversed);
				this._setText(this.tooltipInner, formattedTooltipVal);

				this.tooltip.style[this.stylePos] = positionPercentages[0] + "%";

				function getPositionPercentages(state, reversed) {
					if (reversed) {
						return [100 - state.percentage[0], this.options.range ? 100 - state.percentage[1] : state.percentage[1]];
					}
					return [state.percentage[0], state.percentage[1]];
				}
			},
			_addTickListener: function _addTickListener() {
				return {
					addMouseEnter: function addMouseEnter(reference, tick, index) {
						var enter = function enter() {
							var tempState = reference._state;
							var idString = index >= 0 ? index : this.attributes['aria-valuenow'].value;
							var hoverIndex = parseInt(idString, 10);
							tempState.value[0] = hoverIndex;
							tempState.percentage[0] = reference.options.ticks_positions[hoverIndex];
							reference._setToolTipOnMouseOver(tempState);
							reference._showTooltip();
						};
						tick.addEventListener("mouseenter", enter, false);
						return enter;
					},
					addMouseLeave: function addMouseLeave(reference, tick) {
						var leave = function leave() {
							reference._hideTooltip();
						};
						tick.addEventListener("mouseleave", leave, false);
						return leave;
					}
				};
			},
			_layout: function _layout() {
				var positionPercentages;

				if (this.options.reversed) {
					positionPercentages = [100 - this._state.percentage[0], this.options.range ? 100 - this._state.percentage[1] : this._state.percentage[1]];
				} else {
					positionPercentages = [this._state.percentage[0], this._state.percentage[1]];
				}

				this.handle1.style[this.stylePos] = positionPercentages[0] + "%";
				this.handle1.setAttribute('aria-valuenow', this._state.value[0]);
				if (isNaN(this.options.formatter(this._state.value[0]))) {
					this.handle1.setAttribute('aria-valuetext', this.options.formatter(this._state.value[0]));
				}

				this.handle2.style[this.stylePos] = positionPercentages[1] + "%";
				this.handle2.setAttribute('aria-valuenow', this._state.value[1]);
				if (isNaN(this.options.formatter(this._state.value[1]))) {
					this.handle2.setAttribute('aria-valuetext', this.options.formatter(this._state.value[1]));
				}

				/* Position highlight range elements */
				if (this.rangeHighlightElements.length > 0 && Array.isArray(this.options.rangeHighlights) && this.options.rangeHighlights.length > 0) {
					for (var _i = 0; _i < this.options.rangeHighlights.length; _i++) {
						var startPercent = this._toPercentage(this.options.rangeHighlights[_i].start);
						var endPercent = this._toPercentage(this.options.rangeHighlights[_i].end);

						if (this.options.reversed) {
							var sp = 100 - endPercent;
							endPercent = 100 - startPercent;
							startPercent = sp;
						}

						var currentRange = this._createHighlightRange(startPercent, endPercent);

						if (currentRange) {
							if (this.options.orientation === 'vertical') {
								this.rangeHighlightElements[_i].style.top = currentRange.start + "%";
								this.rangeHighlightElements[_i].style.height = currentRange.size + "%";
							} else {
								if (this.options.rtl) {
									this.rangeHighlightElements[_i].style.right = currentRange.start + "%";
								} else {
									this.rangeHighlightElements[_i].style.left = currentRange.start + "%";
								}
								this.rangeHighlightElements[_i].style.width = currentRange.size + "%";
							}
						} else {
							this.rangeHighlightElements[_i].style.display = "none";
						}
					}
				}

				/* Position ticks and labels */
				if (Array.isArray(this.options.ticks) && this.options.ticks.length > 0) {

					var styleSize = this.options.orientation === 'vertical' ? 'height' : 'width';
					var styleMargin;
					if (this.options.orientation === 'vertical') {
						styleMargin = 'marginTop';
					} else {
						if (this.options.rtl) {
							styleMargin = 'marginRight';
						} else {
							styleMargin = 'marginLeft';
						}
					}
					var labelSize = this._state.size / (this.options.ticks.length - 1);

					if (this.tickLabelContainer) {
						var extraMargin = 0;
						if (this.options.ticks_positions.length === 0) {
							if (this.options.orientation !== 'vertical') {
								this.tickLabelContainer.style[styleMargin] = -labelSize / 2 + "px";
							}

							extraMargin = this.tickLabelContainer.offsetHeight;
						} else {
							/* Chidren are position absolute, calculate height by finding the max offsetHeight of a child */
							for (i = 0; i < this.tickLabelContainer.childNodes.length; i++) {
								if (this.tickLabelContainer.childNodes[i].offsetHeight > extraMargin) {
									extraMargin = this.tickLabelContainer.childNodes[i].offsetHeight;
								}
							}
						}
						if (this.options.orientation === 'horizontal') {
							this.sliderElem.style.marginBottom = extraMargin + "px";
						}
					}
					for (var i = 0; i < this.options.ticks.length; i++) {

						var percentage = this.options.ticks_positions[i] || this._toPercentage(this.options.ticks[i]);

						if (this.options.reversed) {
							percentage = 100 - percentage;
						}

						this.ticks[i].style[this.stylePos] = percentage + "%";

						/* Set class labels to denote whether ticks are in the selection */
						this._removeClass(this.ticks[i], 'in-selection');
						if (!this.options.range) {
							if (this.options.selection === 'after' && percentage >= positionPercentages[0]) {
								this._addClass(this.ticks[i], 'in-selection');
							} else if (this.options.selection === 'before' && percentage <= positionPercentages[0]) {
								this._addClass(this.ticks[i], 'in-selection');
							}
						} else if (percentage >= positionPercentages[0] && percentage <= positionPercentages[1]) {
							this._addClass(this.ticks[i], 'in-selection');
						}

						if (this.tickLabels[i]) {
							this.tickLabels[i].style[styleSize] = labelSize + "px";

							if (this.options.orientation !== 'vertical' && this.options.ticks_positions[i] !== undefined) {
								this.tickLabels[i].style.position = 'absolute';
								this.tickLabels[i].style[this.stylePos] = percentage + "%";
								this.tickLabels[i].style[styleMargin] = -labelSize / 2 + 'px';
							} else if (this.options.orientation === 'vertical') {
								if (this.options.rtl) {
									this.tickLabels[i].style['marginRight'] = this.sliderElem.offsetWidth + "px";
								} else {
									this.tickLabels[i].style['marginLeft'] = this.sliderElem.offsetWidth + "px";
								}
								this.tickLabelContainer.style[styleMargin] = this.sliderElem.offsetWidth / 2 * -1 + 'px';
							}
						}
					}
				}

				var formattedTooltipVal;

				if (this.options.range) {
					formattedTooltipVal = this.options.formatter(this._state.value);
					this._setText(this.tooltipInner, formattedTooltipVal);
					this.tooltip.style[this.stylePos] = (positionPercentages[1] + positionPercentages[0]) / 2 + "%";

					var innerTooltipMinText = this.options.formatter(this._state.value[0]);
					this._setText(this.tooltipInner_min, innerTooltipMinText);

					var innerTooltipMaxText = this.options.formatter(this._state.value[1]);
					this._setText(this.tooltipInner_max, innerTooltipMaxText);

					this.tooltip_min.style[this.stylePos] = positionPercentages[0] + "%";

					this.tooltip_max.style[this.stylePos] = positionPercentages[1] + "%";
				} else {
					formattedTooltipVal = this.options.formatter(this._state.value[0]);
					this._setText(this.tooltipInner, formattedTooltipVal);

					this.tooltip.style[this.stylePos] = positionPercentages[0] + "%";
				}

				if (this.options.orientation === 'vertical') {
					this.trackLow.style.top = '0';
					this.trackLow.style.height = Math.min(positionPercentages[0], positionPercentages[1]) + '%';

					this.trackSelection.style.top = Math.min(positionPercentages[0], positionPercentages[1]) + '%';
					this.trackSelection.style.height = Math.abs(positionPercentages[0] - positionPercentages[1]) + '%';

					this.trackHigh.style.bottom = '0';
					this.trackHigh.style.height = 100 - Math.min(positionPercentages[0], positionPercentages[1]) - Math.abs(positionPercentages[0] - positionPercentages[1]) + '%';
				} else {
					if (this.stylePos === 'right') {
						this.trackLow.style.right = '0';
					} else {
						this.trackLow.style.left = '0';
					}
					this.trackLow.style.width = Math.min(positionPercentages[0], positionPercentages[1]) + '%';

					if (this.stylePos === 'right') {
						this.trackSelection.style.right = Math.min(positionPercentages[0], positionPercentages[1]) + '%';
					} else {
						this.trackSelection.style.left = Math.min(positionPercentages[0], positionPercentages[1]) + '%';
					}
					this.trackSelection.style.width = Math.abs(positionPercentages[0] - positionPercentages[1]) + '%';

					if (this.stylePos === 'right') {
						this.trackHigh.style.left = '0';
					} else {
						this.trackHigh.style.right = '0';
					}
					this.trackHigh.style.width = 100 - Math.min(positionPercentages[0], positionPercentages[1]) - Math.abs(positionPercentages[0] - positionPercentages[1]) + '%';

					var offset_min = this.tooltip_min.getBoundingClientRect();
					var offset_max = this.tooltip_max.getBoundingClientRect();

					if (this.options.tooltip_position === 'bottom') {
						if (offset_min.right > offset_max.left) {
							this._removeClass(this.tooltip_max, 'bottom');
							this._addClass(this.tooltip_max, 'top');
							this.tooltip_max.style.top = '';
							this.tooltip_max.style.bottom = 22 + 'px';
						} else {
							this._removeClass(this.tooltip_max, 'top');
							this._addClass(this.tooltip_max, 'bottom');
							this.tooltip_max.style.top = this.tooltip_min.style.top;
							this.tooltip_max.style.bottom = '';
						}
					} else {
						if (offset_min.right > offset_max.left) {
							this._removeClass(this.tooltip_max, 'top');
							this._addClass(this.tooltip_max, 'bottom');
							this.tooltip_max.style.top = 18 + 'px';
						} else {
							this._removeClass(this.tooltip_max, 'bottom');
							this._addClass(this.tooltip_max, 'top');
							this.tooltip_max.style.top = this.tooltip_min.style.top;
						}
					}
				}
			},
			_createHighlightRange: function _createHighlightRange(start, end) {
				if (this._isHighlightRange(start, end)) {
					if (start > end) {
						return { 'start': end, 'size': start - end };
					}
					return { 'start': start, 'size': end - start };
				}
				return null;
			},
			_isHighlightRange: function _isHighlightRange(start, end) {
				if (0 <= start && start <= 100 && 0 <= end && end <= 100) {
					return true;
				} else {
					return false;
				}
			},
			_resize: function _resize(ev) {
				/*jshint unused:false*/
				this._state.offset = this._offset(this.sliderElem);
				this._state.size = this.sliderElem[this.sizePos];
				this._layout();
			},
			_removeProperty: function _removeProperty(element, prop) {
				if (element.style.removeProperty) {
					element.style.removeProperty(prop);
				} else {
					element.style.removeAttribute(prop);
				}
			},
			_mousedown: function _mousedown(ev) {
				if (!this._state.enabled) {
					return false;
				}

				this._state.offset = this._offset(this.sliderElem);
				this._state.size = this.sliderElem[this.sizePos];

				var percentage = this._getPercentage(ev);

				if (this.options.range) {
					var diff1 = Math.abs(this._state.percentage[0] - percentage);
					var diff2 = Math.abs(this._state.percentage[1] - percentage);
					this._state.dragged = diff1 < diff2 ? 0 : 1;
					this._adjustPercentageForRangeSliders(percentage);
				} else {
					this._state.dragged = 0;
				}

				this._state.percentage[this._state.dragged] = percentage;
				this._layout();

				if (this.touchCapable) {
					document.removeEventListener("touchmove", this.mousemove, false);
					document.removeEventListener("touchend", this.mouseup, false);
				}

				if (this.mousemove) {
					document.removeEventListener("mousemove", this.mousemove, false);
				}
				if (this.mouseup) {
					document.removeEventListener("mouseup", this.mouseup, false);
				}

				this.mousemove = this._mousemove.bind(this);
				this.mouseup = this._mouseup.bind(this);

				if (this.touchCapable) {
					// Touch: Bind touch events:
					document.addEventListener("touchmove", this.mousemove, false);
					document.addEventListener("touchend", this.mouseup, false);
				}
				// Bind mouse events:
				document.addEventListener("mousemove", this.mousemove, false);
				document.addEventListener("mouseup", this.mouseup, false);

				this._state.inDrag = true;
				var newValue = this._calculateValue();

				this._trigger('slideStart', newValue);

				this._setDataVal(newValue);
				this.setValue(newValue, false, true);

				ev.returnValue = false;

				if (this.options.focus) {
					this._triggerFocusOnHandle(this._state.dragged);
				}

				return true;
			},
			_touchstart: function _touchstart(ev) {
				if (ev.changedTouches === undefined) {
					this._mousedown(ev);
					return;
				}

				var touch = ev.changedTouches[0];
				this.touchX = touch.pageX;
				this.touchY = touch.pageY;
			},
			_triggerFocusOnHandle: function _triggerFocusOnHandle(handleIdx) {
				if (handleIdx === 0) {
					this.handle1.focus();
				}
				if (handleIdx === 1) {
					this.handle2.focus();
				}
			},
			_keydown: function _keydown(handleIdx, ev) {
				if (!this._state.enabled) {
					return false;
				}

				var dir;
				switch (ev.keyCode) {
					case 37: // left
					case 40:
						// down
						dir = -1;
						break;
					case 39: // right
					case 38:
						// up
						dir = 1;
						break;
				}
				if (!dir) {
					return;
				}

				// use natural arrow keys instead of from min to max
				if (this.options.natural_arrow_keys) {
					var ifVerticalAndNotReversed = this.options.orientation === 'vertical' && !this.options.reversed;
					var ifHorizontalAndReversed = this.options.orientation === 'horizontal' && this.options.reversed; // @todo control with rtl

					if (ifVerticalAndNotReversed || ifHorizontalAndReversed) {
						dir = -dir;
					}
				}

				var val = this._state.value[handleIdx] + dir * this.options.step;
				var percentage = val / this.options.max * 100;
				this._state.keyCtrl = handleIdx;
				if (this.options.range) {
					this._adjustPercentageForRangeSliders(percentage);
					var val1 = !this._state.keyCtrl ? val : this._state.value[0];
					var val2 = this._state.keyCtrl ? val : this._state.value[1];
					val = [val1, val2];
				}

				this._trigger('slideStart', val);
				this._setDataVal(val);
				this.setValue(val, true, true);

				this._setDataVal(val);
				this._trigger('slideStop', val);
				this._layout();

				this._pauseEvent(ev);
				delete this._state.keyCtrl;

				return false;
			},
			_pauseEvent: function _pauseEvent(ev) {
				if (ev.stopPropagation) {
					ev.stopPropagation();
				}
				if (ev.preventDefault) {
					ev.preventDefault();
				}
				ev.cancelBubble = true;
				ev.returnValue = false;
			},
			_mousemove: function _mousemove(ev) {
				if (!this._state.enabled) {
					return false;
				}

				var percentage = this._getPercentage(ev);
				this._adjustPercentageForRangeSliders(percentage);
				this._state.percentage[this._state.dragged] = percentage;
				this._layout();

				var val = this._calculateValue(true);
				this.setValue(val, true, true);

				return false;
			},
			_touchmove: function _touchmove(ev) {
				if (ev.changedTouches === undefined) {
					return;
				}

				var touch = ev.changedTouches[0];

				var xDiff = touch.pageX - this.touchX;
				var yDiff = touch.pageY - this.touchY;

				if (!this._state.inDrag) {
					// Vertical Slider
					if (this.options.orientation === 'vertical' && xDiff <= 5 && xDiff >= -5 && (yDiff >= 15 || yDiff <= -15)) {
						this._mousedown(ev);
					}
					// Horizontal slider.
					else if (yDiff <= 5 && yDiff >= -5 && (xDiff >= 15 || xDiff <= -15)) {
							this._mousedown(ev);
						}
				}
			},
			_adjustPercentageForRangeSliders: function _adjustPercentageForRangeSliders(percentage) {
				if (this.options.range) {
					var precision = this._getNumDigitsAfterDecimalPlace(percentage);
					precision = precision ? precision - 1 : 0;
					var percentageWithAdjustedPrecision = this._applyToFixedAndParseFloat(percentage, precision);
					if (this._state.dragged === 0 && this._applyToFixedAndParseFloat(this._state.percentage[1], precision) < percentageWithAdjustedPrecision) {
						this._state.percentage[0] = this._state.percentage[1];
						this._state.dragged = 1;
					} else if (this._state.dragged === 1 && this._applyToFixedAndParseFloat(this._state.percentage[0], precision) > percentageWithAdjustedPrecision) {
						this._state.percentage[1] = this._state.percentage[0];
						this._state.dragged = 0;
					} else if (this._state.keyCtrl === 0 && this._state.value[1] / this.options.max * 100 < percentage) {
						this._state.percentage[0] = this._state.percentage[1];
						this._state.keyCtrl = 1;
						this.handle2.focus();
					} else if (this._state.keyCtrl === 1 && this._state.value[0] / this.options.max * 100 > percentage) {
						this._state.percentage[1] = this._state.percentage[0];
						this._state.keyCtrl = 0;
						this.handle1.focus();
					}
				}
			},
			_mouseup: function _mouseup() {
				if (!this._state.enabled) {
					return false;
				}
				if (this.touchCapable) {
					// Touch: Unbind touch event handlers:
					document.removeEventListener("touchmove", this.mousemove, false);
					document.removeEventListener("touchend", this.mouseup, false);
				}
				// Unbind mouse event handlers:
				document.removeEventListener("mousemove", this.mousemove, false);
				document.removeEventListener("mouseup", this.mouseup, false);

				this._state.inDrag = false;
				if (this._state.over === false) {
					this._hideTooltip();
				}
				var val = this._calculateValue(true);

				this._layout();
				this._setDataVal(val);
				this._trigger('slideStop', val);

				return false;
			},
			_calculateValue: function _calculateValue(snapToClosestTick) {
				var val;
				if (this.options.range) {
					val = [this.options.min, this.options.max];
					if (this._state.percentage[0] !== 0) {
						val[0] = this._toValue(this._state.percentage[0]);
						val[0] = this._applyPrecision(val[0]);
					}
					if (this._state.percentage[1] !== 100) {
						val[1] = this._toValue(this._state.percentage[1]);
						val[1] = this._applyPrecision(val[1]);
					}
				} else {
					val = this._toValue(this._state.percentage[0]);
					val = parseFloat(val);
					val = this._applyPrecision(val);
				}

				if (snapToClosestTick) {
					var min = [val, Infinity];
					for (var i = 0; i < this.options.ticks.length; i++) {
						var diff = Math.abs(this.options.ticks[i] - val);
						if (diff <= min[1]) {
							min = [this.options.ticks[i], diff];
						}
					}
					if (min[1] <= this.options.ticks_snap_bounds) {
						return min[0];
					}
				}

				return val;
			},
			_applyPrecision: function _applyPrecision(val) {
				var precision = this.options.precision || this._getNumDigitsAfterDecimalPlace(this.options.step);
				return this._applyToFixedAndParseFloat(val, precision);
			},
			_getNumDigitsAfterDecimalPlace: function _getNumDigitsAfterDecimalPlace(num) {
				var match = ('' + num).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);
				if (!match) {
					return 0;
				}
				return Math.max(0, (match[1] ? match[1].length : 0) - (match[2] ? +match[2] : 0));
			},
			_applyToFixedAndParseFloat: function _applyToFixedAndParseFloat(num, toFixedInput) {
				var truncatedNum = num.toFixed(toFixedInput);
				return parseFloat(truncatedNum);
			},
			/*
   	Credits to Mike Samuel for the following method!
   	Source: http://stackoverflow.com/questions/10454518/javascript-how-to-retrieve-the-number-of-decimals-of-a-string-number
   */
			_getPercentage: function _getPercentage(ev) {
				if (this.touchCapable && (ev.type === 'touchstart' || ev.type === 'touchmove')) {
					ev = ev.touches[0];
				}

				var eventPosition = ev[this.mousePos];
				var sliderOffset = this._state.offset[this.stylePos];
				var distanceToSlide = eventPosition - sliderOffset;
				if (this.stylePos === 'right') {
					distanceToSlide = -distanceToSlide;
				}
				// Calculate what percent of the length the slider handle has slid
				var percentage = distanceToSlide / this._state.size * 100;
				percentage = Math.round(percentage / this._state.percentage[2]) * this._state.percentage[2];
				if (this.options.reversed) {
					percentage = 100 - percentage;
				}

				// Make sure the percent is within the bounds of the slider.
				// 0% corresponds to the 'min' value of the slide
				// 100% corresponds to the 'max' value of the slide
				return Math.max(0, Math.min(100, percentage));
			},
			_validateInputValue: function _validateInputValue(val) {
				if (!isNaN(+val)) {
					return +val;
				} else if (Array.isArray(val)) {
					this._validateArray(val);
					return val;
				} else {
					throw new Error(ErrorMsgs.formatInvalidInputErrorMsg(val));
				}
			},
			_validateArray: function _validateArray(val) {
				for (var i = 0; i < val.length; i++) {
					var input = val[i];
					if (typeof input !== 'number') {
						throw new Error(ErrorMsgs.formatInvalidInputErrorMsg(input));
					}
				}
			},
			_setDataVal: function _setDataVal(val) {
				this.element.setAttribute('data-value', val);
				this.element.setAttribute('value', val);
				this.element.value = val;
			},
			_trigger: function _trigger(evt, val) {
				val = val || val === 0 ? val : undefined;

				var callbackFnArray = this.eventToCallbackMap[evt];
				if (callbackFnArray && callbackFnArray.length) {
					for (var i = 0; i < callbackFnArray.length; i++) {
						var callbackFn = callbackFnArray[i];
						callbackFn(val);
					}
				}

				/* If JQuery exists, trigger JQuery events */
				if ($) {
					this._triggerJQueryEvent(evt, val);
				}
			},
			_triggerJQueryEvent: function _triggerJQueryEvent(evt, val) {
				var eventData = {
					type: evt,
					value: val
				};
				this.$element.trigger(eventData);
				this.$sliderElem.trigger(eventData);
			},
			_unbindJQueryEventHandlers: function _unbindJQueryEventHandlers() {
				this.$element.off();
				this.$sliderElem.off();
			},
			_setText: function _setText(element, text) {
				if (typeof element.textContent !== "undefined") {
					element.textContent = text;
				} else if (typeof element.innerText !== "undefined") {
					element.innerText = text;
				}
			},
			_removeClass: function _removeClass(element, classString) {
				var classes = classString.split(" ");
				var newClasses = element.className;

				for (var i = 0; i < classes.length; i++) {
					var classTag = classes[i];
					var regex = new RegExp("(?:\\s|^)" + classTag + "(?:\\s|$)");
					newClasses = newClasses.replace(regex, " ");
				}

				element.className = newClasses.trim();
			},
			_addClass: function _addClass(element, classString) {
				var classes = classString.split(" ");
				var newClasses = element.className;

				for (var i = 0; i < classes.length; i++) {
					var classTag = classes[i];
					var regex = new RegExp("(?:\\s|^)" + classTag + "(?:\\s|$)");
					var ifClassExists = regex.test(newClasses);

					if (!ifClassExists) {
						newClasses += " " + classTag;
					}
				}

				element.className = newClasses.trim();
			},
			_offsetLeft: function _offsetLeft(obj) {
				return obj.getBoundingClientRect().left;
			},
			_offsetRight: function _offsetRight(obj) {
				return obj.getBoundingClientRect().right;
			},
			_offsetTop: function _offsetTop(obj) {
				var offsetTop = obj.offsetTop;
				while ((obj = obj.offsetParent) && !isNaN(obj.offsetTop)) {
					offsetTop += obj.offsetTop;
					if (obj.tagName !== 'BODY') {
						offsetTop -= obj.scrollTop;
					}
				}
				return offsetTop;
			},
			_offset: function _offset(obj) {
				return {
					left: this._offsetLeft(obj),
					right: this._offsetRight(obj),
					top: this._offsetTop(obj)
				};
			},
			_css: function _css(elementRef, styleName, value) {
				if ($) {
					$.style(elementRef, styleName, value);
				} else {
					var style = styleName.replace(/^-ms-/, "ms-").replace(/-([\da-z])/gi, function (all, letter) {
						return letter.toUpperCase();
					});
					elementRef.style[style] = value;
				}
			},
			_toValue: function _toValue(percentage) {
				return this.options.scale.toValue.apply(this, [percentage]);
			},
			_toPercentage: function _toPercentage(value) {
				return this.options.scale.toPercentage.apply(this, [value]);
			},
			_setTooltipPosition: function _setTooltipPosition() {
				var tooltips = [this.tooltip, this.tooltip_min, this.tooltip_max];
				if (this.options.orientation === 'vertical') {
					var tooltipPos;
					if (this.options.tooltip_position) {
						tooltipPos = this.options.tooltip_position;
					} else {
						if (this.options.rtl) {
							tooltipPos = 'left';
						} else {
							tooltipPos = 'right';
						}
					}
					var oppositeSide = tooltipPos === 'left' ? 'right' : 'left';
					tooltips.forEach(function (tooltip) {
						this._addClass(tooltip, tooltipPos);
						tooltip.style[oppositeSide] = '100%';
					}.bind(this));
				} else if (this.options.tooltip_position === 'bottom') {
					tooltips.forEach(function (tooltip) {
						this._addClass(tooltip, 'bottom');
						tooltip.style.top = 22 + 'px';
					}.bind(this));
				} else {
					tooltips.forEach(function (tooltip) {
						this._addClass(tooltip, 'top');
						tooltip.style.top = -this.tooltip.outerHeight - 14 + 'px';
					}.bind(this));
				}
			}
		};

		/*********************************
  		Attach to global namespace
  	*********************************/
		if ($ && $.fn) {
			var autoRegisterNamespace = void 0;

			if (!$.fn.slider) {
				$.bridget(NAMESPACE_MAIN, Slider);
				autoRegisterNamespace = NAMESPACE_MAIN;
			} else {
				if (windowIsDefined) {
					window.console.warn("bootstrap-slider.js - WARNING: $.fn.slider namespace is already bound. Use the $.fn.bootstrapSlider namespace instead.");
				}
				autoRegisterNamespace = NAMESPACE_ALTERNATE;
			}
			$.bridget(NAMESPACE_ALTERNATE, Slider);

			// Auto-Register data-provide="slider" Elements
			$(function () {
				$("input[data-provide=slider]")[autoRegisterNamespace]();
			});
		}
	})($);

	return Slider;
});

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))

/***/ }),

/***/ "./node_modules/breakjs/dist/break.js":
/*!********************************************!*\
  !*** ./node_modules/breakjs/dist/break.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, '__esModule', {
  value: true
});
function find(array, cb) {
  for (var i = array.length - 1; i >= 0; i--) {
    if (cb(array[i])) {
      return array[i];
    }
  }
}

var mediaQueries = {
  between: function between(val1, val2) {
    return window.matchMedia('screen and (min-width: ' + val1 + 'px) and ' + ('(max-width: ' + (val2 - 1) + 'px)'));
  },
  atLeast: function atLeast(val) {
    return window.matchMedia('screen and (min-width: ' + val + 'px)');
  },
  atMost: function atMost(val) {
    return window.matchMedia('screen and (max-width: ' + (val - 1) + 'px)');
  }
};

var query = function query(bp, nextBp) {
  return {
    is: typeof nextBp === 'number' ? mediaQueries.between(bp, nextBp) : mediaQueries.atLeast(bp),
    atLeast: mediaQueries.atLeast(bp),
    atMost: mediaQueries.atMost(nextBp || Number.MAX_VALUE)
  };
};

var Breakjs = function Breakjs(bpEntries) {
  if (!bpEntries) {
    throw new Error('No breakpoints were defined!');
  }

  var bps = [];

  var _loop = function (key) {
    var entry = { name: key, value: bpEntries[key] };

    if (find(bps, function (bp) {
      return bp.value === entry.value;
    })) {
      throw new Error('Breakpoint values must be unique.');
    }

    bps.push(entry);
  };

  for (var key in bpEntries) {
    _loop(key);
  }

  var breakpoints = bps.sort(function (a, b) {
    return a.value > b.value;
  }).map(function (bp, index) {
    if (typeof bp.name !== 'string') {
      throw new Error('Invalid breakpoint name -- should be a string.');
    }

    if (typeof bp.value !== 'number' || bp.value < 0) {
      throw new Error('Invalid breakpoint value for ' + bp.name + ': ' + bp.value);
    }

    var breakpoint = { name: bp.name };

    // only query
    if (bps.length === 1) {
      breakpoint.query = query(0, null);
    }

    // last query
    else if (index === bps.length - 1) {
        breakpoint.query = query(bp.value, null);
      }

      // query inbetween
      else {
          breakpoint.query = query(bp.value, bps[index + 1].value);
        }

    return breakpoint;
  });

  function getBreakpoint(breakpointName) {
    var findObj = find(breakpoints, function (bp) {
      return bp.name === breakpointName;
    });

    if (!findObj) {
      throw new Error('invalid breakpoint name');
    }

    return findObj;
  }

  var changeListeners = [];

  return {
    breakpoints: bps,

    /**
     * Check if the current window size is the given size
     * @param  {String} size
     * @return {Boolean}
     */
    is: function is(name) {
      return getBreakpoint(name).query.is.matches;
    },

    /**
     * Check if the current window size at least the given size
     * @param  {String} size
     * @return {Boolean}
     */
    atLeast: function atLeast(name) {
      return getBreakpoint(name).query.atLeast.matches;
    },

    /**
     * Check if the current window size at most the given size
     * @param  {String} size
     * @return {Boolean}
     */
    atMost: function atMost(name) {
      return getBreakpoint(name).query.atMost.matches;
    },

    current: function current() {
      var findObj = find(breakpoints, function (bp) {
        return bp.query.is.matches;
      });

      if (findObj) {
        return findObj.name;
      }
    },

    addChangeListener: function addChangeListener(listener) {
      var _this = this;

      breakpoints.forEach(function (bp) {
        var changeListener = function changeListener() {
          var current = _this.current();
          if (current === bp.name) {
            listener(current);
          }
        };

        changeListeners.push({
          original: listener,
          created: changeListener
        });

        bp.query.is.addListener(changeListener);
      });
    },

    removeChangeListener: function removeChangeListener(listener) {
      breakpoints.forEach(function (bp) {
        var findObj = find(changeListeners, function (cl) {
          return cl.original === listener;
        });

        if (findObj) {
          bp.query.is.removeListener(findObj.created);
          changeListeners.splice(changeListeners.indexOf(findObj), 1);
        }
      });
    }
  };
};

if (typeof window !== 'undefined') {
  window.Breakjs = Breakjs;
}

exports['default'] = Breakjs;
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/c3/c3.js":
/*!*******************************!*\
  !*** ./node_modules/c3/c3.js ***!
  \*******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

/* @license C3.js v0.4.23 | (c) C3 Team and other contributors | http://c3js.org/ */
(function (global, factory) {
     true ? module.exports = factory() :
    undefined;
}(this, (function () { 'use strict';

    var CLASS = {
        target: 'c3-target',
        chart: 'c3-chart',
        chartLine: 'c3-chart-line',
        chartLines: 'c3-chart-lines',
        chartBar: 'c3-chart-bar',
        chartBars: 'c3-chart-bars',
        chartText: 'c3-chart-text',
        chartTexts: 'c3-chart-texts',
        chartArc: 'c3-chart-arc',
        chartArcs: 'c3-chart-arcs',
        chartArcsTitle: 'c3-chart-arcs-title',
        chartArcsBackground: 'c3-chart-arcs-background',
        chartArcsGaugeUnit: 'c3-chart-arcs-gauge-unit',
        chartArcsGaugeMax: 'c3-chart-arcs-gauge-max',
        chartArcsGaugeMin: 'c3-chart-arcs-gauge-min',
        selectedCircle: 'c3-selected-circle',
        selectedCircles: 'c3-selected-circles',
        eventRect: 'c3-event-rect',
        eventRects: 'c3-event-rects',
        eventRectsSingle: 'c3-event-rects-single',
        eventRectsMultiple: 'c3-event-rects-multiple',
        zoomRect: 'c3-zoom-rect',
        brush: 'c3-brush',
        focused: 'c3-focused',
        defocused: 'c3-defocused',
        region: 'c3-region',
        regions: 'c3-regions',
        title: 'c3-title',
        tooltipContainer: 'c3-tooltip-container',
        tooltip: 'c3-tooltip',
        tooltipName: 'c3-tooltip-name',
        shape: 'c3-shape',
        shapes: 'c3-shapes',
        line: 'c3-line',
        lines: 'c3-lines',
        bar: 'c3-bar',
        bars: 'c3-bars',
        circle: 'c3-circle',
        circles: 'c3-circles',
        arc: 'c3-arc',
        arcLabelLine: 'c3-arc-label-line',
        arcs: 'c3-arcs',
        area: 'c3-area',
        areas: 'c3-areas',
        empty: 'c3-empty',
        text: 'c3-text',
        texts: 'c3-texts',
        gaugeValue: 'c3-gauge-value',
        grid: 'c3-grid',
        gridLines: 'c3-grid-lines',
        xgrid: 'c3-xgrid',
        xgrids: 'c3-xgrids',
        xgridLine: 'c3-xgrid-line',
        xgridLines: 'c3-xgrid-lines',
        xgridFocus: 'c3-xgrid-focus',
        ygrid: 'c3-ygrid',
        ygrids: 'c3-ygrids',
        ygridLine: 'c3-ygrid-line',
        ygridLines: 'c3-ygrid-lines',
        axis: 'c3-axis',
        axisX: 'c3-axis-x',
        axisXLabel: 'c3-axis-x-label',
        axisY: 'c3-axis-y',
        axisYLabel: 'c3-axis-y-label',
        axisY2: 'c3-axis-y2',
        axisY2Label: 'c3-axis-y2-label',
        legendBackground: 'c3-legend-background',
        legendItem: 'c3-legend-item',
        legendItemEvent: 'c3-legend-item-event',
        legendItemTile: 'c3-legend-item-tile',
        legendItemHidden: 'c3-legend-item-hidden',
        legendItemFocused: 'c3-legend-item-focused',
        dragarea: 'c3-dragarea',
        EXPANDED: '_expanded_',
        SELECTED: '_selected_',
        INCLUDED: '_included_'
    };

    var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
      return typeof obj;
    } : function (obj) {
      return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
    };

    var classCallCheck = function (instance, Constructor) {
      if (!(instance instanceof Constructor)) {
        throw new TypeError("Cannot call a class as a function");
      }
    };

    var inherits = function (subClass, superClass) {
      if (typeof superClass !== "function" && superClass !== null) {
        throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
      }

      subClass.prototype = Object.create(superClass && superClass.prototype, {
        constructor: {
          value: subClass,
          enumerable: false,
          writable: true,
          configurable: true
        }
      });
      if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
    };

    var possibleConstructorReturn = function (self, call) {
      if (!self) {
        throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
      }

      return call && (typeof call === "object" || typeof call === "function") ? call : self;
    };

    var isValue = function isValue(v) {
        return v || v === 0;
    };
    var isFunction = function isFunction(o) {
        return typeof o === 'function';
    };
    var isArray = function isArray(o) {
        return Array.isArray(o);
    };
    var isString = function isString(o) {
        return typeof o === 'string';
    };
    var isUndefined = function isUndefined(v) {
        return typeof v === 'undefined';
    };
    var isDefined = function isDefined(v) {
        return typeof v !== 'undefined';
    };
    var ceil10 = function ceil10(v) {
        return Math.ceil(v / 10) * 10;
    };
    var asHalfPixel = function asHalfPixel(n) {
        return Math.ceil(n) + 0.5;
    };
    var diffDomain = function diffDomain(d) {
        return d[1] - d[0];
    };
    var isEmpty = function isEmpty(o) {
        return typeof o === 'undefined' || o === null || isString(o) && o.length === 0 || (typeof o === 'undefined' ? 'undefined' : _typeof(o)) === 'object' && Object.keys(o).length === 0;
    };
    var notEmpty = function notEmpty(o) {
        return !c3_chart_internal_fn.isEmpty(o);
    };
    var getOption = function getOption(options, key, defaultValue) {
        return isDefined(options[key]) ? options[key] : defaultValue;
    };
    var hasValue = function hasValue(dict, value) {
        var found = false;
        Object.keys(dict).forEach(function (key) {
            if (dict[key] === value) {
                found = true;
            }
        });
        return found;
    };
    var sanitise = function sanitise(str) {
        return typeof str === 'string' ? str.replace(/</g, '&lt;').replace(/>/g, '&gt;') : str;
    };
    var getPathBox = function getPathBox(path) {
        var box = path.getBoundingClientRect(),
            items = [path.pathSegList.getItem(0), path.pathSegList.getItem(1)],
            minX = items[0].x,
            minY = Math.min(items[0].y, items[1].y);
        return { x: minX, y: minY, width: box.width, height: box.height };
    };

    var c3_axis_fn;
    var c3_axis_internal_fn;

    function AxisInternal(component, params) {
        var internal = this;
        internal.component = component;
        internal.params = params || {};

        internal.d3 = component.d3;
        internal.scale = internal.d3.scale.linear();
        internal.range;
        internal.orient = "bottom";
        internal.innerTickSize = 6;
        internal.outerTickSize = this.params.withOuterTick ? 6 : 0;
        internal.tickPadding = 3;
        internal.tickValues = null;
        internal.tickFormat;
        internal.tickArguments;

        internal.tickOffset = 0;
        internal.tickCulling = true;
        internal.tickCentered;
        internal.tickTextCharSize;
        internal.tickTextRotate = internal.params.tickTextRotate;
        internal.tickLength;

        internal.axis = internal.generateAxis();
    }
    c3_axis_internal_fn = AxisInternal.prototype;

    c3_axis_internal_fn.axisX = function (selection, x, tickOffset) {
        selection.attr("transform", function (d) {
            return "translate(" + Math.ceil(x(d) + tickOffset) + ", 0)";
        });
    };
    c3_axis_internal_fn.axisY = function (selection, y) {
        selection.attr("transform", function (d) {
            return "translate(0," + Math.ceil(y(d)) + ")";
        });
    };
    c3_axis_internal_fn.scaleExtent = function (domain) {
        var start = domain[0],
            stop = domain[domain.length - 1];
        return start < stop ? [start, stop] : [stop, start];
    };
    c3_axis_internal_fn.generateTicks = function (scale) {
        var internal = this;
        var i,
            domain,
            ticks = [];
        if (scale.ticks) {
            return scale.ticks.apply(scale, internal.tickArguments);
        }
        domain = scale.domain();
        for (i = Math.ceil(domain[0]); i < domain[1]; i++) {
            ticks.push(i);
        }
        if (ticks.length > 0 && ticks[0] > 0) {
            ticks.unshift(ticks[0] - (ticks[1] - ticks[0]));
        }
        return ticks;
    };
    c3_axis_internal_fn.copyScale = function () {
        var internal = this;
        var newScale = internal.scale.copy(),
            domain;
        if (internal.params.isCategory) {
            domain = internal.scale.domain();
            newScale.domain([domain[0], domain[1] - 1]);
        }
        return newScale;
    };
    c3_axis_internal_fn.textFormatted = function (v) {
        var internal = this,
            formatted = internal.tickFormat ? internal.tickFormat(v) : v;
        return typeof formatted !== 'undefined' ? formatted : '';
    };
    c3_axis_internal_fn.updateRange = function () {
        var internal = this;
        internal.range = internal.scale.rangeExtent ? internal.scale.rangeExtent() : internal.scaleExtent(internal.scale.range());
        return internal.range;
    };
    c3_axis_internal_fn.updateTickTextCharSize = function (tick) {
        var internal = this;
        if (internal.tickTextCharSize) {
            return internal.tickTextCharSize;
        }
        var size = {
            h: 11.5,
            w: 5.5
        };
        tick.select('text').text(function (d) {
            return internal.textFormatted(d);
        }).each(function (d) {
            var box = this.getBoundingClientRect(),
                text = internal.textFormatted(d),
                h = box.height,
                w = text ? box.width / text.length : undefined;
            if (h && w) {
                size.h = h;
                size.w = w;
            }
        }).text('');
        internal.tickTextCharSize = size;
        return size;
    };
    c3_axis_internal_fn.transitionise = function (selection) {
        return this.params.withoutTransition ? selection : this.d3.transition(selection);
    };
    c3_axis_internal_fn.isVertical = function () {
        return this.orient === 'left' || this.orient === 'right';
    };
    c3_axis_internal_fn.tspanData = function (d, i, ticks, scale) {
        var internal = this;
        var splitted = internal.params.tickMultiline ? internal.splitTickText(d, ticks, scale) : [].concat(internal.textFormatted(d));

        if (internal.params.tickMultiline && internal.params.tickMultilineMax > 0) {
            splitted = internal.ellipsify(splitted, internal.params.tickMultilineMax);
        }

        return splitted.map(function (s) {
            return { index: i, splitted: s, length: splitted.length };
        });
    };
    c3_axis_internal_fn.splitTickText = function (d, ticks, scale) {
        var internal = this,
            tickText = internal.textFormatted(d),
            maxWidth = internal.params.tickWidth,
            subtext,
            spaceIndex,
            textWidth,
            splitted = [];

        if (Object.prototype.toString.call(tickText) === "[object Array]") {
            return tickText;
        }

        if (!maxWidth || maxWidth <= 0) {
            maxWidth = internal.isVertical() ? 95 : internal.params.isCategory ? Math.ceil(scale(ticks[1]) - scale(ticks[0])) - 12 : 110;
        }

        function split(splitted, text) {
            spaceIndex = undefined;
            for (var i = 1; i < text.length; i++) {
                if (text.charAt(i) === ' ') {
                    spaceIndex = i;
                }
                subtext = text.substr(0, i + 1);
                textWidth = internal.tickTextCharSize.w * subtext.length;
                // if text width gets over tick width, split by space index or crrent index
                if (maxWidth < textWidth) {
                    return split(splitted.concat(text.substr(0, spaceIndex ? spaceIndex : i)), text.slice(spaceIndex ? spaceIndex + 1 : i));
                }
            }
            return splitted.concat(text);
        }

        return split(splitted, tickText + "");
    };
    c3_axis_internal_fn.ellipsify = function (splitted, max) {
        if (splitted.length <= max) {
            return splitted;
        }

        var ellipsified = splitted.slice(0, max);
        var remaining = 3;
        for (var i = max - 1; i >= 0; i--) {
            var available = ellipsified[i].length;

            ellipsified[i] = ellipsified[i].substr(0, available - remaining).padEnd(available, '.');

            remaining -= available;

            if (remaining <= 0) {
                break;
            }
        }

        return ellipsified;
    };
    c3_axis_internal_fn.updateTickLength = function () {
        var internal = this;
        internal.tickLength = Math.max(internal.innerTickSize, 0) + internal.tickPadding;
    };
    c3_axis_internal_fn.lineY2 = function (d) {
        var internal = this,
            tickPosition = internal.scale(d) + (internal.tickCentered ? 0 : internal.tickOffset);
        return internal.range[0] < tickPosition && tickPosition < internal.range[1] ? internal.innerTickSize : 0;
    };
    c3_axis_internal_fn.textY = function () {
        var internal = this,
            rotate = internal.tickTextRotate;
        return rotate ? 11.5 - 2.5 * (rotate / 15) * (rotate > 0 ? 1 : -1) : internal.tickLength;
    };
    c3_axis_internal_fn.textTransform = function () {
        var internal = this,
            rotate = internal.tickTextRotate;
        return rotate ? "rotate(" + rotate + ")" : "";
    };
    c3_axis_internal_fn.textTextAnchor = function () {
        var internal = this,
            rotate = internal.tickTextRotate;
        return rotate ? rotate > 0 ? "start" : "end" : "middle";
    };
    c3_axis_internal_fn.tspanDx = function () {
        var internal = this,
            rotate = internal.tickTextRotate;
        return rotate ? 8 * Math.sin(Math.PI * (rotate / 180)) : 0;
    };
    c3_axis_internal_fn.tspanDy = function (d, i) {
        var internal = this,
            dy = internal.tickTextCharSize.h;
        if (i === 0) {
            if (internal.isVertical()) {
                dy = -((d.length - 1) * (internal.tickTextCharSize.h / 2) - 3);
            } else {
                dy = ".71em";
            }
        }
        return dy;
    };

    c3_axis_internal_fn.generateAxis = function () {
        var internal = this,
            d3 = internal.d3,
            params = internal.params;
        function axis(g) {
            g.each(function () {
                var g = axis.g = d3.select(this);

                var scale0 = this.__chart__ || internal.scale,
                    scale1 = this.__chart__ = internal.copyScale();

                var ticks = internal.tickValues ? internal.tickValues : internal.generateTicks(scale1),
                    tick = g.selectAll(".tick").data(ticks, scale1),
                    tickEnter = tick.enter().insert("g", ".domain").attr("class", "tick").style("opacity", 1e-6),

                // MEMO: No exit transition. The reason is this transition affects max tick width calculation because old tick will be included in the ticks.
                tickExit = tick.exit().remove(),
                    tickUpdate = internal.transitionise(tick).style("opacity", 1),
                    tickTransform,
                    tickX,
                    tickY;

                if (params.isCategory) {
                    internal.tickOffset = Math.ceil((scale1(1) - scale1(0)) / 2);
                    tickX = internal.tickCentered ? 0 : internal.tickOffset;
                    tickY = internal.tickCentered ? internal.tickOffset : 0;
                } else {
                    internal.tickOffset = tickX = 0;
                }

                tickEnter.append("line");
                tickEnter.append("text");

                internal.updateRange();
                internal.updateTickLength();
                internal.updateTickTextCharSize(g.select('.tick'));

                var lineUpdate = tickUpdate.select("line"),
                    textUpdate = tickUpdate.select("text"),
                    tspanUpdate = tick.select("text").selectAll('tspan').data(function (d, i) {
                    return internal.tspanData(d, i, ticks, scale1);
                });

                tspanUpdate.enter().append('tspan');
                tspanUpdate.exit().remove();
                tspanUpdate.text(function (d) {
                    return d.splitted;
                });

                var path = g.selectAll(".domain").data([0]),
                    pathUpdate = (path.enter().append("path").attr("class", "domain"), internal.transitionise(path));

                // TODO: each attr should be one function and change its behavior by internal.orient, probably
                switch (internal.orient) {
                    case "bottom":
                        {
                            tickTransform = internal.axisX;
                            lineUpdate.attr("x1", tickX).attr("x2", tickX).attr("y2", function (d, i) {
                                return internal.lineY2(d, i);
                            });
                            textUpdate.attr("x", 0).attr("y", function (d, i) {
                                return internal.textY(d, i);
                            }).attr("transform", function (d, i) {
                                return internal.textTransform(d, i);
                            }).style("text-anchor", function (d, i) {
                                return internal.textTextAnchor(d, i);
                            });
                            tspanUpdate.attr('x', 0).attr("dy", function (d, i) {
                                return internal.tspanDy(d, i);
                            }).attr('dx', function (d, i) {
                                return internal.tspanDx(d, i);
                            });
                            pathUpdate.attr("d", "M" + internal.range[0] + "," + internal.outerTickSize + "V0H" + internal.range[1] + "V" + internal.outerTickSize);
                            break;
                        }
                    case "top":
                        {
                            // TODO: rotated tick text
                            tickTransform = internal.axisX;
                            lineUpdate.attr("x1", tickX).attr("x2", tickX).attr("y2", function (d, i) {
                                return -1 * internal.lineY2(d, i);
                            });
                            textUpdate.attr("x", 0).attr("y", function (d, i) {
                                return -1 * internal.textY(d, i) - (params.isCategory ? 2 : internal.tickLength - 2);
                            }).attr("transform", function (d, i) {
                                return internal.textTransform(d, i);
                            }).style("text-anchor", function (d, i) {
                                return internal.textTextAnchor(d, i);
                            });
                            tspanUpdate.attr('x', 0).attr("dy", function (d, i) {
                                return internal.tspanDy(d, i);
                            }).attr('dx', function (d, i) {
                                return internal.tspanDx(d, i);
                            });
                            pathUpdate.attr("d", "M" + internal.range[0] + "," + -internal.outerTickSize + "V0H" + internal.range[1] + "V" + -internal.outerTickSize);
                            break;
                        }
                    case "left":
                        {
                            tickTransform = internal.axisY;
                            lineUpdate.attr("x2", -internal.innerTickSize).attr("y1", tickY).attr("y2", tickY);
                            textUpdate.attr("x", -internal.tickLength).attr("y", internal.tickOffset).style("text-anchor", "end");
                            tspanUpdate.attr('x', -internal.tickLength).attr("dy", function (d, i) {
                                return internal.tspanDy(d, i);
                            });
                            pathUpdate.attr("d", "M" + -internal.outerTickSize + "," + internal.range[0] + "H0V" + internal.range[1] + "H" + -internal.outerTickSize);
                            break;
                        }
                    case "right":
                        {
                            tickTransform = internal.axisY;
                            lineUpdate.attr("x2", internal.innerTickSize).attr("y1", tickY).attr("y2", tickY);
                            textUpdate.attr("x", internal.tickLength).attr("y", internal.tickOffset).style("text-anchor", "start");
                            tspanUpdate.attr('x', internal.tickLength).attr("dy", function (d, i) {
                                return internal.tspanDy(d, i);
                            });
                            pathUpdate.attr("d", "M" + internal.outerTickSize + "," + internal.range[0] + "H0V" + internal.range[1] + "H" + internal.outerTickSize);
                            break;
                        }
                }
                if (scale1.rangeBand) {
                    var x = scale1,
                        dx = x.rangeBand() / 2;
                    scale0 = scale1 = function scale1(d) {
                        return x(d) + dx;
                    };
                } else if (scale0.rangeBand) {
                    scale0 = scale1;
                } else {
                    tickExit.call(tickTransform, scale1, internal.tickOffset);
                }
                tickEnter.call(tickTransform, scale0, internal.tickOffset);
                tickUpdate.call(tickTransform, scale1, internal.tickOffset);
            });
        }
        axis.scale = function (x) {
            if (!arguments.length) {
                return internal.scale;
            }
            internal.scale = x;
            return axis;
        };
        axis.orient = function (x) {
            if (!arguments.length) {
                return internal.orient;
            }
            internal.orient = x in { top: 1, right: 1, bottom: 1, left: 1 } ? x + "" : "bottom";
            return axis;
        };
        axis.tickFormat = function (format) {
            if (!arguments.length) {
                return internal.tickFormat;
            }
            internal.tickFormat = format;
            return axis;
        };
        axis.tickCentered = function (isCentered) {
            if (!arguments.length) {
                return internal.tickCentered;
            }
            internal.tickCentered = isCentered;
            return axis;
        };
        axis.tickOffset = function () {
            return internal.tickOffset;
        };
        axis.tickInterval = function () {
            var interval, length;
            if (params.isCategory) {
                interval = internal.tickOffset * 2;
            } else {
                length = axis.g.select('path.domain').node().getTotalLength() - internal.outerTickSize * 2;
                interval = length / axis.g.selectAll('line').size();
            }
            return interval === Infinity ? 0 : interval;
        };
        axis.ticks = function () {
            if (!arguments.length) {
                return internal.tickArguments;
            }
            internal.tickArguments = arguments;
            return axis;
        };
        axis.tickCulling = function (culling) {
            if (!arguments.length) {
                return internal.tickCulling;
            }
            internal.tickCulling = culling;
            return axis;
        };
        axis.tickValues = function (x) {
            if (typeof x === 'function') {
                internal.tickValues = function () {
                    return x(internal.scale.domain());
                };
            } else {
                if (!arguments.length) {
                    return internal.tickValues;
                }
                internal.tickValues = x;
            }
            return axis;
        };
        return axis;
    };

    var Axis = function (_Component) {
        inherits(Axis, _Component);

        function Axis(owner) {
            classCallCheck(this, Axis);

            var fn = {
                fn: c3_axis_fn,
                internal: {
                    fn: c3_axis_internal_fn
                }
            };

            var _this = possibleConstructorReturn(this, (Axis.__proto__ || Object.getPrototypeOf(Axis)).call(this, owner, 'axis', fn));

            _this.d3 = owner.d3;
            _this.internal = AxisInternal;
            return _this;
        }

        return Axis;
    }(Component);

    c3_axis_fn = Axis.prototype;

    c3_axis_fn.init = function init() {
        var $$ = this.owner,
            config = $$.config,
            main = $$.main;
        $$.axes.x = main.append("g").attr("class", CLASS.axis + ' ' + CLASS.axisX).attr("clip-path", config.axis_x_inner ? "" : $$.clipPathForXAxis).attr("transform", $$.getTranslate('x')).style("visibility", config.axis_x_show ? 'visible' : 'hidden');
        $$.axes.x.append("text").attr("class", CLASS.axisXLabel).attr("transform", config.axis_rotated ? "rotate(-90)" : "").style("text-anchor", this.textAnchorForXAxisLabel.bind(this));
        $$.axes.y = main.append("g").attr("class", CLASS.axis + ' ' + CLASS.axisY).attr("clip-path", config.axis_y_inner ? "" : $$.clipPathForYAxis).attr("transform", $$.getTranslate('y')).style("visibility", config.axis_y_show ? 'visible' : 'hidden');
        $$.axes.y.append("text").attr("class", CLASS.axisYLabel).attr("transform", config.axis_rotated ? "" : "rotate(-90)").style("text-anchor", this.textAnchorForYAxisLabel.bind(this));

        $$.axes.y2 = main.append("g").attr("class", CLASS.axis + ' ' + CLASS.axisY2)
        // clip-path?
        .attr("transform", $$.getTranslate('y2')).style("visibility", config.axis_y2_show ? 'visible' : 'hidden');
        $$.axes.y2.append("text").attr("class", CLASS.axisY2Label).attr("transform", config.axis_rotated ? "" : "rotate(-90)").style("text-anchor", this.textAnchorForY2AxisLabel.bind(this));
    };
    c3_axis_fn.getXAxis = function getXAxis(scale, orient, tickFormat, tickValues, withOuterTick, withoutTransition, withoutRotateTickText) {
        var $$ = this.owner,
            config = $$.config,
            axisParams = {
            isCategory: $$.isCategorized(),
            withOuterTick: withOuterTick,
            tickMultiline: config.axis_x_tick_multiline,
            tickMultilineMax: config.axis_x_tick_multiline ? Number(config.axis_x_tick_multilineMax) : 0,
            tickWidth: config.axis_x_tick_width,
            tickTextRotate: withoutRotateTickText ? 0 : config.axis_x_tick_rotate,
            withoutTransition: withoutTransition
        },
            axis = new this.internal(this, axisParams).axis.scale(scale).orient(orient);

        if ($$.isTimeSeries() && tickValues && typeof tickValues !== "function") {
            tickValues = tickValues.map(function (v) {
                return $$.parseDate(v);
            });
        }

        // Set tick
        axis.tickFormat(tickFormat).tickValues(tickValues);
        if ($$.isCategorized()) {
            axis.tickCentered(config.axis_x_tick_centered);
            if (isEmpty(config.axis_x_tick_culling)) {
                config.axis_x_tick_culling = false;
            }
        }

        return axis;
    };
    c3_axis_fn.updateXAxisTickValues = function updateXAxisTickValues(targets, axis) {
        var $$ = this.owner,
            config = $$.config,
            tickValues;
        if (config.axis_x_tick_fit || config.axis_x_tick_count) {
            tickValues = this.generateTickValues($$.mapTargetsToUniqueXs(targets), config.axis_x_tick_count, $$.isTimeSeries());
        }
        if (axis) {
            axis.tickValues(tickValues);
        } else {
            $$.xAxis.tickValues(tickValues);
            $$.subXAxis.tickValues(tickValues);
        }
        return tickValues;
    };
    c3_axis_fn.getYAxis = function getYAxis(scale, orient, tickFormat, tickValues, withOuterTick, withoutTransition, withoutRotateTickText) {
        var $$ = this.owner,
            config = $$.config,
            axisParams = {
            withOuterTick: withOuterTick,
            withoutTransition: withoutTransition,
            tickTextRotate: withoutRotateTickText ? 0 : config.axis_y_tick_rotate
        },
            axis = new this.internal(this, axisParams).axis.scale(scale).orient(orient).tickFormat(tickFormat);
        if ($$.isTimeSeriesY()) {
            axis.ticks($$.d3.time[config.axis_y_tick_time_value], config.axis_y_tick_time_interval);
        } else {
            axis.tickValues(tickValues);
        }
        return axis;
    };
    c3_axis_fn.getId = function getId(id) {
        var config = this.owner.config;
        return id in config.data_axes ? config.data_axes[id] : 'y';
    };
    c3_axis_fn.getXAxisTickFormat = function getXAxisTickFormat() {
        var $$ = this.owner,
            config = $$.config,
            format = $$.isTimeSeries() ? $$.defaultAxisTimeFormat : $$.isCategorized() ? $$.categoryName : function (v) {
            return v < 0 ? v.toFixed(0) : v;
        };
        if (config.axis_x_tick_format) {
            if (isFunction(config.axis_x_tick_format)) {
                format = config.axis_x_tick_format;
            } else if ($$.isTimeSeries()) {
                format = function format(date) {
                    return date ? $$.axisTimeFormat(config.axis_x_tick_format)(date) : "";
                };
            }
        }
        return isFunction(format) ? function (v) {
            return format.call($$, v);
        } : format;
    };
    c3_axis_fn.getTickValues = function getTickValues(tickValues, axis) {
        return tickValues ? tickValues : axis ? axis.tickValues() : undefined;
    };
    c3_axis_fn.getXAxisTickValues = function getXAxisTickValues() {
        return this.getTickValues(this.owner.config.axis_x_tick_values, this.owner.xAxis);
    };
    c3_axis_fn.getYAxisTickValues = function getYAxisTickValues() {
        return this.getTickValues(this.owner.config.axis_y_tick_values, this.owner.yAxis);
    };
    c3_axis_fn.getY2AxisTickValues = function getY2AxisTickValues() {
        return this.getTickValues(this.owner.config.axis_y2_tick_values, this.owner.y2Axis);
    };
    c3_axis_fn.getLabelOptionByAxisId = function getLabelOptionByAxisId(axisId) {
        var $$ = this.owner,
            config = $$.config,
            option;
        if (axisId === 'y') {
            option = config.axis_y_label;
        } else if (axisId === 'y2') {
            option = config.axis_y2_label;
        } else if (axisId === 'x') {
            option = config.axis_x_label;
        }
        return option;
    };
    c3_axis_fn.getLabelText = function getLabelText(axisId) {
        var option = this.getLabelOptionByAxisId(axisId);
        return isString(option) ? option : option ? option.text : null;
    };
    c3_axis_fn.setLabelText = function setLabelText(axisId, text) {
        var $$ = this.owner,
            config = $$.config,
            option = this.getLabelOptionByAxisId(axisId);
        if (isString(option)) {
            if (axisId === 'y') {
                config.axis_y_label = text;
            } else if (axisId === 'y2') {
                config.axis_y2_label = text;
            } else if (axisId === 'x') {
                config.axis_x_label = text;
            }
        } else if (option) {
            option.text = text;
        }
    };
    c3_axis_fn.getLabelPosition = function getLabelPosition(axisId, defaultPosition) {
        var option = this.getLabelOptionByAxisId(axisId),
            position = option && (typeof option === 'undefined' ? 'undefined' : _typeof(option)) === 'object' && option.position ? option.position : defaultPosition;
        return {
            isInner: position.indexOf('inner') >= 0,
            isOuter: position.indexOf('outer') >= 0,
            isLeft: position.indexOf('left') >= 0,
            isCenter: position.indexOf('center') >= 0,
            isRight: position.indexOf('right') >= 0,
            isTop: position.indexOf('top') >= 0,
            isMiddle: position.indexOf('middle') >= 0,
            isBottom: position.indexOf('bottom') >= 0
        };
    };
    c3_axis_fn.getXAxisLabelPosition = function getXAxisLabelPosition() {
        return this.getLabelPosition('x', this.owner.config.axis_rotated ? 'inner-top' : 'inner-right');
    };
    c3_axis_fn.getYAxisLabelPosition = function getYAxisLabelPosition() {
        return this.getLabelPosition('y', this.owner.config.axis_rotated ? 'inner-right' : 'inner-top');
    };
    c3_axis_fn.getY2AxisLabelPosition = function getY2AxisLabelPosition() {
        return this.getLabelPosition('y2', this.owner.config.axis_rotated ? 'inner-right' : 'inner-top');
    };
    c3_axis_fn.getLabelPositionById = function getLabelPositionById(id) {
        return id === 'y2' ? this.getY2AxisLabelPosition() : id === 'y' ? this.getYAxisLabelPosition() : this.getXAxisLabelPosition();
    };
    c3_axis_fn.textForXAxisLabel = function textForXAxisLabel() {
        return this.getLabelText('x');
    };
    c3_axis_fn.textForYAxisLabel = function textForYAxisLabel() {
        return this.getLabelText('y');
    };
    c3_axis_fn.textForY2AxisLabel = function textForY2AxisLabel() {
        return this.getLabelText('y2');
    };
    c3_axis_fn.xForAxisLabel = function xForAxisLabel(forHorizontal, position) {
        var $$ = this.owner;
        if (forHorizontal) {
            return position.isLeft ? 0 : position.isCenter ? $$.width / 2 : $$.width;
        } else {
            return position.isBottom ? -$$.height : position.isMiddle ? -$$.height / 2 : 0;
        }
    };
    c3_axis_fn.dxForAxisLabel = function dxForAxisLabel(forHorizontal, position) {
        if (forHorizontal) {
            return position.isLeft ? "0.5em" : position.isRight ? "-0.5em" : "0";
        } else {
            return position.isTop ? "-0.5em" : position.isBottom ? "0.5em" : "0";
        }
    };
    c3_axis_fn.textAnchorForAxisLabel = function textAnchorForAxisLabel(forHorizontal, position) {
        if (forHorizontal) {
            return position.isLeft ? 'start' : position.isCenter ? 'middle' : 'end';
        } else {
            return position.isBottom ? 'start' : position.isMiddle ? 'middle' : 'end';
        }
    };
    c3_axis_fn.xForXAxisLabel = function xForXAxisLabel() {
        return this.xForAxisLabel(!this.owner.config.axis_rotated, this.getXAxisLabelPosition());
    };
    c3_axis_fn.xForYAxisLabel = function xForYAxisLabel() {
        return this.xForAxisLabel(this.owner.config.axis_rotated, this.getYAxisLabelPosition());
    };
    c3_axis_fn.xForY2AxisLabel = function xForY2AxisLabel() {
        return this.xForAxisLabel(this.owner.config.axis_rotated, this.getY2AxisLabelPosition());
    };
    c3_axis_fn.dxForXAxisLabel = function dxForXAxisLabel() {
        return this.dxForAxisLabel(!this.owner.config.axis_rotated, this.getXAxisLabelPosition());
    };
    c3_axis_fn.dxForYAxisLabel = function dxForYAxisLabel() {
        return this.dxForAxisLabel(this.owner.config.axis_rotated, this.getYAxisLabelPosition());
    };
    c3_axis_fn.dxForY2AxisLabel = function dxForY2AxisLabel() {
        return this.dxForAxisLabel(this.owner.config.axis_rotated, this.getY2AxisLabelPosition());
    };
    c3_axis_fn.dyForXAxisLabel = function dyForXAxisLabel() {
        var $$ = this.owner,
            config = $$.config,
            position = this.getXAxisLabelPosition();
        if (config.axis_rotated) {
            return position.isInner ? "1.2em" : -25 - ($$.config.axis_x_inner ? 0 : this.getMaxTickWidth('x'));
        } else {
            return position.isInner ? "-0.5em" : config.axis_x_height ? config.axis_x_height - 10 : "3em";
        }
    };
    c3_axis_fn.dyForYAxisLabel = function dyForYAxisLabel() {
        var $$ = this.owner,
            position = this.getYAxisLabelPosition();
        if ($$.config.axis_rotated) {
            return position.isInner ? "-0.5em" : "3em";
        } else {
            return position.isInner ? "1.2em" : -10 - ($$.config.axis_y_inner ? 0 : this.getMaxTickWidth('y') + 10);
        }
    };
    c3_axis_fn.dyForY2AxisLabel = function dyForY2AxisLabel() {
        var $$ = this.owner,
            position = this.getY2AxisLabelPosition();
        if ($$.config.axis_rotated) {
            return position.isInner ? "1.2em" : "-2.2em";
        } else {
            return position.isInner ? "-0.5em" : 15 + ($$.config.axis_y2_inner ? 0 : this.getMaxTickWidth('y2') + 15);
        }
    };
    c3_axis_fn.textAnchorForXAxisLabel = function textAnchorForXAxisLabel() {
        var $$ = this.owner;
        return this.textAnchorForAxisLabel(!$$.config.axis_rotated, this.getXAxisLabelPosition());
    };
    c3_axis_fn.textAnchorForYAxisLabel = function textAnchorForYAxisLabel() {
        var $$ = this.owner;
        return this.textAnchorForAxisLabel($$.config.axis_rotated, this.getYAxisLabelPosition());
    };
    c3_axis_fn.textAnchorForY2AxisLabel = function textAnchorForY2AxisLabel() {
        var $$ = this.owner;
        return this.textAnchorForAxisLabel($$.config.axis_rotated, this.getY2AxisLabelPosition());
    };
    c3_axis_fn.getMaxTickWidth = function getMaxTickWidth(id, withoutRecompute) {
        var $$ = this.owner,
            config = $$.config,
            maxWidth = 0,
            targetsToShow,
            scale,
            axis,
            dummy,
            svg;
        if (withoutRecompute && $$.currentMaxTickWidths[id]) {
            return $$.currentMaxTickWidths[id];
        }
        if ($$.svg) {
            targetsToShow = $$.filterTargetsToShow($$.data.targets);
            if (id === 'y') {
                scale = $$.y.copy().domain($$.getYDomain(targetsToShow, 'y'));
                axis = this.getYAxis(scale, $$.yOrient, config.axis_y_tick_format, $$.yAxisTickValues, false, true, true);
            } else if (id === 'y2') {
                scale = $$.y2.copy().domain($$.getYDomain(targetsToShow, 'y2'));
                axis = this.getYAxis(scale, $$.y2Orient, config.axis_y2_tick_format, $$.y2AxisTickValues, false, true, true);
            } else {
                scale = $$.x.copy().domain($$.getXDomain(targetsToShow));
                axis = this.getXAxis(scale, $$.xOrient, $$.xAxisTickFormat, $$.xAxisTickValues, false, true, true);
                this.updateXAxisTickValues(targetsToShow, axis);
            }
            dummy = $$.d3.select('body').append('div').classed('c3', true);
            svg = dummy.append("svg").style('visibility', 'hidden').style('position', 'fixed').style('top', 0).style('left', 0), svg.append('g').call(axis).each(function () {
                $$.d3.select(this).selectAll('text').each(function () {
                    var box = this.getBoundingClientRect();
                    if (maxWidth < box.width) {
                        maxWidth = box.width;
                    }
                });
                dummy.remove();
            });
        }
        $$.currentMaxTickWidths[id] = maxWidth <= 0 ? $$.currentMaxTickWidths[id] : maxWidth;
        return $$.currentMaxTickWidths[id];
    };

    c3_axis_fn.updateLabels = function updateLabels(withTransition) {
        var $$ = this.owner;
        var axisXLabel = $$.main.select('.' + CLASS.axisX + ' .' + CLASS.axisXLabel),
            axisYLabel = $$.main.select('.' + CLASS.axisY + ' .' + CLASS.axisYLabel),
            axisY2Label = $$.main.select('.' + CLASS.axisY2 + ' .' + CLASS.axisY2Label);
        (withTransition ? axisXLabel.transition() : axisXLabel).attr("x", this.xForXAxisLabel.bind(this)).attr("dx", this.dxForXAxisLabel.bind(this)).attr("dy", this.dyForXAxisLabel.bind(this)).text(this.textForXAxisLabel.bind(this));
        (withTransition ? axisYLabel.transition() : axisYLabel).attr("x", this.xForYAxisLabel.bind(this)).attr("dx", this.dxForYAxisLabel.bind(this)).attr("dy", this.dyForYAxisLabel.bind(this)).text(this.textForYAxisLabel.bind(this));
        (withTransition ? axisY2Label.transition() : axisY2Label).attr("x", this.xForY2AxisLabel.bind(this)).attr("dx", this.dxForY2AxisLabel.bind(this)).attr("dy", this.dyForY2AxisLabel.bind(this)).text(this.textForY2AxisLabel.bind(this));
    };
    c3_axis_fn.getPadding = function getPadding(padding, key, defaultValue, domainLength) {
        var p = typeof padding === 'number' ? padding : padding[key];
        if (!isValue(p)) {
            return defaultValue;
        }
        if (padding.unit === 'ratio') {
            return padding[key] * domainLength;
        }
        // assume padding is pixels if unit is not specified
        return this.convertPixelsToAxisPadding(p, domainLength);
    };
    c3_axis_fn.convertPixelsToAxisPadding = function convertPixelsToAxisPadding(pixels, domainLength) {
        var $$ = this.owner,
            length = $$.config.axis_rotated ? $$.width : $$.height;
        return domainLength * (pixels / length);
    };
    c3_axis_fn.generateTickValues = function generateTickValues(values, tickCount, forTimeSeries) {
        var tickValues = values,
            targetCount,
            start,
            end,
            count,
            interval,
            i,
            tickValue;
        if (tickCount) {
            targetCount = isFunction(tickCount) ? tickCount() : tickCount;
            // compute ticks according to tickCount
            if (targetCount === 1) {
                tickValues = [values[0]];
            } else if (targetCount === 2) {
                tickValues = [values[0], values[values.length - 1]];
            } else if (targetCount > 2) {
                count = targetCount - 2;
                start = values[0];
                end = values[values.length - 1];
                interval = (end - start) / (count + 1);
                // re-construct unique values
                tickValues = [start];
                for (i = 0; i < count; i++) {
                    tickValue = +start + interval * (i + 1);
                    tickValues.push(forTimeSeries ? new Date(tickValue) : tickValue);
                }
                tickValues.push(end);
            }
        }
        if (!forTimeSeries) {
            tickValues = tickValues.sort(function (a, b) {
                return a - b;
            });
        }
        return tickValues;
    };
    c3_axis_fn.generateTransitions = function generateTransitions(duration) {
        var $$ = this.owner,
            axes = $$.axes;
        return {
            axisX: duration ? axes.x.transition().duration(duration) : axes.x,
            axisY: duration ? axes.y.transition().duration(duration) : axes.y,
            axisY2: duration ? axes.y2.transition().duration(duration) : axes.y2,
            axisSubX: duration ? axes.subx.transition().duration(duration) : axes.subx
        };
    };
    c3_axis_fn.redraw = function redraw(transitions, isHidden) {
        var $$ = this.owner;
        $$.axes.x.style("opacity", isHidden ? 0 : 1);
        $$.axes.y.style("opacity", isHidden ? 0 : 1);
        $$.axes.y2.style("opacity", isHidden ? 0 : 1);
        $$.axes.subx.style("opacity", isHidden ? 0 : 1);
        transitions.axisX.call($$.xAxis);
        transitions.axisY.call($$.yAxis);
        transitions.axisY2.call($$.y2Axis);
        transitions.axisSubX.call($$.subXAxis);
    };

    var c3 = { version: "0.4.23" };

    var c3_chart_fn;
    var c3_chart_internal_fn;

    function Component(owner, componentKey, fn) {
        this.owner = owner;
        c3.chart.internal[componentKey] = fn;
    }

    function Chart(config) {
        var $$ = this.internal = new ChartInternal(this);
        $$.loadConfig(config);

        $$.beforeInit(config);
        $$.init();
        $$.afterInit(config);

        // bind "this" to nested API
        (function bindThis(fn, target, argThis) {
            Object.keys(fn).forEach(function (key) {
                target[key] = fn[key].bind(argThis);
                if (Object.keys(fn[key]).length > 0) {
                    bindThis(fn[key], target[key], argThis);
                }
            });
        })(c3_chart_fn, this, this);
    }

    function ChartInternal(api) {
        var $$ = this;
        $$.d3 = window.d3 ? window.d3 :  true ? __webpack_require__(/*! d3 */ "./node_modules/d3/d3.js") : undefined;
        $$.api = api;
        $$.config = $$.getDefaultConfig();
        $$.data = {};
        $$.cache = {};
        $$.axes = {};
    }

    c3.generate = function (config) {
        return new Chart(config);
    };

    c3.chart = {
        fn: Chart.prototype,
        internal: {
            fn: ChartInternal.prototype
        }
    };
    c3_chart_fn = c3.chart.fn;
    c3_chart_internal_fn = c3.chart.internal.fn;

    c3_chart_internal_fn.beforeInit = function () {
        // can do something
    };
    c3_chart_internal_fn.afterInit = function () {
        // can do something
    };
    c3_chart_internal_fn.init = function () {
        var $$ = this,
            config = $$.config;

        $$.initParams();

        if (config.data_url) {
            $$.convertUrlToData(config.data_url, config.data_mimeType, config.data_headers, config.data_keys, $$.initWithData);
        } else if (config.data_json) {
            $$.initWithData($$.convertJsonToData(config.data_json, config.data_keys));
        } else if (config.data_rows) {
            $$.initWithData($$.convertRowsToData(config.data_rows));
        } else if (config.data_columns) {
            $$.initWithData($$.convertColumnsToData(config.data_columns));
        } else {
            throw Error('url or json or rows or columns is required.');
        }
    };

    c3_chart_internal_fn.initParams = function () {
        var $$ = this,
            d3 = $$.d3,
            config = $$.config;

        // MEMO: clipId needs to be unique because it conflicts when multiple charts exist
        $$.clipId = "c3-" + +new Date() + '-clip', $$.clipIdForXAxis = $$.clipId + '-xaxis', $$.clipIdForYAxis = $$.clipId + '-yaxis', $$.clipIdForGrid = $$.clipId + '-grid', $$.clipIdForSubchart = $$.clipId + '-subchart', $$.clipPath = $$.getClipPath($$.clipId), $$.clipPathForXAxis = $$.getClipPath($$.clipIdForXAxis), $$.clipPathForYAxis = $$.getClipPath($$.clipIdForYAxis);
        $$.clipPathForGrid = $$.getClipPath($$.clipIdForGrid), $$.clipPathForSubchart = $$.getClipPath($$.clipIdForSubchart), $$.dragStart = null;
        $$.dragging = false;
        $$.flowing = false;
        $$.cancelClick = false;
        $$.mouseover = false;
        $$.transiting = false;

        $$.color = $$.generateColor();
        $$.levelColor = $$.generateLevelColor();

        $$.dataTimeFormat = config.data_xLocaltime ? d3.time.format : d3.time.format.utc;
        $$.axisTimeFormat = config.axis_x_localtime ? d3.time.format : d3.time.format.utc;
        $$.defaultAxisTimeFormat = $$.axisTimeFormat.multi([[".%L", function (d) {
            return d.getMilliseconds();
        }], [":%S", function (d) {
            return d.getSeconds();
        }], ["%I:%M", function (d) {
            return d.getMinutes();
        }], ["%I %p", function (d) {
            return d.getHours();
        }], ["%-m/%-d", function (d) {
            return d.getDay() && d.getDate() !== 1;
        }], ["%-m/%-d", function (d) {
            return d.getDate() !== 1;
        }], ["%-m/%-d", function (d) {
            return d.getMonth();
        }], ["%Y/%-m/%-d", function () {
            return true;
        }]]);

        $$.hiddenTargetIds = [];
        $$.hiddenLegendIds = [];
        $$.focusedTargetIds = [];
        $$.defocusedTargetIds = [];

        $$.xOrient = config.axis_rotated ? config.axis_x_inner ? "right" : "left" : config.axis_x_inner ? "top" : "bottom";
        $$.yOrient = config.axis_rotated ? config.axis_y_inner ? "top" : "bottom" : config.axis_y_inner ? "right" : "left";
        $$.y2Orient = config.axis_rotated ? config.axis_y2_inner ? "bottom" : "top" : config.axis_y2_inner ? "left" : "right";
        $$.subXOrient = config.axis_rotated ? "left" : "bottom";

        $$.isLegendRight = config.legend_position === 'right';
        $$.isLegendInset = config.legend_position === 'inset';
        $$.isLegendTop = config.legend_inset_anchor === 'top-left' || config.legend_inset_anchor === 'top-right';
        $$.isLegendLeft = config.legend_inset_anchor === 'top-left' || config.legend_inset_anchor === 'bottom-left';
        $$.legendStep = 0;
        $$.legendItemWidth = 0;
        $$.legendItemHeight = 0;

        $$.currentMaxTickWidths = {
            x: 0,
            y: 0,
            y2: 0
        };

        $$.rotated_padding_left = 30;
        $$.rotated_padding_right = config.axis_rotated && !config.axis_x_show ? 0 : 30;
        $$.rotated_padding_top = 5;

        $$.withoutFadeIn = {};

        $$.intervalForObserveInserted = undefined;

        $$.axes.subx = d3.selectAll([]); // needs when excluding subchart.js
    };

    c3_chart_internal_fn.initChartElements = function () {
        if (this.initBar) {
            this.initBar();
        }
        if (this.initLine) {
            this.initLine();
        }
        if (this.initArc) {
            this.initArc();
        }
        if (this.initGauge) {
            this.initGauge();
        }
        if (this.initText) {
            this.initText();
        }
    };

    c3_chart_internal_fn.initWithData = function (data) {
        var $$ = this,
            d3 = $$.d3,
            config = $$.config;
        var defs,
            main,
            binding = true;

        $$.axis = new Axis($$);

        if ($$.initPie) {
            $$.initPie();
        }
        if ($$.initBrush) {
            $$.initBrush();
        }
        if ($$.initZoom) {
            $$.initZoom();
        }

        if (!config.bindto) {
            $$.selectChart = d3.selectAll([]);
        } else if (typeof config.bindto.node === 'function') {
            $$.selectChart = config.bindto;
        } else {
            $$.selectChart = d3.select(config.bindto);
        }
        if ($$.selectChart.empty()) {
            $$.selectChart = d3.select(document.createElement('div')).style('opacity', 0);
            $$.observeInserted($$.selectChart);
            binding = false;
        }
        $$.selectChart.html("").classed("c3", true);

        // Init data as targets
        $$.data.xs = {};
        $$.data.targets = $$.convertDataToTargets(data);

        if (config.data_filter) {
            $$.data.targets = $$.data.targets.filter(config.data_filter);
        }

        // Set targets to hide if needed
        if (config.data_hide) {
            $$.addHiddenTargetIds(config.data_hide === true ? $$.mapToIds($$.data.targets) : config.data_hide);
        }
        if (config.legend_hide) {
            $$.addHiddenLegendIds(config.legend_hide === true ? $$.mapToIds($$.data.targets) : config.legend_hide);
        }

        // Init sizes and scales
        $$.updateSizes();
        $$.updateScales();

        // Set domains for each scale
        $$.x.domain(d3.extent($$.getXDomain($$.data.targets)));
        $$.y.domain($$.getYDomain($$.data.targets, 'y'));
        $$.y2.domain($$.getYDomain($$.data.targets, 'y2'));
        $$.subX.domain($$.x.domain());
        $$.subY.domain($$.y.domain());
        $$.subY2.domain($$.y2.domain());

        // Save original x domain for zoom update
        $$.orgXDomain = $$.x.domain();

        // Set initialized scales to brush and zoom
        if ($$.brush) {
            $$.brush.scale($$.subX);
        }
        if (config.zoom_enabled) {
            $$.zoom.scale($$.x);
        }

        /*-- Basic Elements --*/

        // Define svgs
        $$.svg = $$.selectChart.append("svg").style("overflow", "hidden").on('mouseenter', function () {
            return config.onmouseover.call($$);
        }).on('mouseleave', function () {
            return config.onmouseout.call($$);
        });

        if ($$.config.svg_classname) {
            $$.svg.attr('class', $$.config.svg_classname);
        }

        // Define defs
        defs = $$.svg.append("defs");
        $$.clipChart = $$.appendClip(defs, $$.clipId);
        $$.clipXAxis = $$.appendClip(defs, $$.clipIdForXAxis);
        $$.clipYAxis = $$.appendClip(defs, $$.clipIdForYAxis);
        $$.clipGrid = $$.appendClip(defs, $$.clipIdForGrid);
        $$.clipSubchart = $$.appendClip(defs, $$.clipIdForSubchart);
        $$.updateSvgSize();

        // Define regions
        main = $$.main = $$.svg.append("g").attr("transform", $$.getTranslate('main'));

        if ($$.initSubchart) {
            $$.initSubchart();
        }
        if ($$.initTooltip) {
            $$.initTooltip();
        }
        if ($$.initLegend) {
            $$.initLegend();
        }
        if ($$.initTitle) {
            $$.initTitle();
        }

        /*-- Main Region --*/

        // text when empty
        main.append("text").attr("class", CLASS.text + ' ' + CLASS.empty).attr("text-anchor", "middle") // horizontal centering of text at x position in all browsers.
        .attr("dominant-baseline", "middle"); // vertical centering of text at y position in all browsers, except IE.

        // Regions
        $$.initRegion();

        // Grids
        $$.initGrid();

        // Define g for chart area
        main.append('g').attr("clip-path", $$.clipPath).attr('class', CLASS.chart);

        // Grid lines
        if (config.grid_lines_front) {
            $$.initGridLines();
        }

        // Cover whole with rects for events
        $$.initEventRect();

        // Define g for chart
        $$.initChartElements();

        // if zoom privileged, insert rect to forefront
        // TODO: is this needed?
        main.insert('rect', config.zoom_privileged ? null : 'g.' + CLASS.regions).attr('class', CLASS.zoomRect).attr('width', $$.width).attr('height', $$.height).style('opacity', 0).on("dblclick.zoom", null);

        // Set default extent if defined
        if (config.axis_x_extent) {
            $$.brush.extent($$.getDefaultExtent());
        }

        // Add Axis
        $$.axis.init();

        // Set targets
        $$.updateTargets($$.data.targets);

        // Draw with targets
        if (binding) {
            $$.updateDimension();
            $$.config.oninit.call($$);
            $$.redraw({
                withTransition: false,
                withTransform: true,
                withUpdateXDomain: true,
                withUpdateOrgXDomain: true,
                withTransitionForAxis: false
            });
        }

        // Bind resize event
        $$.bindResize();

        // export element of the chart
        $$.api.element = $$.selectChart.node();
    };

    c3_chart_internal_fn.smoothLines = function (el, type) {
        var $$ = this;
        if (type === 'grid') {
            el.each(function () {
                var g = $$.d3.select(this),
                    x1 = g.attr('x1'),
                    x2 = g.attr('x2'),
                    y1 = g.attr('y1'),
                    y2 = g.attr('y2');
                g.attr({
                    'x1': Math.ceil(x1),
                    'x2': Math.ceil(x2),
                    'y1': Math.ceil(y1),
                    'y2': Math.ceil(y2)
                });
            });
        }
    };

    c3_chart_internal_fn.updateSizes = function () {
        var $$ = this,
            config = $$.config;
        var legendHeight = $$.legend ? $$.getLegendHeight() : 0,
            legendWidth = $$.legend ? $$.getLegendWidth() : 0,
            legendHeightForBottom = $$.isLegendRight || $$.isLegendInset ? 0 : legendHeight,
            hasArc = $$.hasArcType(),
            xAxisHeight = config.axis_rotated || hasArc ? 0 : $$.getHorizontalAxisHeight('x'),
            subchartHeight = config.subchart_show && !hasArc ? config.subchart_size_height + xAxisHeight : 0;

        $$.currentWidth = $$.getCurrentWidth();
        $$.currentHeight = $$.getCurrentHeight();

        // for main
        $$.margin = config.axis_rotated ? {
            top: $$.getHorizontalAxisHeight('y2') + $$.getCurrentPaddingTop(),
            right: hasArc ? 0 : $$.getCurrentPaddingRight(),
            bottom: $$.getHorizontalAxisHeight('y') + legendHeightForBottom + $$.getCurrentPaddingBottom(),
            left: subchartHeight + (hasArc ? 0 : $$.getCurrentPaddingLeft())
        } : {
            top: 4 + $$.getCurrentPaddingTop(), // for top tick text
            right: hasArc ? 0 : $$.getCurrentPaddingRight(),
            bottom: xAxisHeight + subchartHeight + legendHeightForBottom + $$.getCurrentPaddingBottom(),
            left: hasArc ? 0 : $$.getCurrentPaddingLeft()
        };

        // for subchart
        $$.margin2 = config.axis_rotated ? {
            top: $$.margin.top,
            right: NaN,
            bottom: 20 + legendHeightForBottom,
            left: $$.rotated_padding_left
        } : {
            top: $$.currentHeight - subchartHeight - legendHeightForBottom,
            right: NaN,
            bottom: xAxisHeight + legendHeightForBottom,
            left: $$.margin.left
        };

        // for legend
        $$.margin3 = {
            top: 0,
            right: NaN,
            bottom: 0,
            left: 0
        };
        if ($$.updateSizeForLegend) {
            $$.updateSizeForLegend(legendHeight, legendWidth);
        }

        $$.width = $$.currentWidth - $$.margin.left - $$.margin.right;
        $$.height = $$.currentHeight - $$.margin.top - $$.margin.bottom;
        if ($$.width < 0) {
            $$.width = 0;
        }
        if ($$.height < 0) {
            $$.height = 0;
        }

        $$.width2 = config.axis_rotated ? $$.margin.left - $$.rotated_padding_left - $$.rotated_padding_right : $$.width;
        $$.height2 = config.axis_rotated ? $$.height : $$.currentHeight - $$.margin2.top - $$.margin2.bottom;
        if ($$.width2 < 0) {
            $$.width2 = 0;
        }
        if ($$.height2 < 0) {
            $$.height2 = 0;
        }

        // for arc
        $$.arcWidth = $$.width - ($$.isLegendRight ? legendWidth + 10 : 0);
        $$.arcHeight = $$.height - ($$.isLegendRight ? 0 : 10);
        if ($$.hasType('gauge') && !config.gauge_fullCircle) {
            $$.arcHeight += $$.height - $$.getGaugeLabelHeight();
        }
        if ($$.updateRadius) {
            $$.updateRadius();
        }

        if ($$.isLegendRight && hasArc) {
            $$.margin3.left = $$.arcWidth / 2 + $$.radiusExpanded * 1.1;
        }
    };

    c3_chart_internal_fn.updateTargets = function (targets) {
        var $$ = this;

        /*-- Main --*/

        //-- Text --//
        $$.updateTargetsForText(targets);

        //-- Bar --//
        $$.updateTargetsForBar(targets);

        //-- Line --//
        $$.updateTargetsForLine(targets);

        //-- Arc --//
        if ($$.hasArcType() && $$.updateTargetsForArc) {
            $$.updateTargetsForArc(targets);
        }

        /*-- Sub --*/

        if ($$.updateTargetsForSubchart) {
            $$.updateTargetsForSubchart(targets);
        }

        // Fade-in each chart
        $$.showTargets();
    };
    c3_chart_internal_fn.showTargets = function () {
        var $$ = this;
        $$.svg.selectAll('.' + CLASS.target).filter(function (d) {
            return $$.isTargetToShow(d.id);
        }).transition().duration($$.config.transition_duration).style("opacity", 1);
    };

    c3_chart_internal_fn.redraw = function (options, transitions) {
        var $$ = this,
            main = $$.main,
            d3 = $$.d3,
            config = $$.config;
        var areaIndices = $$.getShapeIndices($$.isAreaType),
            barIndices = $$.getShapeIndices($$.isBarType),
            lineIndices = $$.getShapeIndices($$.isLineType);
        var withY, withSubchart, withTransition, withTransitionForExit, withTransitionForAxis, withTransform, withUpdateXDomain, withUpdateOrgXDomain, withTrimXDomain, withLegend, withEventRect, withDimension, withUpdateXAxis;
        var hideAxis = $$.hasArcType();
        var drawArea, drawBar, drawLine, xForText, yForText;
        var duration, durationForExit, durationForAxis;
        var waitForDraw, flow;
        var targetsToShow = $$.filterTargetsToShow($$.data.targets),
            tickValues,
            i,
            intervalForCulling,
            xDomainForZoom;
        var xv = $$.xv.bind($$),
            cx,
            cy;

        options = options || {};
        withY = getOption(options, "withY", true);
        withSubchart = getOption(options, "withSubchart", true);
        withTransition = getOption(options, "withTransition", true);
        withTransform = getOption(options, "withTransform", false);
        withUpdateXDomain = getOption(options, "withUpdateXDomain", false);
        withUpdateOrgXDomain = getOption(options, "withUpdateOrgXDomain", false);
        withTrimXDomain = getOption(options, "withTrimXDomain", true);
        withUpdateXAxis = getOption(options, "withUpdateXAxis", withUpdateXDomain);
        withLegend = getOption(options, "withLegend", false);
        withEventRect = getOption(options, "withEventRect", true);
        withDimension = getOption(options, "withDimension", true);
        withTransitionForExit = getOption(options, "withTransitionForExit", withTransition);
        withTransitionForAxis = getOption(options, "withTransitionForAxis", withTransition);

        duration = withTransition ? config.transition_duration : 0;
        durationForExit = withTransitionForExit ? duration : 0;
        durationForAxis = withTransitionForAxis ? duration : 0;

        transitions = transitions || $$.axis.generateTransitions(durationForAxis);

        // update legend and transform each g
        if (withLegend && config.legend_show) {
            $$.updateLegend($$.mapToIds($$.data.targets), options, transitions);
        } else if (withDimension) {
            // need to update dimension (e.g. axis.y.tick.values) because y tick values should change
            // no need to update axis in it because they will be updated in redraw()
            $$.updateDimension(true);
        }

        // MEMO: needed for grids calculation
        if ($$.isCategorized() && targetsToShow.length === 0) {
            $$.x.domain([0, $$.axes.x.selectAll('.tick').size()]);
        }

        if (targetsToShow.length) {
            $$.updateXDomain(targetsToShow, withUpdateXDomain, withUpdateOrgXDomain, withTrimXDomain);
            if (!config.axis_x_tick_values) {
                tickValues = $$.axis.updateXAxisTickValues(targetsToShow);
            }
        } else {
            $$.xAxis.tickValues([]);
            $$.subXAxis.tickValues([]);
        }

        if (config.zoom_rescale && !options.flow) {
            xDomainForZoom = $$.x.orgDomain();
        }

        $$.y.domain($$.getYDomain(targetsToShow, 'y', xDomainForZoom));
        $$.y2.domain($$.getYDomain(targetsToShow, 'y2', xDomainForZoom));

        if (!config.axis_y_tick_values && config.axis_y_tick_count) {
            $$.yAxis.tickValues($$.axis.generateTickValues($$.y.domain(), config.axis_y_tick_count));
        }
        if (!config.axis_y2_tick_values && config.axis_y2_tick_count) {
            $$.y2Axis.tickValues($$.axis.generateTickValues($$.y2.domain(), config.axis_y2_tick_count));
        }

        // axes
        $$.axis.redraw(transitions, hideAxis);

        // Update axis label
        $$.axis.updateLabels(withTransition);

        // show/hide if manual culling needed
        if ((withUpdateXDomain || withUpdateXAxis) && targetsToShow.length) {
            if (config.axis_x_tick_culling && tickValues) {
                for (i = 1; i < tickValues.length; i++) {
                    if (tickValues.length / i < config.axis_x_tick_culling_max) {
                        intervalForCulling = i;
                        break;
                    }
                }
                $$.svg.selectAll('.' + CLASS.axisX + ' .tick text').each(function (e) {
                    var index = tickValues.indexOf(e);
                    if (index >= 0) {
                        d3.select(this).style('display', index % intervalForCulling ? 'none' : 'block');
                    }
                });
            } else {
                $$.svg.selectAll('.' + CLASS.axisX + ' .tick text').style('display', 'block');
            }
        }

        // setup drawer - MEMO: these must be called after axis updated
        drawArea = $$.generateDrawArea ? $$.generateDrawArea(areaIndices, false) : undefined;
        drawBar = $$.generateDrawBar ? $$.generateDrawBar(barIndices) : undefined;
        drawLine = $$.generateDrawLine ? $$.generateDrawLine(lineIndices, false) : undefined;
        xForText = $$.generateXYForText(areaIndices, barIndices, lineIndices, true);
        yForText = $$.generateXYForText(areaIndices, barIndices, lineIndices, false);

        // Update sub domain
        if (withY) {
            $$.subY.domain($$.getYDomain(targetsToShow, 'y'));
            $$.subY2.domain($$.getYDomain(targetsToShow, 'y2'));
        }

        // xgrid focus
        $$.updateXgridFocus();

        // Data empty label positioning and text.
        main.select("text." + CLASS.text + '.' + CLASS.empty).attr("x", $$.width / 2).attr("y", $$.height / 2).text(config.data_empty_label_text).transition().style('opacity', targetsToShow.length ? 0 : 1);

        // grid
        $$.updateGrid(duration);

        // rect for regions
        $$.updateRegion(duration);

        // bars
        $$.updateBar(durationForExit);

        // lines, areas and cricles
        $$.updateLine(durationForExit);
        $$.updateArea(durationForExit);
        $$.updateCircle();

        // text
        if ($$.hasDataLabel()) {
            $$.updateText(durationForExit);
        }

        // title
        if ($$.redrawTitle) {
            $$.redrawTitle();
        }

        // arc
        if ($$.redrawArc) {
            $$.redrawArc(duration, durationForExit, withTransform);
        }

        // subchart
        if ($$.redrawSubchart) {
            $$.redrawSubchart(withSubchart, transitions, duration, durationForExit, areaIndices, barIndices, lineIndices);
        }

        // circles for select
        main.selectAll('.' + CLASS.selectedCircles).filter($$.isBarType.bind($$)).selectAll('circle').remove();

        // event rects will redrawn when flow called
        if (config.interaction_enabled && !options.flow && withEventRect) {
            $$.redrawEventRect();
            if ($$.updateZoom) {
                $$.updateZoom();
            }
        }

        // update circleY based on updated parameters
        $$.updateCircleY();

        // generate circle x/y functions depending on updated params
        cx = ($$.config.axis_rotated ? $$.circleY : $$.circleX).bind($$);
        cy = ($$.config.axis_rotated ? $$.circleX : $$.circleY).bind($$);

        if (options.flow) {
            flow = $$.generateFlow({
                targets: targetsToShow,
                flow: options.flow,
                duration: options.flow.duration,
                drawBar: drawBar,
                drawLine: drawLine,
                drawArea: drawArea,
                cx: cx,
                cy: cy,
                xv: xv,
                xForText: xForText,
                yForText: yForText
            });
        }

        if ((duration || flow) && $$.isTabVisible()) {
            // Only use transition if tab visible. See #938.
            // transition should be derived from one transition
            d3.transition().duration(duration).each(function () {
                var transitionsToWait = [];

                // redraw and gather transitions
                [$$.redrawBar(drawBar, true), $$.redrawLine(drawLine, true), $$.redrawArea(drawArea, true), $$.redrawCircle(cx, cy, true), $$.redrawText(xForText, yForText, options.flow, true), $$.redrawRegion(true), $$.redrawGrid(true)].forEach(function (transitions) {
                    transitions.forEach(function (transition) {
                        transitionsToWait.push(transition);
                    });
                });

                // Wait for end of transitions to call flow and onrendered callback
                waitForDraw = $$.generateWait();
                transitionsToWait.forEach(function (t) {
                    waitForDraw.add(t);
                });
            }).call(waitForDraw, function () {
                if (flow) {
                    flow();
                }
                if (config.onrendered) {
                    config.onrendered.call($$);
                }
            });
        } else {
            $$.redrawBar(drawBar);
            $$.redrawLine(drawLine);
            $$.redrawArea(drawArea);
            $$.redrawCircle(cx, cy);
            $$.redrawText(xForText, yForText, options.flow);
            $$.redrawRegion();
            $$.redrawGrid();
            if (config.onrendered) {
                config.onrendered.call($$);
            }
        }

        // update fadein condition
        $$.mapToIds($$.data.targets).forEach(function (id) {
            $$.withoutFadeIn[id] = true;
        });
    };

    c3_chart_internal_fn.updateAndRedraw = function (options) {
        var $$ = this,
            config = $$.config,
            transitions;
        options = options || {};
        // same with redraw
        options.withTransition = getOption(options, "withTransition", true);
        options.withTransform = getOption(options, "withTransform", false);
        options.withLegend = getOption(options, "withLegend", false);
        // NOT same with redraw
        options.withUpdateXDomain = true;
        options.withUpdateOrgXDomain = true;
        options.withTransitionForExit = false;
        options.withTransitionForTransform = getOption(options, "withTransitionForTransform", options.withTransition);
        // MEMO: this needs to be called before updateLegend and it means this ALWAYS needs to be called)
        $$.updateSizes();
        // MEMO: called in updateLegend in redraw if withLegend
        if (!(options.withLegend && config.legend_show)) {
            transitions = $$.axis.generateTransitions(options.withTransitionForAxis ? config.transition_duration : 0);
            // Update scales
            $$.updateScales();
            $$.updateSvgSize();
            // Update g positions
            $$.transformAll(options.withTransitionForTransform, transitions);
        }
        // Draw with new sizes & scales
        $$.redraw(options, transitions);
    };
    c3_chart_internal_fn.redrawWithoutRescale = function () {
        this.redraw({
            withY: false,
            withSubchart: false,
            withEventRect: false,
            withTransitionForAxis: false
        });
    };

    c3_chart_internal_fn.isTimeSeries = function () {
        return this.config.axis_x_type === 'timeseries';
    };
    c3_chart_internal_fn.isCategorized = function () {
        return this.config.axis_x_type.indexOf('categor') >= 0;
    };
    c3_chart_internal_fn.isCustomX = function () {
        var $$ = this,
            config = $$.config;
        return !$$.isTimeSeries() && (config.data_x || notEmpty(config.data_xs));
    };

    c3_chart_internal_fn.isTimeSeriesY = function () {
        return this.config.axis_y_type === 'timeseries';
    };

    c3_chart_internal_fn.getTranslate = function (target) {
        var $$ = this,
            config = $$.config,
            x,
            y;
        if (target === 'main') {
            x = asHalfPixel($$.margin.left);
            y = asHalfPixel($$.margin.top);
        } else if (target === 'context') {
            x = asHalfPixel($$.margin2.left);
            y = asHalfPixel($$.margin2.top);
        } else if (target === 'legend') {
            x = $$.margin3.left;
            y = $$.margin3.top;
        } else if (target === 'x') {
            x = 0;
            y = config.axis_rotated ? 0 : $$.height;
        } else if (target === 'y') {
            x = 0;
            y = config.axis_rotated ? $$.height : 0;
        } else if (target === 'y2') {
            x = config.axis_rotated ? 0 : $$.width;
            y = config.axis_rotated ? 1 : 0;
        } else if (target === 'subx') {
            x = 0;
            y = config.axis_rotated ? 0 : $$.height2;
        } else if (target === 'arc') {
            x = $$.arcWidth / 2;
            y = $$.arcHeight / 2 - ($$.hasType('gauge') ? 6 : 0); // to prevent wrong display of min and max label
        }
        return "translate(" + x + "," + y + ")";
    };
    c3_chart_internal_fn.initialOpacity = function (d) {
        return d.value !== null && this.withoutFadeIn[d.id] ? 1 : 0;
    };
    c3_chart_internal_fn.initialOpacityForCircle = function (d) {
        return d.value !== null && this.withoutFadeIn[d.id] ? this.opacityForCircle(d) : 0;
    };
    c3_chart_internal_fn.opacityForCircle = function (d) {
        var isPointShouldBeShown = isFunction(this.config.point_show) ? this.config.point_show(d) : this.config.point_show;
        var opacity = isPointShouldBeShown ? 1 : 0;
        return isValue(d.value) ? this.isScatterType(d) ? 0.5 : opacity : 0;
    };
    c3_chart_internal_fn.opacityForText = function () {
        return this.hasDataLabel() ? 1 : 0;
    };
    c3_chart_internal_fn.xx = function (d) {
        return d ? this.x(d.x) : null;
    };
    c3_chart_internal_fn.xv = function (d) {
        var $$ = this,
            value = d.value;
        if ($$.isTimeSeries()) {
            value = $$.parseDate(d.value);
        } else if ($$.isCategorized() && typeof d.value === 'string') {
            value = $$.config.axis_x_categories.indexOf(d.value);
        }
        return Math.ceil($$.x(value));
    };
    c3_chart_internal_fn.yv = function (d) {
        var $$ = this,
            yScale = d.axis && d.axis === 'y2' ? $$.y2 : $$.y;
        return Math.ceil(yScale(d.value));
    };
    c3_chart_internal_fn.subxx = function (d) {
        return d ? this.subX(d.x) : null;
    };

    c3_chart_internal_fn.transformMain = function (withTransition, transitions) {
        var $$ = this,
            xAxis,
            yAxis,
            y2Axis;
        if (transitions && transitions.axisX) {
            xAxis = transitions.axisX;
        } else {
            xAxis = $$.main.select('.' + CLASS.axisX);
            if (withTransition) {
                xAxis = xAxis.transition();
            }
        }
        if (transitions && transitions.axisY) {
            yAxis = transitions.axisY;
        } else {
            yAxis = $$.main.select('.' + CLASS.axisY);
            if (withTransition) {
                yAxis = yAxis.transition();
            }
        }
        if (transitions && transitions.axisY2) {
            y2Axis = transitions.axisY2;
        } else {
            y2Axis = $$.main.select('.' + CLASS.axisY2);
            if (withTransition) {
                y2Axis = y2Axis.transition();
            }
        }
        (withTransition ? $$.main.transition() : $$.main).attr("transform", $$.getTranslate('main'));
        xAxis.attr("transform", $$.getTranslate('x'));
        yAxis.attr("transform", $$.getTranslate('y'));
        y2Axis.attr("transform", $$.getTranslate('y2'));
        $$.main.select('.' + CLASS.chartArcs).attr("transform", $$.getTranslate('arc'));
    };
    c3_chart_internal_fn.transformAll = function (withTransition, transitions) {
        var $$ = this;
        $$.transformMain(withTransition, transitions);
        if ($$.config.subchart_show) {
            $$.transformContext(withTransition, transitions);
        }
        if ($$.legend) {
            $$.transformLegend(withTransition);
        }
    };

    c3_chart_internal_fn.updateSvgSize = function () {
        var $$ = this,
            brush = $$.svg.select(".c3-brush .background");
        $$.svg.attr('width', $$.currentWidth).attr('height', $$.currentHeight);
        $$.svg.selectAll(['#' + $$.clipId, '#' + $$.clipIdForGrid]).select('rect').attr('width', $$.width).attr('height', $$.height);
        $$.svg.select('#' + $$.clipIdForXAxis).select('rect').attr('x', $$.getXAxisClipX.bind($$)).attr('y', $$.getXAxisClipY.bind($$)).attr('width', $$.getXAxisClipWidth.bind($$)).attr('height', $$.getXAxisClipHeight.bind($$));
        $$.svg.select('#' + $$.clipIdForYAxis).select('rect').attr('x', $$.getYAxisClipX.bind($$)).attr('y', $$.getYAxisClipY.bind($$)).attr('width', $$.getYAxisClipWidth.bind($$)).attr('height', $$.getYAxisClipHeight.bind($$));
        $$.svg.select('#' + $$.clipIdForSubchart).select('rect').attr('width', $$.width).attr('height', brush.size() ? brush.attr('height') : 0);
        $$.svg.select('.' + CLASS.zoomRect).attr('width', $$.width).attr('height', $$.height);
        // MEMO: parent div's height will be bigger than svg when <!DOCTYPE html>
        $$.selectChart.style('max-height', $$.currentHeight + "px");
    };

    c3_chart_internal_fn.updateDimension = function (withoutAxis) {
        var $$ = this;
        if (!withoutAxis) {
            if ($$.config.axis_rotated) {
                $$.axes.x.call($$.xAxis);
                $$.axes.subx.call($$.subXAxis);
            } else {
                $$.axes.y.call($$.yAxis);
                $$.axes.y2.call($$.y2Axis);
            }
        }
        $$.updateSizes();
        $$.updateScales();
        $$.updateSvgSize();
        $$.transformAll(false);
    };

    c3_chart_internal_fn.observeInserted = function (selection) {
        var $$ = this,
            observer;
        if (typeof MutationObserver === 'undefined') {
            window.console.error("MutationObserver not defined.");
            return;
        }
        observer = new MutationObserver(function (mutations) {
            mutations.forEach(function (mutation) {
                if (mutation.type === 'childList' && mutation.previousSibling) {
                    observer.disconnect();
                    // need to wait for completion of load because size calculation requires the actual sizes determined after that completion
                    $$.intervalForObserveInserted = window.setInterval(function () {
                        // parentNode will NOT be null when completed
                        if (selection.node().parentNode) {
                            window.clearInterval($$.intervalForObserveInserted);
                            $$.updateDimension();
                            if ($$.brush) {
                                $$.brush.update();
                            }
                            $$.config.oninit.call($$);
                            $$.redraw({
                                withTransform: true,
                                withUpdateXDomain: true,
                                withUpdateOrgXDomain: true,
                                withTransition: false,
                                withTransitionForTransform: false,
                                withLegend: true
                            });
                            selection.transition().style('opacity', 1);
                        }
                    }, 10);
                }
            });
        });
        observer.observe(selection.node(), { attributes: true, childList: true, characterData: true });
    };

    c3_chart_internal_fn.bindResize = function () {
        var $$ = this,
            config = $$.config;

        $$.resizeFunction = $$.generateResize(); // need to call .remove

        $$.resizeFunction.add(function () {
            config.onresize.call($$);
        });
        if (config.resize_auto) {
            $$.resizeFunction.add(function () {
                if ($$.resizeTimeout !== undefined) {
                    window.clearTimeout($$.resizeTimeout);
                }
                $$.resizeTimeout = window.setTimeout(function () {
                    delete $$.resizeTimeout;
                    $$.api.flush();
                }, 100);
            });
        }
        $$.resizeFunction.add(function () {
            config.onresized.call($$);
        });

        $$.resizeIfElementDisplayed = function () {
            // if element not displayed skip it
            if ($$.api == null || !$$.api.element.offsetParent) {
                return;
            }

            $$.resizeFunction();
        };

        if (window.attachEvent) {
            window.attachEvent('onresize', $$.resizeIfElementDisplayed);
        } else if (window.addEventListener) {
            window.addEventListener('resize', $$.resizeIfElementDisplayed, false);
        } else {
            // fallback to this, if this is a very old browser
            var wrapper = window.onresize;
            if (!wrapper) {
                // create a wrapper that will call all charts
                wrapper = $$.generateResize();
            } else if (!wrapper.add || !wrapper.remove) {
                // there is already a handler registered, make sure we call it too
                wrapper = $$.generateResize();
                wrapper.add(window.onresize);
            }
            // add this graph to the wrapper, we will be removed if the user calls destroy
            wrapper.add($$.resizeFunction);
            window.onresize = function () {
                // if element not displayed skip it
                if (!$$.api.element.offsetParent) {
                    return;
                }

                wrapper();
            };
        }
    };

    c3_chart_internal_fn.generateResize = function () {
        var resizeFunctions = [];
        function callResizeFunctions() {
            resizeFunctions.forEach(function (f) {
                f();
            });
        }
        callResizeFunctions.add = function (f) {
            resizeFunctions.push(f);
        };
        callResizeFunctions.remove = function (f) {
            for (var i = 0; i < resizeFunctions.length; i++) {
                if (resizeFunctions[i] === f) {
                    resizeFunctions.splice(i, 1);
                    break;
                }
            }
        };
        return callResizeFunctions;
    };

    c3_chart_internal_fn.endall = function (transition, callback) {
        var n = 0;
        transition.each(function () {
            ++n;
        }).each("end", function () {
            if (! --n) {
                callback.apply(this, arguments);
            }
        });
    };
    c3_chart_internal_fn.generateWait = function () {
        var transitionsToWait = [],
            f = function f(transition, callback) {
            var timer = setInterval(function () {
                var done = 0;
                transitionsToWait.forEach(function (t) {
                    if (t.empty()) {
                        done += 1;
                        return;
                    }
                    try {
                        t.transition();
                    } catch (e) {
                        done += 1;
                    }
                });
                if (done === transitionsToWait.length) {
                    clearInterval(timer);
                    if (callback) {
                        callback();
                    }
                }
            }, 10);
        };
        f.add = function (transition) {
            transitionsToWait.push(transition);
        };
        return f;
    };

    c3_chart_internal_fn.parseDate = function (date) {
        var $$ = this,
            parsedDate;
        if (date instanceof Date) {
            parsedDate = date;
        } else if (typeof date === 'string') {
            parsedDate = $$.dataTimeFormat($$.config.data_xFormat).parse(date);
        } else if ((typeof date === 'undefined' ? 'undefined' : _typeof(date)) === 'object') {
            parsedDate = new Date(+date);
        } else if (typeof date === 'number' && !isNaN(date)) {
            parsedDate = new Date(+date);
        }
        if (!parsedDate || isNaN(+parsedDate)) {
            window.console.error("Failed to parse x '" + date + "' to Date object");
        }
        return parsedDate;
    };

    c3_chart_internal_fn.isTabVisible = function () {
        var hidden;
        if (typeof document.hidden !== "undefined") {
            // Opera 12.10 and Firefox 18 and later support
            hidden = "hidden";
        } else if (typeof document.mozHidden !== "undefined") {
            hidden = "mozHidden";
        } else if (typeof document.msHidden !== "undefined") {
            hidden = "msHidden";
        } else if (typeof document.webkitHidden !== "undefined") {
            hidden = "webkitHidden";
        }

        return document[hidden] ? false : true;
    };

    c3_chart_internal_fn.isValue = isValue;
    c3_chart_internal_fn.isFunction = isFunction;
    c3_chart_internal_fn.isString = isString;
    c3_chart_internal_fn.isUndefined = isUndefined;
    c3_chart_internal_fn.isDefined = isDefined;
    c3_chart_internal_fn.ceil10 = ceil10;
    c3_chart_internal_fn.asHalfPixel = asHalfPixel;
    c3_chart_internal_fn.diffDomain = diffDomain;
    c3_chart_internal_fn.isEmpty = isEmpty;
    c3_chart_internal_fn.notEmpty = notEmpty;
    c3_chart_internal_fn.notEmpty = notEmpty;
    c3_chart_internal_fn.getOption = getOption;
    c3_chart_internal_fn.hasValue = hasValue;
    c3_chart_internal_fn.sanitise = sanitise;
    c3_chart_internal_fn.getPathBox = getPathBox;
    c3_chart_internal_fn.CLASS = CLASS;

    /* jshint ignore:start */

    // PhantomJS doesn't have support for Function.prototype.bind, which has caused confusion. Use
    // this polyfill to avoid the confusion.
    // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind#Polyfill

    if (!Function.prototype.bind) {
        Function.prototype.bind = function (oThis) {
            if (typeof this !== 'function') {
                // closest thing possible to the ECMAScript 5
                // internal IsCallable function
                throw new TypeError('Function.prototype.bind - what is trying to be bound is not callable');
            }

            var aArgs = Array.prototype.slice.call(arguments, 1),
                fToBind = this,
                fNOP = function fNOP() {},
                fBound = function fBound() {
                return fToBind.apply(this instanceof fNOP ? this : oThis, aArgs.concat(Array.prototype.slice.call(arguments)));
            };

            fNOP.prototype = this.prototype;
            fBound.prototype = new fNOP();

            return fBound;
        };
    }

    // SVGPathSeg API polyfill
    // https://github.com/progers/pathseg
    //
    // This is a drop-in replacement for the SVGPathSeg and SVGPathSegList APIs that were removed from
    // SVG2 (https://lists.w3.org/Archives/Public/www-svg/2015Jun/0044.html), including the latest spec
    // changes which were implemented in Firefox 43 and Chrome 46.

    (function () {

        if (!("SVGPathSeg" in window)) {
            // Spec: http://www.w3.org/TR/SVG11/single-page.html#paths-InterfaceSVGPathSeg
            window.SVGPathSeg = function (type, typeAsLetter, owningPathSegList) {
                this.pathSegType = type;
                this.pathSegTypeAsLetter = typeAsLetter;
                this._owningPathSegList = owningPathSegList;
            };

            window.SVGPathSeg.prototype.classname = "SVGPathSeg";

            window.SVGPathSeg.PATHSEG_UNKNOWN = 0;
            window.SVGPathSeg.PATHSEG_CLOSEPATH = 1;
            window.SVGPathSeg.PATHSEG_MOVETO_ABS = 2;
            window.SVGPathSeg.PATHSEG_MOVETO_REL = 3;
            window.SVGPathSeg.PATHSEG_LINETO_ABS = 4;
            window.SVGPathSeg.PATHSEG_LINETO_REL = 5;
            window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS = 6;
            window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL = 7;
            window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS = 8;
            window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL = 9;
            window.SVGPathSeg.PATHSEG_ARC_ABS = 10;
            window.SVGPathSeg.PATHSEG_ARC_REL = 11;
            window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS = 12;
            window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL = 13;
            window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS = 14;
            window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL = 15;
            window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16;
            window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17;
            window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18;
            window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19;

            // Notify owning PathSegList on any changes so they can be synchronized back to the path element.
            window.SVGPathSeg.prototype._segmentChanged = function () {
                if (this._owningPathSegList) this._owningPathSegList.segmentChanged(this);
            };

            window.SVGPathSegClosePath = function (owningPathSegList) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CLOSEPATH, "z", owningPathSegList);
            };
            window.SVGPathSegClosePath.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegClosePath.prototype.toString = function () {
                return "[object SVGPathSegClosePath]";
            };
            window.SVGPathSegClosePath.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter;
            };
            window.SVGPathSegClosePath.prototype.clone = function () {
                return new window.SVGPathSegClosePath(undefined);
            };

            window.SVGPathSegMovetoAbs = function (owningPathSegList, x, y) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_MOVETO_ABS, "M", owningPathSegList);
                this._x = x;
                this._y = y;
            };
            window.SVGPathSegMovetoAbs.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegMovetoAbs.prototype.toString = function () {
                return "[object SVGPathSegMovetoAbs]";
            };
            window.SVGPathSegMovetoAbs.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._x + " " + this._y;
            };
            window.SVGPathSegMovetoAbs.prototype.clone = function () {
                return new window.SVGPathSegMovetoAbs(undefined, this._x, this._y);
            };
            Object.defineProperty(window.SVGPathSegMovetoAbs.prototype, "x", { get: function get() {
                    return this._x;
                }, set: function set(x) {
                    this._x = x;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegMovetoAbs.prototype, "y", { get: function get() {
                    return this._y;
                }, set: function set(y) {
                    this._y = y;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegMovetoRel = function (owningPathSegList, x, y) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_MOVETO_REL, "m", owningPathSegList);
                this._x = x;
                this._y = y;
            };
            window.SVGPathSegMovetoRel.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegMovetoRel.prototype.toString = function () {
                return "[object SVGPathSegMovetoRel]";
            };
            window.SVGPathSegMovetoRel.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._x + " " + this._y;
            };
            window.SVGPathSegMovetoRel.prototype.clone = function () {
                return new window.SVGPathSegMovetoRel(undefined, this._x, this._y);
            };
            Object.defineProperty(window.SVGPathSegMovetoRel.prototype, "x", { get: function get() {
                    return this._x;
                }, set: function set(x) {
                    this._x = x;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegMovetoRel.prototype, "y", { get: function get() {
                    return this._y;
                }, set: function set(y) {
                    this._y = y;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegLinetoAbs = function (owningPathSegList, x, y) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_ABS, "L", owningPathSegList);
                this._x = x;
                this._y = y;
            };
            window.SVGPathSegLinetoAbs.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegLinetoAbs.prototype.toString = function () {
                return "[object SVGPathSegLinetoAbs]";
            };
            window.SVGPathSegLinetoAbs.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._x + " " + this._y;
            };
            window.SVGPathSegLinetoAbs.prototype.clone = function () {
                return new window.SVGPathSegLinetoAbs(undefined, this._x, this._y);
            };
            Object.defineProperty(window.SVGPathSegLinetoAbs.prototype, "x", { get: function get() {
                    return this._x;
                }, set: function set(x) {
                    this._x = x;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegLinetoAbs.prototype, "y", { get: function get() {
                    return this._y;
                }, set: function set(y) {
                    this._y = y;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegLinetoRel = function (owningPathSegList, x, y) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_REL, "l", owningPathSegList);
                this._x = x;
                this._y = y;
            };
            window.SVGPathSegLinetoRel.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegLinetoRel.prototype.toString = function () {
                return "[object SVGPathSegLinetoRel]";
            };
            window.SVGPathSegLinetoRel.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._x + " " + this._y;
            };
            window.SVGPathSegLinetoRel.prototype.clone = function () {
                return new window.SVGPathSegLinetoRel(undefined, this._x, this._y);
            };
            Object.defineProperty(window.SVGPathSegLinetoRel.prototype, "x", { get: function get() {
                    return this._x;
                }, set: function set(x) {
                    this._x = x;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegLinetoRel.prototype, "y", { get: function get() {
                    return this._y;
                }, set: function set(y) {
                    this._y = y;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegCurvetoCubicAbs = function (owningPathSegList, x, y, x1, y1, x2, y2) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS, "C", owningPathSegList);
                this._x = x;
                this._y = y;
                this._x1 = x1;
                this._y1 = y1;
                this._x2 = x2;
                this._y2 = y2;
            };
            window.SVGPathSegCurvetoCubicAbs.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegCurvetoCubicAbs.prototype.toString = function () {
                return "[object SVGPathSegCurvetoCubicAbs]";
            };
            window.SVGPathSegCurvetoCubicAbs.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._x1 + " " + this._y1 + " " + this._x2 + " " + this._y2 + " " + this._x + " " + this._y;
            };
            window.SVGPathSegCurvetoCubicAbs.prototype.clone = function () {
                return new window.SVGPathSegCurvetoCubicAbs(undefined, this._x, this._y, this._x1, this._y1, this._x2, this._y2);
            };
            Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, "x", { get: function get() {
                    return this._x;
                }, set: function set(x) {
                    this._x = x;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, "y", { get: function get() {
                    return this._y;
                }, set: function set(y) {
                    this._y = y;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, "x1", { get: function get() {
                    return this._x1;
                }, set: function set(x1) {
                    this._x1 = x1;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, "y1", { get: function get() {
                    return this._y1;
                }, set: function set(y1) {
                    this._y1 = y1;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, "x2", { get: function get() {
                    return this._x2;
                }, set: function set(x2) {
                    this._x2 = x2;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, "y2", { get: function get() {
                    return this._y2;
                }, set: function set(y2) {
                    this._y2 = y2;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegCurvetoCubicRel = function (owningPathSegList, x, y, x1, y1, x2, y2) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL, "c", owningPathSegList);
                this._x = x;
                this._y = y;
                this._x1 = x1;
                this._y1 = y1;
                this._x2 = x2;
                this._y2 = y2;
            };
            window.SVGPathSegCurvetoCubicRel.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegCurvetoCubicRel.prototype.toString = function () {
                return "[object SVGPathSegCurvetoCubicRel]";
            };
            window.SVGPathSegCurvetoCubicRel.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._x1 + " " + this._y1 + " " + this._x2 + " " + this._y2 + " " + this._x + " " + this._y;
            };
            window.SVGPathSegCurvetoCubicRel.prototype.clone = function () {
                return new window.SVGPathSegCurvetoCubicRel(undefined, this._x, this._y, this._x1, this._y1, this._x2, this._y2);
            };
            Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, "x", { get: function get() {
                    return this._x;
                }, set: function set(x) {
                    this._x = x;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, "y", { get: function get() {
                    return this._y;
                }, set: function set(y) {
                    this._y = y;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, "x1", { get: function get() {
                    return this._x1;
                }, set: function set(x1) {
                    this._x1 = x1;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, "y1", { get: function get() {
                    return this._y1;
                }, set: function set(y1) {
                    this._y1 = y1;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, "x2", { get: function get() {
                    return this._x2;
                }, set: function set(x2) {
                    this._x2 = x2;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, "y2", { get: function get() {
                    return this._y2;
                }, set: function set(y2) {
                    this._y2 = y2;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegCurvetoQuadraticAbs = function (owningPathSegList, x, y, x1, y1) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS, "Q", owningPathSegList);
                this._x = x;
                this._y = y;
                this._x1 = x1;
                this._y1 = y1;
            };
            window.SVGPathSegCurvetoQuadraticAbs.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegCurvetoQuadraticAbs.prototype.toString = function () {
                return "[object SVGPathSegCurvetoQuadraticAbs]";
            };
            window.SVGPathSegCurvetoQuadraticAbs.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._x1 + " " + this._y1 + " " + this._x + " " + this._y;
            };
            window.SVGPathSegCurvetoQuadraticAbs.prototype.clone = function () {
                return new window.SVGPathSegCurvetoQuadraticAbs(undefined, this._x, this._y, this._x1, this._y1);
            };
            Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype, "x", { get: function get() {
                    return this._x;
                }, set: function set(x) {
                    this._x = x;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype, "y", { get: function get() {
                    return this._y;
                }, set: function set(y) {
                    this._y = y;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype, "x1", { get: function get() {
                    return this._x1;
                }, set: function set(x1) {
                    this._x1 = x1;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype, "y1", { get: function get() {
                    return this._y1;
                }, set: function set(y1) {
                    this._y1 = y1;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegCurvetoQuadraticRel = function (owningPathSegList, x, y, x1, y1) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL, "q", owningPathSegList);
                this._x = x;
                this._y = y;
                this._x1 = x1;
                this._y1 = y1;
            };
            window.SVGPathSegCurvetoQuadraticRel.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegCurvetoQuadraticRel.prototype.toString = function () {
                return "[object SVGPathSegCurvetoQuadraticRel]";
            };
            window.SVGPathSegCurvetoQuadraticRel.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._x1 + " " + this._y1 + " " + this._x + " " + this._y;
            };
            window.SVGPathSegCurvetoQuadraticRel.prototype.clone = function () {
                return new window.SVGPathSegCurvetoQuadraticRel(undefined, this._x, this._y, this._x1, this._y1);
            };
            Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype, "x", { get: function get() {
                    return this._x;
                }, set: function set(x) {
                    this._x = x;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype, "y", { get: function get() {
                    return this._y;
                }, set: function set(y) {
                    this._y = y;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype, "x1", { get: function get() {
                    return this._x1;
                }, set: function set(x1) {
                    this._x1 = x1;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype, "y1", { get: function get() {
                    return this._y1;
                }, set: function set(y1) {
                    this._y1 = y1;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegArcAbs = function (owningPathSegList, x, y, r1, r2, angle, largeArcFlag, sweepFlag) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_ARC_ABS, "A", owningPathSegList);
                this._x = x;
                this._y = y;
                this._r1 = r1;
                this._r2 = r2;
                this._angle = angle;
                this._largeArcFlag = largeArcFlag;
                this._sweepFlag = sweepFlag;
            };
            window.SVGPathSegArcAbs.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegArcAbs.prototype.toString = function () {
                return "[object SVGPathSegArcAbs]";
            };
            window.SVGPathSegArcAbs.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._r1 + " " + this._r2 + " " + this._angle + " " + (this._largeArcFlag ? "1" : "0") + " " + (this._sweepFlag ? "1" : "0") + " " + this._x + " " + this._y;
            };
            window.SVGPathSegArcAbs.prototype.clone = function () {
                return new window.SVGPathSegArcAbs(undefined, this._x, this._y, this._r1, this._r2, this._angle, this._largeArcFlag, this._sweepFlag);
            };
            Object.defineProperty(window.SVGPathSegArcAbs.prototype, "x", { get: function get() {
                    return this._x;
                }, set: function set(x) {
                    this._x = x;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegArcAbs.prototype, "y", { get: function get() {
                    return this._y;
                }, set: function set(y) {
                    this._y = y;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegArcAbs.prototype, "r1", { get: function get() {
                    return this._r1;
                }, set: function set(r1) {
                    this._r1 = r1;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegArcAbs.prototype, "r2", { get: function get() {
                    return this._r2;
                }, set: function set(r2) {
                    this._r2 = r2;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegArcAbs.prototype, "angle", { get: function get() {
                    return this._angle;
                }, set: function set(angle) {
                    this._angle = angle;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegArcAbs.prototype, "largeArcFlag", { get: function get() {
                    return this._largeArcFlag;
                }, set: function set(largeArcFlag) {
                    this._largeArcFlag = largeArcFlag;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegArcAbs.prototype, "sweepFlag", { get: function get() {
                    return this._sweepFlag;
                }, set: function set(sweepFlag) {
                    this._sweepFlag = sweepFlag;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegArcRel = function (owningPathSegList, x, y, r1, r2, angle, largeArcFlag, sweepFlag) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_ARC_REL, "a", owningPathSegList);
                this._x = x;
                this._y = y;
                this._r1 = r1;
                this._r2 = r2;
                this._angle = angle;
                this._largeArcFlag = largeArcFlag;
                this._sweepFlag = sweepFlag;
            };
            window.SVGPathSegArcRel.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegArcRel.prototype.toString = function () {
                return "[object SVGPathSegArcRel]";
            };
            window.SVGPathSegArcRel.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._r1 + " " + this._r2 + " " + this._angle + " " + (this._largeArcFlag ? "1" : "0") + " " + (this._sweepFlag ? "1" : "0") + " " + this._x + " " + this._y;
            };
            window.SVGPathSegArcRel.prototype.clone = function () {
                return new window.SVGPathSegArcRel(undefined, this._x, this._y, this._r1, this._r2, this._angle, this._largeArcFlag, this._sweepFlag);
            };
            Object.defineProperty(window.SVGPathSegArcRel.prototype, "x", { get: function get() {
                    return this._x;
                }, set: function set(x) {
                    this._x = x;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegArcRel.prototype, "y", { get: function get() {
                    return this._y;
                }, set: function set(y) {
                    this._y = y;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegArcRel.prototype, "r1", { get: function get() {
                    return this._r1;
                }, set: function set(r1) {
                    this._r1 = r1;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegArcRel.prototype, "r2", { get: function get() {
                    return this._r2;
                }, set: function set(r2) {
                    this._r2 = r2;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegArcRel.prototype, "angle", { get: function get() {
                    return this._angle;
                }, set: function set(angle) {
                    this._angle = angle;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegArcRel.prototype, "largeArcFlag", { get: function get() {
                    return this._largeArcFlag;
                }, set: function set(largeArcFlag) {
                    this._largeArcFlag = largeArcFlag;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegArcRel.prototype, "sweepFlag", { get: function get() {
                    return this._sweepFlag;
                }, set: function set(sweepFlag) {
                    this._sweepFlag = sweepFlag;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegLinetoHorizontalAbs = function (owningPathSegList, x) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS, "H", owningPathSegList);
                this._x = x;
            };
            window.SVGPathSegLinetoHorizontalAbs.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegLinetoHorizontalAbs.prototype.toString = function () {
                return "[object SVGPathSegLinetoHorizontalAbs]";
            };
            window.SVGPathSegLinetoHorizontalAbs.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._x;
            };
            window.SVGPathSegLinetoHorizontalAbs.prototype.clone = function () {
                return new window.SVGPathSegLinetoHorizontalAbs(undefined, this._x);
            };
            Object.defineProperty(window.SVGPathSegLinetoHorizontalAbs.prototype, "x", { get: function get() {
                    return this._x;
                }, set: function set(x) {
                    this._x = x;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegLinetoHorizontalRel = function (owningPathSegList, x) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL, "h", owningPathSegList);
                this._x = x;
            };
            window.SVGPathSegLinetoHorizontalRel.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegLinetoHorizontalRel.prototype.toString = function () {
                return "[object SVGPathSegLinetoHorizontalRel]";
            };
            window.SVGPathSegLinetoHorizontalRel.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._x;
            };
            window.SVGPathSegLinetoHorizontalRel.prototype.clone = function () {
                return new window.SVGPathSegLinetoHorizontalRel(undefined, this._x);
            };
            Object.defineProperty(window.SVGPathSegLinetoHorizontalRel.prototype, "x", { get: function get() {
                    return this._x;
                }, set: function set(x) {
                    this._x = x;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegLinetoVerticalAbs = function (owningPathSegList, y) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS, "V", owningPathSegList);
                this._y = y;
            };
            window.SVGPathSegLinetoVerticalAbs.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegLinetoVerticalAbs.prototype.toString = function () {
                return "[object SVGPathSegLinetoVerticalAbs]";
            };
            window.SVGPathSegLinetoVerticalAbs.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._y;
            };
            window.SVGPathSegLinetoVerticalAbs.prototype.clone = function () {
                return new window.SVGPathSegLinetoVerticalAbs(undefined, this._y);
            };
            Object.defineProperty(window.SVGPathSegLinetoVerticalAbs.prototype, "y", { get: function get() {
                    return this._y;
                }, set: function set(y) {
                    this._y = y;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegLinetoVerticalRel = function (owningPathSegList, y) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL, "v", owningPathSegList);
                this._y = y;
            };
            window.SVGPathSegLinetoVerticalRel.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegLinetoVerticalRel.prototype.toString = function () {
                return "[object SVGPathSegLinetoVerticalRel]";
            };
            window.SVGPathSegLinetoVerticalRel.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._y;
            };
            window.SVGPathSegLinetoVerticalRel.prototype.clone = function () {
                return new window.SVGPathSegLinetoVerticalRel(undefined, this._y);
            };
            Object.defineProperty(window.SVGPathSegLinetoVerticalRel.prototype, "y", { get: function get() {
                    return this._y;
                }, set: function set(y) {
                    this._y = y;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegCurvetoCubicSmoothAbs = function (owningPathSegList, x, y, x2, y2) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS, "S", owningPathSegList);
                this._x = x;
                this._y = y;
                this._x2 = x2;
                this._y2 = y2;
            };
            window.SVGPathSegCurvetoCubicSmoothAbs.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegCurvetoCubicSmoothAbs.prototype.toString = function () {
                return "[object SVGPathSegCurvetoCubicSmoothAbs]";
            };
            window.SVGPathSegCurvetoCubicSmoothAbs.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._x2 + " " + this._y2 + " " + this._x + " " + this._y;
            };
            window.SVGPathSegCurvetoCubicSmoothAbs.prototype.clone = function () {
                return new window.SVGPathSegCurvetoCubicSmoothAbs(undefined, this._x, this._y, this._x2, this._y2);
            };
            Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype, "x", { get: function get() {
                    return this._x;
                }, set: function set(x) {
                    this._x = x;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype, "y", { get: function get() {
                    return this._y;
                }, set: function set(y) {
                    this._y = y;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype, "x2", { get: function get() {
                    return this._x2;
                }, set: function set(x2) {
                    this._x2 = x2;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype, "y2", { get: function get() {
                    return this._y2;
                }, set: function set(y2) {
                    this._y2 = y2;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegCurvetoCubicSmoothRel = function (owningPathSegList, x, y, x2, y2) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL, "s", owningPathSegList);
                this._x = x;
                this._y = y;
                this._x2 = x2;
                this._y2 = y2;
            };
            window.SVGPathSegCurvetoCubicSmoothRel.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegCurvetoCubicSmoothRel.prototype.toString = function () {
                return "[object SVGPathSegCurvetoCubicSmoothRel]";
            };
            window.SVGPathSegCurvetoCubicSmoothRel.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._x2 + " " + this._y2 + " " + this._x + " " + this._y;
            };
            window.SVGPathSegCurvetoCubicSmoothRel.prototype.clone = function () {
                return new window.SVGPathSegCurvetoCubicSmoothRel(undefined, this._x, this._y, this._x2, this._y2);
            };
            Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype, "x", { get: function get() {
                    return this._x;
                }, set: function set(x) {
                    this._x = x;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype, "y", { get: function get() {
                    return this._y;
                }, set: function set(y) {
                    this._y = y;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype, "x2", { get: function get() {
                    return this._x2;
                }, set: function set(x2) {
                    this._x2 = x2;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype, "y2", { get: function get() {
                    return this._y2;
                }, set: function set(y2) {
                    this._y2 = y2;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegCurvetoQuadraticSmoothAbs = function (owningPathSegList, x, y) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS, "T", owningPathSegList);
                this._x = x;
                this._y = y;
            };
            window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.toString = function () {
                return "[object SVGPathSegCurvetoQuadraticSmoothAbs]";
            };
            window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._x + " " + this._y;
            };
            window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.clone = function () {
                return new window.SVGPathSegCurvetoQuadraticSmoothAbs(undefined, this._x, this._y);
            };
            Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype, "x", { get: function get() {
                    return this._x;
                }, set: function set(x) {
                    this._x = x;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype, "y", { get: function get() {
                    return this._y;
                }, set: function set(y) {
                    this._y = y;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegCurvetoQuadraticSmoothRel = function (owningPathSegList, x, y) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL, "t", owningPathSegList);
                this._x = x;
                this._y = y;
            };
            window.SVGPathSegCurvetoQuadraticSmoothRel.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.toString = function () {
                return "[object SVGPathSegCurvetoQuadraticSmoothRel]";
            };
            window.SVGPathSegCurvetoQuadraticSmoothRel.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._x + " " + this._y;
            };
            window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.clone = function () {
                return new window.SVGPathSegCurvetoQuadraticSmoothRel(undefined, this._x, this._y);
            };
            Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype, "x", { get: function get() {
                    return this._x;
                }, set: function set(x) {
                    this._x = x;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype, "y", { get: function get() {
                    return this._y;
                }, set: function set(y) {
                    this._y = y;this._segmentChanged();
                }, enumerable: true });

            // Add createSVGPathSeg* functions to window.SVGPathElement.
            // Spec: http://www.w3.org/TR/SVG11/single-page.html#paths-Interfacewindow.SVGPathElement.
            window.SVGPathElement.prototype.createSVGPathSegClosePath = function () {
                return new window.SVGPathSegClosePath(undefined);
            };
            window.SVGPathElement.prototype.createSVGPathSegMovetoAbs = function (x, y) {
                return new window.SVGPathSegMovetoAbs(undefined, x, y);
            };
            window.SVGPathElement.prototype.createSVGPathSegMovetoRel = function (x, y) {
                return new window.SVGPathSegMovetoRel(undefined, x, y);
            };
            window.SVGPathElement.prototype.createSVGPathSegLinetoAbs = function (x, y) {
                return new window.SVGPathSegLinetoAbs(undefined, x, y);
            };
            window.SVGPathElement.prototype.createSVGPathSegLinetoRel = function (x, y) {
                return new window.SVGPathSegLinetoRel(undefined, x, y);
            };
            window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs = function (x, y, x1, y1, x2, y2) {
                return new window.SVGPathSegCurvetoCubicAbs(undefined, x, y, x1, y1, x2, y2);
            };
            window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel = function (x, y, x1, y1, x2, y2) {
                return new window.SVGPathSegCurvetoCubicRel(undefined, x, y, x1, y1, x2, y2);
            };
            window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs = function (x, y, x1, y1) {
                return new window.SVGPathSegCurvetoQuadraticAbs(undefined, x, y, x1, y1);
            };
            window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel = function (x, y, x1, y1) {
                return new window.SVGPathSegCurvetoQuadraticRel(undefined, x, y, x1, y1);
            };
            window.SVGPathElement.prototype.createSVGPathSegArcAbs = function (x, y, r1, r2, angle, largeArcFlag, sweepFlag) {
                return new window.SVGPathSegArcAbs(undefined, x, y, r1, r2, angle, largeArcFlag, sweepFlag);
            };
            window.SVGPathElement.prototype.createSVGPathSegArcRel = function (x, y, r1, r2, angle, largeArcFlag, sweepFlag) {
                return new window.SVGPathSegArcRel(undefined, x, y, r1, r2, angle, largeArcFlag, sweepFlag);
            };
            window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs = function (x) {
                return new window.SVGPathSegLinetoHorizontalAbs(undefined, x);
            };
            window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel = function (x) {
                return new window.SVGPathSegLinetoHorizontalRel(undefined, x);
            };
            window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs = function (y) {
                return new window.SVGPathSegLinetoVerticalAbs(undefined, y);
            };
            window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel = function (y) {
                return new window.SVGPathSegLinetoVerticalRel(undefined, y);
            };
            window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs = function (x, y, x2, y2) {
                return new window.SVGPathSegCurvetoCubicSmoothAbs(undefined, x, y, x2, y2);
            };
            window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel = function (x, y, x2, y2) {
                return new window.SVGPathSegCurvetoCubicSmoothRel(undefined, x, y, x2, y2);
            };
            window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs = function (x, y) {
                return new window.SVGPathSegCurvetoQuadraticSmoothAbs(undefined, x, y);
            };
            window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel = function (x, y) {
                return new window.SVGPathSegCurvetoQuadraticSmoothRel(undefined, x, y);
            };

            if (!("getPathSegAtLength" in window.SVGPathElement.prototype)) {
                // Add getPathSegAtLength to SVGPathElement.
                // Spec: https://www.w3.org/TR/SVG11/single-page.html#paths-__svg__SVGPathElement__getPathSegAtLength
                // This polyfill requires SVGPathElement.getTotalLength to implement the distance-along-a-path algorithm.
                window.SVGPathElement.prototype.getPathSegAtLength = function (distance) {
                    if (distance === undefined || !isFinite(distance)) throw "Invalid arguments.";

                    var measurementElement = document.createElementNS("http://www.w3.org/2000/svg", "path");
                    measurementElement.setAttribute("d", this.getAttribute("d"));
                    var lastPathSegment = measurementElement.pathSegList.numberOfItems - 1;

                    // If the path is empty, return 0.
                    if (lastPathSegment <= 0) return 0;

                    do {
                        measurementElement.pathSegList.removeItem(lastPathSegment);
                        if (distance > measurementElement.getTotalLength()) break;
                        lastPathSegment--;
                    } while (lastPathSegment > 0);
                    return lastPathSegment;
                };
            }
        }

        if (!("SVGPathSegList" in window)) {
            // Spec: http://www.w3.org/TR/SVG11/single-page.html#paths-InterfaceSVGPathSegList
            window.SVGPathSegList = function (pathElement) {
                this._pathElement = pathElement;
                this._list = this._parsePath(this._pathElement.getAttribute("d"));

                // Use a MutationObserver to catch changes to the path's "d" attribute.
                this._mutationObserverConfig = { "attributes": true, "attributeFilter": ["d"] };
                this._pathElementMutationObserver = new MutationObserver(this._updateListFromPathMutations.bind(this));
                this._pathElementMutationObserver.observe(this._pathElement, this._mutationObserverConfig);
            };

            window.SVGPathSegList.prototype.classname = "SVGPathSegList";

            Object.defineProperty(window.SVGPathSegList.prototype, "numberOfItems", {
                get: function get() {
                    this._checkPathSynchronizedToList();
                    return this._list.length;
                },
                enumerable: true
            });

            // Add the pathSegList accessors to window.SVGPathElement.
            // Spec: http://www.w3.org/TR/SVG11/single-page.html#paths-InterfaceSVGAnimatedPathData
            Object.defineProperty(window.SVGPathElement.prototype, "pathSegList", {
                get: function get() {
                    if (!this._pathSegList) this._pathSegList = new window.SVGPathSegList(this);
                    return this._pathSegList;
                },
                enumerable: true
            });
            // FIXME: The following are not implemented and simply return window.SVGPathElement.pathSegList.
            Object.defineProperty(window.SVGPathElement.prototype, "normalizedPathSegList", { get: function get() {
                    return this.pathSegList;
                }, enumerable: true });
            Object.defineProperty(window.SVGPathElement.prototype, "animatedPathSegList", { get: function get() {
                    return this.pathSegList;
                }, enumerable: true });
            Object.defineProperty(window.SVGPathElement.prototype, "animatedNormalizedPathSegList", { get: function get() {
                    return this.pathSegList;
                }, enumerable: true });

            // Process any pending mutations to the path element and update the list as needed.
            // This should be the first call of all public functions and is needed because
            // MutationObservers are not synchronous so we can have pending asynchronous mutations.
            window.SVGPathSegList.prototype._checkPathSynchronizedToList = function () {
                this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords());
            };

            window.SVGPathSegList.prototype._updateListFromPathMutations = function (mutationRecords) {
                if (!this._pathElement) return;
                var hasPathMutations = false;
                mutationRecords.forEach(function (record) {
                    if (record.attributeName == "d") hasPathMutations = true;
                });
                if (hasPathMutations) this._list = this._parsePath(this._pathElement.getAttribute("d"));
            };

            // Serialize the list and update the path's 'd' attribute.
            window.SVGPathSegList.prototype._writeListToPath = function () {
                this._pathElementMutationObserver.disconnect();
                this._pathElement.setAttribute("d", window.SVGPathSegList._pathSegArrayAsString(this._list));
                this._pathElementMutationObserver.observe(this._pathElement, this._mutationObserverConfig);
            };

            // When a path segment changes the list needs to be synchronized back to the path element.
            window.SVGPathSegList.prototype.segmentChanged = function (pathSeg) {
                this._writeListToPath();
            };

            window.SVGPathSegList.prototype.clear = function () {
                this._checkPathSynchronizedToList();

                this._list.forEach(function (pathSeg) {
                    pathSeg._owningPathSegList = null;
                });
                this._list = [];
                this._writeListToPath();
            };

            window.SVGPathSegList.prototype.initialize = function (newItem) {
                this._checkPathSynchronizedToList();

                this._list = [newItem];
                newItem._owningPathSegList = this;
                this._writeListToPath();
                return newItem;
            };

            window.SVGPathSegList.prototype._checkValidIndex = function (index) {
                if (isNaN(index) || index < 0 || index >= this.numberOfItems) throw "INDEX_SIZE_ERR";
            };

            window.SVGPathSegList.prototype.getItem = function (index) {
                this._checkPathSynchronizedToList();

                this._checkValidIndex(index);
                return this._list[index];
            };

            window.SVGPathSegList.prototype.insertItemBefore = function (newItem, index) {
                this._checkPathSynchronizedToList();

                // Spec: If the index is greater than or equal to numberOfItems, then the new item is appended to the end of the list.
                if (index > this.numberOfItems) index = this.numberOfItems;
                if (newItem._owningPathSegList) {
                    // SVG2 spec says to make a copy.
                    newItem = newItem.clone();
                }
                this._list.splice(index, 0, newItem);
                newItem._owningPathSegList = this;
                this._writeListToPath();
                return newItem;
            };

            window.SVGPathSegList.prototype.replaceItem = function (newItem, index) {
                this._checkPathSynchronizedToList();

                if (newItem._owningPathSegList) {
                    // SVG2 spec says to make a copy.
                    newItem = newItem.clone();
                }
                this._checkValidIndex(index);
                this._list[index] = newItem;
                newItem._owningPathSegList = this;
                this._writeListToPath();
                return newItem;
            };

            window.SVGPathSegList.prototype.removeItem = function (index) {
                this._checkPathSynchronizedToList();

                this._checkValidIndex(index);
                var item = this._list[index];
                this._list.splice(index, 1);
                this._writeListToPath();
                return item;
            };

            window.SVGPathSegList.prototype.appendItem = function (newItem) {
                this._checkPathSynchronizedToList();

                if (newItem._owningPathSegList) {
                    // SVG2 spec says to make a copy.
                    newItem = newItem.clone();
                }
                this._list.push(newItem);
                newItem._owningPathSegList = this;
                // TODO: Optimize this to just append to the existing attribute.
                this._writeListToPath();
                return newItem;
            };

            window.SVGPathSegList._pathSegArrayAsString = function (pathSegArray) {
                var string = "";
                var first = true;
                pathSegArray.forEach(function (pathSeg) {
                    if (first) {
                        first = false;
                        string += pathSeg._asPathString();
                    } else {
                        string += " " + pathSeg._asPathString();
                    }
                });
                return string;
            };

            // This closely follows SVGPathParser::parsePath from Source/core/svg/SVGPathParser.cpp.
            window.SVGPathSegList.prototype._parsePath = function (string) {
                if (!string || string.length == 0) return [];

                var owningPathSegList = this;

                var Builder = function Builder() {
                    this.pathSegList = [];
                };

                Builder.prototype.appendSegment = function (pathSeg) {
                    this.pathSegList.push(pathSeg);
                };

                var Source = function Source(string) {
                    this._string = string;
                    this._currentIndex = 0;
                    this._endIndex = this._string.length;
                    this._previousCommand = window.SVGPathSeg.PATHSEG_UNKNOWN;

                    this._skipOptionalSpaces();
                };

                Source.prototype._isCurrentSpace = function () {
                    var character = this._string[this._currentIndex];
                    return character <= " " && (character == " " || character == "\n" || character == "\t" || character == "\r" || character == "\f");
                };

                Source.prototype._skipOptionalSpaces = function () {
                    while (this._currentIndex < this._endIndex && this._isCurrentSpace()) {
                        this._currentIndex++;
                    }return this._currentIndex < this._endIndex;
                };

                Source.prototype._skipOptionalSpacesOrDelimiter = function () {
                    if (this._currentIndex < this._endIndex && !this._isCurrentSpace() && this._string.charAt(this._currentIndex) != ",") return false;
                    if (this._skipOptionalSpaces()) {
                        if (this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) == ",") {
                            this._currentIndex++;
                            this._skipOptionalSpaces();
                        }
                    }
                    return this._currentIndex < this._endIndex;
                };

                Source.prototype.hasMoreData = function () {
                    return this._currentIndex < this._endIndex;
                };

                Source.prototype.peekSegmentType = function () {
                    var lookahead = this._string[this._currentIndex];
                    return this._pathSegTypeFromChar(lookahead);
                };

                Source.prototype._pathSegTypeFromChar = function (lookahead) {
                    switch (lookahead) {
                        case "Z":
                        case "z":
                            return window.SVGPathSeg.PATHSEG_CLOSEPATH;
                        case "M":
                            return window.SVGPathSeg.PATHSEG_MOVETO_ABS;
                        case "m":
                            return window.SVGPathSeg.PATHSEG_MOVETO_REL;
                        case "L":
                            return window.SVGPathSeg.PATHSEG_LINETO_ABS;
                        case "l":
                            return window.SVGPathSeg.PATHSEG_LINETO_REL;
                        case "C":
                            return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS;
                        case "c":
                            return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL;
                        case "Q":
                            return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS;
                        case "q":
                            return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL;
                        case "A":
                            return window.SVGPathSeg.PATHSEG_ARC_ABS;
                        case "a":
                            return window.SVGPathSeg.PATHSEG_ARC_REL;
                        case "H":
                            return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS;
                        case "h":
                            return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL;
                        case "V":
                            return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS;
                        case "v":
                            return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL;
                        case "S":
                            return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS;
                        case "s":
                            return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL;
                        case "T":
                            return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS;
                        case "t":
                            return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL;
                        default:
                            return window.SVGPathSeg.PATHSEG_UNKNOWN;
                    }
                };

                Source.prototype._nextCommandHelper = function (lookahead, previousCommand) {
                    // Check for remaining coordinates in the current command.
                    if ((lookahead == "+" || lookahead == "-" || lookahead == "." || lookahead >= "0" && lookahead <= "9") && previousCommand != window.SVGPathSeg.PATHSEG_CLOSEPATH) {
                        if (previousCommand == window.SVGPathSeg.PATHSEG_MOVETO_ABS) return window.SVGPathSeg.PATHSEG_LINETO_ABS;
                        if (previousCommand == window.SVGPathSeg.PATHSEG_MOVETO_REL) return window.SVGPathSeg.PATHSEG_LINETO_REL;
                        return previousCommand;
                    }
                    return window.SVGPathSeg.PATHSEG_UNKNOWN;
                };

                Source.prototype.initialCommandIsMoveTo = function () {
                    // If the path is empty it is still valid, so return true.
                    if (!this.hasMoreData()) return true;
                    var command = this.peekSegmentType();
                    // Path must start with moveTo.
                    return command == window.SVGPathSeg.PATHSEG_MOVETO_ABS || command == window.SVGPathSeg.PATHSEG_MOVETO_REL;
                };

                // Parse a number from an SVG path. This very closely follows genericParseNumber(...) from Source/core/svg/SVGParserUtilities.cpp.
                // Spec: http://www.w3.org/TR/SVG11/single-page.html#paths-PathDataBNF
                Source.prototype._parseNumber = function () {
                    var exponent = 0;
                    var integer = 0;
                    var frac = 1;
                    var decimal = 0;
                    var sign = 1;
                    var expsign = 1;

                    var startIndex = this._currentIndex;

                    this._skipOptionalSpaces();

                    // Read the sign.
                    if (this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) == "+") this._currentIndex++;else if (this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) == "-") {
                        this._currentIndex++;
                        sign = -1;
                    }

                    if (this._currentIndex == this._endIndex || (this._string.charAt(this._currentIndex) < "0" || this._string.charAt(this._currentIndex) > "9") && this._string.charAt(this._currentIndex) != ".")
                        // The first character of a number must be one of [0-9+-.].
                        return undefined;

                    // Read the integer part, build right-to-left.
                    var startIntPartIndex = this._currentIndex;
                    while (this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) >= "0" && this._string.charAt(this._currentIndex) <= "9") {
                        this._currentIndex++;
                    } // Advance to first non-digit.

                    if (this._currentIndex != startIntPartIndex) {
                        var scanIntPartIndex = this._currentIndex - 1;
                        var multiplier = 1;
                        while (scanIntPartIndex >= startIntPartIndex) {
                            integer += multiplier * (this._string.charAt(scanIntPartIndex--) - "0");
                            multiplier *= 10;
                        }
                    }

                    // Read the decimals.
                    if (this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) == ".") {
                        this._currentIndex++;

                        // There must be a least one digit following the .
                        if (this._currentIndex >= this._endIndex || this._string.charAt(this._currentIndex) < "0" || this._string.charAt(this._currentIndex) > "9") return undefined;
                        while (this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) >= "0" && this._string.charAt(this._currentIndex) <= "9") {
                            frac *= 10;
                            decimal += (this._string.charAt(this._currentIndex) - "0") / frac;
                            this._currentIndex += 1;
                        }
                    }

                    // Read the exponent part.
                    if (this._currentIndex != startIndex && this._currentIndex + 1 < this._endIndex && (this._string.charAt(this._currentIndex) == "e" || this._string.charAt(this._currentIndex) == "E") && this._string.charAt(this._currentIndex + 1) != "x" && this._string.charAt(this._currentIndex + 1) != "m") {
                        this._currentIndex++;

                        // Read the sign of the exponent.
                        if (this._string.charAt(this._currentIndex) == "+") {
                            this._currentIndex++;
                        } else if (this._string.charAt(this._currentIndex) == "-") {
                            this._currentIndex++;
                            expsign = -1;
                        }

                        // There must be an exponent.
                        if (this._currentIndex >= this._endIndex || this._string.charAt(this._currentIndex) < "0" || this._string.charAt(this._currentIndex) > "9") return undefined;

                        while (this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) >= "0" && this._string.charAt(this._currentIndex) <= "9") {
                            exponent *= 10;
                            exponent += this._string.charAt(this._currentIndex) - "0";
                            this._currentIndex++;
                        }
                    }

                    var number = integer + decimal;
                    number *= sign;

                    if (exponent) number *= Math.pow(10, expsign * exponent);

                    if (startIndex == this._currentIndex) return undefined;

                    this._skipOptionalSpacesOrDelimiter();

                    return number;
                };

                Source.prototype._parseArcFlag = function () {
                    if (this._currentIndex >= this._endIndex) return undefined;
                    var flag = false;
                    var flagChar = this._string.charAt(this._currentIndex++);
                    if (flagChar == "0") flag = false;else if (flagChar == "1") flag = true;else return undefined;

                    this._skipOptionalSpacesOrDelimiter();
                    return flag;
                };

                Source.prototype.parseSegment = function () {
                    var lookahead = this._string[this._currentIndex];
                    var command = this._pathSegTypeFromChar(lookahead);
                    if (command == window.SVGPathSeg.PATHSEG_UNKNOWN) {
                        // Possibly an implicit command. Not allowed if this is the first command.
                        if (this._previousCommand == window.SVGPathSeg.PATHSEG_UNKNOWN) return null;
                        command = this._nextCommandHelper(lookahead, this._previousCommand);
                        if (command == window.SVGPathSeg.PATHSEG_UNKNOWN) return null;
                    } else {
                        this._currentIndex++;
                    }

                    this._previousCommand = command;

                    switch (command) {
                        case window.SVGPathSeg.PATHSEG_MOVETO_REL:
                            return new window.SVGPathSegMovetoRel(owningPathSegList, this._parseNumber(), this._parseNumber());
                        case window.SVGPathSeg.PATHSEG_MOVETO_ABS:
                            return new window.SVGPathSegMovetoAbs(owningPathSegList, this._parseNumber(), this._parseNumber());
                        case window.SVGPathSeg.PATHSEG_LINETO_REL:
                            return new window.SVGPathSegLinetoRel(owningPathSegList, this._parseNumber(), this._parseNumber());
                        case window.SVGPathSeg.PATHSEG_LINETO_ABS:
                            return new window.SVGPathSegLinetoAbs(owningPathSegList, this._parseNumber(), this._parseNumber());
                        case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:
                            return new window.SVGPathSegLinetoHorizontalRel(owningPathSegList, this._parseNumber());
                        case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:
                            return new window.SVGPathSegLinetoHorizontalAbs(owningPathSegList, this._parseNumber());
                        case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:
                            return new window.SVGPathSegLinetoVerticalRel(owningPathSegList, this._parseNumber());
                        case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:
                            return new window.SVGPathSegLinetoVerticalAbs(owningPathSegList, this._parseNumber());
                        case window.SVGPathSeg.PATHSEG_CLOSEPATH:
                            this._skipOptionalSpaces();
                            return new window.SVGPathSegClosePath(owningPathSegList);
                        case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:
                            var points = { x1: this._parseNumber(), y1: this._parseNumber(), x2: this._parseNumber(), y2: this._parseNumber(), x: this._parseNumber(), y: this._parseNumber() };
                            return new window.SVGPathSegCurvetoCubicRel(owningPathSegList, points.x, points.y, points.x1, points.y1, points.x2, points.y2);
                        case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:
                            var points = { x1: this._parseNumber(), y1: this._parseNumber(), x2: this._parseNumber(), y2: this._parseNumber(), x: this._parseNumber(), y: this._parseNumber() };
                            return new window.SVGPathSegCurvetoCubicAbs(owningPathSegList, points.x, points.y, points.x1, points.y1, points.x2, points.y2);
                        case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:
                            var points = { x2: this._parseNumber(), y2: this._parseNumber(), x: this._parseNumber(), y: this._parseNumber() };
                            return new window.SVGPathSegCurvetoCubicSmoothRel(owningPathSegList, points.x, points.y, points.x2, points.y2);
                        case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:
                            var points = { x2: this._parseNumber(), y2: this._parseNumber(), x: this._parseNumber(), y: this._parseNumber() };
                            return new window.SVGPathSegCurvetoCubicSmoothAbs(owningPathSegList, points.x, points.y, points.x2, points.y2);
                        case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:
                            var points = { x1: this._parseNumber(), y1: this._parseNumber(), x: this._parseNumber(), y: this._parseNumber() };
                            return new window.SVGPathSegCurvetoQuadraticRel(owningPathSegList, points.x, points.y, points.x1, points.y1);
                        case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:
                            var points = { x1: this._parseNumber(), y1: this._parseNumber(), x: this._parseNumber(), y: this._parseNumber() };
                            return new window.SVGPathSegCurvetoQuadraticAbs(owningPathSegList, points.x, points.y, points.x1, points.y1);
                        case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:
                            return new window.SVGPathSegCurvetoQuadraticSmoothRel(owningPathSegList, this._parseNumber(), this._parseNumber());
                        case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:
                            return new window.SVGPathSegCurvetoQuadraticSmoothAbs(owningPathSegList, this._parseNumber(), this._parseNumber());
                        case window.SVGPathSeg.PATHSEG_ARC_REL:
                            var points = { x1: this._parseNumber(), y1: this._parseNumber(), arcAngle: this._parseNumber(), arcLarge: this._parseArcFlag(), arcSweep: this._parseArcFlag(), x: this._parseNumber(), y: this._parseNumber() };
                            return new window.SVGPathSegArcRel(owningPathSegList, points.x, points.y, points.x1, points.y1, points.arcAngle, points.arcLarge, points.arcSweep);
                        case window.SVGPathSeg.PATHSEG_ARC_ABS:
                            var points = { x1: this._parseNumber(), y1: this._parseNumber(), arcAngle: this._parseNumber(), arcLarge: this._parseArcFlag(), arcSweep: this._parseArcFlag(), x: this._parseNumber(), y: this._parseNumber() };
                            return new window.SVGPathSegArcAbs(owningPathSegList, points.x, points.y, points.x1, points.y1, points.arcAngle, points.arcLarge, points.arcSweep);
                        default:
                            throw "Unknown path seg type.";
                    }
                };

                var builder = new Builder();
                var source = new Source(string);

                if (!source.initialCommandIsMoveTo()) return [];
                while (source.hasMoreData()) {
                    var pathSeg = source.parseSegment();
                    if (!pathSeg) return [];
                    builder.appendSegment(pathSeg);
                }

                return builder.pathSegList;
            };
        }
    })();

    // String.padEnd polyfill for IE11
    //
    // https://github.com/uxitten/polyfill/blob/master/string.polyfill.js
    // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padEnd
    if (!String.prototype.padEnd) {
        String.prototype.padEnd = function padEnd(targetLength, padString) {
            targetLength = targetLength >> 0; //floor if number or convert non-number to 0;
            padString = String(typeof padString !== 'undefined' ? padString : ' ');
            if (this.length > targetLength) {
                return String(this);
            } else {
                targetLength = targetLength - this.length;
                if (targetLength > padString.length) {
                    padString += padString.repeat(targetLength / padString.length); //append to original to ensure we are longer than needed
                }
                return String(this) + padString.slice(0, targetLength);
            }
        };
    }

    /* jshint ignore:end */

    c3_chart_fn.axis = function () {};
    c3_chart_fn.axis.labels = function (labels) {
        var $$ = this.internal;
        if (arguments.length) {
            Object.keys(labels).forEach(function (axisId) {
                $$.axis.setLabelText(axisId, labels[axisId]);
            });
            $$.axis.updateLabels();
        }
        // TODO: return some values?
    };
    c3_chart_fn.axis.max = function (max) {
        var $$ = this.internal,
            config = $$.config;
        if (arguments.length) {
            if ((typeof max === 'undefined' ? 'undefined' : _typeof(max)) === 'object') {
                if (isValue(max.x)) {
                    config.axis_x_max = max.x;
                }
                if (isValue(max.y)) {
                    config.axis_y_max = max.y;
                }
                if (isValue(max.y2)) {
                    config.axis_y2_max = max.y2;
                }
            } else {
                config.axis_y_max = config.axis_y2_max = max;
            }
            $$.redraw({ withUpdateOrgXDomain: true, withUpdateXDomain: true });
        } else {
            return {
                x: config.axis_x_max,
                y: config.axis_y_max,
                y2: config.axis_y2_max
            };
        }
    };
    c3_chart_fn.axis.min = function (min) {
        var $$ = this.internal,
            config = $$.config;
        if (arguments.length) {
            if ((typeof min === 'undefined' ? 'undefined' : _typeof(min)) === 'object') {
                if (isValue(min.x)) {
                    config.axis_x_min = min.x;
                }
                if (isValue(min.y)) {
                    config.axis_y_min = min.y;
                }
                if (isValue(min.y2)) {
                    config.axis_y2_min = min.y2;
                }
            } else {
                config.axis_y_min = config.axis_y2_min = min;
            }
            $$.redraw({ withUpdateOrgXDomain: true, withUpdateXDomain: true });
        } else {
            return {
                x: config.axis_x_min,
                y: config.axis_y_min,
                y2: config.axis_y2_min
            };
        }
    };
    c3_chart_fn.axis.range = function (range) {
        if (arguments.length) {
            if (isDefined(range.max)) {
                this.axis.max(range.max);
            }
            if (isDefined(range.min)) {
                this.axis.min(range.min);
            }
        } else {
            return {
                max: this.axis.max(),
                min: this.axis.min()
            };
        }
    };

    c3_chart_fn.category = function (i, category) {
        var $$ = this.internal,
            config = $$.config;
        if (arguments.length > 1) {
            config.axis_x_categories[i] = category;
            $$.redraw();
        }
        return config.axis_x_categories[i];
    };
    c3_chart_fn.categories = function (categories) {
        var $$ = this.internal,
            config = $$.config;
        if (!arguments.length) {
            return config.axis_x_categories;
        }
        config.axis_x_categories = categories;
        $$.redraw();
        return config.axis_x_categories;
    };

    c3_chart_fn.resize = function (size) {
        var $$ = this.internal,
            config = $$.config;
        config.size_width = size ? size.width : null;
        config.size_height = size ? size.height : null;
        this.flush();
    };

    c3_chart_fn.flush = function () {
        var $$ = this.internal;
        $$.updateAndRedraw({ withLegend: true, withTransition: false, withTransitionForTransform: false });
    };

    c3_chart_fn.destroy = function () {
        var $$ = this.internal;

        window.clearInterval($$.intervalForObserveInserted);

        if ($$.resizeTimeout !== undefined) {
            window.clearTimeout($$.resizeTimeout);
        }

        if (window.detachEvent) {
            window.detachEvent('onresize', $$.resizeIfElementDisplayed);
        } else if (window.removeEventListener) {
            window.removeEventListener('resize', $$.resizeIfElementDisplayed);
        } else {
            var wrapper = window.onresize;
            // check if no one else removed our wrapper and remove our resizeFunction from it
            if (wrapper && wrapper.add && wrapper.remove) {
                wrapper.remove($$.resizeFunction);
            }
        }

        // remove the inner resize functions
        $$.resizeFunction.remove();

        $$.selectChart.classed('c3', false).html("");

        // MEMO: this is needed because the reference of some elements will not be released, then memory leak will happen.
        Object.keys($$).forEach(function (key) {
            $$[key] = null;
        });

        return null;
    };

    // TODO: fix
    c3_chart_fn.color = function (id) {
        var $$ = this.internal;
        return $$.color(id); // more patterns
    };

    c3_chart_fn.data = function (targetIds) {
        var targets = this.internal.data.targets;
        return typeof targetIds === 'undefined' ? targets : targets.filter(function (t) {
            return [].concat(targetIds).indexOf(t.id) >= 0;
        });
    };
    c3_chart_fn.data.shown = function (targetIds) {
        return this.internal.filterTargetsToShow(this.data(targetIds));
    };
    c3_chart_fn.data.values = function (targetId) {
        var targets,
            values = null;
        if (targetId) {
            targets = this.data(targetId);
            values = targets[0] ? targets[0].values.map(function (d) {
                return d.value;
            }) : null;
        }
        return values;
    };
    c3_chart_fn.data.names = function (names) {
        this.internal.clearLegendItemTextBoxCache();
        return this.internal.updateDataAttributes('names', names);
    };
    c3_chart_fn.data.colors = function (colors) {
        return this.internal.updateDataAttributes('colors', colors);
    };
    c3_chart_fn.data.axes = function (axes) {
        return this.internal.updateDataAttributes('axes', axes);
    };

    c3_chart_fn.flow = function (args) {
        var $$ = this.internal,
            targets,
            data,
            notfoundIds = [],
            orgDataCount = $$.getMaxDataCount(),
            dataCount,
            domain,
            baseTarget,
            baseValue,
            length = 0,
            tail = 0,
            diff,
            to;

        if (args.json) {
            data = $$.convertJsonToData(args.json, args.keys);
        } else if (args.rows) {
            data = $$.convertRowsToData(args.rows);
        } else if (args.columns) {
            data = $$.convertColumnsToData(args.columns);
        } else {
            return;
        }
        targets = $$.convertDataToTargets(data, true);

        // Update/Add data
        $$.data.targets.forEach(function (t) {
            var found = false,
                i,
                j;
            for (i = 0; i < targets.length; i++) {
                if (t.id === targets[i].id) {
                    found = true;

                    if (t.values[t.values.length - 1]) {
                        tail = t.values[t.values.length - 1].index + 1;
                    }
                    length = targets[i].values.length;

                    for (j = 0; j < length; j++) {
                        targets[i].values[j].index = tail + j;
                        if (!$$.isTimeSeries()) {
                            targets[i].values[j].x = tail + j;
                        }
                    }
                    t.values = t.values.concat(targets[i].values);

                    targets.splice(i, 1);
                    break;
                }
            }
            if (!found) {
                notfoundIds.push(t.id);
            }
        });

        // Append null for not found targets
        $$.data.targets.forEach(function (t) {
            var i, j;
            for (i = 0; i < notfoundIds.length; i++) {
                if (t.id === notfoundIds[i]) {
                    tail = t.values[t.values.length - 1].index + 1;
                    for (j = 0; j < length; j++) {
                        t.values.push({
                            id: t.id,
                            index: tail + j,
                            x: $$.isTimeSeries() ? $$.getOtherTargetX(tail + j) : tail + j,
                            value: null
                        });
                    }
                }
            }
        });

        // Generate null values for new target
        if ($$.data.targets.length) {
            targets.forEach(function (t) {
                var i,
                    missing = [];
                for (i = $$.data.targets[0].values[0].index; i < tail; i++) {
                    missing.push({
                        id: t.id,
                        index: i,
                        x: $$.isTimeSeries() ? $$.getOtherTargetX(i) : i,
                        value: null
                    });
                }
                t.values.forEach(function (v) {
                    v.index += tail;
                    if (!$$.isTimeSeries()) {
                        v.x += tail;
                    }
                });
                t.values = missing.concat(t.values);
            });
        }
        $$.data.targets = $$.data.targets.concat(targets); // add remained

        // check data count because behavior needs to change when it's only one
        dataCount = $$.getMaxDataCount();
        baseTarget = $$.data.targets[0];
        baseValue = baseTarget.values[0];

        // Update length to flow if needed
        if (isDefined(args.to)) {
            length = 0;
            to = $$.isTimeSeries() ? $$.parseDate(args.to) : args.to;
            baseTarget.values.forEach(function (v) {
                if (v.x < to) {
                    length++;
                }
            });
        } else if (isDefined(args.length)) {
            length = args.length;
        }

        // If only one data, update the domain to flow from left edge of the chart
        if (!orgDataCount) {
            if ($$.isTimeSeries()) {
                if (baseTarget.values.length > 1) {
                    diff = baseTarget.values[baseTarget.values.length - 1].x - baseValue.x;
                } else {
                    diff = baseValue.x - $$.getXDomain($$.data.targets)[0];
                }
            } else {
                diff = 1;
            }
            domain = [baseValue.x - diff, baseValue.x];
            $$.updateXDomain(null, true, true, false, domain);
        } else if (orgDataCount === 1) {
            if ($$.isTimeSeries()) {
                diff = (baseTarget.values[baseTarget.values.length - 1].x - baseValue.x) / 2;
                domain = [new Date(+baseValue.x - diff), new Date(+baseValue.x + diff)];
                $$.updateXDomain(null, true, true, false, domain);
            }
        }

        // Set targets
        $$.updateTargets($$.data.targets);

        // Redraw with new targets
        $$.redraw({
            flow: {
                index: baseValue.index,
                length: length,
                duration: isValue(args.duration) ? args.duration : $$.config.transition_duration,
                done: args.done,
                orgDataCount: orgDataCount
            },
            withLegend: true,
            withTransition: orgDataCount > 1,
            withTrimXDomain: false,
            withUpdateXAxis: true
        });
    };

    c3_chart_internal_fn.generateFlow = function (args) {
        var $$ = this,
            config = $$.config,
            d3 = $$.d3;

        return function () {
            var targets = args.targets,
                flow = args.flow,
                drawBar = args.drawBar,
                drawLine = args.drawLine,
                drawArea = args.drawArea,
                cx = args.cx,
                cy = args.cy,
                xv = args.xv,
                xForText = args.xForText,
                yForText = args.yForText,
                duration = args.duration;

            var translateX,
                scaleX = 1,
                transform,
                flowIndex = flow.index,
                flowLength = flow.length,
                flowStart = $$.getValueOnIndex($$.data.targets[0].values, flowIndex),
                flowEnd = $$.getValueOnIndex($$.data.targets[0].values, flowIndex + flowLength),
                orgDomain = $$.x.domain(),
                domain,
                durationForFlow = flow.duration || duration,
                done = flow.done || function () {},
                wait = $$.generateWait();

            var xgrid = $$.xgrid || d3.selectAll([]),
                xgridLines = $$.xgridLines || d3.selectAll([]),
                mainRegion = $$.mainRegion || d3.selectAll([]),
                mainText = $$.mainText || d3.selectAll([]),
                mainBar = $$.mainBar || d3.selectAll([]),
                mainLine = $$.mainLine || d3.selectAll([]),
                mainArea = $$.mainArea || d3.selectAll([]),
                mainCircle = $$.mainCircle || d3.selectAll([]);

            // set flag
            $$.flowing = true;

            // remove head data after rendered
            $$.data.targets.forEach(function (d) {
                d.values.splice(0, flowLength);
            });

            // update x domain to generate axis elements for flow
            domain = $$.updateXDomain(targets, true, true);
            // update elements related to x scale
            if ($$.updateXGrid) {
                $$.updateXGrid(true);
            }

            // generate transform to flow
            if (!flow.orgDataCount) {
                // if empty
                if ($$.data.targets[0].values.length !== 1) {
                    translateX = $$.x(orgDomain[0]) - $$.x(domain[0]);
                } else {
                    if ($$.isTimeSeries()) {
                        flowStart = $$.getValueOnIndex($$.data.targets[0].values, 0);
                        flowEnd = $$.getValueOnIndex($$.data.targets[0].values, $$.data.targets[0].values.length - 1);
                        translateX = $$.x(flowStart.x) - $$.x(flowEnd.x);
                    } else {
                        translateX = diffDomain(domain) / 2;
                    }
                }
            } else if (flow.orgDataCount === 1 || (flowStart && flowStart.x) === (flowEnd && flowEnd.x)) {
                translateX = $$.x(orgDomain[0]) - $$.x(domain[0]);
            } else {
                if ($$.isTimeSeries()) {
                    translateX = $$.x(orgDomain[0]) - $$.x(domain[0]);
                } else {
                    translateX = $$.x(flowStart.x) - $$.x(flowEnd.x);
                }
            }
            scaleX = diffDomain(orgDomain) / diffDomain(domain);
            transform = 'translate(' + translateX + ',0) scale(' + scaleX + ',1)';

            $$.hideXGridFocus();

            d3.transition().ease('linear').duration(durationForFlow).each(function () {
                wait.add($$.axes.x.transition().call($$.xAxis));
                wait.add(mainBar.transition().attr('transform', transform));
                wait.add(mainLine.transition().attr('transform', transform));
                wait.add(mainArea.transition().attr('transform', transform));
                wait.add(mainCircle.transition().attr('transform', transform));
                wait.add(mainText.transition().attr('transform', transform));
                wait.add(mainRegion.filter($$.isRegionOnX).transition().attr('transform', transform));
                wait.add(xgrid.transition().attr('transform', transform));
                wait.add(xgridLines.transition().attr('transform', transform));
            }).call(wait, function () {
                var i,
                    shapes = [],
                    texts = [],
                    eventRects = [];

                // remove flowed elements
                if (flowLength) {
                    for (i = 0; i < flowLength; i++) {
                        shapes.push('.' + CLASS.shape + '-' + (flowIndex + i));
                        texts.push('.' + CLASS.text + '-' + (flowIndex + i));
                        eventRects.push('.' + CLASS.eventRect + '-' + (flowIndex + i));
                    }
                    $$.svg.selectAll('.' + CLASS.shapes).selectAll(shapes).remove();
                    $$.svg.selectAll('.' + CLASS.texts).selectAll(texts).remove();
                    $$.svg.selectAll('.' + CLASS.eventRects).selectAll(eventRects).remove();
                    $$.svg.select('.' + CLASS.xgrid).remove();
                }

                // draw again for removing flowed elements and reverting attr
                xgrid.attr('transform', null).attr($$.xgridAttr);
                xgridLines.attr('transform', null);
                xgridLines.select('line').attr("x1", config.axis_rotated ? 0 : xv).attr("x2", config.axis_rotated ? $$.width : xv);
                xgridLines.select('text').attr("x", config.axis_rotated ? $$.width : 0).attr("y", xv);
                mainBar.attr('transform', null).attr("d", drawBar);
                mainLine.attr('transform', null).attr("d", drawLine);
                mainArea.attr('transform', null).attr("d", drawArea);
                mainCircle.attr('transform', null).attr("cx", cx).attr("cy", cy);
                mainText.attr('transform', null).attr('x', xForText).attr('y', yForText).style('fill-opacity', $$.opacityForText.bind($$));
                mainRegion.attr('transform', null);
                mainRegion.select('rect').filter($$.isRegionOnX).attr("x", $$.regionX.bind($$)).attr("width", $$.regionWidth.bind($$));

                if (config.interaction_enabled) {
                    $$.redrawEventRect();
                }

                // callback for end of flow
                done();

                $$.flowing = false;
            });
        };
    };

    c3_chart_fn.focus = function (targetIds) {
        var $$ = this.internal,
            candidates;

        targetIds = $$.mapToTargetIds(targetIds);
        candidates = $$.svg.selectAll($$.selectorTargets(targetIds.filter($$.isTargetToShow, $$))), this.revert();
        this.defocus();
        candidates.classed(CLASS.focused, true).classed(CLASS.defocused, false);
        if ($$.hasArcType()) {
            $$.expandArc(targetIds);
        }
        $$.toggleFocusLegend(targetIds, true);

        $$.focusedTargetIds = targetIds;
        $$.defocusedTargetIds = $$.defocusedTargetIds.filter(function (id) {
            return targetIds.indexOf(id) < 0;
        });
    };

    c3_chart_fn.defocus = function (targetIds) {
        var $$ = this.internal,
            candidates;

        targetIds = $$.mapToTargetIds(targetIds);
        candidates = $$.svg.selectAll($$.selectorTargets(targetIds.filter($$.isTargetToShow, $$))), candidates.classed(CLASS.focused, false).classed(CLASS.defocused, true);
        if ($$.hasArcType()) {
            $$.unexpandArc(targetIds);
        }
        $$.toggleFocusLegend(targetIds, false);

        $$.focusedTargetIds = $$.focusedTargetIds.filter(function (id) {
            return targetIds.indexOf(id) < 0;
        });
        $$.defocusedTargetIds = targetIds;
    };

    c3_chart_fn.revert = function (targetIds) {
        var $$ = this.internal,
            candidates;

        targetIds = $$.mapToTargetIds(targetIds);
        candidates = $$.svg.selectAll($$.selectorTargets(targetIds)); // should be for all targets

        candidates.classed(CLASS.focused, false).classed(CLASS.defocused, false);
        if ($$.hasArcType()) {
            $$.unexpandArc(targetIds);
        }
        if ($$.config.legend_show) {
            $$.showLegend(targetIds.filter($$.isLegendToShow.bind($$)));
            $$.legend.selectAll($$.selectorLegends(targetIds)).filter(function () {
                return $$.d3.select(this).classed(CLASS.legendItemFocused);
            }).classed(CLASS.legendItemFocused, false);
        }

        $$.focusedTargetIds = [];
        $$.defocusedTargetIds = [];
    };

    c3_chart_fn.xgrids = function (grids) {
        var $$ = this.internal,
            config = $$.config;
        if (!grids) {
            return config.grid_x_lines;
        }
        config.grid_x_lines = grids;
        $$.redrawWithoutRescale();
        return config.grid_x_lines;
    };
    c3_chart_fn.xgrids.add = function (grids) {
        var $$ = this.internal;
        return this.xgrids($$.config.grid_x_lines.concat(grids ? grids : []));
    };
    c3_chart_fn.xgrids.remove = function (params) {
        // TODO: multiple
        var $$ = this.internal;
        $$.removeGridLines(params, true);
    };

    c3_chart_fn.ygrids = function (grids) {
        var $$ = this.internal,
            config = $$.config;
        if (!grids) {
            return config.grid_y_lines;
        }
        config.grid_y_lines = grids;
        $$.redrawWithoutRescale();
        return config.grid_y_lines;
    };
    c3_chart_fn.ygrids.add = function (grids) {
        var $$ = this.internal;
        return this.ygrids($$.config.grid_y_lines.concat(grids ? grids : []));
    };
    c3_chart_fn.ygrids.remove = function (params) {
        // TODO: multiple
        var $$ = this.internal;
        $$.removeGridLines(params, false);
    };

    c3_chart_fn.groups = function (groups) {
        var $$ = this.internal,
            config = $$.config;
        if (isUndefined(groups)) {
            return config.data_groups;
        }
        config.data_groups = groups;
        $$.redraw();
        return config.data_groups;
    };

    c3_chart_fn.legend = function () {};
    c3_chart_fn.legend.show = function (targetIds) {
        var $$ = this.internal;
        $$.showLegend($$.mapToTargetIds(targetIds));
        $$.updateAndRedraw({ withLegend: true });
    };
    c3_chart_fn.legend.hide = function (targetIds) {
        var $$ = this.internal;
        $$.hideLegend($$.mapToTargetIds(targetIds));
        $$.updateAndRedraw({ withLegend: true });
    };

    c3_chart_fn.load = function (args) {
        var $$ = this.internal,
            config = $$.config;
        // update xs if specified
        if (args.xs) {
            $$.addXs(args.xs);
        }
        // update names if exists
        if ('names' in args) {
            c3_chart_fn.data.names.bind(this)(args.names);
        }
        // update classes if exists
        if ('classes' in args) {
            Object.keys(args.classes).forEach(function (id) {
                config.data_classes[id] = args.classes[id];
            });
        }
        // update categories if exists
        if ('categories' in args && $$.isCategorized()) {
            config.axis_x_categories = args.categories;
        }
        // update axes if exists
        if ('axes' in args) {
            Object.keys(args.axes).forEach(function (id) {
                config.data_axes[id] = args.axes[id];
            });
        }
        // update colors if exists
        if ('colors' in args) {
            Object.keys(args.colors).forEach(function (id) {
                config.data_colors[id] = args.colors[id];
            });
        }
        // use cache if exists
        if ('cacheIds' in args && $$.hasCaches(args.cacheIds)) {
            $$.load($$.getCaches(args.cacheIds), args.done);
            return;
        }
        // unload if needed
        if ('unload' in args) {
            // TODO: do not unload if target will load (included in url/rows/columns)
            $$.unload($$.mapToTargetIds(typeof args.unload === 'boolean' && args.unload ? null : args.unload), function () {
                $$.loadFromArgs(args);
            });
        } else {
            $$.loadFromArgs(args);
        }
    };

    c3_chart_fn.unload = function (args) {
        var $$ = this.internal;
        args = args || {};
        if (args instanceof Array) {
            args = { ids: args };
        } else if (typeof args === 'string') {
            args = { ids: [args] };
        }
        $$.unload($$.mapToTargetIds(args.ids), function () {
            $$.redraw({ withUpdateOrgXDomain: true, withUpdateXDomain: true, withLegend: true });
            if (args.done) {
                args.done();
            }
        });
    };

    c3_chart_fn.regions = function (regions) {
        var $$ = this.internal,
            config = $$.config;
        if (!regions) {
            return config.regions;
        }
        config.regions = regions;
        $$.redrawWithoutRescale();
        return config.regions;
    };
    c3_chart_fn.regions.add = function (regions) {
        var $$ = this.internal,
            config = $$.config;
        if (!regions) {
            return config.regions;
        }
        config.regions = config.regions.concat(regions);
        $$.redrawWithoutRescale();
        return config.regions;
    };
    c3_chart_fn.regions.remove = function (options) {
        var $$ = this.internal,
            config = $$.config,
            duration,
            classes,
            regions;

        options = options || {};
        duration = $$.getOption(options, "duration", config.transition_duration);
        classes = $$.getOption(options, "classes", [CLASS.region]);

        regions = $$.main.select('.' + CLASS.regions).selectAll(classes.map(function (c) {
            return '.' + c;
        }));
        (duration ? regions.transition().duration(duration) : regions).style('opacity', 0).remove();

        config.regions = config.regions.filter(function (region) {
            var found = false;
            if (!region['class']) {
                return true;
            }
            region['class'].split(' ').forEach(function (c) {
                if (classes.indexOf(c) >= 0) {
                    found = true;
                }
            });
            return !found;
        });

        return config.regions;
    };

    c3_chart_fn.selected = function (targetId) {
        var $$ = this.internal,
            d3 = $$.d3;
        return d3.merge($$.main.selectAll('.' + CLASS.shapes + $$.getTargetSelectorSuffix(targetId)).selectAll('.' + CLASS.shape).filter(function () {
            return d3.select(this).classed(CLASS.SELECTED);
        }).map(function (d) {
            return d.map(function (d) {
                var data = d.__data__;return data.data ? data.data : data;
            });
        }));
    };
    c3_chart_fn.select = function (ids, indices, resetOther) {
        var $$ = this.internal,
            d3 = $$.d3,
            config = $$.config;
        if (!config.data_selection_enabled) {
            return;
        }
        $$.main.selectAll('.' + CLASS.shapes).selectAll('.' + CLASS.shape).each(function (d, i) {
            var shape = d3.select(this),
                id = d.data ? d.data.id : d.id,
                toggle = $$.getToggle(this, d).bind($$),
                isTargetId = config.data_selection_grouped || !ids || ids.indexOf(id) >= 0,
                isTargetIndex = !indices || indices.indexOf(i) >= 0,
                isSelected = shape.classed(CLASS.SELECTED);
            // line/area selection not supported yet
            if (shape.classed(CLASS.line) || shape.classed(CLASS.area)) {
                return;
            }
            if (isTargetId && isTargetIndex) {
                if (config.data_selection_isselectable(d) && !isSelected) {
                    toggle(true, shape.classed(CLASS.SELECTED, true), d, i);
                }
            } else if (isDefined(resetOther) && resetOther) {
                if (isSelected) {
                    toggle(false, shape.classed(CLASS.SELECTED, false), d, i);
                }
            }
        });
    };
    c3_chart_fn.unselect = function (ids, indices) {
        var $$ = this.internal,
            d3 = $$.d3,
            config = $$.config;
        if (!config.data_selection_enabled) {
            return;
        }
        $$.main.selectAll('.' + CLASS.shapes).selectAll('.' + CLASS.shape).each(function (d, i) {
            var shape = d3.select(this),
                id = d.data ? d.data.id : d.id,
                toggle = $$.getToggle(this, d).bind($$),
                isTargetId = config.data_selection_grouped || !ids || ids.indexOf(id) >= 0,
                isTargetIndex = !indices || indices.indexOf(i) >= 0,
                isSelected = shape.classed(CLASS.SELECTED);
            // line/area selection not supported yet
            if (shape.classed(CLASS.line) || shape.classed(CLASS.area)) {
                return;
            }
            if (isTargetId && isTargetIndex) {
                if (config.data_selection_isselectable(d)) {
                    if (isSelected) {
                        toggle(false, shape.classed(CLASS.SELECTED, false), d, i);
                    }
                }
            }
        });
    };

    c3_chart_fn.show = function (targetIds, options) {
        var $$ = this.internal,
            targets;

        targetIds = $$.mapToTargetIds(targetIds);
        options = options || {};

        $$.removeHiddenTargetIds(targetIds);
        targets = $$.svg.selectAll($$.selectorTargets(targetIds));

        targets.transition().style('opacity', 1, 'important').call($$.endall, function () {
            targets.style('opacity', null).style('opacity', 1);
        });

        if (options.withLegend) {
            $$.showLegend(targetIds);
        }

        $$.redraw({ withUpdateOrgXDomain: true, withUpdateXDomain: true, withLegend: true });
    };

    c3_chart_fn.hide = function (targetIds, options) {
        var $$ = this.internal,
            targets;

        targetIds = $$.mapToTargetIds(targetIds);
        options = options || {};

        $$.addHiddenTargetIds(targetIds);
        targets = $$.svg.selectAll($$.selectorTargets(targetIds));

        targets.transition().style('opacity', 0, 'important').call($$.endall, function () {
            targets.style('opacity', null).style('opacity', 0);
        });

        if (options.withLegend) {
            $$.hideLegend(targetIds);
        }

        $$.redraw({ withUpdateOrgXDomain: true, withUpdateXDomain: true, withLegend: true });
    };

    c3_chart_fn.toggle = function (targetIds, options) {
        var that = this,
            $$ = this.internal;
        $$.mapToTargetIds(targetIds).forEach(function (targetId) {
            $$.isTargetToShow(targetId) ? that.hide(targetId, options) : that.show(targetId, options);
        });
    };

    c3_chart_fn.tooltip = function () {};
    c3_chart_fn.tooltip.show = function (args) {
        var $$ = this.internal,
            index,
            mouse;

        // determine mouse position on the chart
        if (args.mouse) {
            mouse = args.mouse;
        }

        // determine focus data
        if (args.data) {
            if ($$.isMultipleX()) {
                // if multiple xs, target point will be determined by mouse
                mouse = [$$.x(args.data.x), $$.getYScale(args.data.id)(args.data.value)];
                index = null;
            } else {
                // TODO: when tooltip_grouped = false
                index = isValue(args.data.index) ? args.data.index : $$.getIndexByX(args.data.x);
            }
        } else if (typeof args.x !== 'undefined') {
            index = $$.getIndexByX(args.x);
        } else if (typeof args.index !== 'undefined') {
            index = args.index;
        }

        // emulate mouse events to show
        $$.dispatchEvent('mouseover', index, mouse);
        $$.dispatchEvent('mousemove', index, mouse);

        $$.config.tooltip_onshow.call($$, args.data);
    };
    c3_chart_fn.tooltip.hide = function () {
        // TODO: get target data by checking the state of focus
        this.internal.dispatchEvent('mouseout', 0);

        this.internal.config.tooltip_onhide.call(this);
    };

    c3_chart_fn.transform = function (type, targetIds) {
        var $$ = this.internal,
            options = ['pie', 'donut'].indexOf(type) >= 0 ? { withTransform: true } : null;
        $$.transformTo(targetIds, type, options);
    };

    c3_chart_internal_fn.transformTo = function (targetIds, type, optionsForRedraw) {
        var $$ = this,
            withTransitionForAxis = !$$.hasArcType(),
            options = optionsForRedraw || { withTransitionForAxis: withTransitionForAxis };
        options.withTransitionForTransform = false;
        $$.transiting = false;
        $$.setTargetType(targetIds, type);
        $$.updateTargets($$.data.targets); // this is needed when transforming to arc
        $$.updateAndRedraw(options);
    };

    c3_chart_fn.x = function (x) {
        var $$ = this.internal;
        if (arguments.length) {
            $$.updateTargetX($$.data.targets, x);
            $$.redraw({ withUpdateOrgXDomain: true, withUpdateXDomain: true });
        }
        return $$.data.xs;
    };
    c3_chart_fn.xs = function (xs) {
        var $$ = this.internal;
        if (arguments.length) {
            $$.updateTargetXs($$.data.targets, xs);
            $$.redraw({ withUpdateOrgXDomain: true, withUpdateXDomain: true });
        }
        return $$.data.xs;
    };

    c3_chart_fn.zoom = function (domain) {
        var $$ = this.internal;
        if (domain) {
            if ($$.isTimeSeries()) {
                domain = domain.map(function (x) {
                    return $$.parseDate(x);
                });
            }
            $$.brush.extent(domain);
            $$.redraw({ withUpdateXDomain: true, withY: $$.config.zoom_rescale });
            $$.config.zoom_onzoom.call(this, $$.x.orgDomain());
        }
        return $$.brush.extent();
    };
    c3_chart_fn.zoom.enable = function (enabled) {
        var $$ = this.internal;
        $$.config.zoom_enabled = enabled;
        $$.updateAndRedraw();
    };
    c3_chart_fn.unzoom = function () {
        var $$ = this.internal;
        $$.brush.clear().update();
        $$.redraw({ withUpdateXDomain: true });
    };

    c3_chart_fn.zoom.max = function (max) {
        var $$ = this.internal,
            config = $$.config,
            d3 = $$.d3;
        if (max === 0 || max) {
            config.zoom_x_max = d3.max([$$.orgXDomain[1], max]);
        } else {
            return config.zoom_x_max;
        }
    };

    c3_chart_fn.zoom.min = function (min) {
        var $$ = this.internal,
            config = $$.config,
            d3 = $$.d3;
        if (min === 0 || min) {
            config.zoom_x_min = d3.min([$$.orgXDomain[0], min]);
        } else {
            return config.zoom_x_min;
        }
    };

    c3_chart_fn.zoom.range = function (range) {
        if (arguments.length) {
            if (isDefined(range.max)) {
                this.domain.max(range.max);
            }
            if (isDefined(range.min)) {
                this.domain.min(range.min);
            }
        } else {
            return {
                max: this.domain.max(),
                min: this.domain.min()
            };
        }
    };

    c3_chart_internal_fn.initPie = function () {
        var $$ = this,
            d3 = $$.d3;
        $$.pie = d3.layout.pie().value(function (d) {
            return d.values.reduce(function (a, b) {
                return a + b.value;
            }, 0);
        });
        $$.pie.sort($$.getOrderFunction() || null);
    };

    c3_chart_internal_fn.updateRadius = function () {
        var $$ = this,
            config = $$.config,
            w = config.gauge_width || config.donut_width,
            gaugeArcWidth = $$.filterTargetsToShow($$.data.targets).length * $$.config.gauge_arcs_minWidth;
        $$.radiusExpanded = Math.min($$.arcWidth, $$.arcHeight) / 2 * ($$.hasType('gauge') ? 0.85 : 1);
        $$.radius = $$.radiusExpanded * 0.95;
        $$.innerRadiusRatio = w ? ($$.radius - w) / $$.radius : 0.6;
        $$.innerRadius = $$.hasType('donut') || $$.hasType('gauge') ? $$.radius * $$.innerRadiusRatio : 0;
        $$.gaugeArcWidth = w ? w : gaugeArcWidth <= $$.radius - $$.innerRadius ? $$.radius - $$.innerRadius : gaugeArcWidth <= $$.radius ? gaugeArcWidth : $$.radius;
    };

    c3_chart_internal_fn.updateArc = function () {
        var $$ = this;
        $$.svgArc = $$.getSvgArc();
        $$.svgArcExpanded = $$.getSvgArcExpanded();
        $$.svgArcExpandedSub = $$.getSvgArcExpanded(0.98);
    };

    c3_chart_internal_fn.updateAngle = function (d) {
        var $$ = this,
            config = $$.config,
            found = false,
            index = 0,
            gMin,
            gMax,
            gTic,
            gValue;

        if (!config) {
            return null;
        }

        $$.pie($$.filterTargetsToShow($$.data.targets)).forEach(function (t) {
            if (!found && t.data.id === d.data.id) {
                found = true;
                d = t;
                d.index = index;
            }
            index++;
        });
        if (isNaN(d.startAngle)) {
            d.startAngle = 0;
        }
        if (isNaN(d.endAngle)) {
            d.endAngle = d.startAngle;
        }
        if ($$.isGaugeType(d.data)) {
            gMin = config.gauge_min;
            gMax = config.gauge_max;
            gTic = Math.PI * (config.gauge_fullCircle ? 2 : 1) / (gMax - gMin);
            gValue = d.value < gMin ? 0 : d.value < gMax ? d.value - gMin : gMax - gMin;
            d.startAngle = config.gauge_startingAngle;
            d.endAngle = d.startAngle + gTic * gValue;
        }
        return found ? d : null;
    };

    c3_chart_internal_fn.getSvgArc = function () {
        var $$ = this,
            hasGaugeType = $$.hasType('gauge'),
            singleArcWidth = $$.gaugeArcWidth / $$.filterTargetsToShow($$.data.targets).length,
            arc = $$.d3.svg.arc().outerRadius(function (d) {
            return hasGaugeType ? $$.radius - singleArcWidth * d.index : $$.radius;
        }).innerRadius(function (d) {
            return hasGaugeType ? $$.radius - singleArcWidth * (d.index + 1) : $$.innerRadius;
        }),
            newArc = function newArc(d, withoutUpdate) {
            var updated;
            if (withoutUpdate) {
                return arc(d);
            } // for interpolate
            updated = $$.updateAngle(d);
            return updated ? arc(updated) : "M 0 0";
        };
        // TODO: extends all function
        newArc.centroid = arc.centroid;
        return newArc;
    };

    c3_chart_internal_fn.getSvgArcExpanded = function (rate) {
        rate = rate || 1;
        var $$ = this,
            hasGaugeType = $$.hasType('gauge'),
            singleArcWidth = $$.gaugeArcWidth / $$.filterTargetsToShow($$.data.targets).length,
            expandWidth = Math.min($$.radiusExpanded * rate - $$.radius, singleArcWidth * 0.8 - (1 - rate) * 100),
            arc = $$.d3.svg.arc().outerRadius(function (d) {
            return hasGaugeType ? $$.radius - singleArcWidth * d.index + expandWidth : $$.radiusExpanded * rate;
        }).innerRadius(function (d) {
            return hasGaugeType ? $$.radius - singleArcWidth * (d.index + 1) : $$.innerRadius;
        });
        return function (d) {
            var updated = $$.updateAngle(d);
            return updated ? arc(updated) : "M 0 0";
        };
    };

    c3_chart_internal_fn.getArc = function (d, withoutUpdate, force) {
        return force || this.isArcType(d.data) ? this.svgArc(d, withoutUpdate) : "M 0 0";
    };

    c3_chart_internal_fn.transformForArcLabel = function (d) {
        var $$ = this,
            config = $$.config,
            updated = $$.updateAngle(d),
            c,
            x,
            y,
            h,
            ratio,
            translate = "",
            hasGauge = $$.hasType('gauge');
        if (updated && !hasGauge) {
            c = this.svgArc.centroid(updated);
            x = isNaN(c[0]) ? 0 : c[0];
            y = isNaN(c[1]) ? 0 : c[1];
            h = Math.sqrt(x * x + y * y);
            if ($$.hasType('donut') && config.donut_label_ratio) {
                ratio = isFunction(config.donut_label_ratio) ? config.donut_label_ratio(d, $$.radius, h) : config.donut_label_ratio;
            } else if ($$.hasType('pie') && config.pie_label_ratio) {
                ratio = isFunction(config.pie_label_ratio) ? config.pie_label_ratio(d, $$.radius, h) : config.pie_label_ratio;
            } else {
                ratio = $$.radius && h ? (36 / $$.radius > 0.375 ? 1.175 - 36 / $$.radius : 0.8) * $$.radius / h : 0;
            }
            translate = "translate(" + x * ratio + ',' + y * ratio + ")";
        } else if (updated && hasGauge && $$.filterTargetsToShow($$.data.targets).length > 1) {
            var y1 = Math.sin(updated.endAngle - Math.PI / 2);
            x = Math.cos(updated.endAngle - Math.PI / 2) * ($$.radiusExpanded + 25);
            y = y1 * ($$.radiusExpanded + 15 - Math.abs(y1 * 10)) + 3;
            translate = "translate(" + x + ',' + y + ")";
        }
        return translate;
    };

    c3_chart_internal_fn.getArcRatio = function (d) {
        var $$ = this,
            config = $$.config,
            whole = Math.PI * ($$.hasType('gauge') && !config.gauge_fullCircle ? 1 : 2);
        return d ? (d.endAngle - d.startAngle) / whole : null;
    };

    c3_chart_internal_fn.convertToArcData = function (d) {
        return this.addName({
            id: d.data.id,
            value: d.value,
            ratio: this.getArcRatio(d),
            index: d.index
        });
    };

    c3_chart_internal_fn.textForArcLabel = function (d) {
        var $$ = this,
            updated,
            value,
            ratio,
            id,
            format;
        if (!$$.shouldShowArcLabel()) {
            return "";
        }
        updated = $$.updateAngle(d);
        value = updated ? updated.value : null;
        ratio = $$.getArcRatio(updated);
        id = d.data.id;
        if (!$$.hasType('gauge') && !$$.meetsArcLabelThreshold(ratio)) {
            return "";
        }
        format = $$.getArcLabelFormat();
        return format ? format(value, ratio, id) : $$.defaultArcValueFormat(value, ratio);
    };

    c3_chart_internal_fn.textForGaugeMinMax = function (value, isMax) {
        var $$ = this,
            format = $$.getGaugeLabelExtents();

        return format ? format(value, isMax) : value;
    };

    c3_chart_internal_fn.expandArc = function (targetIds) {
        var $$ = this,
            interval;

        // MEMO: avoid to cancel transition
        if ($$.transiting) {
            interval = window.setInterval(function () {
                if (!$$.transiting) {
                    window.clearInterval(interval);
                    if ($$.legend.selectAll('.c3-legend-item-focused').size() > 0) {
                        $$.expandArc(targetIds);
                    }
                }
            }, 10);
            return;
        }

        targetIds = $$.mapToTargetIds(targetIds);

        $$.svg.selectAll($$.selectorTargets(targetIds, '.' + CLASS.chartArc)).each(function (d) {
            if (!$$.shouldExpand(d.data.id)) {
                return;
            }
            $$.d3.select(this).selectAll('path').transition().duration($$.expandDuration(d.data.id)).attr("d", $$.svgArcExpanded).transition().duration($$.expandDuration(d.data.id) * 2).attr("d", $$.svgArcExpandedSub).each(function (d) {
                if ($$.isDonutType(d.data)) {
                    // callback here
                }
            });
        });
    };

    c3_chart_internal_fn.unexpandArc = function (targetIds) {
        var $$ = this;

        if ($$.transiting) {
            return;
        }

        targetIds = $$.mapToTargetIds(targetIds);

        $$.svg.selectAll($$.selectorTargets(targetIds, '.' + CLASS.chartArc)).selectAll('path').transition().duration(function (d) {
            return $$.expandDuration(d.data.id);
        }).attr("d", $$.svgArc);
        $$.svg.selectAll('.' + CLASS.arc);
    };

    c3_chart_internal_fn.expandDuration = function (id) {
        var $$ = this,
            config = $$.config;

        if ($$.isDonutType(id)) {
            return config.donut_expand_duration;
        } else if ($$.isGaugeType(id)) {
            return config.gauge_expand_duration;
        } else if ($$.isPieType(id)) {
            return config.pie_expand_duration;
        } else {
            return 50;
        }
    };

    c3_chart_internal_fn.shouldExpand = function (id) {
        var $$ = this,
            config = $$.config;
        return $$.isDonutType(id) && config.donut_expand || $$.isGaugeType(id) && config.gauge_expand || $$.isPieType(id) && config.pie_expand;
    };

    c3_chart_internal_fn.shouldShowArcLabel = function () {
        var $$ = this,
            config = $$.config,
            shouldShow = true;
        if ($$.hasType('donut')) {
            shouldShow = config.donut_label_show;
        } else if ($$.hasType('pie')) {
            shouldShow = config.pie_label_show;
        }
        // when gauge, always true
        return shouldShow;
    };

    c3_chart_internal_fn.meetsArcLabelThreshold = function (ratio) {
        var $$ = this,
            config = $$.config,
            threshold = $$.hasType('donut') ? config.donut_label_threshold : config.pie_label_threshold;
        return ratio >= threshold;
    };

    c3_chart_internal_fn.getArcLabelFormat = function () {
        var $$ = this,
            config = $$.config,
            format = config.pie_label_format;
        if ($$.hasType('gauge')) {
            format = config.gauge_label_format;
        } else if ($$.hasType('donut')) {
            format = config.donut_label_format;
        }
        return format;
    };

    c3_chart_internal_fn.getGaugeLabelExtents = function () {
        var $$ = this,
            config = $$.config;
        return config.gauge_label_extents;
    };

    c3_chart_internal_fn.getArcTitle = function () {
        var $$ = this;
        return $$.hasType('donut') ? $$.config.donut_title : "";
    };

    c3_chart_internal_fn.updateTargetsForArc = function (targets) {
        var $$ = this,
            main = $$.main,
            mainPieUpdate,
            mainPieEnter,
            classChartArc = $$.classChartArc.bind($$),
            classArcs = $$.classArcs.bind($$),
            classFocus = $$.classFocus.bind($$);
        mainPieUpdate = main.select('.' + CLASS.chartArcs).selectAll('.' + CLASS.chartArc).data($$.pie(targets)).attr("class", function (d) {
            return classChartArc(d) + classFocus(d.data);
        });
        mainPieEnter = mainPieUpdate.enter().append("g").attr("class", classChartArc);
        mainPieEnter.append('g').attr('class', classArcs);
        mainPieEnter.append("text").attr("dy", $$.hasType('gauge') ? "-.1em" : ".35em").style("opacity", 0).style("text-anchor", "middle").style("pointer-events", "none");
        // MEMO: can not keep same color..., but not bad to update color in redraw
        //mainPieUpdate.exit().remove();
    };

    c3_chart_internal_fn.initArc = function () {
        var $$ = this;
        $$.arcs = $$.main.select('.' + CLASS.chart).append("g").attr("class", CLASS.chartArcs).attr("transform", $$.getTranslate('arc'));
        $$.arcs.append('text').attr('class', CLASS.chartArcsTitle).style("text-anchor", "middle").text($$.getArcTitle());
    };

    c3_chart_internal_fn.redrawArc = function (duration, durationForExit, withTransform) {
        var $$ = this,
            d3 = $$.d3,
            config = $$.config,
            main = $$.main,
            mainArc,
            backgroundArc,
            mainArcLabelLine,
            hasGaugeType = $$.hasType('gauge');
        mainArc = main.selectAll('.' + CLASS.arcs).selectAll('.' + CLASS.arc).data($$.arcData.bind($$));
        mainArc.enter().append('path').attr("class", $$.classArc.bind($$)).style("fill", function (d) {
            return $$.color(d.data);
        }).style("cursor", function (d) {
            return config.interaction_enabled && config.data_selection_isselectable(d) ? "pointer" : null;
        }).each(function (d) {
            if ($$.isGaugeType(d.data)) {
                d.startAngle = d.endAngle = config.gauge_startingAngle;
            }
            this._current = d;
        });
        if (hasGaugeType) {
            mainArcLabelLine = main.selectAll('.' + CLASS.arcs).selectAll('.' + CLASS.arcLabelLine).data($$.arcData.bind($$));
            mainArcLabelLine.enter().append('rect').attr("class", function (d) {
                return CLASS.arcLabelLine + ' ' + CLASS.target + ' ' + CLASS.target + '-' + d.data.id;
            });
            if ($$.filterTargetsToShow($$.data.targets).length === 1) {
                mainArcLabelLine.style("display", "none");
            } else {
                mainArcLabelLine.style("fill", function (d) {
                    return config.color_pattern.length > 0 ? $$.levelColor(d.data.values[0].value) : $$.color(d.data);
                }).style("display", config.gauge_labelLine_show ? "" : "none").each(function (d) {
                    var lineLength = 0,
                        lineThickness = 2,
                        x = 0,
                        y = 0,
                        transform = "";
                    if ($$.hiddenTargetIds.indexOf(d.data.id) < 0) {
                        var updated = $$.updateAngle(d),
                            innerLineLength = $$.gaugeArcWidth / $$.filterTargetsToShow($$.data.targets).length * (updated.index + 1),
                            lineAngle = updated.endAngle - Math.PI / 2,
                            arcInnerRadius = $$.radius - innerLineLength,
                            linePositioningAngle = lineAngle - (arcInnerRadius === 0 ? 0 : 1 / arcInnerRadius);
                        lineLength = $$.radiusExpanded - $$.radius + innerLineLength;
                        x = Math.cos(linePositioningAngle) * arcInnerRadius;
                        y = Math.sin(linePositioningAngle) * arcInnerRadius;
                        transform = "rotate(" + lineAngle * 180 / Math.PI + ", " + x + ", " + y + ")";
                    }
                    d3.select(this).attr({ x: x, y: y, width: lineLength, height: lineThickness, transform: transform }).style("stroke-dasharray", "0, " + (lineLength + lineThickness) + ", 0");
                });
            }
        }
        mainArc.attr("transform", function (d) {
            return !$$.isGaugeType(d.data) && withTransform ? "scale(0)" : "";
        }).on('mouseover', config.interaction_enabled ? function (d) {
            var updated, arcData;
            if ($$.transiting) {
                // skip while transiting
                return;
            }
            updated = $$.updateAngle(d);
            if (updated) {
                arcData = $$.convertToArcData(updated);
                // transitions
                $$.expandArc(updated.data.id);
                $$.api.focus(updated.data.id);
                $$.toggleFocusLegend(updated.data.id, true);
                $$.config.data_onmouseover(arcData, this);
            }
        } : null).on('mousemove', config.interaction_enabled ? function (d) {
            var updated = $$.updateAngle(d),
                arcData,
                selectedData;
            if (updated) {
                arcData = $$.convertToArcData(updated), selectedData = [arcData];
                $$.showTooltip(selectedData, this);
            }
        } : null).on('mouseout', config.interaction_enabled ? function (d) {
            var updated, arcData;
            if ($$.transiting) {
                // skip while transiting
                return;
            }
            updated = $$.updateAngle(d);
            if (updated) {
                arcData = $$.convertToArcData(updated);
                // transitions
                $$.unexpandArc(updated.data.id);
                $$.api.revert();
                $$.revertLegend();
                $$.hideTooltip();
                $$.config.data_onmouseout(arcData, this);
            }
        } : null).on('click', config.interaction_enabled ? function (d, i) {
            var updated = $$.updateAngle(d),
                arcData;
            if (updated) {
                arcData = $$.convertToArcData(updated);
                if ($$.toggleShape) {
                    $$.toggleShape(this, arcData, i);
                }
                $$.config.data_onclick.call($$.api, arcData, this);
            }
        } : null).each(function () {
            $$.transiting = true;
        }).transition().duration(duration).attrTween("d", function (d) {
            var updated = $$.updateAngle(d),
                interpolate;
            if (!updated) {
                return function () {
                    return "M 0 0";
                };
            }
            //                if (this._current === d) {
            //                    this._current = {
            //                        startAngle: Math.PI*2,
            //                        endAngle: Math.PI*2,
            //                    };
            //                }
            if (isNaN(this._current.startAngle)) {
                this._current.startAngle = 0;
            }
            if (isNaN(this._current.endAngle)) {
                this._current.endAngle = this._current.startAngle;
            }
            interpolate = d3.interpolate(this._current, updated);
            this._current = interpolate(0);
            return function (t) {
                var interpolated = interpolate(t);
                interpolated.data = d.data; // data.id will be updated by interporator
                return $$.getArc(interpolated, true);
            };
        }).attr("transform", withTransform ? "scale(1)" : "").style("fill", function (d) {
            return $$.levelColor ? $$.levelColor(d.data.values[0].value) : $$.color(d.data.id);
        }) // Where gauge reading color would receive customization.
        .call($$.endall, function () {
            $$.transiting = false;
        });
        mainArc.exit().transition().duration(durationForExit).style('opacity', 0).remove();
        main.selectAll('.' + CLASS.chartArc).select('text').style("opacity", 0).attr('class', function (d) {
            return $$.isGaugeType(d.data) ? CLASS.gaugeValue : '';
        }).text($$.textForArcLabel.bind($$)).attr("transform", $$.transformForArcLabel.bind($$)).style('font-size', function (d) {
            return $$.isGaugeType(d.data) && $$.filterTargetsToShow($$.data.targets).length === 1 ? Math.round($$.radius / 5) + 'px' : '';
        }).transition().duration(duration).style("opacity", function (d) {
            return $$.isTargetToShow(d.data.id) && $$.isArcType(d.data) ? 1 : 0;
        });
        main.select('.' + CLASS.chartArcsTitle).style("opacity", $$.hasType('donut') || hasGaugeType ? 1 : 0);

        if (hasGaugeType) {
            var index = 0;
            backgroundArc = $$.arcs.select('g.' + CLASS.chartArcsBackground).selectAll('path.' + CLASS.chartArcsBackground).data($$.data.targets);
            backgroundArc.enter().append("path");
            backgroundArc.attr("class", function (d, i) {
                return CLASS.chartArcsBackground + ' ' + CLASS.chartArcsBackground + '-' + i;
            }).attr("d", function (d1) {
                if ($$.hiddenTargetIds.indexOf(d1.id) >= 0) {
                    return "M 0 0";
                }

                var d = {
                    data: [{ value: config.gauge_max }],
                    startAngle: config.gauge_startingAngle,
                    endAngle: -1 * config.gauge_startingAngle * (config.gauge_fullCircle ? Math.PI : 1),
                    index: index++
                };
                return $$.getArc(d, true, true);
            });
            backgroundArc.exit().remove();

            $$.arcs.select('.' + CLASS.chartArcsGaugeUnit).attr("dy", ".75em").text(config.gauge_label_show ? config.gauge_units : '');
            $$.arcs.select('.' + CLASS.chartArcsGaugeMin).attr("dx", -1 * ($$.innerRadius + ($$.radius - $$.innerRadius) / (config.gauge_fullCircle ? 1 : 2)) + "px").attr("dy", "1.2em").text(config.gauge_label_show ? $$.textForGaugeMinMax(config.gauge_min, false) : '');
            $$.arcs.select('.' + CLASS.chartArcsGaugeMax).attr("dx", $$.innerRadius + ($$.radius - $$.innerRadius) / (config.gauge_fullCircle ? 1 : 2) + "px").attr("dy", "1.2em").text(config.gauge_label_show ? $$.textForGaugeMinMax(config.gauge_max, true) : '');
        }
    };
    c3_chart_internal_fn.initGauge = function () {
        var arcs = this.arcs;
        if (this.hasType('gauge')) {
            arcs.append('g').attr("class", CLASS.chartArcsBackground);
            arcs.append("text").attr("class", CLASS.chartArcsGaugeUnit).style("text-anchor", "middle").style("pointer-events", "none");
            arcs.append("text").attr("class", CLASS.chartArcsGaugeMin).style("text-anchor", "middle").style("pointer-events", "none");
            arcs.append("text").attr("class", CLASS.chartArcsGaugeMax).style("text-anchor", "middle").style("pointer-events", "none");
        }
    };
    c3_chart_internal_fn.getGaugeLabelHeight = function () {
        return this.config.gauge_label_show ? 20 : 0;
    };

    c3_chart_internal_fn.hasCaches = function (ids) {
        for (var i = 0; i < ids.length; i++) {
            if (!(ids[i] in this.cache)) {
                return false;
            }
        }
        return true;
    };
    c3_chart_internal_fn.addCache = function (id, target) {
        this.cache[id] = this.cloneTarget(target);
    };
    c3_chart_internal_fn.getCaches = function (ids) {
        var targets = [],
            i;
        for (i = 0; i < ids.length; i++) {
            if (ids[i] in this.cache) {
                targets.push(this.cloneTarget(this.cache[ids[i]]));
            }
        }
        return targets;
    };

    c3_chart_internal_fn.categoryName = function (i) {
        var config = this.config;
        return i < config.axis_x_categories.length ? config.axis_x_categories[i] : i;
    };

    c3_chart_internal_fn.generateClass = function (prefix, targetId) {
        return " " + prefix + " " + prefix + this.getTargetSelectorSuffix(targetId);
    };
    c3_chart_internal_fn.classText = function (d) {
        return this.generateClass(CLASS.text, d.index);
    };
    c3_chart_internal_fn.classTexts = function (d) {
        return this.generateClass(CLASS.texts, d.id);
    };
    c3_chart_internal_fn.classShape = function (d) {
        return this.generateClass(CLASS.shape, d.index);
    };
    c3_chart_internal_fn.classShapes = function (d) {
        return this.generateClass(CLASS.shapes, d.id);
    };
    c3_chart_internal_fn.classLine = function (d) {
        return this.classShape(d) + this.generateClass(CLASS.line, d.id);
    };
    c3_chart_internal_fn.classLines = function (d) {
        return this.classShapes(d) + this.generateClass(CLASS.lines, d.id);
    };
    c3_chart_internal_fn.classCircle = function (d) {
        return this.classShape(d) + this.generateClass(CLASS.circle, d.index);
    };
    c3_chart_internal_fn.classCircles = function (d) {
        return this.classShapes(d) + this.generateClass(CLASS.circles, d.id);
    };
    c3_chart_internal_fn.classBar = function (d) {
        return this.classShape(d) + this.generateClass(CLASS.bar, d.index);
    };
    c3_chart_internal_fn.classBars = function (d) {
        return this.classShapes(d) + this.generateClass(CLASS.bars, d.id);
    };
    c3_chart_internal_fn.classArc = function (d) {
        return this.classShape(d.data) + this.generateClass(CLASS.arc, d.data.id);
    };
    c3_chart_internal_fn.classArcs = function (d) {
        return this.classShapes(d.data) + this.generateClass(CLASS.arcs, d.data.id);
    };
    c3_chart_internal_fn.classArea = function (d) {
        return this.classShape(d) + this.generateClass(CLASS.area, d.id);
    };
    c3_chart_internal_fn.classAreas = function (d) {
        return this.classShapes(d) + this.generateClass(CLASS.areas, d.id);
    };
    c3_chart_internal_fn.classRegion = function (d, i) {
        return this.generateClass(CLASS.region, i) + ' ' + ('class' in d ? d['class'] : '');
    };
    c3_chart_internal_fn.classEvent = function (d) {
        return this.generateClass(CLASS.eventRect, d.index);
    };
    c3_chart_internal_fn.classTarget = function (id) {
        var $$ = this;
        var additionalClassSuffix = $$.config.data_classes[id],
            additionalClass = '';
        if (additionalClassSuffix) {
            additionalClass = ' ' + CLASS.target + '-' + additionalClassSuffix;
        }
        return $$.generateClass(CLASS.target, id) + additionalClass;
    };
    c3_chart_internal_fn.classFocus = function (d) {
        return this.classFocused(d) + this.classDefocused(d);
    };
    c3_chart_internal_fn.classFocused = function (d) {
        return ' ' + (this.focusedTargetIds.indexOf(d.id) >= 0 ? CLASS.focused : '');
    };
    c3_chart_internal_fn.classDefocused = function (d) {
        return ' ' + (this.defocusedTargetIds.indexOf(d.id) >= 0 ? CLASS.defocused : '');
    };
    c3_chart_internal_fn.classChartText = function (d) {
        return CLASS.chartText + this.classTarget(d.id);
    };
    c3_chart_internal_fn.classChartLine = function (d) {
        return CLASS.chartLine + this.classTarget(d.id);
    };
    c3_chart_internal_fn.classChartBar = function (d) {
        return CLASS.chartBar + this.classTarget(d.id);
    };
    c3_chart_internal_fn.classChartArc = function (d) {
        return CLASS.chartArc + this.classTarget(d.data.id);
    };
    c3_chart_internal_fn.getTargetSelectorSuffix = function (targetId) {
        return targetId || targetId === 0 ? ('-' + targetId).replace(/[\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\]/g, '-') : '';
    };
    c3_chart_internal_fn.selectorTarget = function (id, prefix) {
        return (prefix || '') + '.' + CLASS.target + this.getTargetSelectorSuffix(id);
    };
    c3_chart_internal_fn.selectorTargets = function (ids, prefix) {
        var $$ = this;
        ids = ids || [];
        return ids.length ? ids.map(function (id) {
            return $$.selectorTarget(id, prefix);
        }) : null;
    };
    c3_chart_internal_fn.selectorLegend = function (id) {
        return '.' + CLASS.legendItem + this.getTargetSelectorSuffix(id);
    };
    c3_chart_internal_fn.selectorLegends = function (ids) {
        var $$ = this;
        return ids && ids.length ? ids.map(function (id) {
            return $$.selectorLegend(id);
        }) : null;
    };

    c3_chart_internal_fn.getClipPath = function (id) {
        var isIE9 = window.navigator.appVersion.toLowerCase().indexOf("msie 9.") >= 0;
        return "url(" + (isIE9 ? "" : document.URL.split('#')[0]) + "#" + id + ")";
    };
    c3_chart_internal_fn.appendClip = function (parent, id) {
        return parent.append("clipPath").attr("id", id).append("rect");
    };
    c3_chart_internal_fn.getAxisClipX = function (forHorizontal) {
        // axis line width + padding for left
        var left = Math.max(30, this.margin.left);
        return forHorizontal ? -(1 + left) : -(left - 1);
    };
    c3_chart_internal_fn.getAxisClipY = function (forHorizontal) {
        return forHorizontal ? -20 : -this.margin.top;
    };
    c3_chart_internal_fn.getXAxisClipX = function () {
        var $$ = this;
        return $$.getAxisClipX(!$$.config.axis_rotated);
    };
    c3_chart_internal_fn.getXAxisClipY = function () {
        var $$ = this;
        return $$.getAxisClipY(!$$.config.axis_rotated);
    };
    c3_chart_internal_fn.getYAxisClipX = function () {
        var $$ = this;
        return $$.config.axis_y_inner ? -1 : $$.getAxisClipX($$.config.axis_rotated);
    };
    c3_chart_internal_fn.getYAxisClipY = function () {
        var $$ = this;
        return $$.getAxisClipY($$.config.axis_rotated);
    };
    c3_chart_internal_fn.getAxisClipWidth = function (forHorizontal) {
        var $$ = this,
            left = Math.max(30, $$.margin.left),
            right = Math.max(30, $$.margin.right);
        // width + axis line width + padding for left/right
        return forHorizontal ? $$.width + 2 + left + right : $$.margin.left + 20;
    };
    c3_chart_internal_fn.getAxisClipHeight = function (forHorizontal) {
        // less than 20 is not enough to show the axis label 'outer' without legend
        return (forHorizontal ? this.margin.bottom : this.margin.top + this.height) + 20;
    };
    c3_chart_internal_fn.getXAxisClipWidth = function () {
        var $$ = this;
        return $$.getAxisClipWidth(!$$.config.axis_rotated);
    };
    c3_chart_internal_fn.getXAxisClipHeight = function () {
        var $$ = this;
        return $$.getAxisClipHeight(!$$.config.axis_rotated);
    };
    c3_chart_internal_fn.getYAxisClipWidth = function () {
        var $$ = this;
        return $$.getAxisClipWidth($$.config.axis_rotated) + ($$.config.axis_y_inner ? 20 : 0);
    };
    c3_chart_internal_fn.getYAxisClipHeight = function () {
        var $$ = this;
        return $$.getAxisClipHeight($$.config.axis_rotated);
    };

    c3_chart_internal_fn.generateColor = function () {
        var $$ = this,
            config = $$.config,
            d3 = $$.d3,
            colors = config.data_colors,
            pattern = notEmpty(config.color_pattern) ? config.color_pattern : d3.scale.category10().range(),
            callback = config.data_color,
            ids = [];

        return function (d) {
            var id = d.id || d.data && d.data.id || d,
                color;

            // if callback function is provided
            if (colors[id] instanceof Function) {
                color = colors[id](d);
            }
            // if specified, choose that color
            else if (colors[id]) {
                    color = colors[id];
                }
                // if not specified, choose from pattern
                else {
                        if (ids.indexOf(id) < 0) {
                            ids.push(id);
                        }
                        color = pattern[ids.indexOf(id) % pattern.length];
                        colors[id] = color;
                    }
            return callback instanceof Function ? callback(color, d) : color;
        };
    };
    c3_chart_internal_fn.generateLevelColor = function () {
        var $$ = this,
            config = $$.config,
            colors = config.color_pattern,
            threshold = config.color_threshold,
            asValue = threshold.unit === 'value',
            values = threshold.values && threshold.values.length ? threshold.values : [],
            max = threshold.max || 100;
        return notEmpty(config.color_threshold) ? function (value) {
            var i,
                v,
                color = colors[colors.length - 1];
            for (i = 0; i < values.length; i++) {
                v = asValue ? value : value * 100 / max;
                if (v < values[i]) {
                    color = colors[i];
                    break;
                }
            }
            return color;
        } : null;
    };

    c3_chart_internal_fn.getDefaultConfig = function () {
        var config = {
            bindto: '#chart',
            svg_classname: undefined,
            size_width: undefined,
            size_height: undefined,
            padding_left: undefined,
            padding_right: undefined,
            padding_top: undefined,
            padding_bottom: undefined,
            resize_auto: true,
            zoom_enabled: false,
            zoom_extent: undefined,
            zoom_privileged: false,
            zoom_rescale: false,
            zoom_onzoom: function zoom_onzoom() {},
            zoom_onzoomstart: function zoom_onzoomstart() {},
            zoom_onzoomend: function zoom_onzoomend() {},
            zoom_x_min: undefined,
            zoom_x_max: undefined,
            interaction_brighten: true,
            interaction_enabled: true,
            onmouseover: function onmouseover() {},
            onmouseout: function onmouseout() {},
            onresize: function onresize() {},
            onresized: function onresized() {},
            oninit: function oninit() {},
            onrendered: function onrendered() {},
            transition_duration: 350,
            data_x: undefined,
            data_xs: {},
            data_xFormat: '%Y-%m-%d',
            data_xLocaltime: true,
            data_xSort: true,
            data_idConverter: function data_idConverter(id) {
                return id;
            },
            data_names: {},
            data_classes: {},
            data_groups: [],
            data_axes: {},
            data_type: undefined,
            data_types: {},
            data_labels: {},
            data_order: 'desc',
            data_regions: {},
            data_color: undefined,
            data_colors: {},
            data_hide: false,
            data_filter: undefined,
            data_selection_enabled: false,
            data_selection_grouped: false,
            data_selection_isselectable: function data_selection_isselectable() {
                return true;
            },
            data_selection_multiple: true,
            data_selection_draggable: false,
            data_onclick: function data_onclick() {},
            data_onmouseover: function data_onmouseover() {},
            data_onmouseout: function data_onmouseout() {},
            data_onselected: function data_onselected() {},
            data_onunselected: function data_onunselected() {},
            data_url: undefined,
            data_headers: undefined,
            data_json: undefined,
            data_rows: undefined,
            data_columns: undefined,
            data_mimeType: undefined,
            data_keys: undefined,
            // configuration for no plot-able data supplied.
            data_empty_label_text: "",
            // subchart
            subchart_show: false,
            subchart_size_height: 60,
            subchart_axis_x_show: true,
            subchart_onbrush: function subchart_onbrush() {},
            // color
            color_pattern: [],
            color_threshold: {},
            // legend
            legend_show: true,
            legend_hide: false,
            legend_position: 'bottom',
            legend_inset_anchor: 'top-left',
            legend_inset_x: 10,
            legend_inset_y: 0,
            legend_inset_step: undefined,
            legend_item_onclick: undefined,
            legend_item_onmouseover: undefined,
            legend_item_onmouseout: undefined,
            legend_equally: false,
            legend_padding: 0,
            legend_item_tile_width: 10,
            legend_item_tile_height: 10,
            // axis
            axis_rotated: false,
            axis_x_show: true,
            axis_x_type: 'indexed',
            axis_x_localtime: true,
            axis_x_categories: [],
            axis_x_tick_centered: false,
            axis_x_tick_format: undefined,
            axis_x_tick_culling: {},
            axis_x_tick_culling_max: 10,
            axis_x_tick_count: undefined,
            axis_x_tick_fit: true,
            axis_x_tick_values: null,
            axis_x_tick_rotate: 0,
            axis_x_tick_outer: true,
            axis_x_tick_multiline: true,
            axis_x_tick_multilineMax: 0,
            axis_x_tick_width: null,
            axis_x_max: undefined,
            axis_x_min: undefined,
            axis_x_padding: {},
            axis_x_height: undefined,
            axis_x_extent: undefined,
            axis_x_label: {},
            axis_x_inner: undefined,
            axis_y_show: true,
            axis_y_type: undefined,
            axis_y_max: undefined,
            axis_y_min: undefined,
            axis_y_inverted: false,
            axis_y_center: undefined,
            axis_y_inner: undefined,
            axis_y_label: {},
            axis_y_tick_format: undefined,
            axis_y_tick_outer: true,
            axis_y_tick_values: null,
            axis_y_tick_rotate: 0,
            axis_y_tick_count: undefined,
            axis_y_tick_time_value: undefined,
            axis_y_tick_time_interval: undefined,
            axis_y_padding: {},
            axis_y_default: undefined,
            axis_y2_show: false,
            axis_y2_max: undefined,
            axis_y2_min: undefined,
            axis_y2_inverted: false,
            axis_y2_center: undefined,
            axis_y2_inner: undefined,
            axis_y2_label: {},
            axis_y2_tick_format: undefined,
            axis_y2_tick_outer: true,
            axis_y2_tick_values: null,
            axis_y2_tick_count: undefined,
            axis_y2_padding: {},
            axis_y2_default: undefined,
            // grid
            grid_x_show: false,
            grid_x_type: 'tick',
            grid_x_lines: [],
            grid_y_show: false,
            // not used
            // grid_y_type: 'tick',
            grid_y_lines: [],
            grid_y_ticks: 10,
            grid_focus_show: true,
            grid_lines_front: true,
            // point - point of each data
            point_show: true,
            point_r: 2.5,
            point_sensitivity: 10,
            point_focus_expand_enabled: true,
            point_focus_expand_r: undefined,
            point_select_r: undefined,
            // line
            line_connectNull: false,
            line_step_type: 'step',
            // bar
            bar_width: undefined,
            bar_width_ratio: 0.6,
            bar_width_max: undefined,
            bar_zerobased: true,
            bar_space: 0,
            // area
            area_zerobased: true,
            area_above: false,
            // pie
            pie_label_show: true,
            pie_label_format: undefined,
            pie_label_threshold: 0.05,
            pie_label_ratio: undefined,
            pie_expand: {},
            pie_expand_duration: 50,
            // gauge
            gauge_fullCircle: false,
            gauge_label_show: true,
            gauge_labelLine_show: true,
            gauge_label_format: undefined,
            gauge_min: 0,
            gauge_max: 100,
            gauge_startingAngle: -1 * Math.PI / 2,
            gauge_label_extents: undefined,
            gauge_units: undefined,
            gauge_width: undefined,
            gauge_arcs_minWidth: 5,
            gauge_expand: {},
            gauge_expand_duration: 50,
            // donut
            donut_label_show: true,
            donut_label_format: undefined,
            donut_label_threshold: 0.05,
            donut_label_ratio: undefined,
            donut_width: undefined,
            donut_title: "",
            donut_expand: {},
            donut_expand_duration: 50,
            // spline
            spline_interpolation_type: 'cardinal',
            // region - region to change style
            regions: [],
            // tooltip - show when mouseover on each data
            tooltip_show: true,
            tooltip_grouped: true,
            tooltip_order: undefined,
            tooltip_format_title: undefined,
            tooltip_format_name: undefined,
            tooltip_format_value: undefined,
            tooltip_position: undefined,
            tooltip_contents: function tooltip_contents(d, defaultTitleFormat, defaultValueFormat, color) {
                return this.getTooltipContent ? this.getTooltipContent(d, defaultTitleFormat, defaultValueFormat, color) : '';
            },
            tooltip_init_show: false,
            tooltip_init_x: 0,
            tooltip_init_position: { top: '0px', left: '50px' },
            tooltip_onshow: function tooltip_onshow() {},
            tooltip_onhide: function tooltip_onhide() {},
            // title
            title_text: undefined,
            title_padding: {
                top: 0,
                right: 0,
                bottom: 0,
                left: 0
            },
            title_position: 'top-center'
        };

        Object.keys(this.additionalConfig).forEach(function (key) {
            config[key] = this.additionalConfig[key];
        }, this);

        return config;
    };
    c3_chart_internal_fn.additionalConfig = {};

    c3_chart_internal_fn.loadConfig = function (config) {
        var this_config = this.config,
            target,
            keys,
            read;
        function find() {
            var key = keys.shift();
            //        console.log("key =>", key, ", target =>", target);
            if (key && target && (typeof target === 'undefined' ? 'undefined' : _typeof(target)) === 'object' && key in target) {
                target = target[key];
                return find();
            } else if (!key) {
                return target;
            } else {
                return undefined;
            }
        }
        Object.keys(this_config).forEach(function (key) {
            target = config;
            keys = key.split('_');
            read = find();
            //        console.log("CONFIG : ", key, read);
            if (isDefined(read)) {
                this_config[key] = read;
            }
        });
    };

    c3_chart_internal_fn.convertUrlToData = function (url, mimeType, headers, keys, done) {
        var $$ = this,
            type = mimeType ? mimeType : 'csv';
        var req = $$.d3.xhr(url);
        if (headers) {
            Object.keys(headers).forEach(function (header) {
                req.header(header, headers[header]);
            });
        }
        req.get(function (error, data) {
            var d;
            var dataResponse = data.response || data.responseText; // Fixes IE9 XHR issue; see #1345
            if (!data) {
                throw new Error(error.responseURL + ' ' + error.status + ' (' + error.statusText + ')');
            }
            if (type === 'json') {
                d = $$.convertJsonToData(JSON.parse(dataResponse), keys);
            } else if (type === 'tsv') {
                d = $$.convertTsvToData(dataResponse);
            } else {
                d = $$.convertCsvToData(dataResponse);
            }
            done.call($$, d);
        });
    };
    c3_chart_internal_fn.convertXsvToData = function (xsv, parser) {
        var rows = parser.parseRows(xsv),
            d;
        if (rows.length === 1) {
            d = [{}];
            rows[0].forEach(function (id) {
                d[0][id] = null;
            });
        } else {
            d = parser.parse(xsv);
        }
        return d;
    };
    c3_chart_internal_fn.convertCsvToData = function (csv) {
        return this.convertXsvToData(csv, this.d3.csv);
    };
    c3_chart_internal_fn.convertTsvToData = function (tsv) {
        return this.convertXsvToData(tsv, this.d3.tsv);
    };
    c3_chart_internal_fn.convertJsonToData = function (json, keys) {
        var $$ = this,
            new_rows = [],
            targetKeys,
            data;
        if (keys) {
            // when keys specified, json would be an array that includes objects
            if (keys.x) {
                targetKeys = keys.value.concat(keys.x);
                $$.config.data_x = keys.x;
            } else {
                targetKeys = keys.value;
            }
            new_rows.push(targetKeys);
            json.forEach(function (o) {
                var new_row = [];
                targetKeys.forEach(function (key) {
                    // convert undefined to null because undefined data will be removed in convertDataToTargets()
                    var v = $$.findValueInJson(o, key);
                    if (isUndefined(v)) {
                        v = null;
                    }
                    new_row.push(v);
                });
                new_rows.push(new_row);
            });
            data = $$.convertRowsToData(new_rows);
        } else {
            Object.keys(json).forEach(function (key) {
                new_rows.push([key].concat(json[key]));
            });
            data = $$.convertColumnsToData(new_rows);
        }
        return data;
    };
    c3_chart_internal_fn.findValueInJson = function (object, path) {
        path = path.replace(/\[(\w+)\]/g, '.$1'); // convert indexes to properties (replace [] with .)
        path = path.replace(/^\./, ''); // strip a leading dot
        var pathArray = path.split('.');
        for (var i = 0; i < pathArray.length; ++i) {
            var k = pathArray[i];
            if (k in object) {
                object = object[k];
            } else {
                return;
            }
        }
        return object;
    };

    /**
     * Converts the rows to normalized data.
     * @param {any[][]} rows The row data
     * @return {Object[]}
     */
    c3_chart_internal_fn.convertRowsToData = function (rows) {
        var newRows = [];
        var keys = rows[0];

        for (var i = 1; i < rows.length; i++) {
            var newRow = {};
            for (var j = 0; j < rows[i].length; j++) {
                if (isUndefined(rows[i][j])) {
                    throw new Error("Source data is missing a component at (" + i + "," + j + ")!");
                }
                newRow[keys[j]] = rows[i][j];
            }
            newRows.push(newRow);
        }
        return newRows;
    };

    /**
     * Converts the columns to normalized data.
     * @param {any[][]} columns The column data
     * @return {Object[]}
     */
    c3_chart_internal_fn.convertColumnsToData = function (columns) {
        var newRows = [];

        for (var i = 0; i < columns.length; i++) {
            var key = columns[i][0];
            for (var j = 1; j < columns[i].length; j++) {
                if (isUndefined(newRows[j - 1])) {
                    newRows[j - 1] = {};
                }
                if (isUndefined(columns[i][j])) {
                    throw new Error("Source data is missing a component at (" + i + "," + j + ")!");
                }
                newRows[j - 1][key] = columns[i][j];
            }
        }

        return newRows;
    };

    c3_chart_internal_fn.convertDataToTargets = function (data, appendXs) {
        var $$ = this,
            config = $$.config,
            ids = $$.d3.keys(data[0]).filter($$.isNotX, $$),
            xs = $$.d3.keys(data[0]).filter($$.isX, $$),
            targets;

        // save x for update data by load when custom x and c3.x API
        ids.forEach(function (id) {
            var xKey = $$.getXKey(id);

            if ($$.isCustomX() || $$.isTimeSeries()) {
                // if included in input data
                if (xs.indexOf(xKey) >= 0) {
                    $$.data.xs[id] = (appendXs && $$.data.xs[id] ? $$.data.xs[id] : []).concat(data.map(function (d) {
                        return d[xKey];
                    }).filter(isValue).map(function (rawX, i) {
                        return $$.generateTargetX(rawX, id, i);
                    }));
                }
                // if not included in input data, find from preloaded data of other id's x
                else if (config.data_x) {
                        $$.data.xs[id] = $$.getOtherTargetXs();
                    }
                    // if not included in input data, find from preloaded data
                    else if (notEmpty(config.data_xs)) {
                            $$.data.xs[id] = $$.getXValuesOfXKey(xKey, $$.data.targets);
                        }
                // MEMO: if no x included, use same x of current will be used
            } else {
                $$.data.xs[id] = data.map(function (d, i) {
                    return i;
                });
            }
        });

        // check x is defined
        ids.forEach(function (id) {
            if (!$$.data.xs[id]) {
                throw new Error('x is not defined for id = "' + id + '".');
            }
        });

        // convert to target
        targets = ids.map(function (id, index) {
            var convertedId = config.data_idConverter(id);
            return {
                id: convertedId,
                id_org: id,
                values: data.map(function (d, i) {
                    var xKey = $$.getXKey(id),
                        rawX = d[xKey],
                        value = d[id] !== null && !isNaN(d[id]) ? +d[id] : null,
                        x;
                    // use x as categories if custom x and categorized
                    if ($$.isCustomX() && $$.isCategorized() && !isUndefined(rawX)) {
                        if (index === 0 && i === 0) {
                            config.axis_x_categories = [];
                        }
                        x = config.axis_x_categories.indexOf(rawX);
                        if (x === -1) {
                            x = config.axis_x_categories.length;
                            config.axis_x_categories.push(rawX);
                        }
                    } else {
                        x = $$.generateTargetX(rawX, id, i);
                    }
                    // mark as x = undefined if value is undefined and filter to remove after mapped
                    if (isUndefined(d[id]) || $$.data.xs[id].length <= i) {
                        x = undefined;
                    }
                    return { x: x, value: value, id: convertedId };
                }).filter(function (v) {
                    return isDefined(v.x);
                })
            };
        });

        // finish targets
        targets.forEach(function (t) {
            var i;
            // sort values by its x
            if (config.data_xSort) {
                t.values = t.values.sort(function (v1, v2) {
                    var x1 = v1.x || v1.x === 0 ? v1.x : Infinity,
                        x2 = v2.x || v2.x === 0 ? v2.x : Infinity;
                    return x1 - x2;
                });
            }
            // indexing each value
            i = 0;
            t.values.forEach(function (v) {
                v.index = i++;
            });
            // this needs to be sorted because its index and value.index is identical
            $$.data.xs[t.id].sort(function (v1, v2) {
                return v1 - v2;
            });
        });

        // cache information about values
        $$.hasNegativeValue = $$.hasNegativeValueInTargets(targets);
        $$.hasPositiveValue = $$.hasPositiveValueInTargets(targets);

        // set target types
        if (config.data_type) {
            $$.setTargetType($$.mapToIds(targets).filter(function (id) {
                return !(id in config.data_types);
            }), config.data_type);
        }

        // cache as original id keyed
        targets.forEach(function (d) {
            $$.addCache(d.id_org, d);
        });

        return targets;
    };

    c3_chart_internal_fn.isX = function (key) {
        var $$ = this,
            config = $$.config;
        return config.data_x && key === config.data_x || notEmpty(config.data_xs) && hasValue(config.data_xs, key);
    };
    c3_chart_internal_fn.isNotX = function (key) {
        return !this.isX(key);
    };
    c3_chart_internal_fn.getXKey = function (id) {
        var $$ = this,
            config = $$.config;
        return config.data_x ? config.data_x : notEmpty(config.data_xs) ? config.data_xs[id] : null;
    };
    c3_chart_internal_fn.getXValuesOfXKey = function (key, targets) {
        var $$ = this,
            xValues,
            ids = targets && notEmpty(targets) ? $$.mapToIds(targets) : [];
        ids.forEach(function (id) {
            if ($$.getXKey(id) === key) {
                xValues = $$.data.xs[id];
            }
        });
        return xValues;
    };
    c3_chart_internal_fn.getIndexByX = function (x) {
        var $$ = this,
            data = $$.filterByX($$.data.targets, x);
        return data.length ? data[0].index : null;
    };
    c3_chart_internal_fn.getXValue = function (id, i) {
        var $$ = this;
        return id in $$.data.xs && $$.data.xs[id] && isValue($$.data.xs[id][i]) ? $$.data.xs[id][i] : i;
    };
    c3_chart_internal_fn.getOtherTargetXs = function () {
        var $$ = this,
            idsForX = Object.keys($$.data.xs);
        return idsForX.length ? $$.data.xs[idsForX[0]] : null;
    };
    c3_chart_internal_fn.getOtherTargetX = function (index) {
        var xs = this.getOtherTargetXs();
        return xs && index < xs.length ? xs[index] : null;
    };
    c3_chart_internal_fn.addXs = function (xs) {
        var $$ = this;
        Object.keys(xs).forEach(function (id) {
            $$.config.data_xs[id] = xs[id];
        });
    };
    c3_chart_internal_fn.hasMultipleX = function (xs) {
        return this.d3.set(Object.keys(xs).map(function (id) {
            return xs[id];
        })).size() > 1;
    };
    c3_chart_internal_fn.isMultipleX = function () {
        return notEmpty(this.config.data_xs) || !this.config.data_xSort || this.hasType('scatter');
    };
    c3_chart_internal_fn.addName = function (data) {
        var $$ = this,
            name;
        if (data) {
            name = $$.config.data_names[data.id];
            data.name = name !== undefined ? name : data.id;
        }
        return data;
    };
    c3_chart_internal_fn.getValueOnIndex = function (values, index) {
        var valueOnIndex = values.filter(function (v) {
            return v.index === index;
        });
        return valueOnIndex.length ? valueOnIndex[0] : null;
    };
    c3_chart_internal_fn.updateTargetX = function (targets, x) {
        var $$ = this;
        targets.forEach(function (t) {
            t.values.forEach(function (v, i) {
                v.x = $$.generateTargetX(x[i], t.id, i);
            });
            $$.data.xs[t.id] = x;
        });
    };
    c3_chart_internal_fn.updateTargetXs = function (targets, xs) {
        var $$ = this;
        targets.forEach(function (t) {
            if (xs[t.id]) {
                $$.updateTargetX([t], xs[t.id]);
            }
        });
    };
    c3_chart_internal_fn.generateTargetX = function (rawX, id, index) {
        var $$ = this,
            x;
        if ($$.isTimeSeries()) {
            x = rawX ? $$.parseDate(rawX) : $$.parseDate($$.getXValue(id, index));
        } else if ($$.isCustomX() && !$$.isCategorized()) {
            x = isValue(rawX) ? +rawX : $$.getXValue(id, index);
        } else {
            x = index;
        }
        return x;
    };
    c3_chart_internal_fn.cloneTarget = function (target) {
        return {
            id: target.id,
            id_org: target.id_org,
            values: target.values.map(function (d) {
                return { x: d.x, value: d.value, id: d.id };
            })
        };
    };
    c3_chart_internal_fn.updateXs = function () {
        var $$ = this;
        if ($$.data.targets.length) {
            $$.xs = [];
            $$.data.targets[0].values.forEach(function (v) {
                $$.xs[v.index] = v.x;
            });
        }
    };
    c3_chart_internal_fn.getPrevX = function (i) {
        var x = this.xs[i - 1];
        return typeof x !== 'undefined' ? x : null;
    };
    c3_chart_internal_fn.getNextX = function (i) {
        var x = this.xs[i + 1];
        return typeof x !== 'undefined' ? x : null;
    };
    c3_chart_internal_fn.getMaxDataCount = function () {
        var $$ = this;
        return $$.d3.max($$.data.targets, function (t) {
            return t.values.length;
        });
    };
    c3_chart_internal_fn.getMaxDataCountTarget = function (targets) {
        var length = targets.length,
            max = 0,
            maxTarget;
        if (length > 1) {
            targets.forEach(function (t) {
                if (t.values.length > max) {
                    maxTarget = t;
                    max = t.values.length;
                }
            });
        } else {
            maxTarget = length ? targets[0] : null;
        }
        return maxTarget;
    };
    c3_chart_internal_fn.getEdgeX = function (targets) {
        var $$ = this;
        return !targets.length ? [0, 0] : [$$.d3.min(targets, function (t) {
            return t.values[0].x;
        }), $$.d3.max(targets, function (t) {
            return t.values[t.values.length - 1].x;
        })];
    };
    c3_chart_internal_fn.mapToIds = function (targets) {
        return targets.map(function (d) {
            return d.id;
        });
    };
    c3_chart_internal_fn.mapToTargetIds = function (ids) {
        var $$ = this;
        return ids ? [].concat(ids) : $$.mapToIds($$.data.targets);
    };
    c3_chart_internal_fn.hasTarget = function (targets, id) {
        var ids = this.mapToIds(targets),
            i;
        for (i = 0; i < ids.length; i++) {
            if (ids[i] === id) {
                return true;
            }
        }
        return false;
    };
    c3_chart_internal_fn.isTargetToShow = function (targetId) {
        return this.hiddenTargetIds.indexOf(targetId) < 0;
    };
    c3_chart_internal_fn.isLegendToShow = function (targetId) {
        return this.hiddenLegendIds.indexOf(targetId) < 0;
    };
    c3_chart_internal_fn.filterTargetsToShow = function (targets) {
        var $$ = this;
        return targets.filter(function (t) {
            return $$.isTargetToShow(t.id);
        });
    };
    c3_chart_internal_fn.mapTargetsToUniqueXs = function (targets) {
        var $$ = this;
        var xs = $$.d3.set($$.d3.merge(targets.map(function (t) {
            return t.values.map(function (v) {
                return +v.x;
            });
        }))).values();
        xs = $$.isTimeSeries() ? xs.map(function (x) {
            return new Date(+x);
        }) : xs.map(function (x) {
            return +x;
        });
        return xs.sort(function (a, b) {
            return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
        });
    };
    c3_chart_internal_fn.addHiddenTargetIds = function (targetIds) {
        targetIds = targetIds instanceof Array ? targetIds : new Array(targetIds);
        for (var i = 0; i < targetIds.length; i++) {
            if (this.hiddenTargetIds.indexOf(targetIds[i]) < 0) {
                this.hiddenTargetIds = this.hiddenTargetIds.concat(targetIds[i]);
            }
        }
    };
    c3_chart_internal_fn.removeHiddenTargetIds = function (targetIds) {
        this.hiddenTargetIds = this.hiddenTargetIds.filter(function (id) {
            return targetIds.indexOf(id) < 0;
        });
    };
    c3_chart_internal_fn.addHiddenLegendIds = function (targetIds) {
        targetIds = targetIds instanceof Array ? targetIds : new Array(targetIds);
        for (var i = 0; i < targetIds.length; i++) {
            if (this.hiddenLegendIds.indexOf(targetIds[i]) < 0) {
                this.hiddenLegendIds = this.hiddenLegendIds.concat(targetIds[i]);
            }
        }
    };
    c3_chart_internal_fn.removeHiddenLegendIds = function (targetIds) {
        this.hiddenLegendIds = this.hiddenLegendIds.filter(function (id) {
            return targetIds.indexOf(id) < 0;
        });
    };
    c3_chart_internal_fn.getValuesAsIdKeyed = function (targets) {
        var ys = {};
        targets.forEach(function (t) {
            ys[t.id] = [];
            t.values.forEach(function (v) {
                ys[t.id].push(v.value);
            });
        });
        return ys;
    };
    c3_chart_internal_fn.checkValueInTargets = function (targets, checker) {
        var ids = Object.keys(targets),
            i,
            j,
            values;
        for (i = 0; i < ids.length; i++) {
            values = targets[ids[i]].values;
            for (j = 0; j < values.length; j++) {
                if (checker(values[j].value)) {
                    return true;
                }
            }
        }
        return false;
    };
    c3_chart_internal_fn.hasNegativeValueInTargets = function (targets) {
        return this.checkValueInTargets(targets, function (v) {
            return v < 0;
        });
    };
    c3_chart_internal_fn.hasPositiveValueInTargets = function (targets) {
        return this.checkValueInTargets(targets, function (v) {
            return v > 0;
        });
    };
    c3_chart_internal_fn.isOrderDesc = function () {
        var config = this.config;
        return typeof config.data_order === 'string' && config.data_order.toLowerCase() === 'desc';
    };
    c3_chart_internal_fn.isOrderAsc = function () {
        var config = this.config;
        return typeof config.data_order === 'string' && config.data_order.toLowerCase() === 'asc';
    };
    c3_chart_internal_fn.getOrderFunction = function () {
        var $$ = this,
            config = $$.config,
            orderAsc = $$.isOrderAsc(),
            orderDesc = $$.isOrderDesc();
        if (orderAsc || orderDesc) {
            return function (t1, t2) {
                var reducer = function reducer(p, c) {
                    return p + Math.abs(c.value);
                };
                var t1Sum = t1.values.reduce(reducer, 0),
                    t2Sum = t2.values.reduce(reducer, 0);
                return orderDesc ? t2Sum - t1Sum : t1Sum - t2Sum;
            };
        } else if (isFunction(config.data_order)) {
            return config.data_order;
        } else if (isArray(config.data_order)) {
            var order = config.data_order;
            return function (t1, t2) {
                return order.indexOf(t1.id) - order.indexOf(t2.id);
            };
        }
    };
    c3_chart_internal_fn.orderTargets = function (targets) {
        var fct = this.getOrderFunction();
        if (fct) {
            targets.sort(fct);
            if (this.isOrderAsc() || this.isOrderDesc()) {
                targets.reverse();
            }
        }
        return targets;
    };
    c3_chart_internal_fn.filterByX = function (targets, x) {
        return this.d3.merge(targets.map(function (t) {
            return t.values;
        })).filter(function (v) {
            return v.x - x === 0;
        });
    };
    c3_chart_internal_fn.filterRemoveNull = function (data) {
        return data.filter(function (d) {
            return isValue(d.value);
        });
    };
    c3_chart_internal_fn.filterByXDomain = function (targets, xDomain) {
        return targets.map(function (t) {
            return {
                id: t.id,
                id_org: t.id_org,
                values: t.values.filter(function (v) {
                    return xDomain[0] <= v.x && v.x <= xDomain[1];
                })
            };
        });
    };
    c3_chart_internal_fn.hasDataLabel = function () {
        var config = this.config;
        if (typeof config.data_labels === 'boolean' && config.data_labels) {
            return true;
        } else if (_typeof(config.data_labels) === 'object' && notEmpty(config.data_labels)) {
            return true;
        }
        return false;
    };
    c3_chart_internal_fn.getDataLabelLength = function (min, max, key) {
        var $$ = this,
            lengths = [0, 0],
            paddingCoef = 1.3;
        $$.selectChart.select('svg').selectAll('.dummy').data([min, max]).enter().append('text').text(function (d) {
            return $$.dataLabelFormat(d.id)(d);
        }).each(function (d, i) {
            lengths[i] = this.getBoundingClientRect()[key] * paddingCoef;
        }).remove();
        return lengths;
    };
    c3_chart_internal_fn.isNoneArc = function (d) {
        return this.hasTarget(this.data.targets, d.id);
    }, c3_chart_internal_fn.isArc = function (d) {
        return 'data' in d && this.hasTarget(this.data.targets, d.data.id);
    };
    c3_chart_internal_fn.findSameXOfValues = function (values, index) {
        var i,
            targetX = values[index].x,
            sames = [];
        for (i = index - 1; i >= 0; i--) {
            if (targetX !== values[i].x) {
                break;
            }
            sames.push(values[i]);
        }
        for (i = index; i < values.length; i++) {
            if (targetX !== values[i].x) {
                break;
            }
            sames.push(values[i]);
        }
        return sames;
    };

    c3_chart_internal_fn.findClosestFromTargets = function (targets, pos) {
        var $$ = this,
            candidates;

        // map to array of closest points of each target
        candidates = targets.map(function (target) {
            return $$.findClosest(target.values, pos);
        });

        // decide closest point and return
        return $$.findClosest(candidates, pos);
    };
    c3_chart_internal_fn.findClosest = function (values, pos) {
        var $$ = this,
            minDist = $$.config.point_sensitivity,
            closest;

        // find mouseovering bar
        values.filter(function (v) {
            return v && $$.isBarType(v.id);
        }).forEach(function (v) {
            var shape = $$.main.select('.' + CLASS.bars + $$.getTargetSelectorSuffix(v.id) + ' .' + CLASS.bar + '-' + v.index).node();
            if (!closest && $$.isWithinBar(shape)) {
                closest = v;
            }
        });

        // find closest point from non-bar
        values.filter(function (v) {
            return v && !$$.isBarType(v.id);
        }).forEach(function (v) {
            var d = $$.dist(v, pos);
            if (d < minDist) {
                minDist = d;
                closest = v;
            }
        });

        return closest;
    };
    c3_chart_internal_fn.dist = function (data, pos) {
        var $$ = this,
            config = $$.config,
            xIndex = config.axis_rotated ? 1 : 0,
            yIndex = config.axis_rotated ? 0 : 1,
            y = $$.circleY(data, data.index),
            x = $$.x(data.x);
        return Math.sqrt(Math.pow(x - pos[xIndex], 2) + Math.pow(y - pos[yIndex], 2));
    };
    c3_chart_internal_fn.convertValuesToStep = function (values) {
        var converted = [].concat(values),
            i;

        if (!this.isCategorized()) {
            return values;
        }

        for (i = values.length + 1; 0 < i; i--) {
            converted[i] = converted[i - 1];
        }

        converted[0] = {
            x: converted[0].x - 1,
            value: converted[0].value,
            id: converted[0].id
        };
        converted[values.length + 1] = {
            x: converted[values.length].x + 1,
            value: converted[values.length].value,
            id: converted[values.length].id
        };

        return converted;
    };
    c3_chart_internal_fn.updateDataAttributes = function (name, attrs) {
        var $$ = this,
            config = $$.config,
            current = config['data_' + name];
        if (typeof attrs === 'undefined') {
            return current;
        }
        Object.keys(attrs).forEach(function (id) {
            current[id] = attrs[id];
        });
        $$.redraw({ withLegend: true });
        return current;
    };

    c3_chart_internal_fn.load = function (targets, args) {
        var $$ = this;
        if (targets) {
            // filter loading targets if needed
            if (args.filter) {
                targets = targets.filter(args.filter);
            }
            // set type if args.types || args.type specified
            if (args.type || args.types) {
                targets.forEach(function (t) {
                    var type = args.types && args.types[t.id] ? args.types[t.id] : args.type;
                    $$.setTargetType(t.id, type);
                });
            }
            // Update/Add data
            $$.data.targets.forEach(function (d) {
                for (var i = 0; i < targets.length; i++) {
                    if (d.id === targets[i].id) {
                        d.values = targets[i].values;
                        targets.splice(i, 1);
                        break;
                    }
                }
            });
            $$.data.targets = $$.data.targets.concat(targets); // add remained
        }

        // Set targets
        $$.updateTargets($$.data.targets);

        // Redraw with new targets
        $$.redraw({ withUpdateOrgXDomain: true, withUpdateXDomain: true, withLegend: true });

        if (args.done) {
            args.done();
        }
    };
    c3_chart_internal_fn.loadFromArgs = function (args) {
        var $$ = this;
        if (args.data) {
            $$.load($$.convertDataToTargets(args.data), args);
        } else if (args.url) {
            $$.convertUrlToData(args.url, args.mimeType, args.headers, args.keys, function (data) {
                $$.load($$.convertDataToTargets(data), args);
            });
        } else if (args.json) {
            $$.load($$.convertDataToTargets($$.convertJsonToData(args.json, args.keys)), args);
        } else if (args.rows) {
            $$.load($$.convertDataToTargets($$.convertRowsToData(args.rows)), args);
        } else if (args.columns) {
            $$.load($$.convertDataToTargets($$.convertColumnsToData(args.columns)), args);
        } else {
            $$.load(null, args);
        }
    };
    c3_chart_internal_fn.unload = function (targetIds, done) {
        var $$ = this;
        if (!done) {
            done = function done() {};
        }
        // filter existing target
        targetIds = targetIds.filter(function (id) {
            return $$.hasTarget($$.data.targets, id);
        });
        // If no target, call done and return
        if (!targetIds || targetIds.length === 0) {
            done();
            return;
        }
        $$.svg.selectAll(targetIds.map(function (id) {
            return $$.selectorTarget(id);
        })).transition().style('opacity', 0).remove().call($$.endall, done);
        targetIds.forEach(function (id) {
            // Reset fadein for future load
            $$.withoutFadeIn[id] = false;
            // Remove target's elements
            if ($$.legend) {
                $$.legend.selectAll('.' + CLASS.legendItem + $$.getTargetSelectorSuffix(id)).remove();
            }
            // Remove target
            $$.data.targets = $$.data.targets.filter(function (t) {
                return t.id !== id;
            });
        });
    };

    c3_chart_internal_fn.getYDomainMin = function (targets) {
        var $$ = this,
            config = $$.config,
            ids = $$.mapToIds(targets),
            ys = $$.getValuesAsIdKeyed(targets),
            j,
            k,
            baseId,
            idsInGroup,
            id,
            hasNegativeValue;
        if (config.data_groups.length > 0) {
            hasNegativeValue = $$.hasNegativeValueInTargets(targets);
            for (j = 0; j < config.data_groups.length; j++) {
                // Determine baseId
                idsInGroup = config.data_groups[j].filter(function (id) {
                    return ids.indexOf(id) >= 0;
                });
                if (idsInGroup.length === 0) {
                    continue;
                }
                baseId = idsInGroup[0];
                // Consider negative values
                if (hasNegativeValue && ys[baseId]) {
                    ys[baseId].forEach(function (v, i) {
                        ys[baseId][i] = v < 0 ? v : 0;
                    });
                }
                // Compute min
                for (k = 1; k < idsInGroup.length; k++) {
                    id = idsInGroup[k];
                    if (!ys[id]) {
                        continue;
                    }
                    ys[id].forEach(function (v, i) {
                        if ($$.axis.getId(id) === $$.axis.getId(baseId) && ys[baseId] && !(hasNegativeValue && +v > 0)) {
                            ys[baseId][i] += +v;
                        }
                    });
                }
            }
        }
        return $$.d3.min(Object.keys(ys).map(function (key) {
            return $$.d3.min(ys[key]);
        }));
    };
    c3_chart_internal_fn.getYDomainMax = function (targets) {
        var $$ = this,
            config = $$.config,
            ids = $$.mapToIds(targets),
            ys = $$.getValuesAsIdKeyed(targets),
            j,
            k,
            baseId,
            idsInGroup,
            id,
            hasPositiveValue;
        if (config.data_groups.length > 0) {
            hasPositiveValue = $$.hasPositiveValueInTargets(targets);
            for (j = 0; j < config.data_groups.length; j++) {
                // Determine baseId
                idsInGroup = config.data_groups[j].filter(function (id) {
                    return ids.indexOf(id) >= 0;
                });
                if (idsInGroup.length === 0) {
                    continue;
                }
                baseId = idsInGroup[0];
                // Consider positive values
                if (hasPositiveValue && ys[baseId]) {
                    ys[baseId].forEach(function (v, i) {
                        ys[baseId][i] = v > 0 ? v : 0;
                    });
                }
                // Compute max
                for (k = 1; k < idsInGroup.length; k++) {
                    id = idsInGroup[k];
                    if (!ys[id]) {
                        continue;
                    }
                    ys[id].forEach(function (v, i) {
                        if ($$.axis.getId(id) === $$.axis.getId(baseId) && ys[baseId] && !(hasPositiveValue && +v < 0)) {
                            ys[baseId][i] += +v;
                        }
                    });
                }
            }
        }
        return $$.d3.max(Object.keys(ys).map(function (key) {
            return $$.d3.max(ys[key]);
        }));
    };
    c3_chart_internal_fn.getYDomain = function (targets, axisId, xDomain) {
        var $$ = this,
            config = $$.config,
            targetsByAxisId = targets.filter(function (t) {
            return $$.axis.getId(t.id) === axisId;
        }),
            yTargets = xDomain ? $$.filterByXDomain(targetsByAxisId, xDomain) : targetsByAxisId,
            yMin = axisId === 'y2' ? config.axis_y2_min : config.axis_y_min,
            yMax = axisId === 'y2' ? config.axis_y2_max : config.axis_y_max,
            yDomainMin = $$.getYDomainMin(yTargets),
            yDomainMax = $$.getYDomainMax(yTargets),
            domain,
            domainLength,
            padding,
            padding_top,
            padding_bottom,
            center = axisId === 'y2' ? config.axis_y2_center : config.axis_y_center,
            yDomainAbs,
            lengths,
            diff,
            ratio,
            isAllPositive,
            isAllNegative,
            isZeroBased = $$.hasType('bar', yTargets) && config.bar_zerobased || $$.hasType('area', yTargets) && config.area_zerobased,
            isInverted = axisId === 'y2' ? config.axis_y2_inverted : config.axis_y_inverted,
            showHorizontalDataLabel = $$.hasDataLabel() && config.axis_rotated,
            showVerticalDataLabel = $$.hasDataLabel() && !config.axis_rotated;

        // MEMO: avoid inverting domain unexpectedly
        yDomainMin = isValue(yMin) ? yMin : isValue(yMax) ? yDomainMin < yMax ? yDomainMin : yMax - 10 : yDomainMin;
        yDomainMax = isValue(yMax) ? yMax : isValue(yMin) ? yMin < yDomainMax ? yDomainMax : yMin + 10 : yDomainMax;

        if (yTargets.length === 0) {
            // use current domain if target of axisId is none
            return axisId === 'y2' ? $$.y2.domain() : $$.y.domain();
        }
        if (isNaN(yDomainMin)) {
            // set minimum to zero when not number
            yDomainMin = 0;
        }
        if (isNaN(yDomainMax)) {
            // set maximum to have same value as yDomainMin
            yDomainMax = yDomainMin;
        }
        if (yDomainMin === yDomainMax) {
            yDomainMin < 0 ? yDomainMax = 0 : yDomainMin = 0;
        }
        isAllPositive = yDomainMin >= 0 && yDomainMax >= 0;
        isAllNegative = yDomainMin <= 0 && yDomainMax <= 0;

        // Cancel zerobased if axis_*_min / axis_*_max specified
        if (isValue(yMin) && isAllPositive || isValue(yMax) && isAllNegative) {
            isZeroBased = false;
        }

        // Bar/Area chart should be 0-based if all positive|negative
        if (isZeroBased) {
            if (isAllPositive) {
                yDomainMin = 0;
            }
            if (isAllNegative) {
                yDomainMax = 0;
            }
        }

        domainLength = Math.abs(yDomainMax - yDomainMin);
        padding = padding_top = padding_bottom = domainLength * 0.1;

        if (typeof center !== 'undefined') {
            yDomainAbs = Math.max(Math.abs(yDomainMin), Math.abs(yDomainMax));
            yDomainMax = center + yDomainAbs;
            yDomainMin = center - yDomainAbs;
        }
        // add padding for data label
        if (showHorizontalDataLabel) {
            lengths = $$.getDataLabelLength(yDomainMin, yDomainMax, 'width');
            diff = diffDomain($$.y.range());
            ratio = [lengths[0] / diff, lengths[1] / diff];
            padding_top += domainLength * (ratio[1] / (1 - ratio[0] - ratio[1]));
            padding_bottom += domainLength * (ratio[0] / (1 - ratio[0] - ratio[1]));
        } else if (showVerticalDataLabel) {
            lengths = $$.getDataLabelLength(yDomainMin, yDomainMax, 'height');
            padding_top += $$.axis.convertPixelsToAxisPadding(lengths[1], domainLength);
            padding_bottom += $$.axis.convertPixelsToAxisPadding(lengths[0], domainLength);
        }
        if (axisId === 'y' && notEmpty(config.axis_y_padding)) {
            padding_top = $$.axis.getPadding(config.axis_y_padding, 'top', padding_top, domainLength);
            padding_bottom = $$.axis.getPadding(config.axis_y_padding, 'bottom', padding_bottom, domainLength);
        }
        if (axisId === 'y2' && notEmpty(config.axis_y2_padding)) {
            padding_top = $$.axis.getPadding(config.axis_y2_padding, 'top', padding_top, domainLength);
            padding_bottom = $$.axis.getPadding(config.axis_y2_padding, 'bottom', padding_bottom, domainLength);
        }
        // Bar/Area chart should be 0-based if all positive|negative
        if (isZeroBased) {
            if (isAllPositive) {
                padding_bottom = yDomainMin;
            }
            if (isAllNegative) {
                padding_top = -yDomainMax;
            }
        }
        domain = [yDomainMin - padding_bottom, yDomainMax + padding_top];
        return isInverted ? domain.reverse() : domain;
    };
    c3_chart_internal_fn.getXDomainMin = function (targets) {
        var $$ = this,
            config = $$.config;
        return isDefined(config.axis_x_min) ? $$.isTimeSeries() ? this.parseDate(config.axis_x_min) : config.axis_x_min : $$.d3.min(targets, function (t) {
            return $$.d3.min(t.values, function (v) {
                return v.x;
            });
        });
    };
    c3_chart_internal_fn.getXDomainMax = function (targets) {
        var $$ = this,
            config = $$.config;
        return isDefined(config.axis_x_max) ? $$.isTimeSeries() ? this.parseDate(config.axis_x_max) : config.axis_x_max : $$.d3.max(targets, function (t) {
            return $$.d3.max(t.values, function (v) {
                return v.x;
            });
        });
    };
    c3_chart_internal_fn.getXDomainPadding = function (domain) {
        var $$ = this,
            config = $$.config,
            diff = domain[1] - domain[0],
            maxDataCount,
            padding,
            paddingLeft,
            paddingRight;
        if ($$.isCategorized()) {
            padding = 0;
        } else if ($$.hasType('bar')) {
            maxDataCount = $$.getMaxDataCount();
            padding = maxDataCount > 1 ? diff / (maxDataCount - 1) / 2 : 0.5;
        } else {
            padding = diff * 0.01;
        }
        if (_typeof(config.axis_x_padding) === 'object' && notEmpty(config.axis_x_padding)) {
            paddingLeft = isValue(config.axis_x_padding.left) ? config.axis_x_padding.left : padding;
            paddingRight = isValue(config.axis_x_padding.right) ? config.axis_x_padding.right : padding;
        } else if (typeof config.axis_x_padding === 'number') {
            paddingLeft = paddingRight = config.axis_x_padding;
        } else {
            paddingLeft = paddingRight = padding;
        }
        return { left: paddingLeft, right: paddingRight };
    };
    c3_chart_internal_fn.getXDomain = function (targets) {
        var $$ = this,
            xDomain = [$$.getXDomainMin(targets), $$.getXDomainMax(targets)],
            firstX = xDomain[0],
            lastX = xDomain[1],
            padding = $$.getXDomainPadding(xDomain),
            min = 0,
            max = 0;
        // show center of x domain if min and max are the same
        if (firstX - lastX === 0 && !$$.isCategorized()) {
            if ($$.isTimeSeries()) {
                firstX = new Date(firstX.getTime() * 0.5);
                lastX = new Date(lastX.getTime() * 1.5);
            } else {
                firstX = firstX === 0 ? 1 : firstX * 0.5;
                lastX = lastX === 0 ? -1 : lastX * 1.5;
            }
        }
        if (firstX || firstX === 0) {
            min = $$.isTimeSeries() ? new Date(firstX.getTime() - padding.left) : firstX - padding.left;
        }
        if (lastX || lastX === 0) {
            max = $$.isTimeSeries() ? new Date(lastX.getTime() + padding.right) : lastX + padding.right;
        }
        return [min, max];
    };
    c3_chart_internal_fn.updateXDomain = function (targets, withUpdateXDomain, withUpdateOrgXDomain, withTrim, domain) {
        var $$ = this,
            config = $$.config;

        if (withUpdateOrgXDomain) {
            $$.x.domain(domain ? domain : $$.d3.extent($$.getXDomain(targets)));
            $$.orgXDomain = $$.x.domain();
            if (config.zoom_enabled) {
                $$.zoom.scale($$.x).updateScaleExtent();
            }
            $$.subX.domain($$.x.domain());
            if ($$.brush) {
                $$.brush.scale($$.subX);
            }
        }
        if (withUpdateXDomain) {
            $$.x.domain(domain ? domain : !$$.brush || $$.brush.empty() ? $$.orgXDomain : $$.brush.extent());
            if (config.zoom_enabled) {
                $$.zoom.scale($$.x).updateScaleExtent();
            }
        }

        // Trim domain when too big by zoom mousemove event
        if (withTrim) {
            $$.x.domain($$.trimXDomain($$.x.orgDomain()));
        }

        return $$.x.domain();
    };
    c3_chart_internal_fn.trimXDomain = function (domain) {
        var zoomDomain = this.getZoomDomain(),
            min = zoomDomain[0],
            max = zoomDomain[1];
        if (domain[0] <= min) {
            domain[1] = +domain[1] + (min - domain[0]);
            domain[0] = min;
        }
        if (max <= domain[1]) {
            domain[0] = +domain[0] - (domain[1] - max);
            domain[1] = max;
        }
        return domain;
    };

    c3_chart_internal_fn.drag = function (mouse) {
        var $$ = this,
            config = $$.config,
            main = $$.main,
            d3 = $$.d3;
        var sx, sy, mx, my, minX, maxX, minY, maxY;

        if ($$.hasArcType()) {
            return;
        }
        if (!config.data_selection_enabled) {
            return;
        } // do nothing if not selectable
        if (config.zoom_enabled && !$$.zoom.altDomain) {
            return;
        } // skip if zoomable because of conflict drag dehavior
        if (!config.data_selection_multiple) {
            return;
        } // skip when single selection because drag is used for multiple selection

        sx = $$.dragStart[0];
        sy = $$.dragStart[1];
        mx = mouse[0];
        my = mouse[1];
        minX = Math.min(sx, mx);
        maxX = Math.max(sx, mx);
        minY = config.data_selection_grouped ? $$.margin.top : Math.min(sy, my);
        maxY = config.data_selection_grouped ? $$.height : Math.max(sy, my);

        main.select('.' + CLASS.dragarea).attr('x', minX).attr('y', minY).attr('width', maxX - minX).attr('height', maxY - minY);
        // TODO: binary search when multiple xs
        main.selectAll('.' + CLASS.shapes).selectAll('.' + CLASS.shape).filter(function (d) {
            return config.data_selection_isselectable(d);
        }).each(function (d, i) {
            var shape = d3.select(this),
                isSelected = shape.classed(CLASS.SELECTED),
                isIncluded = shape.classed(CLASS.INCLUDED),
                _x,
                _y,
                _w,
                _h,
                toggle,
                isWithin = false,
                box;
            if (shape.classed(CLASS.circle)) {
                _x = shape.attr("cx") * 1;
                _y = shape.attr("cy") * 1;
                toggle = $$.togglePoint;
                isWithin = minX < _x && _x < maxX && minY < _y && _y < maxY;
            } else if (shape.classed(CLASS.bar)) {
                box = getPathBox(this);
                _x = box.x;
                _y = box.y;
                _w = box.width;
                _h = box.height;
                toggle = $$.togglePath;
                isWithin = !(maxX < _x || _x + _w < minX) && !(maxY < _y || _y + _h < minY);
            } else {
                // line/area selection not supported yet
                return;
            }
            if (isWithin ^ isIncluded) {
                shape.classed(CLASS.INCLUDED, !isIncluded);
                // TODO: included/unincluded callback here
                shape.classed(CLASS.SELECTED, !isSelected);
                toggle.call($$, !isSelected, shape, d, i);
            }
        });
    };

    c3_chart_internal_fn.dragstart = function (mouse) {
        var $$ = this,
            config = $$.config;
        if ($$.hasArcType()) {
            return;
        }
        if (!config.data_selection_enabled) {
            return;
        } // do nothing if not selectable
        $$.dragStart = mouse;
        $$.main.select('.' + CLASS.chart).append('rect').attr('class', CLASS.dragarea).style('opacity', 0.1);
        $$.dragging = true;
    };

    c3_chart_internal_fn.dragend = function () {
        var $$ = this,
            config = $$.config;
        if ($$.hasArcType()) {
            return;
        }
        if (!config.data_selection_enabled) {
            return;
        } // do nothing if not selectable
        $$.main.select('.' + CLASS.dragarea).transition().duration(100).style('opacity', 0).remove();
        $$.main.selectAll('.' + CLASS.shape).classed(CLASS.INCLUDED, false);
        $$.dragging = false;
    };

    c3_chart_internal_fn.getYFormat = function (forArc) {
        var $$ = this,
            formatForY = forArc && !$$.hasType('gauge') ? $$.defaultArcValueFormat : $$.yFormat,
            formatForY2 = forArc && !$$.hasType('gauge') ? $$.defaultArcValueFormat : $$.y2Format;
        return function (v, ratio, id) {
            var format = $$.axis.getId(id) === 'y2' ? formatForY2 : formatForY;
            return format.call($$, v, ratio);
        };
    };
    c3_chart_internal_fn.yFormat = function (v) {
        var $$ = this,
            config = $$.config,
            format = config.axis_y_tick_format ? config.axis_y_tick_format : $$.defaultValueFormat;
        return format(v);
    };
    c3_chart_internal_fn.y2Format = function (v) {
        var $$ = this,
            config = $$.config,
            format = config.axis_y2_tick_format ? config.axis_y2_tick_format : $$.defaultValueFormat;
        return format(v);
    };
    c3_chart_internal_fn.defaultValueFormat = function (v) {
        return isValue(v) ? +v : "";
    };
    c3_chart_internal_fn.defaultArcValueFormat = function (v, ratio) {
        return (ratio * 100).toFixed(1) + '%';
    };
    c3_chart_internal_fn.dataLabelFormat = function (targetId) {
        var $$ = this,
            data_labels = $$.config.data_labels,
            format,
            defaultFormat = function defaultFormat(v) {
            return isValue(v) ? +v : "";
        };
        // find format according to axis id
        if (typeof data_labels.format === 'function') {
            format = data_labels.format;
        } else if (_typeof(data_labels.format) === 'object') {
            if (data_labels.format[targetId]) {
                format = data_labels.format[targetId] === true ? defaultFormat : data_labels.format[targetId];
            } else {
                format = function format() {
                    return '';
                };
            }
        } else {
            format = defaultFormat;
        }
        return format;
    };

    c3_chart_internal_fn.initGrid = function () {
        var $$ = this,
            config = $$.config,
            d3 = $$.d3;
        $$.grid = $$.main.append('g').attr("clip-path", $$.clipPathForGrid).attr('class', CLASS.grid);
        if (config.grid_x_show) {
            $$.grid.append("g").attr("class", CLASS.xgrids);
        }
        if (config.grid_y_show) {
            $$.grid.append('g').attr('class', CLASS.ygrids);
        }
        if (config.grid_focus_show) {
            $$.grid.append('g').attr("class", CLASS.xgridFocus).append('line').attr('class', CLASS.xgridFocus);
        }
        $$.xgrid = d3.selectAll([]);
        if (!config.grid_lines_front) {
            $$.initGridLines();
        }
    };
    c3_chart_internal_fn.initGridLines = function () {
        var $$ = this,
            d3 = $$.d3;
        $$.gridLines = $$.main.append('g').attr("clip-path", $$.clipPathForGrid).attr('class', CLASS.grid + ' ' + CLASS.gridLines);
        $$.gridLines.append('g').attr("class", CLASS.xgridLines);
        $$.gridLines.append('g').attr('class', CLASS.ygridLines);
        $$.xgridLines = d3.selectAll([]);
    };
    c3_chart_internal_fn.updateXGrid = function (withoutUpdate) {
        var $$ = this,
            config = $$.config,
            d3 = $$.d3,
            xgridData = $$.generateGridData(config.grid_x_type, $$.x),
            tickOffset = $$.isCategorized() ? $$.xAxis.tickOffset() : 0;

        $$.xgridAttr = config.axis_rotated ? {
            'x1': 0,
            'x2': $$.width,
            'y1': function y1(d) {
                return $$.x(d) - tickOffset;
            },
            'y2': function y2(d) {
                return $$.x(d) - tickOffset;
            }
        } : {
            'x1': function x1(d) {
                return $$.x(d) + tickOffset;
            },
            'x2': function x2(d) {
                return $$.x(d) + tickOffset;
            },
            'y1': 0,
            'y2': $$.height
        };

        $$.xgrid = $$.main.select('.' + CLASS.xgrids).selectAll('.' + CLASS.xgrid).data(xgridData);
        $$.xgrid.enter().append('line').attr("class", CLASS.xgrid);
        if (!withoutUpdate) {
            $$.xgrid.attr($$.xgridAttr).style("opacity", function () {
                return +d3.select(this).attr(config.axis_rotated ? 'y1' : 'x1') === (config.axis_rotated ? $$.height : 0) ? 0 : 1;
            });
        }
        $$.xgrid.exit().remove();
    };

    c3_chart_internal_fn.updateYGrid = function () {
        var $$ = this,
            config = $$.config,
            gridValues = $$.yAxis.tickValues() || $$.y.ticks(config.grid_y_ticks);
        $$.ygrid = $$.main.select('.' + CLASS.ygrids).selectAll('.' + CLASS.ygrid).data(gridValues);
        $$.ygrid.enter().append('line').attr('class', CLASS.ygrid);
        $$.ygrid.attr("x1", config.axis_rotated ? $$.y : 0).attr("x2", config.axis_rotated ? $$.y : $$.width).attr("y1", config.axis_rotated ? 0 : $$.y).attr("y2", config.axis_rotated ? $$.height : $$.y);
        $$.ygrid.exit().remove();
        $$.smoothLines($$.ygrid, 'grid');
    };

    c3_chart_internal_fn.gridTextAnchor = function (d) {
        return d.position ? d.position : "end";
    };
    c3_chart_internal_fn.gridTextDx = function (d) {
        return d.position === 'start' ? 4 : d.position === 'middle' ? 0 : -4;
    };
    c3_chart_internal_fn.xGridTextX = function (d) {
        return d.position === 'start' ? -this.height : d.position === 'middle' ? -this.height / 2 : 0;
    };
    c3_chart_internal_fn.yGridTextX = function (d) {
        return d.position === 'start' ? 0 : d.position === 'middle' ? this.width / 2 : this.width;
    };
    c3_chart_internal_fn.updateGrid = function (duration) {
        var $$ = this,
            main = $$.main,
            config = $$.config,
            xgridLine,
            ygridLine,
            yv;

        // hide if arc type
        $$.grid.style('visibility', $$.hasArcType() ? 'hidden' : 'visible');

        main.select('line.' + CLASS.xgridFocus).style("visibility", "hidden");
        if (config.grid_x_show) {
            $$.updateXGrid();
        }
        $$.xgridLines = main.select('.' + CLASS.xgridLines).selectAll('.' + CLASS.xgridLine).data(config.grid_x_lines);
        // enter
        xgridLine = $$.xgridLines.enter().append('g').attr("class", function (d) {
            return CLASS.xgridLine + (d['class'] ? ' ' + d['class'] : '');
        });
        xgridLine.append('line').style("opacity", 0);
        xgridLine.append('text').attr("text-anchor", $$.gridTextAnchor).attr("transform", config.axis_rotated ? "" : "rotate(-90)").attr('dx', $$.gridTextDx).attr('dy', -5).style("opacity", 0);
        // udpate
        // done in d3.transition() of the end of this function
        // exit
        $$.xgridLines.exit().transition().duration(duration).style("opacity", 0).remove();

        // Y-Grid
        if (config.grid_y_show) {
            $$.updateYGrid();
        }
        $$.ygridLines = main.select('.' + CLASS.ygridLines).selectAll('.' + CLASS.ygridLine).data(config.grid_y_lines);
        // enter
        ygridLine = $$.ygridLines.enter().append('g').attr("class", function (d) {
            return CLASS.ygridLine + (d['class'] ? ' ' + d['class'] : '');
        });
        ygridLine.append('line').style("opacity", 0);
        ygridLine.append('text').attr("text-anchor", $$.gridTextAnchor).attr("transform", config.axis_rotated ? "rotate(-90)" : "").attr('dx', $$.gridTextDx).attr('dy', -5).style("opacity", 0);
        // update
        yv = $$.yv.bind($$);
        $$.ygridLines.select('line').transition().duration(duration).attr("x1", config.axis_rotated ? yv : 0).attr("x2", config.axis_rotated ? yv : $$.width).attr("y1", config.axis_rotated ? 0 : yv).attr("y2", config.axis_rotated ? $$.height : yv).style("opacity", 1);
        $$.ygridLines.select('text').transition().duration(duration).attr("x", config.axis_rotated ? $$.xGridTextX.bind($$) : $$.yGridTextX.bind($$)).attr("y", yv).text(function (d) {
            return d.text;
        }).style("opacity", 1);
        // exit
        $$.ygridLines.exit().transition().duration(duration).style("opacity", 0).remove();
    };
    c3_chart_internal_fn.redrawGrid = function (withTransition) {
        var $$ = this,
            config = $$.config,
            xv = $$.xv.bind($$),
            lines = $$.xgridLines.select('line'),
            texts = $$.xgridLines.select('text');
        return [(withTransition ? lines.transition() : lines).attr("x1", config.axis_rotated ? 0 : xv).attr("x2", config.axis_rotated ? $$.width : xv).attr("y1", config.axis_rotated ? xv : 0).attr("y2", config.axis_rotated ? xv : $$.height).style("opacity", 1), (withTransition ? texts.transition() : texts).attr("x", config.axis_rotated ? $$.yGridTextX.bind($$) : $$.xGridTextX.bind($$)).attr("y", xv).text(function (d) {
            return d.text;
        }).style("opacity", 1)];
    };
    c3_chart_internal_fn.showXGridFocus = function (selectedData) {
        var $$ = this,
            config = $$.config,
            dataToShow = selectedData.filter(function (d) {
            return d && isValue(d.value);
        }),
            focusEl = $$.main.selectAll('line.' + CLASS.xgridFocus),
            xx = $$.xx.bind($$);
        if (!config.tooltip_show) {
            return;
        }
        // Hide when scatter plot exists
        if ($$.hasType('scatter') || $$.hasArcType()) {
            return;
        }
        focusEl.style("visibility", "visible").data([dataToShow[0]]).attr(config.axis_rotated ? 'y1' : 'x1', xx).attr(config.axis_rotated ? 'y2' : 'x2', xx);
        $$.smoothLines(focusEl, 'grid');
    };
    c3_chart_internal_fn.hideXGridFocus = function () {
        this.main.select('line.' + CLASS.xgridFocus).style("visibility", "hidden");
    };
    c3_chart_internal_fn.updateXgridFocus = function () {
        var $$ = this,
            config = $$.config;
        $$.main.select('line.' + CLASS.xgridFocus).attr("x1", config.axis_rotated ? 0 : -10).attr("x2", config.axis_rotated ? $$.width : -10).attr("y1", config.axis_rotated ? -10 : 0).attr("y2", config.axis_rotated ? -10 : $$.height);
    };
    c3_chart_internal_fn.generateGridData = function (type, scale) {
        var $$ = this,
            gridData = [],
            xDomain,
            firstYear,
            lastYear,
            i,
            tickNum = $$.main.select("." + CLASS.axisX).selectAll('.tick').size();
        if (type === 'year') {
            xDomain = $$.getXDomain();
            firstYear = xDomain[0].getFullYear();
            lastYear = xDomain[1].getFullYear();
            for (i = firstYear; i <= lastYear; i++) {
                gridData.push(new Date(i + '-01-01 00:00:00'));
            }
        } else {
            gridData = scale.ticks(10);
            if (gridData.length > tickNum) {
                // use only int
                gridData = gridData.filter(function (d) {
                    return ("" + d).indexOf('.') < 0;
                });
            }
        }
        return gridData;
    };
    c3_chart_internal_fn.getGridFilterToRemove = function (params) {
        return params ? function (line) {
            var found = false;
            [].concat(params).forEach(function (param) {
                if ('value' in param && line.value === param.value || 'class' in param && line['class'] === param['class']) {
                    found = true;
                }
            });
            return found;
        } : function () {
            return true;
        };
    };
    c3_chart_internal_fn.removeGridLines = function (params, forX) {
        var $$ = this,
            config = $$.config,
            toRemove = $$.getGridFilterToRemove(params),
            toShow = function toShow(line) {
            return !toRemove(line);
        },
            classLines = forX ? CLASS.xgridLines : CLASS.ygridLines,
            classLine = forX ? CLASS.xgridLine : CLASS.ygridLine;
        $$.main.select('.' + classLines).selectAll('.' + classLine).filter(toRemove).transition().duration(config.transition_duration).style('opacity', 0).remove();
        if (forX) {
            config.grid_x_lines = config.grid_x_lines.filter(toShow);
        } else {
            config.grid_y_lines = config.grid_y_lines.filter(toShow);
        }
    };

    c3_chart_internal_fn.initEventRect = function () {
        var $$ = this;
        $$.main.select('.' + CLASS.chart).append("g").attr("class", CLASS.eventRects).style('fill-opacity', 0);
    };
    c3_chart_internal_fn.redrawEventRect = function () {
        var $$ = this,
            config = $$.config,
            eventRectUpdate,
            maxDataCountTarget,
            isMultipleX = $$.isMultipleX();

        // rects for mouseover
        var eventRects = $$.main.select('.' + CLASS.eventRects).style('cursor', config.zoom_enabled ? config.axis_rotated ? 'ns-resize' : 'ew-resize' : null).classed(CLASS.eventRectsMultiple, isMultipleX).classed(CLASS.eventRectsSingle, !isMultipleX);

        // clear old rects
        eventRects.selectAll('.' + CLASS.eventRect).remove();

        // open as public variable
        $$.eventRect = eventRects.selectAll('.' + CLASS.eventRect);

        if (isMultipleX) {
            eventRectUpdate = $$.eventRect.data([0]);
            // enter : only one rect will be added
            $$.generateEventRectsForMultipleXs(eventRectUpdate.enter());
            // update
            $$.updateEventRect(eventRectUpdate);
            // exit : not needed because always only one rect exists
        } else {
            // Set data and update $$.eventRect
            maxDataCountTarget = $$.getMaxDataCountTarget($$.data.targets);
            eventRects.datum(maxDataCountTarget ? maxDataCountTarget.values : []);
            $$.eventRect = eventRects.selectAll('.' + CLASS.eventRect);
            eventRectUpdate = $$.eventRect.data(function (d) {
                return d;
            });
            // enter
            $$.generateEventRectsForSingleX(eventRectUpdate.enter());
            // update
            $$.updateEventRect(eventRectUpdate);
            // exit
            eventRectUpdate.exit().remove();
        }
    };
    c3_chart_internal_fn.updateEventRect = function (eventRectUpdate) {
        var $$ = this,
            config = $$.config,
            x,
            y,
            w,
            h,
            rectW,
            rectX;

        // set update selection if null
        eventRectUpdate = eventRectUpdate || $$.eventRect.data(function (d) {
            return d;
        });

        if ($$.isMultipleX()) {
            // TODO: rotated not supported yet
            x = 0;
            y = 0;
            w = $$.width;
            h = $$.height;
        } else {
            if (($$.isCustomX() || $$.isTimeSeries()) && !$$.isCategorized()) {

                // update index for x that is used by prevX and nextX
                $$.updateXs();

                rectW = function rectW(d) {
                    var prevX = $$.getPrevX(d.index),
                        nextX = $$.getNextX(d.index);

                    // if there this is a single data point make the eventRect full width (or height)
                    if (prevX === null && nextX === null) {
                        return config.axis_rotated ? $$.height : $$.width;
                    }

                    if (prevX === null) {
                        prevX = $$.x.domain()[0];
                    }
                    if (nextX === null) {
                        nextX = $$.x.domain()[1];
                    }

                    return Math.max(0, ($$.x(nextX) - $$.x(prevX)) / 2);
                };
                rectX = function rectX(d) {
                    var prevX = $$.getPrevX(d.index),
                        nextX = $$.getNextX(d.index),
                        thisX = $$.data.xs[d.id][d.index];

                    // if there this is a single data point position the eventRect at 0
                    if (prevX === null && nextX === null) {
                        return 0;
                    }

                    if (prevX === null) {
                        prevX = $$.x.domain()[0];
                    }

                    return ($$.x(thisX) + $$.x(prevX)) / 2;
                };
            } else {
                rectW = $$.getEventRectWidth();
                rectX = function rectX(d) {
                    return $$.x(d.x) - rectW / 2;
                };
            }
            x = config.axis_rotated ? 0 : rectX;
            y = config.axis_rotated ? rectX : 0;
            w = config.axis_rotated ? $$.width : rectW;
            h = config.axis_rotated ? rectW : $$.height;
        }

        eventRectUpdate.attr('class', $$.classEvent.bind($$)).attr("x", x).attr("y", y).attr("width", w).attr("height", h);
    };
    c3_chart_internal_fn.generateEventRectsForSingleX = function (eventRectEnter) {
        var $$ = this,
            d3 = $$.d3,
            config = $$.config;
        eventRectEnter.append("rect").attr("class", $$.classEvent.bind($$)).style("cursor", config.data_selection_enabled && config.data_selection_grouped ? "pointer" : null).on('mouseover', function (d) {
            var index = d.index;

            if ($$.dragging || $$.flowing) {
                return;
            } // do nothing while dragging/flowing
            if ($$.hasArcType()) {
                return;
            }

            // Expand shapes for selection
            if (config.point_focus_expand_enabled) {
                $$.expandCircles(index, null, true);
            }
            $$.expandBars(index, null, true);

            // Call event handler
            $$.main.selectAll('.' + CLASS.shape + '-' + index).each(function (d) {
                config.data_onmouseover.call($$.api, d);
            });
        }).on('mouseout', function (d) {
            var index = d.index;
            if (!$$.config) {
                return;
            } // chart is destroyed
            if ($$.hasArcType()) {
                return;
            }
            $$.hideXGridFocus();
            $$.hideTooltip();
            // Undo expanded shapes
            $$.unexpandCircles();
            $$.unexpandBars();
            // Call event handler
            $$.main.selectAll('.' + CLASS.shape + '-' + index).each(function (d) {
                config.data_onmouseout.call($$.api, d);
            });
        }).on('mousemove', function (d) {
            var selectedData,
                index = d.index,
                eventRect = $$.svg.select('.' + CLASS.eventRect + '-' + index);

            if ($$.dragging || $$.flowing) {
                return;
            } // do nothing while dragging/flowing
            if ($$.hasArcType()) {
                return;
            }

            if ($$.isStepType(d) && $$.config.line_step_type === 'step-after' && d3.mouse(this)[0] < $$.x($$.getXValue(d.id, index))) {
                index -= 1;
            }

            // Show tooltip
            selectedData = $$.filterTargetsToShow($$.data.targets).map(function (t) {
                return $$.addName($$.getValueOnIndex(t.values, index));
            });

            if (config.tooltip_grouped) {
                $$.showTooltip(selectedData, this);
                $$.showXGridFocus(selectedData);
            }

            if (config.tooltip_grouped && (!config.data_selection_enabled || config.data_selection_grouped)) {
                return;
            }

            $$.main.selectAll('.' + CLASS.shape + '-' + index).each(function () {
                d3.select(this).classed(CLASS.EXPANDED, true);
                if (config.data_selection_enabled) {
                    eventRect.style('cursor', config.data_selection_grouped ? 'pointer' : null);
                }
                if (!config.tooltip_grouped) {
                    $$.hideXGridFocus();
                    $$.hideTooltip();
                    if (!config.data_selection_grouped) {
                        $$.unexpandCircles(index);
                        $$.unexpandBars(index);
                    }
                }
            }).filter(function (d) {
                return $$.isWithinShape(this, d);
            }).each(function (d) {
                if (config.data_selection_enabled && (config.data_selection_grouped || config.data_selection_isselectable(d))) {
                    eventRect.style('cursor', 'pointer');
                }
                if (!config.tooltip_grouped) {
                    $$.showTooltip([d], this);
                    $$.showXGridFocus([d]);
                    if (config.point_focus_expand_enabled) {
                        $$.expandCircles(index, d.id, true);
                    }
                    $$.expandBars(index, d.id, true);
                }
            });
        }).on('click', function (d) {
            var index = d.index;
            if ($$.hasArcType() || !$$.toggleShape) {
                return;
            }
            if ($$.cancelClick) {
                $$.cancelClick = false;
                return;
            }
            if ($$.isStepType(d) && config.line_step_type === 'step-after' && d3.mouse(this)[0] < $$.x($$.getXValue(d.id, index))) {
                index -= 1;
            }
            $$.main.selectAll('.' + CLASS.shape + '-' + index).each(function (d) {
                if (config.data_selection_grouped || $$.isWithinShape(this, d)) {
                    $$.toggleShape(this, d, index);
                    $$.config.data_onclick.call($$.api, d, this);
                }
            });
        }).call(config.data_selection_draggable && $$.drag ? d3.behavior.drag().origin(Object).on('drag', function () {
            $$.drag(d3.mouse(this));
        }).on('dragstart', function () {
            $$.dragstart(d3.mouse(this));
        }).on('dragend', function () {
            $$.dragend();
        }) : function () {});
    };

    c3_chart_internal_fn.generateEventRectsForMultipleXs = function (eventRectEnter) {
        var $$ = this,
            d3 = $$.d3,
            config = $$.config;

        function mouseout() {
            $$.svg.select('.' + CLASS.eventRect).style('cursor', null);
            $$.hideXGridFocus();
            $$.hideTooltip();
            $$.unexpandCircles();
            $$.unexpandBars();
        }

        eventRectEnter.append('rect').attr('x', 0).attr('y', 0).attr('width', $$.width).attr('height', $$.height).attr('class', CLASS.eventRect).on('mouseout', function () {
            if (!$$.config) {
                return;
            } // chart is destroyed
            if ($$.hasArcType()) {
                return;
            }
            mouseout();
        }).on('mousemove', function () {
            var targetsToShow = $$.filterTargetsToShow($$.data.targets);
            var mouse, closest, sameXData, selectedData;

            if ($$.dragging) {
                return;
            } // do nothing when dragging
            if ($$.hasArcType(targetsToShow)) {
                return;
            }

            mouse = d3.mouse(this);
            closest = $$.findClosestFromTargets(targetsToShow, mouse);

            if ($$.mouseover && (!closest || closest.id !== $$.mouseover.id)) {
                config.data_onmouseout.call($$.api, $$.mouseover);
                $$.mouseover = undefined;
            }

            if (!closest) {
                mouseout();
                return;
            }

            if ($$.isScatterType(closest) || !config.tooltip_grouped) {
                sameXData = [closest];
            } else {
                sameXData = $$.filterByX(targetsToShow, closest.x);
            }

            // show tooltip when cursor is close to some point
            selectedData = sameXData.map(function (d) {
                return $$.addName(d);
            });
            $$.showTooltip(selectedData, this);

            // expand points
            if (config.point_focus_expand_enabled) {
                $$.expandCircles(closest.index, closest.id, true);
            }
            $$.expandBars(closest.index, closest.id, true);

            // Show xgrid focus line
            $$.showXGridFocus(selectedData);

            // Show cursor as pointer if point is close to mouse position
            if ($$.isBarType(closest.id) || $$.dist(closest, mouse) < config.point_sensitivity) {
                $$.svg.select('.' + CLASS.eventRect).style('cursor', 'pointer');
                if (!$$.mouseover) {
                    config.data_onmouseover.call($$.api, closest);
                    $$.mouseover = closest;
                }
            }
        }).on('click', function () {
            var targetsToShow = $$.filterTargetsToShow($$.data.targets);
            var mouse, closest;
            if ($$.hasArcType(targetsToShow)) {
                return;
            }

            mouse = d3.mouse(this);
            closest = $$.findClosestFromTargets(targetsToShow, mouse);
            if (!closest) {
                return;
            }
            // select if selection enabled
            if ($$.isBarType(closest.id) || $$.dist(closest, mouse) < config.point_sensitivity) {
                $$.main.selectAll('.' + CLASS.shapes + $$.getTargetSelectorSuffix(closest.id)).selectAll('.' + CLASS.shape + '-' + closest.index).each(function () {
                    if (config.data_selection_grouped || $$.isWithinShape(this, closest)) {
                        $$.toggleShape(this, closest, closest.index);
                        $$.config.data_onclick.call($$.api, closest, this);
                    }
                });
            }
        }).call(config.data_selection_draggable && $$.drag ? d3.behavior.drag().origin(Object).on('drag', function () {
            $$.drag(d3.mouse(this));
        }).on('dragstart', function () {
            $$.dragstart(d3.mouse(this));
        }).on('dragend', function () {
            $$.dragend();
        }) : function () {});
    };
    c3_chart_internal_fn.dispatchEvent = function (type, index, mouse) {
        var $$ = this,
            selector = '.' + CLASS.eventRect + (!$$.isMultipleX() ? '-' + index : ''),
            eventRect = $$.main.select(selector).node(),
            box = eventRect.getBoundingClientRect(),
            x = box.left + (mouse ? mouse[0] : 0),
            y = box.top + (mouse ? mouse[1] : 0),
            event = document.createEvent("MouseEvents");

        event.initMouseEvent(type, true, true, window, 0, x, y, x, y, false, false, false, false, 0, null);
        eventRect.dispatchEvent(event);
    };

    c3_chart_internal_fn.initLegend = function () {
        var $$ = this;
        $$.legendItemTextBox = {};
        $$.legendHasRendered = false;
        $$.legend = $$.svg.append("g").attr("transform", $$.getTranslate('legend'));
        if (!$$.config.legend_show) {
            $$.legend.style('visibility', 'hidden');
            $$.hiddenLegendIds = $$.mapToIds($$.data.targets);
            return;
        }
        // MEMO: call here to update legend box and tranlate for all
        // MEMO: translate will be upated by this, so transform not needed in updateLegend()
        $$.updateLegendWithDefaults();
    };
    c3_chart_internal_fn.updateLegendWithDefaults = function () {
        var $$ = this;
        $$.updateLegend($$.mapToIds($$.data.targets), { withTransform: false, withTransitionForTransform: false, withTransition: false });
    };
    c3_chart_internal_fn.updateSizeForLegend = function (legendHeight, legendWidth) {
        var $$ = this,
            config = $$.config,
            insetLegendPosition = {
            top: $$.isLegendTop ? $$.getCurrentPaddingTop() + config.legend_inset_y + 5.5 : $$.currentHeight - legendHeight - $$.getCurrentPaddingBottom() - config.legend_inset_y,
            left: $$.isLegendLeft ? $$.getCurrentPaddingLeft() + config.legend_inset_x + 0.5 : $$.currentWidth - legendWidth - $$.getCurrentPaddingRight() - config.legend_inset_x + 0.5
        };

        $$.margin3 = {
            top: $$.isLegendRight ? 0 : $$.isLegendInset ? insetLegendPosition.top : $$.currentHeight - legendHeight,
            right: NaN,
            bottom: 0,
            left: $$.isLegendRight ? $$.currentWidth - legendWidth : $$.isLegendInset ? insetLegendPosition.left : 0
        };
    };
    c3_chart_internal_fn.transformLegend = function (withTransition) {
        var $$ = this;
        (withTransition ? $$.legend.transition() : $$.legend).attr("transform", $$.getTranslate('legend'));
    };
    c3_chart_internal_fn.updateLegendStep = function (step) {
        this.legendStep = step;
    };
    c3_chart_internal_fn.updateLegendItemWidth = function (w) {
        this.legendItemWidth = w;
    };
    c3_chart_internal_fn.updateLegendItemHeight = function (h) {
        this.legendItemHeight = h;
    };
    c3_chart_internal_fn.getLegendWidth = function () {
        var $$ = this;
        return $$.config.legend_show ? $$.isLegendRight || $$.isLegendInset ? $$.legendItemWidth * ($$.legendStep + 1) : $$.currentWidth : 0;
    };
    c3_chart_internal_fn.getLegendHeight = function () {
        var $$ = this,
            h = 0;
        if ($$.config.legend_show) {
            if ($$.isLegendRight) {
                h = $$.currentHeight;
            } else {
                h = Math.max(20, $$.legendItemHeight) * ($$.legendStep + 1);
            }
        }
        return h;
    };
    c3_chart_internal_fn.opacityForLegend = function (legendItem) {
        return legendItem.classed(CLASS.legendItemHidden) ? null : 1;
    };
    c3_chart_internal_fn.opacityForUnfocusedLegend = function (legendItem) {
        return legendItem.classed(CLASS.legendItemHidden) ? null : 0.3;
    };
    c3_chart_internal_fn.toggleFocusLegend = function (targetIds, focus) {
        var $$ = this;
        targetIds = $$.mapToTargetIds(targetIds);
        $$.legend.selectAll('.' + CLASS.legendItem).filter(function (id) {
            return targetIds.indexOf(id) >= 0;
        }).classed(CLASS.legendItemFocused, focus).transition().duration(100).style('opacity', function () {
            var opacity = focus ? $$.opacityForLegend : $$.opacityForUnfocusedLegend;
            return opacity.call($$, $$.d3.select(this));
        });
    };
    c3_chart_internal_fn.revertLegend = function () {
        var $$ = this,
            d3 = $$.d3;
        $$.legend.selectAll('.' + CLASS.legendItem).classed(CLASS.legendItemFocused, false).transition().duration(100).style('opacity', function () {
            return $$.opacityForLegend(d3.select(this));
        });
    };
    c3_chart_internal_fn.showLegend = function (targetIds) {
        var $$ = this,
            config = $$.config;
        if (!config.legend_show) {
            config.legend_show = true;
            $$.legend.style('visibility', 'visible');
            if (!$$.legendHasRendered) {
                $$.updateLegendWithDefaults();
            }
        }
        $$.removeHiddenLegendIds(targetIds);
        $$.legend.selectAll($$.selectorLegends(targetIds)).style('visibility', 'visible').transition().style('opacity', function () {
            return $$.opacityForLegend($$.d3.select(this));
        });
    };
    c3_chart_internal_fn.hideLegend = function (targetIds) {
        var $$ = this,
            config = $$.config;
        if (config.legend_show && isEmpty(targetIds)) {
            config.legend_show = false;
            $$.legend.style('visibility', 'hidden');
        }
        $$.addHiddenLegendIds(targetIds);
        $$.legend.selectAll($$.selectorLegends(targetIds)).style('opacity', 0).style('visibility', 'hidden');
    };
    c3_chart_internal_fn.clearLegendItemTextBoxCache = function () {
        this.legendItemTextBox = {};
    };
    c3_chart_internal_fn.updateLegend = function (targetIds, options, transitions) {
        var $$ = this,
            config = $$.config;
        var xForLegend, xForLegendText, xForLegendRect, yForLegend, yForLegendText, yForLegendRect, x1ForLegendTile, x2ForLegendTile, yForLegendTile;
        var paddingTop = 4,
            paddingRight = 10,
            maxWidth = 0,
            maxHeight = 0,
            posMin = 10,
            tileWidth = config.legend_item_tile_width + 5;
        var l,
            totalLength = 0,
            offsets = {},
            widths = {},
            heights = {},
            margins = [0],
            steps = {},
            step = 0;
        var withTransition, withTransitionForTransform;
        var texts, rects, tiles, background;

        // Skip elements when their name is set to null
        targetIds = targetIds.filter(function (id) {
            return !isDefined(config.data_names[id]) || config.data_names[id] !== null;
        });

        options = options || {};
        withTransition = getOption(options, "withTransition", true);
        withTransitionForTransform = getOption(options, "withTransitionForTransform", true);

        function getTextBox(textElement, id) {
            if (!$$.legendItemTextBox[id]) {
                $$.legendItemTextBox[id] = $$.getTextRect(textElement.textContent, CLASS.legendItem, textElement);
            }
            return $$.legendItemTextBox[id];
        }

        function updatePositions(textElement, id, index) {
            var reset = index === 0,
                isLast = index === targetIds.length - 1,
                box = getTextBox(textElement, id),
                itemWidth = box.width + tileWidth + (isLast && !($$.isLegendRight || $$.isLegendInset) ? 0 : paddingRight) + config.legend_padding,
                itemHeight = box.height + paddingTop,
                itemLength = $$.isLegendRight || $$.isLegendInset ? itemHeight : itemWidth,
                areaLength = $$.isLegendRight || $$.isLegendInset ? $$.getLegendHeight() : $$.getLegendWidth(),
                margin,
                maxLength;

            // MEMO: care about condifion of step, totalLength
            function updateValues(id, withoutStep) {
                if (!withoutStep) {
                    margin = (areaLength - totalLength - itemLength) / 2;
                    if (margin < posMin) {
                        margin = (areaLength - itemLength) / 2;
                        totalLength = 0;
                        step++;
                    }
                }
                steps[id] = step;
                margins[step] = $$.isLegendInset ? 10 : margin;
                offsets[id] = totalLength;
                totalLength += itemLength;
            }

            if (reset) {
                totalLength = 0;
                step = 0;
                maxWidth = 0;
                maxHeight = 0;
            }

            if (config.legend_show && !$$.isLegendToShow(id)) {
                widths[id] = heights[id] = steps[id] = offsets[id] = 0;
                return;
            }

            widths[id] = itemWidth;
            heights[id] = itemHeight;

            if (!maxWidth || itemWidth >= maxWidth) {
                maxWidth = itemWidth;
            }
            if (!maxHeight || itemHeight >= maxHeight) {
                maxHeight = itemHeight;
            }
            maxLength = $$.isLegendRight || $$.isLegendInset ? maxHeight : maxWidth;

            if (config.legend_equally) {
                Object.keys(widths).forEach(function (id) {
                    widths[id] = maxWidth;
                });
                Object.keys(heights).forEach(function (id) {
                    heights[id] = maxHeight;
                });
                margin = (areaLength - maxLength * targetIds.length) / 2;
                if (margin < posMin) {
                    totalLength = 0;
                    step = 0;
                    targetIds.forEach(function (id) {
                        updateValues(id);
                    });
                } else {
                    updateValues(id, true);
                }
            } else {
                updateValues(id);
            }
        }

        if ($$.isLegendInset) {
            step = config.legend_inset_step ? config.legend_inset_step : targetIds.length;
            $$.updateLegendStep(step);
        }

        if ($$.isLegendRight) {
            xForLegend = function xForLegend(id) {
                return maxWidth * steps[id];
            };
            yForLegend = function yForLegend(id) {
                return margins[steps[id]] + offsets[id];
            };
        } else if ($$.isLegendInset) {
            xForLegend = function xForLegend(id) {
                return maxWidth * steps[id] + 10;
            };
            yForLegend = function yForLegend(id) {
                return margins[steps[id]] + offsets[id];
            };
        } else {
            xForLegend = function xForLegend(id) {
                return margins[steps[id]] + offsets[id];
            };
            yForLegend = function yForLegend(id) {
                return maxHeight * steps[id];
            };
        }
        xForLegendText = function xForLegendText(id, i) {
            return xForLegend(id, i) + 4 + config.legend_item_tile_width;
        };
        yForLegendText = function yForLegendText(id, i) {
            return yForLegend(id, i) + 9;
        };
        xForLegendRect = function xForLegendRect(id, i) {
            return xForLegend(id, i);
        };
        yForLegendRect = function yForLegendRect(id, i) {
            return yForLegend(id, i) - 5;
        };
        x1ForLegendTile = function x1ForLegendTile(id, i) {
            return xForLegend(id, i) - 2;
        };
        x2ForLegendTile = function x2ForLegendTile(id, i) {
            return xForLegend(id, i) - 2 + config.legend_item_tile_width;
        };
        yForLegendTile = function yForLegendTile(id, i) {
            return yForLegend(id, i) + 4;
        };

        // Define g for legend area
        l = $$.legend.selectAll('.' + CLASS.legendItem).data(targetIds).enter().append('g').attr('class', function (id) {
            return $$.generateClass(CLASS.legendItem, id);
        }).style('visibility', function (id) {
            return $$.isLegendToShow(id) ? 'visible' : 'hidden';
        }).style('cursor', 'pointer').on('click', function (id) {
            if (config.legend_item_onclick) {
                config.legend_item_onclick.call($$, id);
            } else {
                if ($$.d3.event.altKey) {
                    $$.api.hide();
                    $$.api.show(id);
                } else {
                    $$.api.toggle(id);
                    $$.isTargetToShow(id) ? $$.api.focus(id) : $$.api.revert();
                }
            }
        }).on('mouseover', function (id) {
            if (config.legend_item_onmouseover) {
                config.legend_item_onmouseover.call($$, id);
            } else {
                $$.d3.select(this).classed(CLASS.legendItemFocused, true);
                if (!$$.transiting && $$.isTargetToShow(id)) {
                    $$.api.focus(id);
                }
            }
        }).on('mouseout', function (id) {
            if (config.legend_item_onmouseout) {
                config.legend_item_onmouseout.call($$, id);
            } else {
                $$.d3.select(this).classed(CLASS.legendItemFocused, false);
                $$.api.revert();
            }
        });
        l.append('text').text(function (id) {
            return isDefined(config.data_names[id]) ? config.data_names[id] : id;
        }).each(function (id, i) {
            updatePositions(this, id, i);
        }).style("pointer-events", "none").attr('x', $$.isLegendRight || $$.isLegendInset ? xForLegendText : -200).attr('y', $$.isLegendRight || $$.isLegendInset ? -200 : yForLegendText);
        l.append('rect').attr("class", CLASS.legendItemEvent).style('fill-opacity', 0).attr('x', $$.isLegendRight || $$.isLegendInset ? xForLegendRect : -200).attr('y', $$.isLegendRight || $$.isLegendInset ? -200 : yForLegendRect);
        l.append('line').attr('class', CLASS.legendItemTile).style('stroke', $$.color).style("pointer-events", "none").attr('x1', $$.isLegendRight || $$.isLegendInset ? x1ForLegendTile : -200).attr('y1', $$.isLegendRight || $$.isLegendInset ? -200 : yForLegendTile).attr('x2', $$.isLegendRight || $$.isLegendInset ? x2ForLegendTile : -200).attr('y2', $$.isLegendRight || $$.isLegendInset ? -200 : yForLegendTile).attr('stroke-width', config.legend_item_tile_height);

        // Set background for inset legend
        background = $$.legend.select('.' + CLASS.legendBackground + ' rect');
        if ($$.isLegendInset && maxWidth > 0 && background.size() === 0) {
            background = $$.legend.insert('g', '.' + CLASS.legendItem).attr("class", CLASS.legendBackground).append('rect');
        }

        texts = $$.legend.selectAll('text').data(targetIds).text(function (id) {
            return isDefined(config.data_names[id]) ? config.data_names[id] : id;
        }) // MEMO: needed for update
        .each(function (id, i) {
            updatePositions(this, id, i);
        });
        (withTransition ? texts.transition() : texts).attr('x', xForLegendText).attr('y', yForLegendText);

        rects = $$.legend.selectAll('rect.' + CLASS.legendItemEvent).data(targetIds);
        (withTransition ? rects.transition() : rects).attr('width', function (id) {
            return widths[id];
        }).attr('height', function (id) {
            return heights[id];
        }).attr('x', xForLegendRect).attr('y', yForLegendRect);

        tiles = $$.legend.selectAll('line.' + CLASS.legendItemTile).data(targetIds);
        (withTransition ? tiles.transition() : tiles).style('stroke', $$.levelColor ? function (id) {
            return $$.levelColor($$.cache[id].values[0].value);
        } : $$.color).attr('x1', x1ForLegendTile).attr('y1', yForLegendTile).attr('x2', x2ForLegendTile).attr('y2', yForLegendTile);

        if (background) {
            (withTransition ? background.transition() : background).attr('height', $$.getLegendHeight() - 12).attr('width', maxWidth * (step + 1) + 10);
        }

        // toggle legend state
        $$.legend.selectAll('.' + CLASS.legendItem).classed(CLASS.legendItemHidden, function (id) {
            return !$$.isTargetToShow(id);
        });

        // Update all to reflect change of legend
        $$.updateLegendItemWidth(maxWidth);
        $$.updateLegendItemHeight(maxHeight);
        $$.updateLegendStep(step);
        // Update size and scale
        $$.updateSizes();
        $$.updateScales();
        $$.updateSvgSize();
        // Update g positions
        $$.transformAll(withTransitionForTransform, transitions);
        $$.legendHasRendered = true;
    };

    c3_chart_internal_fn.initRegion = function () {
        var $$ = this;
        $$.region = $$.main.append('g').attr("clip-path", $$.clipPath).attr("class", CLASS.regions);
    };
    c3_chart_internal_fn.updateRegion = function (duration) {
        var $$ = this,
            config = $$.config;

        // hide if arc type
        $$.region.style('visibility', $$.hasArcType() ? 'hidden' : 'visible');

        $$.mainRegion = $$.main.select('.' + CLASS.regions).selectAll('.' + CLASS.region).data(config.regions);
        $$.mainRegion.enter().append('g').append('rect').style("fill-opacity", 0);
        $$.mainRegion.attr('class', $$.classRegion.bind($$));
        $$.mainRegion.exit().transition().duration(duration).style("opacity", 0).remove();
    };
    c3_chart_internal_fn.redrawRegion = function (withTransition) {
        var $$ = this,
            regions = $$.mainRegion.selectAll('rect').each(function () {
            // data is binded to g and it's not transferred to rect (child node) automatically,
            // then data of each rect has to be updated manually.
            // TODO: there should be more efficient way to solve this?
            var parentData = $$.d3.select(this.parentNode).datum();
            $$.d3.select(this).datum(parentData);
        }),
            x = $$.regionX.bind($$),
            y = $$.regionY.bind($$),
            w = $$.regionWidth.bind($$),
            h = $$.regionHeight.bind($$);
        return [(withTransition ? regions.transition() : regions).attr("x", x).attr("y", y).attr("width", w).attr("height", h).style("fill-opacity", function (d) {
            return isValue(d.opacity) ? d.opacity : 0.1;
        })];
    };
    c3_chart_internal_fn.regionX = function (d) {
        var $$ = this,
            config = $$.config,
            xPos,
            yScale = d.axis === 'y' ? $$.y : $$.y2;
        if (d.axis === 'y' || d.axis === 'y2') {
            xPos = config.axis_rotated ? 'start' in d ? yScale(d.start) : 0 : 0;
        } else {
            xPos = config.axis_rotated ? 0 : 'start' in d ? $$.x($$.isTimeSeries() ? $$.parseDate(d.start) : d.start) : 0;
        }
        return xPos;
    };
    c3_chart_internal_fn.regionY = function (d) {
        var $$ = this,
            config = $$.config,
            yPos,
            yScale = d.axis === 'y' ? $$.y : $$.y2;
        if (d.axis === 'y' || d.axis === 'y2') {
            yPos = config.axis_rotated ? 0 : 'end' in d ? yScale(d.end) : 0;
        } else {
            yPos = config.axis_rotated ? 'start' in d ? $$.x($$.isTimeSeries() ? $$.parseDate(d.start) : d.start) : 0 : 0;
        }
        return yPos;
    };
    c3_chart_internal_fn.regionWidth = function (d) {
        var $$ = this,
            config = $$.config,
            start = $$.regionX(d),
            end,
            yScale = d.axis === 'y' ? $$.y : $$.y2;
        if (d.axis === 'y' || d.axis === 'y2') {
            end = config.axis_rotated ? 'end' in d ? yScale(d.end) : $$.width : $$.width;
        } else {
            end = config.axis_rotated ? $$.width : 'end' in d ? $$.x($$.isTimeSeries() ? $$.parseDate(d.end) : d.end) : $$.width;
        }
        return end < start ? 0 : end - start;
    };
    c3_chart_internal_fn.regionHeight = function (d) {
        var $$ = this,
            config = $$.config,
            start = this.regionY(d),
            end,
            yScale = d.axis === 'y' ? $$.y : $$.y2;
        if (d.axis === 'y' || d.axis === 'y2') {
            end = config.axis_rotated ? $$.height : 'start' in d ? yScale(d.start) : $$.height;
        } else {
            end = config.axis_rotated ? 'end' in d ? $$.x($$.isTimeSeries() ? $$.parseDate(d.end) : d.end) : $$.height : $$.height;
        }
        return end < start ? 0 : end - start;
    };
    c3_chart_internal_fn.isRegionOnX = function (d) {
        return !d.axis || d.axis === 'x';
    };

    c3_chart_internal_fn.getScale = function (min, max, forTimeseries) {
        return (forTimeseries ? this.d3.time.scale() : this.d3.scale.linear()).range([min, max]);
    };
    c3_chart_internal_fn.getX = function (min, max, domain, offset) {
        var $$ = this,
            scale = $$.getScale(min, max, $$.isTimeSeries()),
            _scale = domain ? scale.domain(domain) : scale,
            key;
        // Define customized scale if categorized axis
        if ($$.isCategorized()) {
            offset = offset || function () {
                return 0;
            };
            scale = function scale(d, raw) {
                var v = _scale(d) + offset(d);
                return raw ? v : Math.ceil(v);
            };
        } else {
            scale = function scale(d, raw) {
                var v = _scale(d);
                return raw ? v : Math.ceil(v);
            };
        }
        // define functions
        for (key in _scale) {
            scale[key] = _scale[key];
        }
        scale.orgDomain = function () {
            return _scale.domain();
        };
        // define custom domain() for categorized axis
        if ($$.isCategorized()) {
            scale.domain = function (domain) {
                if (!arguments.length) {
                    domain = this.orgDomain();
                    return [domain[0], domain[1] + 1];
                }
                _scale.domain(domain);
                return scale;
            };
        }
        return scale;
    };
    c3_chart_internal_fn.getY = function (min, max, domain) {
        var scale = this.getScale(min, max, this.isTimeSeriesY());
        if (domain) {
            scale.domain(domain);
        }
        return scale;
    };
    c3_chart_internal_fn.getYScale = function (id) {
        return this.axis.getId(id) === 'y2' ? this.y2 : this.y;
    };
    c3_chart_internal_fn.getSubYScale = function (id) {
        return this.axis.getId(id) === 'y2' ? this.subY2 : this.subY;
    };
    c3_chart_internal_fn.updateScales = function () {
        var $$ = this,
            config = $$.config,
            forInit = !$$.x;
        // update edges
        $$.xMin = config.axis_rotated ? 1 : 0;
        $$.xMax = config.axis_rotated ? $$.height : $$.width;
        $$.yMin = config.axis_rotated ? 0 : $$.height;
        $$.yMax = config.axis_rotated ? $$.width : 1;
        $$.subXMin = $$.xMin;
        $$.subXMax = $$.xMax;
        $$.subYMin = config.axis_rotated ? 0 : $$.height2;
        $$.subYMax = config.axis_rotated ? $$.width2 : 1;
        // update scales
        $$.x = $$.getX($$.xMin, $$.xMax, forInit ? undefined : $$.x.orgDomain(), function () {
            return $$.xAxis.tickOffset();
        });
        $$.y = $$.getY($$.yMin, $$.yMax, forInit ? config.axis_y_default : $$.y.domain());
        $$.y2 = $$.getY($$.yMin, $$.yMax, forInit ? config.axis_y2_default : $$.y2.domain());
        $$.subX = $$.getX($$.xMin, $$.xMax, $$.orgXDomain, function (d) {
            return d % 1 ? 0 : $$.subXAxis.tickOffset();
        });
        $$.subY = $$.getY($$.subYMin, $$.subYMax, forInit ? config.axis_y_default : $$.subY.domain());
        $$.subY2 = $$.getY($$.subYMin, $$.subYMax, forInit ? config.axis_y2_default : $$.subY2.domain());
        // update axes
        $$.xAxisTickFormat = $$.axis.getXAxisTickFormat();
        $$.xAxisTickValues = $$.axis.getXAxisTickValues();
        $$.yAxisTickValues = $$.axis.getYAxisTickValues();
        $$.y2AxisTickValues = $$.axis.getY2AxisTickValues();

        $$.xAxis = $$.axis.getXAxis($$.x, $$.xOrient, $$.xAxisTickFormat, $$.xAxisTickValues, config.axis_x_tick_outer);
        $$.subXAxis = $$.axis.getXAxis($$.subX, $$.subXOrient, $$.xAxisTickFormat, $$.xAxisTickValues, config.axis_x_tick_outer);
        $$.yAxis = $$.axis.getYAxis($$.y, $$.yOrient, config.axis_y_tick_format, $$.yAxisTickValues, config.axis_y_tick_outer);
        $$.y2Axis = $$.axis.getYAxis($$.y2, $$.y2Orient, config.axis_y2_tick_format, $$.y2AxisTickValues, config.axis_y2_tick_outer);

        // Set initialized scales to brush and zoom
        if (!forInit) {
            if ($$.brush) {
                $$.brush.scale($$.subX);
            }
            if (config.zoom_enabled) {
                $$.zoom.scale($$.x);
            }
        }
        // update for arc
        if ($$.updateArc) {
            $$.updateArc();
        }
    };

    c3_chart_internal_fn.selectPoint = function (target, d, i) {
        var $$ = this,
            config = $$.config,
            cx = (config.axis_rotated ? $$.circleY : $$.circleX).bind($$),
            cy = (config.axis_rotated ? $$.circleX : $$.circleY).bind($$),
            r = $$.pointSelectR.bind($$);
        config.data_onselected.call($$.api, d, target.node());
        // add selected-circle on low layer g
        $$.main.select('.' + CLASS.selectedCircles + $$.getTargetSelectorSuffix(d.id)).selectAll('.' + CLASS.selectedCircle + '-' + i).data([d]).enter().append('circle').attr("class", function () {
            return $$.generateClass(CLASS.selectedCircle, i);
        }).attr("cx", cx).attr("cy", cy).attr("stroke", function () {
            return $$.color(d);
        }).attr("r", function (d) {
            return $$.pointSelectR(d) * 1.4;
        }).transition().duration(100).attr("r", r);
    };
    c3_chart_internal_fn.unselectPoint = function (target, d, i) {
        var $$ = this;
        $$.config.data_onunselected.call($$.api, d, target.node());
        // remove selected-circle from low layer g
        $$.main.select('.' + CLASS.selectedCircles + $$.getTargetSelectorSuffix(d.id)).selectAll('.' + CLASS.selectedCircle + '-' + i).transition().duration(100).attr('r', 0).remove();
    };
    c3_chart_internal_fn.togglePoint = function (selected, target, d, i) {
        selected ? this.selectPoint(target, d, i) : this.unselectPoint(target, d, i);
    };
    c3_chart_internal_fn.selectPath = function (target, d) {
        var $$ = this;
        $$.config.data_onselected.call($$, d, target.node());
        if ($$.config.interaction_brighten) {
            target.transition().duration(100).style("fill", function () {
                return $$.d3.rgb($$.color(d)).brighter(0.75);
            });
        }
    };
    c3_chart_internal_fn.unselectPath = function (target, d) {
        var $$ = this;
        $$.config.data_onunselected.call($$, d, target.node());
        if ($$.config.interaction_brighten) {
            target.transition().duration(100).style("fill", function () {
                return $$.color(d);
            });
        }
    };
    c3_chart_internal_fn.togglePath = function (selected, target, d, i) {
        selected ? this.selectPath(target, d, i) : this.unselectPath(target, d, i);
    };
    c3_chart_internal_fn.getToggle = function (that, d) {
        var $$ = this,
            toggle;
        if (that.nodeName === 'circle') {
            if ($$.isStepType(d)) {
                // circle is hidden in step chart, so treat as within the click area
                toggle = function toggle() {}; // TODO: how to select step chart?
            } else {
                toggle = $$.togglePoint;
            }
        } else if (that.nodeName === 'path') {
            toggle = $$.togglePath;
        }
        return toggle;
    };
    c3_chart_internal_fn.toggleShape = function (that, d, i) {
        var $$ = this,
            d3 = $$.d3,
            config = $$.config,
            shape = d3.select(that),
            isSelected = shape.classed(CLASS.SELECTED),
            toggle = $$.getToggle(that, d).bind($$);

        if (config.data_selection_enabled && config.data_selection_isselectable(d)) {
            if (!config.data_selection_multiple) {
                $$.main.selectAll('.' + CLASS.shapes + (config.data_selection_grouped ? $$.getTargetSelectorSuffix(d.id) : "")).selectAll('.' + CLASS.shape).each(function (d, i) {
                    var shape = d3.select(this);
                    if (shape.classed(CLASS.SELECTED)) {
                        toggle(false, shape.classed(CLASS.SELECTED, false), d, i);
                    }
                });
            }
            shape.classed(CLASS.SELECTED, !isSelected);
            toggle(!isSelected, shape, d, i);
        }
    };

    c3_chart_internal_fn.initBar = function () {
        var $$ = this;
        $$.main.select('.' + CLASS.chart).append("g").attr("class", CLASS.chartBars);
    };
    c3_chart_internal_fn.updateTargetsForBar = function (targets) {
        var $$ = this,
            config = $$.config,
            mainBarUpdate,
            mainBarEnter,
            classChartBar = $$.classChartBar.bind($$),
            classBars = $$.classBars.bind($$),
            classFocus = $$.classFocus.bind($$);
        mainBarUpdate = $$.main.select('.' + CLASS.chartBars).selectAll('.' + CLASS.chartBar).data(targets).attr('class', function (d) {
            return classChartBar(d) + classFocus(d);
        });
        mainBarEnter = mainBarUpdate.enter().append('g').attr('class', classChartBar).style("pointer-events", "none");
        // Bars for each data
        mainBarEnter.append('g').attr("class", classBars).style("cursor", function (d) {
            return config.data_selection_isselectable(d) ? "pointer" : null;
        });
    };
    c3_chart_internal_fn.updateBar = function (durationForExit) {
        var $$ = this,
            barData = $$.barData.bind($$),
            classBar = $$.classBar.bind($$),
            initialOpacity = $$.initialOpacity.bind($$),
            color = function color(d) {
            return $$.color(d.id);
        };
        $$.mainBar = $$.main.selectAll('.' + CLASS.bars).selectAll('.' + CLASS.bar).data(barData);
        $$.mainBar.enter().append('path').attr("class", classBar).style("stroke", color).style("fill", color);
        $$.mainBar.style("opacity", initialOpacity);
        $$.mainBar.exit().transition().duration(durationForExit).remove();
    };
    c3_chart_internal_fn.redrawBar = function (drawBar, withTransition) {
        return [(withTransition ? this.mainBar.transition(Math.random().toString()) : this.mainBar).attr('d', drawBar).style("stroke", this.color).style("fill", this.color).style("opacity", 1)];
    };
    c3_chart_internal_fn.getBarW = function (axis, barTargetsNum) {
        var $$ = this,
            config = $$.config,
            w = typeof config.bar_width === 'number' ? config.bar_width : barTargetsNum ? axis.tickInterval() * config.bar_width_ratio / barTargetsNum : 0;
        return config.bar_width_max && w > config.bar_width_max ? config.bar_width_max : w;
    };
    c3_chart_internal_fn.getBars = function (i, id) {
        var $$ = this;
        return (id ? $$.main.selectAll('.' + CLASS.bars + $$.getTargetSelectorSuffix(id)) : $$.main).selectAll('.' + CLASS.bar + (isValue(i) ? '-' + i : ''));
    };
    c3_chart_internal_fn.expandBars = function (i, id, reset) {
        var $$ = this;
        if (reset) {
            $$.unexpandBars();
        }
        $$.getBars(i, id).classed(CLASS.EXPANDED, true);
    };
    c3_chart_internal_fn.unexpandBars = function (i) {
        var $$ = this;
        $$.getBars(i).classed(CLASS.EXPANDED, false);
    };
    c3_chart_internal_fn.generateDrawBar = function (barIndices, isSub) {
        var $$ = this,
            config = $$.config,
            getPoints = $$.generateGetBarPoints(barIndices, isSub);
        return function (d, i) {
            // 4 points that make a bar
            var points = getPoints(d, i);

            // switch points if axis is rotated, not applicable for sub chart
            var indexX = config.axis_rotated ? 1 : 0;
            var indexY = config.axis_rotated ? 0 : 1;

            var path = 'M ' + points[0][indexX] + ',' + points[0][indexY] + ' ' + 'L' + points[1][indexX] + ',' + points[1][indexY] + ' ' + 'L' + points[2][indexX] + ',' + points[2][indexY] + ' ' + 'L' + points[3][indexX] + ',' + points[3][indexY] + ' ' + 'z';

            return path;
        };
    };
    c3_chart_internal_fn.generateGetBarPoints = function (barIndices, isSub) {
        var $$ = this,
            axis = isSub ? $$.subXAxis : $$.xAxis,
            barTargetsNum = barIndices.__max__ + 1,
            barW = $$.getBarW(axis, barTargetsNum),
            barX = $$.getShapeX(barW, barTargetsNum, barIndices, !!isSub),
            barY = $$.getShapeY(!!isSub),
            barOffset = $$.getShapeOffset($$.isBarType, barIndices, !!isSub),
            barSpaceOffset = barW * ($$.config.bar_space / 2),
            yScale = isSub ? $$.getSubYScale : $$.getYScale;
        return function (d, i) {
            var y0 = yScale.call($$, d.id)(0),
                offset = barOffset(d, i) || y0,
                // offset is for stacked bar chart
            posX = barX(d),
                posY = barY(d);
            // fix posY not to overflow opposite quadrant
            if ($$.config.axis_rotated) {
                if (0 < d.value && posY < y0 || d.value < 0 && y0 < posY) {
                    posY = y0;
                }
            }
            // 4 points that make a bar
            return [[posX + barSpaceOffset, offset], [posX + barSpaceOffset, posY - (y0 - offset)], [posX + barW - barSpaceOffset, posY - (y0 - offset)], [posX + barW - barSpaceOffset, offset]];
        };
    };
    c3_chart_internal_fn.isWithinBar = function (that) {
        var mouse = this.d3.mouse(that),
            box = that.getBoundingClientRect(),
            seg0 = that.pathSegList.getItem(0),
            seg1 = that.pathSegList.getItem(1),
            x = Math.min(seg0.x, seg1.x),
            y = Math.min(seg0.y, seg1.y),
            w = box.width,
            h = box.height,
            offset = 2,
            sx = x - offset,
            ex = x + w + offset,
            sy = y + h + offset,
            ey = y - offset;
        return sx < mouse[0] && mouse[0] < ex && ey < mouse[1] && mouse[1] < sy;
    };

    c3_chart_internal_fn.getShapeIndices = function (typeFilter) {
        var $$ = this,
            config = $$.config,
            indices = {},
            i = 0,
            j,
            k;
        $$.filterTargetsToShow($$.data.targets.filter(typeFilter, $$)).forEach(function (d) {
            for (j = 0; j < config.data_groups.length; j++) {
                if (config.data_groups[j].indexOf(d.id) < 0) {
                    continue;
                }
                for (k = 0; k < config.data_groups[j].length; k++) {
                    if (config.data_groups[j][k] in indices) {
                        indices[d.id] = indices[config.data_groups[j][k]];
                        break;
                    }
                }
            }
            if (isUndefined(indices[d.id])) {
                indices[d.id] = i++;
            }
        });
        indices.__max__ = i - 1;
        return indices;
    };
    c3_chart_internal_fn.getShapeX = function (offset, targetsNum, indices, isSub) {
        var $$ = this,
            scale = isSub ? $$.subX : $$.x;
        return function (d) {
            var index = d.id in indices ? indices[d.id] : 0;
            return d.x || d.x === 0 ? scale(d.x) - offset * (targetsNum / 2 - index) : 0;
        };
    };
    c3_chart_internal_fn.getShapeY = function (isSub) {
        var $$ = this;
        return function (d) {
            var scale = isSub ? $$.getSubYScale(d.id) : $$.getYScale(d.id);
            return scale(d.value);
        };
    };
    c3_chart_internal_fn.getShapeOffset = function (typeFilter, indices, isSub) {
        var $$ = this,
            targets = $$.orderTargets($$.filterTargetsToShow($$.data.targets.filter(typeFilter, $$))),
            targetIds = targets.map(function (t) {
            return t.id;
        });
        return function (d, i) {
            var scale = isSub ? $$.getSubYScale(d.id) : $$.getYScale(d.id),
                y0 = scale(0),
                offset = y0;
            targets.forEach(function (t) {
                var values = $$.isStepType(d) ? $$.convertValuesToStep(t.values) : t.values;
                if (t.id === d.id || indices[t.id] !== indices[d.id]) {
                    return;
                }
                if (targetIds.indexOf(t.id) < targetIds.indexOf(d.id)) {
                    // check if the x values line up
                    if (typeof values[i] === 'undefined' || +values[i].x !== +d.x) {
                        // "+" for timeseries
                        // if not, try to find the value that does line up
                        i = -1;
                        values.forEach(function (v, j) {
                            if (v.x === d.x) {
                                i = j;
                            }
                        });
                    }
                    if (i in values && values[i].value * d.value >= 0) {
                        offset += scale(values[i].value) - y0;
                    }
                }
            });
            return offset;
        };
    };
    c3_chart_internal_fn.isWithinShape = function (that, d) {
        var $$ = this,
            shape = $$.d3.select(that),
            isWithin;
        if (!$$.isTargetToShow(d.id)) {
            isWithin = false;
        } else if (that.nodeName === 'circle') {
            isWithin = $$.isStepType(d) ? $$.isWithinStep(that, $$.getYScale(d.id)(d.value)) : $$.isWithinCircle(that, $$.pointSelectR(d) * 1.5);
        } else if (that.nodeName === 'path') {
            isWithin = shape.classed(CLASS.bar) ? $$.isWithinBar(that) : true;
        }
        return isWithin;
    };

    c3_chart_internal_fn.getInterpolate = function (d) {
        var $$ = this,
            interpolation = $$.isInterpolationType($$.config.spline_interpolation_type) ? $$.config.spline_interpolation_type : 'cardinal';
        return $$.isSplineType(d) ? interpolation : $$.isStepType(d) ? $$.config.line_step_type : "linear";
    };

    c3_chart_internal_fn.initLine = function () {
        var $$ = this;
        $$.main.select('.' + CLASS.chart).append("g").attr("class", CLASS.chartLines);
    };
    c3_chart_internal_fn.updateTargetsForLine = function (targets) {
        var $$ = this,
            config = $$.config,
            mainLineUpdate,
            mainLineEnter,
            classChartLine = $$.classChartLine.bind($$),
            classLines = $$.classLines.bind($$),
            classAreas = $$.classAreas.bind($$),
            classCircles = $$.classCircles.bind($$),
            classFocus = $$.classFocus.bind($$);
        mainLineUpdate = $$.main.select('.' + CLASS.chartLines).selectAll('.' + CLASS.chartLine).data(targets).attr('class', function (d) {
            return classChartLine(d) + classFocus(d);
        });
        mainLineEnter = mainLineUpdate.enter().append('g').attr('class', classChartLine).style('opacity', 0).style("pointer-events", "none");
        // Lines for each data
        mainLineEnter.append('g').attr("class", classLines);
        // Areas
        mainLineEnter.append('g').attr('class', classAreas);
        // Circles for each data point on lines
        mainLineEnter.append('g').attr("class", function (d) {
            return $$.generateClass(CLASS.selectedCircles, d.id);
        });
        mainLineEnter.append('g').attr("class", classCircles).style("cursor", function (d) {
            return config.data_selection_isselectable(d) ? "pointer" : null;
        });
        // Update date for selected circles
        targets.forEach(function (t) {
            $$.main.selectAll('.' + CLASS.selectedCircles + $$.getTargetSelectorSuffix(t.id)).selectAll('.' + CLASS.selectedCircle).each(function (d) {
                d.value = t.values[d.index].value;
            });
        });
        // MEMO: can not keep same color...
        //mainLineUpdate.exit().remove();
    };
    c3_chart_internal_fn.updateLine = function (durationForExit) {
        var $$ = this;
        $$.mainLine = $$.main.selectAll('.' + CLASS.lines).selectAll('.' + CLASS.line).data($$.lineData.bind($$));
        $$.mainLine.enter().append('path').attr('class', $$.classLine.bind($$)).style("stroke", $$.color);
        $$.mainLine.style("opacity", $$.initialOpacity.bind($$)).style('shape-rendering', function (d) {
            return $$.isStepType(d) ? 'crispEdges' : '';
        }).attr('transform', null);
        $$.mainLine.exit().transition().duration(durationForExit).style('opacity', 0).remove();
    };
    c3_chart_internal_fn.redrawLine = function (drawLine, withTransition) {
        return [(withTransition ? this.mainLine.transition(Math.random().toString()) : this.mainLine).attr("d", drawLine).style("stroke", this.color).style("opacity", 1)];
    };
    c3_chart_internal_fn.generateDrawLine = function (lineIndices, isSub) {
        var $$ = this,
            config = $$.config,
            line = $$.d3.svg.line(),
            getPoints = $$.generateGetLinePoints(lineIndices, isSub),
            yScaleGetter = isSub ? $$.getSubYScale : $$.getYScale,
            xValue = function xValue(d) {
            return (isSub ? $$.subxx : $$.xx).call($$, d);
        },
            yValue = function yValue(d, i) {
            return config.data_groups.length > 0 ? getPoints(d, i)[0][1] : yScaleGetter.call($$, d.id)(d.value);
        };

        line = config.axis_rotated ? line.x(yValue).y(xValue) : line.x(xValue).y(yValue);
        if (!config.line_connectNull) {
            line = line.defined(function (d) {
                return d.value != null;
            });
        }
        return function (d) {
            var values = config.line_connectNull ? $$.filterRemoveNull(d.values) : d.values,
                x = isSub ? $$.x : $$.subX,
                y = yScaleGetter.call($$, d.id),
                x0 = 0,
                y0 = 0,
                path;
            if ($$.isLineType(d)) {
                if (config.data_regions[d.id]) {
                    path = $$.lineWithRegions(values, x, y, config.data_regions[d.id]);
                } else {
                    if ($$.isStepType(d)) {
                        values = $$.convertValuesToStep(values);
                    }
                    path = line.interpolate($$.getInterpolate(d))(values);
                }
            } else {
                if (values[0]) {
                    x0 = x(values[0].x);
                    y0 = y(values[0].value);
                }
                path = config.axis_rotated ? "M " + y0 + " " + x0 : "M " + x0 + " " + y0;
            }
            return path ? path : "M 0 0";
        };
    };
    c3_chart_internal_fn.generateGetLinePoints = function (lineIndices, isSub) {
        // partial duplication of generateGetBarPoints
        var $$ = this,
            config = $$.config,
            lineTargetsNum = lineIndices.__max__ + 1,
            x = $$.getShapeX(0, lineTargetsNum, lineIndices, !!isSub),
            y = $$.getShapeY(!!isSub),
            lineOffset = $$.getShapeOffset($$.isLineType, lineIndices, !!isSub),
            yScale = isSub ? $$.getSubYScale : $$.getYScale;
        return function (d, i) {
            var y0 = yScale.call($$, d.id)(0),
                offset = lineOffset(d, i) || y0,
                // offset is for stacked area chart
            posX = x(d),
                posY = y(d);
            // fix posY not to overflow opposite quadrant
            if (config.axis_rotated) {
                if (0 < d.value && posY < y0 || d.value < 0 && y0 < posY) {
                    posY = y0;
                }
            }
            // 1 point that marks the line position
            return [[posX, posY - (y0 - offset)], [posX, posY - (y0 - offset)], // needed for compatibility
            [posX, posY - (y0 - offset)], // needed for compatibility
            [posX, posY - (y0 - offset)] // needed for compatibility
            ];
        };
    };

    c3_chart_internal_fn.lineWithRegions = function (d, x, y, _regions) {
        var $$ = this,
            config = $$.config,
            prev = -1,
            i,
            j,
            s = "M",
            sWithRegion,
            xp,
            yp,
            dx,
            dy,
            dd,
            diff,
            diffx2,
            xOffset = $$.isCategorized() ? 0.5 : 0,
            xValue,
            yValue,
            regions = [];

        function isWithinRegions(x, regions) {
            var i;
            for (i = 0; i < regions.length; i++) {
                if (regions[i].start < x && x <= regions[i].end) {
                    return true;
                }
            }
            return false;
        }

        // Check start/end of regions
        if (isDefined(_regions)) {
            for (i = 0; i < _regions.length; i++) {
                regions[i] = {};
                if (isUndefined(_regions[i].start)) {
                    regions[i].start = d[0].x;
                } else {
                    regions[i].start = $$.isTimeSeries() ? $$.parseDate(_regions[i].start) : _regions[i].start;
                }
                if (isUndefined(_regions[i].end)) {
                    regions[i].end = d[d.length - 1].x;
                } else {
                    regions[i].end = $$.isTimeSeries() ? $$.parseDate(_regions[i].end) : _regions[i].end;
                }
            }
        }

        // Set scales
        xValue = config.axis_rotated ? function (d) {
            return y(d.value);
        } : function (d) {
            return x(d.x);
        };
        yValue = config.axis_rotated ? function (d) {
            return x(d.x);
        } : function (d) {
            return y(d.value);
        };

        // Define svg generator function for region
        function generateM(points) {
            return 'M' + points[0][0] + ' ' + points[0][1] + ' ' + points[1][0] + ' ' + points[1][1];
        }
        if ($$.isTimeSeries()) {
            sWithRegion = function sWithRegion(d0, d1, j, diff) {
                var x0 = d0.x.getTime(),
                    x_diff = d1.x - d0.x,
                    xv0 = new Date(x0 + x_diff * j),
                    xv1 = new Date(x0 + x_diff * (j + diff)),
                    points;
                if (config.axis_rotated) {
                    points = [[y(yp(j)), x(xv0)], [y(yp(j + diff)), x(xv1)]];
                } else {
                    points = [[x(xv0), y(yp(j))], [x(xv1), y(yp(j + diff))]];
                }
                return generateM(points);
            };
        } else {
            sWithRegion = function sWithRegion(d0, d1, j, diff) {
                var points;
                if (config.axis_rotated) {
                    points = [[y(yp(j), true), x(xp(j))], [y(yp(j + diff), true), x(xp(j + diff))]];
                } else {
                    points = [[x(xp(j), true), y(yp(j))], [x(xp(j + diff), true), y(yp(j + diff))]];
                }
                return generateM(points);
            };
        }

        // Generate
        for (i = 0; i < d.length; i++) {

            // Draw as normal
            if (isUndefined(regions) || !isWithinRegions(d[i].x, regions)) {
                s += " " + xValue(d[i]) + " " + yValue(d[i]);
            }
            // Draw with region // TODO: Fix for horizotal charts
            else {
                    xp = $$.getScale(d[i - 1].x + xOffset, d[i].x + xOffset, $$.isTimeSeries());
                    yp = $$.getScale(d[i - 1].value, d[i].value);

                    dx = x(d[i].x) - x(d[i - 1].x);
                    dy = y(d[i].value) - y(d[i - 1].value);
                    dd = Math.sqrt(Math.pow(dx, 2) + Math.pow(dy, 2));
                    diff = 2 / dd;
                    diffx2 = diff * 2;

                    for (j = diff; j <= 1; j += diffx2) {
                        s += sWithRegion(d[i - 1], d[i], j, diff);
                    }
                }
            prev = d[i].x;
        }

        return s;
    };

    c3_chart_internal_fn.updateArea = function (durationForExit) {
        var $$ = this,
            d3 = $$.d3;
        $$.mainArea = $$.main.selectAll('.' + CLASS.areas).selectAll('.' + CLASS.area).data($$.lineData.bind($$));
        $$.mainArea.enter().append('path').attr("class", $$.classArea.bind($$)).style("fill", $$.color).style("opacity", function () {
            $$.orgAreaOpacity = +d3.select(this).style('opacity');return 0;
        });
        $$.mainArea.style("opacity", $$.orgAreaOpacity);
        $$.mainArea.exit().transition().duration(durationForExit).style('opacity', 0).remove();
    };
    c3_chart_internal_fn.redrawArea = function (drawArea, withTransition) {
        return [(withTransition ? this.mainArea.transition(Math.random().toString()) : this.mainArea).attr("d", drawArea).style("fill", this.color).style("opacity", this.orgAreaOpacity)];
    };
    c3_chart_internal_fn.generateDrawArea = function (areaIndices, isSub) {
        var $$ = this,
            config = $$.config,
            area = $$.d3.svg.area(),
            getPoints = $$.generateGetAreaPoints(areaIndices, isSub),
            yScaleGetter = isSub ? $$.getSubYScale : $$.getYScale,
            xValue = function xValue(d) {
            return (isSub ? $$.subxx : $$.xx).call($$, d);
        },
            value0 = function value0(d, i) {
            return config.data_groups.length > 0 ? getPoints(d, i)[0][1] : yScaleGetter.call($$, d.id)($$.getAreaBaseValue(d.id));
        },
            value1 = function value1(d, i) {
            return config.data_groups.length > 0 ? getPoints(d, i)[1][1] : yScaleGetter.call($$, d.id)(d.value);
        };

        area = config.axis_rotated ? area.x0(value0).x1(value1).y(xValue) : area.x(xValue).y0(config.area_above ? 0 : value0).y1(value1);
        if (!config.line_connectNull) {
            area = area.defined(function (d) {
                return d.value !== null;
            });
        }

        return function (d) {
            var values = config.line_connectNull ? $$.filterRemoveNull(d.values) : d.values,
                x0 = 0,
                y0 = 0,
                path;
            if ($$.isAreaType(d)) {
                if ($$.isStepType(d)) {
                    values = $$.convertValuesToStep(values);
                }
                path = area.interpolate($$.getInterpolate(d))(values);
            } else {
                if (values[0]) {
                    x0 = $$.x(values[0].x);
                    y0 = $$.getYScale(d.id)(values[0].value);
                }
                path = config.axis_rotated ? "M " + y0 + " " + x0 : "M " + x0 + " " + y0;
            }
            return path ? path : "M 0 0";
        };
    };
    c3_chart_internal_fn.getAreaBaseValue = function () {
        return 0;
    };
    c3_chart_internal_fn.generateGetAreaPoints = function (areaIndices, isSub) {
        // partial duplication of generateGetBarPoints
        var $$ = this,
            config = $$.config,
            areaTargetsNum = areaIndices.__max__ + 1,
            x = $$.getShapeX(0, areaTargetsNum, areaIndices, !!isSub),
            y = $$.getShapeY(!!isSub),
            areaOffset = $$.getShapeOffset($$.isAreaType, areaIndices, !!isSub),
            yScale = isSub ? $$.getSubYScale : $$.getYScale;
        return function (d, i) {
            var y0 = yScale.call($$, d.id)(0),
                offset = areaOffset(d, i) || y0,
                // offset is for stacked area chart
            posX = x(d),
                posY = y(d);
            // fix posY not to overflow opposite quadrant
            if (config.axis_rotated) {
                if (0 < d.value && posY < y0 || d.value < 0 && y0 < posY) {
                    posY = y0;
                }
            }
            // 1 point that marks the area position
            return [[posX, offset], [posX, posY - (y0 - offset)], [posX, posY - (y0 - offset)], // needed for compatibility
            [posX, offset] // needed for compatibility
            ];
        };
    };

    c3_chart_internal_fn.updateCircle = function () {
        var $$ = this;
        $$.mainCircle = $$.main.selectAll('.' + CLASS.circles).selectAll('.' + CLASS.circle).data($$.lineOrScatterData.bind($$));
        $$.mainCircle.enter().append("circle").attr("class", $$.classCircle.bind($$)).attr("r", $$.pointR.bind($$)).style("fill", $$.color);
        $$.mainCircle.style("opacity", $$.initialOpacityForCircle.bind($$));
        $$.mainCircle.exit().remove();
    };
    c3_chart_internal_fn.redrawCircle = function (cx, cy, withTransition) {
        var selectedCircles = this.main.selectAll('.' + CLASS.selectedCircle);
        return [(withTransition ? this.mainCircle.transition(Math.random().toString()) : this.mainCircle).style('opacity', this.opacityForCircle.bind(this)).style("fill", this.color).attr("cx", cx).attr("cy", cy), (withTransition ? selectedCircles.transition(Math.random().toString()) : selectedCircles).attr("cx", cx).attr("cy", cy)];
    };
    c3_chart_internal_fn.circleX = function (d) {
        return d.x || d.x === 0 ? this.x(d.x) : null;
    };
    c3_chart_internal_fn.updateCircleY = function () {
        var $$ = this,
            lineIndices,
            getPoints;
        if ($$.config.data_groups.length > 0) {
            lineIndices = $$.getShapeIndices($$.isLineType), getPoints = $$.generateGetLinePoints(lineIndices);
            $$.circleY = function (d, i) {
                return getPoints(d, i)[0][1];
            };
        } else {
            $$.circleY = function (d) {
                return $$.getYScale(d.id)(d.value);
            };
        }
    };
    c3_chart_internal_fn.getCircles = function (i, id) {
        var $$ = this;
        return (id ? $$.main.selectAll('.' + CLASS.circles + $$.getTargetSelectorSuffix(id)) : $$.main).selectAll('.' + CLASS.circle + (isValue(i) ? '-' + i : ''));
    };
    c3_chart_internal_fn.expandCircles = function (i, id, reset) {
        var $$ = this,
            r = $$.pointExpandedR.bind($$);
        if (reset) {
            $$.unexpandCircles();
        }
        $$.getCircles(i, id).classed(CLASS.EXPANDED, true).attr('r', r);
    };
    c3_chart_internal_fn.unexpandCircles = function (i) {
        var $$ = this,
            r = $$.pointR.bind($$);
        $$.getCircles(i).filter(function () {
            return $$.d3.select(this).classed(CLASS.EXPANDED);
        }).classed(CLASS.EXPANDED, false).attr('r', r);
    };
    c3_chart_internal_fn.pointR = function (d) {
        var $$ = this,
            config = $$.config;
        return $$.isStepType(d) ? 0 : isFunction(config.point_r) ? config.point_r(d) : config.point_r;
    };
    c3_chart_internal_fn.pointExpandedR = function (d) {
        var $$ = this,
            config = $$.config;
        if (config.point_focus_expand_enabled) {
            return isFunction(config.point_focus_expand_r) ? config.point_focus_expand_r(d) : config.point_focus_expand_r ? config.point_focus_expand_r : $$.pointR(d) * 1.75;
        } else {
            return $$.pointR(d);
        }
    };
    c3_chart_internal_fn.pointSelectR = function (d) {
        var $$ = this,
            config = $$.config;
        return isFunction(config.point_select_r) ? config.point_select_r(d) : config.point_select_r ? config.point_select_r : $$.pointR(d) * 4;
    };
    c3_chart_internal_fn.isWithinCircle = function (that, r) {
        var d3 = this.d3,
            mouse = d3.mouse(that),
            d3_this = d3.select(that),
            cx = +d3_this.attr("cx"),
            cy = +d3_this.attr("cy");
        return Math.sqrt(Math.pow(cx - mouse[0], 2) + Math.pow(cy - mouse[1], 2)) < r;
    };
    c3_chart_internal_fn.isWithinStep = function (that, y) {
        return Math.abs(y - this.d3.mouse(that)[1]) < 30;
    };

    c3_chart_internal_fn.getCurrentWidth = function () {
        var $$ = this,
            config = $$.config;
        return config.size_width ? config.size_width : $$.getParentWidth();
    };
    c3_chart_internal_fn.getCurrentHeight = function () {
        var $$ = this,
            config = $$.config,
            h = config.size_height ? config.size_height : $$.getParentHeight();
        return h > 0 ? h : 320 / ($$.hasType('gauge') && !config.gauge_fullCircle ? 2 : 1);
    };
    c3_chart_internal_fn.getCurrentPaddingTop = function () {
        var $$ = this,
            config = $$.config,
            padding = isValue(config.padding_top) ? config.padding_top : 0;
        if ($$.title && $$.title.node()) {
            padding += $$.getTitlePadding();
        }
        return padding;
    };
    c3_chart_internal_fn.getCurrentPaddingBottom = function () {
        var config = this.config;
        return isValue(config.padding_bottom) ? config.padding_bottom : 0;
    };
    c3_chart_internal_fn.getCurrentPaddingLeft = function (withoutRecompute) {
        var $$ = this,
            config = $$.config;
        if (isValue(config.padding_left)) {
            return config.padding_left;
        } else if (config.axis_rotated) {
            return !config.axis_x_show || config.axis_x_inner ? 1 : Math.max(ceil10($$.getAxisWidthByAxisId('x', withoutRecompute)), 40);
        } else if (!config.axis_y_show || config.axis_y_inner) {
            // && !config.axis_rotated
            return $$.axis.getYAxisLabelPosition().isOuter ? 30 : 1;
        } else {
            return ceil10($$.getAxisWidthByAxisId('y', withoutRecompute));
        }
    };
    c3_chart_internal_fn.getCurrentPaddingRight = function () {
        var $$ = this,
            config = $$.config,
            defaultPadding = 10,
            legendWidthOnRight = $$.isLegendRight ? $$.getLegendWidth() + 20 : 0;
        if (isValue(config.padding_right)) {
            return config.padding_right + 1; // 1 is needed not to hide tick line
        } else if (config.axis_rotated) {
            return defaultPadding + legendWidthOnRight;
        } else if (!config.axis_y2_show || config.axis_y2_inner) {
            // && !config.axis_rotated
            return 2 + legendWidthOnRight + ($$.axis.getY2AxisLabelPosition().isOuter ? 20 : 0);
        } else {
            return ceil10($$.getAxisWidthByAxisId('y2')) + legendWidthOnRight;
        }
    };

    c3_chart_internal_fn.getParentRectValue = function (key) {
        var parent = this.selectChart.node(),
            v;
        while (parent && parent.tagName !== 'BODY') {
            try {
                v = parent.getBoundingClientRect()[key];
            } catch (e) {
                if (key === 'width') {
                    // In IE in certain cases getBoundingClientRect
                    // will cause an "unspecified error"
                    v = parent.offsetWidth;
                }
            }
            if (v) {
                break;
            }
            parent = parent.parentNode;
        }
        return v;
    };
    c3_chart_internal_fn.getParentWidth = function () {
        return this.getParentRectValue('width');
    };
    c3_chart_internal_fn.getParentHeight = function () {
        var h = this.selectChart.style('height');
        return h.indexOf('px') > 0 ? +h.replace('px', '') : 0;
    };

    c3_chart_internal_fn.getSvgLeft = function (withoutRecompute) {
        var $$ = this,
            config = $$.config,
            hasLeftAxisRect = config.axis_rotated || !config.axis_rotated && !config.axis_y_inner,
            leftAxisClass = config.axis_rotated ? CLASS.axisX : CLASS.axisY,
            leftAxis = $$.main.select('.' + leftAxisClass).node(),
            svgRect = leftAxis && hasLeftAxisRect ? leftAxis.getBoundingClientRect() : { right: 0 },
            chartRect = $$.selectChart.node().getBoundingClientRect(),
            hasArc = $$.hasArcType(),
            svgLeft = svgRect.right - chartRect.left - (hasArc ? 0 : $$.getCurrentPaddingLeft(withoutRecompute));
        return svgLeft > 0 ? svgLeft : 0;
    };

    c3_chart_internal_fn.getAxisWidthByAxisId = function (id, withoutRecompute) {
        var $$ = this,
            position = $$.axis.getLabelPositionById(id);
        return $$.axis.getMaxTickWidth(id, withoutRecompute) + (position.isInner ? 20 : 40);
    };
    c3_chart_internal_fn.getHorizontalAxisHeight = function (axisId) {
        var $$ = this,
            config = $$.config,
            h = 30;
        if (axisId === 'x' && !config.axis_x_show) {
            return 8;
        }
        if (axisId === 'x' && config.axis_x_height) {
            return config.axis_x_height;
        }
        if (axisId === 'y' && !config.axis_y_show) {
            return config.legend_show && !$$.isLegendRight && !$$.isLegendInset ? 10 : 1;
        }
        if (axisId === 'y2' && !config.axis_y2_show) {
            return $$.rotated_padding_top;
        }
        // Calculate x axis height when tick rotated
        if (axisId === 'x' && !config.axis_rotated && config.axis_x_tick_rotate) {
            h = 30 + $$.axis.getMaxTickWidth(axisId) * Math.cos(Math.PI * (90 - config.axis_x_tick_rotate) / 180);
        }
        // Calculate y axis height when tick rotated
        if (axisId === 'y' && config.axis_rotated && config.axis_y_tick_rotate) {
            h = 30 + $$.axis.getMaxTickWidth(axisId) * Math.cos(Math.PI * (90 - config.axis_y_tick_rotate) / 180);
        }
        return h + ($$.axis.getLabelPositionById(axisId).isInner ? 0 : 10) + (axisId === 'y2' ? -10 : 0);
    };

    c3_chart_internal_fn.getEventRectWidth = function () {
        return Math.max(0, this.xAxis.tickInterval());
    };

    c3_chart_internal_fn.initBrush = function () {
        var $$ = this,
            d3 = $$.d3;
        $$.brush = d3.svg.brush().on("brush", function () {
            $$.redrawForBrush();
        });
        $$.brush.update = function () {
            if ($$.context) {
                $$.context.select('.' + CLASS.brush).call(this);
            }
            return this;
        };
        $$.brush.scale = function (scale) {
            return $$.config.axis_rotated ? this.y(scale) : this.x(scale);
        };
    };
    c3_chart_internal_fn.initSubchart = function () {
        var $$ = this,
            config = $$.config,
            context = $$.context = $$.svg.append("g").attr("transform", $$.getTranslate('context')),
            visibility = config.subchart_show ? 'visible' : 'hidden';

        context.style('visibility', visibility);

        // Define g for chart area
        context.append('g').attr("clip-path", $$.clipPathForSubchart).attr('class', CLASS.chart);

        // Define g for bar chart area
        context.select('.' + CLASS.chart).append("g").attr("class", CLASS.chartBars);

        // Define g for line chart area
        context.select('.' + CLASS.chart).append("g").attr("class", CLASS.chartLines);

        // Add extent rect for Brush
        context.append("g").attr("clip-path", $$.clipPath).attr("class", CLASS.brush).call($$.brush);

        // ATTENTION: This must be called AFTER chart added
        // Add Axis
        $$.axes.subx = context.append("g").attr("class", CLASS.axisX).attr("transform", $$.getTranslate('subx')).attr("clip-path", config.axis_rotated ? "" : $$.clipPathForXAxis).style("visibility", config.subchart_axis_x_show ? visibility : 'hidden');
    };
    c3_chart_internal_fn.updateTargetsForSubchart = function (targets) {
        var $$ = this,
            context = $$.context,
            config = $$.config,
            contextLineEnter,
            contextLineUpdate,
            contextBarEnter,
            contextBarUpdate,
            classChartBar = $$.classChartBar.bind($$),
            classBars = $$.classBars.bind($$),
            classChartLine = $$.classChartLine.bind($$),
            classLines = $$.classLines.bind($$),
            classAreas = $$.classAreas.bind($$);

        if (config.subchart_show) {
            //-- Bar --//
            contextBarUpdate = context.select('.' + CLASS.chartBars).selectAll('.' + CLASS.chartBar).data(targets).attr('class', classChartBar);
            contextBarEnter = contextBarUpdate.enter().append('g').style('opacity', 0).attr('class', classChartBar);
            // Bars for each data
            contextBarEnter.append('g').attr("class", classBars);

            //-- Line --//
            contextLineUpdate = context.select('.' + CLASS.chartLines).selectAll('.' + CLASS.chartLine).data(targets).attr('class', classChartLine);
            contextLineEnter = contextLineUpdate.enter().append('g').style('opacity', 0).attr('class', classChartLine);
            // Lines for each data
            contextLineEnter.append("g").attr("class", classLines);
            // Area
            contextLineEnter.append("g").attr("class", classAreas);

            //-- Brush --//
            context.selectAll('.' + CLASS.brush + ' rect').attr(config.axis_rotated ? "width" : "height", config.axis_rotated ? $$.width2 : $$.height2);
        }
    };
    c3_chart_internal_fn.updateBarForSubchart = function (durationForExit) {
        var $$ = this;
        $$.contextBar = $$.context.selectAll('.' + CLASS.bars).selectAll('.' + CLASS.bar).data($$.barData.bind($$));
        $$.contextBar.enter().append('path').attr("class", $$.classBar.bind($$)).style("stroke", 'none').style("fill", $$.color);
        $$.contextBar.style("opacity", $$.initialOpacity.bind($$));
        $$.contextBar.exit().transition().duration(durationForExit).style('opacity', 0).remove();
    };
    c3_chart_internal_fn.redrawBarForSubchart = function (drawBarOnSub, withTransition, duration) {
        (withTransition ? this.contextBar.transition(Math.random().toString()).duration(duration) : this.contextBar).attr('d', drawBarOnSub).style('opacity', 1);
    };
    c3_chart_internal_fn.updateLineForSubchart = function (durationForExit) {
        var $$ = this;
        $$.contextLine = $$.context.selectAll('.' + CLASS.lines).selectAll('.' + CLASS.line).data($$.lineData.bind($$));
        $$.contextLine.enter().append('path').attr('class', $$.classLine.bind($$)).style('stroke', $$.color);
        $$.contextLine.style("opacity", $$.initialOpacity.bind($$));
        $$.contextLine.exit().transition().duration(durationForExit).style('opacity', 0).remove();
    };
    c3_chart_internal_fn.redrawLineForSubchart = function (drawLineOnSub, withTransition, duration) {
        (withTransition ? this.contextLine.transition(Math.random().toString()).duration(duration) : this.contextLine).attr("d", drawLineOnSub).style('opacity', 1);
    };
    c3_chart_internal_fn.updateAreaForSubchart = function (durationForExit) {
        var $$ = this,
            d3 = $$.d3;
        $$.contextArea = $$.context.selectAll('.' + CLASS.areas).selectAll('.' + CLASS.area).data($$.lineData.bind($$));
        $$.contextArea.enter().append('path').attr("class", $$.classArea.bind($$)).style("fill", $$.color).style("opacity", function () {
            $$.orgAreaOpacity = +d3.select(this).style('opacity');return 0;
        });
        $$.contextArea.style("opacity", 0);
        $$.contextArea.exit().transition().duration(durationForExit).style('opacity', 0).remove();
    };
    c3_chart_internal_fn.redrawAreaForSubchart = function (drawAreaOnSub, withTransition, duration) {
        (withTransition ? this.contextArea.transition(Math.random().toString()).duration(duration) : this.contextArea).attr("d", drawAreaOnSub).style("fill", this.color).style("opacity", this.orgAreaOpacity);
    };
    c3_chart_internal_fn.redrawSubchart = function (withSubchart, transitions, duration, durationForExit, areaIndices, barIndices, lineIndices) {
        var $$ = this,
            d3 = $$.d3,
            config = $$.config,
            drawAreaOnSub,
            drawBarOnSub,
            drawLineOnSub;

        $$.context.style('visibility', config.subchart_show ? 'visible' : 'hidden');

        // subchart
        if (config.subchart_show) {
            // reflect main chart to extent on subchart if zoomed
            if (d3.event && d3.event.type === 'zoom') {
                $$.brush.extent($$.x.orgDomain()).update();
            }
            // update subchart elements if needed
            if (withSubchart) {

                // extent rect
                if (!$$.brush.empty()) {
                    $$.brush.extent($$.x.orgDomain()).update();
                }
                // setup drawer - MEMO: this must be called after axis updated
                drawAreaOnSub = $$.generateDrawArea(areaIndices, true);
                drawBarOnSub = $$.generateDrawBar(barIndices, true);
                drawLineOnSub = $$.generateDrawLine(lineIndices, true);

                $$.updateBarForSubchart(duration);
                $$.updateLineForSubchart(duration);
                $$.updateAreaForSubchart(duration);

                $$.redrawBarForSubchart(drawBarOnSub, duration, duration);
                $$.redrawLineForSubchart(drawLineOnSub, duration, duration);
                $$.redrawAreaForSubchart(drawAreaOnSub, duration, duration);
            }
        }
    };
    c3_chart_internal_fn.redrawForBrush = function () {
        var $$ = this,
            x = $$.x;
        $$.redraw({
            withTransition: false,
            withY: $$.config.zoom_rescale,
            withSubchart: false,
            withUpdateXDomain: true,
            withDimension: false
        });
        $$.config.subchart_onbrush.call($$.api, x.orgDomain());
    };
    c3_chart_internal_fn.transformContext = function (withTransition, transitions) {
        var $$ = this,
            subXAxis;
        if (transitions && transitions.axisSubX) {
            subXAxis = transitions.axisSubX;
        } else {
            subXAxis = $$.context.select('.' + CLASS.axisX);
            if (withTransition) {
                subXAxis = subXAxis.transition();
            }
        }
        $$.context.attr("transform", $$.getTranslate('context'));
        subXAxis.attr("transform", $$.getTranslate('subx'));
    };
    c3_chart_internal_fn.getDefaultExtent = function () {
        var $$ = this,
            config = $$.config,
            extent = isFunction(config.axis_x_extent) ? config.axis_x_extent($$.getXDomain($$.data.targets)) : config.axis_x_extent;
        if ($$.isTimeSeries()) {
            extent = [$$.parseDate(extent[0]), $$.parseDate(extent[1])];
        }
        return extent;
    };

    c3_chart_internal_fn.initText = function () {
        var $$ = this;
        $$.main.select('.' + CLASS.chart).append("g").attr("class", CLASS.chartTexts);
        $$.mainText = $$.d3.selectAll([]);
    };
    c3_chart_internal_fn.updateTargetsForText = function (targets) {
        var $$ = this,
            mainTextUpdate,
            mainTextEnter,
            classChartText = $$.classChartText.bind($$),
            classTexts = $$.classTexts.bind($$),
            classFocus = $$.classFocus.bind($$);
        mainTextUpdate = $$.main.select('.' + CLASS.chartTexts).selectAll('.' + CLASS.chartText).data(targets).attr('class', function (d) {
            return classChartText(d) + classFocus(d);
        });
        mainTextEnter = mainTextUpdate.enter().append('g').attr('class', classChartText).style('opacity', 0).style("pointer-events", "none");
        mainTextEnter.append('g').attr('class', classTexts);
    };
    c3_chart_internal_fn.updateText = function (durationForExit) {
        var $$ = this,
            config = $$.config,
            barOrLineData = $$.barOrLineData.bind($$),
            classText = $$.classText.bind($$);
        $$.mainText = $$.main.selectAll('.' + CLASS.texts).selectAll('.' + CLASS.text).data(barOrLineData);
        $$.mainText.enter().append('text').attr("class", classText).attr('text-anchor', function (d) {
            return config.axis_rotated ? d.value < 0 ? 'end' : 'start' : 'middle';
        }).style("stroke", 'none').style("fill", function (d) {
            return $$.color(d);
        }).style("fill-opacity", 0);
        $$.mainText.text(function (d, i, j) {
            return $$.dataLabelFormat(d.id)(d.value, d.id, i, j);
        });
        $$.mainText.exit().transition().duration(durationForExit).style('fill-opacity', 0).remove();
    };
    c3_chart_internal_fn.redrawText = function (xForText, yForText, forFlow, withTransition) {
        return [(withTransition ? this.mainText.transition() : this.mainText).attr('x', xForText).attr('y', yForText).style("fill", this.color).style("fill-opacity", forFlow ? 0 : this.opacityForText.bind(this))];
    };
    c3_chart_internal_fn.getTextRect = function (text, cls, element) {
        var dummy = this.d3.select('body').append('div').classed('c3', true),
            svg = dummy.append("svg").style('visibility', 'hidden').style('position', 'fixed').style('top', 0).style('left', 0),
            font = this.d3.select(element).style('font'),
            rect;
        svg.selectAll('.dummy').data([text]).enter().append('text').classed(cls ? cls : "", true).style('font', font).text(text).each(function () {
            rect = this.getBoundingClientRect();
        });
        dummy.remove();
        return rect;
    };
    c3_chart_internal_fn.generateXYForText = function (areaIndices, barIndices, lineIndices, forX) {
        var $$ = this,
            getAreaPoints = $$.generateGetAreaPoints(areaIndices, false),
            getBarPoints = $$.generateGetBarPoints(barIndices, false),
            getLinePoints = $$.generateGetLinePoints(lineIndices, false),
            getter = forX ? $$.getXForText : $$.getYForText;
        return function (d, i) {
            var getPoints = $$.isAreaType(d) ? getAreaPoints : $$.isBarType(d) ? getBarPoints : getLinePoints;
            return getter.call($$, getPoints(d, i), d, this);
        };
    };
    c3_chart_internal_fn.getXForText = function (points, d, textElement) {
        var $$ = this,
            box = textElement.getBoundingClientRect(),
            xPos,
            padding;
        if ($$.config.axis_rotated) {
            padding = $$.isBarType(d) ? 4 : 6;
            xPos = points[2][1] + padding * (d.value < 0 ? -1 : 1);
        } else {
            xPos = $$.hasType('bar') ? (points[2][0] + points[0][0]) / 2 : points[0][0];
        }
        // show labels regardless of the domain if value is null
        if (d.value === null) {
            if (xPos > $$.width) {
                xPos = $$.width - box.width;
            } else if (xPos < 0) {
                xPos = 4;
            }
        }
        return xPos;
    };
    c3_chart_internal_fn.getYForText = function (points, d, textElement) {
        var $$ = this,
            box = textElement.getBoundingClientRect(),
            yPos;
        if ($$.config.axis_rotated) {
            yPos = (points[0][0] + points[2][0] + box.height * 0.6) / 2;
        } else {
            yPos = points[2][1];
            if (d.value < 0 || d.value === 0 && !$$.hasPositiveValue) {
                yPos += box.height;
                if ($$.isBarType(d) && $$.isSafari()) {
                    yPos -= 3;
                } else if (!$$.isBarType(d) && $$.isChrome()) {
                    yPos += 3;
                }
            } else {
                yPos += $$.isBarType(d) ? -3 : -6;
            }
        }
        // show labels regardless of the domain if value is null
        if (d.value === null && !$$.config.axis_rotated) {
            if (yPos < box.height) {
                yPos = box.height;
            } else if (yPos > this.height) {
                yPos = this.height - 4;
            }
        }
        return yPos;
    };

    c3_chart_internal_fn.initTitle = function () {
        var $$ = this;
        $$.title = $$.svg.append("text").text($$.config.title_text).attr("class", $$.CLASS.title);
    };
    c3_chart_internal_fn.redrawTitle = function () {
        var $$ = this;
        $$.title.attr("x", $$.xForTitle.bind($$)).attr("y", $$.yForTitle.bind($$));
    };
    c3_chart_internal_fn.xForTitle = function () {
        var $$ = this,
            config = $$.config,
            position = config.title_position || 'left',
            x;
        if (position.indexOf('right') >= 0) {
            x = $$.currentWidth - $$.getTextRect($$.title.node().textContent, $$.CLASS.title, $$.title.node()).width - config.title_padding.right;
        } else if (position.indexOf('center') >= 0) {
            x = ($$.currentWidth - $$.getTextRect($$.title.node().textContent, $$.CLASS.title, $$.title.node()).width) / 2;
        } else {
            // left
            x = config.title_padding.left;
        }
        return x;
    };
    c3_chart_internal_fn.yForTitle = function () {
        var $$ = this;
        return $$.config.title_padding.top + $$.getTextRect($$.title.node().textContent, $$.CLASS.title, $$.title.node()).height;
    };
    c3_chart_internal_fn.getTitlePadding = function () {
        var $$ = this;
        return $$.yForTitle() + $$.config.title_padding.bottom;
    };

    c3_chart_internal_fn.initTooltip = function () {
        var $$ = this,
            config = $$.config,
            i;
        $$.tooltip = $$.selectChart.style("position", "relative").append("div").attr('class', CLASS.tooltipContainer).style("position", "absolute").style("pointer-events", "none").style("display", "none");
        // Show tooltip if needed
        if (config.tooltip_init_show) {
            if ($$.isTimeSeries() && isString(config.tooltip_init_x)) {
                config.tooltip_init_x = $$.parseDate(config.tooltip_init_x);
                for (i = 0; i < $$.data.targets[0].values.length; i++) {
                    if ($$.data.targets[0].values[i].x - config.tooltip_init_x === 0) {
                        break;
                    }
                }
                config.tooltip_init_x = i;
            }
            $$.tooltip.html(config.tooltip_contents.call($$, $$.data.targets.map(function (d) {
                return $$.addName(d.values[config.tooltip_init_x]);
            }), $$.axis.getXAxisTickFormat(), $$.getYFormat($$.hasArcType()), $$.color));
            $$.tooltip.style("top", config.tooltip_init_position.top).style("left", config.tooltip_init_position.left).style("display", "block");
        }
    };
    c3_chart_internal_fn.getTooltipSortFunction = function () {
        var $$ = this,
            config = $$.config;

        if (config.data_groups.length === 0 || config.tooltip_order !== undefined) {
            // if data are not grouped or if an order is specified
            // for the tooltip values we sort them by their values

            var order = config.tooltip_order;
            if (order === undefined) {
                order = config.data_order;
            }

            var valueOf = function valueOf(obj) {
                return obj ? obj.value : null;
            };

            // if data are not grouped, we sort them by their value
            if (isString(order) && order.toLowerCase() === 'asc') {
                return function (a, b) {
                    return valueOf(a) - valueOf(b);
                };
            } else if (isString(order) && order.toLowerCase() === 'desc') {
                return function (a, b) {
                    return valueOf(b) - valueOf(a);
                };
            } else if (isFunction(order)) {

                // if the function is from data_order we need
                // to wrap the returned function in order to format
                // the sorted value to the expected format

                var sortFunction = order;

                if (config.tooltip_order === undefined) {
                    sortFunction = function sortFunction(a, b) {
                        return order(a ? {
                            id: a.id,
                            values: [a]
                        } : null, b ? {
                            id: b.id,
                            values: [b]
                        } : null);
                    };
                }

                return sortFunction;
            } else if (isArray(order)) {
                return function (a, b) {
                    return order.indexOf(a.id) - order.indexOf(b.id);
                };
            }
        } else {
            // if data are grouped, we follow the order of grouped targets
            var ids = $$.orderTargets($$.data.targets).map(function (i) {
                return i.id;
            });

            // if it was either asc or desc we need to invert the order
            // returned by orderTargets
            if ($$.isOrderAsc() || $$.isOrderDesc()) {
                ids = ids.reverse();
            }

            return function (a, b) {
                return ids.indexOf(a.id) - ids.indexOf(b.id);
            };
        }
    };
    c3_chart_internal_fn.getTooltipContent = function (d, defaultTitleFormat, defaultValueFormat, color) {
        var $$ = this,
            config = $$.config,
            titleFormat = config.tooltip_format_title || defaultTitleFormat,
            nameFormat = config.tooltip_format_name || function (name) {
            return name;
        },
            valueFormat = config.tooltip_format_value || defaultValueFormat,
            text,
            i,
            title,
            value,
            name,
            bgcolor;

        var tooltipSortFunction = this.getTooltipSortFunction();
        if (tooltipSortFunction) {
            d.sort(tooltipSortFunction);
        }

        for (i = 0; i < d.length; i++) {
            if (!(d[i] && (d[i].value || d[i].value === 0))) {
                continue;
            }

            if (!text) {
                title = sanitise(titleFormat ? titleFormat(d[i].x) : d[i].x);
                text = "<table class='" + $$.CLASS.tooltip + "'>" + (title || title === 0 ? "<tr><th colspan='2'>" + title + "</th></tr>" : "");
            }

            value = sanitise(valueFormat(d[i].value, d[i].ratio, d[i].id, d[i].index, d));
            if (value !== undefined) {
                // Skip elements when their name is set to null
                if (d[i].name === null) {
                    continue;
                }
                name = sanitise(nameFormat(d[i].name, d[i].ratio, d[i].id, d[i].index));
                bgcolor = $$.levelColor ? $$.levelColor(d[i].value) : color(d[i].id);

                text += "<tr class='" + $$.CLASS.tooltipName + "-" + $$.getTargetSelectorSuffix(d[i].id) + "'>";
                text += "<td class='name'><span style='background-color:" + bgcolor + "'></span>" + name + "</td>";
                text += "<td class='value'>" + value + "</td>";
                text += "</tr>";
            }
        }
        return text + "</table>";
    };
    c3_chart_internal_fn.tooltipPosition = function (dataToShow, tWidth, tHeight, element) {
        var $$ = this,
            config = $$.config,
            d3 = $$.d3;
        var svgLeft, tooltipLeft, tooltipRight, tooltipTop, chartRight;
        var forArc = $$.hasArcType(),
            mouse = d3.mouse(element);
        // Determin tooltip position
        if (forArc) {
            tooltipLeft = ($$.width - ($$.isLegendRight ? $$.getLegendWidth() : 0)) / 2 + mouse[0];
            tooltipTop = ($$.hasType('gauge') ? $$.height : $$.height / 2) + mouse[1] + 20;
        } else {
            svgLeft = $$.getSvgLeft(true);
            if (config.axis_rotated) {
                tooltipLeft = svgLeft + mouse[0] + 100;
                tooltipRight = tooltipLeft + tWidth;
                chartRight = $$.currentWidth - $$.getCurrentPaddingRight();
                tooltipTop = $$.x(dataToShow[0].x) + 20;
            } else {
                tooltipLeft = svgLeft + $$.getCurrentPaddingLeft(true) + $$.x(dataToShow[0].x) + 20;
                tooltipRight = tooltipLeft + tWidth;
                chartRight = svgLeft + $$.currentWidth - $$.getCurrentPaddingRight();
                tooltipTop = mouse[1] + 15;
            }

            if (tooltipRight > chartRight) {
                // 20 is needed for Firefox to keep tooltip width
                tooltipLeft -= tooltipRight - chartRight + 20;
            }
            if (tooltipTop + tHeight > $$.currentHeight) {
                tooltipTop -= tHeight + 30;
            }
        }
        if (tooltipTop < 0) {
            tooltipTop = 0;
        }
        return { top: tooltipTop, left: tooltipLeft };
    };
    c3_chart_internal_fn.showTooltip = function (selectedData, element) {
        var $$ = this,
            config = $$.config;
        var tWidth, tHeight, position;
        var forArc = $$.hasArcType(),
            dataToShow = selectedData.filter(function (d) {
            return d && isValue(d.value);
        }),
            positionFunction = config.tooltip_position || c3_chart_internal_fn.tooltipPosition;
        if (dataToShow.length === 0 || !config.tooltip_show) {
            return;
        }
        $$.tooltip.html(config.tooltip_contents.call($$, selectedData, $$.axis.getXAxisTickFormat(), $$.getYFormat(forArc), $$.color)).style("display", "block");

        // Get tooltip dimensions
        tWidth = $$.tooltip.property('offsetWidth');
        tHeight = $$.tooltip.property('offsetHeight');

        position = positionFunction.call(this, dataToShow, tWidth, tHeight, element);
        // Set tooltip
        $$.tooltip.style("top", position.top + "px").style("left", position.left + 'px');
    };
    c3_chart_internal_fn.hideTooltip = function () {
        this.tooltip.style("display", "none");
    };

    c3_chart_internal_fn.setTargetType = function (targetIds, type) {
        var $$ = this,
            config = $$.config;
        $$.mapToTargetIds(targetIds).forEach(function (id) {
            $$.withoutFadeIn[id] = type === config.data_types[id];
            config.data_types[id] = type;
        });
        if (!targetIds) {
            config.data_type = type;
        }
    };
    c3_chart_internal_fn.hasType = function (type, targets) {
        var $$ = this,
            types = $$.config.data_types,
            has = false;
        targets = targets || $$.data.targets;
        if (targets && targets.length) {
            targets.forEach(function (target) {
                var t = types[target.id];
                if (t && t.indexOf(type) >= 0 || !t && type === 'line') {
                    has = true;
                }
            });
        } else if (Object.keys(types).length) {
            Object.keys(types).forEach(function (id) {
                if (types[id] === type) {
                    has = true;
                }
            });
        } else {
            has = $$.config.data_type === type;
        }
        return has;
    };
    c3_chart_internal_fn.hasArcType = function (targets) {
        return this.hasType('pie', targets) || this.hasType('donut', targets) || this.hasType('gauge', targets);
    };
    c3_chart_internal_fn.isLineType = function (d) {
        var config = this.config,
            id = isString(d) ? d : d.id;
        return !config.data_types[id] || ['line', 'spline', 'area', 'area-spline', 'step', 'area-step'].indexOf(config.data_types[id]) >= 0;
    };
    c3_chart_internal_fn.isStepType = function (d) {
        var id = isString(d) ? d : d.id;
        return ['step', 'area-step'].indexOf(this.config.data_types[id]) >= 0;
    };
    c3_chart_internal_fn.isSplineType = function (d) {
        var id = isString(d) ? d : d.id;
        return ['spline', 'area-spline'].indexOf(this.config.data_types[id]) >= 0;
    };
    c3_chart_internal_fn.isAreaType = function (d) {
        var id = isString(d) ? d : d.id;
        return ['area', 'area-spline', 'area-step'].indexOf(this.config.data_types[id]) >= 0;
    };
    c3_chart_internal_fn.isBarType = function (d) {
        var id = isString(d) ? d : d.id;
        return this.config.data_types[id] === 'bar';
    };
    c3_chart_internal_fn.isScatterType = function (d) {
        var id = isString(d) ? d : d.id;
        return this.config.data_types[id] === 'scatter';
    };
    c3_chart_internal_fn.isPieType = function (d) {
        var id = isString(d) ? d : d.id;
        return this.config.data_types[id] === 'pie';
    };
    c3_chart_internal_fn.isGaugeType = function (d) {
        var id = isString(d) ? d : d.id;
        return this.config.data_types[id] === 'gauge';
    };
    c3_chart_internal_fn.isDonutType = function (d) {
        var id = isString(d) ? d : d.id;
        return this.config.data_types[id] === 'donut';
    };
    c3_chart_internal_fn.isArcType = function (d) {
        return this.isPieType(d) || this.isDonutType(d) || this.isGaugeType(d);
    };
    c3_chart_internal_fn.lineData = function (d) {
        return this.isLineType(d) ? [d] : [];
    };
    c3_chart_internal_fn.arcData = function (d) {
        return this.isArcType(d.data) ? [d] : [];
    };
    /* not used
     function scatterData(d) {
     return isScatterType(d) ? d.values : [];
     }
     */
    c3_chart_internal_fn.barData = function (d) {
        return this.isBarType(d) ? d.values : [];
    };
    c3_chart_internal_fn.lineOrScatterData = function (d) {
        return this.isLineType(d) || this.isScatterType(d) ? d.values : [];
    };
    c3_chart_internal_fn.barOrLineData = function (d) {
        return this.isBarType(d) || this.isLineType(d) ? d.values : [];
    };
    c3_chart_internal_fn.isInterpolationType = function (type) {
        return ['linear', 'linear-closed', 'basis', 'basis-open', 'basis-closed', 'bundle', 'cardinal', 'cardinal-open', 'cardinal-closed', 'monotone'].indexOf(type) >= 0;
    };

    c3_chart_internal_fn.isSafari = function () {
        var ua = window.navigator.userAgent;
        return ua.indexOf('Safari') >= 0 && ua.indexOf('Chrome') < 0;
    };
    c3_chart_internal_fn.isChrome = function () {
        var ua = window.navigator.userAgent;
        return ua.indexOf('Chrome') >= 0;
    };

    c3_chart_internal_fn.initZoom = function () {
        var $$ = this,
            d3 = $$.d3,
            config = $$.config,
            startEvent;

        $$.zoom = d3.behavior.zoom().on("zoomstart", function () {
            startEvent = d3.event.sourceEvent;
            $$.zoom.altDomain = d3.event.sourceEvent.altKey ? $$.x.orgDomain() : null;
            config.zoom_onzoomstart.call($$.api, d3.event.sourceEvent);
        }).on("zoom", function () {
            $$.redrawForZoom.call($$);
        }).on('zoomend', function () {
            var event = d3.event.sourceEvent;
            // if click, do nothing. otherwise, click interaction will be canceled.
            if (event && startEvent.clientX === event.clientX && startEvent.clientY === event.clientY) {
                return;
            }
            $$.redrawEventRect();
            $$.updateZoom();
            config.zoom_onzoomend.call($$.api, $$.x.orgDomain());
        });
        $$.zoom.scale = function (scale) {
            return config.axis_rotated ? this.y(scale) : this.x(scale);
        };
        $$.zoom.orgScaleExtent = function () {
            var extent = config.zoom_extent ? config.zoom_extent : [1, 10];
            return [extent[0], Math.max($$.getMaxDataCount() / extent[1], extent[1])];
        };
        $$.zoom.updateScaleExtent = function () {
            var ratio = diffDomain($$.x.orgDomain()) / diffDomain($$.getZoomDomain()),
                extent = this.orgScaleExtent();
            this.scaleExtent([extent[0] * ratio, extent[1] * ratio]);
            return this;
        };
    };
    c3_chart_internal_fn.getZoomDomain = function () {
        var $$ = this,
            config = $$.config,
            d3 = $$.d3,
            min = d3.min([$$.orgXDomain[0], config.zoom_x_min]),
            max = d3.max([$$.orgXDomain[1], config.zoom_x_max]);
        return [min, max];
    };
    c3_chart_internal_fn.updateZoom = function () {
        var $$ = this,
            z = $$.config.zoom_enabled ? $$.zoom : function () {};
        $$.main.select('.' + CLASS.zoomRect).call(z).on("dblclick.zoom", null);
        $$.main.selectAll('.' + CLASS.eventRect).call(z).on("dblclick.zoom", null);
    };
    c3_chart_internal_fn.redrawForZoom = function () {
        var $$ = this,
            d3 = $$.d3,
            config = $$.config,
            zoom = $$.zoom,
            x = $$.x;
        if (!config.zoom_enabled) {
            return;
        }
        if ($$.filterTargetsToShow($$.data.targets).length === 0) {
            return;
        }
        if (d3.event.sourceEvent.type === 'mousemove' && zoom.altDomain) {
            x.domain(zoom.altDomain);
            zoom.scale(x).updateScaleExtent();
            return;
        }
        if ($$.isCategorized() && x.orgDomain()[0] === $$.orgXDomain[0]) {
            x.domain([$$.orgXDomain[0] - 1e-10, x.orgDomain()[1]]);
        }
        $$.redraw({
            withTransition: false,
            withY: config.zoom_rescale,
            withSubchart: false,
            withEventRect: false,
            withDimension: false
        });
        if (d3.event.sourceEvent.type === 'mousemove') {
            $$.cancelClick = true;
        }
        config.zoom_onzoom.call($$.api, x.orgDomain());
    };

    return c3;

})));


/***/ }),

/***/ "./node_modules/change-emitter/lib/index.js":
/*!**************************************************!*\
  !*** ./node_modules/change-emitter/lib/index.js ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
var createChangeEmitter = exports.createChangeEmitter = function createChangeEmitter() {
  var currentListeners = [];
  var nextListeners = currentListeners;

  function ensureCanMutateNextListeners() {
    if (nextListeners === currentListeners) {
      nextListeners = currentListeners.slice();
    }
  }

  function listen(listener) {
    if (typeof listener !== 'function') {
      throw new Error('Expected listener to be a function.');
    }

    var isSubscribed = true;

    ensureCanMutateNextListeners();
    nextListeners.push(listener);

    return function () {
      if (!isSubscribed) {
        return;
      }

      isSubscribed = false;

      ensureCanMutateNextListeners();
      var index = nextListeners.indexOf(listener);
      nextListeners.splice(index, 1);
    };
  }

  function emit() {
    currentListeners = nextListeners;
    var listeners = currentListeners;
    for (var i = 0; i < listeners.length; i++) {
      listeners[i].apply(listeners, arguments);
    }
  }

  return {
    listen: listen,
    emit: emit
  };
};

/***/ }),

/***/ "./node_modules/classnames/index.js":
/*!******************************************!*\
  !*** ./node_modules/classnames/index.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
  Copyright (c) 2017 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/
/* global define */

(function () {
	'use strict';

	var hasOwn = {}.hasOwnProperty;

	function classNames () {
		var classes = [];

		for (var i = 0; i < arguments.length; i++) {
			var arg = arguments[i];
			if (!arg) continue;

			var argType = typeof arg;

			if (argType === 'string' || argType === 'number') {
				classes.push(arg);
			} else if (Array.isArray(arg) && arg.length) {
				var inner = classNames.apply(null, arg);
				if (inner) {
					classes.push(inner);
				}
			} else if (argType === 'object') {
				for (var key in arg) {
					if (hasOwn.call(arg, key) && arg[key]) {
						classes.push(key);
					}
				}
			}
		}

		return classes.join(' ');
	}

	if (true && module.exports) {
		classNames.default = classNames;
		module.exports = classNames;
	} else if (true) {
		// register as 'classnames', consistent with npm package name
		!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
			return classNames;
		}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
	} else {}
}());


/***/ }),

/***/ "./node_modules/core-js/library/fn/array/from.js":
/*!*******************************************************!*\
  !*** ./node_modules/core-js/library/fn/array/from.js ***!
  \*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ../../modules/es6.string.iterator */ "./node_modules/core-js/library/modules/es6.string.iterator.js");
__webpack_require__(/*! ../../modules/es6.array.from */ "./node_modules/core-js/library/modules/es6.array.from.js");
module.exports = __webpack_require__(/*! ../../modules/_core */ "./node_modules/core-js/library/modules/_core.js").Array.from;


/***/ }),

/***/ "./node_modules/core-js/library/fn/array/is-array.js":
/*!***********************************************************!*\
  !*** ./node_modules/core-js/library/fn/array/is-array.js ***!
  \***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ../../modules/es6.array.is-array */ "./node_modules/core-js/library/modules/es6.array.is-array.js");
module.exports = __webpack_require__(/*! ../../modules/_core */ "./node_modules/core-js/library/modules/_core.js").Array.isArray;


/***/ }),

/***/ "./node_modules/core-js/library/fn/object/assign.js":
/*!**********************************************************!*\
  !*** ./node_modules/core-js/library/fn/object/assign.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ../../modules/es6.object.assign */ "./node_modules/core-js/library/modules/es6.object.assign.js");
module.exports = __webpack_require__(/*! ../../modules/_core */ "./node_modules/core-js/library/modules/_core.js").Object.assign;


/***/ }),

/***/ "./node_modules/core-js/library/fn/object/create.js":
/*!**********************************************************!*\
  !*** ./node_modules/core-js/library/fn/object/create.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ../../modules/es6.object.create */ "./node_modules/core-js/library/modules/es6.object.create.js");
var $Object = __webpack_require__(/*! ../../modules/_core */ "./node_modules/core-js/library/modules/_core.js").Object;
module.exports = function create(P, D) {
  return $Object.create(P, D);
};


/***/ }),

/***/ "./node_modules/core-js/library/fn/object/define-property.js":
/*!*******************************************************************!*\
  !*** ./node_modules/core-js/library/fn/object/define-property.js ***!
  \*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ../../modules/es6.object.define-property */ "./node_modules/core-js/library/modules/es6.object.define-property.js");
var $Object = __webpack_require__(/*! ../../modules/_core */ "./node_modules/core-js/library/modules/_core.js").Object;
module.exports = function defineProperty(it, key, desc) {
  return $Object.defineProperty(it, key, desc);
};


/***/ }),

/***/ "./node_modules/core-js/library/fn/object/entries.js":
/*!***********************************************************!*\
  !*** ./node_modules/core-js/library/fn/object/entries.js ***!
  \***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ../../modules/es7.object.entries */ "./node_modules/core-js/library/modules/es7.object.entries.js");
module.exports = __webpack_require__(/*! ../../modules/_core */ "./node_modules/core-js/library/modules/_core.js").Object.entries;


/***/ }),

/***/ "./node_modules/core-js/library/fn/object/get-own-property-descriptor.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/core-js/library/fn/object/get-own-property-descriptor.js ***!
  \*******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ../../modules/es6.object.get-own-property-descriptor */ "./node_modules/core-js/library/modules/es6.object.get-own-property-descriptor.js");
var $Object = __webpack_require__(/*! ../../modules/_core */ "./node_modules/core-js/library/modules/_core.js").Object;
module.exports = function getOwnPropertyDescriptor(it, key) {
  return $Object.getOwnPropertyDescriptor(it, key);
};


/***/ }),

/***/ "./node_modules/core-js/library/fn/object/keys.js":
/*!********************************************************!*\
  !*** ./node_modules/core-js/library/fn/object/keys.js ***!
  \********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ../../modules/es6.object.keys */ "./node_modules/core-js/library/modules/es6.object.keys.js");
module.exports = __webpack_require__(/*! ../../modules/_core */ "./node_modules/core-js/library/modules/_core.js").Object.keys;


/***/ }),

/***/ "./node_modules/core-js/library/fn/object/set-prototype-of.js":
/*!********************************************************************!*\
  !*** ./node_modules/core-js/library/fn/object/set-prototype-of.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ../../modules/es6.object.set-prototype-of */ "./node_modules/core-js/library/modules/es6.object.set-prototype-of.js");
module.exports = __webpack_require__(/*! ../../modules/_core */ "./node_modules/core-js/library/modules/_core.js").Object.setPrototypeOf;


/***/ }),

/***/ "./node_modules/core-js/library/fn/object/values.js":
/*!**********************************************************!*\
  !*** ./node_modules/core-js/library/fn/object/values.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ../../modules/es7.object.values */ "./node_modules/core-js/library/modules/es7.object.values.js");
module.exports = __webpack_require__(/*! ../../modules/_core */ "./node_modules/core-js/library/modules/_core.js").Object.values;


/***/ }),

/***/ "./node_modules/core-js/library/fn/parse-int.js":
/*!******************************************************!*\
  !*** ./node_modules/core-js/library/fn/parse-int.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ../modules/es6.parse-int */ "./node_modules/core-js/library/modules/es6.parse-int.js");
module.exports = __webpack_require__(/*! ../modules/_core */ "./node_modules/core-js/library/modules/_core.js").parseInt;


/***/ }),

/***/ "./node_modules/core-js/library/fn/symbol/index.js":
/*!*********************************************************!*\
  !*** ./node_modules/core-js/library/fn/symbol/index.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ../../modules/es6.symbol */ "./node_modules/core-js/library/modules/es6.symbol.js");
__webpack_require__(/*! ../../modules/es6.object.to-string */ "./node_modules/core-js/library/modules/es6.object.to-string.js");
__webpack_require__(/*! ../../modules/es7.symbol.async-iterator */ "./node_modules/core-js/library/modules/es7.symbol.async-iterator.js");
__webpack_require__(/*! ../../modules/es7.symbol.observable */ "./node_modules/core-js/library/modules/es7.symbol.observable.js");
module.exports = __webpack_require__(/*! ../../modules/_core */ "./node_modules/core-js/library/modules/_core.js").Symbol;


/***/ }),

/***/ "./node_modules/core-js/library/fn/symbol/iterator.js":
/*!************************************************************!*\
  !*** ./node_modules/core-js/library/fn/symbol/iterator.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ../../modules/es6.string.iterator */ "./node_modules/core-js/library/modules/es6.string.iterator.js");
__webpack_require__(/*! ../../modules/web.dom.iterable */ "./node_modules/core-js/library/modules/web.dom.iterable.js");
module.exports = __webpack_require__(/*! ../../modules/_wks-ext */ "./node_modules/core-js/library/modules/_wks-ext.js").f('iterator');


/***/ }),

/***/ "./node_modules/core-js/library/modules/_a-function.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_a-function.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = function (it) {
  if (typeof it != 'function') throw TypeError(it + ' is not a function!');
  return it;
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_add-to-unscopables.js":
/*!*********************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_add-to-unscopables.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = function () { /* empty */ };


/***/ }),

/***/ "./node_modules/core-js/library/modules/_an-object.js":
/*!************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_an-object.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/core-js/library/modules/_is-object.js");
module.exports = function (it) {
  if (!isObject(it)) throw TypeError(it + ' is not an object!');
  return it;
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_array-includes.js":
/*!*****************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_array-includes.js ***!
  \*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// false -> Array#indexOf
// true  -> Array#includes
var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/core-js/library/modules/_to-iobject.js");
var toLength = __webpack_require__(/*! ./_to-length */ "./node_modules/core-js/library/modules/_to-length.js");
var toAbsoluteIndex = __webpack_require__(/*! ./_to-absolute-index */ "./node_modules/core-js/library/modules/_to-absolute-index.js");
module.exports = function (IS_INCLUDES) {
  return function ($this, el, fromIndex) {
    var O = toIObject($this);
    var length = toLength(O.length);
    var index = toAbsoluteIndex(fromIndex, length);
    var value;
    // Array#includes uses SameValueZero equality algorithm
    // eslint-disable-next-line no-self-compare
    if (IS_INCLUDES && el != el) while (length > index) {
      value = O[index++];
      // eslint-disable-next-line no-self-compare
      if (value != value) return true;
    // Array#indexOf ignores holes, Array#includes - not
    } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
      if (O[index] === el) return IS_INCLUDES || index || 0;
    } return !IS_INCLUDES && -1;
  };
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_classof.js":
/*!**********************************************************!*\
  !*** ./node_modules/core-js/library/modules/_classof.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// getting tag from 19.1.3.6 Object.prototype.toString()
var cof = __webpack_require__(/*! ./_cof */ "./node_modules/core-js/library/modules/_cof.js");
var TAG = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('toStringTag');
// ES3 wrong here
var ARG = cof(function () { return arguments; }()) == 'Arguments';

// fallback for IE11 Script Access Denied error
var tryGet = function (it, key) {
  try {
    return it[key];
  } catch (e) { /* empty */ }
};

module.exports = function (it) {
  var O, T, B;
  return it === undefined ? 'Undefined' : it === null ? 'Null'
    // @@toStringTag case
    : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
    // builtinTag case
    : ARG ? cof(O)
    // ES3 arguments fallback
    : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_cof.js":
/*!******************************************************!*\
  !*** ./node_modules/core-js/library/modules/_cof.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

var toString = {}.toString;

module.exports = function (it) {
  return toString.call(it).slice(8, -1);
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_core.js":
/*!*******************************************************!*\
  !*** ./node_modules/core-js/library/modules/_core.js ***!
  \*******************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

var core = module.exports = { version: '2.6.0' };
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef


/***/ }),

/***/ "./node_modules/core-js/library/modules/_create-property.js":
/*!******************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_create-property.js ***!
  \******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $defineProperty = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js");
var createDesc = __webpack_require__(/*! ./_property-desc */ "./node_modules/core-js/library/modules/_property-desc.js");

module.exports = function (object, index, value) {
  if (index in object) $defineProperty.f(object, index, createDesc(0, value));
  else object[index] = value;
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_ctx.js":
/*!******************************************************!*\
  !*** ./node_modules/core-js/library/modules/_ctx.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// optional / simple context binding
var aFunction = __webpack_require__(/*! ./_a-function */ "./node_modules/core-js/library/modules/_a-function.js");
module.exports = function (fn, that, length) {
  aFunction(fn);
  if (that === undefined) return fn;
  switch (length) {
    case 1: return function (a) {
      return fn.call(that, a);
    };
    case 2: return function (a, b) {
      return fn.call(that, a, b);
    };
    case 3: return function (a, b, c) {
      return fn.call(that, a, b, c);
    };
  }
  return function (/* ...args */) {
    return fn.apply(that, arguments);
  };
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_defined.js":
/*!**********************************************************!*\
  !*** ./node_modules/core-js/library/modules/_defined.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

// 7.2.1 RequireObjectCoercible(argument)
module.exports = function (it) {
  if (it == undefined) throw TypeError("Can't call method on  " + it);
  return it;
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_descriptors.js":
/*!**************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_descriptors.js ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// Thank's IE8 for his funny defineProperty
module.exports = !__webpack_require__(/*! ./_fails */ "./node_modules/core-js/library/modules/_fails.js")(function () {
  return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
});


/***/ }),

/***/ "./node_modules/core-js/library/modules/_dom-create.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_dom-create.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/core-js/library/modules/_is-object.js");
var document = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js").document;
// typeof document.createElement is 'object' in old IE
var is = isObject(document) && isObject(document.createElement);
module.exports = function (it) {
  return is ? document.createElement(it) : {};
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_enum-bug-keys.js":
/*!****************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_enum-bug-keys.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

// IE 8- don't enum bug keys
module.exports = (
  'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
).split(',');


/***/ }),

/***/ "./node_modules/core-js/library/modules/_enum-keys.js":
/*!************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_enum-keys.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// all enumerable object keys, includes symbols
var getKeys = __webpack_require__(/*! ./_object-keys */ "./node_modules/core-js/library/modules/_object-keys.js");
var gOPS = __webpack_require__(/*! ./_object-gops */ "./node_modules/core-js/library/modules/_object-gops.js");
var pIE = __webpack_require__(/*! ./_object-pie */ "./node_modules/core-js/library/modules/_object-pie.js");
module.exports = function (it) {
  var result = getKeys(it);
  var getSymbols = gOPS.f;
  if (getSymbols) {
    var symbols = getSymbols(it);
    var isEnum = pIE.f;
    var i = 0;
    var key;
    while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);
  } return result;
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_export.js":
/*!*********************************************************!*\
  !*** ./node_modules/core-js/library/modules/_export.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var global = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js");
var core = __webpack_require__(/*! ./_core */ "./node_modules/core-js/library/modules/_core.js");
var ctx = __webpack_require__(/*! ./_ctx */ "./node_modules/core-js/library/modules/_ctx.js");
var hide = __webpack_require__(/*! ./_hide */ "./node_modules/core-js/library/modules/_hide.js");
var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
var PROTOTYPE = 'prototype';

var $export = function (type, name, source) {
  var IS_FORCED = type & $export.F;
  var IS_GLOBAL = type & $export.G;
  var IS_STATIC = type & $export.S;
  var IS_PROTO = type & $export.P;
  var IS_BIND = type & $export.B;
  var IS_WRAP = type & $export.W;
  var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
  var expProto = exports[PROTOTYPE];
  var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];
  var key, own, out;
  if (IS_GLOBAL) source = name;
  for (key in source) {
    // contains in native
    own = !IS_FORCED && target && target[key] !== undefined;
    if (own && has(exports, key)) continue;
    // export native or passed
    out = own ? target[key] : source[key];
    // prevent global pollution for namespaces
    exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
    // bind timers to global for call from export context
    : IS_BIND && own ? ctx(out, global)
    // wrap global constructors for prevent change them in library
    : IS_WRAP && target[key] == out ? (function (C) {
      var F = function (a, b, c) {
        if (this instanceof C) {
          switch (arguments.length) {
            case 0: return new C();
            case 1: return new C(a);
            case 2: return new C(a, b);
          } return new C(a, b, c);
        } return C.apply(this, arguments);
      };
      F[PROTOTYPE] = C[PROTOTYPE];
      return F;
    // make static versions for prototype methods
    })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
    // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
    if (IS_PROTO) {
      (exports.virtual || (exports.virtual = {}))[key] = out;
      // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
      if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
    }
  }
};
// type bitmap
$export.F = 1;   // forced
$export.G = 2;   // global
$export.S = 4;   // static
$export.P = 8;   // proto
$export.B = 16;  // bind
$export.W = 32;  // wrap
$export.U = 64;  // safe
$export.R = 128; // real proto method for `library`
module.exports = $export;


/***/ }),

/***/ "./node_modules/core-js/library/modules/_fails.js":
/*!********************************************************!*\
  !*** ./node_modules/core-js/library/modules/_fails.js ***!
  \********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = function (exec) {
  try {
    return !!exec();
  } catch (e) {
    return true;
  }
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_global.js":
/*!*********************************************************!*\
  !*** ./node_modules/core-js/library/modules/_global.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
var global = module.exports = typeof window != 'undefined' && window.Math == Math
  ? window : typeof self != 'undefined' && self.Math == Math ? self
  // eslint-disable-next-line no-new-func
  : Function('return this')();
if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef


/***/ }),

/***/ "./node_modules/core-js/library/modules/_has.js":
/*!******************************************************!*\
  !*** ./node_modules/core-js/library/modules/_has.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

var hasOwnProperty = {}.hasOwnProperty;
module.exports = function (it, key) {
  return hasOwnProperty.call(it, key);
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_hide.js":
/*!*******************************************************!*\
  !*** ./node_modules/core-js/library/modules/_hide.js ***!
  \*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var dP = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js");
var createDesc = __webpack_require__(/*! ./_property-desc */ "./node_modules/core-js/library/modules/_property-desc.js");
module.exports = __webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js") ? function (object, key, value) {
  return dP.f(object, key, createDesc(1, value));
} : function (object, key, value) {
  object[key] = value;
  return object;
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_html.js":
/*!*******************************************************!*\
  !*** ./node_modules/core-js/library/modules/_html.js ***!
  \*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var document = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js").document;
module.exports = document && document.documentElement;


/***/ }),

/***/ "./node_modules/core-js/library/modules/_ie8-dom-define.js":
/*!*****************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_ie8-dom-define.js ***!
  \*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = !__webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js") && !__webpack_require__(/*! ./_fails */ "./node_modules/core-js/library/modules/_fails.js")(function () {
  return Object.defineProperty(__webpack_require__(/*! ./_dom-create */ "./node_modules/core-js/library/modules/_dom-create.js")('div'), 'a', { get: function () { return 7; } }).a != 7;
});


/***/ }),

/***/ "./node_modules/core-js/library/modules/_iobject.js":
/*!**********************************************************!*\
  !*** ./node_modules/core-js/library/modules/_iobject.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// fallback for non-array-like ES3 and non-enumerable old V8 strings
var cof = __webpack_require__(/*! ./_cof */ "./node_modules/core-js/library/modules/_cof.js");
// eslint-disable-next-line no-prototype-builtins
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
  return cof(it) == 'String' ? it.split('') : Object(it);
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_is-array-iter.js":
/*!****************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_is-array-iter.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// check on default Array iterator
var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/core-js/library/modules/_iterators.js");
var ITERATOR = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('iterator');
var ArrayProto = Array.prototype;

module.exports = function (it) {
  return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_is-array.js":
/*!***********************************************************!*\
  !*** ./node_modules/core-js/library/modules/_is-array.js ***!
  \***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 7.2.2 IsArray(argument)
var cof = __webpack_require__(/*! ./_cof */ "./node_modules/core-js/library/modules/_cof.js");
module.exports = Array.isArray || function isArray(arg) {
  return cof(arg) == 'Array';
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_is-object.js":
/*!************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_is-object.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = function (it) {
  return typeof it === 'object' ? it !== null : typeof it === 'function';
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_iter-call.js":
/*!************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_iter-call.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// call something on iterator step with safe closing on error
var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/core-js/library/modules/_an-object.js");
module.exports = function (iterator, fn, value, entries) {
  try {
    return entries ? fn(anObject(value)[0], value[1]) : fn(value);
  // 7.4.6 IteratorClose(iterator, completion)
  } catch (e) {
    var ret = iterator['return'];
    if (ret !== undefined) anObject(ret.call(iterator));
    throw e;
  }
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_iter-create.js":
/*!**************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_iter-create.js ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var create = __webpack_require__(/*! ./_object-create */ "./node_modules/core-js/library/modules/_object-create.js");
var descriptor = __webpack_require__(/*! ./_property-desc */ "./node_modules/core-js/library/modules/_property-desc.js");
var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "./node_modules/core-js/library/modules/_set-to-string-tag.js");
var IteratorPrototype = {};

// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
__webpack_require__(/*! ./_hide */ "./node_modules/core-js/library/modules/_hide.js")(IteratorPrototype, __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('iterator'), function () { return this; });

module.exports = function (Constructor, NAME, next) {
  Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
  setToStringTag(Constructor, NAME + ' Iterator');
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_iter-define.js":
/*!**************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_iter-define.js ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var LIBRARY = __webpack_require__(/*! ./_library */ "./node_modules/core-js/library/modules/_library.js");
var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/library/modules/_export.js");
var redefine = __webpack_require__(/*! ./_redefine */ "./node_modules/core-js/library/modules/_redefine.js");
var hide = __webpack_require__(/*! ./_hide */ "./node_modules/core-js/library/modules/_hide.js");
var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/core-js/library/modules/_iterators.js");
var $iterCreate = __webpack_require__(/*! ./_iter-create */ "./node_modules/core-js/library/modules/_iter-create.js");
var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "./node_modules/core-js/library/modules/_set-to-string-tag.js");
var getPrototypeOf = __webpack_require__(/*! ./_object-gpo */ "./node_modules/core-js/library/modules/_object-gpo.js");
var ITERATOR = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('iterator');
var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
var FF_ITERATOR = '@@iterator';
var KEYS = 'keys';
var VALUES = 'values';

var returnThis = function () { return this; };

module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
  $iterCreate(Constructor, NAME, next);
  var getMethod = function (kind) {
    if (!BUGGY && kind in proto) return proto[kind];
    switch (kind) {
      case KEYS: return function keys() { return new Constructor(this, kind); };
      case VALUES: return function values() { return new Constructor(this, kind); };
    } return function entries() { return new Constructor(this, kind); };
  };
  var TAG = NAME + ' Iterator';
  var DEF_VALUES = DEFAULT == VALUES;
  var VALUES_BUG = false;
  var proto = Base.prototype;
  var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
  var $default = $native || getMethod(DEFAULT);
  var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
  var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
  var methods, key, IteratorPrototype;
  // Fix native
  if ($anyNative) {
    IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
    if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
      // Set @@toStringTag to native iterators
      setToStringTag(IteratorPrototype, TAG, true);
      // fix for some old engines
      if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
    }
  }
  // fix Array#{values, @@iterator}.name in V8 / FF
  if (DEF_VALUES && $native && $native.name !== VALUES) {
    VALUES_BUG = true;
    $default = function values() { return $native.call(this); };
  }
  // Define iterator
  if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
    hide(proto, ITERATOR, $default);
  }
  // Plug for library
  Iterators[NAME] = $default;
  Iterators[TAG] = returnThis;
  if (DEFAULT) {
    methods = {
      values: DEF_VALUES ? $default : getMethod(VALUES),
      keys: IS_SET ? $default : getMethod(KEYS),
      entries: $entries
    };
    if (FORCED) for (key in methods) {
      if (!(key in proto)) redefine(proto, key, methods[key]);
    } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
  }
  return methods;
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_iter-detect.js":
/*!**************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_iter-detect.js ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var ITERATOR = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('iterator');
var SAFE_CLOSING = false;

try {
  var riter = [7][ITERATOR]();
  riter['return'] = function () { SAFE_CLOSING = true; };
  // eslint-disable-next-line no-throw-literal
  Array.from(riter, function () { throw 2; });
} catch (e) { /* empty */ }

module.exports = function (exec, skipClosing) {
  if (!skipClosing && !SAFE_CLOSING) return false;
  var safe = false;
  try {
    var arr = [7];
    var iter = arr[ITERATOR]();
    iter.next = function () { return { done: safe = true }; };
    arr[ITERATOR] = function () { return iter; };
    exec(arr);
  } catch (e) { /* empty */ }
  return safe;
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_iter-step.js":
/*!************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_iter-step.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = function (done, value) {
  return { value: value, done: !!done };
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_iterators.js":
/*!************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_iterators.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = {};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_library.js":
/*!**********************************************************!*\
  !*** ./node_modules/core-js/library/modules/_library.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = true;


/***/ }),

/***/ "./node_modules/core-js/library/modules/_meta.js":
/*!*******************************************************!*\
  !*** ./node_modules/core-js/library/modules/_meta.js ***!
  \*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var META = __webpack_require__(/*! ./_uid */ "./node_modules/core-js/library/modules/_uid.js")('meta');
var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/core-js/library/modules/_is-object.js");
var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
var setDesc = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js").f;
var id = 0;
var isExtensible = Object.isExtensible || function () {
  return true;
};
var FREEZE = !__webpack_require__(/*! ./_fails */ "./node_modules/core-js/library/modules/_fails.js")(function () {
  return isExtensible(Object.preventExtensions({}));
});
var setMeta = function (it) {
  setDesc(it, META, { value: {
    i: 'O' + ++id, // object ID
    w: {}          // weak collections IDs
  } });
};
var fastKey = function (it, create) {
  // return primitive with prefix
  if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
  if (!has(it, META)) {
    // can't set metadata to uncaught frozen object
    if (!isExtensible(it)) return 'F';
    // not necessary to add metadata
    if (!create) return 'E';
    // add missing metadata
    setMeta(it);
  // return object ID
  } return it[META].i;
};
var getWeak = function (it, create) {
  if (!has(it, META)) {
    // can't set metadata to uncaught frozen object
    if (!isExtensible(it)) return true;
    // not necessary to add metadata
    if (!create) return false;
    // add missing metadata
    setMeta(it);
  // return hash weak collections IDs
  } return it[META].w;
};
// add metadata on freeze-family methods calling
var onFreeze = function (it) {
  if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
  return it;
};
var meta = module.exports = {
  KEY: META,
  NEED: false,
  fastKey: fastKey,
  getWeak: getWeak,
  onFreeze: onFreeze
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_object-assign.js":
/*!****************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_object-assign.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// 19.1.2.1 Object.assign(target, source, ...)
var getKeys = __webpack_require__(/*! ./_object-keys */ "./node_modules/core-js/library/modules/_object-keys.js");
var gOPS = __webpack_require__(/*! ./_object-gops */ "./node_modules/core-js/library/modules/_object-gops.js");
var pIE = __webpack_require__(/*! ./_object-pie */ "./node_modules/core-js/library/modules/_object-pie.js");
var toObject = __webpack_require__(/*! ./_to-object */ "./node_modules/core-js/library/modules/_to-object.js");
var IObject = __webpack_require__(/*! ./_iobject */ "./node_modules/core-js/library/modules/_iobject.js");
var $assign = Object.assign;

// should work with symbols and should have deterministic property order (V8 bug)
module.exports = !$assign || __webpack_require__(/*! ./_fails */ "./node_modules/core-js/library/modules/_fails.js")(function () {
  var A = {};
  var B = {};
  // eslint-disable-next-line no-undef
  var S = Symbol();
  var K = 'abcdefghijklmnopqrst';
  A[S] = 7;
  K.split('').forEach(function (k) { B[k] = k; });
  return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars
  var T = toObject(target);
  var aLen = arguments.length;
  var index = 1;
  var getSymbols = gOPS.f;
  var isEnum = pIE.f;
  while (aLen > index) {
    var S = IObject(arguments[index++]);
    var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
    var length = keys.length;
    var j = 0;
    var key;
    while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];
  } return T;
} : $assign;


/***/ }),

/***/ "./node_modules/core-js/library/modules/_object-create.js":
/*!****************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_object-create.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/core-js/library/modules/_an-object.js");
var dPs = __webpack_require__(/*! ./_object-dps */ "./node_modules/core-js/library/modules/_object-dps.js");
var enumBugKeys = __webpack_require__(/*! ./_enum-bug-keys */ "./node_modules/core-js/library/modules/_enum-bug-keys.js");
var IE_PROTO = __webpack_require__(/*! ./_shared-key */ "./node_modules/core-js/library/modules/_shared-key.js")('IE_PROTO');
var Empty = function () { /* empty */ };
var PROTOTYPE = 'prototype';

// Create object with fake `null` prototype: use iframe Object with cleared prototype
var createDict = function () {
  // Thrash, waste and sodomy: IE GC bug
  var iframe = __webpack_require__(/*! ./_dom-create */ "./node_modules/core-js/library/modules/_dom-create.js")('iframe');
  var i = enumBugKeys.length;
  var lt = '<';
  var gt = '>';
  var iframeDocument;
  iframe.style.display = 'none';
  __webpack_require__(/*! ./_html */ "./node_modules/core-js/library/modules/_html.js").appendChild(iframe);
  iframe.src = 'javascript:'; // eslint-disable-line no-script-url
  // createDict = iframe.contentWindow.Object;
  // html.removeChild(iframe);
  iframeDocument = iframe.contentWindow.document;
  iframeDocument.open();
  iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
  iframeDocument.close();
  createDict = iframeDocument.F;
  while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
  return createDict();
};

module.exports = Object.create || function create(O, Properties) {
  var result;
  if (O !== null) {
    Empty[PROTOTYPE] = anObject(O);
    result = new Empty();
    Empty[PROTOTYPE] = null;
    // add "__proto__" for Object.getPrototypeOf polyfill
    result[IE_PROTO] = O;
  } else result = createDict();
  return Properties === undefined ? result : dPs(result, Properties);
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_object-dp.js":
/*!************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_object-dp.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/core-js/library/modules/_an-object.js");
var IE8_DOM_DEFINE = __webpack_require__(/*! ./_ie8-dom-define */ "./node_modules/core-js/library/modules/_ie8-dom-define.js");
var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "./node_modules/core-js/library/modules/_to-primitive.js");
var dP = Object.defineProperty;

exports.f = __webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js") ? Object.defineProperty : function defineProperty(O, P, Attributes) {
  anObject(O);
  P = toPrimitive(P, true);
  anObject(Attributes);
  if (IE8_DOM_DEFINE) try {
    return dP(O, P, Attributes);
  } catch (e) { /* empty */ }
  if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
  if ('value' in Attributes) O[P] = Attributes.value;
  return O;
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_object-dps.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_object-dps.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var dP = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js");
var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/core-js/library/modules/_an-object.js");
var getKeys = __webpack_require__(/*! ./_object-keys */ "./node_modules/core-js/library/modules/_object-keys.js");

module.exports = __webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js") ? Object.defineProperties : function defineProperties(O, Properties) {
  anObject(O);
  var keys = getKeys(Properties);
  var length = keys.length;
  var i = 0;
  var P;
  while (length > i) dP.f(O, P = keys[i++], Properties[P]);
  return O;
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_object-gopd.js":
/*!**************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_object-gopd.js ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var pIE = __webpack_require__(/*! ./_object-pie */ "./node_modules/core-js/library/modules/_object-pie.js");
var createDesc = __webpack_require__(/*! ./_property-desc */ "./node_modules/core-js/library/modules/_property-desc.js");
var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/core-js/library/modules/_to-iobject.js");
var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "./node_modules/core-js/library/modules/_to-primitive.js");
var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
var IE8_DOM_DEFINE = __webpack_require__(/*! ./_ie8-dom-define */ "./node_modules/core-js/library/modules/_ie8-dom-define.js");
var gOPD = Object.getOwnPropertyDescriptor;

exports.f = __webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js") ? gOPD : function getOwnPropertyDescriptor(O, P) {
  O = toIObject(O);
  P = toPrimitive(P, true);
  if (IE8_DOM_DEFINE) try {
    return gOPD(O, P);
  } catch (e) { /* empty */ }
  if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_object-gopn-ext.js":
/*!******************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_object-gopn-ext.js ***!
  \******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/core-js/library/modules/_to-iobject.js");
var gOPN = __webpack_require__(/*! ./_object-gopn */ "./node_modules/core-js/library/modules/_object-gopn.js").f;
var toString = {}.toString;

var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
  ? Object.getOwnPropertyNames(window) : [];

var getWindowNames = function (it) {
  try {
    return gOPN(it);
  } catch (e) {
    return windowNames.slice();
  }
};

module.exports.f = function getOwnPropertyNames(it) {
  return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_object-gopn.js":
/*!**************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_object-gopn.js ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
var $keys = __webpack_require__(/*! ./_object-keys-internal */ "./node_modules/core-js/library/modules/_object-keys-internal.js");
var hiddenKeys = __webpack_require__(/*! ./_enum-bug-keys */ "./node_modules/core-js/library/modules/_enum-bug-keys.js").concat('length', 'prototype');

exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  return $keys(O, hiddenKeys);
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_object-gops.js":
/*!**************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_object-gops.js ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

exports.f = Object.getOwnPropertySymbols;


/***/ }),

/***/ "./node_modules/core-js/library/modules/_object-gpo.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_object-gpo.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
var toObject = __webpack_require__(/*! ./_to-object */ "./node_modules/core-js/library/modules/_to-object.js");
var IE_PROTO = __webpack_require__(/*! ./_shared-key */ "./node_modules/core-js/library/modules/_shared-key.js")('IE_PROTO');
var ObjectProto = Object.prototype;

module.exports = Object.getPrototypeOf || function (O) {
  O = toObject(O);
  if (has(O, IE_PROTO)) return O[IE_PROTO];
  if (typeof O.constructor == 'function' && O instanceof O.constructor) {
    return O.constructor.prototype;
  } return O instanceof Object ? ObjectProto : null;
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_object-keys-internal.js":
/*!***********************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_object-keys-internal.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/core-js/library/modules/_to-iobject.js");
var arrayIndexOf = __webpack_require__(/*! ./_array-includes */ "./node_modules/core-js/library/modules/_array-includes.js")(false);
var IE_PROTO = __webpack_require__(/*! ./_shared-key */ "./node_modules/core-js/library/modules/_shared-key.js")('IE_PROTO');

module.exports = function (object, names) {
  var O = toIObject(object);
  var i = 0;
  var result = [];
  var key;
  for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
  // Don't enum bug & hidden keys
  while (names.length > i) if (has(O, key = names[i++])) {
    ~arrayIndexOf(result, key) || result.push(key);
  }
  return result;
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_object-keys.js":
/*!**************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_object-keys.js ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.2.14 / 15.2.3.14 Object.keys(O)
var $keys = __webpack_require__(/*! ./_object-keys-internal */ "./node_modules/core-js/library/modules/_object-keys-internal.js");
var enumBugKeys = __webpack_require__(/*! ./_enum-bug-keys */ "./node_modules/core-js/library/modules/_enum-bug-keys.js");

module.exports = Object.keys || function keys(O) {
  return $keys(O, enumBugKeys);
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_object-pie.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_object-pie.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

exports.f = {}.propertyIsEnumerable;


/***/ }),

/***/ "./node_modules/core-js/library/modules/_object-sap.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_object-sap.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// most Object methods by ES6 should accept primitives
var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/library/modules/_export.js");
var core = __webpack_require__(/*! ./_core */ "./node_modules/core-js/library/modules/_core.js");
var fails = __webpack_require__(/*! ./_fails */ "./node_modules/core-js/library/modules/_fails.js");
module.exports = function (KEY, exec) {
  var fn = (core.Object || {})[KEY] || Object[KEY];
  var exp = {};
  exp[KEY] = exec(fn);
  $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_object-to-array.js":
/*!******************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_object-to-array.js ***!
  \******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var getKeys = __webpack_require__(/*! ./_object-keys */ "./node_modules/core-js/library/modules/_object-keys.js");
var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/core-js/library/modules/_to-iobject.js");
var isEnum = __webpack_require__(/*! ./_object-pie */ "./node_modules/core-js/library/modules/_object-pie.js").f;
module.exports = function (isEntries) {
  return function (it) {
    var O = toIObject(it);
    var keys = getKeys(O);
    var length = keys.length;
    var i = 0;
    var result = [];
    var key;
    while (length > i) if (isEnum.call(O, key = keys[i++])) {
      result.push(isEntries ? [key, O[key]] : O[key]);
    } return result;
  };
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_parse-int.js":
/*!************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_parse-int.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var $parseInt = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js").parseInt;
var $trim = __webpack_require__(/*! ./_string-trim */ "./node_modules/core-js/library/modules/_string-trim.js").trim;
var ws = __webpack_require__(/*! ./_string-ws */ "./node_modules/core-js/library/modules/_string-ws.js");
var hex = /^[-+]?0[xX]/;

module.exports = $parseInt(ws + '08') !== 8 || $parseInt(ws + '0x16') !== 22 ? function parseInt(str, radix) {
  var string = $trim(String(str), 3);
  return $parseInt(string, (radix >>> 0) || (hex.test(string) ? 16 : 10));
} : $parseInt;


/***/ }),

/***/ "./node_modules/core-js/library/modules/_property-desc.js":
/*!****************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_property-desc.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = function (bitmap, value) {
  return {
    enumerable: !(bitmap & 1),
    configurable: !(bitmap & 2),
    writable: !(bitmap & 4),
    value: value
  };
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_redefine.js":
/*!***********************************************************!*\
  !*** ./node_modules/core-js/library/modules/_redefine.js ***!
  \***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! ./_hide */ "./node_modules/core-js/library/modules/_hide.js");


/***/ }),

/***/ "./node_modules/core-js/library/modules/_set-proto.js":
/*!************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_set-proto.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// Works with __proto__ only. Old v8 can't work with null proto objects.
/* eslint-disable no-proto */
var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/core-js/library/modules/_is-object.js");
var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/core-js/library/modules/_an-object.js");
var check = function (O, proto) {
  anObject(O);
  if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
};
module.exports = {
  set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
    function (test, buggy, set) {
      try {
        set = __webpack_require__(/*! ./_ctx */ "./node_modules/core-js/library/modules/_ctx.js")(Function.call, __webpack_require__(/*! ./_object-gopd */ "./node_modules/core-js/library/modules/_object-gopd.js").f(Object.prototype, '__proto__').set, 2);
        set(test, []);
        buggy = !(test instanceof Array);
      } catch (e) { buggy = true; }
      return function setPrototypeOf(O, proto) {
        check(O, proto);
        if (buggy) O.__proto__ = proto;
        else set(O, proto);
        return O;
      };
    }({}, false) : undefined),
  check: check
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_set-to-string-tag.js":
/*!********************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_set-to-string-tag.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var def = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js").f;
var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
var TAG = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('toStringTag');

module.exports = function (it, tag, stat) {
  if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_shared-key.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_shared-key.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var shared = __webpack_require__(/*! ./_shared */ "./node_modules/core-js/library/modules/_shared.js")('keys');
var uid = __webpack_require__(/*! ./_uid */ "./node_modules/core-js/library/modules/_uid.js");
module.exports = function (key) {
  return shared[key] || (shared[key] = uid(key));
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_shared.js":
/*!*********************************************************!*\
  !*** ./node_modules/core-js/library/modules/_shared.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var core = __webpack_require__(/*! ./_core */ "./node_modules/core-js/library/modules/_core.js");
var global = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js");
var SHARED = '__core-js_shared__';
var store = global[SHARED] || (global[SHARED] = {});

(module.exports = function (key, value) {
  return store[key] || (store[key] = value !== undefined ? value : {});
})('versions', []).push({
  version: core.version,
  mode: __webpack_require__(/*! ./_library */ "./node_modules/core-js/library/modules/_library.js") ? 'pure' : 'global',
  copyright: '© 2018 Denis Pushkarev (zloirock.ru)'
});


/***/ }),

/***/ "./node_modules/core-js/library/modules/_string-at.js":
/*!************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_string-at.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var toInteger = __webpack_require__(/*! ./_to-integer */ "./node_modules/core-js/library/modules/_to-integer.js");
var defined = __webpack_require__(/*! ./_defined */ "./node_modules/core-js/library/modules/_defined.js");
// true  -> String#at
// false -> String#codePointAt
module.exports = function (TO_STRING) {
  return function (that, pos) {
    var s = String(defined(that));
    var i = toInteger(pos);
    var l = s.length;
    var a, b;
    if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
    a = s.charCodeAt(i);
    return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
      ? TO_STRING ? s.charAt(i) : a
      : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
  };
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_string-trim.js":
/*!**************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_string-trim.js ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/library/modules/_export.js");
var defined = __webpack_require__(/*! ./_defined */ "./node_modules/core-js/library/modules/_defined.js");
var fails = __webpack_require__(/*! ./_fails */ "./node_modules/core-js/library/modules/_fails.js");
var spaces = __webpack_require__(/*! ./_string-ws */ "./node_modules/core-js/library/modules/_string-ws.js");
var space = '[' + spaces + ']';
var non = '\u200b\u0085';
var ltrim = RegExp('^' + space + space + '*');
var rtrim = RegExp(space + space + '*$');

var exporter = function (KEY, exec, ALIAS) {
  var exp = {};
  var FORCE = fails(function () {
    return !!spaces[KEY]() || non[KEY]() != non;
  });
  var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];
  if (ALIAS) exp[ALIAS] = fn;
  $export($export.P + $export.F * FORCE, 'String', exp);
};

// 1 -> String#trimLeft
// 2 -> String#trimRight
// 3 -> String#trim
var trim = exporter.trim = function (string, TYPE) {
  string = String(defined(string));
  if (TYPE & 1) string = string.replace(ltrim, '');
  if (TYPE & 2) string = string.replace(rtrim, '');
  return string;
};

module.exports = exporter;


/***/ }),

/***/ "./node_modules/core-js/library/modules/_string-ws.js":
/*!************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_string-ws.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' +
  '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';


/***/ }),

/***/ "./node_modules/core-js/library/modules/_to-absolute-index.js":
/*!********************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_to-absolute-index.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var toInteger = __webpack_require__(/*! ./_to-integer */ "./node_modules/core-js/library/modules/_to-integer.js");
var max = Math.max;
var min = Math.min;
module.exports = function (index, length) {
  index = toInteger(index);
  return index < 0 ? max(index + length, 0) : min(index, length);
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_to-integer.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_to-integer.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

// 7.1.4 ToInteger
var ceil = Math.ceil;
var floor = Math.floor;
module.exports = function (it) {
  return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_to-iobject.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_to-iobject.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// to indexed object, toObject with fallback for non-array-like ES3 strings
var IObject = __webpack_require__(/*! ./_iobject */ "./node_modules/core-js/library/modules/_iobject.js");
var defined = __webpack_require__(/*! ./_defined */ "./node_modules/core-js/library/modules/_defined.js");
module.exports = function (it) {
  return IObject(defined(it));
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_to-length.js":
/*!************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_to-length.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 7.1.15 ToLength
var toInteger = __webpack_require__(/*! ./_to-integer */ "./node_modules/core-js/library/modules/_to-integer.js");
var min = Math.min;
module.exports = function (it) {
  return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_to-object.js":
/*!************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_to-object.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 7.1.13 ToObject(argument)
var defined = __webpack_require__(/*! ./_defined */ "./node_modules/core-js/library/modules/_defined.js");
module.exports = function (it) {
  return Object(defined(it));
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_to-primitive.js":
/*!***************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_to-primitive.js ***!
  \***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 7.1.1 ToPrimitive(input [, PreferredType])
var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/core-js/library/modules/_is-object.js");
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
// and the second argument - flag - preferred type is a string
module.exports = function (it, S) {
  if (!isObject(it)) return it;
  var fn, val;
  if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
  if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
  if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
  throw TypeError("Can't convert object to primitive value");
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_uid.js":
/*!******************************************************!*\
  !*** ./node_modules/core-js/library/modules/_uid.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

var id = 0;
var px = Math.random();
module.exports = function (key) {
  return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_wks-define.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_wks-define.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var global = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js");
var core = __webpack_require__(/*! ./_core */ "./node_modules/core-js/library/modules/_core.js");
var LIBRARY = __webpack_require__(/*! ./_library */ "./node_modules/core-js/library/modules/_library.js");
var wksExt = __webpack_require__(/*! ./_wks-ext */ "./node_modules/core-js/library/modules/_wks-ext.js");
var defineProperty = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js").f;
module.exports = function (name) {
  var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
  if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_wks-ext.js":
/*!**********************************************************!*\
  !*** ./node_modules/core-js/library/modules/_wks-ext.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

exports.f = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js");


/***/ }),

/***/ "./node_modules/core-js/library/modules/_wks.js":
/*!******************************************************!*\
  !*** ./node_modules/core-js/library/modules/_wks.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var store = __webpack_require__(/*! ./_shared */ "./node_modules/core-js/library/modules/_shared.js")('wks');
var uid = __webpack_require__(/*! ./_uid */ "./node_modules/core-js/library/modules/_uid.js");
var Symbol = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js").Symbol;
var USE_SYMBOL = typeof Symbol == 'function';

var $exports = module.exports = function (name) {
  return store[name] || (store[name] =
    USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
};

$exports.store = store;


/***/ }),

/***/ "./node_modules/core-js/library/modules/core.get-iterator-method.js":
/*!**************************************************************************!*\
  !*** ./node_modules/core-js/library/modules/core.get-iterator-method.js ***!
  \**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var classof = __webpack_require__(/*! ./_classof */ "./node_modules/core-js/library/modules/_classof.js");
var ITERATOR = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('iterator');
var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/core-js/library/modules/_iterators.js");
module.exports = __webpack_require__(/*! ./_core */ "./node_modules/core-js/library/modules/_core.js").getIteratorMethod = function (it) {
  if (it != undefined) return it[ITERATOR]
    || it['@@iterator']
    || Iterators[classof(it)];
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/es6.array.from.js":
/*!****************************************************************!*\
  !*** ./node_modules/core-js/library/modules/es6.array.from.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var ctx = __webpack_require__(/*! ./_ctx */ "./node_modules/core-js/library/modules/_ctx.js");
var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/library/modules/_export.js");
var toObject = __webpack_require__(/*! ./_to-object */ "./node_modules/core-js/library/modules/_to-object.js");
var call = __webpack_require__(/*! ./_iter-call */ "./node_modules/core-js/library/modules/_iter-call.js");
var isArrayIter = __webpack_require__(/*! ./_is-array-iter */ "./node_modules/core-js/library/modules/_is-array-iter.js");
var toLength = __webpack_require__(/*! ./_to-length */ "./node_modules/core-js/library/modules/_to-length.js");
var createProperty = __webpack_require__(/*! ./_create-property */ "./node_modules/core-js/library/modules/_create-property.js");
var getIterFn = __webpack_require__(/*! ./core.get-iterator-method */ "./node_modules/core-js/library/modules/core.get-iterator-method.js");

$export($export.S + $export.F * !__webpack_require__(/*! ./_iter-detect */ "./node_modules/core-js/library/modules/_iter-detect.js")(function (iter) { Array.from(iter); }), 'Array', {
  // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)
  from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
    var O = toObject(arrayLike);
    var C = typeof this == 'function' ? this : Array;
    var aLen = arguments.length;
    var mapfn = aLen > 1 ? arguments[1] : undefined;
    var mapping = mapfn !== undefined;
    var index = 0;
    var iterFn = getIterFn(O);
    var length, result, step, iterator;
    if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);
    // if object isn't iterable or it's array with default iterator - use simple case
    if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) {
      for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) {
        createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value);
      }
    } else {
      length = toLength(O.length);
      for (result = new C(length); length > index; index++) {
        createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);
      }
    }
    result.length = index;
    return result;
  }
});


/***/ }),

/***/ "./node_modules/core-js/library/modules/es6.array.is-array.js":
/*!********************************************************************!*\
  !*** ./node_modules/core-js/library/modules/es6.array.is-array.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 22.1.2.2 / 15.4.3.2 Array.isArray(arg)
var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/library/modules/_export.js");

$export($export.S, 'Array', { isArray: __webpack_require__(/*! ./_is-array */ "./node_modules/core-js/library/modules/_is-array.js") });


/***/ }),

/***/ "./node_modules/core-js/library/modules/es6.array.iterator.js":
/*!********************************************************************!*\
  !*** ./node_modules/core-js/library/modules/es6.array.iterator.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var addToUnscopables = __webpack_require__(/*! ./_add-to-unscopables */ "./node_modules/core-js/library/modules/_add-to-unscopables.js");
var step = __webpack_require__(/*! ./_iter-step */ "./node_modules/core-js/library/modules/_iter-step.js");
var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/core-js/library/modules/_iterators.js");
var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/core-js/library/modules/_to-iobject.js");

// 22.1.3.4 Array.prototype.entries()
// 22.1.3.13 Array.prototype.keys()
// 22.1.3.29 Array.prototype.values()
// 22.1.3.30 Array.prototype[@@iterator]()
module.exports = __webpack_require__(/*! ./_iter-define */ "./node_modules/core-js/library/modules/_iter-define.js")(Array, 'Array', function (iterated, kind) {
  this._t = toIObject(iterated); // target
  this._i = 0;                   // next index
  this._k = kind;                // kind
// 22.1.5.2.1 %ArrayIteratorPrototype%.next()
}, function () {
  var O = this._t;
  var kind = this._k;
  var index = this._i++;
  if (!O || index >= O.length) {
    this._t = undefined;
    return step(1);
  }
  if (kind == 'keys') return step(0, index);
  if (kind == 'values') return step(0, O[index]);
  return step(0, [index, O[index]]);
}, 'values');

// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
Iterators.Arguments = Iterators.Array;

addToUnscopables('keys');
addToUnscopables('values');
addToUnscopables('entries');


/***/ }),

/***/ "./node_modules/core-js/library/modules/es6.object.assign.js":
/*!*******************************************************************!*\
  !*** ./node_modules/core-js/library/modules/es6.object.assign.js ***!
  \*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.3.1 Object.assign(target, source)
var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/library/modules/_export.js");

$export($export.S + $export.F, 'Object', { assign: __webpack_require__(/*! ./_object-assign */ "./node_modules/core-js/library/modules/_object-assign.js") });


/***/ }),

/***/ "./node_modules/core-js/library/modules/es6.object.create.js":
/*!*******************************************************************!*\
  !*** ./node_modules/core-js/library/modules/es6.object.create.js ***!
  \*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/library/modules/_export.js");
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
$export($export.S, 'Object', { create: __webpack_require__(/*! ./_object-create */ "./node_modules/core-js/library/modules/_object-create.js") });


/***/ }),

/***/ "./node_modules/core-js/library/modules/es6.object.define-property.js":
/*!****************************************************************************!*\
  !*** ./node_modules/core-js/library/modules/es6.object.define-property.js ***!
  \****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/library/modules/_export.js");
// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
$export($export.S + $export.F * !__webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js"), 'Object', { defineProperty: __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js").f });


/***/ }),

/***/ "./node_modules/core-js/library/modules/es6.object.get-own-property-descriptor.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/core-js/library/modules/es6.object.get-own-property-descriptor.js ***!
  \****************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/core-js/library/modules/_to-iobject.js");
var $getOwnPropertyDescriptor = __webpack_require__(/*! ./_object-gopd */ "./node_modules/core-js/library/modules/_object-gopd.js").f;

__webpack_require__(/*! ./_object-sap */ "./node_modules/core-js/library/modules/_object-sap.js")('getOwnPropertyDescriptor', function () {
  return function getOwnPropertyDescriptor(it, key) {
    return $getOwnPropertyDescriptor(toIObject(it), key);
  };
});


/***/ }),

/***/ "./node_modules/core-js/library/modules/es6.object.keys.js":
/*!*****************************************************************!*\
  !*** ./node_modules/core-js/library/modules/es6.object.keys.js ***!
  \*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.2.14 Object.keys(O)
var toObject = __webpack_require__(/*! ./_to-object */ "./node_modules/core-js/library/modules/_to-object.js");
var $keys = __webpack_require__(/*! ./_object-keys */ "./node_modules/core-js/library/modules/_object-keys.js");

__webpack_require__(/*! ./_object-sap */ "./node_modules/core-js/library/modules/_object-sap.js")('keys', function () {
  return function keys(it) {
    return $keys(toObject(it));
  };
});


/***/ }),

/***/ "./node_modules/core-js/library/modules/es6.object.set-prototype-of.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/core-js/library/modules/es6.object.set-prototype-of.js ***!
  \*****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.3.19 Object.setPrototypeOf(O, proto)
var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/library/modules/_export.js");
$export($export.S, 'Object', { setPrototypeOf: __webpack_require__(/*! ./_set-proto */ "./node_modules/core-js/library/modules/_set-proto.js").set });


/***/ }),

/***/ "./node_modules/core-js/library/modules/es6.object.to-string.js":
/*!**********************************************************************!*\
  !*** ./node_modules/core-js/library/modules/es6.object.to-string.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {



/***/ }),

/***/ "./node_modules/core-js/library/modules/es6.parse-int.js":
/*!***************************************************************!*\
  !*** ./node_modules/core-js/library/modules/es6.parse-int.js ***!
  \***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/library/modules/_export.js");
var $parseInt = __webpack_require__(/*! ./_parse-int */ "./node_modules/core-js/library/modules/_parse-int.js");
// 18.2.5 parseInt(string, radix)
$export($export.G + $export.F * (parseInt != $parseInt), { parseInt: $parseInt });


/***/ }),

/***/ "./node_modules/core-js/library/modules/es6.string.iterator.js":
/*!*********************************************************************!*\
  !*** ./node_modules/core-js/library/modules/es6.string.iterator.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $at = __webpack_require__(/*! ./_string-at */ "./node_modules/core-js/library/modules/_string-at.js")(true);

// 21.1.3.27 String.prototype[@@iterator]()
__webpack_require__(/*! ./_iter-define */ "./node_modules/core-js/library/modules/_iter-define.js")(String, 'String', function (iterated) {
  this._t = String(iterated); // target
  this._i = 0;                // next index
// 21.1.5.2.1 %StringIteratorPrototype%.next()
}, function () {
  var O = this._t;
  var index = this._i;
  var point;
  if (index >= O.length) return { value: undefined, done: true };
  point = $at(O, index);
  this._i += point.length;
  return { value: point, done: false };
});


/***/ }),

/***/ "./node_modules/core-js/library/modules/es6.symbol.js":
/*!************************************************************!*\
  !*** ./node_modules/core-js/library/modules/es6.symbol.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// ECMAScript 6 symbols shim
var global = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js");
var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
var DESCRIPTORS = __webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js");
var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/library/modules/_export.js");
var redefine = __webpack_require__(/*! ./_redefine */ "./node_modules/core-js/library/modules/_redefine.js");
var META = __webpack_require__(/*! ./_meta */ "./node_modules/core-js/library/modules/_meta.js").KEY;
var $fails = __webpack_require__(/*! ./_fails */ "./node_modules/core-js/library/modules/_fails.js");
var shared = __webpack_require__(/*! ./_shared */ "./node_modules/core-js/library/modules/_shared.js");
var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "./node_modules/core-js/library/modules/_set-to-string-tag.js");
var uid = __webpack_require__(/*! ./_uid */ "./node_modules/core-js/library/modules/_uid.js");
var wks = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js");
var wksExt = __webpack_require__(/*! ./_wks-ext */ "./node_modules/core-js/library/modules/_wks-ext.js");
var wksDefine = __webpack_require__(/*! ./_wks-define */ "./node_modules/core-js/library/modules/_wks-define.js");
var enumKeys = __webpack_require__(/*! ./_enum-keys */ "./node_modules/core-js/library/modules/_enum-keys.js");
var isArray = __webpack_require__(/*! ./_is-array */ "./node_modules/core-js/library/modules/_is-array.js");
var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/core-js/library/modules/_an-object.js");
var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/core-js/library/modules/_is-object.js");
var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/core-js/library/modules/_to-iobject.js");
var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "./node_modules/core-js/library/modules/_to-primitive.js");
var createDesc = __webpack_require__(/*! ./_property-desc */ "./node_modules/core-js/library/modules/_property-desc.js");
var _create = __webpack_require__(/*! ./_object-create */ "./node_modules/core-js/library/modules/_object-create.js");
var gOPNExt = __webpack_require__(/*! ./_object-gopn-ext */ "./node_modules/core-js/library/modules/_object-gopn-ext.js");
var $GOPD = __webpack_require__(/*! ./_object-gopd */ "./node_modules/core-js/library/modules/_object-gopd.js");
var $DP = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js");
var $keys = __webpack_require__(/*! ./_object-keys */ "./node_modules/core-js/library/modules/_object-keys.js");
var gOPD = $GOPD.f;
var dP = $DP.f;
var gOPN = gOPNExt.f;
var $Symbol = global.Symbol;
var $JSON = global.JSON;
var _stringify = $JSON && $JSON.stringify;
var PROTOTYPE = 'prototype';
var HIDDEN = wks('_hidden');
var TO_PRIMITIVE = wks('toPrimitive');
var isEnum = {}.propertyIsEnumerable;
var SymbolRegistry = shared('symbol-registry');
var AllSymbols = shared('symbols');
var OPSymbols = shared('op-symbols');
var ObjectProto = Object[PROTOTYPE];
var USE_NATIVE = typeof $Symbol == 'function';
var QObject = global.QObject;
// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;

// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
var setSymbolDesc = DESCRIPTORS && $fails(function () {
  return _create(dP({}, 'a', {
    get: function () { return dP(this, 'a', { value: 7 }).a; }
  })).a != 7;
}) ? function (it, key, D) {
  var protoDesc = gOPD(ObjectProto, key);
  if (protoDesc) delete ObjectProto[key];
  dP(it, key, D);
  if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);
} : dP;

var wrap = function (tag) {
  var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
  sym._k = tag;
  return sym;
};

var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
  return typeof it == 'symbol';
} : function (it) {
  return it instanceof $Symbol;
};

var $defineProperty = function defineProperty(it, key, D) {
  if (it === ObjectProto) $defineProperty(OPSymbols, key, D);
  anObject(it);
  key = toPrimitive(key, true);
  anObject(D);
  if (has(AllSymbols, key)) {
    if (!D.enumerable) {
      if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
      it[HIDDEN][key] = true;
    } else {
      if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
      D = _create(D, { enumerable: createDesc(0, false) });
    } return setSymbolDesc(it, key, D);
  } return dP(it, key, D);
};
var $defineProperties = function defineProperties(it, P) {
  anObject(it);
  var keys = enumKeys(P = toIObject(P));
  var i = 0;
  var l = keys.length;
  var key;
  while (l > i) $defineProperty(it, key = keys[i++], P[key]);
  return it;
};
var $create = function create(it, P) {
  return P === undefined ? _create(it) : $defineProperties(_create(it), P);
};
var $propertyIsEnumerable = function propertyIsEnumerable(key) {
  var E = isEnum.call(this, key = toPrimitive(key, true));
  if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
  return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
};
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
  it = toIObject(it);
  key = toPrimitive(key, true);
  if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
  var D = gOPD(it, key);
  if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
  return D;
};
var $getOwnPropertyNames = function getOwnPropertyNames(it) {
  var names = gOPN(toIObject(it));
  var result = [];
  var i = 0;
  var key;
  while (names.length > i) {
    if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
  } return result;
};
var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
  var IS_OP = it === ObjectProto;
  var names = gOPN(IS_OP ? OPSymbols : toIObject(it));
  var result = [];
  var i = 0;
  var key;
  while (names.length > i) {
    if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
  } return result;
};

// 19.4.1.1 Symbol([description])
if (!USE_NATIVE) {
  $Symbol = function Symbol() {
    if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
    var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
    var $set = function (value) {
      if (this === ObjectProto) $set.call(OPSymbols, value);
      if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
      setSymbolDesc(this, tag, createDesc(1, value));
    };
    if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
    return wrap(tag);
  };
  redefine($Symbol[PROTOTYPE], 'toString', function toString() {
    return this._k;
  });

  $GOPD.f = $getOwnPropertyDescriptor;
  $DP.f = $defineProperty;
  __webpack_require__(/*! ./_object-gopn */ "./node_modules/core-js/library/modules/_object-gopn.js").f = gOPNExt.f = $getOwnPropertyNames;
  __webpack_require__(/*! ./_object-pie */ "./node_modules/core-js/library/modules/_object-pie.js").f = $propertyIsEnumerable;
  __webpack_require__(/*! ./_object-gops */ "./node_modules/core-js/library/modules/_object-gops.js").f = $getOwnPropertySymbols;

  if (DESCRIPTORS && !__webpack_require__(/*! ./_library */ "./node_modules/core-js/library/modules/_library.js")) {
    redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
  }

  wksExt.f = function (name) {
    return wrap(wks(name));
  };
}

$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });

for (var es6Symbols = (
  // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14
  'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);

for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);

$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
  // 19.4.2.1 Symbol.for(key)
  'for': function (key) {
    return has(SymbolRegistry, key += '')
      ? SymbolRegistry[key]
      : SymbolRegistry[key] = $Symbol(key);
  },
  // 19.4.2.5 Symbol.keyFor(sym)
  keyFor: function keyFor(sym) {
    if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
    for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
  },
  useSetter: function () { setter = true; },
  useSimple: function () { setter = false; }
});

$export($export.S + $export.F * !USE_NATIVE, 'Object', {
  // 19.1.2.2 Object.create(O [, Properties])
  create: $create,
  // 19.1.2.4 Object.defineProperty(O, P, Attributes)
  defineProperty: $defineProperty,
  // 19.1.2.3 Object.defineProperties(O, Properties)
  defineProperties: $defineProperties,
  // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
  getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
  // 19.1.2.7 Object.getOwnPropertyNames(O)
  getOwnPropertyNames: $getOwnPropertyNames,
  // 19.1.2.8 Object.getOwnPropertySymbols(O)
  getOwnPropertySymbols: $getOwnPropertySymbols
});

// 24.3.2 JSON.stringify(value [, replacer [, space]])
$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
  var S = $Symbol();
  // MS Edge converts symbol values to JSON as {}
  // WebKit converts symbol values to JSON as null
  // V8 throws on boxed symbols
  return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';
})), 'JSON', {
  stringify: function stringify(it) {
    var args = [it];
    var i = 1;
    var replacer, $replacer;
    while (arguments.length > i) args.push(arguments[i++]);
    $replacer = replacer = args[1];
    if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
    if (!isArray(replacer)) replacer = function (key, value) {
      if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
      if (!isSymbol(value)) return value;
    };
    args[1] = replacer;
    return _stringify.apply($JSON, args);
  }
});

// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(/*! ./_hide */ "./node_modules/core-js/library/modules/_hide.js")($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
// 19.4.3.5 Symbol.prototype[@@toStringTag]
setToStringTag($Symbol, 'Symbol');
// 20.2.1.9 Math[@@toStringTag]
setToStringTag(Math, 'Math', true);
// 24.3.3 JSON[@@toStringTag]
setToStringTag(global.JSON, 'JSON', true);


/***/ }),

/***/ "./node_modules/core-js/library/modules/es7.object.entries.js":
/*!********************************************************************!*\
  !*** ./node_modules/core-js/library/modules/es7.object.entries.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// https://github.com/tc39/proposal-object-values-entries
var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/library/modules/_export.js");
var $entries = __webpack_require__(/*! ./_object-to-array */ "./node_modules/core-js/library/modules/_object-to-array.js")(true);

$export($export.S, 'Object', {
  entries: function entries(it) {
    return $entries(it);
  }
});


/***/ }),

/***/ "./node_modules/core-js/library/modules/es7.object.values.js":
/*!*******************************************************************!*\
  !*** ./node_modules/core-js/library/modules/es7.object.values.js ***!
  \*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// https://github.com/tc39/proposal-object-values-entries
var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/library/modules/_export.js");
var $values = __webpack_require__(/*! ./_object-to-array */ "./node_modules/core-js/library/modules/_object-to-array.js")(false);

$export($export.S, 'Object', {
  values: function values(it) {
    return $values(it);
  }
});


/***/ }),

/***/ "./node_modules/core-js/library/modules/es7.symbol.async-iterator.js":
/*!***************************************************************************!*\
  !*** ./node_modules/core-js/library/modules/es7.symbol.async-iterator.js ***!
  \***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ./_wks-define */ "./node_modules/core-js/library/modules/_wks-define.js")('asyncIterator');


/***/ }),

/***/ "./node_modules/core-js/library/modules/es7.symbol.observable.js":
/*!***********************************************************************!*\
  !*** ./node_modules/core-js/library/modules/es7.symbol.observable.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ./_wks-define */ "./node_modules/core-js/library/modules/_wks-define.js")('observable');


/***/ }),

/***/ "./node_modules/core-js/library/modules/web.dom.iterable.js":
/*!******************************************************************!*\
  !*** ./node_modules/core-js/library/modules/web.dom.iterable.js ***!
  \******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ./es6.array.iterator */ "./node_modules/core-js/library/modules/es6.array.iterator.js");
var global = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js");
var hide = __webpack_require__(/*! ./_hide */ "./node_modules/core-js/library/modules/_hide.js");
var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/core-js/library/modules/_iterators.js");
var TO_STRING_TAG = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('toStringTag');

var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
  'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
  'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
  'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
  'TextTrackList,TouchList').split(',');

for (var i = 0; i < DOMIterables.length; i++) {
  var NAME = DOMIterables[i];
  var Collection = global[NAME];
  var proto = Collection && Collection.prototype;
  if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
  Iterators[NAME] = Iterators.Array;
}


/***/ }),

/***/ "./node_modules/create-react-context/lib/implementation.js":
/*!*****************************************************************!*\
  !*** ./node_modules/create-react-context/lib/implementation.js ***!
  \*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _gud = __webpack_require__(/*! gud */ "./node_modules/gud/index.js");

var _gud2 = _interopRequireDefault(_gud);

var _warning = __webpack_require__(/*! fbjs/lib/warning */ "./node_modules/fbjs/lib/warning.js");

var _warning2 = _interopRequireDefault(_warning);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

var MAX_SIGNED_31_BIT_INT = 1073741823;

// Inlined Object.is polyfill.
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
function objectIs(x, y) {
  if (x === y) {
    return x !== 0 || 1 / x === 1 / y;
  } else {
    return x !== x && y !== y;
  }
}

function createEventEmitter(value) {
  var handlers = [];
  return {
    on: function on(handler) {
      handlers.push(handler);
    },
    off: function off(handler) {
      handlers = handlers.filter(function (h) {
        return h !== handler;
      });
    },
    get: function get() {
      return value;
    },
    set: function set(newValue, changedBits) {
      value = newValue;
      handlers.forEach(function (handler) {
        return handler(value, changedBits);
      });
    }
  };
}

function onlyChild(children) {
  return Array.isArray(children) ? children[0] : children;
}

function createReactContext(defaultValue, calculateChangedBits) {
  var _Provider$childContex, _Consumer$contextType;

  var contextProp = '__create-react-context-' + (0, _gud2.default)() + '__';

  var Provider = function (_Component) {
    _inherits(Provider, _Component);

    function Provider() {
      var _temp, _this, _ret;

      _classCallCheck(this, Provider);

      for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.emitter = createEventEmitter(_this.props.value), _temp), _possibleConstructorReturn(_this, _ret);
    }

    Provider.prototype.getChildContext = function getChildContext() {
      var _ref;

      return _ref = {}, _ref[contextProp] = this.emitter, _ref;
    };

    Provider.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
      if (this.props.value !== nextProps.value) {
        var oldValue = this.props.value;
        var newValue = nextProps.value;
        var changedBits = void 0;

        if (objectIs(oldValue, newValue)) {
          changedBits = 0; // No change
        } else {
          changedBits = typeof calculateChangedBits === 'function' ? calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;
          if (true) {
            (0, _warning2.default)((changedBits & MAX_SIGNED_31_BIT_INT) === changedBits, 'calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: %s', changedBits);
          }

          changedBits |= 0;

          if (changedBits !== 0) {
            this.emitter.set(nextProps.value, changedBits);
          }
        }
      }
    };

    Provider.prototype.render = function render() {
      return this.props.children;
    };

    return Provider;
  }(_react.Component);

  Provider.childContextTypes = (_Provider$childContex = {}, _Provider$childContex[contextProp] = _propTypes2.default.object.isRequired, _Provider$childContex);

  var Consumer = function (_Component2) {
    _inherits(Consumer, _Component2);

    function Consumer() {
      var _temp2, _this2, _ret2;

      _classCallCheck(this, Consumer);

      for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
        args[_key2] = arguments[_key2];
      }

      return _ret2 = (_temp2 = (_this2 = _possibleConstructorReturn(this, _Component2.call.apply(_Component2, [this].concat(args))), _this2), _this2.state = {
        value: _this2.getValue()
      }, _this2.onUpdate = function (newValue, changedBits) {
        var observedBits = _this2.observedBits | 0;
        if ((observedBits & changedBits) !== 0) {
          _this2.setState({ value: _this2.getValue() });
        }
      }, _temp2), _possibleConstructorReturn(_this2, _ret2);
    }

    Consumer.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
      var observedBits = nextProps.observedBits;

      this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT // Subscribe to all changes by default
      : observedBits;
    };

    Consumer.prototype.componentDidMount = function componentDidMount() {
      if (this.context[contextProp]) {
        this.context[contextProp].on(this.onUpdate);
      }
      var observedBits = this.props.observedBits;

      this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT // Subscribe to all changes by default
      : observedBits;
    };

    Consumer.prototype.componentWillUnmount = function componentWillUnmount() {
      if (this.context[contextProp]) {
        this.context[contextProp].off(this.onUpdate);
      }
    };

    Consumer.prototype.getValue = function getValue() {
      if (this.context[contextProp]) {
        return this.context[contextProp].get();
      } else {
        return defaultValue;
      }
    };

    Consumer.prototype.render = function render() {
      return onlyChild(this.props.children)(this.state.value);
    };

    return Consumer;
  }(_react.Component);

  Consumer.contextTypes = (_Consumer$contextType = {}, _Consumer$contextType[contextProp] = _propTypes2.default.object, _Consumer$contextType);


  return {
    Provider: Provider,
    Consumer: Consumer
  };
}

exports.default = createReactContext;
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/create-react-context/lib/index.js":
/*!********************************************************!*\
  !*** ./node_modules/create-react-context/lib/index.js ***!
  \********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _implementation = __webpack_require__(/*! ./implementation */ "./node_modules/create-react-context/lib/implementation.js");

var _implementation2 = _interopRequireDefault(_implementation);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = _react2.default.createContext || _implementation2.default;
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/css-element-queries/index.js":
/*!***************************************************!*\
  !*** ./node_modules/css-element-queries/index.js ***!
  \***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = {
    ResizeSensor: __webpack_require__(/*! ./src/ResizeSensor */ "./node_modules/css-element-queries/src/ResizeSensor.js"),
    ElementQueries: __webpack_require__(/*! ./src/ElementQueries */ "./node_modules/css-element-queries/src/ElementQueries.js")
};


/***/ }),

/***/ "./node_modules/css-element-queries/src/ElementQueries.js":
/*!****************************************************************!*\
  !*** ./node_modules/css-element-queries/src/ElementQueries.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;

/**
 * Copyright Marc J. Schmidt. See the LICENSE file at the top-level
 * directory of this distribution and at
 * https://github.com/marcj/css-element-queries/blob/master/LICENSE.
 */
(function (root, factory) {
    if (true) {
        !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./ResizeSensor.js */ "./node_modules/css-element-queries/src/ResizeSensor.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
				__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
				(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
    } else {}
}(typeof window !== 'undefined' ? window : this, function (ResizeSensor) {

    /**
     *
     * @type {Function}
     * @constructor
     */
    var ElementQueries = function () {
        //<style> element with our dynamically created styles
        var cssStyleElement;

        //all rules found for element queries
        var allQueries = {};

        //association map to identify which selector belongs to a element from the animationstart event.
        var idToSelectorMapping = [];

        /**
         *
         * @param element
         * @returns {Number}
         */
        function getEmSize(element) {
            if (!element) {
                element = document.documentElement;
            }
            var fontSize = window.getComputedStyle(element, null).fontSize;
            return parseFloat(fontSize) || 16;
        }

        /**
         * Get element size
         * @param {HTMLElement} element
         * @returns {Object} {width, height}
         */
        function getElementSize(element) {
            if (!element.getBoundingClientRect) {
                return {
                    width: element.offsetWidth,
                    height: element.offsetHeight
                }
            }

            var rect = element.getBoundingClientRect();
            return {
                width: Math.round(rect.width),
                height: Math.round(rect.height)
            }
        }

        /**
         *
         * @copyright https://github.com/Mr0grog/element-query/blob/master/LICENSE
         *
         * @param {HTMLElement} element
         * @param {*} value
         * @returns {*}
         */
        function convertToPx(element, value) {
            var numbers = value.split(/\d/);
            var units = numbers[numbers.length - 1];
            value = parseFloat(value);
            switch (units) {
                case "px":
                    return value;
                case "em":
                    return value * getEmSize(element);
                case "rem":
                    return value * getEmSize();
                // Viewport units!
                // According to http://quirksmode.org/mobile/tableViewport.html
                // documentElement.clientWidth/Height gets us the most reliable info
                case "vw":
                    return value * document.documentElement.clientWidth / 100;
                case "vh":
                    return value * document.documentElement.clientHeight / 100;
                case "vmin":
                case "vmax":
                    var vw = document.documentElement.clientWidth / 100;
                    var vh = document.documentElement.clientHeight / 100;
                    var chooser = Math[units === "vmin" ? "min" : "max"];
                    return value * chooser(vw, vh);
                default:
                    return value;
                // for now, not supporting physical units (since they are just a set number of px)
                // or ex/ch (getting accurate measurements is hard)
            }
        }

        /**
         *
         * @param {HTMLElement} element
         * @param {String} id
         * @constructor
         */
        function SetupInformation(element, id) {
            this.element = element;
            var key, option, elementSize, value, actualValue, attrValues, attrValue, attrName;

            var attributes = ['min-width', 'min-height', 'max-width', 'max-height'];

            /**
             * Extracts the computed width/height and sets to min/max- attribute.
             */
            this.call = function () {
                // extract current dimensions
                elementSize = getElementSize(this.element);

                attrValues = {};

                for (key in allQueries[id]) {
                    if (!allQueries[id].hasOwnProperty(key)) {
                        continue;
                    }
                    option = allQueries[id][key];

                    value = convertToPx(this.element, option.value);

                    actualValue = option.property === 'width' ? elementSize.width : elementSize.height;
                    attrName = option.mode + '-' + option.property;
                    attrValue = '';

                    if (option.mode === 'min' && actualValue >= value) {
                        attrValue += option.value;
                    }

                    if (option.mode === 'max' && actualValue <= value) {
                        attrValue += option.value;
                    }

                    if (!attrValues[attrName]) attrValues[attrName] = '';
                    if (attrValue && -1 === (' ' + attrValues[attrName] + ' ').indexOf(' ' + attrValue + ' ')) {
                        attrValues[attrName] += ' ' + attrValue;
                    }
                }

                for (var k in attributes) {
                    if (!attributes.hasOwnProperty(k)) continue;

                    if (attrValues[attributes[k]]) {
                        this.element.setAttribute(attributes[k], attrValues[attributes[k]].substr(1));
                    } else {
                        this.element.removeAttribute(attributes[k]);
                    }
                }
            };
        }

        /**
         * @param {HTMLElement} element
         * @param {Object}      id
         */
        function setupElement(element, id) {
            if (!element.elementQueriesSetupInformation) {
                element.elementQueriesSetupInformation = new SetupInformation(element, id);
            }

            if (!element.elementQueriesSensor) {
                element.elementQueriesSensor = new ResizeSensor(element, function () {
                    element.elementQueriesSetupInformation.call();
                });
            }
        }

        /**
         * Stores rules to the selector that should be applied once resized.
         *
         * @param {String} selector
         * @param {String} mode min|max
         * @param {String} property width|height
         * @param {String} value
         */
        function queueQuery(selector, mode, property, value) {
            if (typeof(allQueries[selector]) === 'undefined') {
                allQueries[selector] = [];
                // add animation to trigger animationstart event, so we know exactly when a element appears in the DOM

                var id = idToSelectorMapping.length;
                cssStyleElement.innerHTML += '\n' + selector + ' {animation: 0.1s element-queries;}';
                cssStyleElement.innerHTML += '\n' + selector + ' > .resize-sensor {min-width: '+id+'px;}';
                idToSelectorMapping.push(selector);
            }

            allQueries[selector].push({
                mode: mode,
                property: property,
                value: value
            });
        }

        function getQuery(container) {
            var query;
            if (document.querySelectorAll) query = (container) ? container.querySelectorAll.bind(container) : document.querySelectorAll.bind(document);
            if (!query && 'undefined' !== typeof $$) query = $$;
            if (!query && 'undefined' !== typeof jQuery) query = jQuery;

            if (!query) {
                throw 'No document.querySelectorAll, jQuery or Mootools\'s $$ found.';
            }

            return query;
        }

        /**
         * If animationStart didn't catch a new element in the DOM, we can manually search for it
         */
        function findElementQueriesElements(container) {
            var query = getQuery(container);

            for (var selector in allQueries) if (allQueries.hasOwnProperty(selector)) {
                // find all elements based on the extract query selector from the element query rule
                var elements = query(selector, container);

                for (var i = 0, j = elements.length; i < j; i++) {
                    setupElement(elements[i], selector);
                }
            }
        }

        /**
         *
         * @param {HTMLElement} element
         */
        function attachResponsiveImage(element) {
            var children = [];
            var rules = [];
            var sources = [];
            var defaultImageId = 0;
            var lastActiveImage = -1;
            var loadedImages = [];

            for (var i in element.children) {
                if (!element.children.hasOwnProperty(i)) continue;

                if (element.children[i].tagName && element.children[i].tagName.toLowerCase() === 'img') {
                    children.push(element.children[i]);

                    var minWidth = element.children[i].getAttribute('min-width') || element.children[i].getAttribute('data-min-width');
                    //var minHeight = element.children[i].getAttribute('min-height') || element.children[i].getAttribute('data-min-height');
                    var src = element.children[i].getAttribute('data-src') || element.children[i].getAttribute('url');

                    sources.push(src);

                    var rule = {
                        minWidth: minWidth
                    };

                    rules.push(rule);

                    if (!minWidth) {
                        defaultImageId = children.length - 1;
                        element.children[i].style.display = 'block';
                    } else {
                        element.children[i].style.display = 'none';
                    }
                }
            }

            lastActiveImage = defaultImageId;

            function check() {
                var imageToDisplay = false, i;

                for (i in children) {
                    if (!children.hasOwnProperty(i)) continue;

                    if (rules[i].minWidth) {
                        if (element.offsetWidth > rules[i].minWidth) {
                            imageToDisplay = i;
                        }
                    }
                }

                if (!imageToDisplay) {
                    //no rule matched, show default
                    imageToDisplay = defaultImageId;
                }

                if (lastActiveImage !== imageToDisplay) {
                    //image change

                    if (!loadedImages[imageToDisplay]) {
                        //image has not been loaded yet, we need to load the image first in memory to prevent flash of
                        //no content

                        var image = new Image();
                        image.onload = function () {
                            children[imageToDisplay].src = sources[imageToDisplay];

                            children[lastActiveImage].style.display = 'none';
                            children[imageToDisplay].style.display = 'block';

                            loadedImages[imageToDisplay] = true;

                            lastActiveImage = imageToDisplay;
                        };

                        image.src = sources[imageToDisplay];
                    } else {
                        children[lastActiveImage].style.display = 'none';
                        children[imageToDisplay].style.display = 'block';
                        lastActiveImage = imageToDisplay;
                    }
                } else {
                    //make sure for initial check call the .src is set correctly
                    children[imageToDisplay].src = sources[imageToDisplay];
                }
            }

            element.resizeSensorInstance = new ResizeSensor(element, check);
            check();
        }

        function findResponsiveImages() {
            var query = getQuery();

            var elements = query('[data-responsive-image],[responsive-image]');
            for (var i = 0, j = elements.length; i < j; i++) {
                attachResponsiveImage(elements[i]);
            }
        }

        var regex = /,?[\s\t]*([^,\n]*?)((?:\[[\s\t]*?(?:min|max)-(?:width|height)[\s\t]*?[~$\^]?=[\s\t]*?"[^"]*?"[\s\t]*?])+)([^,\n\s\{]*)/mgi;
        var attrRegex = /\[[\s\t]*?(min|max)-(width|height)[\s\t]*?[~$\^]?=[\s\t]*?"([^"]*?)"[\s\t]*?]/mgi;

        /**
         * @param {String} css
         */
        function extractQuery(css) {
            var match, smatch, attrs, attrMatch;

            css = css.replace(/'/g, '"');
            while (null !== (match = regex.exec(css))) {
                smatch = match[1] + match[3];
                attrs = match[2];

                while (null !== (attrMatch = attrRegex.exec(attrs))) {
                    queueQuery(smatch, attrMatch[1], attrMatch[2], attrMatch[3]);
                }
            }
        }

        /**
         * @param {CssRule[]|String} rules
         */
        function readRules(rules) {
            var selector = '';

            if (!rules) {
                return;
            }

            if ('string' === typeof rules) {
                rules = rules.toLowerCase();
                if (-1 !== rules.indexOf('min-width') || -1 !== rules.indexOf('max-width')) {
                    extractQuery(rules);
                }
            } else {
                for (var i = 0, j = rules.length; i < j; i++) {
                    if (1 === rules[i].type) {
                        selector = rules[i].selectorText || rules[i].cssText;
                        if (-1 !== selector.indexOf('min-height') || -1 !== selector.indexOf('max-height')) {
                            extractQuery(selector);
                        } else if (-1 !== selector.indexOf('min-width') || -1 !== selector.indexOf('max-width')) {
                            extractQuery(selector);
                        }
                    } else if (4 === rules[i].type) {
                        readRules(rules[i].cssRules || rules[i].rules);
                    } else if (3 === rules[i].type) {
                        if(rules[i].styleSheet.hasOwnProperty("cssRules")) {
                            readRules(rules[i].styleSheet.cssRules);
                        }
                    }
                }
            }
        }

        var defaultCssInjected = false;

        /**
         * Searches all css rules and setups the event listener to all elements with element query rules..
         */
        this.init = function () {
            var animationStart = 'animationstart';
            if (typeof document.documentElement.style['webkitAnimationName'] !== 'undefined') {
                animationStart = 'webkitAnimationStart';
            } else if (typeof document.documentElement.style['MozAnimationName'] !== 'undefined') {
                animationStart = 'mozanimationstart';
            } else if (typeof document.documentElement.style['OAnimationName'] !== 'undefined') {
                animationStart = 'oanimationstart';
            }

            document.body.addEventListener(animationStart, function (e) {
                var element = e.target;
                var styles = element && window.getComputedStyle(element, null);
                var animationName = styles && styles.getPropertyValue('animation-name');
                var requiresSetup = animationName && (-1 !== animationName.indexOf('element-queries'));

                if (requiresSetup) {
                    element.elementQueriesSensor = new ResizeSensor(element, function () {
                        if (element.elementQueriesSetupInformation) {
                            element.elementQueriesSetupInformation.call();
                        }
                    });

                    var sensorStyles = window.getComputedStyle(element.resizeSensor, null);
                    var id = sensorStyles.getPropertyValue('min-width');
                    id = parseInt(id.replace('px', ''));
                    setupElement(e.target, idToSelectorMapping[id]);
                }
            });

            if (!defaultCssInjected) {
                cssStyleElement = document.createElement('style');
                cssStyleElement.type = 'text/css';
                cssStyleElement.innerHTML = '[responsive-image] > img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}';

                //safari wants at least one rule in keyframes to start working
                cssStyleElement.innerHTML += '\n@keyframes element-queries { 0% { visibility: inherit; } }';
                document.getElementsByTagName('head')[0].appendChild(cssStyleElement);
                defaultCssInjected = true;
            }

            for (var i = 0, j = document.styleSheets.length; i < j; i++) {
                try {
                    if (document.styleSheets[i].href && 0 === document.styleSheets[i].href.indexOf('file://')) {
                        console.warn("CssElementQueries: unable to parse local css files, " + document.styleSheets[i].href);
                    }

                    readRules(document.styleSheets[i].cssRules || document.styleSheets[i].rules || document.styleSheets[i].cssText);
                } catch (e) {
                }
            }

            findResponsiveImages();
        };

        /**
         * Go through all collected rules (readRules()) and attach the resize-listener.
         * Not necessary to call it manually, since we detect automatically when new elements
         * are available in the DOM. However, sometimes handy for dirty DOM modifications.
         *
         * @param {HTMLElement} container only elements of the container are considered (document.body if not set)
         */
        this.findElementQueriesElements = function (container) {
            findElementQueriesElements(container);
        };

        this.update = function () {
            this.init();
        };
    };

    ElementQueries.update = function () {
        ElementQueries.instance.update();
    };

    /**
     * Removes all sensor and elementquery information from the element.
     *
     * @param {HTMLElement} element
     */
    ElementQueries.detach = function (element) {
        if (element.elementQueriesSetupInformation) {
            //element queries
            element.elementQueriesSensor.detach();
            delete element.elementQueriesSetupInformation;
            delete element.elementQueriesSensor;

        } else if (element.resizeSensorInstance) {
            //responsive image

            element.resizeSensorInstance.detach();
            delete element.resizeSensorInstance;
        }
    };

    ElementQueries.init = function () {
        if (!ElementQueries.instance) {
            ElementQueries.instance = new ElementQueries();
        }

        ElementQueries.instance.init();
    };

    var domLoaded = function (callback) {
        /* Mozilla, Chrome, Opera */
        if (document.addEventListener) {
            document.addEventListener('DOMContentLoaded', callback, false);
        }
        /* Safari, iCab, Konqueror */
        else if (/KHTML|WebKit|iCab/i.test(navigator.userAgent)) {
            var DOMLoadTimer = setInterval(function () {
                if (/loaded|complete/i.test(document.readyState)) {
                    callback();
                    clearInterval(DOMLoadTimer);
                }
            }, 10);
        }
        /* Other web browsers */
        else window.onload = callback;
    };

    ElementQueries.findElementQueriesElements = function (container) {
        ElementQueries.instance.findElementQueriesElements(container);
    };

    ElementQueries.listen = function () {
        domLoaded(ElementQueries.init);
    };

    return ElementQueries;

}));


/***/ }),

/***/ "./node_modules/css-element-queries/src/ResizeSensor.js":
/*!**************************************************************!*\
  !*** ./node_modules/css-element-queries/src/ResizeSensor.js ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;

/**
 * Copyright Marc J. Schmidt. See the LICENSE file at the top-level
 * directory of this distribution and at
 * https://github.com/marcj/css-element-queries/blob/master/LICENSE.
 */
(function (root, factory) {
    if (true) {
        !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
				__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
				(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
				__WEBPACK_AMD_DEFINE_FACTORY__),
				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
    } else {}
}(typeof window !== 'undefined' ? window : this, function () {

    // Make sure it does not throw in a SSR (Server Side Rendering) situation
    if (typeof window === "undefined") {
        return null;
    }
    // https://github.com/Semantic-Org/Semantic-UI/issues/3855
    // https://github.com/marcj/css-element-queries/issues/257
    var globalWindow = typeof window != 'undefined' && window.Math == Math
        ? window
        : typeof self != 'undefined' && self.Math == Math
            ? self
            : Function('return this')();
    // Only used for the dirty checking, so the event callback count is limited to max 1 call per fps per sensor.
    // In combination with the event based resize sensor this saves cpu time, because the sensor is too fast and
    // would generate too many unnecessary events.
    var requestAnimationFrame = globalWindow.requestAnimationFrame ||
        globalWindow.mozRequestAnimationFrame ||
        globalWindow.webkitRequestAnimationFrame ||
        function (fn) {
            return globalWindow.setTimeout(fn, 20);
        };

    /**
     * Iterate over each of the provided element(s).
     *
     * @param {HTMLElement|HTMLElement[]} elements
     * @param {Function}                  callback
     */
    function forEachElement(elements, callback){
        var elementsType = Object.prototype.toString.call(elements);
        var isCollectionTyped = ('[object Array]' === elementsType
            || ('[object NodeList]' === elementsType)
            || ('[object HTMLCollection]' === elementsType)
            || ('[object Object]' === elementsType)
            || ('undefined' !== typeof jQuery && elements instanceof jQuery) //jquery
            || ('undefined' !== typeof Elements && elements instanceof Elements) //mootools
        );
        var i = 0, j = elements.length;
        if (isCollectionTyped) {
            for (; i < j; i++) {
                callback(elements[i]);
            }
        } else {
            callback(elements);
        }
    }

    /**
    * Get element size
    * @param {HTMLElement} element
    * @returns {Object} {width, height}
    */
    function getElementSize(element) {
        if (!element.getBoundingClientRect) {
            return {
                width: element.offsetWidth,
                height: element.offsetHeight
            }
        }

        var rect = element.getBoundingClientRect();
        return {
            width: Math.round(rect.width),
            height: Math.round(rect.height)
        }
    }

    /**
     * Apply CSS styles to element.
     *
     * @param {HTMLElement} element
     * @param {Object} style
     */
    function setStyle(element, style) {
        Object.keys(style).forEach(function(key) {
            element.style[key] = style[key];
        });
    }

    /**
     * Class for dimension change detection.
     *
     * @param {Element|Element[]|Elements|jQuery} element
     * @param {Function} callback
     *
     * @constructor
     */
    var ResizeSensor = function(element, callback) {
        /**
         *
         * @constructor
         */
        function EventQueue() {
            var q = [];
            this.add = function(ev) {
                q.push(ev);
            };

            var i, j;
            this.call = function(sizeInfo) {
                for (i = 0, j = q.length; i < j; i++) {
                    q[i].call(this, sizeInfo);
                }
            };

            this.remove = function(ev) {
                var newQueue = [];
                for(i = 0, j = q.length; i < j; i++) {
                    if(q[i] !== ev) newQueue.push(q[i]);
                }
                q = newQueue;
            };

            this.length = function() {
                return q.length;
            }
        }

        /**
         *
         * @param {HTMLElement} element
         * @param {Function}    resized
         */
        function attachResizeEvent(element, resized) {
            if (!element) return;
            if (element.resizedAttached) {
                element.resizedAttached.add(resized);
                return;
            }

            element.resizedAttached = new EventQueue();
            element.resizedAttached.add(resized);

            element.resizeSensor = document.createElement('div');
            element.resizeSensor.dir = 'ltr';
            element.resizeSensor.className = 'resize-sensor';

            var style = {
                pointerEvents: 'none',
                position: 'absolute',
                left: '0px',
                top: '0px',
                right: '0px',
                bottom: '0px',
                overflow: 'hidden',
                zIndex: '-1',
                visibility: 'hidden',
                maxWidth: '100%'
            };
            var styleChild = {
                position: 'absolute',
                left: '0px',
                top: '0px',
                transition: '0s',
            };

            setStyle(element.resizeSensor, style);

            var expand = document.createElement('div');
            expand.className = 'resize-sensor-expand';
            setStyle(expand, style);

            var expandChild = document.createElement('div');
            setStyle(expandChild, styleChild);
            expand.appendChild(expandChild);

            var shrink = document.createElement('div');
            shrink.className = 'resize-sensor-shrink';
            setStyle(shrink, style);

            var shrinkChild = document.createElement('div');
            setStyle(shrinkChild, styleChild);
            setStyle(shrinkChild, { width: '200%', height: '200%' });
            shrink.appendChild(shrinkChild);

            element.resizeSensor.appendChild(expand);
            element.resizeSensor.appendChild(shrink);
            element.appendChild(element.resizeSensor);

            var computedStyle = window.getComputedStyle(element);
            var position = computedStyle ? computedStyle.getPropertyValue('position') : null;
            if ('absolute' !== position && 'relative' !== position && 'fixed' !== position) {
                element.style.position = 'relative';
            }

            var dirty, rafId;
            var size = getElementSize(element);
            var lastWidth = 0;
            var lastHeight = 0;
            var initialHiddenCheck = true;
            var lastAnimationFrame = 0;

            var resetExpandShrink = function () {
                var width = element.offsetWidth;
                var height = element.offsetHeight;

                expandChild.style.width = (width + 10) + 'px';
                expandChild.style.height = (height + 10) + 'px';

                expand.scrollLeft = width + 10;
                expand.scrollTop = height + 10;

                shrink.scrollLeft = width + 10;
                shrink.scrollTop = height + 10;
            };

            var reset = function() {
                // Check if element is hidden
                if (initialHiddenCheck) {
                    var invisible = element.offsetWidth === 0 && element.offsetHeight === 0;
                    if (invisible) {
                        // Check in next frame
                        if (!lastAnimationFrame){
                            lastAnimationFrame = requestAnimationFrame(function(){
                                lastAnimationFrame = 0;

                                reset();
                            });
                        }

                        return;
                    } else {
                        // Stop checking
                        initialHiddenCheck = false;
                    }
                }

                resetExpandShrink();
            };
            element.resizeSensor.resetSensor = reset;

            var onResized = function() {
                rafId = 0;

                if (!dirty) return;

                lastWidth = size.width;
                lastHeight = size.height;

                if (element.resizedAttached) {
                    element.resizedAttached.call(size);
                }
            };

            var onScroll = function() {
                size = getElementSize(element);
                dirty = size.width !== lastWidth || size.height !== lastHeight;

                if (dirty && !rafId) {
                    rafId = requestAnimationFrame(onResized);
                }

                reset();
            };

            var addEvent = function(el, name, cb) {
                if (el.attachEvent) {
                    el.attachEvent('on' + name, cb);
                } else {
                    el.addEventListener(name, cb);
                }
            };

            addEvent(expand, 'scroll', onScroll);
            addEvent(shrink, 'scroll', onScroll);

            // Fix for custom Elements
            requestAnimationFrame(reset);
        }

        forEachElement(element, function(elem){
            attachResizeEvent(elem, callback);
        });

        this.detach = function(ev) {
            ResizeSensor.detach(element, ev);
        };

        this.reset = function() {
            element.resizeSensor.resetSensor();
        };
    };

    ResizeSensor.reset = function(element) {
        forEachElement(element, function(elem){
            elem.resizeSensor.resetSensor();
        });
    };

    ResizeSensor.detach = function(element, ev) {
        forEachElement(element, function(elem){
            if (!elem) return;
            if(elem.resizedAttached && typeof ev === "function"){
                elem.resizedAttached.remove(ev);
                if(elem.resizedAttached.length()) return;
            }
            if (elem.resizeSensor) {
                if (elem.contains(elem.resizeSensor)) {
                    elem.removeChild(elem.resizeSensor);
                }
                delete elem.resizeSensor;
                delete elem.resizedAttached;
            }
        });
    };

    if (typeof MutationObserver !== "undefined") {
        var observer = new MutationObserver(function (mutations) {
            for (var i in mutations) {
                if (mutations.hasOwnProperty(i)) {
                    var items = mutations[i].addedNodes;
                    for (var j = 0; j < items.length; j++) {
                        if (items[j].resizeSensor) {
                            ResizeSensor.reset(items[j]);
                        }
                    }
                }
            }
        });

        document.addEventListener("DOMContentLoaded", function (event) {
            observer.observe(document.body, {
                childList: true,
                subtree: true,
            });
        });
    }

    return ResizeSensor;

}));


/***/ }),

/***/ "./node_modules/css-loader/dist/cjs.js!./src/css/ds.css":
/*!**************************************************************!*\
  !*** ./node_modules/css-loader/dist/cjs.js!./src/css/ds.css ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

exports = module.exports = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js")(false);
// Module
exports.push([module.i, ".ds-logo {\n    margin: 5px;\n    background-color: white !important;\n}\n\n.ds-logo-style {\n    margin: 10px;\n    margin-bottom: 20px;\n}\n\n.ds-container {\n    margin: 0;\n    padding: 0 !important;\n    display: flex;\n}\n\n.ds-inline {\n    display: inline-block !important;\n    vertical-align: top !important;\n}\n\n.ds-left-align {\n    right: 0 !important;\n}\n\n/* Main nav page index.html */\n.ds-content {\n    padding: 0;\n    padding-top: 115px;  /* this pushes the content below fixed nav bar */\n    padding-bottom: 50px;\n    margin-top: 0;\n    margin-right: 10px;\n    margin-bottom: 10px;\n}\n\n.ds-chart-right {\n    margin-left: 65px;\n}\n\n.ds-oc-add-del-btn {\n    padding: 0 !important;\n    margin: 10px !important;\n    width: 130px;\n    height: 26px;\n    text-align: center;\n}\n\n.ds-oc-must-buttons {\n    padding: 0 !important;\n    padding-left: 3px;\n    margin-top: 70px;\n    margin-bottom: 75px;\n    margin-left: 5px;\n    margin-right: 9px;\n}\n\n/* This can probably be removed once we switch to PF React 4 - suffix action button */\n.ds-action-button {\n    color: white;\n}\n\n.ds-oc-may-buttons {\n    padding0: !important;\n    padding-left: 3px;\n    margin-top: 4px;\n    margin-left: 5px;\n    margin-right: 9px;\n}\n\n.ds-refresh {\n    background-color: #0088ce;\n    background-image: linear-gradient(to bottom,#39a5dc 0,#0088ce 100%);\n    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff39a5dc', endColorstr='#ff0088ce', GradientType=0);\n    border-color: #00659c;\n    color: #fff;\n    padding: 3px;\n    box-shadow: 0 2px 3px rgba(3,3,3,.1);\n    border-radius: 50%;\n    border: 1px solid transparent;\n    font-size: 13px !important;\n}\n\n.ds-switch {\n    margin-top: 2px;\n}\n\n.ds-refresh:hover {\n    color: DarkGray;\n    background-color: white;\n    background-image: none;\n}\n\n.dataTables_wrapper {\n    padding: 0px !important;\n    margin-bottom: 10px !important;\n}\n\ntd {\n    white-space: normal;\n    word-wrap: break-word !important;\n    max-width: 200px !important;\n}\n\n.ds-hr {\n    margin-top: 0.5em;\n    margin-bottom: 0.5em;\n    border-style: inset;\n    border-width: 1px;\n    padding: 0px !important;\n}\n\n.ds-hr-logs {\n    display: block;\n    margin-left: 0;\n    margin-top: 0.5em;\n    margin-bottom: 0.5em;\n    border-style: inset;\n    border-width: 1px;\n    padding: 0px !important;\n    width: 525px;\n}\n\n.ds-no-padding {\n    padding: 0px !important;\n}\n\n.ds-tree {\n    font-size: 0.5;\n    background-color: #f8f8f8;\n    border: 1px solid #909090;\n    color: black;\n    line-height: 2;\n    width: 300px;\n    min-width: 300px;\n    min-height: 400px;\n    max-height: 400px;\n    margin-bottom: 5px;\n    overflow: auto;\n    padding-top: 5px;\n}\n\n.ds-disabled {\n    pointer-events: none;\n    opacity: 0.7;\n}\n\n.ds-split {\n    width: 400px;\n}\n\n.ds-input {\n    margin-top: 5px !important;\n    padding-right: 5px !important;\n    padding-left: 5px !important;\n}\n\n.ds-input-bad {\n    border-color: red !important;\n}\n\n.ds-input-auto-bad {\n    width: 100%;\n    border-color: red !important;\n    padding-left: 5px;\n}\n\n.ds-input-auto-good {\n    width: 100%;\n    border-color: green;\n    padding-left: 5px;\n}\n\n.ds-input-right {\n    text-align: right;\n}\n\n.ds-pw-input {\n    margin-top: 5px;\n    padding-right: 5px;\n    padding-left: 5px !important;\n    min-width: 65px !important;\n    max-width: 65px !important;\n}\n\n.ds-lag-report {\n    min-width: 800px !important;\n}\n\n.ds-repl-mgr {\n    max-width: 600px !important;\n}\n\n.ds-history-input {\n    margin-top: !important;\n    margin-right: 5px;\n    margin-left: 40px;\n}\n\n.ds-divider {\n    width: 35px;\n}\n\n.ds-divider-lrg {\n    width: 50px;\n}\n\n.ds-divider-med {\n    width: 15px;\n}\n\n.ds-repl-managers-list {\n    width: 420px;\n    height: 200px;\n}\n\n.ds-repl-managers-button {\n    margin-top: -15px;\n    margin-bottom: 10px;\n    margin-left: 0px;\n}\n\n.ds-repl-manager-checkbox {\n    margin-top: 20px !important;\n    padding-top: 20px !important;\n    margin-left: 10px !important;\n    margin-right: 10px !important;\n}\n\n.ds-label {\n    vertical-align: middle !important; /* Fixes any weird issues in Firefox and IE */\n}\n\n/* Replication styles */\n.ds-agmt-dropdown {\n    padding: 0px !important;\n    line-height: 0 !important;\n    overflow: visible !important;\n    width: auto !important;\n}\n\n.ds-oc-dropdown {\n    margin-top: 5px;\n    color: #181818 !important;\n    padding: 0px !important;\n    line-height: 0 !important;\n    height: 30px;\n    max-height: 200px !important;\n    width: 315px !important;\n    text-align: left;\n    outline: 0 !important;\n    overflow: auto;\n}\n\n.ds-dblink-dropdown {\n    width: 140px !important;\n    text-align: left;\n}\n\n.ds-dblink-dropdown a {\n    padding: 0px !important;\n    padding-left: 10px !important;\n    line-height: 0 !important;\n    width: 140px !important;\n    text-align: left;\n}\n\n.ds-dblink-form-input {\n    width: 415px !important;\n    margin-top: 5px;\n    padding-right: 10px;\n    height: 37px !important;\n}\n\n.ds-repl-table {\n    background-color: white !important;\n    padding: 0px !important;\n    border: 1px solid #909090;\n    table-layout: fixed;\n    width: 100%;\n    clear: both;\n    word-wrap: break-word !important;\n    text-align: center;\n    margin-top: -10px !important;\n    line-height: 1;\n}\n\n.ds-sasl-table {\n    background-color: white !important;\n    padding: 0px;\n    border: 1px solid #909090;\n    table-layout: fixed;\n    clear: both;\n    word-wrap: break-word !important;\n    text-align: center;\n}\n\n.ds-db-table {\n    border: 1px solid #d1d1d1;\n    word-wrap: break-word !important;\n    text-align: center;\n}\n\n.ds-table {\n    background-color: white !important;\n    padding: 0px;\n    border: 1px solid #909090;\n    table-layout: fixed;\n    clear: both;\n    word-wrap: break-word !important;\n    text-align: center;\n    line-height: 1;\n}\n\n.ds-cipher-width {\n    max-width: 350px !important;\n    min-width: 350px !important;\n}\n\n.ds-modal-wide {\n    width: 875px !important;\n    min-width: 875px !important;\n    vertical-align: middle;\n    margin-left: -100px !important;\n}\n\n.ds-button-right {\n    width: 120px !important;\n    margin-top: 5px;\n    float: right !important;\n    display: inline-block !important;\n}\n\n.ds-button-left {\n    width: 120px;\n    max-width: 150px;\n    margin-top: 5px;\n    float: left !important;\n    display: inline-block !important;\n}\n\n.ds-panel-left {\n    width: 50%;\n}\n.ds-panel-right {\n    width: 50%;\n}\n\n.ds-fractional-panel {\n    background-color: white;\n    width: 50%;\n    margin: 2px 2px 2px 2px;\n    padding-left: 10px;\n}\n\n.ds-fractional-panel p {\n    padding: 0px !important;\n    margin-left: 0 !important;\n}\n\n.ds-fractional-list {\n    width: 230px;\n    min-height: 100px !important;\n    max-height: 100px !important;\n    overflow-y: scroll;\n}\n\n.ds-fractional-btn {\n    width: 150px;\n    height: 30px;\n    margin: 5px 5px 5px 10px;\n}\n\n.ds-agmt-schedule-checkbox {\n    margin: 8px !important;\n    padding: 5px;\n}\n\n.ds-config-checkbox {\n    margin-top: 10px !important;\n    margin-bottom: 10px !important;\n    margin-right: 5px !important;\n}\n\n.ds-server-checkbox {\n    margin-top: 15px !important;\n    margin-right: 12px !important;\n    padding: 5px;\n}\n\n.ds-send-expiring-checkbox {\n    margin-top: 12px !important;\n    margin-right: 12px !important;\n    padding: 5px;\n}\n\n.ds-config-label {\n    margin-top: 10px;\n    width: 225px !important;\n    margin-bottom: 10px !important;\n}\n\n.ds-config-label-xlrg {\n    margin-top: 10px;\n    width: 180px !important;\n    margin-bottom: 10px !important;\n}\n\n.ds-config-label-lrg {\n    margin-top: 10px;\n    width: 160px !important;\n    margin-bottom: 10px !important;\n}\n\n.ds-config-label-med {\n    margin-top: 10px;\n    width: 125px !important;\n    margin-bottom: 10px !important;\n}\n\n.ds-config-sub-label {\n    margin-top: 10px;\n    width: 225px !important;\n    margin-bottom: 10px !important;\n    padding-left: 20px;\n}\n\n.ds-label-sm {\n    width: 175px !important;\n    margin-bottom: 10px !important;\n}\n\n.ds-cleanallruv-label {\n    width: 150px !important;\n    margin-bottom: 10px !important;\n}\n\n.ds-expire-label {\n    margin-top: 7px;\n    margin-bottom: 7px;\n    width: 285px !important;\n}\n\n.ds-minage-label {\n    padding: 10px;\n}\n\n.ds-config-diskmon-label {\n    width: 210px !important;\n    padding-left: 30px;\n    margin-top: 10px;\n}\n\n.ds-config-indent-sm-label {\n    margin-top: 10px;\n    margin-bottom: 10px;\n    width: 195px;\n    margin-left: 40px !important;\n    padding-right: 10px !important;\n}\n\n.ds-expired-div {\n    padding-left: 30px !important;\n}\n\n.ds-config-diskmon-checkbox {\n    margin: 12px !important;\n    padding: 5px;\n    margin-left: 30px !important;\n}\n\n.ds-modal-row {\n    margin-left: 20px;\n    margin-right: 0px !important;\n}\n\n.ds-chaining-list {\n    width: 350px;\n    height: 100px !important;\n}\n\n.ds-chaining-split {\n    width: 350px;\n}\n\n.ds-chaining-divider {\n    width: 85px;\n}\n\n.ds-oc-form-list {\n    width: 232px !important;\n    max-height: 350px !important;\n    min-height: 350px !important;\n}\n\n.ds-oc-form-list:focus {\n    max-height: 350px !important;\n    min-height: 350px !important;\n}\n\n.ds-may-must-list {\n    width: 232px !important;\n    height: 150px !important;\n    margin: 0 !important;\n    padding: 0 !important;\n}\n\np {\n    line-height: 1;\n    white-space: normal;\n}\n\ntextarea {\n    margin-top: 5px;\n    padding-top: 5px;\n    vertical-align: top;\n    width: 315px;\n    height: 80px;\n    word-wrap: break-word !important;\n    line-height: 1;\n}\n\n.ds-agmt-textarea {\n    width: 100%;\n    font-family: monospace !important;\n}\n\n.ds-logarea {\n    margin-top: 5px;\n    padding-top: 5px;\n    vertical-align: top;\n    width: 100% !important;\n    height: 500px;\n    max-height: 600px !important;\n    word-wrap: break-word !important;\n    line-height: 1;\n    font-family: monospace !important;\n    overflow-y: scroll;\n    font-size: 12px;\n}\n\n.ds-conflict {\n    margin-top: 5px;\n    padding-top: 5px;\n    vertical-align: top;\n    width: 375px;\n    height: 275px;\n    max-height: 350px !important;\n    white-space: pre;\n    line-height: 1.5;\n    font-family: monospace !important;\n    overflow-y: auto;\n    overflow-x: scroll;\n}\n\n.ds-conflict-btn {\n    width: 110px;\n}\n\noption {\n    color: #181818;\n}\n\n.ds-server-action {\n    padding: 0 !important;\n    margin-left: 10px;\n    display: inline-block;\n    align-content: right;\n}\n\n.ds-action-btn {\n    margin-left: 10px;\n    margin-right: 0px;\n    /* border-radius: 5px !important; */\n    padding: 0px 10px 0px 10px !important;\n    min-height: 30px !important;\n}\n\n.ds-nav {\n    padding: 0 !important;\n    background-color: #f3f3f3;\n}\n\n.ds-nav-tab a {\n    text-align: center;\n    min-width: 125px !important;\n}\n\n.ds-float-right {\n    float: right;\n}\n\n.ds-float-left {\n    float: left;\n}\n\n.ds-inline-btn {\n    margin-top: -3px;\n    margin-left: 10px;\n    display: inline-block;\n}\n\n.spinner-sm {\n    height: 18px !important;\n    Width: 18px !important;\n}\n\n.ds-footer {\n    background-color: #f5f5f5 !important;\n    margin-left: -25px;\n    padding: 10px;\n    position: fixed;\n    bottom: 0;\n    width: 100%;\n    height: 50px;\n    border-top: 1px solid #e2e2e2 !important;\n}\n\n.ds-nav-bar {\n    position: fixed;\n    top: 0;\n    width: 100%;\n    background-color: white;\n    z-index: 1;\n}\n\n.ds-nav-item a {\n    text-align: left;\n}\n\n.ds-config-header {\n    margin-bottom: 20px;\n}\n\n.ds-sub-header {\n    margin-top: 35px !important;\n    margin-bottom: 10px;\n}\n\n.ds-accordion {\n    box-shadow: unset;\n    background-image: unset;\n    margin-top: 20px;\n    color: #228bc0 !important;\n    background-color: transparent !important;\n    border: 0;\n    position: relative;\n    overflow: hidden;\n    width: 100%;\n    text-align: left;\n    font: inherit;\n}\n\n.ds-accordion:after {\n    display: inline-block;\n    content: \"\";\n    height: 1px;\n    background: #228bc0;\n    position: absolute;\n    width: 100%;\n    top: 50% !important;\n    margin-left: 10px;\n    text-align: left;\n}\n\n.ds-accordion:hover,\n.ds-accordion:focus {\n    background-color: transparent !important;\n    outline: none !important;\n    border: 0 !important;\n    -moz-outline: none !important;\n    -webkit-box-shadow: none !important;\n    box-shadow: 0 !important;\n}\n\n.ds-accordion:active {\n    background-color: transparent !important;\n}\n\n.ds-accordion-panel {\n    margin-top: 10px;\n}\n\n.ds-margin-top {\n    margin-top: 10px !important;\n}\n\n.ds-margin-top-med {\n    margin-top: 15px !important;\n}\n\n.ds-margin-top-lg {\n    margin-top: 20px !important;\n}\n\n.ds-margin-top-xlg {\n    margin-top: 35px !important;\n}\n\n.ds-margin-top-xxlg {\n    margin-top: 45px !important;\n}\n\n.ds-modal-spinner {\n    margin-top: 10px;\n    text-align: center;\n}\n\n.modal {\n  overflow-y:auto;\n}\n\n/* wizard accordions are narrower */\n.ds-wiz-accordion {\n    margin-top: 20px;\n    color: #228bc0 !important;\n    background-color: white;\n    border: 0;\n    position: relative;\n    overflow: hidden;\n    width: 500px;\n    text-align: left;\n}\n\n.ds-wiz-accordion:after {\n    display: inline-block;\n    content: \"\";\n    height: 1px;\n    background: #228bc0;\n    position: absolute;\n    width: 500px;\n    top: 50% !important;\n    margin-left: 10px;\n    text-align: left;\n}\n\n.ds-wiz-accordion:focus {\n    outline: none !important;\n    border: 0 !important;\n    -moz-outline: none !important;\n    -webkit-box-shadow: none !important;\n    box-shadow: 0 !important;\n}\n\n.ds-indent {\n    margin-left: 15px !important;\n    margin-right: 15px !important;\n}\n\n.ds-left-indent {\n    margin-left: 15px !important;\n}\n\n.ds-left-indent-md {\n    margin-left: 30px !important;\n}\n\n.ds-right-indent {\n    margin-right: 15px !important;\n}\n\n.ds-tree-content {\n    margin-left: 25px;\n    width: 100%;\n}\n\n.ds-inst-indent {\n    margin-left: 240px;\n}\n\n.ds-left-margin {\n    margin-left: 10px !important;\n}\n\n.ds-sm-left-margin {\n    margin-left: 5px !important;\n}\n\n.ds-td {\n    padding-left: 10px !important;\n    padding-top: 8px !important;\n    padding-bottom: 0px !important;\n    valign: middle !important;\n}\n\n.ds-mgr-table {\n    max-width: 600px;\n    min-width: 600px;\n}\n\n.ds-loglevel-table {\n    max-width: 500px;\n    min-width: 500px;\n    table-layout: fixed;\n    margin-top: 20px;\n    margin-left: 20px;\n}\n\n.ds-table-checkbox {\n    width: 35px;\n    text-align: center;\n}\n\n.ds-page-content {\n    margin-top: 30px !important;\n}\n\n.ds-spacing-sm {\n    margin-right: 10px;\n}\n\n.navbar-default {\n    margin-bottom: 0px;\n}\n\n.ds-modal-error {\n    color: red;\n}\n\n.ds-clear-text {\n     opacity: 0;\n}\n\n.ds-margin-left-sm {\n    margin-left: 30px !important;\n}\n\n.ds-margin-left {\n    margin-left: 40px !important;\n}\n\n.ds-margin-left-piechart {\n    margin-left: 140px !important;\n}\n\n.ds-nested-modal {\n    margin-top: 100px;\n    margin-left: 100px;\n    min-width: 275px;\n}\n\n.ds-attr-select {\n    min-height: 300px;\n    max-height: 300px;\n    width: 265px;\n    overflow: auto;\n}\n\n.ds-center {\n    text-align: center;\n}\n\n.ds-trailing-btn {\n    margin-left: 10px;\n    margin-top: -2px;\n}\n\n.ds-loading-spinner {\n    position: fixed;\n    top: 25%;\n    left: 50%;\n    transform: translate(-25%, -50%);\n}\n\n.ds-loading-spinner-tree {\n    position: fixed;\n    top: 40%;\n    left: 40%;\n    transform: translate(-40%, -40%);\n}\n\n.ds-loading {\n    position: fixed;\n    top: 25%;\n    left: 35%;\n    transform: translate(-25%, -35%);\n}\n\n.ds-popup {\n    min-width: 350px !important;\n}\n\n.ds-input-auto {\n    width: 100%;\n    margin-right: 10px;\n    padding-left: 5px;\n}\n\n.content-view-pf-pagination > div > span:last-child {\n    position: relative;\n}\n\n.ds-toolbar {\n    bottom: 10px;\n}\n\n.ds-plugin-spinner {\n    margin-top: 20px;\n    margin-bottom: 10px;\n    margin-left: 80px;\n}\n\n.ds-h4 {\n    font-size: 18px !important;\n}\n\n@media screen and (max-width: 1300px) {\n    .ds-plugin-spinner {\n        margin-left: 0px;\n    }\n}\n\n/* Link */\n.navbar-default .navbar-nav > li > a:hover,\n.navbar-default .navbar-nav > li > a:focus {\n    color: #228bc0;\n}\n\n/* Nav stacked (vertical) bar */\n.nav-pills > li > a {\n    padding: 3px 15px;\n    font-size: 15px;\n    border-radius: 3px;\n}\n\n.nav-pills > li.active > a {\n    color: #fff !important;\n}\n\n.ds-plugin-tab-header {\n    position: relative;\n    top: -16px;\n}\n\n@media screen and (max-width: 770px) {\n    .ds-plugin-tab-header {\n        margin-top: 0px;\n        margin-bottom: 0px;\n    }\n}\n\n.rbt-token {\n    background-color: #ededed;\n    color: #363636;\n}\n\n.rbt-input-multi {\n    height: auto !important;\n}\n\n.list-group {\n    margin-bottom: 1px !important;\n}\n\n.ds-tab-table {\n    margin-top: 25px !important;\n}\n\n.ds-nav-med {\n    font-size: 12px !important;\n}\n\n.ds-table-pagination {\n    border: 1px solid #d1d1d1;\n}\n\n.list-view-pf-view {\n    margin-top: 10px;\n}\n\n.ds-fadein {\n    visibility: visible;\n    opacity: 1;\n    transition: opacity 0.5s linear;\n}\n\n.ds-fadeout {\n    visibility: hidden;\n    opacity: 0;\n    transition: visibility 0s 0s, opacity 1s linear;\n}\n\n.ds-col-append {\n    /* Move this item to the left to offset PF margins */\n    margin-left: -35px;\n    padding-right: 0px;\n    word-wrap: break-word;\n}\n\n.ds-word-wrap {\n    word-wrap: break-word;\n}\n\n.ds-suffix-header {\n    font-size: 18px;\n    margin-bottom: 15px;\n    padding-top: 5px;\n}\n\n.ds-header {\n    font-size: 16px;\n}\n\n.ds-no-padding {\n    padding-right: 0 !important;\n}\n\n.alert {\n    max-width: 750px;\n}\n\n.ds-confirm {\n    margin-left: 5%;\n    margin-top: 5%;\n}\n\n.ds-select {\n    width: 120px;\n}\n\n.treeview .list-group-item {\n    /* remove focus border */\n    outline: none;\n}\n\n.treeitem-row {\n    display: block;\n    outline: none;\n}\n\n.treeview .list-group-item.node-selected > .treeitem-row {\n    background: #0088ce !important;\n    border-color: #0088ce !important;\n    color: #fff !important;\n    display: block;\n}\n\n.treeview-hover .treeitem-row:hover {\n    background-color: #def3ff;\n    border-color: #bee1f4;\n    display: block;\n}\n\ninput {\n    padding-left: 5px !important;\n}\n\n.ds-width-auto {\n    width: 100%;\n}\n\nth {\n    text-align: center;\n}\n\ntd {\n    text-align: center;\n}\n\nhr {\n    margin-top: 20px;\n    margin-bottom: 20px;\n}\n\nh3 {\n    margin-top: 20px;\n    margin-bottom: 20px;\n}\n\nh4 {\n    margin-top: 15px;\n    margin-bottom: 15px;\n}\n", ""]);



/***/ }),

/***/ "./node_modules/css-loader/dist/runtime/api.js":
/*!*****************************************************!*\
  !*** ./node_modules/css-loader/dist/runtime/api.js ***!
  \*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


/*
  MIT License http://www.opensource.org/licenses/mit-license.php
  Author Tobias Koppers @sokra
*/
// css base code, injected by the css-loader
module.exports = function (useSourceMap) {
  var list = []; // return the list of modules as css string

  list.toString = function toString() {
    return this.map(function (item) {
      var content = cssWithMappingToString(item, useSourceMap);

      if (item[2]) {
        return '@media ' + item[2] + '{' + content + '}';
      } else {
        return content;
      }
    }).join('');
  }; // import a list of modules into the list


  list.i = function (modules, mediaQuery) {
    if (typeof modules === 'string') {
      modules = [[null, modules, '']];
    }

    var alreadyImportedModules = {};

    for (var i = 0; i < this.length; i++) {
      var id = this[i][0];

      if (id != null) {
        alreadyImportedModules[id] = true;
      }
    }

    for (i = 0; i < modules.length; i++) {
      var item = modules[i]; // skip already imported module
      // this implementation is not 100% perfect for weird media query combinations
      // when a module is imported multiple times with different media queries.
      // I hope this will never occur (Hey this way we have smaller bundles)

      if (item[0] == null || !alreadyImportedModules[item[0]]) {
        if (mediaQuery && !item[2]) {
          item[2] = mediaQuery;
        } else if (mediaQuery) {
          item[2] = '(' + item[2] + ') and (' + mediaQuery + ')';
        }

        list.push(item);
      }
    }
  };

  return list;
};

function cssWithMappingToString(item, useSourceMap) {
  var content = item[1] || '';
  var cssMapping = item[3];

  if (!cssMapping) {
    return content;
  }

  if (useSourceMap && typeof btoa === 'function') {
    var sourceMapping = toComment(cssMapping);
    var sourceURLs = cssMapping.sources.map(function (source) {
      return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */';
    });
    return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
  }

  return [content].join('\n');
} // Adapted from convert-source-map (MIT)


function toComment(sourceMap) {
  // eslint-disable-next-line no-undef
  var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
  var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
  return '/*# ' + data + ' */';
}

/***/ }),

/***/ "./node_modules/d3/d3.js":
/*!*******************************!*\
  !*** ./node_modules/d3/d3.js ***!
  \*******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;!function() {
  var d3 = {
    version: "3.5.17"
  };
  var d3_arraySlice = [].slice, d3_array = function(list) {
    return d3_arraySlice.call(list);
  };
  var d3_document = this.document;
  function d3_documentElement(node) {
    return node && (node.ownerDocument || node.document || node).documentElement;
  }
  function d3_window(node) {
    return node && (node.ownerDocument && node.ownerDocument.defaultView || node.document && node || node.defaultView);
  }
  if (d3_document) {
    try {
      d3_array(d3_document.documentElement.childNodes)[0].nodeType;
    } catch (e) {
      d3_array = function(list) {
        var i = list.length, array = new Array(i);
        while (i--) array[i] = list[i];
        return array;
      };
    }
  }
  if (!Date.now) Date.now = function() {
    return +new Date();
  };
  if (d3_document) {
    try {
      d3_document.createElement("DIV").style.setProperty("opacity", 0, "");
    } catch (error) {
      var d3_element_prototype = this.Element.prototype, d3_element_setAttribute = d3_element_prototype.setAttribute, d3_element_setAttributeNS = d3_element_prototype.setAttributeNS, d3_style_prototype = this.CSSStyleDeclaration.prototype, d3_style_setProperty = d3_style_prototype.setProperty;
      d3_element_prototype.setAttribute = function(name, value) {
        d3_element_setAttribute.call(this, name, value + "");
      };
      d3_element_prototype.setAttributeNS = function(space, local, value) {
        d3_element_setAttributeNS.call(this, space, local, value + "");
      };
      d3_style_prototype.setProperty = function(name, value, priority) {
        d3_style_setProperty.call(this, name, value + "", priority);
      };
    }
  }
  d3.ascending = d3_ascending;
  function d3_ascending(a, b) {
    return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
  }
  d3.descending = function(a, b) {
    return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;
  };
  d3.min = function(array, f) {
    var i = -1, n = array.length, a, b;
    if (arguments.length === 1) {
      while (++i < n) if ((b = array[i]) != null && b >= b) {
        a = b;
        break;
      }
      while (++i < n) if ((b = array[i]) != null && a > b) a = b;
    } else {
      while (++i < n) if ((b = f.call(array, array[i], i)) != null && b >= b) {
        a = b;
        break;
      }
      while (++i < n) if ((b = f.call(array, array[i], i)) != null && a > b) a = b;
    }
    return a;
  };
  d3.max = function(array, f) {
    var i = -1, n = array.length, a, b;
    if (arguments.length === 1) {
      while (++i < n) if ((b = array[i]) != null && b >= b) {
        a = b;
        break;
      }
      while (++i < n) if ((b = array[i]) != null && b > a) a = b;
    } else {
      while (++i < n) if ((b = f.call(array, array[i], i)) != null && b >= b) {
        a = b;
        break;
      }
      while (++i < n) if ((b = f.call(array, array[i], i)) != null && b > a) a = b;
    }
    return a;
  };
  d3.extent = function(array, f) {
    var i = -1, n = array.length, a, b, c;
    if (arguments.length === 1) {
      while (++i < n) if ((b = array[i]) != null && b >= b) {
        a = c = b;
        break;
      }
      while (++i < n) if ((b = array[i]) != null) {
        if (a > b) a = b;
        if (c < b) c = b;
      }
    } else {
      while (++i < n) if ((b = f.call(array, array[i], i)) != null && b >= b) {
        a = c = b;
        break;
      }
      while (++i < n) if ((b = f.call(array, array[i], i)) != null) {
        if (a > b) a = b;
        if (c < b) c = b;
      }
    }
    return [ a, c ];
  };
  function d3_number(x) {
    return x === null ? NaN : +x;
  }
  function d3_numeric(x) {
    return !isNaN(x);
  }
  d3.sum = function(array, f) {
    var s = 0, n = array.length, a, i = -1;
    if (arguments.length === 1) {
      while (++i < n) if (d3_numeric(a = +array[i])) s += a;
    } else {
      while (++i < n) if (d3_numeric(a = +f.call(array, array[i], i))) s += a;
    }
    return s;
  };
  d3.mean = function(array, f) {
    var s = 0, n = array.length, a, i = -1, j = n;
    if (arguments.length === 1) {
      while (++i < n) if (d3_numeric(a = d3_number(array[i]))) s += a; else --j;
    } else {
      while (++i < n) if (d3_numeric(a = d3_number(f.call(array, array[i], i)))) s += a; else --j;
    }
    if (j) return s / j;
  };
  d3.quantile = function(values, p) {
    var H = (values.length - 1) * p + 1, h = Math.floor(H), v = +values[h - 1], e = H - h;
    return e ? v + e * (values[h] - v) : v;
  };
  d3.median = function(array, f) {
    var numbers = [], n = array.length, a, i = -1;
    if (arguments.length === 1) {
      while (++i < n) if (d3_numeric(a = d3_number(array[i]))) numbers.push(a);
    } else {
      while (++i < n) if (d3_numeric(a = d3_number(f.call(array, array[i], i)))) numbers.push(a);
    }
    if (numbers.length) return d3.quantile(numbers.sort(d3_ascending), .5);
  };
  d3.variance = function(array, f) {
    var n = array.length, m = 0, a, d, s = 0, i = -1, j = 0;
    if (arguments.length === 1) {
      while (++i < n) {
        if (d3_numeric(a = d3_number(array[i]))) {
          d = a - m;
          m += d / ++j;
          s += d * (a - m);
        }
      }
    } else {
      while (++i < n) {
        if (d3_numeric(a = d3_number(f.call(array, array[i], i)))) {
          d = a - m;
          m += d / ++j;
          s += d * (a - m);
        }
      }
    }
    if (j > 1) return s / (j - 1);
  };
  d3.deviation = function() {
    var v = d3.variance.apply(this, arguments);
    return v ? Math.sqrt(v) : v;
  };
  function d3_bisector(compare) {
    return {
      left: function(a, x, lo, hi) {
        if (arguments.length < 3) lo = 0;
        if (arguments.length < 4) hi = a.length;
        while (lo < hi) {
          var mid = lo + hi >>> 1;
          if (compare(a[mid], x) < 0) lo = mid + 1; else hi = mid;
        }
        return lo;
      },
      right: function(a, x, lo, hi) {
        if (arguments.length < 3) lo = 0;
        if (arguments.length < 4) hi = a.length;
        while (lo < hi) {
          var mid = lo + hi >>> 1;
          if (compare(a[mid], x) > 0) hi = mid; else lo = mid + 1;
        }
        return lo;
      }
    };
  }
  var d3_bisect = d3_bisector(d3_ascending);
  d3.bisectLeft = d3_bisect.left;
  d3.bisect = d3.bisectRight = d3_bisect.right;
  d3.bisector = function(f) {
    return d3_bisector(f.length === 1 ? function(d, x) {
      return d3_ascending(f(d), x);
    } : f);
  };
  d3.shuffle = function(array, i0, i1) {
    if ((m = arguments.length) < 3) {
      i1 = array.length;
      if (m < 2) i0 = 0;
    }
    var m = i1 - i0, t, i;
    while (m) {
      i = Math.random() * m-- | 0;
      t = array[m + i0], array[m + i0] = array[i + i0], array[i + i0] = t;
    }
    return array;
  };
  d3.permute = function(array, indexes) {
    var i = indexes.length, permutes = new Array(i);
    while (i--) permutes[i] = array[indexes[i]];
    return permutes;
  };
  d3.pairs = function(array) {
    var i = 0, n = array.length - 1, p0, p1 = array[0], pairs = new Array(n < 0 ? 0 : n);
    while (i < n) pairs[i] = [ p0 = p1, p1 = array[++i] ];
    return pairs;
  };
  d3.transpose = function(matrix) {
    if (!(n = matrix.length)) return [];
    for (var i = -1, m = d3.min(matrix, d3_transposeLength), transpose = new Array(m); ++i < m; ) {
      for (var j = -1, n, row = transpose[i] = new Array(n); ++j < n; ) {
        row[j] = matrix[j][i];
      }
    }
    return transpose;
  };
  function d3_transposeLength(d) {
    return d.length;
  }
  d3.zip = function() {
    return d3.transpose(arguments);
  };
  d3.keys = function(map) {
    var keys = [];
    for (var key in map) keys.push(key);
    return keys;
  };
  d3.values = function(map) {
    var values = [];
    for (var key in map) values.push(map[key]);
    return values;
  };
  d3.entries = function(map) {
    var entries = [];
    for (var key in map) entries.push({
      key: key,
      value: map[key]
    });
    return entries;
  };
  d3.merge = function(arrays) {
    var n = arrays.length, m, i = -1, j = 0, merged, array;
    while (++i < n) j += arrays[i].length;
    merged = new Array(j);
    while (--n >= 0) {
      array = arrays[n];
      m = array.length;
      while (--m >= 0) {
        merged[--j] = array[m];
      }
    }
    return merged;
  };
  var abs = Math.abs;
  d3.range = function(start, stop, step) {
    if (arguments.length < 3) {
      step = 1;
      if (arguments.length < 2) {
        stop = start;
        start = 0;
      }
    }
    if ((stop - start) / step === Infinity) throw new Error("infinite range");
    var range = [], k = d3_range_integerScale(abs(step)), i = -1, j;
    start *= k, stop *= k, step *= k;
    if (step < 0) while ((j = start + step * ++i) > stop) range.push(j / k); else while ((j = start + step * ++i) < stop) range.push(j / k);
    return range;
  };
  function d3_range_integerScale(x) {
    var k = 1;
    while (x * k % 1) k *= 10;
    return k;
  }
  function d3_class(ctor, properties) {
    for (var key in properties) {
      Object.defineProperty(ctor.prototype, key, {
        value: properties[key],
        enumerable: false
      });
    }
  }
  d3.map = function(object, f) {
    var map = new d3_Map();
    if (object instanceof d3_Map) {
      object.forEach(function(key, value) {
        map.set(key, value);
      });
    } else if (Array.isArray(object)) {
      var i = -1, n = object.length, o;
      if (arguments.length === 1) while (++i < n) map.set(i, object[i]); else while (++i < n) map.set(f.call(object, o = object[i], i), o);
    } else {
      for (var key in object) map.set(key, object[key]);
    }
    return map;
  };
  function d3_Map() {
    this._ = Object.create(null);
  }
  var d3_map_proto = "__proto__", d3_map_zero = "\x00";
  d3_class(d3_Map, {
    has: d3_map_has,
    get: function(key) {
      return this._[d3_map_escape(key)];
    },
    set: function(key, value) {
      return this._[d3_map_escape(key)] = value;
    },
    remove: d3_map_remove,
    keys: d3_map_keys,
    values: function() {
      var values = [];
      for (var key in this._) values.push(this._[key]);
      return values;
    },
    entries: function() {
      var entries = [];
      for (var key in this._) entries.push({
        key: d3_map_unescape(key),
        value: this._[key]
      });
      return entries;
    },
    size: d3_map_size,
    empty: d3_map_empty,
    forEach: function(f) {
      for (var key in this._) f.call(this, d3_map_unescape(key), this._[key]);
    }
  });
  function d3_map_escape(key) {
    return (key += "") === d3_map_proto || key[0] === d3_map_zero ? d3_map_zero + key : key;
  }
  function d3_map_unescape(key) {
    return (key += "")[0] === d3_map_zero ? key.slice(1) : key;
  }
  function d3_map_has(key) {
    return d3_map_escape(key) in this._;
  }
  function d3_map_remove(key) {
    return (key = d3_map_escape(key)) in this._ && delete this._[key];
  }
  function d3_map_keys() {
    var keys = [];
    for (var key in this._) keys.push(d3_map_unescape(key));
    return keys;
  }
  function d3_map_size() {
    var size = 0;
    for (var key in this._) ++size;
    return size;
  }
  function d3_map_empty() {
    for (var key in this._) return false;
    return true;
  }
  d3.nest = function() {
    var nest = {}, keys = [], sortKeys = [], sortValues, rollup;
    function map(mapType, array, depth) {
      if (depth >= keys.length) return rollup ? rollup.call(nest, array) : sortValues ? array.sort(sortValues) : array;
      var i = -1, n = array.length, key = keys[depth++], keyValue, object, setter, valuesByKey = new d3_Map(), values;
      while (++i < n) {
        if (values = valuesByKey.get(keyValue = key(object = array[i]))) {
          values.push(object);
        } else {
          valuesByKey.set(keyValue, [ object ]);
        }
      }
      if (mapType) {
        object = mapType();
        setter = function(keyValue, values) {
          object.set(keyValue, map(mapType, values, depth));
        };
      } else {
        object = {};
        setter = function(keyValue, values) {
          object[keyValue] = map(mapType, values, depth);
        };
      }
      valuesByKey.forEach(setter);
      return object;
    }
    function entries(map, depth) {
      if (depth >= keys.length) return map;
      var array = [], sortKey = sortKeys[depth++];
      map.forEach(function(key, keyMap) {
        array.push({
          key: key,
          values: entries(keyMap, depth)
        });
      });
      return sortKey ? array.sort(function(a, b) {
        return sortKey(a.key, b.key);
      }) : array;
    }
    nest.map = function(array, mapType) {
      return map(mapType, array, 0);
    };
    nest.entries = function(array) {
      return entries(map(d3.map, array, 0), 0);
    };
    nest.key = function(d) {
      keys.push(d);
      return nest;
    };
    nest.sortKeys = function(order) {
      sortKeys[keys.length - 1] = order;
      return nest;
    };
    nest.sortValues = function(order) {
      sortValues = order;
      return nest;
    };
    nest.rollup = function(f) {
      rollup = f;
      return nest;
    };
    return nest;
  };
  d3.set = function(array) {
    var set = new d3_Set();
    if (array) for (var i = 0, n = array.length; i < n; ++i) set.add(array[i]);
    return set;
  };
  function d3_Set() {
    this._ = Object.create(null);
  }
  d3_class(d3_Set, {
    has: d3_map_has,
    add: function(key) {
      this._[d3_map_escape(key += "")] = true;
      return key;
    },
    remove: d3_map_remove,
    values: d3_map_keys,
    size: d3_map_size,
    empty: d3_map_empty,
    forEach: function(f) {
      for (var key in this._) f.call(this, d3_map_unescape(key));
    }
  });
  d3.behavior = {};
  function d3_identity(d) {
    return d;
  }
  d3.rebind = function(target, source) {
    var i = 1, n = arguments.length, method;
    while (++i < n) target[method = arguments[i]] = d3_rebind(target, source, source[method]);
    return target;
  };
  function d3_rebind(target, source, method) {
    return function() {
      var value = method.apply(source, arguments);
      return value === source ? target : value;
    };
  }
  function d3_vendorSymbol(object, name) {
    if (name in object) return name;
    name = name.charAt(0).toUpperCase() + name.slice(1);
    for (var i = 0, n = d3_vendorPrefixes.length; i < n; ++i) {
      var prefixName = d3_vendorPrefixes[i] + name;
      if (prefixName in object) return prefixName;
    }
  }
  var d3_vendorPrefixes = [ "webkit", "ms", "moz", "Moz", "o", "O" ];
  function d3_noop() {}
  d3.dispatch = function() {
    var dispatch = new d3_dispatch(), i = -1, n = arguments.length;
    while (++i < n) dispatch[arguments[i]] = d3_dispatch_event(dispatch);
    return dispatch;
  };
  function d3_dispatch() {}
  d3_dispatch.prototype.on = function(type, listener) {
    var i = type.indexOf("."), name = "";
    if (i >= 0) {
      name = type.slice(i + 1);
      type = type.slice(0, i);
    }
    if (type) return arguments.length < 2 ? this[type].on(name) : this[type].on(name, listener);
    if (arguments.length === 2) {
      if (listener == null) for (type in this) {
        if (this.hasOwnProperty(type)) this[type].on(name, null);
      }
      return this;
    }
  };
  function d3_dispatch_event(dispatch) {
    var listeners = [], listenerByName = new d3_Map();
    function event() {
      var z = listeners, i = -1, n = z.length, l;
      while (++i < n) if (l = z[i].on) l.apply(this, arguments);
      return dispatch;
    }
    event.on = function(name, listener) {
      var l = listenerByName.get(name), i;
      if (arguments.length < 2) return l && l.on;
      if (l) {
        l.on = null;
        listeners = listeners.slice(0, i = listeners.indexOf(l)).concat(listeners.slice(i + 1));
        listenerByName.remove(name);
      }
      if (listener) listeners.push(listenerByName.set(name, {
        on: listener
      }));
      return dispatch;
    };
    return event;
  }
  d3.event = null;
  function d3_eventPreventDefault() {
    d3.event.preventDefault();
  }
  function d3_eventSource() {
    var e = d3.event, s;
    while (s = e.sourceEvent) e = s;
    return e;
  }
  function d3_eventDispatch(target) {
    var dispatch = new d3_dispatch(), i = 0, n = arguments.length;
    while (++i < n) dispatch[arguments[i]] = d3_dispatch_event(dispatch);
    dispatch.of = function(thiz, argumentz) {
      return function(e1) {
        try {
          var e0 = e1.sourceEvent = d3.event;
          e1.target = target;
          d3.event = e1;
          dispatch[e1.type].apply(thiz, argumentz);
        } finally {
          d3.event = e0;
        }
      };
    };
    return dispatch;
  }
  d3.requote = function(s) {
    return s.replace(d3_requote_re, "\\$&");
  };
  var d3_requote_re = /[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;
  var d3_subclass = {}.__proto__ ? function(object, prototype) {
    object.__proto__ = prototype;
  } : function(object, prototype) {
    for (var property in prototype) object[property] = prototype[property];
  };
  function d3_selection(groups) {
    d3_subclass(groups, d3_selectionPrototype);
    return groups;
  }
  var d3_select = function(s, n) {
    return n.querySelector(s);
  }, d3_selectAll = function(s, n) {
    return n.querySelectorAll(s);
  }, d3_selectMatches = function(n, s) {
    var d3_selectMatcher = n.matches || n[d3_vendorSymbol(n, "matchesSelector")];
    d3_selectMatches = function(n, s) {
      return d3_selectMatcher.call(n, s);
    };
    return d3_selectMatches(n, s);
  };
  if (typeof Sizzle === "function") {
    d3_select = function(s, n) {
      return Sizzle(s, n)[0] || null;
    };
    d3_selectAll = Sizzle;
    d3_selectMatches = Sizzle.matchesSelector;
  }
  d3.selection = function() {
    return d3.select(d3_document.documentElement);
  };
  var d3_selectionPrototype = d3.selection.prototype = [];
  d3_selectionPrototype.select = function(selector) {
    var subgroups = [], subgroup, subnode, group, node;
    selector = d3_selection_selector(selector);
    for (var j = -1, m = this.length; ++j < m; ) {
      subgroups.push(subgroup = []);
      subgroup.parentNode = (group = this[j]).parentNode;
      for (var i = -1, n = group.length; ++i < n; ) {
        if (node = group[i]) {
          subgroup.push(subnode = selector.call(node, node.__data__, i, j));
          if (subnode && "__data__" in node) subnode.__data__ = node.__data__;
        } else {
          subgroup.push(null);
        }
      }
    }
    return d3_selection(subgroups);
  };
  function d3_selection_selector(selector) {
    return typeof selector === "function" ? selector : function() {
      return d3_select(selector, this);
    };
  }
  d3_selectionPrototype.selectAll = function(selector) {
    var subgroups = [], subgroup, node;
    selector = d3_selection_selectorAll(selector);
    for (var j = -1, m = this.length; ++j < m; ) {
      for (var group = this[j], i = -1, n = group.length; ++i < n; ) {
        if (node = group[i]) {
          subgroups.push(subgroup = d3_array(selector.call(node, node.__data__, i, j)));
          subgroup.parentNode = node;
        }
      }
    }
    return d3_selection(subgroups);
  };
  function d3_selection_selectorAll(selector) {
    return typeof selector === "function" ? selector : function() {
      return d3_selectAll(selector, this);
    };
  }
  var d3_nsXhtml = "http://www.w3.org/1999/xhtml";
  var d3_nsPrefix = {
    svg: "http://www.w3.org/2000/svg",
    xhtml: d3_nsXhtml,
    xlink: "http://www.w3.org/1999/xlink",
    xml: "http://www.w3.org/XML/1998/namespace",
    xmlns: "http://www.w3.org/2000/xmlns/"
  };
  d3.ns = {
    prefix: d3_nsPrefix,
    qualify: function(name) {
      var i = name.indexOf(":"), prefix = name;
      if (i >= 0 && (prefix = name.slice(0, i)) !== "xmlns") name = name.slice(i + 1);
      return d3_nsPrefix.hasOwnProperty(prefix) ? {
        space: d3_nsPrefix[prefix],
        local: name
      } : name;
    }
  };
  d3_selectionPrototype.attr = function(name, value) {
    if (arguments.length < 2) {
      if (typeof name === "string") {
        var node = this.node();
        name = d3.ns.qualify(name);
        return name.local ? node.getAttributeNS(name.space, name.local) : node.getAttribute(name);
      }
      for (value in name) this.each(d3_selection_attr(value, name[value]));
      return this;
    }
    return this.each(d3_selection_attr(name, value));
  };
  function d3_selection_attr(name, value) {
    name = d3.ns.qualify(name);
    function attrNull() {
      this.removeAttribute(name);
    }
    function attrNullNS() {
      this.removeAttributeNS(name.space, name.local);
    }
    function attrConstant() {
      this.setAttribute(name, value);
    }
    function attrConstantNS() {
      this.setAttributeNS(name.space, name.local, value);
    }
    function attrFunction() {
      var x = value.apply(this, arguments);
      if (x == null) this.removeAttribute(name); else this.setAttribute(name, x);
    }
    function attrFunctionNS() {
      var x = value.apply(this, arguments);
      if (x == null) this.removeAttributeNS(name.space, name.local); else this.setAttributeNS(name.space, name.local, x);
    }
    return value == null ? name.local ? attrNullNS : attrNull : typeof value === "function" ? name.local ? attrFunctionNS : attrFunction : name.local ? attrConstantNS : attrConstant;
  }
  function d3_collapse(s) {
    return s.trim().replace(/\s+/g, " ");
  }
  d3_selectionPrototype.classed = function(name, value) {
    if (arguments.length < 2) {
      if (typeof name === "string") {
        var node = this.node(), n = (name = d3_selection_classes(name)).length, i = -1;
        if (value = node.classList) {
          while (++i < n) if (!value.contains(name[i])) return false;
        } else {
          value = node.getAttribute("class");
          while (++i < n) if (!d3_selection_classedRe(name[i]).test(value)) return false;
        }
        return true;
      }
      for (value in name) this.each(d3_selection_classed(value, name[value]));
      return this;
    }
    return this.each(d3_selection_classed(name, value));
  };
  function d3_selection_classedRe(name) {
    return new RegExp("(?:^|\\s+)" + d3.requote(name) + "(?:\\s+|$)", "g");
  }
  function d3_selection_classes(name) {
    return (name + "").trim().split(/^|\s+/);
  }
  function d3_selection_classed(name, value) {
    name = d3_selection_classes(name).map(d3_selection_classedName);
    var n = name.length;
    function classedConstant() {
      var i = -1;
      while (++i < n) name[i](this, value);
    }
    function classedFunction() {
      var i = -1, x = value.apply(this, arguments);
      while (++i < n) name[i](this, x);
    }
    return typeof value === "function" ? classedFunction : classedConstant;
  }
  function d3_selection_classedName(name) {
    var re = d3_selection_classedRe(name);
    return function(node, value) {
      if (c = node.classList) return value ? c.add(name) : c.remove(name);
      var c = node.getAttribute("class") || "";
      if (value) {
        re.lastIndex = 0;
        if (!re.test(c)) node.setAttribute("class", d3_collapse(c + " " + name));
      } else {
        node.setAttribute("class", d3_collapse(c.replace(re, " ")));
      }
    };
  }
  d3_selectionPrototype.style = function(name, value, priority) {
    var n = arguments.length;
    if (n < 3) {
      if (typeof name !== "string") {
        if (n < 2) value = "";
        for (priority in name) this.each(d3_selection_style(priority, name[priority], value));
        return this;
      }
      if (n < 2) {
        var node = this.node();
        return d3_window(node).getComputedStyle(node, null).getPropertyValue(name);
      }
      priority = "";
    }
    return this.each(d3_selection_style(name, value, priority));
  };
  function d3_selection_style(name, value, priority) {
    function styleNull() {
      this.style.removeProperty(name);
    }
    function styleConstant() {
      this.style.setProperty(name, value, priority);
    }
    function styleFunction() {
      var x = value.apply(this, arguments);
      if (x == null) this.style.removeProperty(name); else this.style.setProperty(name, x, priority);
    }
    return value == null ? styleNull : typeof value === "function" ? styleFunction : styleConstant;
  }
  d3_selectionPrototype.property = function(name, value) {
    if (arguments.length < 2) {
      if (typeof name === "string") return this.node()[name];
      for (value in name) this.each(d3_selection_property(value, name[value]));
      return this;
    }
    return this.each(d3_selection_property(name, value));
  };
  function d3_selection_property(name, value) {
    function propertyNull() {
      delete this[name];
    }
    function propertyConstant() {
      this[name] = value;
    }
    function propertyFunction() {
      var x = value.apply(this, arguments);
      if (x == null) delete this[name]; else this[name] = x;
    }
    return value == null ? propertyNull : typeof value === "function" ? propertyFunction : propertyConstant;
  }
  d3_selectionPrototype.text = function(value) {
    return arguments.length ? this.each(typeof value === "function" ? function() {
      var v = value.apply(this, arguments);
      this.textContent = v == null ? "" : v;
    } : value == null ? function() {
      this.textContent = "";
    } : function() {
      this.textContent = value;
    }) : this.node().textContent;
  };
  d3_selectionPrototype.html = function(value) {
    return arguments.length ? this.each(typeof value === "function" ? function() {
      var v = value.apply(this, arguments);
      this.innerHTML = v == null ? "" : v;
    } : value == null ? function() {
      this.innerHTML = "";
    } : function() {
      this.innerHTML = value;
    }) : this.node().innerHTML;
  };
  d3_selectionPrototype.append = function(name) {
    name = d3_selection_creator(name);
    return this.select(function() {
      return this.appendChild(name.apply(this, arguments));
    });
  };
  function d3_selection_creator(name) {
    function create() {
      var document = this.ownerDocument, namespace = this.namespaceURI;
      return namespace === d3_nsXhtml && document.documentElement.namespaceURI === d3_nsXhtml ? document.createElement(name) : document.createElementNS(namespace, name);
    }
    function createNS() {
      return this.ownerDocument.createElementNS(name.space, name.local);
    }
    return typeof name === "function" ? name : (name = d3.ns.qualify(name)).local ? createNS : create;
  }
  d3_selectionPrototype.insert = function(name, before) {
    name = d3_selection_creator(name);
    before = d3_selection_selector(before);
    return this.select(function() {
      return this.insertBefore(name.apply(this, arguments), before.apply(this, arguments) || null);
    });
  };
  d3_selectionPrototype.remove = function() {
    return this.each(d3_selectionRemove);
  };
  function d3_selectionRemove() {
    var parent = this.parentNode;
    if (parent) parent.removeChild(this);
  }
  d3_selectionPrototype.data = function(value, key) {
    var i = -1, n = this.length, group, node;
    if (!arguments.length) {
      value = new Array(n = (group = this[0]).length);
      while (++i < n) {
        if (node = group[i]) {
          value[i] = node.__data__;
        }
      }
      return value;
    }
    function bind(group, groupData) {
      var i, n = group.length, m = groupData.length, n0 = Math.min(n, m), updateNodes = new Array(m), enterNodes = new Array(m), exitNodes = new Array(n), node, nodeData;
      if (key) {
        var nodeByKeyValue = new d3_Map(), keyValues = new Array(n), keyValue;
        for (i = -1; ++i < n; ) {
          if (node = group[i]) {
            if (nodeByKeyValue.has(keyValue = key.call(node, node.__data__, i))) {
              exitNodes[i] = node;
            } else {
              nodeByKeyValue.set(keyValue, node);
            }
            keyValues[i] = keyValue;
          }
        }
        for (i = -1; ++i < m; ) {
          if (!(node = nodeByKeyValue.get(keyValue = key.call(groupData, nodeData = groupData[i], i)))) {
            enterNodes[i] = d3_selection_dataNode(nodeData);
          } else if (node !== true) {
            updateNodes[i] = node;
            node.__data__ = nodeData;
          }
          nodeByKeyValue.set(keyValue, true);
        }
        for (i = -1; ++i < n; ) {
          if (i in keyValues && nodeByKeyValue.get(keyValues[i]) !== true) {
            exitNodes[i] = group[i];
          }
        }
      } else {
        for (i = -1; ++i < n0; ) {
          node = group[i];
          nodeData = groupData[i];
          if (node) {
            node.__data__ = nodeData;
            updateNodes[i] = node;
          } else {
            enterNodes[i] = d3_selection_dataNode(nodeData);
          }
        }
        for (;i < m; ++i) {
          enterNodes[i] = d3_selection_dataNode(groupData[i]);
        }
        for (;i < n; ++i) {
          exitNodes[i] = group[i];
        }
      }
      enterNodes.update = updateNodes;
      enterNodes.parentNode = updateNodes.parentNode = exitNodes.parentNode = group.parentNode;
      enter.push(enterNodes);
      update.push(updateNodes);
      exit.push(exitNodes);
    }
    var enter = d3_selection_enter([]), update = d3_selection([]), exit = d3_selection([]);
    if (typeof value === "function") {
      while (++i < n) {
        bind(group = this[i], value.call(group, group.parentNode.__data__, i));
      }
    } else {
      while (++i < n) {
        bind(group = this[i], value);
      }
    }
    update.enter = function() {
      return enter;
    };
    update.exit = function() {
      return exit;
    };
    return update;
  };
  function d3_selection_dataNode(data) {
    return {
      __data__: data
    };
  }
  d3_selectionPrototype.datum = function(value) {
    return arguments.length ? this.property("__data__", value) : this.property("__data__");
  };
  d3_selectionPrototype.filter = function(filter) {
    var subgroups = [], subgroup, group, node;
    if (typeof filter !== "function") filter = d3_selection_filter(filter);
    for (var j = 0, m = this.length; j < m; j++) {
      subgroups.push(subgroup = []);
      subgroup.parentNode = (group = this[j]).parentNode;
      for (var i = 0, n = group.length; i < n; i++) {
        if ((node = group[i]) && filter.call(node, node.__data__, i, j)) {
          subgroup.push(node);
        }
      }
    }
    return d3_selection(subgroups);
  };
  function d3_selection_filter(selector) {
    return function() {
      return d3_selectMatches(this, selector);
    };
  }
  d3_selectionPrototype.order = function() {
    for (var j = -1, m = this.length; ++j < m; ) {
      for (var group = this[j], i = group.length - 1, next = group[i], node; --i >= 0; ) {
        if (node = group[i]) {
          if (next && next !== node.nextSibling) next.parentNode.insertBefore(node, next);
          next = node;
        }
      }
    }
    return this;
  };
  d3_selectionPrototype.sort = function(comparator) {
    comparator = d3_selection_sortComparator.apply(this, arguments);
    for (var j = -1, m = this.length; ++j < m; ) this[j].sort(comparator);
    return this.order();
  };
  function d3_selection_sortComparator(comparator) {
    if (!arguments.length) comparator = d3_ascending;
    return function(a, b) {
      return a && b ? comparator(a.__data__, b.__data__) : !a - !b;
    };
  }
  d3_selectionPrototype.each = function(callback) {
    return d3_selection_each(this, function(node, i, j) {
      callback.call(node, node.__data__, i, j);
    });
  };
  function d3_selection_each(groups, callback) {
    for (var j = 0, m = groups.length; j < m; j++) {
      for (var group = groups[j], i = 0, n = group.length, node; i < n; i++) {
        if (node = group[i]) callback(node, i, j);
      }
    }
    return groups;
  }
  d3_selectionPrototype.call = function(callback) {
    var args = d3_array(arguments);
    callback.apply(args[0] = this, args);
    return this;
  };
  d3_selectionPrototype.empty = function() {
    return !this.node();
  };
  d3_selectionPrototype.node = function() {
    for (var j = 0, m = this.length; j < m; j++) {
      for (var group = this[j], i = 0, n = group.length; i < n; i++) {
        var node = group[i];
        if (node) return node;
      }
    }
    return null;
  };
  d3_selectionPrototype.size = function() {
    var n = 0;
    d3_selection_each(this, function() {
      ++n;
    });
    return n;
  };
  function d3_selection_enter(selection) {
    d3_subclass(selection, d3_selection_enterPrototype);
    return selection;
  }
  var d3_selection_enterPrototype = [];
  d3.selection.enter = d3_selection_enter;
  d3.selection.enter.prototype = d3_selection_enterPrototype;
  d3_selection_enterPrototype.append = d3_selectionPrototype.append;
  d3_selection_enterPrototype.empty = d3_selectionPrototype.empty;
  d3_selection_enterPrototype.node = d3_selectionPrototype.node;
  d3_selection_enterPrototype.call = d3_selectionPrototype.call;
  d3_selection_enterPrototype.size = d3_selectionPrototype.size;
  d3_selection_enterPrototype.select = function(selector) {
    var subgroups = [], subgroup, subnode, upgroup, group, node;
    for (var j = -1, m = this.length; ++j < m; ) {
      upgroup = (group = this[j]).update;
      subgroups.push(subgroup = []);
      subgroup.parentNode = group.parentNode;
      for (var i = -1, n = group.length; ++i < n; ) {
        if (node = group[i]) {
          subgroup.push(upgroup[i] = subnode = selector.call(group.parentNode, node.__data__, i, j));
          subnode.__data__ = node.__data__;
        } else {
          subgroup.push(null);
        }
      }
    }
    return d3_selection(subgroups);
  };
  d3_selection_enterPrototype.insert = function(name, before) {
    if (arguments.length < 2) before = d3_selection_enterInsertBefore(this);
    return d3_selectionPrototype.insert.call(this, name, before);
  };
  function d3_selection_enterInsertBefore(enter) {
    var i0, j0;
    return function(d, i, j) {
      var group = enter[j].update, n = group.length, node;
      if (j != j0) j0 = j, i0 = 0;
      if (i >= i0) i0 = i + 1;
      while (!(node = group[i0]) && ++i0 < n) ;
      return node;
    };
  }
  d3.select = function(node) {
    var group;
    if (typeof node === "string") {
      group = [ d3_select(node, d3_document) ];
      group.parentNode = d3_document.documentElement;
    } else {
      group = [ node ];
      group.parentNode = d3_documentElement(node);
    }
    return d3_selection([ group ]);
  };
  d3.selectAll = function(nodes) {
    var group;
    if (typeof nodes === "string") {
      group = d3_array(d3_selectAll(nodes, d3_document));
      group.parentNode = d3_document.documentElement;
    } else {
      group = d3_array(nodes);
      group.parentNode = null;
    }
    return d3_selection([ group ]);
  };
  d3_selectionPrototype.on = function(type, listener, capture) {
    var n = arguments.length;
    if (n < 3) {
      if (typeof type !== "string") {
        if (n < 2) listener = false;
        for (capture in type) this.each(d3_selection_on(capture, type[capture], listener));
        return this;
      }
      if (n < 2) return (n = this.node()["__on" + type]) && n._;
      capture = false;
    }
    return this.each(d3_selection_on(type, listener, capture));
  };
  function d3_selection_on(type, listener, capture) {
    var name = "__on" + type, i = type.indexOf("."), wrap = d3_selection_onListener;
    if (i > 0) type = type.slice(0, i);
    var filter = d3_selection_onFilters.get(type);
    if (filter) type = filter, wrap = d3_selection_onFilter;
    function onRemove() {
      var l = this[name];
      if (l) {
        this.removeEventListener(type, l, l.$);
        delete this[name];
      }
    }
    function onAdd() {
      var l = wrap(listener, d3_array(arguments));
      onRemove.call(this);
      this.addEventListener(type, this[name] = l, l.$ = capture);
      l._ = listener;
    }
    function removeAll() {
      var re = new RegExp("^__on([^.]+)" + d3.requote(type) + "$"), match;
      for (var name in this) {
        if (match = name.match(re)) {
          var l = this[name];
          this.removeEventListener(match[1], l, l.$);
          delete this[name];
        }
      }
    }
    return i ? listener ? onAdd : onRemove : listener ? d3_noop : removeAll;
  }
  var d3_selection_onFilters = d3.map({
    mouseenter: "mouseover",
    mouseleave: "mouseout"
  });
  if (d3_document) {
    d3_selection_onFilters.forEach(function(k) {
      if ("on" + k in d3_document) d3_selection_onFilters.remove(k);
    });
  }
  function d3_selection_onListener(listener, argumentz) {
    return function(e) {
      var o = d3.event;
      d3.event = e;
      argumentz[0] = this.__data__;
      try {
        listener.apply(this, argumentz);
      } finally {
        d3.event = o;
      }
    };
  }
  function d3_selection_onFilter(listener, argumentz) {
    var l = d3_selection_onListener(listener, argumentz);
    return function(e) {
      var target = this, related = e.relatedTarget;
      if (!related || related !== target && !(related.compareDocumentPosition(target) & 8)) {
        l.call(target, e);
      }
    };
  }
  var d3_event_dragSelect, d3_event_dragId = 0;
  function d3_event_dragSuppress(node) {
    var name = ".dragsuppress-" + ++d3_event_dragId, click = "click" + name, w = d3.select(d3_window(node)).on("touchmove" + name, d3_eventPreventDefault).on("dragstart" + name, d3_eventPreventDefault).on("selectstart" + name, d3_eventPreventDefault);
    if (d3_event_dragSelect == null) {
      d3_event_dragSelect = "onselectstart" in node ? false : d3_vendorSymbol(node.style, "userSelect");
    }
    if (d3_event_dragSelect) {
      var style = d3_documentElement(node).style, select = style[d3_event_dragSelect];
      style[d3_event_dragSelect] = "none";
    }
    return function(suppressClick) {
      w.on(name, null);
      if (d3_event_dragSelect) style[d3_event_dragSelect] = select;
      if (suppressClick) {
        var off = function() {
          w.on(click, null);
        };
        w.on(click, function() {
          d3_eventPreventDefault();
          off();
        }, true);
        setTimeout(off, 0);
      }
    };
  }
  d3.mouse = function(container) {
    return d3_mousePoint(container, d3_eventSource());
  };
  var d3_mouse_bug44083 = this.navigator && /WebKit/.test(this.navigator.userAgent) ? -1 : 0;
  function d3_mousePoint(container, e) {
    if (e.changedTouches) e = e.changedTouches[0];
    var svg = container.ownerSVGElement || container;
    if (svg.createSVGPoint) {
      var point = svg.createSVGPoint();
      if (d3_mouse_bug44083 < 0) {
        var window = d3_window(container);
        if (window.scrollX || window.scrollY) {
          svg = d3.select("body").append("svg").style({
            position: "absolute",
            top: 0,
            left: 0,
            margin: 0,
            padding: 0,
            border: "none"
          }, "important");
          var ctm = svg[0][0].getScreenCTM();
          d3_mouse_bug44083 = !(ctm.f || ctm.e);
          svg.remove();
        }
      }
      if (d3_mouse_bug44083) point.x = e.pageX, point.y = e.pageY; else point.x = e.clientX, 
      point.y = e.clientY;
      point = point.matrixTransform(container.getScreenCTM().inverse());
      return [ point.x, point.y ];
    }
    var rect = container.getBoundingClientRect();
    return [ e.clientX - rect.left - container.clientLeft, e.clientY - rect.top - container.clientTop ];
  }
  d3.touch = function(container, touches, identifier) {
    if (arguments.length < 3) identifier = touches, touches = d3_eventSource().changedTouches;
    if (touches) for (var i = 0, n = touches.length, touch; i < n; ++i) {
      if ((touch = touches[i]).identifier === identifier) {
        return d3_mousePoint(container, touch);
      }
    }
  };
  d3.behavior.drag = function() {
    var event = d3_eventDispatch(drag, "drag", "dragstart", "dragend"), origin = null, mousedown = dragstart(d3_noop, d3.mouse, d3_window, "mousemove", "mouseup"), touchstart = dragstart(d3_behavior_dragTouchId, d3.touch, d3_identity, "touchmove", "touchend");
    function drag() {
      this.on("mousedown.drag", mousedown).on("touchstart.drag", touchstart);
    }
    function dragstart(id, position, subject, move, end) {
      return function() {
        var that = this, target = d3.event.target.correspondingElement || d3.event.target, parent = that.parentNode, dispatch = event.of(that, arguments), dragged = 0, dragId = id(), dragName = ".drag" + (dragId == null ? "" : "-" + dragId), dragOffset, dragSubject = d3.select(subject(target)).on(move + dragName, moved).on(end + dragName, ended), dragRestore = d3_event_dragSuppress(target), position0 = position(parent, dragId);
        if (origin) {
          dragOffset = origin.apply(that, arguments);
          dragOffset = [ dragOffset.x - position0[0], dragOffset.y - position0[1] ];
        } else {
          dragOffset = [ 0, 0 ];
        }
        dispatch({
          type: "dragstart"
        });
        function moved() {
          var position1 = position(parent, dragId), dx, dy;
          if (!position1) return;
          dx = position1[0] - position0[0];
          dy = position1[1] - position0[1];
          dragged |= dx | dy;
          position0 = position1;
          dispatch({
            type: "drag",
            x: position1[0] + dragOffset[0],
            y: position1[1] + dragOffset[1],
            dx: dx,
            dy: dy
          });
        }
        function ended() {
          if (!position(parent, dragId)) return;
          dragSubject.on(move + dragName, null).on(end + dragName, null);
          dragRestore(dragged);
          dispatch({
            type: "dragend"
          });
        }
      };
    }
    drag.origin = function(x) {
      if (!arguments.length) return origin;
      origin = x;
      return drag;
    };
    return d3.rebind(drag, event, "on");
  };
  function d3_behavior_dragTouchId() {
    return d3.event.changedTouches[0].identifier;
  }
  d3.touches = function(container, touches) {
    if (arguments.length < 2) touches = d3_eventSource().touches;
    return touches ? d3_array(touches).map(function(touch) {
      var point = d3_mousePoint(container, touch);
      point.identifier = touch.identifier;
      return point;
    }) : [];
  };
  var ε = 1e-6, ε2 = ε * ε, π = Math.PI, τ = 2 * π, τε = τ - ε, halfπ = π / 2, d3_radians = π / 180, d3_degrees = 180 / π;
  function d3_sgn(x) {
    return x > 0 ? 1 : x < 0 ? -1 : 0;
  }
  function d3_cross2d(a, b, c) {
    return (b[0] - a[0]) * (c[1] - a[1]) - (b[1] - a[1]) * (c[0] - a[0]);
  }
  function d3_acos(x) {
    return x > 1 ? 0 : x < -1 ? π : Math.acos(x);
  }
  function d3_asin(x) {
    return x > 1 ? halfπ : x < -1 ? -halfπ : Math.asin(x);
  }
  function d3_sinh(x) {
    return ((x = Math.exp(x)) - 1 / x) / 2;
  }
  function d3_cosh(x) {
    return ((x = Math.exp(x)) + 1 / x) / 2;
  }
  function d3_tanh(x) {
    return ((x = Math.exp(2 * x)) - 1) / (x + 1);
  }
  function d3_haversin(x) {
    return (x = Math.sin(x / 2)) * x;
  }
  var ρ = Math.SQRT2, ρ2 = 2, ρ4 = 4;
  d3.interpolateZoom = function(p0, p1) {
    var ux0 = p0[0], uy0 = p0[1], w0 = p0[2], ux1 = p1[0], uy1 = p1[1], w1 = p1[2], dx = ux1 - ux0, dy = uy1 - uy0, d2 = dx * dx + dy * dy, i, S;
    if (d2 < ε2) {
      S = Math.log(w1 / w0) / ρ;
      i = function(t) {
        return [ ux0 + t * dx, uy0 + t * dy, w0 * Math.exp(ρ * t * S) ];
      };
    } else {
      var d1 = Math.sqrt(d2), b0 = (w1 * w1 - w0 * w0 + ρ4 * d2) / (2 * w0 * ρ2 * d1), b1 = (w1 * w1 - w0 * w0 - ρ4 * d2) / (2 * w1 * ρ2 * d1), r0 = Math.log(Math.sqrt(b0 * b0 + 1) - b0), r1 = Math.log(Math.sqrt(b1 * b1 + 1) - b1);
      S = (r1 - r0) / ρ;
      i = function(t) {
        var s = t * S, coshr0 = d3_cosh(r0), u = w0 / (ρ2 * d1) * (coshr0 * d3_tanh(ρ * s + r0) - d3_sinh(r0));
        return [ ux0 + u * dx, uy0 + u * dy, w0 * coshr0 / d3_cosh(ρ * s + r0) ];
      };
    }
    i.duration = S * 1e3;
    return i;
  };
  d3.behavior.zoom = function() {
    var view = {
      x: 0,
      y: 0,
      k: 1
    }, translate0, center0, center, size = [ 960, 500 ], scaleExtent = d3_behavior_zoomInfinity, duration = 250, zooming = 0, mousedown = "mousedown.zoom", mousemove = "mousemove.zoom", mouseup = "mouseup.zoom", mousewheelTimer, touchstart = "touchstart.zoom", touchtime, event = d3_eventDispatch(zoom, "zoomstart", "zoom", "zoomend"), x0, x1, y0, y1;
    if (!d3_behavior_zoomWheel) {
      d3_behavior_zoomWheel = "onwheel" in d3_document ? (d3_behavior_zoomDelta = function() {
        return -d3.event.deltaY * (d3.event.deltaMode ? 120 : 1);
      }, "wheel") : "onmousewheel" in d3_document ? (d3_behavior_zoomDelta = function() {
        return d3.event.wheelDelta;
      }, "mousewheel") : (d3_behavior_zoomDelta = function() {
        return -d3.event.detail;
      }, "MozMousePixelScroll");
    }
    function zoom(g) {
      g.on(mousedown, mousedowned).on(d3_behavior_zoomWheel + ".zoom", mousewheeled).on("dblclick.zoom", dblclicked).on(touchstart, touchstarted);
    }
    zoom.event = function(g) {
      g.each(function() {
        var dispatch = event.of(this, arguments), view1 = view;
        if (d3_transitionInheritId) {
          d3.select(this).transition().each("start.zoom", function() {
            view = this.__chart__ || {
              x: 0,
              y: 0,
              k: 1
            };
            zoomstarted(dispatch);
          }).tween("zoom:zoom", function() {
            var dx = size[0], dy = size[1], cx = center0 ? center0[0] : dx / 2, cy = center0 ? center0[1] : dy / 2, i = d3.interpolateZoom([ (cx - view.x) / view.k, (cy - view.y) / view.k, dx / view.k ], [ (cx - view1.x) / view1.k, (cy - view1.y) / view1.k, dx / view1.k ]);
            return function(t) {
              var l = i(t), k = dx / l[2];
              this.__chart__ = view = {
                x: cx - l[0] * k,
                y: cy - l[1] * k,
                k: k
              };
              zoomed(dispatch);
            };
          }).each("interrupt.zoom", function() {
            zoomended(dispatch);
          }).each("end.zoom", function() {
            zoomended(dispatch);
          });
        } else {
          this.__chart__ = view;
          zoomstarted(dispatch);
          zoomed(dispatch);
          zoomended(dispatch);
        }
      });
    };
    zoom.translate = function(_) {
      if (!arguments.length) return [ view.x, view.y ];
      view = {
        x: +_[0],
        y: +_[1],
        k: view.k
      };
      rescale();
      return zoom;
    };
    zoom.scale = function(_) {
      if (!arguments.length) return view.k;
      view = {
        x: view.x,
        y: view.y,
        k: null
      };
      scaleTo(+_);
      rescale();
      return zoom;
    };
    zoom.scaleExtent = function(_) {
      if (!arguments.length) return scaleExtent;
      scaleExtent = _ == null ? d3_behavior_zoomInfinity : [ +_[0], +_[1] ];
      return zoom;
    };
    zoom.center = function(_) {
      if (!arguments.length) return center;
      center = _ && [ +_[0], +_[1] ];
      return zoom;
    };
    zoom.size = function(_) {
      if (!arguments.length) return size;
      size = _ && [ +_[0], +_[1] ];
      return zoom;
    };
    zoom.duration = function(_) {
      if (!arguments.length) return duration;
      duration = +_;
      return zoom;
    };
    zoom.x = function(z) {
      if (!arguments.length) return x1;
      x1 = z;
      x0 = z.copy();
      view = {
        x: 0,
        y: 0,
        k: 1
      };
      return zoom;
    };
    zoom.y = function(z) {
      if (!arguments.length) return y1;
      y1 = z;
      y0 = z.copy();
      view = {
        x: 0,
        y: 0,
        k: 1
      };
      return zoom;
    };
    function location(p) {
      return [ (p[0] - view.x) / view.k, (p[1] - view.y) / view.k ];
    }
    function point(l) {
      return [ l[0] * view.k + view.x, l[1] * view.k + view.y ];
    }
    function scaleTo(s) {
      view.k = Math.max(scaleExtent[0], Math.min(scaleExtent[1], s));
    }
    function translateTo(p, l) {
      l = point(l);
      view.x += p[0] - l[0];
      view.y += p[1] - l[1];
    }
    function zoomTo(that, p, l, k) {
      that.__chart__ = {
        x: view.x,
        y: view.y,
        k: view.k
      };
      scaleTo(Math.pow(2, k));
      translateTo(center0 = p, l);
      that = d3.select(that);
      if (duration > 0) that = that.transition().duration(duration);
      that.call(zoom.event);
    }
    function rescale() {
      if (x1) x1.domain(x0.range().map(function(x) {
        return (x - view.x) / view.k;
      }).map(x0.invert));
      if (y1) y1.domain(y0.range().map(function(y) {
        return (y - view.y) / view.k;
      }).map(y0.invert));
    }
    function zoomstarted(dispatch) {
      if (!zooming++) dispatch({
        type: "zoomstart"
      });
    }
    function zoomed(dispatch) {
      rescale();
      dispatch({
        type: "zoom",
        scale: view.k,
        translate: [ view.x, view.y ]
      });
    }
    function zoomended(dispatch) {
      if (!--zooming) dispatch({
        type: "zoomend"
      }), center0 = null;
    }
    function mousedowned() {
      var that = this, dispatch = event.of(that, arguments), dragged = 0, subject = d3.select(d3_window(that)).on(mousemove, moved).on(mouseup, ended), location0 = location(d3.mouse(that)), dragRestore = d3_event_dragSuppress(that);
      d3_selection_interrupt.call(that);
      zoomstarted(dispatch);
      function moved() {
        dragged = 1;
        translateTo(d3.mouse(that), location0);
        zoomed(dispatch);
      }
      function ended() {
        subject.on(mousemove, null).on(mouseup, null);
        dragRestore(dragged);
        zoomended(dispatch);
      }
    }
    function touchstarted() {
      var that = this, dispatch = event.of(that, arguments), locations0 = {}, distance0 = 0, scale0, zoomName = ".zoom-" + d3.event.changedTouches[0].identifier, touchmove = "touchmove" + zoomName, touchend = "touchend" + zoomName, targets = [], subject = d3.select(that), dragRestore = d3_event_dragSuppress(that);
      started();
      zoomstarted(dispatch);
      subject.on(mousedown, null).on(touchstart, started);
      function relocate() {
        var touches = d3.touches(that);
        scale0 = view.k;
        touches.forEach(function(t) {
          if (t.identifier in locations0) locations0[t.identifier] = location(t);
        });
        return touches;
      }
      function started() {
        var target = d3.event.target;
        d3.select(target).on(touchmove, moved).on(touchend, ended);
        targets.push(target);
        var changed = d3.event.changedTouches;
        for (var i = 0, n = changed.length; i < n; ++i) {
          locations0[changed[i].identifier] = null;
        }
        var touches = relocate(), now = Date.now();
        if (touches.length === 1) {
          if (now - touchtime < 500) {
            var p = touches[0];
            zoomTo(that, p, locations0[p.identifier], Math.floor(Math.log(view.k) / Math.LN2) + 1);
            d3_eventPreventDefault();
          }
          touchtime = now;
        } else if (touches.length > 1) {
          var p = touches[0], q = touches[1], dx = p[0] - q[0], dy = p[1] - q[1];
          distance0 = dx * dx + dy * dy;
        }
      }
      function moved() {
        var touches = d3.touches(that), p0, l0, p1, l1;
        d3_selection_interrupt.call(that);
        for (var i = 0, n = touches.length; i < n; ++i, l1 = null) {
          p1 = touches[i];
          if (l1 = locations0[p1.identifier]) {
            if (l0) break;
            p0 = p1, l0 = l1;
          }
        }
        if (l1) {
          var distance1 = (distance1 = p1[0] - p0[0]) * distance1 + (distance1 = p1[1] - p0[1]) * distance1, scale1 = distance0 && Math.sqrt(distance1 / distance0);
          p0 = [ (p0[0] + p1[0]) / 2, (p0[1] + p1[1]) / 2 ];
          l0 = [ (l0[0] + l1[0]) / 2, (l0[1] + l1[1]) / 2 ];
          scaleTo(scale1 * scale0);
        }
        touchtime = null;
        translateTo(p0, l0);
        zoomed(dispatch);
      }
      function ended() {
        if (d3.event.touches.length) {
          var changed = d3.event.changedTouches;
          for (var i = 0, n = changed.length; i < n; ++i) {
            delete locations0[changed[i].identifier];
          }
          for (var identifier in locations0) {
            return void relocate();
          }
        }
        d3.selectAll(targets).on(zoomName, null);
        subject.on(mousedown, mousedowned).on(touchstart, touchstarted);
        dragRestore();
        zoomended(dispatch);
      }
    }
    function mousewheeled() {
      var dispatch = event.of(this, arguments);
      if (mousewheelTimer) clearTimeout(mousewheelTimer); else d3_selection_interrupt.call(this), 
      translate0 = location(center0 = center || d3.mouse(this)), zoomstarted(dispatch);
      mousewheelTimer = setTimeout(function() {
        mousewheelTimer = null;
        zoomended(dispatch);
      }, 50);
      d3_eventPreventDefault();
      scaleTo(Math.pow(2, d3_behavior_zoomDelta() * .002) * view.k);
      translateTo(center0, translate0);
      zoomed(dispatch);
    }
    function dblclicked() {
      var p = d3.mouse(this), k = Math.log(view.k) / Math.LN2;
      zoomTo(this, p, location(p), d3.event.shiftKey ? Math.ceil(k) - 1 : Math.floor(k) + 1);
    }
    return d3.rebind(zoom, event, "on");
  };
  var d3_behavior_zoomInfinity = [ 0, Infinity ], d3_behavior_zoomDelta, d3_behavior_zoomWheel;
  d3.color = d3_color;
  function d3_color() {}
  d3_color.prototype.toString = function() {
    return this.rgb() + "";
  };
  d3.hsl = d3_hsl;
  function d3_hsl(h, s, l) {
    return this instanceof d3_hsl ? void (this.h = +h, this.s = +s, this.l = +l) : arguments.length < 2 ? h instanceof d3_hsl ? new d3_hsl(h.h, h.s, h.l) : d3_rgb_parse("" + h, d3_rgb_hsl, d3_hsl) : new d3_hsl(h, s, l);
  }
  var d3_hslPrototype = d3_hsl.prototype = new d3_color();
  d3_hslPrototype.brighter = function(k) {
    k = Math.pow(.7, arguments.length ? k : 1);
    return new d3_hsl(this.h, this.s, this.l / k);
  };
  d3_hslPrototype.darker = function(k) {
    k = Math.pow(.7, arguments.length ? k : 1);
    return new d3_hsl(this.h, this.s, k * this.l);
  };
  d3_hslPrototype.rgb = function() {
    return d3_hsl_rgb(this.h, this.s, this.l);
  };
  function d3_hsl_rgb(h, s, l) {
    var m1, m2;
    h = isNaN(h) ? 0 : (h %= 360) < 0 ? h + 360 : h;
    s = isNaN(s) ? 0 : s < 0 ? 0 : s > 1 ? 1 : s;
    l = l < 0 ? 0 : l > 1 ? 1 : l;
    m2 = l <= .5 ? l * (1 + s) : l + s - l * s;
    m1 = 2 * l - m2;
    function v(h) {
      if (h > 360) h -= 360; else if (h < 0) h += 360;
      if (h < 60) return m1 + (m2 - m1) * h / 60;
      if (h < 180) return m2;
      if (h < 240) return m1 + (m2 - m1) * (240 - h) / 60;
      return m1;
    }
    function vv(h) {
      return Math.round(v(h) * 255);
    }
    return new d3_rgb(vv(h + 120), vv(h), vv(h - 120));
  }
  d3.hcl = d3_hcl;
  function d3_hcl(h, c, l) {
    return this instanceof d3_hcl ? void (this.h = +h, this.c = +c, this.l = +l) : arguments.length < 2 ? h instanceof d3_hcl ? new d3_hcl(h.h, h.c, h.l) : h instanceof d3_lab ? d3_lab_hcl(h.l, h.a, h.b) : d3_lab_hcl((h = d3_rgb_lab((h = d3.rgb(h)).r, h.g, h.b)).l, h.a, h.b) : new d3_hcl(h, c, l);
  }
  var d3_hclPrototype = d3_hcl.prototype = new d3_color();
  d3_hclPrototype.brighter = function(k) {
    return new d3_hcl(this.h, this.c, Math.min(100, this.l + d3_lab_K * (arguments.length ? k : 1)));
  };
  d3_hclPrototype.darker = function(k) {
    return new d3_hcl(this.h, this.c, Math.max(0, this.l - d3_lab_K * (arguments.length ? k : 1)));
  };
  d3_hclPrototype.rgb = function() {
    return d3_hcl_lab(this.h, this.c, this.l).rgb();
  };
  function d3_hcl_lab(h, c, l) {
    if (isNaN(h)) h = 0;
    if (isNaN(c)) c = 0;
    return new d3_lab(l, Math.cos(h *= d3_radians) * c, Math.sin(h) * c);
  }
  d3.lab = d3_lab;
  function d3_lab(l, a, b) {
    return this instanceof d3_lab ? void (this.l = +l, this.a = +a, this.b = +b) : arguments.length < 2 ? l instanceof d3_lab ? new d3_lab(l.l, l.a, l.b) : l instanceof d3_hcl ? d3_hcl_lab(l.h, l.c, l.l) : d3_rgb_lab((l = d3_rgb(l)).r, l.g, l.b) : new d3_lab(l, a, b);
  }
  var d3_lab_K = 18;
  var d3_lab_X = .95047, d3_lab_Y = 1, d3_lab_Z = 1.08883;
  var d3_labPrototype = d3_lab.prototype = new d3_color();
  d3_labPrototype.brighter = function(k) {
    return new d3_lab(Math.min(100, this.l + d3_lab_K * (arguments.length ? k : 1)), this.a, this.b);
  };
  d3_labPrototype.darker = function(k) {
    return new d3_lab(Math.max(0, this.l - d3_lab_K * (arguments.length ? k : 1)), this.a, this.b);
  };
  d3_labPrototype.rgb = function() {
    return d3_lab_rgb(this.l, this.a, this.b);
  };
  function d3_lab_rgb(l, a, b) {
    var y = (l + 16) / 116, x = y + a / 500, z = y - b / 200;
    x = d3_lab_xyz(x) * d3_lab_X;
    y = d3_lab_xyz(y) * d3_lab_Y;
    z = d3_lab_xyz(z) * d3_lab_Z;
    return new d3_rgb(d3_xyz_rgb(3.2404542 * x - 1.5371385 * y - .4985314 * z), d3_xyz_rgb(-.969266 * x + 1.8760108 * y + .041556 * z), d3_xyz_rgb(.0556434 * x - .2040259 * y + 1.0572252 * z));
  }
  function d3_lab_hcl(l, a, b) {
    return l > 0 ? new d3_hcl(Math.atan2(b, a) * d3_degrees, Math.sqrt(a * a + b * b), l) : new d3_hcl(NaN, NaN, l);
  }
  function d3_lab_xyz(x) {
    return x > .206893034 ? x * x * x : (x - 4 / 29) / 7.787037;
  }
  function d3_xyz_lab(x) {
    return x > .008856 ? Math.pow(x, 1 / 3) : 7.787037 * x + 4 / 29;
  }
  function d3_xyz_rgb(r) {
    return Math.round(255 * (r <= .00304 ? 12.92 * r : 1.055 * Math.pow(r, 1 / 2.4) - .055));
  }
  d3.rgb = d3_rgb;
  function d3_rgb(r, g, b) {
    return this instanceof d3_rgb ? void (this.r = ~~r, this.g = ~~g, this.b = ~~b) : arguments.length < 2 ? r instanceof d3_rgb ? new d3_rgb(r.r, r.g, r.b) : d3_rgb_parse("" + r, d3_rgb, d3_hsl_rgb) : new d3_rgb(r, g, b);
  }
  function d3_rgbNumber(value) {
    return new d3_rgb(value >> 16, value >> 8 & 255, value & 255);
  }
  function d3_rgbString(value) {
    return d3_rgbNumber(value) + "";
  }
  var d3_rgbPrototype = d3_rgb.prototype = new d3_color();
  d3_rgbPrototype.brighter = function(k) {
    k = Math.pow(.7, arguments.length ? k : 1);
    var r = this.r, g = this.g, b = this.b, i = 30;
    if (!r && !g && !b) return new d3_rgb(i, i, i);
    if (r && r < i) r = i;
    if (g && g < i) g = i;
    if (b && b < i) b = i;
    return new d3_rgb(Math.min(255, r / k), Math.min(255, g / k), Math.min(255, b / k));
  };
  d3_rgbPrototype.darker = function(k) {
    k = Math.pow(.7, arguments.length ? k : 1);
    return new d3_rgb(k * this.r, k * this.g, k * this.b);
  };
  d3_rgbPrototype.hsl = function() {
    return d3_rgb_hsl(this.r, this.g, this.b);
  };
  d3_rgbPrototype.toString = function() {
    return "#" + d3_rgb_hex(this.r) + d3_rgb_hex(this.g) + d3_rgb_hex(this.b);
  };
  function d3_rgb_hex(v) {
    return v < 16 ? "0" + Math.max(0, v).toString(16) : Math.min(255, v).toString(16);
  }
  function d3_rgb_parse(format, rgb, hsl) {
    var r = 0, g = 0, b = 0, m1, m2, color;
    m1 = /([a-z]+)\((.*)\)/.exec(format = format.toLowerCase());
    if (m1) {
      m2 = m1[2].split(",");
      switch (m1[1]) {
       case "hsl":
        {
          return hsl(parseFloat(m2[0]), parseFloat(m2[1]) / 100, parseFloat(m2[2]) / 100);
        }

       case "rgb":
        {
          return rgb(d3_rgb_parseNumber(m2[0]), d3_rgb_parseNumber(m2[1]), d3_rgb_parseNumber(m2[2]));
        }
      }
    }
    if (color = d3_rgb_names.get(format)) {
      return rgb(color.r, color.g, color.b);
    }
    if (format != null && format.charAt(0) === "#" && !isNaN(color = parseInt(format.slice(1), 16))) {
      if (format.length === 4) {
        r = (color & 3840) >> 4;
        r = r >> 4 | r;
        g = color & 240;
        g = g >> 4 | g;
        b = color & 15;
        b = b << 4 | b;
      } else if (format.length === 7) {
        r = (color & 16711680) >> 16;
        g = (color & 65280) >> 8;
        b = color & 255;
      }
    }
    return rgb(r, g, b);
  }
  function d3_rgb_hsl(r, g, b) {
    var min = Math.min(r /= 255, g /= 255, b /= 255), max = Math.max(r, g, b), d = max - min, h, s, l = (max + min) / 2;
    if (d) {
      s = l < .5 ? d / (max + min) : d / (2 - max - min);
      if (r == max) h = (g - b) / d + (g < b ? 6 : 0); else if (g == max) h = (b - r) / d + 2; else h = (r - g) / d + 4;
      h *= 60;
    } else {
      h = NaN;
      s = l > 0 && l < 1 ? 0 : h;
    }
    return new d3_hsl(h, s, l);
  }
  function d3_rgb_lab(r, g, b) {
    r = d3_rgb_xyz(r);
    g = d3_rgb_xyz(g);
    b = d3_rgb_xyz(b);
    var x = d3_xyz_lab((.4124564 * r + .3575761 * g + .1804375 * b) / d3_lab_X), y = d3_xyz_lab((.2126729 * r + .7151522 * g + .072175 * b) / d3_lab_Y), z = d3_xyz_lab((.0193339 * r + .119192 * g + .9503041 * b) / d3_lab_Z);
    return d3_lab(116 * y - 16, 500 * (x - y), 200 * (y - z));
  }
  function d3_rgb_xyz(r) {
    return (r /= 255) <= .04045 ? r / 12.92 : Math.pow((r + .055) / 1.055, 2.4);
  }
  function d3_rgb_parseNumber(c) {
    var f = parseFloat(c);
    return c.charAt(c.length - 1) === "%" ? Math.round(f * 2.55) : f;
  }
  var d3_rgb_names = d3.map({
    aliceblue: 15792383,
    antiquewhite: 16444375,
    aqua: 65535,
    aquamarine: 8388564,
    azure: 15794175,
    beige: 16119260,
    bisque: 16770244,
    black: 0,
    blanchedalmond: 16772045,
    blue: 255,
    blueviolet: 9055202,
    brown: 10824234,
    burlywood: 14596231,
    cadetblue: 6266528,
    chartreuse: 8388352,
    chocolate: 13789470,
    coral: 16744272,
    cornflowerblue: 6591981,
    cornsilk: 16775388,
    crimson: 14423100,
    cyan: 65535,
    darkblue: 139,
    darkcyan: 35723,
    darkgoldenrod: 12092939,
    darkgray: 11119017,
    darkgreen: 25600,
    darkgrey: 11119017,
    darkkhaki: 12433259,
    darkmagenta: 9109643,
    darkolivegreen: 5597999,
    darkorange: 16747520,
    darkorchid: 10040012,
    darkred: 9109504,
    darksalmon: 15308410,
    darkseagreen: 9419919,
    darkslateblue: 4734347,
    darkslategray: 3100495,
    darkslategrey: 3100495,
    darkturquoise: 52945,
    darkviolet: 9699539,
    deeppink: 16716947,
    deepskyblue: 49151,
    dimgray: 6908265,
    dimgrey: 6908265,
    dodgerblue: 2003199,
    firebrick: 11674146,
    floralwhite: 16775920,
    forestgreen: 2263842,
    fuchsia: 16711935,
    gainsboro: 14474460,
    ghostwhite: 16316671,
    gold: 16766720,
    goldenrod: 14329120,
    gray: 8421504,
    green: 32768,
    greenyellow: 11403055,
    grey: 8421504,
    honeydew: 15794160,
    hotpink: 16738740,
    indianred: 13458524,
    indigo: 4915330,
    ivory: 16777200,
    khaki: 15787660,
    lavender: 15132410,
    lavenderblush: 16773365,
    lawngreen: 8190976,
    lemonchiffon: 16775885,
    lightblue: 11393254,
    lightcoral: 15761536,
    lightcyan: 14745599,
    lightgoldenrodyellow: 16448210,
    lightgray: 13882323,
    lightgreen: 9498256,
    lightgrey: 13882323,
    lightpink: 16758465,
    lightsalmon: 16752762,
    lightseagreen: 2142890,
    lightskyblue: 8900346,
    lightslategray: 7833753,
    lightslategrey: 7833753,
    lightsteelblue: 11584734,
    lightyellow: 16777184,
    lime: 65280,
    limegreen: 3329330,
    linen: 16445670,
    magenta: 16711935,
    maroon: 8388608,
    mediumaquamarine: 6737322,
    mediumblue: 205,
    mediumorchid: 12211667,
    mediumpurple: 9662683,
    mediumseagreen: 3978097,
    mediumslateblue: 8087790,
    mediumspringgreen: 64154,
    mediumturquoise: 4772300,
    mediumvioletred: 13047173,
    midnightblue: 1644912,
    mintcream: 16121850,
    mistyrose: 16770273,
    moccasin: 16770229,
    navajowhite: 16768685,
    navy: 128,
    oldlace: 16643558,
    olive: 8421376,
    olivedrab: 7048739,
    orange: 16753920,
    orangered: 16729344,
    orchid: 14315734,
    palegoldenrod: 15657130,
    palegreen: 10025880,
    paleturquoise: 11529966,
    palevioletred: 14381203,
    papayawhip: 16773077,
    peachpuff: 16767673,
    peru: 13468991,
    pink: 16761035,
    plum: 14524637,
    powderblue: 11591910,
    purple: 8388736,
    rebeccapurple: 6697881,
    red: 16711680,
    rosybrown: 12357519,
    royalblue: 4286945,
    saddlebrown: 9127187,
    salmon: 16416882,
    sandybrown: 16032864,
    seagreen: 3050327,
    seashell: 16774638,
    sienna: 10506797,
    silver: 12632256,
    skyblue: 8900331,
    slateblue: 6970061,
    slategray: 7372944,
    slategrey: 7372944,
    snow: 16775930,
    springgreen: 65407,
    steelblue: 4620980,
    tan: 13808780,
    teal: 32896,
    thistle: 14204888,
    tomato: 16737095,
    turquoise: 4251856,
    violet: 15631086,
    wheat: 16113331,
    white: 16777215,
    whitesmoke: 16119285,
    yellow: 16776960,
    yellowgreen: 10145074
  });
  d3_rgb_names.forEach(function(key, value) {
    d3_rgb_names.set(key, d3_rgbNumber(value));
  });
  function d3_functor(v) {
    return typeof v === "function" ? v : function() {
      return v;
    };
  }
  d3.functor = d3_functor;
  d3.xhr = d3_xhrType(d3_identity);
  function d3_xhrType(response) {
    return function(url, mimeType, callback) {
      if (arguments.length === 2 && typeof mimeType === "function") callback = mimeType, 
      mimeType = null;
      return d3_xhr(url, mimeType, response, callback);
    };
  }
  function d3_xhr(url, mimeType, response, callback) {
    var xhr = {}, dispatch = d3.dispatch("beforesend", "progress", "load", "error"), headers = {}, request = new XMLHttpRequest(), responseType = null;
    if (this.XDomainRequest && !("withCredentials" in request) && /^(http(s)?:)?\/\//.test(url)) request = new XDomainRequest();
    "onload" in request ? request.onload = request.onerror = respond : request.onreadystatechange = function() {
      request.readyState > 3 && respond();
    };
    function respond() {
      var status = request.status, result;
      if (!status && d3_xhrHasResponse(request) || status >= 200 && status < 300 || status === 304) {
        try {
          result = response.call(xhr, request);
        } catch (e) {
          dispatch.error.call(xhr, e);
          return;
        }
        dispatch.load.call(xhr, result);
      } else {
        dispatch.error.call(xhr, request);
      }
    }
    request.onprogress = function(event) {
      var o = d3.event;
      d3.event = event;
      try {
        dispatch.progress.call(xhr, request);
      } finally {
        d3.event = o;
      }
    };
    xhr.header = function(name, value) {
      name = (name + "").toLowerCase();
      if (arguments.length < 2) return headers[name];
      if (value == null) delete headers[name]; else headers[name] = value + "";
      return xhr;
    };
    xhr.mimeType = function(value) {
      if (!arguments.length) return mimeType;
      mimeType = value == null ? null : value + "";
      return xhr;
    };
    xhr.responseType = function(value) {
      if (!arguments.length) return responseType;
      responseType = value;
      return xhr;
    };
    xhr.response = function(value) {
      response = value;
      return xhr;
    };
    [ "get", "post" ].forEach(function(method) {
      xhr[method] = function() {
        return xhr.send.apply(xhr, [ method ].concat(d3_array(arguments)));
      };
    });
    xhr.send = function(method, data, callback) {
      if (arguments.length === 2 && typeof data === "function") callback = data, data = null;
      request.open(method, url, true);
      if (mimeType != null && !("accept" in headers)) headers["accept"] = mimeType + ",*/*";
      if (request.setRequestHeader) for (var name in headers) request.setRequestHeader(name, headers[name]);
      if (mimeType != null && request.overrideMimeType) request.overrideMimeType(mimeType);
      if (responseType != null) request.responseType = responseType;
      if (callback != null) xhr.on("error", callback).on("load", function(request) {
        callback(null, request);
      });
      dispatch.beforesend.call(xhr, request);
      request.send(data == null ? null : data);
      return xhr;
    };
    xhr.abort = function() {
      request.abort();
      return xhr;
    };
    d3.rebind(xhr, dispatch, "on");
    return callback == null ? xhr : xhr.get(d3_xhr_fixCallback(callback));
  }
  function d3_xhr_fixCallback(callback) {
    return callback.length === 1 ? function(error, request) {
      callback(error == null ? request : null);
    } : callback;
  }
  function d3_xhrHasResponse(request) {
    var type = request.responseType;
    return type && type !== "text" ? request.response : request.responseText;
  }
  d3.dsv = function(delimiter, mimeType) {
    var reFormat = new RegExp('["' + delimiter + "\n]"), delimiterCode = delimiter.charCodeAt(0);
    function dsv(url, row, callback) {
      if (arguments.length < 3) callback = row, row = null;
      var xhr = d3_xhr(url, mimeType, row == null ? response : typedResponse(row), callback);
      xhr.row = function(_) {
        return arguments.length ? xhr.response((row = _) == null ? response : typedResponse(_)) : row;
      };
      return xhr;
    }
    function response(request) {
      return dsv.parse(request.responseText);
    }
    function typedResponse(f) {
      return function(request) {
        return dsv.parse(request.responseText, f);
      };
    }
    dsv.parse = function(text, f) {
      var o;
      return dsv.parseRows(text, function(row, i) {
        if (o) return o(row, i - 1);
        var a = new Function("d", "return {" + row.map(function(name, i) {
          return JSON.stringify(name) + ": d[" + i + "]";
        }).join(",") + "}");
        o = f ? function(row, i) {
          return f(a(row), i);
        } : a;
      });
    };
    dsv.parseRows = function(text, f) {
      var EOL = {}, EOF = {}, rows = [], N = text.length, I = 0, n = 0, t, eol;
      function token() {
        if (I >= N) return EOF;
        if (eol) return eol = false, EOL;
        var j = I;
        if (text.charCodeAt(j) === 34) {
          var i = j;
          while (i++ < N) {
            if (text.charCodeAt(i) === 34) {
              if (text.charCodeAt(i + 1) !== 34) break;
              ++i;
            }
          }
          I = i + 2;
          var c = text.charCodeAt(i + 1);
          if (c === 13) {
            eol = true;
            if (text.charCodeAt(i + 2) === 10) ++I;
          } else if (c === 10) {
            eol = true;
          }
          return text.slice(j + 1, i).replace(/""/g, '"');
        }
        while (I < N) {
          var c = text.charCodeAt(I++), k = 1;
          if (c === 10) eol = true; else if (c === 13) {
            eol = true;
            if (text.charCodeAt(I) === 10) ++I, ++k;
          } else if (c !== delimiterCode) continue;
          return text.slice(j, I - k);
        }
        return text.slice(j);
      }
      while ((t = token()) !== EOF) {
        var a = [];
        while (t !== EOL && t !== EOF) {
          a.push(t);
          t = token();
        }
        if (f && (a = f(a, n++)) == null) continue;
        rows.push(a);
      }
      return rows;
    };
    dsv.format = function(rows) {
      if (Array.isArray(rows[0])) return dsv.formatRows(rows);
      var fieldSet = new d3_Set(), fields = [];
      rows.forEach(function(row) {
        for (var field in row) {
          if (!fieldSet.has(field)) {
            fields.push(fieldSet.add(field));
          }
        }
      });
      return [ fields.map(formatValue).join(delimiter) ].concat(rows.map(function(row) {
        return fields.map(function(field) {
          return formatValue(row[field]);
        }).join(delimiter);
      })).join("\n");
    };
    dsv.formatRows = function(rows) {
      return rows.map(formatRow).join("\n");
    };
    function formatRow(row) {
      return row.map(formatValue).join(delimiter);
    }
    function formatValue(text) {
      return reFormat.test(text) ? '"' + text.replace(/\"/g, '""') + '"' : text;
    }
    return dsv;
  };
  d3.csv = d3.dsv(",", "text/csv");
  d3.tsv = d3.dsv("	", "text/tab-separated-values");
  var d3_timer_queueHead, d3_timer_queueTail, d3_timer_interval, d3_timer_timeout, d3_timer_frame = this[d3_vendorSymbol(this, "requestAnimationFrame")] || function(callback) {
    setTimeout(callback, 17);
  };
  d3.timer = function() {
    d3_timer.apply(this, arguments);
  };
  function d3_timer(callback, delay, then) {
    var n = arguments.length;
    if (n < 2) delay = 0;
    if (n < 3) then = Date.now();
    var time = then + delay, timer = {
      c: callback,
      t: time,
      n: null
    };
    if (d3_timer_queueTail) d3_timer_queueTail.n = timer; else d3_timer_queueHead = timer;
    d3_timer_queueTail = timer;
    if (!d3_timer_interval) {
      d3_timer_timeout = clearTimeout(d3_timer_timeout);
      d3_timer_interval = 1;
      d3_timer_frame(d3_timer_step);
    }
    return timer;
  }
  function d3_timer_step() {
    var now = d3_timer_mark(), delay = d3_timer_sweep() - now;
    if (delay > 24) {
      if (isFinite(delay)) {
        clearTimeout(d3_timer_timeout);
        d3_timer_timeout = setTimeout(d3_timer_step, delay);
      }
      d3_timer_interval = 0;
    } else {
      d3_timer_interval = 1;
      d3_timer_frame(d3_timer_step);
    }
  }
  d3.timer.flush = function() {
    d3_timer_mark();
    d3_timer_sweep();
  };
  function d3_timer_mark() {
    var now = Date.now(), timer = d3_timer_queueHead;
    while (timer) {
      if (now >= timer.t && timer.c(now - timer.t)) timer.c = null;
      timer = timer.n;
    }
    return now;
  }
  function d3_timer_sweep() {
    var t0, t1 = d3_timer_queueHead, time = Infinity;
    while (t1) {
      if (t1.c) {
        if (t1.t < time) time = t1.t;
        t1 = (t0 = t1).n;
      } else {
        t1 = t0 ? t0.n = t1.n : d3_timer_queueHead = t1.n;
      }
    }
    d3_timer_queueTail = t0;
    return time;
  }
  function d3_format_precision(x, p) {
    return p - (x ? Math.ceil(Math.log(x) / Math.LN10) : 1);
  }
  d3.round = function(x, n) {
    return n ? Math.round(x * (n = Math.pow(10, n))) / n : Math.round(x);
  };
  var d3_formatPrefixes = [ "y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y" ].map(d3_formatPrefix);
  d3.formatPrefix = function(value, precision) {
    var i = 0;
    if (value = +value) {
      if (value < 0) value *= -1;
      if (precision) value = d3.round(value, d3_format_precision(value, precision));
      i = 1 + Math.floor(1e-12 + Math.log(value) / Math.LN10);
      i = Math.max(-24, Math.min(24, Math.floor((i - 1) / 3) * 3));
    }
    return d3_formatPrefixes[8 + i / 3];
  };
  function d3_formatPrefix(d, i) {
    var k = Math.pow(10, abs(8 - i) * 3);
    return {
      scale: i > 8 ? function(d) {
        return d / k;
      } : function(d) {
        return d * k;
      },
      symbol: d
    };
  }
  function d3_locale_numberFormat(locale) {
    var locale_decimal = locale.decimal, locale_thousands = locale.thousands, locale_grouping = locale.grouping, locale_currency = locale.currency, formatGroup = locale_grouping && locale_thousands ? function(value, width) {
      var i = value.length, t = [], j = 0, g = locale_grouping[0], length = 0;
      while (i > 0 && g > 0) {
        if (length + g + 1 > width) g = Math.max(1, width - length);
        t.push(value.substring(i -= g, i + g));
        if ((length += g + 1) > width) break;
        g = locale_grouping[j = (j + 1) % locale_grouping.length];
      }
      return t.reverse().join(locale_thousands);
    } : d3_identity;
    return function(specifier) {
      var match = d3_format_re.exec(specifier), fill = match[1] || " ", align = match[2] || ">", sign = match[3] || "-", symbol = match[4] || "", zfill = match[5], width = +match[6], comma = match[7], precision = match[8], type = match[9], scale = 1, prefix = "", suffix = "", integer = false, exponent = true;
      if (precision) precision = +precision.substring(1);
      if (zfill || fill === "0" && align === "=") {
        zfill = fill = "0";
        align = "=";
      }
      switch (type) {
       case "n":
        comma = true;
        type = "g";
        break;

       case "%":
        scale = 100;
        suffix = "%";
        type = "f";
        break;

       case "p":
        scale = 100;
        suffix = "%";
        type = "r";
        break;

       case "b":
       case "o":
       case "x":
       case "X":
        if (symbol === "#") prefix = "0" + type.toLowerCase();

       case "c":
        exponent = false;

       case "d":
        integer = true;
        precision = 0;
        break;

       case "s":
        scale = -1;
        type = "r";
        break;
      }
      if (symbol === "$") prefix = locale_currency[0], suffix = locale_currency[1];
      if (type == "r" && !precision) type = "g";
      if (precision != null) {
        if (type == "g") precision = Math.max(1, Math.min(21, precision)); else if (type == "e" || type == "f") precision = Math.max(0, Math.min(20, precision));
      }
      type = d3_format_types.get(type) || d3_format_typeDefault;
      var zcomma = zfill && comma;
      return function(value) {
        var fullSuffix = suffix;
        if (integer && value % 1) return "";
        var negative = value < 0 || value === 0 && 1 / value < 0 ? (value = -value, "-") : sign === "-" ? "" : sign;
        if (scale < 0) {
          var unit = d3.formatPrefix(value, precision);
          value = unit.scale(value);
          fullSuffix = unit.symbol + suffix;
        } else {
          value *= scale;
        }
        value = type(value, precision);
        var i = value.lastIndexOf("."), before, after;
        if (i < 0) {
          var j = exponent ? value.lastIndexOf("e") : -1;
          if (j < 0) before = value, after = ""; else before = value.substring(0, j), after = value.substring(j);
        } else {
          before = value.substring(0, i);
          after = locale_decimal + value.substring(i + 1);
        }
        if (!zfill && comma) before = formatGroup(before, Infinity);
        var length = prefix.length + before.length + after.length + (zcomma ? 0 : negative.length), padding = length < width ? new Array(length = width - length + 1).join(fill) : "";
        if (zcomma) before = formatGroup(padding + before, padding.length ? width - after.length : Infinity);
        negative += prefix;
        value = before + after;
        return (align === "<" ? negative + value + padding : align === ">" ? padding + negative + value : align === "^" ? padding.substring(0, length >>= 1) + negative + value + padding.substring(length) : negative + (zcomma ? value : padding + value)) + fullSuffix;
      };
    };
  }
  var d3_format_re = /(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i;
  var d3_format_types = d3.map({
    b: function(x) {
      return x.toString(2);
    },
    c: function(x) {
      return String.fromCharCode(x);
    },
    o: function(x) {
      return x.toString(8);
    },
    x: function(x) {
      return x.toString(16);
    },
    X: function(x) {
      return x.toString(16).toUpperCase();
    },
    g: function(x, p) {
      return x.toPrecision(p);
    },
    e: function(x, p) {
      return x.toExponential(p);
    },
    f: function(x, p) {
      return x.toFixed(p);
    },
    r: function(x, p) {
      return (x = d3.round(x, d3_format_precision(x, p))).toFixed(Math.max(0, Math.min(20, d3_format_precision(x * (1 + 1e-15), p))));
    }
  });
  function d3_format_typeDefault(x) {
    return x + "";
  }
  var d3_time = d3.time = {}, d3_date = Date;
  function d3_date_utc() {
    this._ = new Date(arguments.length > 1 ? Date.UTC.apply(this, arguments) : arguments[0]);
  }
  d3_date_utc.prototype = {
    getDate: function() {
      return this._.getUTCDate();
    },
    getDay: function() {
      return this._.getUTCDay();
    },
    getFullYear: function() {
      return this._.getUTCFullYear();
    },
    getHours: function() {
      return this._.getUTCHours();
    },
    getMilliseconds: function() {
      return this._.getUTCMilliseconds();
    },
    getMinutes: function() {
      return this._.getUTCMinutes();
    },
    getMonth: function() {
      return this._.getUTCMonth();
    },
    getSeconds: function() {
      return this._.getUTCSeconds();
    },
    getTime: function() {
      return this._.getTime();
    },
    getTimezoneOffset: function() {
      return 0;
    },
    valueOf: function() {
      return this._.valueOf();
    },
    setDate: function() {
      d3_time_prototype.setUTCDate.apply(this._, arguments);
    },
    setDay: function() {
      d3_time_prototype.setUTCDay.apply(this._, arguments);
    },
    setFullYear: function() {
      d3_time_prototype.setUTCFullYear.apply(this._, arguments);
    },
    setHours: function() {
      d3_time_prototype.setUTCHours.apply(this._, arguments);
    },
    setMilliseconds: function() {
      d3_time_prototype.setUTCMilliseconds.apply(this._, arguments);
    },
    setMinutes: function() {
      d3_time_prototype.setUTCMinutes.apply(this._, arguments);
    },
    setMonth: function() {
      d3_time_prototype.setUTCMonth.apply(this._, arguments);
    },
    setSeconds: function() {
      d3_time_prototype.setUTCSeconds.apply(this._, arguments);
    },
    setTime: function() {
      d3_time_prototype.setTime.apply(this._, arguments);
    }
  };
  var d3_time_prototype = Date.prototype;
  function d3_time_interval(local, step, number) {
    function round(date) {
      var d0 = local(date), d1 = offset(d0, 1);
      return date - d0 < d1 - date ? d0 : d1;
    }
    function ceil(date) {
      step(date = local(new d3_date(date - 1)), 1);
      return date;
    }
    function offset(date, k) {
      step(date = new d3_date(+date), k);
      return date;
    }
    function range(t0, t1, dt) {
      var time = ceil(t0), times = [];
      if (dt > 1) {
        while (time < t1) {
          if (!(number(time) % dt)) times.push(new Date(+time));
          step(time, 1);
        }
      } else {
        while (time < t1) times.push(new Date(+time)), step(time, 1);
      }
      return times;
    }
    function range_utc(t0, t1, dt) {
      try {
        d3_date = d3_date_utc;
        var utc = new d3_date_utc();
        utc._ = t0;
        return range(utc, t1, dt);
      } finally {
        d3_date = Date;
      }
    }
    local.floor = local;
    local.round = round;
    local.ceil = ceil;
    local.offset = offset;
    local.range = range;
    var utc = local.utc = d3_time_interval_utc(local);
    utc.floor = utc;
    utc.round = d3_time_interval_utc(round);
    utc.ceil = d3_time_interval_utc(ceil);
    utc.offset = d3_time_interval_utc(offset);
    utc.range = range_utc;
    return local;
  }
  function d3_time_interval_utc(method) {
    return function(date, k) {
      try {
        d3_date = d3_date_utc;
        var utc = new d3_date_utc();
        utc._ = date;
        return method(utc, k)._;
      } finally {
        d3_date = Date;
      }
    };
  }
  d3_time.year = d3_time_interval(function(date) {
    date = d3_time.day(date);
    date.setMonth(0, 1);
    return date;
  }, function(date, offset) {
    date.setFullYear(date.getFullYear() + offset);
  }, function(date) {
    return date.getFullYear();
  });
  d3_time.years = d3_time.year.range;
  d3_time.years.utc = d3_time.year.utc.range;
  d3_time.day = d3_time_interval(function(date) {
    var day = new d3_date(2e3, 0);
    day.setFullYear(date.getFullYear(), date.getMonth(), date.getDate());
    return day;
  }, function(date, offset) {
    date.setDate(date.getDate() + offset);
  }, function(date) {
    return date.getDate() - 1;
  });
  d3_time.days = d3_time.day.range;
  d3_time.days.utc = d3_time.day.utc.range;
  d3_time.dayOfYear = function(date) {
    var year = d3_time.year(date);
    return Math.floor((date - year - (date.getTimezoneOffset() - year.getTimezoneOffset()) * 6e4) / 864e5);
  };
  [ "sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday" ].forEach(function(day, i) {
    i = 7 - i;
    var interval = d3_time[day] = d3_time_interval(function(date) {
      (date = d3_time.day(date)).setDate(date.getDate() - (date.getDay() + i) % 7);
      return date;
    }, function(date, offset) {
      date.setDate(date.getDate() + Math.floor(offset) * 7);
    }, function(date) {
      var day = d3_time.year(date).getDay();
      return Math.floor((d3_time.dayOfYear(date) + (day + i) % 7) / 7) - (day !== i);
    });
    d3_time[day + "s"] = interval.range;
    d3_time[day + "s"].utc = interval.utc.range;
    d3_time[day + "OfYear"] = function(date) {
      var day = d3_time.year(date).getDay();
      return Math.floor((d3_time.dayOfYear(date) + (day + i) % 7) / 7);
    };
  });
  d3_time.week = d3_time.sunday;
  d3_time.weeks = d3_time.sunday.range;
  d3_time.weeks.utc = d3_time.sunday.utc.range;
  d3_time.weekOfYear = d3_time.sundayOfYear;
  function d3_locale_timeFormat(locale) {
    var locale_dateTime = locale.dateTime, locale_date = locale.date, locale_time = locale.time, locale_periods = locale.periods, locale_days = locale.days, locale_shortDays = locale.shortDays, locale_months = locale.months, locale_shortMonths = locale.shortMonths;
    function d3_time_format(template) {
      var n = template.length;
      function format(date) {
        var string = [], i = -1, j = 0, c, p, f;
        while (++i < n) {
          if (template.charCodeAt(i) === 37) {
            string.push(template.slice(j, i));
            if ((p = d3_time_formatPads[c = template.charAt(++i)]) != null) c = template.charAt(++i);
            if (f = d3_time_formats[c]) c = f(date, p == null ? c === "e" ? " " : "0" : p);
            string.push(c);
            j = i + 1;
          }
        }
        string.push(template.slice(j, i));
        return string.join("");
      }
      format.parse = function(string) {
        var d = {
          y: 1900,
          m: 0,
          d: 1,
          H: 0,
          M: 0,
          S: 0,
          L: 0,
          Z: null
        }, i = d3_time_parse(d, template, string, 0);
        if (i != string.length) return null;
        if ("p" in d) d.H = d.H % 12 + d.p * 12;
        var localZ = d.Z != null && d3_date !== d3_date_utc, date = new (localZ ? d3_date_utc : d3_date)();
        if ("j" in d) date.setFullYear(d.y, 0, d.j); else if ("W" in d || "U" in d) {
          if (!("w" in d)) d.w = "W" in d ? 1 : 0;
          date.setFullYear(d.y, 0, 1);
          date.setFullYear(d.y, 0, "W" in d ? (d.w + 6) % 7 + d.W * 7 - (date.getDay() + 5) % 7 : d.w + d.U * 7 - (date.getDay() + 6) % 7);
        } else date.setFullYear(d.y, d.m, d.d);
        date.setHours(d.H + (d.Z / 100 | 0), d.M + d.Z % 100, d.S, d.L);
        return localZ ? date._ : date;
      };
      format.toString = function() {
        return template;
      };
      return format;
    }
    function d3_time_parse(date, template, string, j) {
      var c, p, t, i = 0, n = template.length, m = string.length;
      while (i < n) {
        if (j >= m) return -1;
        c = template.charCodeAt(i++);
        if (c === 37) {
          t = template.charAt(i++);
          p = d3_time_parsers[t in d3_time_formatPads ? template.charAt(i++) : t];
          if (!p || (j = p(date, string, j)) < 0) return -1;
        } else if (c != string.charCodeAt(j++)) {
          return -1;
        }
      }
      return j;
    }
    d3_time_format.utc = function(template) {
      var local = d3_time_format(template);
      function format(date) {
        try {
          d3_date = d3_date_utc;
          var utc = new d3_date();
          utc._ = date;
          return local(utc);
        } finally {
          d3_date = Date;
        }
      }
      format.parse = function(string) {
        try {
          d3_date = d3_date_utc;
          var date = local.parse(string);
          return date && date._;
        } finally {
          d3_date = Date;
        }
      };
      format.toString = local.toString;
      return format;
    };
    d3_time_format.multi = d3_time_format.utc.multi = d3_time_formatMulti;
    var d3_time_periodLookup = d3.map(), d3_time_dayRe = d3_time_formatRe(locale_days), d3_time_dayLookup = d3_time_formatLookup(locale_days), d3_time_dayAbbrevRe = d3_time_formatRe(locale_shortDays), d3_time_dayAbbrevLookup = d3_time_formatLookup(locale_shortDays), d3_time_monthRe = d3_time_formatRe(locale_months), d3_time_monthLookup = d3_time_formatLookup(locale_months), d3_time_monthAbbrevRe = d3_time_formatRe(locale_shortMonths), d3_time_monthAbbrevLookup = d3_time_formatLookup(locale_shortMonths);
    locale_periods.forEach(function(p, i) {
      d3_time_periodLookup.set(p.toLowerCase(), i);
    });
    var d3_time_formats = {
      a: function(d) {
        return locale_shortDays[d.getDay()];
      },
      A: function(d) {
        return locale_days[d.getDay()];
      },
      b: function(d) {
        return locale_shortMonths[d.getMonth()];
      },
      B: function(d) {
        return locale_months[d.getMonth()];
      },
      c: d3_time_format(locale_dateTime),
      d: function(d, p) {
        return d3_time_formatPad(d.getDate(), p, 2);
      },
      e: function(d, p) {
        return d3_time_formatPad(d.getDate(), p, 2);
      },
      H: function(d, p) {
        return d3_time_formatPad(d.getHours(), p, 2);
      },
      I: function(d, p) {
        return d3_time_formatPad(d.getHours() % 12 || 12, p, 2);
      },
      j: function(d, p) {
        return d3_time_formatPad(1 + d3_time.dayOfYear(d), p, 3);
      },
      L: function(d, p) {
        return d3_time_formatPad(d.getMilliseconds(), p, 3);
      },
      m: function(d, p) {
        return d3_time_formatPad(d.getMonth() + 1, p, 2);
      },
      M: function(d, p) {
        return d3_time_formatPad(d.getMinutes(), p, 2);
      },
      p: function(d) {
        return locale_periods[+(d.getHours() >= 12)];
      },
      S: function(d, p) {
        return d3_time_formatPad(d.getSeconds(), p, 2);
      },
      U: function(d, p) {
        return d3_time_formatPad(d3_time.sundayOfYear(d), p, 2);
      },
      w: function(d) {
        return d.getDay();
      },
      W: function(d, p) {
        return d3_time_formatPad(d3_time.mondayOfYear(d), p, 2);
      },
      x: d3_time_format(locale_date),
      X: d3_time_format(locale_time),
      y: function(d, p) {
        return d3_time_formatPad(d.getFullYear() % 100, p, 2);
      },
      Y: function(d, p) {
        return d3_time_formatPad(d.getFullYear() % 1e4, p, 4);
      },
      Z: d3_time_zone,
      "%": function() {
        return "%";
      }
    };
    var d3_time_parsers = {
      a: d3_time_parseWeekdayAbbrev,
      A: d3_time_parseWeekday,
      b: d3_time_parseMonthAbbrev,
      B: d3_time_parseMonth,
      c: d3_time_parseLocaleFull,
      d: d3_time_parseDay,
      e: d3_time_parseDay,
      H: d3_time_parseHour24,
      I: d3_time_parseHour24,
      j: d3_time_parseDayOfYear,
      L: d3_time_parseMilliseconds,
      m: d3_time_parseMonthNumber,
      M: d3_time_parseMinutes,
      p: d3_time_parseAmPm,
      S: d3_time_parseSeconds,
      U: d3_time_parseWeekNumberSunday,
      w: d3_time_parseWeekdayNumber,
      W: d3_time_parseWeekNumberMonday,
      x: d3_time_parseLocaleDate,
      X: d3_time_parseLocaleTime,
      y: d3_time_parseYear,
      Y: d3_time_parseFullYear,
      Z: d3_time_parseZone,
      "%": d3_time_parseLiteralPercent
    };
    function d3_time_parseWeekdayAbbrev(date, string, i) {
      d3_time_dayAbbrevRe.lastIndex = 0;
      var n = d3_time_dayAbbrevRe.exec(string.slice(i));
      return n ? (date.w = d3_time_dayAbbrevLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;
    }
    function d3_time_parseWeekday(date, string, i) {
      d3_time_dayRe.lastIndex = 0;
      var n = d3_time_dayRe.exec(string.slice(i));
      return n ? (date.w = d3_time_dayLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;
    }
    function d3_time_parseMonthAbbrev(date, string, i) {
      d3_time_monthAbbrevRe.lastIndex = 0;
      var n = d3_time_monthAbbrevRe.exec(string.slice(i));
      return n ? (date.m = d3_time_monthAbbrevLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;
    }
    function d3_time_parseMonth(date, string, i) {
      d3_time_monthRe.lastIndex = 0;
      var n = d3_time_monthRe.exec(string.slice(i));
      return n ? (date.m = d3_time_monthLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;
    }
    function d3_time_parseLocaleFull(date, string, i) {
      return d3_time_parse(date, d3_time_formats.c.toString(), string, i);
    }
    function d3_time_parseLocaleDate(date, string, i) {
      return d3_time_parse(date, d3_time_formats.x.toString(), string, i);
    }
    function d3_time_parseLocaleTime(date, string, i) {
      return d3_time_parse(date, d3_time_formats.X.toString(), string, i);
    }
    function d3_time_parseAmPm(date, string, i) {
      var n = d3_time_periodLookup.get(string.slice(i, i += 2).toLowerCase());
      return n == null ? -1 : (date.p = n, i);
    }
    return d3_time_format;
  }
  var d3_time_formatPads = {
    "-": "",
    _: " ",
    "0": "0"
  }, d3_time_numberRe = /^\s*\d+/, d3_time_percentRe = /^%/;
  function d3_time_formatPad(value, fill, width) {
    var sign = value < 0 ? "-" : "", string = (sign ? -value : value) + "", length = string.length;
    return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string);
  }
  function d3_time_formatRe(names) {
    return new RegExp("^(?:" + names.map(d3.requote).join("|") + ")", "i");
  }
  function d3_time_formatLookup(names) {
    var map = new d3_Map(), i = -1, n = names.length;
    while (++i < n) map.set(names[i].toLowerCase(), i);
    return map;
  }
  function d3_time_parseWeekdayNumber(date, string, i) {
    d3_time_numberRe.lastIndex = 0;
    var n = d3_time_numberRe.exec(string.slice(i, i + 1));
    return n ? (date.w = +n[0], i + n[0].length) : -1;
  }
  function d3_time_parseWeekNumberSunday(date, string, i) {
    d3_time_numberRe.lastIndex = 0;
    var n = d3_time_numberRe.exec(string.slice(i));
    return n ? (date.U = +n[0], i + n[0].length) : -1;
  }
  function d3_time_parseWeekNumberMonday(date, string, i) {
    d3_time_numberRe.lastIndex = 0;
    var n = d3_time_numberRe.exec(string.slice(i));
    return n ? (date.W = +n[0], i + n[0].length) : -1;
  }
  function d3_time_parseFullYear(date, string, i) {
    d3_time_numberRe.lastIndex = 0;
    var n = d3_time_numberRe.exec(string.slice(i, i + 4));
    return n ? (date.y = +n[0], i + n[0].length) : -1;
  }
  function d3_time_parseYear(date, string, i) {
    d3_time_numberRe.lastIndex = 0;
    var n = d3_time_numberRe.exec(string.slice(i, i + 2));
    return n ? (date.y = d3_time_expandYear(+n[0]), i + n[0].length) : -1;
  }
  function d3_time_parseZone(date, string, i) {
    return /^[+-]\d{4}$/.test(string = string.slice(i, i + 5)) ? (date.Z = -string, 
    i + 5) : -1;
  }
  function d3_time_expandYear(d) {
    return d + (d > 68 ? 1900 : 2e3);
  }
  function d3_time_parseMonthNumber(date, string, i) {
    d3_time_numberRe.lastIndex = 0;
    var n = d3_time_numberRe.exec(string.slice(i, i + 2));
    return n ? (date.m = n[0] - 1, i + n[0].length) : -1;
  }
  function d3_time_parseDay(date, string, i) {
    d3_time_numberRe.lastIndex = 0;
    var n = d3_time_numberRe.exec(string.slice(i, i + 2));
    return n ? (date.d = +n[0], i + n[0].length) : -1;
  }
  function d3_time_parseDayOfYear(date, string, i) {
    d3_time_numberRe.lastIndex = 0;
    var n = d3_time_numberRe.exec(string.slice(i, i + 3));
    return n ? (date.j = +n[0], i + n[0].length) : -1;
  }
  function d3_time_parseHour24(date, string, i) {
    d3_time_numberRe.lastIndex = 0;
    var n = d3_time_numberRe.exec(string.slice(i, i + 2));
    return n ? (date.H = +n[0], i + n[0].length) : -1;
  }
  function d3_time_parseMinutes(date, string, i) {
    d3_time_numberRe.lastIndex = 0;
    var n = d3_time_numberRe.exec(string.slice(i, i + 2));
    return n ? (date.M = +n[0], i + n[0].length) : -1;
  }
  function d3_time_parseSeconds(date, string, i) {
    d3_time_numberRe.lastIndex = 0;
    var n = d3_time_numberRe.exec(string.slice(i, i + 2));
    return n ? (date.S = +n[0], i + n[0].length) : -1;
  }
  function d3_time_parseMilliseconds(date, string, i) {
    d3_time_numberRe.lastIndex = 0;
    var n = d3_time_numberRe.exec(string.slice(i, i + 3));
    return n ? (date.L = +n[0], i + n[0].length) : -1;
  }
  function d3_time_zone(d) {
    var z = d.getTimezoneOffset(), zs = z > 0 ? "-" : "+", zh = abs(z) / 60 | 0, zm = abs(z) % 60;
    return zs + d3_time_formatPad(zh, "0", 2) + d3_time_formatPad(zm, "0", 2);
  }
  function d3_time_parseLiteralPercent(date, string, i) {
    d3_time_percentRe.lastIndex = 0;
    var n = d3_time_percentRe.exec(string.slice(i, i + 1));
    return n ? i + n[0].length : -1;
  }
  function d3_time_formatMulti(formats) {
    var n = formats.length, i = -1;
    while (++i < n) formats[i][0] = this(formats[i][0]);
    return function(date) {
      var i = 0, f = formats[i];
      while (!f[1](date)) f = formats[++i];
      return f[0](date);
    };
  }
  d3.locale = function(locale) {
    return {
      numberFormat: d3_locale_numberFormat(locale),
      timeFormat: d3_locale_timeFormat(locale)
    };
  };
  var d3_locale_enUS = d3.locale({
    decimal: ".",
    thousands: ",",
    grouping: [ 3 ],
    currency: [ "$", "" ],
    dateTime: "%a %b %e %X %Y",
    date: "%m/%d/%Y",
    time: "%H:%M:%S",
    periods: [ "AM", "PM" ],
    days: [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ],
    shortDays: [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ],
    months: [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ],
    shortMonths: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ]
  });
  d3.format = d3_locale_enUS.numberFormat;
  d3.geo = {};
  function d3_adder() {}
  d3_adder.prototype = {
    s: 0,
    t: 0,
    add: function(y) {
      d3_adderSum(y, this.t, d3_adderTemp);
      d3_adderSum(d3_adderTemp.s, this.s, this);
      if (this.s) this.t += d3_adderTemp.t; else this.s = d3_adderTemp.t;
    },
    reset: function() {
      this.s = this.t = 0;
    },
    valueOf: function() {
      return this.s;
    }
  };
  var d3_adderTemp = new d3_adder();
  function d3_adderSum(a, b, o) {
    var x = o.s = a + b, bv = x - a, av = x - bv;
    o.t = a - av + (b - bv);
  }
  d3.geo.stream = function(object, listener) {
    if (object && d3_geo_streamObjectType.hasOwnProperty(object.type)) {
      d3_geo_streamObjectType[object.type](object, listener);
    } else {
      d3_geo_streamGeometry(object, listener);
    }
  };
  function d3_geo_streamGeometry(geometry, listener) {
    if (geometry && d3_geo_streamGeometryType.hasOwnProperty(geometry.type)) {
      d3_geo_streamGeometryType[geometry.type](geometry, listener);
    }
  }
  var d3_geo_streamObjectType = {
    Feature: function(feature, listener) {
      d3_geo_streamGeometry(feature.geometry, listener);
    },
    FeatureCollection: function(object, listener) {
      var features = object.features, i = -1, n = features.length;
      while (++i < n) d3_geo_streamGeometry(features[i].geometry, listener);
    }
  };
  var d3_geo_streamGeometryType = {
    Sphere: function(object, listener) {
      listener.sphere();
    },
    Point: function(object, listener) {
      object = object.coordinates;
      listener.point(object[0], object[1], object[2]);
    },
    MultiPoint: function(object, listener) {
      var coordinates = object.coordinates, i = -1, n = coordinates.length;
      while (++i < n) object = coordinates[i], listener.point(object[0], object[1], object[2]);
    },
    LineString: function(object, listener) {
      d3_geo_streamLine(object.coordinates, listener, 0);
    },
    MultiLineString: function(object, listener) {
      var coordinates = object.coordinates, i = -1, n = coordinates.length;
      while (++i < n) d3_geo_streamLine(coordinates[i], listener, 0);
    },
    Polygon: function(object, listener) {
      d3_geo_streamPolygon(object.coordinates, listener);
    },
    MultiPolygon: function(object, listener) {
      var coordinates = object.coordinates, i = -1, n = coordinates.length;
      while (++i < n) d3_geo_streamPolygon(coordinates[i], listener);
    },
    GeometryCollection: function(object, listener) {
      var geometries = object.geometries, i = -1, n = geometries.length;
      while (++i < n) d3_geo_streamGeometry(geometries[i], listener);
    }
  };
  function d3_geo_streamLine(coordinates, listener, closed) {
    var i = -1, n = coordinates.length - closed, coordinate;
    listener.lineStart();
    while (++i < n) coordinate = coordinates[i], listener.point(coordinate[0], coordinate[1], coordinate[2]);
    listener.lineEnd();
  }
  function d3_geo_streamPolygon(coordinates, listener) {
    var i = -1, n = coordinates.length;
    listener.polygonStart();
    while (++i < n) d3_geo_streamLine(coordinates[i], listener, 1);
    listener.polygonEnd();
  }
  d3.geo.area = function(object) {
    d3_geo_areaSum = 0;
    d3.geo.stream(object, d3_geo_area);
    return d3_geo_areaSum;
  };
  var d3_geo_areaSum, d3_geo_areaRingSum = new d3_adder();
  var d3_geo_area = {
    sphere: function() {
      d3_geo_areaSum += 4 * π;
    },
    point: d3_noop,
    lineStart: d3_noop,
    lineEnd: d3_noop,
    polygonStart: function() {
      d3_geo_areaRingSum.reset();
      d3_geo_area.lineStart = d3_geo_areaRingStart;
    },
    polygonEnd: function() {
      var area = 2 * d3_geo_areaRingSum;
      d3_geo_areaSum += area < 0 ? 4 * π + area : area;
      d3_geo_area.lineStart = d3_geo_area.lineEnd = d3_geo_area.point = d3_noop;
    }
  };
  function d3_geo_areaRingStart() {
    var λ00, φ00, λ0, cosφ0, sinφ0;
    d3_geo_area.point = function(λ, φ) {
      d3_geo_area.point = nextPoint;
      λ0 = (λ00 = λ) * d3_radians, cosφ0 = Math.cos(φ = (φ00 = φ) * d3_radians / 2 + π / 4), 
      sinφ0 = Math.sin(φ);
    };
    function nextPoint(λ, φ) {
      λ *= d3_radians;
      φ = φ * d3_radians / 2 + π / 4;
      var dλ = λ - λ0, sdλ = dλ >= 0 ? 1 : -1, adλ = sdλ * dλ, cosφ = Math.cos(φ), sinφ = Math.sin(φ), k = sinφ0 * sinφ, u = cosφ0 * cosφ + k * Math.cos(adλ), v = k * sdλ * Math.sin(adλ);
      d3_geo_areaRingSum.add(Math.atan2(v, u));
      λ0 = λ, cosφ0 = cosφ, sinφ0 = sinφ;
    }
    d3_geo_area.lineEnd = function() {
      nextPoint(λ00, φ00);
    };
  }
  function d3_geo_cartesian(spherical) {
    var λ = spherical[0], φ = spherical[1], cosφ = Math.cos(φ);
    return [ cosφ * Math.cos(λ), cosφ * Math.sin(λ), Math.sin(φ) ];
  }
  function d3_geo_cartesianDot(a, b) {
    return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
  }
  function d3_geo_cartesianCross(a, b) {
    return [ a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0] ];
  }
  function d3_geo_cartesianAdd(a, b) {
    a[0] += b[0];
    a[1] += b[1];
    a[2] += b[2];
  }
  function d3_geo_cartesianScale(vector, k) {
    return [ vector[0] * k, vector[1] * k, vector[2] * k ];
  }
  function d3_geo_cartesianNormalize(d) {
    var l = Math.sqrt(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]);
    d[0] /= l;
    d[1] /= l;
    d[2] /= l;
  }
  function d3_geo_spherical(cartesian) {
    return [ Math.atan2(cartesian[1], cartesian[0]), d3_asin(cartesian[2]) ];
  }
  function d3_geo_sphericalEqual(a, b) {
    return abs(a[0] - b[0]) < ε && abs(a[1] - b[1]) < ε;
  }
  d3.geo.bounds = function() {
    var λ0, φ0, λ1, φ1, λ_, λ__, φ__, p0, dλSum, ranges, range;
    var bound = {
      point: point,
      lineStart: lineStart,
      lineEnd: lineEnd,
      polygonStart: function() {
        bound.point = ringPoint;
        bound.lineStart = ringStart;
        bound.lineEnd = ringEnd;
        dλSum = 0;
        d3_geo_area.polygonStart();
      },
      polygonEnd: function() {
        d3_geo_area.polygonEnd();
        bound.point = point;
        bound.lineStart = lineStart;
        bound.lineEnd = lineEnd;
        if (d3_geo_areaRingSum < 0) λ0 = -(λ1 = 180), φ0 = -(φ1 = 90); else if (dλSum > ε) φ1 = 90; else if (dλSum < -ε) φ0 = -90;
        range[0] = λ0, range[1] = λ1;
      }
    };
    function point(λ, φ) {
      ranges.push(range = [ λ0 = λ, λ1 = λ ]);
      if (φ < φ0) φ0 = φ;
      if (φ > φ1) φ1 = φ;
    }
    function linePoint(λ, φ) {
      var p = d3_geo_cartesian([ λ * d3_radians, φ * d3_radians ]);
      if (p0) {
        var normal = d3_geo_cartesianCross(p0, p), equatorial = [ normal[1], -normal[0], 0 ], inflection = d3_geo_cartesianCross(equatorial, normal);
        d3_geo_cartesianNormalize(inflection);
        inflection = d3_geo_spherical(inflection);
        var dλ = λ - λ_, s = dλ > 0 ? 1 : -1, λi = inflection[0] * d3_degrees * s, antimeridian = abs(dλ) > 180;
        if (antimeridian ^ (s * λ_ < λi && λi < s * λ)) {
          var φi = inflection[1] * d3_degrees;
          if (φi > φ1) φ1 = φi;
        } else if (λi = (λi + 360) % 360 - 180, antimeridian ^ (s * λ_ < λi && λi < s * λ)) {
          var φi = -inflection[1] * d3_degrees;
          if (φi < φ0) φ0 = φi;
        } else {
          if (φ < φ0) φ0 = φ;
          if (φ > φ1) φ1 = φ;
        }
        if (antimeridian) {
          if (λ < λ_) {
            if (angle(λ0, λ) > angle(λ0, λ1)) λ1 = λ;
          } else {
            if (angle(λ, λ1) > angle(λ0, λ1)) λ0 = λ;
          }
        } else {
          if (λ1 >= λ0) {
            if (λ < λ0) λ0 = λ;
            if (λ > λ1) λ1 = λ;
          } else {
            if (λ > λ_) {
              if (angle(λ0, λ) > angle(λ0, λ1)) λ1 = λ;
            } else {
              if (angle(λ, λ1) > angle(λ0, λ1)) λ0 = λ;
            }
          }
        }
      } else {
        point(λ, φ);
      }
      p0 = p, λ_ = λ;
    }
    function lineStart() {
      bound.point = linePoint;
    }
    function lineEnd() {
      range[0] = λ0, range[1] = λ1;
      bound.point = point;
      p0 = null;
    }
    function ringPoint(λ, φ) {
      if (p0) {
        var dλ = λ - λ_;
        dλSum += abs(dλ) > 180 ? dλ + (dλ > 0 ? 360 : -360) : dλ;
      } else λ__ = λ, φ__ = φ;
      d3_geo_area.point(λ, φ);
      linePoint(λ, φ);
    }
    function ringStart() {
      d3_geo_area.lineStart();
    }
    function ringEnd() {
      ringPoint(λ__, φ__);
      d3_geo_area.lineEnd();
      if (abs(dλSum) > ε) λ0 = -(λ1 = 180);
      range[0] = λ0, range[1] = λ1;
      p0 = null;
    }
    function angle(λ0, λ1) {
      return (λ1 -= λ0) < 0 ? λ1 + 360 : λ1;
    }
    function compareRanges(a, b) {
      return a[0] - b[0];
    }
    function withinRange(x, range) {
      return range[0] <= range[1] ? range[0] <= x && x <= range[1] : x < range[0] || range[1] < x;
    }
    return function(feature) {
      φ1 = λ1 = -(λ0 = φ0 = Infinity);
      ranges = [];
      d3.geo.stream(feature, bound);
      var n = ranges.length;
      if (n) {
        ranges.sort(compareRanges);
        for (var i = 1, a = ranges[0], b, merged = [ a ]; i < n; ++i) {
          b = ranges[i];
          if (withinRange(b[0], a) || withinRange(b[1], a)) {
            if (angle(a[0], b[1]) > angle(a[0], a[1])) a[1] = b[1];
            if (angle(b[0], a[1]) > angle(a[0], a[1])) a[0] = b[0];
          } else {
            merged.push(a = b);
          }
        }
        var best = -Infinity, dλ;
        for (var n = merged.length - 1, i = 0, a = merged[n], b; i <= n; a = b, ++i) {
          b = merged[i];
          if ((dλ = angle(a[1], b[0])) > best) best = dλ, λ0 = b[0], λ1 = a[1];
        }
      }
      ranges = range = null;
      return λ0 === Infinity || φ0 === Infinity ? [ [ NaN, NaN ], [ NaN, NaN ] ] : [ [ λ0, φ0 ], [ λ1, φ1 ] ];
    };
  }();
  d3.geo.centroid = function(object) {
    d3_geo_centroidW0 = d3_geo_centroidW1 = d3_geo_centroidX0 = d3_geo_centroidY0 = d3_geo_centroidZ0 = d3_geo_centroidX1 = d3_geo_centroidY1 = d3_geo_centroidZ1 = d3_geo_centroidX2 = d3_geo_centroidY2 = d3_geo_centroidZ2 = 0;
    d3.geo.stream(object, d3_geo_centroid);
    var x = d3_geo_centroidX2, y = d3_geo_centroidY2, z = d3_geo_centroidZ2, m = x * x + y * y + z * z;
    if (m < ε2) {
      x = d3_geo_centroidX1, y = d3_geo_centroidY1, z = d3_geo_centroidZ1;
      if (d3_geo_centroidW1 < ε) x = d3_geo_centroidX0, y = d3_geo_centroidY0, z = d3_geo_centroidZ0;
      m = x * x + y * y + z * z;
      if (m < ε2) return [ NaN, NaN ];
    }
    return [ Math.atan2(y, x) * d3_degrees, d3_asin(z / Math.sqrt(m)) * d3_degrees ];
  };
  var d3_geo_centroidW0, d3_geo_centroidW1, d3_geo_centroidX0, d3_geo_centroidY0, d3_geo_centroidZ0, d3_geo_centroidX1, d3_geo_centroidY1, d3_geo_centroidZ1, d3_geo_centroidX2, d3_geo_centroidY2, d3_geo_centroidZ2;
  var d3_geo_centroid = {
    sphere: d3_noop,
    point: d3_geo_centroidPoint,
    lineStart: d3_geo_centroidLineStart,
    lineEnd: d3_geo_centroidLineEnd,
    polygonStart: function() {
      d3_geo_centroid.lineStart = d3_geo_centroidRingStart;
    },
    polygonEnd: function() {
      d3_geo_centroid.lineStart = d3_geo_centroidLineStart;
    }
  };
  function d3_geo_centroidPoint(λ, φ) {
    λ *= d3_radians;
    var cosφ = Math.cos(φ *= d3_radians);
    d3_geo_centroidPointXYZ(cosφ * Math.cos(λ), cosφ * Math.sin(λ), Math.sin(φ));
  }
  function d3_geo_centroidPointXYZ(x, y, z) {
    ++d3_geo_centroidW0;
    d3_geo_centroidX0 += (x - d3_geo_centroidX0) / d3_geo_centroidW0;
    d3_geo_centroidY0 += (y - d3_geo_centroidY0) / d3_geo_centroidW0;
    d3_geo_centroidZ0 += (z - d3_geo_centroidZ0) / d3_geo_centroidW0;
  }
  function d3_geo_centroidLineStart() {
    var x0, y0, z0;
    d3_geo_centroid.point = function(λ, φ) {
      λ *= d3_radians;
      var cosφ = Math.cos(φ *= d3_radians);
      x0 = cosφ * Math.cos(λ);
      y0 = cosφ * Math.sin(λ);
      z0 = Math.sin(φ);
      d3_geo_centroid.point = nextPoint;
      d3_geo_centroidPointXYZ(x0, y0, z0);
    };
    function nextPoint(λ, φ) {
      λ *= d3_radians;
      var cosφ = Math.cos(φ *= d3_radians), x = cosφ * Math.cos(λ), y = cosφ * Math.sin(λ), z = Math.sin(φ), w = Math.atan2(Math.sqrt((w = y0 * z - z0 * y) * w + (w = z0 * x - x0 * z) * w + (w = x0 * y - y0 * x) * w), x0 * x + y0 * y + z0 * z);
      d3_geo_centroidW1 += w;
      d3_geo_centroidX1 += w * (x0 + (x0 = x));
      d3_geo_centroidY1 += w * (y0 + (y0 = y));
      d3_geo_centroidZ1 += w * (z0 + (z0 = z));
      d3_geo_centroidPointXYZ(x0, y0, z0);
    }
  }
  function d3_geo_centroidLineEnd() {
    d3_geo_centroid.point = d3_geo_centroidPoint;
  }
  function d3_geo_centroidRingStart() {
    var λ00, φ00, x0, y0, z0;
    d3_geo_centroid.point = function(λ, φ) {
      λ00 = λ, φ00 = φ;
      d3_geo_centroid.point = nextPoint;
      λ *= d3_radians;
      var cosφ = Math.cos(φ *= d3_radians);
      x0 = cosφ * Math.cos(λ);
      y0 = cosφ * Math.sin(λ);
      z0 = Math.sin(φ);
      d3_geo_centroidPointXYZ(x0, y0, z0);
    };
    d3_geo_centroid.lineEnd = function() {
      nextPoint(λ00, φ00);
      d3_geo_centroid.lineEnd = d3_geo_centroidLineEnd;
      d3_geo_centroid.point = d3_geo_centroidPoint;
    };
    function nextPoint(λ, φ) {
      λ *= d3_radians;
      var cosφ = Math.cos(φ *= d3_radians), x = cosφ * Math.cos(λ), y = cosφ * Math.sin(λ), z = Math.sin(φ), cx = y0 * z - z0 * y, cy = z0 * x - x0 * z, cz = x0 * y - y0 * x, m = Math.sqrt(cx * cx + cy * cy + cz * cz), u = x0 * x + y0 * y + z0 * z, v = m && -d3_acos(u) / m, w = Math.atan2(m, u);
      d3_geo_centroidX2 += v * cx;
      d3_geo_centroidY2 += v * cy;
      d3_geo_centroidZ2 += v * cz;
      d3_geo_centroidW1 += w;
      d3_geo_centroidX1 += w * (x0 + (x0 = x));
      d3_geo_centroidY1 += w * (y0 + (y0 = y));
      d3_geo_centroidZ1 += w * (z0 + (z0 = z));
      d3_geo_centroidPointXYZ(x0, y0, z0);
    }
  }
  function d3_geo_compose(a, b) {
    function compose(x, y) {
      return x = a(x, y), b(x[0], x[1]);
    }
    if (a.invert && b.invert) compose.invert = function(x, y) {
      return x = b.invert(x, y), x && a.invert(x[0], x[1]);
    };
    return compose;
  }
  function d3_true() {
    return true;
  }
  function d3_geo_clipPolygon(segments, compare, clipStartInside, interpolate, listener) {
    var subject = [], clip = [];
    segments.forEach(function(segment) {
      if ((n = segment.length - 1) <= 0) return;
      var n, p0 = segment[0], p1 = segment[n];
      if (d3_geo_sphericalEqual(p0, p1)) {
        listener.lineStart();
        for (var i = 0; i < n; ++i) listener.point((p0 = segment[i])[0], p0[1]);
        listener.lineEnd();
        return;
      }
      var a = new d3_geo_clipPolygonIntersection(p0, segment, null, true), b = new d3_geo_clipPolygonIntersection(p0, null, a, false);
      a.o = b;
      subject.push(a);
      clip.push(b);
      a = new d3_geo_clipPolygonIntersection(p1, segment, null, false);
      b = new d3_geo_clipPolygonIntersection(p1, null, a, true);
      a.o = b;
      subject.push(a);
      clip.push(b);
    });
    clip.sort(compare);
    d3_geo_clipPolygonLinkCircular(subject);
    d3_geo_clipPolygonLinkCircular(clip);
    if (!subject.length) return;
    for (var i = 0, entry = clipStartInside, n = clip.length; i < n; ++i) {
      clip[i].e = entry = !entry;
    }
    var start = subject[0], points, point;
    while (1) {
      var current = start, isSubject = true;
      while (current.v) if ((current = current.n) === start) return;
      points = current.z;
      listener.lineStart();
      do {
        current.v = current.o.v = true;
        if (current.e) {
          if (isSubject) {
            for (var i = 0, n = points.length; i < n; ++i) listener.point((point = points[i])[0], point[1]);
          } else {
            interpolate(current.x, current.n.x, 1, listener);
          }
          current = current.n;
        } else {
          if (isSubject) {
            points = current.p.z;
            for (var i = points.length - 1; i >= 0; --i) listener.point((point = points[i])[0], point[1]);
          } else {
            interpolate(current.x, current.p.x, -1, listener);
          }
          current = current.p;
        }
        current = current.o;
        points = current.z;
        isSubject = !isSubject;
      } while (!current.v);
      listener.lineEnd();
    }
  }
  function d3_geo_clipPolygonLinkCircular(array) {
    if (!(n = array.length)) return;
    var n, i = 0, a = array[0], b;
    while (++i < n) {
      a.n = b = array[i];
      b.p = a;
      a = b;
    }
    a.n = b = array[0];
    b.p = a;
  }
  function d3_geo_clipPolygonIntersection(point, points, other, entry) {
    this.x = point;
    this.z = points;
    this.o = other;
    this.e = entry;
    this.v = false;
    this.n = this.p = null;
  }
  function d3_geo_clip(pointVisible, clipLine, interpolate, clipStart) {
    return function(rotate, listener) {
      var line = clipLine(listener), rotatedClipStart = rotate.invert(clipStart[0], clipStart[1]);
      var clip = {
        point: point,
        lineStart: lineStart,
        lineEnd: lineEnd,
        polygonStart: function() {
          clip.point = pointRing;
          clip.lineStart = ringStart;
          clip.lineEnd = ringEnd;
          segments = [];
          polygon = [];
        },
        polygonEnd: function() {
          clip.point = point;
          clip.lineStart = lineStart;
          clip.lineEnd = lineEnd;
          segments = d3.merge(segments);
          var clipStartInside = d3_geo_pointInPolygon(rotatedClipStart, polygon);
          if (segments.length) {
            if (!polygonStarted) listener.polygonStart(), polygonStarted = true;
            d3_geo_clipPolygon(segments, d3_geo_clipSort, clipStartInside, interpolate, listener);
          } else if (clipStartInside) {
            if (!polygonStarted) listener.polygonStart(), polygonStarted = true;
            listener.lineStart();
            interpolate(null, null, 1, listener);
            listener.lineEnd();
          }
          if (polygonStarted) listener.polygonEnd(), polygonStarted = false;
          segments = polygon = null;
        },
        sphere: function() {
          listener.polygonStart();
          listener.lineStart();
          interpolate(null, null, 1, listener);
          listener.lineEnd();
          listener.polygonEnd();
        }
      };
      function point(λ, φ) {
        var point = rotate(λ, φ);
        if (pointVisible(λ = point[0], φ = point[1])) listener.point(λ, φ);
      }
      function pointLine(λ, φ) {
        var point = rotate(λ, φ);
        line.point(point[0], point[1]);
      }
      function lineStart() {
        clip.point = pointLine;
        line.lineStart();
      }
      function lineEnd() {
        clip.point = point;
        line.lineEnd();
      }
      var segments;
      var buffer = d3_geo_clipBufferListener(), ringListener = clipLine(buffer), polygonStarted = false, polygon, ring;
      function pointRing(λ, φ) {
        ring.push([ λ, φ ]);
        var point = rotate(λ, φ);
        ringListener.point(point[0], point[1]);
      }
      function ringStart() {
        ringListener.lineStart();
        ring = [];
      }
      function ringEnd() {
        pointRing(ring[0][0], ring[0][1]);
        ringListener.lineEnd();
        var clean = ringListener.clean(), ringSegments = buffer.buffer(), segment, n = ringSegments.length;
        ring.pop();
        polygon.push(ring);
        ring = null;
        if (!n) return;
        if (clean & 1) {
          segment = ringSegments[0];
          var n = segment.length - 1, i = -1, point;
          if (n > 0) {
            if (!polygonStarted) listener.polygonStart(), polygonStarted = true;
            listener.lineStart();
            while (++i < n) listener.point((point = segment[i])[0], point[1]);
            listener.lineEnd();
          }
          return;
        }
        if (n > 1 && clean & 2) ringSegments.push(ringSegments.pop().concat(ringSegments.shift()));
        segments.push(ringSegments.filter(d3_geo_clipSegmentLength1));
      }
      return clip;
    };
  }
  function d3_geo_clipSegmentLength1(segment) {
    return segment.length > 1;
  }
  function d3_geo_clipBufferListener() {
    var lines = [], line;
    return {
      lineStart: function() {
        lines.push(line = []);
      },
      point: function(λ, φ) {
        line.push([ λ, φ ]);
      },
      lineEnd: d3_noop,
      buffer: function() {
        var buffer = lines;
        lines = [];
        line = null;
        return buffer;
      },
      rejoin: function() {
        if (lines.length > 1) lines.push(lines.pop().concat(lines.shift()));
      }
    };
  }
  function d3_geo_clipSort(a, b) {
    return ((a = a.x)[0] < 0 ? a[1] - halfπ - ε : halfπ - a[1]) - ((b = b.x)[0] < 0 ? b[1] - halfπ - ε : halfπ - b[1]);
  }
  var d3_geo_clipAntimeridian = d3_geo_clip(d3_true, d3_geo_clipAntimeridianLine, d3_geo_clipAntimeridianInterpolate, [ -π, -π / 2 ]);
  function d3_geo_clipAntimeridianLine(listener) {
    var λ0 = NaN, φ0 = NaN, sλ0 = NaN, clean;
    return {
      lineStart: function() {
        listener.lineStart();
        clean = 1;
      },
      point: function(λ1, φ1) {
        var sλ1 = λ1 > 0 ? π : -π, dλ = abs(λ1 - λ0);
        if (abs(dλ - π) < ε) {
          listener.point(λ0, φ0 = (φ0 + φ1) / 2 > 0 ? halfπ : -halfπ);
          listener.point(sλ0, φ0);
          listener.lineEnd();
          listener.lineStart();
          listener.point(sλ1, φ0);
          listener.point(λ1, φ0);
          clean = 0;
        } else if (sλ0 !== sλ1 && dλ >= π) {
          if (abs(λ0 - sλ0) < ε) λ0 -= sλ0 * ε;
          if (abs(λ1 - sλ1) < ε) λ1 -= sλ1 * ε;
          φ0 = d3_geo_clipAntimeridianIntersect(λ0, φ0, λ1, φ1);
          listener.point(sλ0, φ0);
          listener.lineEnd();
          listener.lineStart();
          listener.point(sλ1, φ0);
          clean = 0;
        }
        listener.point(λ0 = λ1, φ0 = φ1);
        sλ0 = sλ1;
      },
      lineEnd: function() {
        listener.lineEnd();
        λ0 = φ0 = NaN;
      },
      clean: function() {
        return 2 - clean;
      }
    };
  }
  function d3_geo_clipAntimeridianIntersect(λ0, φ0, λ1, φ1) {
    var cosφ0, cosφ1, sinλ0_λ1 = Math.sin(λ0 - λ1);
    return abs(sinλ0_λ1) > ε ? Math.atan((Math.sin(φ0) * (cosφ1 = Math.cos(φ1)) * Math.sin(λ1) - Math.sin(φ1) * (cosφ0 = Math.cos(φ0)) * Math.sin(λ0)) / (cosφ0 * cosφ1 * sinλ0_λ1)) : (φ0 + φ1) / 2;
  }
  function d3_geo_clipAntimeridianInterpolate(from, to, direction, listener) {
    var φ;
    if (from == null) {
      φ = direction * halfπ;
      listener.point(-π, φ);
      listener.point(0, φ);
      listener.point(π, φ);
      listener.point(π, 0);
      listener.point(π, -φ);
      listener.point(0, -φ);
      listener.point(-π, -φ);
      listener.point(-π, 0);
      listener.point(-π, φ);
    } else if (abs(from[0] - to[0]) > ε) {
      var s = from[0] < to[0] ? π : -π;
      φ = direction * s / 2;
      listener.point(-s, φ);
      listener.point(0, φ);
      listener.point(s, φ);
    } else {
      listener.point(to[0], to[1]);
    }
  }
  function d3_geo_pointInPolygon(point, polygon) {
    var meridian = point[0], parallel = point[1], meridianNormal = [ Math.sin(meridian), -Math.cos(meridian), 0 ], polarAngle = 0, winding = 0;
    d3_geo_areaRingSum.reset();
    for (var i = 0, n = polygon.length; i < n; ++i) {
      var ring = polygon[i], m = ring.length;
      if (!m) continue;
      var point0 = ring[0], λ0 = point0[0], φ0 = point0[1] / 2 + π / 4, sinφ0 = Math.sin(φ0), cosφ0 = Math.cos(φ0), j = 1;
      while (true) {
        if (j === m) j = 0;
        point = ring[j];
        var λ = point[0], φ = point[1] / 2 + π / 4, sinφ = Math.sin(φ), cosφ = Math.cos(φ), dλ = λ - λ0, sdλ = dλ >= 0 ? 1 : -1, adλ = sdλ * dλ, antimeridian = adλ > π, k = sinφ0 * sinφ;
        d3_geo_areaRingSum.add(Math.atan2(k * sdλ * Math.sin(adλ), cosφ0 * cosφ + k * Math.cos(adλ)));
        polarAngle += antimeridian ? dλ + sdλ * τ : dλ;
        if (antimeridian ^ λ0 >= meridian ^ λ >= meridian) {
          var arc = d3_geo_cartesianCross(d3_geo_cartesian(point0), d3_geo_cartesian(point));
          d3_geo_cartesianNormalize(arc);
          var intersection = d3_geo_cartesianCross(meridianNormal, arc);
          d3_geo_cartesianNormalize(intersection);
          var φarc = (antimeridian ^ dλ >= 0 ? -1 : 1) * d3_asin(intersection[2]);
          if (parallel > φarc || parallel === φarc && (arc[0] || arc[1])) {
            winding += antimeridian ^ dλ >= 0 ? 1 : -1;
          }
        }
        if (!j++) break;
        λ0 = λ, sinφ0 = sinφ, cosφ0 = cosφ, point0 = point;
      }
    }
    return (polarAngle < -ε || polarAngle < ε && d3_geo_areaRingSum < -ε) ^ winding & 1;
  }
  function d3_geo_clipCircle(radius) {
    var cr = Math.cos(radius), smallRadius = cr > 0, notHemisphere = abs(cr) > ε, interpolate = d3_geo_circleInterpolate(radius, 6 * d3_radians);
    return d3_geo_clip(visible, clipLine, interpolate, smallRadius ? [ 0, -radius ] : [ -π, radius - π ]);
    function visible(λ, φ) {
      return Math.cos(λ) * Math.cos(φ) > cr;
    }
    function clipLine(listener) {
      var point0, c0, v0, v00, clean;
      return {
        lineStart: function() {
          v00 = v0 = false;
          clean = 1;
        },
        point: function(λ, φ) {
          var point1 = [ λ, φ ], point2, v = visible(λ, φ), c = smallRadius ? v ? 0 : code(λ, φ) : v ? code(λ + (λ < 0 ? π : -π), φ) : 0;
          if (!point0 && (v00 = v0 = v)) listener.lineStart();
          if (v !== v0) {
            point2 = intersect(point0, point1);
            if (d3_geo_sphericalEqual(point0, point2) || d3_geo_sphericalEqual(point1, point2)) {
              point1[0] += ε;
              point1[1] += ε;
              v = visible(point1[0], point1[1]);
            }
          }
          if (v !== v0) {
            clean = 0;
            if (v) {
              listener.lineStart();
              point2 = intersect(point1, point0);
              listener.point(point2[0], point2[1]);
            } else {
              point2 = intersect(point0, point1);
              listener.point(point2[0], point2[1]);
              listener.lineEnd();
            }
            point0 = point2;
          } else if (notHemisphere && point0 && smallRadius ^ v) {
            var t;
            if (!(c & c0) && (t = intersect(point1, point0, true))) {
              clean = 0;
              if (smallRadius) {
                listener.lineStart();
                listener.point(t[0][0], t[0][1]);
                listener.point(t[1][0], t[1][1]);
                listener.lineEnd();
              } else {
                listener.point(t[1][0], t[1][1]);
                listener.lineEnd();
                listener.lineStart();
                listener.point(t[0][0], t[0][1]);
              }
            }
          }
          if (v && (!point0 || !d3_geo_sphericalEqual(point0, point1))) {
            listener.point(point1[0], point1[1]);
          }
          point0 = point1, v0 = v, c0 = c;
        },
        lineEnd: function() {
          if (v0) listener.lineEnd();
          point0 = null;
        },
        clean: function() {
          return clean | (v00 && v0) << 1;
        }
      };
    }
    function intersect(a, b, two) {
      var pa = d3_geo_cartesian(a), pb = d3_geo_cartesian(b);
      var n1 = [ 1, 0, 0 ], n2 = d3_geo_cartesianCross(pa, pb), n2n2 = d3_geo_cartesianDot(n2, n2), n1n2 = n2[0], determinant = n2n2 - n1n2 * n1n2;
      if (!determinant) return !two && a;
      var c1 = cr * n2n2 / determinant, c2 = -cr * n1n2 / determinant, n1xn2 = d3_geo_cartesianCross(n1, n2), A = d3_geo_cartesianScale(n1, c1), B = d3_geo_cartesianScale(n2, c2);
      d3_geo_cartesianAdd(A, B);
      var u = n1xn2, w = d3_geo_cartesianDot(A, u), uu = d3_geo_cartesianDot(u, u), t2 = w * w - uu * (d3_geo_cartesianDot(A, A) - 1);
      if (t2 < 0) return;
      var t = Math.sqrt(t2), q = d3_geo_cartesianScale(u, (-w - t) / uu);
      d3_geo_cartesianAdd(q, A);
      q = d3_geo_spherical(q);
      if (!two) return q;
      var λ0 = a[0], λ1 = b[0], φ0 = a[1], φ1 = b[1], z;
      if (λ1 < λ0) z = λ0, λ0 = λ1, λ1 = z;
      var δλ = λ1 - λ0, polar = abs(δλ - π) < ε, meridian = polar || δλ < ε;
      if (!polar && φ1 < φ0) z = φ0, φ0 = φ1, φ1 = z;
      if (meridian ? polar ? φ0 + φ1 > 0 ^ q[1] < (abs(q[0] - λ0) < ε ? φ0 : φ1) : φ0 <= q[1] && q[1] <= φ1 : δλ > π ^ (λ0 <= q[0] && q[0] <= λ1)) {
        var q1 = d3_geo_cartesianScale(u, (-w + t) / uu);
        d3_geo_cartesianAdd(q1, A);
        return [ q, d3_geo_spherical(q1) ];
      }
    }
    function code(λ, φ) {
      var r = smallRadius ? radius : π - radius, code = 0;
      if (λ < -r) code |= 1; else if (λ > r) code |= 2;
      if (φ < -r) code |= 4; else if (φ > r) code |= 8;
      return code;
    }
  }
  function d3_geom_clipLine(x0, y0, x1, y1) {
    return function(line) {
      var a = line.a, b = line.b, ax = a.x, ay = a.y, bx = b.x, by = b.y, t0 = 0, t1 = 1, dx = bx - ax, dy = by - ay, r;
      r = x0 - ax;
      if (!dx && r > 0) return;
      r /= dx;
      if (dx < 0) {
        if (r < t0) return;
        if (r < t1) t1 = r;
      } else if (dx > 0) {
        if (r > t1) return;
        if (r > t0) t0 = r;
      }
      r = x1 - ax;
      if (!dx && r < 0) return;
      r /= dx;
      if (dx < 0) {
        if (r > t1) return;
        if (r > t0) t0 = r;
      } else if (dx > 0) {
        if (r < t0) return;
        if (r < t1) t1 = r;
      }
      r = y0 - ay;
      if (!dy && r > 0) return;
      r /= dy;
      if (dy < 0) {
        if (r < t0) return;
        if (r < t1) t1 = r;
      } else if (dy > 0) {
        if (r > t1) return;
        if (r > t0) t0 = r;
      }
      r = y1 - ay;
      if (!dy && r < 0) return;
      r /= dy;
      if (dy < 0) {
        if (r > t1) return;
        if (r > t0) t0 = r;
      } else if (dy > 0) {
        if (r < t0) return;
        if (r < t1) t1 = r;
      }
      if (t0 > 0) line.a = {
        x: ax + t0 * dx,
        y: ay + t0 * dy
      };
      if (t1 < 1) line.b = {
        x: ax + t1 * dx,
        y: ay + t1 * dy
      };
      return line;
    };
  }
  var d3_geo_clipExtentMAX = 1e9;
  d3.geo.clipExtent = function() {
    var x0, y0, x1, y1, stream, clip, clipExtent = {
      stream: function(output) {
        if (stream) stream.valid = false;
        stream = clip(output);
        stream.valid = true;
        return stream;
      },
      extent: function(_) {
        if (!arguments.length) return [ [ x0, y0 ], [ x1, y1 ] ];
        clip = d3_geo_clipExtent(x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1]);
        if (stream) stream.valid = false, stream = null;
        return clipExtent;
      }
    };
    return clipExtent.extent([ [ 0, 0 ], [ 960, 500 ] ]);
  };
  function d3_geo_clipExtent(x0, y0, x1, y1) {
    return function(listener) {
      var listener_ = listener, bufferListener = d3_geo_clipBufferListener(), clipLine = d3_geom_clipLine(x0, y0, x1, y1), segments, polygon, ring;
      var clip = {
        point: point,
        lineStart: lineStart,
        lineEnd: lineEnd,
        polygonStart: function() {
          listener = bufferListener;
          segments = [];
          polygon = [];
          clean = true;
        },
        polygonEnd: function() {
          listener = listener_;
          segments = d3.merge(segments);
          var clipStartInside = insidePolygon([ x0, y1 ]), inside = clean && clipStartInside, visible = segments.length;
          if (inside || visible) {
            listener.polygonStart();
            if (inside) {
              listener.lineStart();
              interpolate(null, null, 1, listener);
              listener.lineEnd();
            }
            if (visible) {
              d3_geo_clipPolygon(segments, compare, clipStartInside, interpolate, listener);
            }
            listener.polygonEnd();
          }
          segments = polygon = ring = null;
        }
      };
      function insidePolygon(p) {
        var wn = 0, n = polygon.length, y = p[1];
        for (var i = 0; i < n; ++i) {
          for (var j = 1, v = polygon[i], m = v.length, a = v[0], b; j < m; ++j) {
            b = v[j];
            if (a[1] <= y) {
              if (b[1] > y && d3_cross2d(a, b, p) > 0) ++wn;
            } else {
              if (b[1] <= y && d3_cross2d(a, b, p) < 0) --wn;
            }
            a = b;
          }
        }
        return wn !== 0;
      }
      function interpolate(from, to, direction, listener) {
        var a = 0, a1 = 0;
        if (from == null || (a = corner(from, direction)) !== (a1 = corner(to, direction)) || comparePoints(from, to) < 0 ^ direction > 0) {
          do {
            listener.point(a === 0 || a === 3 ? x0 : x1, a > 1 ? y1 : y0);
          } while ((a = (a + direction + 4) % 4) !== a1);
        } else {
          listener.point(to[0], to[1]);
        }
      }
      function pointVisible(x, y) {
        return x0 <= x && x <= x1 && y0 <= y && y <= y1;
      }
      function point(x, y) {
        if (pointVisible(x, y)) listener.point(x, y);
      }
      var x__, y__, v__, x_, y_, v_, first, clean;
      function lineStart() {
        clip.point = linePoint;
        if (polygon) polygon.push(ring = []);
        first = true;
        v_ = false;
        x_ = y_ = NaN;
      }
      function lineEnd() {
        if (segments) {
          linePoint(x__, y__);
          if (v__ && v_) bufferListener.rejoin();
          segments.push(bufferListener.buffer());
        }
        clip.point = point;
        if (v_) listener.lineEnd();
      }
      function linePoint(x, y) {
        x = Math.max(-d3_geo_clipExtentMAX, Math.min(d3_geo_clipExtentMAX, x));
        y = Math.max(-d3_geo_clipExtentMAX, Math.min(d3_geo_clipExtentMAX, y));
        var v = pointVisible(x, y);
        if (polygon) ring.push([ x, y ]);
        if (first) {
          x__ = x, y__ = y, v__ = v;
          first = false;
          if (v) {
            listener.lineStart();
            listener.point(x, y);
          }
        } else {
          if (v && v_) listener.point(x, y); else {
            var l = {
              a: {
                x: x_,
                y: y_
              },
              b: {
                x: x,
                y: y
              }
            };
            if (clipLine(l)) {
              if (!v_) {
                listener.lineStart();
                listener.point(l.a.x, l.a.y);
              }
              listener.point(l.b.x, l.b.y);
              if (!v) listener.lineEnd();
              clean = false;
            } else if (v) {
              listener.lineStart();
              listener.point(x, y);
              clean = false;
            }
          }
        }
        x_ = x, y_ = y, v_ = v;
      }
      return clip;
    };
    function corner(p, direction) {
      return abs(p[0] - x0) < ε ? direction > 0 ? 0 : 3 : abs(p[0] - x1) < ε ? direction > 0 ? 2 : 1 : abs(p[1] - y0) < ε ? direction > 0 ? 1 : 0 : direction > 0 ? 3 : 2;
    }
    function compare(a, b) {
      return comparePoints(a.x, b.x);
    }
    function comparePoints(a, b) {
      var ca = corner(a, 1), cb = corner(b, 1);
      return ca !== cb ? ca - cb : ca === 0 ? b[1] - a[1] : ca === 1 ? a[0] - b[0] : ca === 2 ? a[1] - b[1] : b[0] - a[0];
    }
  }
  function d3_geo_conic(projectAt) {
    var φ0 = 0, φ1 = π / 3, m = d3_geo_projectionMutator(projectAt), p = m(φ0, φ1);
    p.parallels = function(_) {
      if (!arguments.length) return [ φ0 / π * 180, φ1 / π * 180 ];
      return m(φ0 = _[0] * π / 180, φ1 = _[1] * π / 180);
    };
    return p;
  }
  function d3_geo_conicEqualArea(φ0, φ1) {
    var sinφ0 = Math.sin(φ0), n = (sinφ0 + Math.sin(φ1)) / 2, C = 1 + sinφ0 * (2 * n - sinφ0), ρ0 = Math.sqrt(C) / n;
    function forward(λ, φ) {
      var ρ = Math.sqrt(C - 2 * n * Math.sin(φ)) / n;
      return [ ρ * Math.sin(λ *= n), ρ0 - ρ * Math.cos(λ) ];
    }
    forward.invert = function(x, y) {
      var ρ0_y = ρ0 - y;
      return [ Math.atan2(x, ρ0_y) / n, d3_asin((C - (x * x + ρ0_y * ρ0_y) * n * n) / (2 * n)) ];
    };
    return forward;
  }
  (d3.geo.conicEqualArea = function() {
    return d3_geo_conic(d3_geo_conicEqualArea);
  }).raw = d3_geo_conicEqualArea;
  d3.geo.albers = function() {
    return d3.geo.conicEqualArea().rotate([ 96, 0 ]).center([ -.6, 38.7 ]).parallels([ 29.5, 45.5 ]).scale(1070);
  };
  d3.geo.albersUsa = function() {
    var lower48 = d3.geo.albers();
    var alaska = d3.geo.conicEqualArea().rotate([ 154, 0 ]).center([ -2, 58.5 ]).parallels([ 55, 65 ]);
    var hawaii = d3.geo.conicEqualArea().rotate([ 157, 0 ]).center([ -3, 19.9 ]).parallels([ 8, 18 ]);
    var point, pointStream = {
      point: function(x, y) {
        point = [ x, y ];
      }
    }, lower48Point, alaskaPoint, hawaiiPoint;
    function albersUsa(coordinates) {
      var x = coordinates[0], y = coordinates[1];
      point = null;
      (lower48Point(x, y), point) || (alaskaPoint(x, y), point) || hawaiiPoint(x, y);
      return point;
    }
    albersUsa.invert = function(coordinates) {
      var k = lower48.scale(), t = lower48.translate(), x = (coordinates[0] - t[0]) / k, y = (coordinates[1] - t[1]) / k;
      return (y >= .12 && y < .234 && x >= -.425 && x < -.214 ? alaska : y >= .166 && y < .234 && x >= -.214 && x < -.115 ? hawaii : lower48).invert(coordinates);
    };
    albersUsa.stream = function(stream) {
      var lower48Stream = lower48.stream(stream), alaskaStream = alaska.stream(stream), hawaiiStream = hawaii.stream(stream);
      return {
        point: function(x, y) {
          lower48Stream.point(x, y);
          alaskaStream.point(x, y);
          hawaiiStream.point(x, y);
        },
        sphere: function() {
          lower48Stream.sphere();
          alaskaStream.sphere();
          hawaiiStream.sphere();
        },
        lineStart: function() {
          lower48Stream.lineStart();
          alaskaStream.lineStart();
          hawaiiStream.lineStart();
        },
        lineEnd: function() {
          lower48Stream.lineEnd();
          alaskaStream.lineEnd();
          hawaiiStream.lineEnd();
        },
        polygonStart: function() {
          lower48Stream.polygonStart();
          alaskaStream.polygonStart();
          hawaiiStream.polygonStart();
        },
        polygonEnd: function() {
          lower48Stream.polygonEnd();
          alaskaStream.polygonEnd();
          hawaiiStream.polygonEnd();
        }
      };
    };
    albersUsa.precision = function(_) {
      if (!arguments.length) return lower48.precision();
      lower48.precision(_);
      alaska.precision(_);
      hawaii.precision(_);
      return albersUsa;
    };
    albersUsa.scale = function(_) {
      if (!arguments.length) return lower48.scale();
      lower48.scale(_);
      alaska.scale(_ * .35);
      hawaii.scale(_);
      return albersUsa.translate(lower48.translate());
    };
    albersUsa.translate = function(_) {
      if (!arguments.length) return lower48.translate();
      var k = lower48.scale(), x = +_[0], y = +_[1];
      lower48Point = lower48.translate(_).clipExtent([ [ x - .455 * k, y - .238 * k ], [ x + .455 * k, y + .238 * k ] ]).stream(pointStream).point;
      alaskaPoint = alaska.translate([ x - .307 * k, y + .201 * k ]).clipExtent([ [ x - .425 * k + ε, y + .12 * k + ε ], [ x - .214 * k - ε, y + .234 * k - ε ] ]).stream(pointStream).point;
      hawaiiPoint = hawaii.translate([ x - .205 * k, y + .212 * k ]).clipExtent([ [ x - .214 * k + ε, y + .166 * k + ε ], [ x - .115 * k - ε, y + .234 * k - ε ] ]).stream(pointStream).point;
      return albersUsa;
    };
    return albersUsa.scale(1070);
  };
  var d3_geo_pathAreaSum, d3_geo_pathAreaPolygon, d3_geo_pathArea = {
    point: d3_noop,
    lineStart: d3_noop,
    lineEnd: d3_noop,
    polygonStart: function() {
      d3_geo_pathAreaPolygon = 0;
      d3_geo_pathArea.lineStart = d3_geo_pathAreaRingStart;
    },
    polygonEnd: function() {
      d3_geo_pathArea.lineStart = d3_geo_pathArea.lineEnd = d3_geo_pathArea.point = d3_noop;
      d3_geo_pathAreaSum += abs(d3_geo_pathAreaPolygon / 2);
    }
  };
  function d3_geo_pathAreaRingStart() {
    var x00, y00, x0, y0;
    d3_geo_pathArea.point = function(x, y) {
      d3_geo_pathArea.point = nextPoint;
      x00 = x0 = x, y00 = y0 = y;
    };
    function nextPoint(x, y) {
      d3_geo_pathAreaPolygon += y0 * x - x0 * y;
      x0 = x, y0 = y;
    }
    d3_geo_pathArea.lineEnd = function() {
      nextPoint(x00, y00);
    };
  }
  var d3_geo_pathBoundsX0, d3_geo_pathBoundsY0, d3_geo_pathBoundsX1, d3_geo_pathBoundsY1;
  var d3_geo_pathBounds = {
    point: d3_geo_pathBoundsPoint,
    lineStart: d3_noop,
    lineEnd: d3_noop,
    polygonStart: d3_noop,
    polygonEnd: d3_noop
  };
  function d3_geo_pathBoundsPoint(x, y) {
    if (x < d3_geo_pathBoundsX0) d3_geo_pathBoundsX0 = x;
    if (x > d3_geo_pathBoundsX1) d3_geo_pathBoundsX1 = x;
    if (y < d3_geo_pathBoundsY0) d3_geo_pathBoundsY0 = y;
    if (y > d3_geo_pathBoundsY1) d3_geo_pathBoundsY1 = y;
  }
  function d3_geo_pathBuffer() {
    var pointCircle = d3_geo_pathBufferCircle(4.5), buffer = [];
    var stream = {
      point: point,
      lineStart: function() {
        stream.point = pointLineStart;
      },
      lineEnd: lineEnd,
      polygonStart: function() {
        stream.lineEnd = lineEndPolygon;
      },
      polygonEnd: function() {
        stream.lineEnd = lineEnd;
        stream.point = point;
      },
      pointRadius: function(_) {
        pointCircle = d3_geo_pathBufferCircle(_);
        return stream;
      },
      result: function() {
        if (buffer.length) {
          var result = buffer.join("");
          buffer = [];
          return result;
        }
      }
    };
    function point(x, y) {
      buffer.push("M", x, ",", y, pointCircle);
    }
    function pointLineStart(x, y) {
      buffer.push("M", x, ",", y);
      stream.point = pointLine;
    }
    function pointLine(x, y) {
      buffer.push("L", x, ",", y);
    }
    function lineEnd() {
      stream.point = point;
    }
    function lineEndPolygon() {
      buffer.push("Z");
    }
    return stream;
  }
  function d3_geo_pathBufferCircle(radius) {
    return "m0," + radius + "a" + radius + "," + radius + " 0 1,1 0," + -2 * radius + "a" + radius + "," + radius + " 0 1,1 0," + 2 * radius + "z";
  }
  var d3_geo_pathCentroid = {
    point: d3_geo_pathCentroidPoint,
    lineStart: d3_geo_pathCentroidLineStart,
    lineEnd: d3_geo_pathCentroidLineEnd,
    polygonStart: function() {
      d3_geo_pathCentroid.lineStart = d3_geo_pathCentroidRingStart;
    },
    polygonEnd: function() {
      d3_geo_pathCentroid.point = d3_geo_pathCentroidPoint;
      d3_geo_pathCentroid.lineStart = d3_geo_pathCentroidLineStart;
      d3_geo_pathCentroid.lineEnd = d3_geo_pathCentroidLineEnd;
    }
  };
  function d3_geo_pathCentroidPoint(x, y) {
    d3_geo_centroidX0 += x;
    d3_geo_centroidY0 += y;
    ++d3_geo_centroidZ0;
  }
  function d3_geo_pathCentroidLineStart() {
    var x0, y0;
    d3_geo_pathCentroid.point = function(x, y) {
      d3_geo_pathCentroid.point = nextPoint;
      d3_geo_pathCentroidPoint(x0 = x, y0 = y);
    };
    function nextPoint(x, y) {
      var dx = x - x0, dy = y - y0, z = Math.sqrt(dx * dx + dy * dy);
      d3_geo_centroidX1 += z * (x0 + x) / 2;
      d3_geo_centroidY1 += z * (y0 + y) / 2;
      d3_geo_centroidZ1 += z;
      d3_geo_pathCentroidPoint(x0 = x, y0 = y);
    }
  }
  function d3_geo_pathCentroidLineEnd() {
    d3_geo_pathCentroid.point = d3_geo_pathCentroidPoint;
  }
  function d3_geo_pathCentroidRingStart() {
    var x00, y00, x0, y0;
    d3_geo_pathCentroid.point = function(x, y) {
      d3_geo_pathCentroid.point = nextPoint;
      d3_geo_pathCentroidPoint(x00 = x0 = x, y00 = y0 = y);
    };
    function nextPoint(x, y) {
      var dx = x - x0, dy = y - y0, z = Math.sqrt(dx * dx + dy * dy);
      d3_geo_centroidX1 += z * (x0 + x) / 2;
      d3_geo_centroidY1 += z * (y0 + y) / 2;
      d3_geo_centroidZ1 += z;
      z = y0 * x - x0 * y;
      d3_geo_centroidX2 += z * (x0 + x);
      d3_geo_centroidY2 += z * (y0 + y);
      d3_geo_centroidZ2 += z * 3;
      d3_geo_pathCentroidPoint(x0 = x, y0 = y);
    }
    d3_geo_pathCentroid.lineEnd = function() {
      nextPoint(x00, y00);
    };
  }
  function d3_geo_pathContext(context) {
    var pointRadius = 4.5;
    var stream = {
      point: point,
      lineStart: function() {
        stream.point = pointLineStart;
      },
      lineEnd: lineEnd,
      polygonStart: function() {
        stream.lineEnd = lineEndPolygon;
      },
      polygonEnd: function() {
        stream.lineEnd = lineEnd;
        stream.point = point;
      },
      pointRadius: function(_) {
        pointRadius = _;
        return stream;
      },
      result: d3_noop
    };
    function point(x, y) {
      context.moveTo(x + pointRadius, y);
      context.arc(x, y, pointRadius, 0, τ);
    }
    function pointLineStart(x, y) {
      context.moveTo(x, y);
      stream.point = pointLine;
    }
    function pointLine(x, y) {
      context.lineTo(x, y);
    }
    function lineEnd() {
      stream.point = point;
    }
    function lineEndPolygon() {
      context.closePath();
    }
    return stream;
  }
  function d3_geo_resample(project) {
    var δ2 = .5, cosMinDistance = Math.cos(30 * d3_radians), maxDepth = 16;
    function resample(stream) {
      return (maxDepth ? resampleRecursive : resampleNone)(stream);
    }
    function resampleNone(stream) {
      return d3_geo_transformPoint(stream, function(x, y) {
        x = project(x, y);
        stream.point(x[0], x[1]);
      });
    }
    function resampleRecursive(stream) {
      var λ00, φ00, x00, y00, a00, b00, c00, λ0, x0, y0, a0, b0, c0;
      var resample = {
        point: point,
        lineStart: lineStart,
        lineEnd: lineEnd,
        polygonStart: function() {
          stream.polygonStart();
          resample.lineStart = ringStart;
        },
        polygonEnd: function() {
          stream.polygonEnd();
          resample.lineStart = lineStart;
        }
      };
      function point(x, y) {
        x = project(x, y);
        stream.point(x[0], x[1]);
      }
      function lineStart() {
        x0 = NaN;
        resample.point = linePoint;
        stream.lineStart();
      }
      function linePoint(λ, φ) {
        var c = d3_geo_cartesian([ λ, φ ]), p = project(λ, φ);
        resampleLineTo(x0, y0, λ0, a0, b0, c0, x0 = p[0], y0 = p[1], λ0 = λ, a0 = c[0], b0 = c[1], c0 = c[2], maxDepth, stream);
        stream.point(x0, y0);
      }
      function lineEnd() {
        resample.point = point;
        stream.lineEnd();
      }
      function ringStart() {
        lineStart();
        resample.point = ringPoint;
        resample.lineEnd = ringEnd;
      }
      function ringPoint(λ, φ) {
        linePoint(λ00 = λ, φ00 = φ), x00 = x0, y00 = y0, a00 = a0, b00 = b0, c00 = c0;
        resample.point = linePoint;
      }
      function ringEnd() {
        resampleLineTo(x0, y0, λ0, a0, b0, c0, x00, y00, λ00, a00, b00, c00, maxDepth, stream);
        resample.lineEnd = lineEnd;
        lineEnd();
      }
      return resample;
    }
    function resampleLineTo(x0, y0, λ0, a0, b0, c0, x1, y1, λ1, a1, b1, c1, depth, stream) {
      var dx = x1 - x0, dy = y1 - y0, d2 = dx * dx + dy * dy;
      if (d2 > 4 * δ2 && depth--) {
        var a = a0 + a1, b = b0 + b1, c = c0 + c1, m = Math.sqrt(a * a + b * b + c * c), φ2 = Math.asin(c /= m), λ2 = abs(abs(c) - 1) < ε || abs(λ0 - λ1) < ε ? (λ0 + λ1) / 2 : Math.atan2(b, a), p = project(λ2, φ2), x2 = p[0], y2 = p[1], dx2 = x2 - x0, dy2 = y2 - y0, dz = dy * dx2 - dx * dy2;
        if (dz * dz / d2 > δ2 || abs((dx * dx2 + dy * dy2) / d2 - .5) > .3 || a0 * a1 + b0 * b1 + c0 * c1 < cosMinDistance) {
          resampleLineTo(x0, y0, λ0, a0, b0, c0, x2, y2, λ2, a /= m, b /= m, c, depth, stream);
          stream.point(x2, y2);
          resampleLineTo(x2, y2, λ2, a, b, c, x1, y1, λ1, a1, b1, c1, depth, stream);
        }
      }
    }
    resample.precision = function(_) {
      if (!arguments.length) return Math.sqrt(δ2);
      maxDepth = (δ2 = _ * _) > 0 && 16;
      return resample;
    };
    return resample;
  }
  d3.geo.path = function() {
    var pointRadius = 4.5, projection, context, projectStream, contextStream, cacheStream;
    function path(object) {
      if (object) {
        if (typeof pointRadius === "function") contextStream.pointRadius(+pointRadius.apply(this, arguments));
        if (!cacheStream || !cacheStream.valid) cacheStream = projectStream(contextStream);
        d3.geo.stream(object, cacheStream);
      }
      return contextStream.result();
    }
    path.area = function(object) {
      d3_geo_pathAreaSum = 0;
      d3.geo.stream(object, projectStream(d3_geo_pathArea));
      return d3_geo_pathAreaSum;
    };
    path.centroid = function(object) {
      d3_geo_centroidX0 = d3_geo_centroidY0 = d3_geo_centroidZ0 = d3_geo_centroidX1 = d3_geo_centroidY1 = d3_geo_centroidZ1 = d3_geo_centroidX2 = d3_geo_centroidY2 = d3_geo_centroidZ2 = 0;
      d3.geo.stream(object, projectStream(d3_geo_pathCentroid));
      return d3_geo_centroidZ2 ? [ d3_geo_centroidX2 / d3_geo_centroidZ2, d3_geo_centroidY2 / d3_geo_centroidZ2 ] : d3_geo_centroidZ1 ? [ d3_geo_centroidX1 / d3_geo_centroidZ1, d3_geo_centroidY1 / d3_geo_centroidZ1 ] : d3_geo_centroidZ0 ? [ d3_geo_centroidX0 / d3_geo_centroidZ0, d3_geo_centroidY0 / d3_geo_centroidZ0 ] : [ NaN, NaN ];
    };
    path.bounds = function(object) {
      d3_geo_pathBoundsX1 = d3_geo_pathBoundsY1 = -(d3_geo_pathBoundsX0 = d3_geo_pathBoundsY0 = Infinity);
      d3.geo.stream(object, projectStream(d3_geo_pathBounds));
      return [ [ d3_geo_pathBoundsX0, d3_geo_pathBoundsY0 ], [ d3_geo_pathBoundsX1, d3_geo_pathBoundsY1 ] ];
    };
    path.projection = function(_) {
      if (!arguments.length) return projection;
      projectStream = (projection = _) ? _.stream || d3_geo_pathProjectStream(_) : d3_identity;
      return reset();
    };
    path.context = function(_) {
      if (!arguments.length) return context;
      contextStream = (context = _) == null ? new d3_geo_pathBuffer() : new d3_geo_pathContext(_);
      if (typeof pointRadius !== "function") contextStream.pointRadius(pointRadius);
      return reset();
    };
    path.pointRadius = function(_) {
      if (!arguments.length) return pointRadius;
      pointRadius = typeof _ === "function" ? _ : (contextStream.pointRadius(+_), +_);
      return path;
    };
    function reset() {
      cacheStream = null;
      return path;
    }
    return path.projection(d3.geo.albersUsa()).context(null);
  };
  function d3_geo_pathProjectStream(project) {
    var resample = d3_geo_resample(function(x, y) {
      return project([ x * d3_degrees, y * d3_degrees ]);
    });
    return function(stream) {
      return d3_geo_projectionRadians(resample(stream));
    };
  }
  d3.geo.transform = function(methods) {
    return {
      stream: function(stream) {
        var transform = new d3_geo_transform(stream);
        for (var k in methods) transform[k] = methods[k];
        return transform;
      }
    };
  };
  function d3_geo_transform(stream) {
    this.stream = stream;
  }
  d3_geo_transform.prototype = {
    point: function(x, y) {
      this.stream.point(x, y);
    },
    sphere: function() {
      this.stream.sphere();
    },
    lineStart: function() {
      this.stream.lineStart();
    },
    lineEnd: function() {
      this.stream.lineEnd();
    },
    polygonStart: function() {
      this.stream.polygonStart();
    },
    polygonEnd: function() {
      this.stream.polygonEnd();
    }
  };
  function d3_geo_transformPoint(stream, point) {
    return {
      point: point,
      sphere: function() {
        stream.sphere();
      },
      lineStart: function() {
        stream.lineStart();
      },
      lineEnd: function() {
        stream.lineEnd();
      },
      polygonStart: function() {
        stream.polygonStart();
      },
      polygonEnd: function() {
        stream.polygonEnd();
      }
    };
  }
  d3.geo.projection = d3_geo_projection;
  d3.geo.projectionMutator = d3_geo_projectionMutator;
  function d3_geo_projection(project) {
    return d3_geo_projectionMutator(function() {
      return project;
    })();
  }
  function d3_geo_projectionMutator(projectAt) {
    var project, rotate, projectRotate, projectResample = d3_geo_resample(function(x, y) {
      x = project(x, y);
      return [ x[0] * k + δx, δy - x[1] * k ];
    }), k = 150, x = 480, y = 250, λ = 0, φ = 0, δλ = 0, δφ = 0, δγ = 0, δx, δy, preclip = d3_geo_clipAntimeridian, postclip = d3_identity, clipAngle = null, clipExtent = null, stream;
    function projection(point) {
      point = projectRotate(point[0] * d3_radians, point[1] * d3_radians);
      return [ point[0] * k + δx, δy - point[1] * k ];
    }
    function invert(point) {
      point = projectRotate.invert((point[0] - δx) / k, (δy - point[1]) / k);
      return point && [ point[0] * d3_degrees, point[1] * d3_degrees ];
    }
    projection.stream = function(output) {
      if (stream) stream.valid = false;
      stream = d3_geo_projectionRadians(preclip(rotate, projectResample(postclip(output))));
      stream.valid = true;
      return stream;
    };
    projection.clipAngle = function(_) {
      if (!arguments.length) return clipAngle;
      preclip = _ == null ? (clipAngle = _, d3_geo_clipAntimeridian) : d3_geo_clipCircle((clipAngle = +_) * d3_radians);
      return invalidate();
    };
    projection.clipExtent = function(_) {
      if (!arguments.length) return clipExtent;
      clipExtent = _;
      postclip = _ ? d3_geo_clipExtent(_[0][0], _[0][1], _[1][0], _[1][1]) : d3_identity;
      return invalidate();
    };
    projection.scale = function(_) {
      if (!arguments.length) return k;
      k = +_;
      return reset();
    };
    projection.translate = function(_) {
      if (!arguments.length) return [ x, y ];
      x = +_[0];
      y = +_[1];
      return reset();
    };
    projection.center = function(_) {
      if (!arguments.length) return [ λ * d3_degrees, φ * d3_degrees ];
      λ = _[0] % 360 * d3_radians;
      φ = _[1] % 360 * d3_radians;
      return reset();
    };
    projection.rotate = function(_) {
      if (!arguments.length) return [ δλ * d3_degrees, δφ * d3_degrees, δγ * d3_degrees ];
      δλ = _[0] % 360 * d3_radians;
      δφ = _[1] % 360 * d3_radians;
      δγ = _.length > 2 ? _[2] % 360 * d3_radians : 0;
      return reset();
    };
    d3.rebind(projection, projectResample, "precision");
    function reset() {
      projectRotate = d3_geo_compose(rotate = d3_geo_rotation(δλ, δφ, δγ), project);
      var center = project(λ, φ);
      δx = x - center[0] * k;
      δy = y + center[1] * k;
      return invalidate();
    }
    function invalidate() {
      if (stream) stream.valid = false, stream = null;
      return projection;
    }
    return function() {
      project = projectAt.apply(this, arguments);
      projection.invert = project.invert && invert;
      return reset();
    };
  }
  function d3_geo_projectionRadians(stream) {
    return d3_geo_transformPoint(stream, function(x, y) {
      stream.point(x * d3_radians, y * d3_radians);
    });
  }
  function d3_geo_equirectangular(λ, φ) {
    return [ λ, φ ];
  }
  (d3.geo.equirectangular = function() {
    return d3_geo_projection(d3_geo_equirectangular);
  }).raw = d3_geo_equirectangular.invert = d3_geo_equirectangular;
  d3.geo.rotation = function(rotate) {
    rotate = d3_geo_rotation(rotate[0] % 360 * d3_radians, rotate[1] * d3_radians, rotate.length > 2 ? rotate[2] * d3_radians : 0);
    function forward(coordinates) {
      coordinates = rotate(coordinates[0] * d3_radians, coordinates[1] * d3_radians);
      return coordinates[0] *= d3_degrees, coordinates[1] *= d3_degrees, coordinates;
    }
    forward.invert = function(coordinates) {
      coordinates = rotate.invert(coordinates[0] * d3_radians, coordinates[1] * d3_radians);
      return coordinates[0] *= d3_degrees, coordinates[1] *= d3_degrees, coordinates;
    };
    return forward;
  };
  function d3_geo_identityRotation(λ, φ) {
    return [ λ > π ? λ - τ : λ < -π ? λ + τ : λ, φ ];
  }
  d3_geo_identityRotation.invert = d3_geo_equirectangular;
  function d3_geo_rotation(δλ, δφ, δγ) {
    return δλ ? δφ || δγ ? d3_geo_compose(d3_geo_rotationλ(δλ), d3_geo_rotationφγ(δφ, δγ)) : d3_geo_rotationλ(δλ) : δφ || δγ ? d3_geo_rotationφγ(δφ, δγ) : d3_geo_identityRotation;
  }
  function d3_geo_forwardRotationλ(δλ) {
    return function(λ, φ) {
      return λ += δλ, [ λ > π ? λ - τ : λ < -π ? λ + τ : λ, φ ];
    };
  }
  function d3_geo_rotationλ(δλ) {
    var rotation = d3_geo_forwardRotationλ(δλ);
    rotation.invert = d3_geo_forwardRotationλ(-δλ);
    return rotation;
  }
  function d3_geo_rotationφγ(δφ, δγ) {
    var cosδφ = Math.cos(δφ), sinδφ = Math.sin(δφ), cosδγ = Math.cos(δγ), sinδγ = Math.sin(δγ);
    function rotation(λ, φ) {
      var cosφ = Math.cos(φ), x = Math.cos(λ) * cosφ, y = Math.sin(λ) * cosφ, z = Math.sin(φ), k = z * cosδφ + x * sinδφ;
      return [ Math.atan2(y * cosδγ - k * sinδγ, x * cosδφ - z * sinδφ), d3_asin(k * cosδγ + y * sinδγ) ];
    }
    rotation.invert = function(λ, φ) {
      var cosφ = Math.cos(φ), x = Math.cos(λ) * cosφ, y = Math.sin(λ) * cosφ, z = Math.sin(φ), k = z * cosδγ - y * sinδγ;
      return [ Math.atan2(y * cosδγ + z * sinδγ, x * cosδφ + k * sinδφ), d3_asin(k * cosδφ - x * sinδφ) ];
    };
    return rotation;
  }
  d3.geo.circle = function() {
    var origin = [ 0, 0 ], angle, precision = 6, interpolate;
    function circle() {
      var center = typeof origin === "function" ? origin.apply(this, arguments) : origin, rotate = d3_geo_rotation(-center[0] * d3_radians, -center[1] * d3_radians, 0).invert, ring = [];
      interpolate(null, null, 1, {
        point: function(x, y) {
          ring.push(x = rotate(x, y));
          x[0] *= d3_degrees, x[1] *= d3_degrees;
        }
      });
      return {
        type: "Polygon",
        coordinates: [ ring ]
      };
    }
    circle.origin = function(x) {
      if (!arguments.length) return origin;
      origin = x;
      return circle;
    };
    circle.angle = function(x) {
      if (!arguments.length) return angle;
      interpolate = d3_geo_circleInterpolate((angle = +x) * d3_radians, precision * d3_radians);
      return circle;
    };
    circle.precision = function(_) {
      if (!arguments.length) return precision;
      interpolate = d3_geo_circleInterpolate(angle * d3_radians, (precision = +_) * d3_radians);
      return circle;
    };
    return circle.angle(90);
  };
  function d3_geo_circleInterpolate(radius, precision) {
    var cr = Math.cos(radius), sr = Math.sin(radius);
    return function(from, to, direction, listener) {
      var step = direction * precision;
      if (from != null) {
        from = d3_geo_circleAngle(cr, from);
        to = d3_geo_circleAngle(cr, to);
        if (direction > 0 ? from < to : from > to) from += direction * τ;
      } else {
        from = radius + direction * τ;
        to = radius - .5 * step;
      }
      for (var point, t = from; direction > 0 ? t > to : t < to; t -= step) {
        listener.point((point = d3_geo_spherical([ cr, -sr * Math.cos(t), -sr * Math.sin(t) ]))[0], point[1]);
      }
    };
  }
  function d3_geo_circleAngle(cr, point) {
    var a = d3_geo_cartesian(point);
    a[0] -= cr;
    d3_geo_cartesianNormalize(a);
    var angle = d3_acos(-a[1]);
    return ((-a[2] < 0 ? -angle : angle) + 2 * Math.PI - ε) % (2 * Math.PI);
  }
  d3.geo.distance = function(a, b) {
    var Δλ = (b[0] - a[0]) * d3_radians, φ0 = a[1] * d3_radians, φ1 = b[1] * d3_radians, sinΔλ = Math.sin(Δλ), cosΔλ = Math.cos(Δλ), sinφ0 = Math.sin(φ0), cosφ0 = Math.cos(φ0), sinφ1 = Math.sin(φ1), cosφ1 = Math.cos(φ1), t;
    return Math.atan2(Math.sqrt((t = cosφ1 * sinΔλ) * t + (t = cosφ0 * sinφ1 - sinφ0 * cosφ1 * cosΔλ) * t), sinφ0 * sinφ1 + cosφ0 * cosφ1 * cosΔλ);
  };
  d3.geo.graticule = function() {
    var x1, x0, X1, X0, y1, y0, Y1, Y0, dx = 10, dy = dx, DX = 90, DY = 360, x, y, X, Y, precision = 2.5;
    function graticule() {
      return {
        type: "MultiLineString",
        coordinates: lines()
      };
    }
    function lines() {
      return d3.range(Math.ceil(X0 / DX) * DX, X1, DX).map(X).concat(d3.range(Math.ceil(Y0 / DY) * DY, Y1, DY).map(Y)).concat(d3.range(Math.ceil(x0 / dx) * dx, x1, dx).filter(function(x) {
        return abs(x % DX) > ε;
      }).map(x)).concat(d3.range(Math.ceil(y0 / dy) * dy, y1, dy).filter(function(y) {
        return abs(y % DY) > ε;
      }).map(y));
    }
    graticule.lines = function() {
      return lines().map(function(coordinates) {
        return {
          type: "LineString",
          coordinates: coordinates
        };
      });
    };
    graticule.outline = function() {
      return {
        type: "Polygon",
        coordinates: [ X(X0).concat(Y(Y1).slice(1), X(X1).reverse().slice(1), Y(Y0).reverse().slice(1)) ]
      };
    };
    graticule.extent = function(_) {
      if (!arguments.length) return graticule.minorExtent();
      return graticule.majorExtent(_).minorExtent(_);
    };
    graticule.majorExtent = function(_) {
      if (!arguments.length) return [ [ X0, Y0 ], [ X1, Y1 ] ];
      X0 = +_[0][0], X1 = +_[1][0];
      Y0 = +_[0][1], Y1 = +_[1][1];
      if (X0 > X1) _ = X0, X0 = X1, X1 = _;
      if (Y0 > Y1) _ = Y0, Y0 = Y1, Y1 = _;
      return graticule.precision(precision);
    };
    graticule.minorExtent = function(_) {
      if (!arguments.length) return [ [ x0, y0 ], [ x1, y1 ] ];
      x0 = +_[0][0], x1 = +_[1][0];
      y0 = +_[0][1], y1 = +_[1][1];
      if (x0 > x1) _ = x0, x0 = x1, x1 = _;
      if (y0 > y1) _ = y0, y0 = y1, y1 = _;
      return graticule.precision(precision);
    };
    graticule.step = function(_) {
      if (!arguments.length) return graticule.minorStep();
      return graticule.majorStep(_).minorStep(_);
    };
    graticule.majorStep = function(_) {
      if (!arguments.length) return [ DX, DY ];
      DX = +_[0], DY = +_[1];
      return graticule;
    };
    graticule.minorStep = function(_) {
      if (!arguments.length) return [ dx, dy ];
      dx = +_[0], dy = +_[1];
      return graticule;
    };
    graticule.precision = function(_) {
      if (!arguments.length) return precision;
      precision = +_;
      x = d3_geo_graticuleX(y0, y1, 90);
      y = d3_geo_graticuleY(x0, x1, precision);
      X = d3_geo_graticuleX(Y0, Y1, 90);
      Y = d3_geo_graticuleY(X0, X1, precision);
      return graticule;
    };
    return graticule.majorExtent([ [ -180, -90 + ε ], [ 180, 90 - ε ] ]).minorExtent([ [ -180, -80 - ε ], [ 180, 80 + ε ] ]);
  };
  function d3_geo_graticuleX(y0, y1, dy) {
    var y = d3.range(y0, y1 - ε, dy).concat(y1);
    return function(x) {
      return y.map(function(y) {
        return [ x, y ];
      });
    };
  }
  function d3_geo_graticuleY(x0, x1, dx) {
    var x = d3.range(x0, x1 - ε, dx).concat(x1);
    return function(y) {
      return x.map(function(x) {
        return [ x, y ];
      });
    };
  }
  function d3_source(d) {
    return d.source;
  }
  function d3_target(d) {
    return d.target;
  }
  d3.geo.greatArc = function() {
    var source = d3_source, source_, target = d3_target, target_;
    function greatArc() {
      return {
        type: "LineString",
        coordinates: [ source_ || source.apply(this, arguments), target_ || target.apply(this, arguments) ]
      };
    }
    greatArc.distance = function() {
      return d3.geo.distance(source_ || source.apply(this, arguments), target_ || target.apply(this, arguments));
    };
    greatArc.source = function(_) {
      if (!arguments.length) return source;
      source = _, source_ = typeof _ === "function" ? null : _;
      return greatArc;
    };
    greatArc.target = function(_) {
      if (!arguments.length) return target;
      target = _, target_ = typeof _ === "function" ? null : _;
      return greatArc;
    };
    greatArc.precision = function() {
      return arguments.length ? greatArc : 0;
    };
    return greatArc;
  };
  d3.geo.interpolate = function(source, target) {
    return d3_geo_interpolate(source[0] * d3_radians, source[1] * d3_radians, target[0] * d3_radians, target[1] * d3_radians);
  };
  function d3_geo_interpolate(x0, y0, x1, y1) {
    var cy0 = Math.cos(y0), sy0 = Math.sin(y0), cy1 = Math.cos(y1), sy1 = Math.sin(y1), kx0 = cy0 * Math.cos(x0), ky0 = cy0 * Math.sin(x0), kx1 = cy1 * Math.cos(x1), ky1 = cy1 * Math.sin(x1), d = 2 * Math.asin(Math.sqrt(d3_haversin(y1 - y0) + cy0 * cy1 * d3_haversin(x1 - x0))), k = 1 / Math.sin(d);
    var interpolate = d ? function(t) {
      var B = Math.sin(t *= d) * k, A = Math.sin(d - t) * k, x = A * kx0 + B * kx1, y = A * ky0 + B * ky1, z = A * sy0 + B * sy1;
      return [ Math.atan2(y, x) * d3_degrees, Math.atan2(z, Math.sqrt(x * x + y * y)) * d3_degrees ];
    } : function() {
      return [ x0 * d3_degrees, y0 * d3_degrees ];
    };
    interpolate.distance = d;
    return interpolate;
  }
  d3.geo.length = function(object) {
    d3_geo_lengthSum = 0;
    d3.geo.stream(object, d3_geo_length);
    return d3_geo_lengthSum;
  };
  var d3_geo_lengthSum;
  var d3_geo_length = {
    sphere: d3_noop,
    point: d3_noop,
    lineStart: d3_geo_lengthLineStart,
    lineEnd: d3_noop,
    polygonStart: d3_noop,
    polygonEnd: d3_noop
  };
  function d3_geo_lengthLineStart() {
    var λ0, sinφ0, cosφ0;
    d3_geo_length.point = function(λ, φ) {
      λ0 = λ * d3_radians, sinφ0 = Math.sin(φ *= d3_radians), cosφ0 = Math.cos(φ);
      d3_geo_length.point = nextPoint;
    };
    d3_geo_length.lineEnd = function() {
      d3_geo_length.point = d3_geo_length.lineEnd = d3_noop;
    };
    function nextPoint(λ, φ) {
      var sinφ = Math.sin(φ *= d3_radians), cosφ = Math.cos(φ), t = abs((λ *= d3_radians) - λ0), cosΔλ = Math.cos(t);
      d3_geo_lengthSum += Math.atan2(Math.sqrt((t = cosφ * Math.sin(t)) * t + (t = cosφ0 * sinφ - sinφ0 * cosφ * cosΔλ) * t), sinφ0 * sinφ + cosφ0 * cosφ * cosΔλ);
      λ0 = λ, sinφ0 = sinφ, cosφ0 = cosφ;
    }
  }
  function d3_geo_azimuthal(scale, angle) {
    function azimuthal(λ, φ) {
      var cosλ = Math.cos(λ), cosφ = Math.cos(φ), k = scale(cosλ * cosφ);
      return [ k * cosφ * Math.sin(λ), k * Math.sin(φ) ];
    }
    azimuthal.invert = function(x, y) {
      var ρ = Math.sqrt(x * x + y * y), c = angle(ρ), sinc = Math.sin(c), cosc = Math.cos(c);
      return [ Math.atan2(x * sinc, ρ * cosc), Math.asin(ρ && y * sinc / ρ) ];
    };
    return azimuthal;
  }
  var d3_geo_azimuthalEqualArea = d3_geo_azimuthal(function(cosλcosφ) {
    return Math.sqrt(2 / (1 + cosλcosφ));
  }, function(ρ) {
    return 2 * Math.asin(ρ / 2);
  });
  (d3.geo.azimuthalEqualArea = function() {
    return d3_geo_projection(d3_geo_azimuthalEqualArea);
  }).raw = d3_geo_azimuthalEqualArea;
  var d3_geo_azimuthalEquidistant = d3_geo_azimuthal(function(cosλcosφ) {
    var c = Math.acos(cosλcosφ);
    return c && c / Math.sin(c);
  }, d3_identity);
  (d3.geo.azimuthalEquidistant = function() {
    return d3_geo_projection(d3_geo_azimuthalEquidistant);
  }).raw = d3_geo_azimuthalEquidistant;
  function d3_geo_conicConformal(φ0, φ1) {
    var cosφ0 = Math.cos(φ0), t = function(φ) {
      return Math.tan(π / 4 + φ / 2);
    }, n = φ0 === φ1 ? Math.sin(φ0) : Math.log(cosφ0 / Math.cos(φ1)) / Math.log(t(φ1) / t(φ0)), F = cosφ0 * Math.pow(t(φ0), n) / n;
    if (!n) return d3_geo_mercator;
    function forward(λ, φ) {
      if (F > 0) {
        if (φ < -halfπ + ε) φ = -halfπ + ε;
      } else {
        if (φ > halfπ - ε) φ = halfπ - ε;
      }
      var ρ = F / Math.pow(t(φ), n);
      return [ ρ * Math.sin(n * λ), F - ρ * Math.cos(n * λ) ];
    }
    forward.invert = function(x, y) {
      var ρ0_y = F - y, ρ = d3_sgn(n) * Math.sqrt(x * x + ρ0_y * ρ0_y);
      return [ Math.atan2(x, ρ0_y) / n, 2 * Math.atan(Math.pow(F / ρ, 1 / n)) - halfπ ];
    };
    return forward;
  }
  (d3.geo.conicConformal = function() {
    return d3_geo_conic(d3_geo_conicConformal);
  }).raw = d3_geo_conicConformal;
  function d3_geo_conicEquidistant(φ0, φ1) {
    var cosφ0 = Math.cos(φ0), n = φ0 === φ1 ? Math.sin(φ0) : (cosφ0 - Math.cos(φ1)) / (φ1 - φ0), G = cosφ0 / n + φ0;
    if (abs(n) < ε) return d3_geo_equirectangular;
    function forward(λ, φ) {
      var ρ = G - φ;
      return [ ρ * Math.sin(n * λ), G - ρ * Math.cos(n * λ) ];
    }
    forward.invert = function(x, y) {
      var ρ0_y = G - y;
      return [ Math.atan2(x, ρ0_y) / n, G - d3_sgn(n) * Math.sqrt(x * x + ρ0_y * ρ0_y) ];
    };
    return forward;
  }
  (d3.geo.conicEquidistant = function() {
    return d3_geo_conic(d3_geo_conicEquidistant);
  }).raw = d3_geo_conicEquidistant;
  var d3_geo_gnomonic = d3_geo_azimuthal(function(cosλcosφ) {
    return 1 / cosλcosφ;
  }, Math.atan);
  (d3.geo.gnomonic = function() {
    return d3_geo_projection(d3_geo_gnomonic);
  }).raw = d3_geo_gnomonic;
  function d3_geo_mercator(λ, φ) {
    return [ λ, Math.log(Math.tan(π / 4 + φ / 2)) ];
  }
  d3_geo_mercator.invert = function(x, y) {
    return [ x, 2 * Math.atan(Math.exp(y)) - halfπ ];
  };
  function d3_geo_mercatorProjection(project) {
    var m = d3_geo_projection(project), scale = m.scale, translate = m.translate, clipExtent = m.clipExtent, clipAuto;
    m.scale = function() {
      var v = scale.apply(m, arguments);
      return v === m ? clipAuto ? m.clipExtent(null) : m : v;
    };
    m.translate = function() {
      var v = translate.apply(m, arguments);
      return v === m ? clipAuto ? m.clipExtent(null) : m : v;
    };
    m.clipExtent = function(_) {
      var v = clipExtent.apply(m, arguments);
      if (v === m) {
        if (clipAuto = _ == null) {
          var k = π * scale(), t = translate();
          clipExtent([ [ t[0] - k, t[1] - k ], [ t[0] + k, t[1] + k ] ]);
        }
      } else if (clipAuto) {
        v = null;
      }
      return v;
    };
    return m.clipExtent(null);
  }
  (d3.geo.mercator = function() {
    return d3_geo_mercatorProjection(d3_geo_mercator);
  }).raw = d3_geo_mercator;
  var d3_geo_orthographic = d3_geo_azimuthal(function() {
    return 1;
  }, Math.asin);
  (d3.geo.orthographic = function() {
    return d3_geo_projection(d3_geo_orthographic);
  }).raw = d3_geo_orthographic;
  var d3_geo_stereographic = d3_geo_azimuthal(function(cosλcosφ) {
    return 1 / (1 + cosλcosφ);
  }, function(ρ) {
    return 2 * Math.atan(ρ);
  });
  (d3.geo.stereographic = function() {
    return d3_geo_projection(d3_geo_stereographic);
  }).raw = d3_geo_stereographic;
  function d3_geo_transverseMercator(λ, φ) {
    return [ Math.log(Math.tan(π / 4 + φ / 2)), -λ ];
  }
  d3_geo_transverseMercator.invert = function(x, y) {
    return [ -y, 2 * Math.atan(Math.exp(x)) - halfπ ];
  };
  (d3.geo.transverseMercator = function() {
    var projection = d3_geo_mercatorProjection(d3_geo_transverseMercator), center = projection.center, rotate = projection.rotate;
    projection.center = function(_) {
      return _ ? center([ -_[1], _[0] ]) : (_ = center(), [ _[1], -_[0] ]);
    };
    projection.rotate = function(_) {
      return _ ? rotate([ _[0], _[1], _.length > 2 ? _[2] + 90 : 90 ]) : (_ = rotate(), 
      [ _[0], _[1], _[2] - 90 ]);
    };
    return rotate([ 0, 0, 90 ]);
  }).raw = d3_geo_transverseMercator;
  d3.geom = {};
  function d3_geom_pointX(d) {
    return d[0];
  }
  function d3_geom_pointY(d) {
    return d[1];
  }
  d3.geom.hull = function(vertices) {
    var x = d3_geom_pointX, y = d3_geom_pointY;
    if (arguments.length) return hull(vertices);
    function hull(data) {
      if (data.length < 3) return [];
      var fx = d3_functor(x), fy = d3_functor(y), i, n = data.length, points = [], flippedPoints = [];
      for (i = 0; i < n; i++) {
        points.push([ +fx.call(this, data[i], i), +fy.call(this, data[i], i), i ]);
      }
      points.sort(d3_geom_hullOrder);
      for (i = 0; i < n; i++) flippedPoints.push([ points[i][0], -points[i][1] ]);
      var upper = d3_geom_hullUpper(points), lower = d3_geom_hullUpper(flippedPoints);
      var skipLeft = lower[0] === upper[0], skipRight = lower[lower.length - 1] === upper[upper.length - 1], polygon = [];
      for (i = upper.length - 1; i >= 0; --i) polygon.push(data[points[upper[i]][2]]);
      for (i = +skipLeft; i < lower.length - skipRight; ++i) polygon.push(data[points[lower[i]][2]]);
      return polygon;
    }
    hull.x = function(_) {
      return arguments.length ? (x = _, hull) : x;
    };
    hull.y = function(_) {
      return arguments.length ? (y = _, hull) : y;
    };
    return hull;
  };
  function d3_geom_hullUpper(points) {
    var n = points.length, hull = [ 0, 1 ], hs = 2;
    for (var i = 2; i < n; i++) {
      while (hs > 1 && d3_cross2d(points[hull[hs - 2]], points[hull[hs - 1]], points[i]) <= 0) --hs;
      hull[hs++] = i;
    }
    return hull.slice(0, hs);
  }
  function d3_geom_hullOrder(a, b) {
    return a[0] - b[0] || a[1] - b[1];
  }
  d3.geom.polygon = function(coordinates) {
    d3_subclass(coordinates, d3_geom_polygonPrototype);
    return coordinates;
  };
  var d3_geom_polygonPrototype = d3.geom.polygon.prototype = [];
  d3_geom_polygonPrototype.area = function() {
    var i = -1, n = this.length, a, b = this[n - 1], area = 0;
    while (++i < n) {
      a = b;
      b = this[i];
      area += a[1] * b[0] - a[0] * b[1];
    }
    return area * .5;
  };
  d3_geom_polygonPrototype.centroid = function(k) {
    var i = -1, n = this.length, x = 0, y = 0, a, b = this[n - 1], c;
    if (!arguments.length) k = -1 / (6 * this.area());
    while (++i < n) {
      a = b;
      b = this[i];
      c = a[0] * b[1] - b[0] * a[1];
      x += (a[0] + b[0]) * c;
      y += (a[1] + b[1]) * c;
    }
    return [ x * k, y * k ];
  };
  d3_geom_polygonPrototype.clip = function(subject) {
    var input, closed = d3_geom_polygonClosed(subject), i = -1, n = this.length - d3_geom_polygonClosed(this), j, m, a = this[n - 1], b, c, d;
    while (++i < n) {
      input = subject.slice();
      subject.length = 0;
      b = this[i];
      c = input[(m = input.length - closed) - 1];
      j = -1;
      while (++j < m) {
        d = input[j];
        if (d3_geom_polygonInside(d, a, b)) {
          if (!d3_geom_polygonInside(c, a, b)) {
            subject.push(d3_geom_polygonIntersect(c, d, a, b));
          }
          subject.push(d);
        } else if (d3_geom_polygonInside(c, a, b)) {
          subject.push(d3_geom_polygonIntersect(c, d, a, b));
        }
        c = d;
      }
      if (closed) subject.push(subject[0]);
      a = b;
    }
    return subject;
  };
  function d3_geom_polygonInside(p, a, b) {
    return (b[0] - a[0]) * (p[1] - a[1]) < (b[1] - a[1]) * (p[0] - a[0]);
  }
  function d3_geom_polygonIntersect(c, d, a, b) {
    var x1 = c[0], x3 = a[0], x21 = d[0] - x1, x43 = b[0] - x3, y1 = c[1], y3 = a[1], y21 = d[1] - y1, y43 = b[1] - y3, ua = (x43 * (y1 - y3) - y43 * (x1 - x3)) / (y43 * x21 - x43 * y21);
    return [ x1 + ua * x21, y1 + ua * y21 ];
  }
  function d3_geom_polygonClosed(coordinates) {
    var a = coordinates[0], b = coordinates[coordinates.length - 1];
    return !(a[0] - b[0] || a[1] - b[1]);
  }
  var d3_geom_voronoiEdges, d3_geom_voronoiCells, d3_geom_voronoiBeaches, d3_geom_voronoiBeachPool = [], d3_geom_voronoiFirstCircle, d3_geom_voronoiCircles, d3_geom_voronoiCirclePool = [];
  function d3_geom_voronoiBeach() {
    d3_geom_voronoiRedBlackNode(this);
    this.edge = this.site = this.circle = null;
  }
  function d3_geom_voronoiCreateBeach(site) {
    var beach = d3_geom_voronoiBeachPool.pop() || new d3_geom_voronoiBeach();
    beach.site = site;
    return beach;
  }
  function d3_geom_voronoiDetachBeach(beach) {
    d3_geom_voronoiDetachCircle(beach);
    d3_geom_voronoiBeaches.remove(beach);
    d3_geom_voronoiBeachPool.push(beach);
    d3_geom_voronoiRedBlackNode(beach);
  }
  function d3_geom_voronoiRemoveBeach(beach) {
    var circle = beach.circle, x = circle.x, y = circle.cy, vertex = {
      x: x,
      y: y
    }, previous = beach.P, next = beach.N, disappearing = [ beach ];
    d3_geom_voronoiDetachBeach(beach);
    var lArc = previous;
    while (lArc.circle && abs(x - lArc.circle.x) < ε && abs(y - lArc.circle.cy) < ε) {
      previous = lArc.P;
      disappearing.unshift(lArc);
      d3_geom_voronoiDetachBeach(lArc);
      lArc = previous;
    }
    disappearing.unshift(lArc);
    d3_geom_voronoiDetachCircle(lArc);
    var rArc = next;
    while (rArc.circle && abs(x - rArc.circle.x) < ε && abs(y - rArc.circle.cy) < ε) {
      next = rArc.N;
      disappearing.push(rArc);
      d3_geom_voronoiDetachBeach(rArc);
      rArc = next;
    }
    disappearing.push(rArc);
    d3_geom_voronoiDetachCircle(rArc);
    var nArcs = disappearing.length, iArc;
    for (iArc = 1; iArc < nArcs; ++iArc) {
      rArc = disappearing[iArc];
      lArc = disappearing[iArc - 1];
      d3_geom_voronoiSetEdgeEnd(rArc.edge, lArc.site, rArc.site, vertex);
    }
    lArc = disappearing[0];
    rArc = disappearing[nArcs - 1];
    rArc.edge = d3_geom_voronoiCreateEdge(lArc.site, rArc.site, null, vertex);
    d3_geom_voronoiAttachCircle(lArc);
    d3_geom_voronoiAttachCircle(rArc);
  }
  function d3_geom_voronoiAddBeach(site) {
    var x = site.x, directrix = site.y, lArc, rArc, dxl, dxr, node = d3_geom_voronoiBeaches._;
    while (node) {
      dxl = d3_geom_voronoiLeftBreakPoint(node, directrix) - x;
      if (dxl > ε) node = node.L; else {
        dxr = x - d3_geom_voronoiRightBreakPoint(node, directrix);
        if (dxr > ε) {
          if (!node.R) {
            lArc = node;
            break;
          }
          node = node.R;
        } else {
          if (dxl > -ε) {
            lArc = node.P;
            rArc = node;
          } else if (dxr > -ε) {
            lArc = node;
            rArc = node.N;
          } else {
            lArc = rArc = node;
          }
          break;
        }
      }
    }
    var newArc = d3_geom_voronoiCreateBeach(site);
    d3_geom_voronoiBeaches.insert(lArc, newArc);
    if (!lArc && !rArc) return;
    if (lArc === rArc) {
      d3_geom_voronoiDetachCircle(lArc);
      rArc = d3_geom_voronoiCreateBeach(lArc.site);
      d3_geom_voronoiBeaches.insert(newArc, rArc);
      newArc.edge = rArc.edge = d3_geom_voronoiCreateEdge(lArc.site, newArc.site);
      d3_geom_voronoiAttachCircle(lArc);
      d3_geom_voronoiAttachCircle(rArc);
      return;
    }
    if (!rArc) {
      newArc.edge = d3_geom_voronoiCreateEdge(lArc.site, newArc.site);
      return;
    }
    d3_geom_voronoiDetachCircle(lArc);
    d3_geom_voronoiDetachCircle(rArc);
    var lSite = lArc.site, ax = lSite.x, ay = lSite.y, bx = site.x - ax, by = site.y - ay, rSite = rArc.site, cx = rSite.x - ax, cy = rSite.y - ay, d = 2 * (bx * cy - by * cx), hb = bx * bx + by * by, hc = cx * cx + cy * cy, vertex = {
      x: (cy * hb - by * hc) / d + ax,
      y: (bx * hc - cx * hb) / d + ay
    };
    d3_geom_voronoiSetEdgeEnd(rArc.edge, lSite, rSite, vertex);
    newArc.edge = d3_geom_voronoiCreateEdge(lSite, site, null, vertex);
    rArc.edge = d3_geom_voronoiCreateEdge(site, rSite, null, vertex);
    d3_geom_voronoiAttachCircle(lArc);
    d3_geom_voronoiAttachCircle(rArc);
  }
  function d3_geom_voronoiLeftBreakPoint(arc, directrix) {
    var site = arc.site, rfocx = site.x, rfocy = site.y, pby2 = rfocy - directrix;
    if (!pby2) return rfocx;
    var lArc = arc.P;
    if (!lArc) return -Infinity;
    site = lArc.site;
    var lfocx = site.x, lfocy = site.y, plby2 = lfocy - directrix;
    if (!plby2) return lfocx;
    var hl = lfocx - rfocx, aby2 = 1 / pby2 - 1 / plby2, b = hl / plby2;
    if (aby2) return (-b + Math.sqrt(b * b - 2 * aby2 * (hl * hl / (-2 * plby2) - lfocy + plby2 / 2 + rfocy - pby2 / 2))) / aby2 + rfocx;
    return (rfocx + lfocx) / 2;
  }
  function d3_geom_voronoiRightBreakPoint(arc, directrix) {
    var rArc = arc.N;
    if (rArc) return d3_geom_voronoiLeftBreakPoint(rArc, directrix);
    var site = arc.site;
    return site.y === directrix ? site.x : Infinity;
  }
  function d3_geom_voronoiCell(site) {
    this.site = site;
    this.edges = [];
  }
  d3_geom_voronoiCell.prototype.prepare = function() {
    var halfEdges = this.edges, iHalfEdge = halfEdges.length, edge;
    while (iHalfEdge--) {
      edge = halfEdges[iHalfEdge].edge;
      if (!edge.b || !edge.a) halfEdges.splice(iHalfEdge, 1);
    }
    halfEdges.sort(d3_geom_voronoiHalfEdgeOrder);
    return halfEdges.length;
  };
  function d3_geom_voronoiCloseCells(extent) {
    var x0 = extent[0][0], x1 = extent[1][0], y0 = extent[0][1], y1 = extent[1][1], x2, y2, x3, y3, cells = d3_geom_voronoiCells, iCell = cells.length, cell, iHalfEdge, halfEdges, nHalfEdges, start, end;
    while (iCell--) {
      cell = cells[iCell];
      if (!cell || !cell.prepare()) continue;
      halfEdges = cell.edges;
      nHalfEdges = halfEdges.length;
      iHalfEdge = 0;
      while (iHalfEdge < nHalfEdges) {
        end = halfEdges[iHalfEdge].end(), x3 = end.x, y3 = end.y;
        start = halfEdges[++iHalfEdge % nHalfEdges].start(), x2 = start.x, y2 = start.y;
        if (abs(x3 - x2) > ε || abs(y3 - y2) > ε) {
          halfEdges.splice(iHalfEdge, 0, new d3_geom_voronoiHalfEdge(d3_geom_voronoiCreateBorderEdge(cell.site, end, abs(x3 - x0) < ε && y1 - y3 > ε ? {
            x: x0,
            y: abs(x2 - x0) < ε ? y2 : y1
          } : abs(y3 - y1) < ε && x1 - x3 > ε ? {
            x: abs(y2 - y1) < ε ? x2 : x1,
            y: y1
          } : abs(x3 - x1) < ε && y3 - y0 > ε ? {
            x: x1,
            y: abs(x2 - x1) < ε ? y2 : y0
          } : abs(y3 - y0) < ε && x3 - x0 > ε ? {
            x: abs(y2 - y0) < ε ? x2 : x0,
            y: y0
          } : null), cell.site, null));
          ++nHalfEdges;
        }
      }
    }
  }
  function d3_geom_voronoiHalfEdgeOrder(a, b) {
    return b.angle - a.angle;
  }
  function d3_geom_voronoiCircle() {
    d3_geom_voronoiRedBlackNode(this);
    this.x = this.y = this.arc = this.site = this.cy = null;
  }
  function d3_geom_voronoiAttachCircle(arc) {
    var lArc = arc.P, rArc = arc.N;
    if (!lArc || !rArc) return;
    var lSite = lArc.site, cSite = arc.site, rSite = rArc.site;
    if (lSite === rSite) return;
    var bx = cSite.x, by = cSite.y, ax = lSite.x - bx, ay = lSite.y - by, cx = rSite.x - bx, cy = rSite.y - by;
    var d = 2 * (ax * cy - ay * cx);
    if (d >= -ε2) return;
    var ha = ax * ax + ay * ay, hc = cx * cx + cy * cy, x = (cy * ha - ay * hc) / d, y = (ax * hc - cx * ha) / d, cy = y + by;
    var circle = d3_geom_voronoiCirclePool.pop() || new d3_geom_voronoiCircle();
    circle.arc = arc;
    circle.site = cSite;
    circle.x = x + bx;
    circle.y = cy + Math.sqrt(x * x + y * y);
    circle.cy = cy;
    arc.circle = circle;
    var before = null, node = d3_geom_voronoiCircles._;
    while (node) {
      if (circle.y < node.y || circle.y === node.y && circle.x <= node.x) {
        if (node.L) node = node.L; else {
          before = node.P;
          break;
        }
      } else {
        if (node.R) node = node.R; else {
          before = node;
          break;
        }
      }
    }
    d3_geom_voronoiCircles.insert(before, circle);
    if (!before) d3_geom_voronoiFirstCircle = circle;
  }
  function d3_geom_voronoiDetachCircle(arc) {
    var circle = arc.circle;
    if (circle) {
      if (!circle.P) d3_geom_voronoiFirstCircle = circle.N;
      d3_geom_voronoiCircles.remove(circle);
      d3_geom_voronoiCirclePool.push(circle);
      d3_geom_voronoiRedBlackNode(circle);
      arc.circle = null;
    }
  }
  function d3_geom_voronoiClipEdges(extent) {
    var edges = d3_geom_voronoiEdges, clip = d3_geom_clipLine(extent[0][0], extent[0][1], extent[1][0], extent[1][1]), i = edges.length, e;
    while (i--) {
      e = edges[i];
      if (!d3_geom_voronoiConnectEdge(e, extent) || !clip(e) || abs(e.a.x - e.b.x) < ε && abs(e.a.y - e.b.y) < ε) {
        e.a = e.b = null;
        edges.splice(i, 1);
      }
    }
  }
  function d3_geom_voronoiConnectEdge(edge, extent) {
    var vb = edge.b;
    if (vb) return true;
    var va = edge.a, x0 = extent[0][0], x1 = extent[1][0], y0 = extent[0][1], y1 = extent[1][1], lSite = edge.l, rSite = edge.r, lx = lSite.x, ly = lSite.y, rx = rSite.x, ry = rSite.y, fx = (lx + rx) / 2, fy = (ly + ry) / 2, fm, fb;
    if (ry === ly) {
      if (fx < x0 || fx >= x1) return;
      if (lx > rx) {
        if (!va) va = {
          x: fx,
          y: y0
        }; else if (va.y >= y1) return;
        vb = {
          x: fx,
          y: y1
        };
      } else {
        if (!va) va = {
          x: fx,
          y: y1
        }; else if (va.y < y0) return;
        vb = {
          x: fx,
          y: y0
        };
      }
    } else {
      fm = (lx - rx) / (ry - ly);
      fb = fy - fm * fx;
      if (fm < -1 || fm > 1) {
        if (lx > rx) {
          if (!va) va = {
            x: (y0 - fb) / fm,
            y: y0
          }; else if (va.y >= y1) return;
          vb = {
            x: (y1 - fb) / fm,
            y: y1
          };
        } else {
          if (!va) va = {
            x: (y1 - fb) / fm,
            y: y1
          }; else if (va.y < y0) return;
          vb = {
            x: (y0 - fb) / fm,
            y: y0
          };
        }
      } else {
        if (ly < ry) {
          if (!va) va = {
            x: x0,
            y: fm * x0 + fb
          }; else if (va.x >= x1) return;
          vb = {
            x: x1,
            y: fm * x1 + fb
          };
        } else {
          if (!va) va = {
            x: x1,
            y: fm * x1 + fb
          }; else if (va.x < x0) return;
          vb = {
            x: x0,
            y: fm * x0 + fb
          };
        }
      }
    }
    edge.a = va;
    edge.b = vb;
    return true;
  }
  function d3_geom_voronoiEdge(lSite, rSite) {
    this.l = lSite;
    this.r = rSite;
    this.a = this.b = null;
  }
  function d3_geom_voronoiCreateEdge(lSite, rSite, va, vb) {
    var edge = new d3_geom_voronoiEdge(lSite, rSite);
    d3_geom_voronoiEdges.push(edge);
    if (va) d3_geom_voronoiSetEdgeEnd(edge, lSite, rSite, va);
    if (vb) d3_geom_voronoiSetEdgeEnd(edge, rSite, lSite, vb);
    d3_geom_voronoiCells[lSite.i].edges.push(new d3_geom_voronoiHalfEdge(edge, lSite, rSite));
    d3_geom_voronoiCells[rSite.i].edges.push(new d3_geom_voronoiHalfEdge(edge, rSite, lSite));
    return edge;
  }
  function d3_geom_voronoiCreateBorderEdge(lSite, va, vb) {
    var edge = new d3_geom_voronoiEdge(lSite, null);
    edge.a = va;
    edge.b = vb;
    d3_geom_voronoiEdges.push(edge);
    return edge;
  }
  function d3_geom_voronoiSetEdgeEnd(edge, lSite, rSite, vertex) {
    if (!edge.a && !edge.b) {
      edge.a = vertex;
      edge.l = lSite;
      edge.r = rSite;
    } else if (edge.l === rSite) {
      edge.b = vertex;
    } else {
      edge.a = vertex;
    }
  }
  function d3_geom_voronoiHalfEdge(edge, lSite, rSite) {
    var va = edge.a, vb = edge.b;
    this.edge = edge;
    this.site = lSite;
    this.angle = rSite ? Math.atan2(rSite.y - lSite.y, rSite.x - lSite.x) : edge.l === lSite ? Math.atan2(vb.x - va.x, va.y - vb.y) : Math.atan2(va.x - vb.x, vb.y - va.y);
  }
  d3_geom_voronoiHalfEdge.prototype = {
    start: function() {
      return this.edge.l === this.site ? this.edge.a : this.edge.b;
    },
    end: function() {
      return this.edge.l === this.site ? this.edge.b : this.edge.a;
    }
  };
  function d3_geom_voronoiRedBlackTree() {
    this._ = null;
  }
  function d3_geom_voronoiRedBlackNode(node) {
    node.U = node.C = node.L = node.R = node.P = node.N = null;
  }
  d3_geom_voronoiRedBlackTree.prototype = {
    insert: function(after, node) {
      var parent, grandpa, uncle;
      if (after) {
        node.P = after;
        node.N = after.N;
        if (after.N) after.N.P = node;
        after.N = node;
        if (after.R) {
          after = after.R;
          while (after.L) after = after.L;
          after.L = node;
        } else {
          after.R = node;
        }
        parent = after;
      } else if (this._) {
        after = d3_geom_voronoiRedBlackFirst(this._);
        node.P = null;
        node.N = after;
        after.P = after.L = node;
        parent = after;
      } else {
        node.P = node.N = null;
        this._ = node;
        parent = null;
      }
      node.L = node.R = null;
      node.U = parent;
      node.C = true;
      after = node;
      while (parent && parent.C) {
        grandpa = parent.U;
        if (parent === grandpa.L) {
          uncle = grandpa.R;
          if (uncle && uncle.C) {
            parent.C = uncle.C = false;
            grandpa.C = true;
            after = grandpa;
          } else {
            if (after === parent.R) {
              d3_geom_voronoiRedBlackRotateLeft(this, parent);
              after = parent;
              parent = after.U;
            }
            parent.C = false;
            grandpa.C = true;
            d3_geom_voronoiRedBlackRotateRight(this, grandpa);
          }
        } else {
          uncle = grandpa.L;
          if (uncle && uncle.C) {
            parent.C = uncle.C = false;
            grandpa.C = true;
            after = grandpa;
          } else {
            if (after === parent.L) {
              d3_geom_voronoiRedBlackRotateRight(this, parent);
              after = parent;
              parent = after.U;
            }
            parent.C = false;
            grandpa.C = true;
            d3_geom_voronoiRedBlackRotateLeft(this, grandpa);
          }
        }
        parent = after.U;
      }
      this._.C = false;
    },
    remove: function(node) {
      if (node.N) node.N.P = node.P;
      if (node.P) node.P.N = node.N;
      node.N = node.P = null;
      var parent = node.U, sibling, left = node.L, right = node.R, next, red;
      if (!left) next = right; else if (!right) next = left; else next = d3_geom_voronoiRedBlackFirst(right);
      if (parent) {
        if (parent.L === node) parent.L = next; else parent.R = next;
      } else {
        this._ = next;
      }
      if (left && right) {
        red = next.C;
        next.C = node.C;
        next.L = left;
        left.U = next;
        if (next !== right) {
          parent = next.U;
          next.U = node.U;
          node = next.R;
          parent.L = node;
          next.R = right;
          right.U = next;
        } else {
          next.U = parent;
          parent = next;
          node = next.R;
        }
      } else {
        red = node.C;
        node = next;
      }
      if (node) node.U = parent;
      if (red) return;
      if (node && node.C) {
        node.C = false;
        return;
      }
      do {
        if (node === this._) break;
        if (node === parent.L) {
          sibling = parent.R;
          if (sibling.C) {
            sibling.C = false;
            parent.C = true;
            d3_geom_voronoiRedBlackRotateLeft(this, parent);
            sibling = parent.R;
          }
          if (sibling.L && sibling.L.C || sibling.R && sibling.R.C) {
            if (!sibling.R || !sibling.R.C) {
              sibling.L.C = false;
              sibling.C = true;
              d3_geom_voronoiRedBlackRotateRight(this, sibling);
              sibling = parent.R;
            }
            sibling.C = parent.C;
            parent.C = sibling.R.C = false;
            d3_geom_voronoiRedBlackRotateLeft(this, parent);
            node = this._;
            break;
          }
        } else {
          sibling = parent.L;
          if (sibling.C) {
            sibling.C = false;
            parent.C = true;
            d3_geom_voronoiRedBlackRotateRight(this, parent);
            sibling = parent.L;
          }
          if (sibling.L && sibling.L.C || sibling.R && sibling.R.C) {
            if (!sibling.L || !sibling.L.C) {
              sibling.R.C = false;
              sibling.C = true;
              d3_geom_voronoiRedBlackRotateLeft(this, sibling);
              sibling = parent.L;
            }
            sibling.C = parent.C;
            parent.C = sibling.L.C = false;
            d3_geom_voronoiRedBlackRotateRight(this, parent);
            node = this._;
            break;
          }
        }
        sibling.C = true;
        node = parent;
        parent = parent.U;
      } while (!node.C);
      if (node) node.C = false;
    }
  };
  function d3_geom_voronoiRedBlackRotateLeft(tree, node) {
    var p = node, q = node.R, parent = p.U;
    if (parent) {
      if (parent.L === p) parent.L = q; else parent.R = q;
    } else {
      tree._ = q;
    }
    q.U = parent;
    p.U = q;
    p.R = q.L;
    if (p.R) p.R.U = p;
    q.L = p;
  }
  function d3_geom_voronoiRedBlackRotateRight(tree, node) {
    var p = node, q = node.L, parent = p.U;
    if (parent) {
      if (parent.L === p) parent.L = q; else parent.R = q;
    } else {
      tree._ = q;
    }
    q.U = parent;
    p.U = q;
    p.L = q.R;
    if (p.L) p.L.U = p;
    q.R = p;
  }
  function d3_geom_voronoiRedBlackFirst(node) {
    while (node.L) node = node.L;
    return node;
  }
  function d3_geom_voronoi(sites, bbox) {
    var site = sites.sort(d3_geom_voronoiVertexOrder).pop(), x0, y0, circle;
    d3_geom_voronoiEdges = [];
    d3_geom_voronoiCells = new Array(sites.length);
    d3_geom_voronoiBeaches = new d3_geom_voronoiRedBlackTree();
    d3_geom_voronoiCircles = new d3_geom_voronoiRedBlackTree();
    while (true) {
      circle = d3_geom_voronoiFirstCircle;
      if (site && (!circle || site.y < circle.y || site.y === circle.y && site.x < circle.x)) {
        if (site.x !== x0 || site.y !== y0) {
          d3_geom_voronoiCells[site.i] = new d3_geom_voronoiCell(site);
          d3_geom_voronoiAddBeach(site);
          x0 = site.x, y0 = site.y;
        }
        site = sites.pop();
      } else if (circle) {
        d3_geom_voronoiRemoveBeach(circle.arc);
      } else {
        break;
      }
    }
    if (bbox) d3_geom_voronoiClipEdges(bbox), d3_geom_voronoiCloseCells(bbox);
    var diagram = {
      cells: d3_geom_voronoiCells,
      edges: d3_geom_voronoiEdges
    };
    d3_geom_voronoiBeaches = d3_geom_voronoiCircles = d3_geom_voronoiEdges = d3_geom_voronoiCells = null;
    return diagram;
  }
  function d3_geom_voronoiVertexOrder(a, b) {
    return b.y - a.y || b.x - a.x;
  }
  d3.geom.voronoi = function(points) {
    var x = d3_geom_pointX, y = d3_geom_pointY, fx = x, fy = y, clipExtent = d3_geom_voronoiClipExtent;
    if (points) return voronoi(points);
    function voronoi(data) {
      var polygons = new Array(data.length), x0 = clipExtent[0][0], y0 = clipExtent[0][1], x1 = clipExtent[1][0], y1 = clipExtent[1][1];
      d3_geom_voronoi(sites(data), clipExtent).cells.forEach(function(cell, i) {
        var edges = cell.edges, site = cell.site, polygon = polygons[i] = edges.length ? edges.map(function(e) {
          var s = e.start();
          return [ s.x, s.y ];
        }) : site.x >= x0 && site.x <= x1 && site.y >= y0 && site.y <= y1 ? [ [ x0, y1 ], [ x1, y1 ], [ x1, y0 ], [ x0, y0 ] ] : [];
        polygon.point = data[i];
      });
      return polygons;
    }
    function sites(data) {
      return data.map(function(d, i) {
        return {
          x: Math.round(fx(d, i) / ε) * ε,
          y: Math.round(fy(d, i) / ε) * ε,
          i: i
        };
      });
    }
    voronoi.links = function(data) {
      return d3_geom_voronoi(sites(data)).edges.filter(function(edge) {
        return edge.l && edge.r;
      }).map(function(edge) {
        return {
          source: data[edge.l.i],
          target: data[edge.r.i]
        };
      });
    };
    voronoi.triangles = function(data) {
      var triangles = [];
      d3_geom_voronoi(sites(data)).cells.forEach(function(cell, i) {
        var site = cell.site, edges = cell.edges.sort(d3_geom_voronoiHalfEdgeOrder), j = -1, m = edges.length, e0, s0, e1 = edges[m - 1].edge, s1 = e1.l === site ? e1.r : e1.l;
        while (++j < m) {
          e0 = e1;
          s0 = s1;
          e1 = edges[j].edge;
          s1 = e1.l === site ? e1.r : e1.l;
          if (i < s0.i && i < s1.i && d3_geom_voronoiTriangleArea(site, s0, s1) < 0) {
            triangles.push([ data[i], data[s0.i], data[s1.i] ]);
          }
        }
      });
      return triangles;
    };
    voronoi.x = function(_) {
      return arguments.length ? (fx = d3_functor(x = _), voronoi) : x;
    };
    voronoi.y = function(_) {
      return arguments.length ? (fy = d3_functor(y = _), voronoi) : y;
    };
    voronoi.clipExtent = function(_) {
      if (!arguments.length) return clipExtent === d3_geom_voronoiClipExtent ? null : clipExtent;
      clipExtent = _ == null ? d3_geom_voronoiClipExtent : _;
      return voronoi;
    };
    voronoi.size = function(_) {
      if (!arguments.length) return clipExtent === d3_geom_voronoiClipExtent ? null : clipExtent && clipExtent[1];
      return voronoi.clipExtent(_ && [ [ 0, 0 ], _ ]);
    };
    return voronoi;
  };
  var d3_geom_voronoiClipExtent = [ [ -1e6, -1e6 ], [ 1e6, 1e6 ] ];
  function d3_geom_voronoiTriangleArea(a, b, c) {
    return (a.x - c.x) * (b.y - a.y) - (a.x - b.x) * (c.y - a.y);
  }
  d3.geom.delaunay = function(vertices) {
    return d3.geom.voronoi().triangles(vertices);
  };
  d3.geom.quadtree = function(points, x1, y1, x2, y2) {
    var x = d3_geom_pointX, y = d3_geom_pointY, compat;
    if (compat = arguments.length) {
      x = d3_geom_quadtreeCompatX;
      y = d3_geom_quadtreeCompatY;
      if (compat === 3) {
        y2 = y1;
        x2 = x1;
        y1 = x1 = 0;
      }
      return quadtree(points);
    }
    function quadtree(data) {
      var d, fx = d3_functor(x), fy = d3_functor(y), xs, ys, i, n, x1_, y1_, x2_, y2_;
      if (x1 != null) {
        x1_ = x1, y1_ = y1, x2_ = x2, y2_ = y2;
      } else {
        x2_ = y2_ = -(x1_ = y1_ = Infinity);
        xs = [], ys = [];
        n = data.length;
        if (compat) for (i = 0; i < n; ++i) {
          d = data[i];
          if (d.x < x1_) x1_ = d.x;
          if (d.y < y1_) y1_ = d.y;
          if (d.x > x2_) x2_ = d.x;
          if (d.y > y2_) y2_ = d.y;
          xs.push(d.x);
          ys.push(d.y);
        } else for (i = 0; i < n; ++i) {
          var x_ = +fx(d = data[i], i), y_ = +fy(d, i);
          if (x_ < x1_) x1_ = x_;
          if (y_ < y1_) y1_ = y_;
          if (x_ > x2_) x2_ = x_;
          if (y_ > y2_) y2_ = y_;
          xs.push(x_);
          ys.push(y_);
        }
      }
      var dx = x2_ - x1_, dy = y2_ - y1_;
      if (dx > dy) y2_ = y1_ + dx; else x2_ = x1_ + dy;
      function insert(n, d, x, y, x1, y1, x2, y2) {
        if (isNaN(x) || isNaN(y)) return;
        if (n.leaf) {
          var nx = n.x, ny = n.y;
          if (nx != null) {
            if (abs(nx - x) + abs(ny - y) < .01) {
              insertChild(n, d, x, y, x1, y1, x2, y2);
            } else {
              var nPoint = n.point;
              n.x = n.y = n.point = null;
              insertChild(n, nPoint, nx, ny, x1, y1, x2, y2);
              insertChild(n, d, x, y, x1, y1, x2, y2);
            }
          } else {
            n.x = x, n.y = y, n.point = d;
          }
        } else {
          insertChild(n, d, x, y, x1, y1, x2, y2);
        }
      }
      function insertChild(n, d, x, y, x1, y1, x2, y2) {
        var xm = (x1 + x2) * .5, ym = (y1 + y2) * .5, right = x >= xm, below = y >= ym, i = below << 1 | right;
        n.leaf = false;
        n = n.nodes[i] || (n.nodes[i] = d3_geom_quadtreeNode());
        if (right) x1 = xm; else x2 = xm;
        if (below) y1 = ym; else y2 = ym;
        insert(n, d, x, y, x1, y1, x2, y2);
      }
      var root = d3_geom_quadtreeNode();
      root.add = function(d) {
        insert(root, d, +fx(d, ++i), +fy(d, i), x1_, y1_, x2_, y2_);
      };
      root.visit = function(f) {
        d3_geom_quadtreeVisit(f, root, x1_, y1_, x2_, y2_);
      };
      root.find = function(point) {
        return d3_geom_quadtreeFind(root, point[0], point[1], x1_, y1_, x2_, y2_);
      };
      i = -1;
      if (x1 == null) {
        while (++i < n) {
          insert(root, data[i], xs[i], ys[i], x1_, y1_, x2_, y2_);
        }
        --i;
      } else data.forEach(root.add);
      xs = ys = data = d = null;
      return root;
    }
    quadtree.x = function(_) {
      return arguments.length ? (x = _, quadtree) : x;
    };
    quadtree.y = function(_) {
      return arguments.length ? (y = _, quadtree) : y;
    };
    quadtree.extent = function(_) {
      if (!arguments.length) return x1 == null ? null : [ [ x1, y1 ], [ x2, y2 ] ];
      if (_ == null) x1 = y1 = x2 = y2 = null; else x1 = +_[0][0], y1 = +_[0][1], x2 = +_[1][0], 
      y2 = +_[1][1];
      return quadtree;
    };
    quadtree.size = function(_) {
      if (!arguments.length) return x1 == null ? null : [ x2 - x1, y2 - y1 ];
      if (_ == null) x1 = y1 = x2 = y2 = null; else x1 = y1 = 0, x2 = +_[0], y2 = +_[1];
      return quadtree;
    };
    return quadtree;
  };
  function d3_geom_quadtreeCompatX(d) {
    return d.x;
  }
  function d3_geom_quadtreeCompatY(d) {
    return d.y;
  }
  function d3_geom_quadtreeNode() {
    return {
      leaf: true,
      nodes: [],
      point: null,
      x: null,
      y: null
    };
  }
  function d3_geom_quadtreeVisit(f, node, x1, y1, x2, y2) {
    if (!f(node, x1, y1, x2, y2)) {
      var sx = (x1 + x2) * .5, sy = (y1 + y2) * .5, children = node.nodes;
      if (children[0]) d3_geom_quadtreeVisit(f, children[0], x1, y1, sx, sy);
      if (children[1]) d3_geom_quadtreeVisit(f, children[1], sx, y1, x2, sy);
      if (children[2]) d3_geom_quadtreeVisit(f, children[2], x1, sy, sx, y2);
      if (children[3]) d3_geom_quadtreeVisit(f, children[3], sx, sy, x2, y2);
    }
  }
  function d3_geom_quadtreeFind(root, x, y, x0, y0, x3, y3) {
    var minDistance2 = Infinity, closestPoint;
    (function find(node, x1, y1, x2, y2) {
      if (x1 > x3 || y1 > y3 || x2 < x0 || y2 < y0) return;
      if (point = node.point) {
        var point, dx = x - node.x, dy = y - node.y, distance2 = dx * dx + dy * dy;
        if (distance2 < minDistance2) {
          var distance = Math.sqrt(minDistance2 = distance2);
          x0 = x - distance, y0 = y - distance;
          x3 = x + distance, y3 = y + distance;
          closestPoint = point;
        }
      }
      var children = node.nodes, xm = (x1 + x2) * .5, ym = (y1 + y2) * .5, right = x >= xm, below = y >= ym;
      for (var i = below << 1 | right, j = i + 4; i < j; ++i) {
        if (node = children[i & 3]) switch (i & 3) {
         case 0:
          find(node, x1, y1, xm, ym);
          break;

         case 1:
          find(node, xm, y1, x2, ym);
          break;

         case 2:
          find(node, x1, ym, xm, y2);
          break;

         case 3:
          find(node, xm, ym, x2, y2);
          break;
        }
      }
    })(root, x0, y0, x3, y3);
    return closestPoint;
  }
  d3.interpolateRgb = d3_interpolateRgb;
  function d3_interpolateRgb(a, b) {
    a = d3.rgb(a);
    b = d3.rgb(b);
    var ar = a.r, ag = a.g, ab = a.b, br = b.r - ar, bg = b.g - ag, bb = b.b - ab;
    return function(t) {
      return "#" + d3_rgb_hex(Math.round(ar + br * t)) + d3_rgb_hex(Math.round(ag + bg * t)) + d3_rgb_hex(Math.round(ab + bb * t));
    };
  }
  d3.interpolateObject = d3_interpolateObject;
  function d3_interpolateObject(a, b) {
    var i = {}, c = {}, k;
    for (k in a) {
      if (k in b) {
        i[k] = d3_interpolate(a[k], b[k]);
      } else {
        c[k] = a[k];
      }
    }
    for (k in b) {
      if (!(k in a)) {
        c[k] = b[k];
      }
    }
    return function(t) {
      for (k in i) c[k] = i[k](t);
      return c;
    };
  }
  d3.interpolateNumber = d3_interpolateNumber;
  function d3_interpolateNumber(a, b) {
    a = +a, b = +b;
    return function(t) {
      return a * (1 - t) + b * t;
    };
  }
  d3.interpolateString = d3_interpolateString;
  function d3_interpolateString(a, b) {
    var bi = d3_interpolate_numberA.lastIndex = d3_interpolate_numberB.lastIndex = 0, am, bm, bs, i = -1, s = [], q = [];
    a = a + "", b = b + "";
    while ((am = d3_interpolate_numberA.exec(a)) && (bm = d3_interpolate_numberB.exec(b))) {
      if ((bs = bm.index) > bi) {
        bs = b.slice(bi, bs);
        if (s[i]) s[i] += bs; else s[++i] = bs;
      }
      if ((am = am[0]) === (bm = bm[0])) {
        if (s[i]) s[i] += bm; else s[++i] = bm;
      } else {
        s[++i] = null;
        q.push({
          i: i,
          x: d3_interpolateNumber(am, bm)
        });
      }
      bi = d3_interpolate_numberB.lastIndex;
    }
    if (bi < b.length) {
      bs = b.slice(bi);
      if (s[i]) s[i] += bs; else s[++i] = bs;
    }
    return s.length < 2 ? q[0] ? (b = q[0].x, function(t) {
      return b(t) + "";
    }) : function() {
      return b;
    } : (b = q.length, function(t) {
      for (var i = 0, o; i < b; ++i) s[(o = q[i]).i] = o.x(t);
      return s.join("");
    });
  }
  var d3_interpolate_numberA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, d3_interpolate_numberB = new RegExp(d3_interpolate_numberA.source, "g");
  d3.interpolate = d3_interpolate;
  function d3_interpolate(a, b) {
    var i = d3.interpolators.length, f;
    while (--i >= 0 && !(f = d3.interpolators[i](a, b))) ;
    return f;
  }
  d3.interpolators = [ function(a, b) {
    var t = typeof b;
    return (t === "string" ? d3_rgb_names.has(b.toLowerCase()) || /^(#|rgb\(|hsl\()/i.test(b) ? d3_interpolateRgb : d3_interpolateString : b instanceof d3_color ? d3_interpolateRgb : Array.isArray(b) ? d3_interpolateArray : t === "object" && isNaN(b) ? d3_interpolateObject : d3_interpolateNumber)(a, b);
  } ];
  d3.interpolateArray = d3_interpolateArray;
  function d3_interpolateArray(a, b) {
    var x = [], c = [], na = a.length, nb = b.length, n0 = Math.min(a.length, b.length), i;
    for (i = 0; i < n0; ++i) x.push(d3_interpolate(a[i], b[i]));
    for (;i < na; ++i) c[i] = a[i];
    for (;i < nb; ++i) c[i] = b[i];
    return function(t) {
      for (i = 0; i < n0; ++i) c[i] = x[i](t);
      return c;
    };
  }
  var d3_ease_default = function() {
    return d3_identity;
  };
  var d3_ease = d3.map({
    linear: d3_ease_default,
    poly: d3_ease_poly,
    quad: function() {
      return d3_ease_quad;
    },
    cubic: function() {
      return d3_ease_cubic;
    },
    sin: function() {
      return d3_ease_sin;
    },
    exp: function() {
      return d3_ease_exp;
    },
    circle: function() {
      return d3_ease_circle;
    },
    elastic: d3_ease_elastic,
    back: d3_ease_back,
    bounce: function() {
      return d3_ease_bounce;
    }
  });
  var d3_ease_mode = d3.map({
    "in": d3_identity,
    out: d3_ease_reverse,
    "in-out": d3_ease_reflect,
    "out-in": function(f) {
      return d3_ease_reflect(d3_ease_reverse(f));
    }
  });
  d3.ease = function(name) {
    var i = name.indexOf("-"), t = i >= 0 ? name.slice(0, i) : name, m = i >= 0 ? name.slice(i + 1) : "in";
    t = d3_ease.get(t) || d3_ease_default;
    m = d3_ease_mode.get(m) || d3_identity;
    return d3_ease_clamp(m(t.apply(null, d3_arraySlice.call(arguments, 1))));
  };
  function d3_ease_clamp(f) {
    return function(t) {
      return t <= 0 ? 0 : t >= 1 ? 1 : f(t);
    };
  }
  function d3_ease_reverse(f) {
    return function(t) {
      return 1 - f(1 - t);
    };
  }
  function d3_ease_reflect(f) {
    return function(t) {
      return .5 * (t < .5 ? f(2 * t) : 2 - f(2 - 2 * t));
    };
  }
  function d3_ease_quad(t) {
    return t * t;
  }
  function d3_ease_cubic(t) {
    return t * t * t;
  }
  function d3_ease_cubicInOut(t) {
    if (t <= 0) return 0;
    if (t >= 1) return 1;
    var t2 = t * t, t3 = t2 * t;
    return 4 * (t < .5 ? t3 : 3 * (t - t2) + t3 - .75);
  }
  function d3_ease_poly(e) {
    return function(t) {
      return Math.pow(t, e);
    };
  }
  function d3_ease_sin(t) {
    return 1 - Math.cos(t * halfπ);
  }
  function d3_ease_exp(t) {
    return Math.pow(2, 10 * (t - 1));
  }
  function d3_ease_circle(t) {
    return 1 - Math.sqrt(1 - t * t);
  }
  function d3_ease_elastic(a, p) {
    var s;
    if (arguments.length < 2) p = .45;
    if (arguments.length) s = p / τ * Math.asin(1 / a); else a = 1, s = p / 4;
    return function(t) {
      return 1 + a * Math.pow(2, -10 * t) * Math.sin((t - s) * τ / p);
    };
  }
  function d3_ease_back(s) {
    if (!s) s = 1.70158;
    return function(t) {
      return t * t * ((s + 1) * t - s);
    };
  }
  function d3_ease_bounce(t) {
    return t < 1 / 2.75 ? 7.5625 * t * t : t < 2 / 2.75 ? 7.5625 * (t -= 1.5 / 2.75) * t + .75 : t < 2.5 / 2.75 ? 7.5625 * (t -= 2.25 / 2.75) * t + .9375 : 7.5625 * (t -= 2.625 / 2.75) * t + .984375;
  }
  d3.interpolateHcl = d3_interpolateHcl;
  function d3_interpolateHcl(a, b) {
    a = d3.hcl(a);
    b = d3.hcl(b);
    var ah = a.h, ac = a.c, al = a.l, bh = b.h - ah, bc = b.c - ac, bl = b.l - al;
    if (isNaN(bc)) bc = 0, ac = isNaN(ac) ? b.c : ac;
    if (isNaN(bh)) bh = 0, ah = isNaN(ah) ? b.h : ah; else if (bh > 180) bh -= 360; else if (bh < -180) bh += 360;
    return function(t) {
      return d3_hcl_lab(ah + bh * t, ac + bc * t, al + bl * t) + "";
    };
  }
  d3.interpolateHsl = d3_interpolateHsl;
  function d3_interpolateHsl(a, b) {
    a = d3.hsl(a);
    b = d3.hsl(b);
    var ah = a.h, as = a.s, al = a.l, bh = b.h - ah, bs = b.s - as, bl = b.l - al;
    if (isNaN(bs)) bs = 0, as = isNaN(as) ? b.s : as;
    if (isNaN(bh)) bh = 0, ah = isNaN(ah) ? b.h : ah; else if (bh > 180) bh -= 360; else if (bh < -180) bh += 360;
    return function(t) {
      return d3_hsl_rgb(ah + bh * t, as + bs * t, al + bl * t) + "";
    };
  }
  d3.interpolateLab = d3_interpolateLab;
  function d3_interpolateLab(a, b) {
    a = d3.lab(a);
    b = d3.lab(b);
    var al = a.l, aa = a.a, ab = a.b, bl = b.l - al, ba = b.a - aa, bb = b.b - ab;
    return function(t) {
      return d3_lab_rgb(al + bl * t, aa + ba * t, ab + bb * t) + "";
    };
  }
  d3.interpolateRound = d3_interpolateRound;
  function d3_interpolateRound(a, b) {
    b -= a;
    return function(t) {
      return Math.round(a + b * t);
    };
  }
  d3.transform = function(string) {
    var g = d3_document.createElementNS(d3.ns.prefix.svg, "g");
    return (d3.transform = function(string) {
      if (string != null) {
        g.setAttribute("transform", string);
        var t = g.transform.baseVal.consolidate();
      }
      return new d3_transform(t ? t.matrix : d3_transformIdentity);
    })(string);
  };
  function d3_transform(m) {
    var r0 = [ m.a, m.b ], r1 = [ m.c, m.d ], kx = d3_transformNormalize(r0), kz = d3_transformDot(r0, r1), ky = d3_transformNormalize(d3_transformCombine(r1, r0, -kz)) || 0;
    if (r0[0] * r1[1] < r1[0] * r0[1]) {
      r0[0] *= -1;
      r0[1] *= -1;
      kx *= -1;
      kz *= -1;
    }
    this.rotate = (kx ? Math.atan2(r0[1], r0[0]) : Math.atan2(-r1[0], r1[1])) * d3_degrees;
    this.translate = [ m.e, m.f ];
    this.scale = [ kx, ky ];
    this.skew = ky ? Math.atan2(kz, ky) * d3_degrees : 0;
  }
  d3_transform.prototype.toString = function() {
    return "translate(" + this.translate + ")rotate(" + this.rotate + ")skewX(" + this.skew + ")scale(" + this.scale + ")";
  };
  function d3_transformDot(a, b) {
    return a[0] * b[0] + a[1] * b[1];
  }
  function d3_transformNormalize(a) {
    var k = Math.sqrt(d3_transformDot(a, a));
    if (k) {
      a[0] /= k;
      a[1] /= k;
    }
    return k;
  }
  function d3_transformCombine(a, b, k) {
    a[0] += k * b[0];
    a[1] += k * b[1];
    return a;
  }
  var d3_transformIdentity = {
    a: 1,
    b: 0,
    c: 0,
    d: 1,
    e: 0,
    f: 0
  };
  d3.interpolateTransform = d3_interpolateTransform;
  function d3_interpolateTransformPop(s) {
    return s.length ? s.pop() + "," : "";
  }
  function d3_interpolateTranslate(ta, tb, s, q) {
    if (ta[0] !== tb[0] || ta[1] !== tb[1]) {
      var i = s.push("translate(", null, ",", null, ")");
      q.push({
        i: i - 4,
        x: d3_interpolateNumber(ta[0], tb[0])
      }, {
        i: i - 2,
        x: d3_interpolateNumber(ta[1], tb[1])
      });
    } else if (tb[0] || tb[1]) {
      s.push("translate(" + tb + ")");
    }
  }
  function d3_interpolateRotate(ra, rb, s, q) {
    if (ra !== rb) {
      if (ra - rb > 180) rb += 360; else if (rb - ra > 180) ra += 360;
      q.push({
        i: s.push(d3_interpolateTransformPop(s) + "rotate(", null, ")") - 2,
        x: d3_interpolateNumber(ra, rb)
      });
    } else if (rb) {
      s.push(d3_interpolateTransformPop(s) + "rotate(" + rb + ")");
    }
  }
  function d3_interpolateSkew(wa, wb, s, q) {
    if (wa !== wb) {
      q.push({
        i: s.push(d3_interpolateTransformPop(s) + "skewX(", null, ")") - 2,
        x: d3_interpolateNumber(wa, wb)
      });
    } else if (wb) {
      s.push(d3_interpolateTransformPop(s) + "skewX(" + wb + ")");
    }
  }
  function d3_interpolateScale(ka, kb, s, q) {
    if (ka[0] !== kb[0] || ka[1] !== kb[1]) {
      var i = s.push(d3_interpolateTransformPop(s) + "scale(", null, ",", null, ")");
      q.push({
        i: i - 4,
        x: d3_interpolateNumber(ka[0], kb[0])
      }, {
        i: i - 2,
        x: d3_interpolateNumber(ka[1], kb[1])
      });
    } else if (kb[0] !== 1 || kb[1] !== 1) {
      s.push(d3_interpolateTransformPop(s) + "scale(" + kb + ")");
    }
  }
  function d3_interpolateTransform(a, b) {
    var s = [], q = [];
    a = d3.transform(a), b = d3.transform(b);
    d3_interpolateTranslate(a.translate, b.translate, s, q);
    d3_interpolateRotate(a.rotate, b.rotate, s, q);
    d3_interpolateSkew(a.skew, b.skew, s, q);
    d3_interpolateScale(a.scale, b.scale, s, q);
    a = b = null;
    return function(t) {
      var i = -1, n = q.length, o;
      while (++i < n) s[(o = q[i]).i] = o.x(t);
      return s.join("");
    };
  }
  function d3_uninterpolateNumber(a, b) {
    b = (b -= a = +a) || 1 / b;
    return function(x) {
      return (x - a) / b;
    };
  }
  function d3_uninterpolateClamp(a, b) {
    b = (b -= a = +a) || 1 / b;
    return function(x) {
      return Math.max(0, Math.min(1, (x - a) / b));
    };
  }
  d3.layout = {};
  d3.layout.bundle = function() {
    return function(links) {
      var paths = [], i = -1, n = links.length;
      while (++i < n) paths.push(d3_layout_bundlePath(links[i]));
      return paths;
    };
  };
  function d3_layout_bundlePath(link) {
    var start = link.source, end = link.target, lca = d3_layout_bundleLeastCommonAncestor(start, end), points = [ start ];
    while (start !== lca) {
      start = start.parent;
      points.push(start);
    }
    var k = points.length;
    while (end !== lca) {
      points.splice(k, 0, end);
      end = end.parent;
    }
    return points;
  }
  function d3_layout_bundleAncestors(node) {
    var ancestors = [], parent = node.parent;
    while (parent != null) {
      ancestors.push(node);
      node = parent;
      parent = parent.parent;
    }
    ancestors.push(node);
    return ancestors;
  }
  function d3_layout_bundleLeastCommonAncestor(a, b) {
    if (a === b) return a;
    var aNodes = d3_layout_bundleAncestors(a), bNodes = d3_layout_bundleAncestors(b), aNode = aNodes.pop(), bNode = bNodes.pop(), sharedNode = null;
    while (aNode === bNode) {
      sharedNode = aNode;
      aNode = aNodes.pop();
      bNode = bNodes.pop();
    }
    return sharedNode;
  }
  d3.layout.chord = function() {
    var chord = {}, chords, groups, matrix, n, padding = 0, sortGroups, sortSubgroups, sortChords;
    function relayout() {
      var subgroups = {}, groupSums = [], groupIndex = d3.range(n), subgroupIndex = [], k, x, x0, i, j;
      chords = [];
      groups = [];
      k = 0, i = -1;
      while (++i < n) {
        x = 0, j = -1;
        while (++j < n) {
          x += matrix[i][j];
        }
        groupSums.push(x);
        subgroupIndex.push(d3.range(n));
        k += x;
      }
      if (sortGroups) {
        groupIndex.sort(function(a, b) {
          return sortGroups(groupSums[a], groupSums[b]);
        });
      }
      if (sortSubgroups) {
        subgroupIndex.forEach(function(d, i) {
          d.sort(function(a, b) {
            return sortSubgroups(matrix[i][a], matrix[i][b]);
          });
        });
      }
      k = (τ - padding * n) / k;
      x = 0, i = -1;
      while (++i < n) {
        x0 = x, j = -1;
        while (++j < n) {
          var di = groupIndex[i], dj = subgroupIndex[di][j], v = matrix[di][dj], a0 = x, a1 = x += v * k;
          subgroups[di + "-" + dj] = {
            index: di,
            subindex: dj,
            startAngle: a0,
            endAngle: a1,
            value: v
          };
        }
        groups[di] = {
          index: di,
          startAngle: x0,
          endAngle: x,
          value: groupSums[di]
        };
        x += padding;
      }
      i = -1;
      while (++i < n) {
        j = i - 1;
        while (++j < n) {
          var source = subgroups[i + "-" + j], target = subgroups[j + "-" + i];
          if (source.value || target.value) {
            chords.push(source.value < target.value ? {
              source: target,
              target: source
            } : {
              source: source,
              target: target
            });
          }
        }
      }
      if (sortChords) resort();
    }
    function resort() {
      chords.sort(function(a, b) {
        return sortChords((a.source.value + a.target.value) / 2, (b.source.value + b.target.value) / 2);
      });
    }
    chord.matrix = function(x) {
      if (!arguments.length) return matrix;
      n = (matrix = x) && matrix.length;
      chords = groups = null;
      return chord;
    };
    chord.padding = function(x) {
      if (!arguments.length) return padding;
      padding = x;
      chords = groups = null;
      return chord;
    };
    chord.sortGroups = function(x) {
      if (!arguments.length) return sortGroups;
      sortGroups = x;
      chords = groups = null;
      return chord;
    };
    chord.sortSubgroups = function(x) {
      if (!arguments.length) return sortSubgroups;
      sortSubgroups = x;
      chords = null;
      return chord;
    };
    chord.sortChords = function(x) {
      if (!arguments.length) return sortChords;
      sortChords = x;
      if (chords) resort();
      return chord;
    };
    chord.chords = function() {
      if (!chords) relayout();
      return chords;
    };
    chord.groups = function() {
      if (!groups) relayout();
      return groups;
    };
    return chord;
  };
  d3.layout.force = function() {
    var force = {}, event = d3.dispatch("start", "tick", "end"), timer, size = [ 1, 1 ], drag, alpha, friction = .9, linkDistance = d3_layout_forceLinkDistance, linkStrength = d3_layout_forceLinkStrength, charge = -30, chargeDistance2 = d3_layout_forceChargeDistance2, gravity = .1, theta2 = .64, nodes = [], links = [], distances, strengths, charges;
    function repulse(node) {
      return function(quad, x1, _, x2) {
        if (quad.point !== node) {
          var dx = quad.cx - node.x, dy = quad.cy - node.y, dw = x2 - x1, dn = dx * dx + dy * dy;
          if (dw * dw / theta2 < dn) {
            if (dn < chargeDistance2) {
              var k = quad.charge / dn;
              node.px -= dx * k;
              node.py -= dy * k;
            }
            return true;
          }
          if (quad.point && dn && dn < chargeDistance2) {
            var k = quad.pointCharge / dn;
            node.px -= dx * k;
            node.py -= dy * k;
          }
        }
        return !quad.charge;
      };
    }
    force.tick = function() {
      if ((alpha *= .99) < .005) {
        timer = null;
        event.end({
          type: "end",
          alpha: alpha = 0
        });
        return true;
      }
      var n = nodes.length, m = links.length, q, i, o, s, t, l, k, x, y;
      for (i = 0; i < m; ++i) {
        o = links[i];
        s = o.source;
        t = o.target;
        x = t.x - s.x;
        y = t.y - s.y;
        if (l = x * x + y * y) {
          l = alpha * strengths[i] * ((l = Math.sqrt(l)) - distances[i]) / l;
          x *= l;
          y *= l;
          t.x -= x * (k = s.weight + t.weight ? s.weight / (s.weight + t.weight) : .5);
          t.y -= y * k;
          s.x += x * (k = 1 - k);
          s.y += y * k;
        }
      }
      if (k = alpha * gravity) {
        x = size[0] / 2;
        y = size[1] / 2;
        i = -1;
        if (k) while (++i < n) {
          o = nodes[i];
          o.x += (x - o.x) * k;
          o.y += (y - o.y) * k;
        }
      }
      if (charge) {
        d3_layout_forceAccumulate(q = d3.geom.quadtree(nodes), alpha, charges);
        i = -1;
        while (++i < n) {
          if (!(o = nodes[i]).fixed) {
            q.visit(repulse(o));
          }
        }
      }
      i = -1;
      while (++i < n) {
        o = nodes[i];
        if (o.fixed) {
          o.x = o.px;
          o.y = o.py;
        } else {
          o.x -= (o.px - (o.px = o.x)) * friction;
          o.y -= (o.py - (o.py = o.y)) * friction;
        }
      }
      event.tick({
        type: "tick",
        alpha: alpha
      });
    };
    force.nodes = function(x) {
      if (!arguments.length) return nodes;
      nodes = x;
      return force;
    };
    force.links = function(x) {
      if (!arguments.length) return links;
      links = x;
      return force;
    };
    force.size = function(x) {
      if (!arguments.length) return size;
      size = x;
      return force;
    };
    force.linkDistance = function(x) {
      if (!arguments.length) return linkDistance;
      linkDistance = typeof x === "function" ? x : +x;
      return force;
    };
    force.distance = force.linkDistance;
    force.linkStrength = function(x) {
      if (!arguments.length) return linkStrength;
      linkStrength = typeof x === "function" ? x : +x;
      return force;
    };
    force.friction = function(x) {
      if (!arguments.length) return friction;
      friction = +x;
      return force;
    };
    force.charge = function(x) {
      if (!arguments.length) return charge;
      charge = typeof x === "function" ? x : +x;
      return force;
    };
    force.chargeDistance = function(x) {
      if (!arguments.length) return Math.sqrt(chargeDistance2);
      chargeDistance2 = x * x;
      return force;
    };
    force.gravity = function(x) {
      if (!arguments.length) return gravity;
      gravity = +x;
      return force;
    };
    force.theta = function(x) {
      if (!arguments.length) return Math.sqrt(theta2);
      theta2 = x * x;
      return force;
    };
    force.alpha = function(x) {
      if (!arguments.length) return alpha;
      x = +x;
      if (alpha) {
        if (x > 0) {
          alpha = x;
        } else {
          timer.c = null, timer.t = NaN, timer = null;
          event.end({
            type: "end",
            alpha: alpha = 0
          });
        }
      } else if (x > 0) {
        event.start({
          type: "start",
          alpha: alpha = x
        });
        timer = d3_timer(force.tick);
      }
      return force;
    };
    force.start = function() {
      var i, n = nodes.length, m = links.length, w = size[0], h = size[1], neighbors, o;
      for (i = 0; i < n; ++i) {
        (o = nodes[i]).index = i;
        o.weight = 0;
      }
      for (i = 0; i < m; ++i) {
        o = links[i];
        if (typeof o.source == "number") o.source = nodes[o.source];
        if (typeof o.target == "number") o.target = nodes[o.target];
        ++o.source.weight;
        ++o.target.weight;
      }
      for (i = 0; i < n; ++i) {
        o = nodes[i];
        if (isNaN(o.x)) o.x = position("x", w);
        if (isNaN(o.y)) o.y = position("y", h);
        if (isNaN(o.px)) o.px = o.x;
        if (isNaN(o.py)) o.py = o.y;
      }
      distances = [];
      if (typeof linkDistance === "function") for (i = 0; i < m; ++i) distances[i] = +linkDistance.call(this, links[i], i); else for (i = 0; i < m; ++i) distances[i] = linkDistance;
      strengths = [];
      if (typeof linkStrength === "function") for (i = 0; i < m; ++i) strengths[i] = +linkStrength.call(this, links[i], i); else for (i = 0; i < m; ++i) strengths[i] = linkStrength;
      charges = [];
      if (typeof charge === "function") for (i = 0; i < n; ++i) charges[i] = +charge.call(this, nodes[i], i); else for (i = 0; i < n; ++i) charges[i] = charge;
      function position(dimension, size) {
        if (!neighbors) {
          neighbors = new Array(n);
          for (j = 0; j < n; ++j) {
            neighbors[j] = [];
          }
          for (j = 0; j < m; ++j) {
            var o = links[j];
            neighbors[o.source.index].push(o.target);
            neighbors[o.target.index].push(o.source);
          }
        }
        var candidates = neighbors[i], j = -1, l = candidates.length, x;
        while (++j < l) if (!isNaN(x = candidates[j][dimension])) return x;
        return Math.random() * size;
      }
      return force.resume();
    };
    force.resume = function() {
      return force.alpha(.1);
    };
    force.stop = function() {
      return force.alpha(0);
    };
    force.drag = function() {
      if (!drag) drag = d3.behavior.drag().origin(d3_identity).on("dragstart.force", d3_layout_forceDragstart).on("drag.force", dragmove).on("dragend.force", d3_layout_forceDragend);
      if (!arguments.length) return drag;
      this.on("mouseover.force", d3_layout_forceMouseover).on("mouseout.force", d3_layout_forceMouseout).call(drag);
    };
    function dragmove(d) {
      d.px = d3.event.x, d.py = d3.event.y;
      force.resume();
    }
    return d3.rebind(force, event, "on");
  };
  function d3_layout_forceDragstart(d) {
    d.fixed |= 2;
  }
  function d3_layout_forceDragend(d) {
    d.fixed &= ~6;
  }
  function d3_layout_forceMouseover(d) {
    d.fixed |= 4;
    d.px = d.x, d.py = d.y;
  }
  function d3_layout_forceMouseout(d) {
    d.fixed &= ~4;
  }
  function d3_layout_forceAccumulate(quad, alpha, charges) {
    var cx = 0, cy = 0;
    quad.charge = 0;
    if (!quad.leaf) {
      var nodes = quad.nodes, n = nodes.length, i = -1, c;
      while (++i < n) {
        c = nodes[i];
        if (c == null) continue;
        d3_layout_forceAccumulate(c, alpha, charges);
        quad.charge += c.charge;
        cx += c.charge * c.cx;
        cy += c.charge * c.cy;
      }
    }
    if (quad.point) {
      if (!quad.leaf) {
        quad.point.x += Math.random() - .5;
        quad.point.y += Math.random() - .5;
      }
      var k = alpha * charges[quad.point.index];
      quad.charge += quad.pointCharge = k;
      cx += k * quad.point.x;
      cy += k * quad.point.y;
    }
    quad.cx = cx / quad.charge;
    quad.cy = cy / quad.charge;
  }
  var d3_layout_forceLinkDistance = 20, d3_layout_forceLinkStrength = 1, d3_layout_forceChargeDistance2 = Infinity;
  d3.layout.hierarchy = function() {
    var sort = d3_layout_hierarchySort, children = d3_layout_hierarchyChildren, value = d3_layout_hierarchyValue;
    function hierarchy(root) {
      var stack = [ root ], nodes = [], node;
      root.depth = 0;
      while ((node = stack.pop()) != null) {
        nodes.push(node);
        if ((childs = children.call(hierarchy, node, node.depth)) && (n = childs.length)) {
          var n, childs, child;
          while (--n >= 0) {
            stack.push(child = childs[n]);
            child.parent = node;
            child.depth = node.depth + 1;
          }
          if (value) node.value = 0;
          node.children = childs;
        } else {
          if (value) node.value = +value.call(hierarchy, node, node.depth) || 0;
          delete node.children;
        }
      }
      d3_layout_hierarchyVisitAfter(root, function(node) {
        var childs, parent;
        if (sort && (childs = node.children)) childs.sort(sort);
        if (value && (parent = node.parent)) parent.value += node.value;
      });
      return nodes;
    }
    hierarchy.sort = function(x) {
      if (!arguments.length) return sort;
      sort = x;
      return hierarchy;
    };
    hierarchy.children = function(x) {
      if (!arguments.length) return children;
      children = x;
      return hierarchy;
    };
    hierarchy.value = function(x) {
      if (!arguments.length) return value;
      value = x;
      return hierarchy;
    };
    hierarchy.revalue = function(root) {
      if (value) {
        d3_layout_hierarchyVisitBefore(root, function(node) {
          if (node.children) node.value = 0;
        });
        d3_layout_hierarchyVisitAfter(root, function(node) {
          var parent;
          if (!node.children) node.value = +value.call(hierarchy, node, node.depth) || 0;
          if (parent = node.parent) parent.value += node.value;
        });
      }
      return root;
    };
    return hierarchy;
  };
  function d3_layout_hierarchyRebind(object, hierarchy) {
    d3.rebind(object, hierarchy, "sort", "children", "value");
    object.nodes = object;
    object.links = d3_layout_hierarchyLinks;
    return object;
  }
  function d3_layout_hierarchyVisitBefore(node, callback) {
    var nodes = [ node ];
    while ((node = nodes.pop()) != null) {
      callback(node);
      if ((children = node.children) && (n = children.length)) {
        var n, children;
        while (--n >= 0) nodes.push(children[n]);
      }
    }
  }
  function d3_layout_hierarchyVisitAfter(node, callback) {
    var nodes = [ node ], nodes2 = [];
    while ((node = nodes.pop()) != null) {
      nodes2.push(node);
      if ((children = node.children) && (n = children.length)) {
        var i = -1, n, children;
        while (++i < n) nodes.push(children[i]);
      }
    }
    while ((node = nodes2.pop()) != null) {
      callback(node);
    }
  }
  function d3_layout_hierarchyChildren(d) {
    return d.children;
  }
  function d3_layout_hierarchyValue(d) {
    return d.value;
  }
  function d3_layout_hierarchySort(a, b) {
    return b.value - a.value;
  }
  function d3_layout_hierarchyLinks(nodes) {
    return d3.merge(nodes.map(function(parent) {
      return (parent.children || []).map(function(child) {
        return {
          source: parent,
          target: child
        };
      });
    }));
  }
  d3.layout.partition = function() {
    var hierarchy = d3.layout.hierarchy(), size = [ 1, 1 ];
    function position(node, x, dx, dy) {
      var children = node.children;
      node.x = x;
      node.y = node.depth * dy;
      node.dx = dx;
      node.dy = dy;
      if (children && (n = children.length)) {
        var i = -1, n, c, d;
        dx = node.value ? dx / node.value : 0;
        while (++i < n) {
          position(c = children[i], x, d = c.value * dx, dy);
          x += d;
        }
      }
    }
    function depth(node) {
      var children = node.children, d = 0;
      if (children && (n = children.length)) {
        var i = -1, n;
        while (++i < n) d = Math.max(d, depth(children[i]));
      }
      return 1 + d;
    }
    function partition(d, i) {
      var nodes = hierarchy.call(this, d, i);
      position(nodes[0], 0, size[0], size[1] / depth(nodes[0]));
      return nodes;
    }
    partition.size = function(x) {
      if (!arguments.length) return size;
      size = x;
      return partition;
    };
    return d3_layout_hierarchyRebind(partition, hierarchy);
  };
  d3.layout.pie = function() {
    var value = Number, sort = d3_layout_pieSortByValue, startAngle = 0, endAngle = τ, padAngle = 0;
    function pie(data) {
      var n = data.length, values = data.map(function(d, i) {
        return +value.call(pie, d, i);
      }), a = +(typeof startAngle === "function" ? startAngle.apply(this, arguments) : startAngle), da = (typeof endAngle === "function" ? endAngle.apply(this, arguments) : endAngle) - a, p = Math.min(Math.abs(da) / n, +(typeof padAngle === "function" ? padAngle.apply(this, arguments) : padAngle)), pa = p * (da < 0 ? -1 : 1), sum = d3.sum(values), k = sum ? (da - n * pa) / sum : 0, index = d3.range(n), arcs = [], v;
      if (sort != null) index.sort(sort === d3_layout_pieSortByValue ? function(i, j) {
        return values[j] - values[i];
      } : function(i, j) {
        return sort(data[i], data[j]);
      });
      index.forEach(function(i) {
        arcs[i] = {
          data: data[i],
          value: v = values[i],
          startAngle: a,
          endAngle: a += v * k + pa,
          padAngle: p
        };
      });
      return arcs;
    }
    pie.value = function(_) {
      if (!arguments.length) return value;
      value = _;
      return pie;
    };
    pie.sort = function(_) {
      if (!arguments.length) return sort;
      sort = _;
      return pie;
    };
    pie.startAngle = function(_) {
      if (!arguments.length) return startAngle;
      startAngle = _;
      return pie;
    };
    pie.endAngle = function(_) {
      if (!arguments.length) return endAngle;
      endAngle = _;
      return pie;
    };
    pie.padAngle = function(_) {
      if (!arguments.length) return padAngle;
      padAngle = _;
      return pie;
    };
    return pie;
  };
  var d3_layout_pieSortByValue = {};
  d3.layout.stack = function() {
    var values = d3_identity, order = d3_layout_stackOrderDefault, offset = d3_layout_stackOffsetZero, out = d3_layout_stackOut, x = d3_layout_stackX, y = d3_layout_stackY;
    function stack(data, index) {
      if (!(n = data.length)) return data;
      var series = data.map(function(d, i) {
        return values.call(stack, d, i);
      });
      var points = series.map(function(d) {
        return d.map(function(v, i) {
          return [ x.call(stack, v, i), y.call(stack, v, i) ];
        });
      });
      var orders = order.call(stack, points, index);
      series = d3.permute(series, orders);
      points = d3.permute(points, orders);
      var offsets = offset.call(stack, points, index);
      var m = series[0].length, n, i, j, o;
      for (j = 0; j < m; ++j) {
        out.call(stack, series[0][j], o = offsets[j], points[0][j][1]);
        for (i = 1; i < n; ++i) {
          out.call(stack, series[i][j], o += points[i - 1][j][1], points[i][j][1]);
        }
      }
      return data;
    }
    stack.values = function(x) {
      if (!arguments.length) return values;
      values = x;
      return stack;
    };
    stack.order = function(x) {
      if (!arguments.length) return order;
      order = typeof x === "function" ? x : d3_layout_stackOrders.get(x) || d3_layout_stackOrderDefault;
      return stack;
    };
    stack.offset = function(x) {
      if (!arguments.length) return offset;
      offset = typeof x === "function" ? x : d3_layout_stackOffsets.get(x) || d3_layout_stackOffsetZero;
      return stack;
    };
    stack.x = function(z) {
      if (!arguments.length) return x;
      x = z;
      return stack;
    };
    stack.y = function(z) {
      if (!arguments.length) return y;
      y = z;
      return stack;
    };
    stack.out = function(z) {
      if (!arguments.length) return out;
      out = z;
      return stack;
    };
    return stack;
  };
  function d3_layout_stackX(d) {
    return d.x;
  }
  function d3_layout_stackY(d) {
    return d.y;
  }
  function d3_layout_stackOut(d, y0, y) {
    d.y0 = y0;
    d.y = y;
  }
  var d3_layout_stackOrders = d3.map({
    "inside-out": function(data) {
      var n = data.length, i, j, max = data.map(d3_layout_stackMaxIndex), sums = data.map(d3_layout_stackReduceSum), index = d3.range(n).sort(function(a, b) {
        return max[a] - max[b];
      }), top = 0, bottom = 0, tops = [], bottoms = [];
      for (i = 0; i < n; ++i) {
        j = index[i];
        if (top < bottom) {
          top += sums[j];
          tops.push(j);
        } else {
          bottom += sums[j];
          bottoms.push(j);
        }
      }
      return bottoms.reverse().concat(tops);
    },
    reverse: function(data) {
      return d3.range(data.length).reverse();
    },
    "default": d3_layout_stackOrderDefault
  });
  var d3_layout_stackOffsets = d3.map({
    silhouette: function(data) {
      var n = data.length, m = data[0].length, sums = [], max = 0, i, j, o, y0 = [];
      for (j = 0; j < m; ++j) {
        for (i = 0, o = 0; i < n; i++) o += data[i][j][1];
        if (o > max) max = o;
        sums.push(o);
      }
      for (j = 0; j < m; ++j) {
        y0[j] = (max - sums[j]) / 2;
      }
      return y0;
    },
    wiggle: function(data) {
      var n = data.length, x = data[0], m = x.length, i, j, k, s1, s2, s3, dx, o, o0, y0 = [];
      y0[0] = o = o0 = 0;
      for (j = 1; j < m; ++j) {
        for (i = 0, s1 = 0; i < n; ++i) s1 += data[i][j][1];
        for (i = 0, s2 = 0, dx = x[j][0] - x[j - 1][0]; i < n; ++i) {
          for (k = 0, s3 = (data[i][j][1] - data[i][j - 1][1]) / (2 * dx); k < i; ++k) {
            s3 += (data[k][j][1] - data[k][j - 1][1]) / dx;
          }
          s2 += s3 * data[i][j][1];
        }
        y0[j] = o -= s1 ? s2 / s1 * dx : 0;
        if (o < o0) o0 = o;
      }
      for (j = 0; j < m; ++j) y0[j] -= o0;
      return y0;
    },
    expand: function(data) {
      var n = data.length, m = data[0].length, k = 1 / n, i, j, o, y0 = [];
      for (j = 0; j < m; ++j) {
        for (i = 0, o = 0; i < n; i++) o += data[i][j][1];
        if (o) for (i = 0; i < n; i++) data[i][j][1] /= o; else for (i = 0; i < n; i++) data[i][j][1] = k;
      }
      for (j = 0; j < m; ++j) y0[j] = 0;
      return y0;
    },
    zero: d3_layout_stackOffsetZero
  });
  function d3_layout_stackOrderDefault(data) {
    return d3.range(data.length);
  }
  function d3_layout_stackOffsetZero(data) {
    var j = -1, m = data[0].length, y0 = [];
    while (++j < m) y0[j] = 0;
    return y0;
  }
  function d3_layout_stackMaxIndex(array) {
    var i = 1, j = 0, v = array[0][1], k, n = array.length;
    for (;i < n; ++i) {
      if ((k = array[i][1]) > v) {
        j = i;
        v = k;
      }
    }
    return j;
  }
  function d3_layout_stackReduceSum(d) {
    return d.reduce(d3_layout_stackSum, 0);
  }
  function d3_layout_stackSum(p, d) {
    return p + d[1];
  }
  d3.layout.histogram = function() {
    var frequency = true, valuer = Number, ranger = d3_layout_histogramRange, binner = d3_layout_histogramBinSturges;
    function histogram(data, i) {
      var bins = [], values = data.map(valuer, this), range = ranger.call(this, values, i), thresholds = binner.call(this, range, values, i), bin, i = -1, n = values.length, m = thresholds.length - 1, k = frequency ? 1 : 1 / n, x;
      while (++i < m) {
        bin = bins[i] = [];
        bin.dx = thresholds[i + 1] - (bin.x = thresholds[i]);
        bin.y = 0;
      }
      if (m > 0) {
        i = -1;
        while (++i < n) {
          x = values[i];
          if (x >= range[0] && x <= range[1]) {
            bin = bins[d3.bisect(thresholds, x, 1, m) - 1];
            bin.y += k;
            bin.push(data[i]);
          }
        }
      }
      return bins;
    }
    histogram.value = function(x) {
      if (!arguments.length) return valuer;
      valuer = x;
      return histogram;
    };
    histogram.range = function(x) {
      if (!arguments.length) return ranger;
      ranger = d3_functor(x);
      return histogram;
    };
    histogram.bins = function(x) {
      if (!arguments.length) return binner;
      binner = typeof x === "number" ? function(range) {
        return d3_layout_histogramBinFixed(range, x);
      } : d3_functor(x);
      return histogram;
    };
    histogram.frequency = function(x) {
      if (!arguments.length) return frequency;
      frequency = !!x;
      return histogram;
    };
    return histogram;
  };
  function d3_layout_histogramBinSturges(range, values) {
    return d3_layout_histogramBinFixed(range, Math.ceil(Math.log(values.length) / Math.LN2 + 1));
  }
  function d3_layout_histogramBinFixed(range, n) {
    var x = -1, b = +range[0], m = (range[1] - b) / n, f = [];
    while (++x <= n) f[x] = m * x + b;
    return f;
  }
  function d3_layout_histogramRange(values) {
    return [ d3.min(values), d3.max(values) ];
  }
  d3.layout.pack = function() {
    var hierarchy = d3.layout.hierarchy().sort(d3_layout_packSort), padding = 0, size = [ 1, 1 ], radius;
    function pack(d, i) {
      var nodes = hierarchy.call(this, d, i), root = nodes[0], w = size[0], h = size[1], r = radius == null ? Math.sqrt : typeof radius === "function" ? radius : function() {
        return radius;
      };
      root.x = root.y = 0;
      d3_layout_hierarchyVisitAfter(root, function(d) {
        d.r = +r(d.value);
      });
      d3_layout_hierarchyVisitAfter(root, d3_layout_packSiblings);
      if (padding) {
        var dr = padding * (radius ? 1 : Math.max(2 * root.r / w, 2 * root.r / h)) / 2;
        d3_layout_hierarchyVisitAfter(root, function(d) {
          d.r += dr;
        });
        d3_layout_hierarchyVisitAfter(root, d3_layout_packSiblings);
        d3_layout_hierarchyVisitAfter(root, function(d) {
          d.r -= dr;
        });
      }
      d3_layout_packTransform(root, w / 2, h / 2, radius ? 1 : 1 / Math.max(2 * root.r / w, 2 * root.r / h));
      return nodes;
    }
    pack.size = function(_) {
      if (!arguments.length) return size;
      size = _;
      return pack;
    };
    pack.radius = function(_) {
      if (!arguments.length) return radius;
      radius = _ == null || typeof _ === "function" ? _ : +_;
      return pack;
    };
    pack.padding = function(_) {
      if (!arguments.length) return padding;
      padding = +_;
      return pack;
    };
    return d3_layout_hierarchyRebind(pack, hierarchy);
  };
  function d3_layout_packSort(a, b) {
    return a.value - b.value;
  }
  function d3_layout_packInsert(a, b) {
    var c = a._pack_next;
    a._pack_next = b;
    b._pack_prev = a;
    b._pack_next = c;
    c._pack_prev = b;
  }
  function d3_layout_packSplice(a, b) {
    a._pack_next = b;
    b._pack_prev = a;
  }
  function d3_layout_packIntersects(a, b) {
    var dx = b.x - a.x, dy = b.y - a.y, dr = a.r + b.r;
    return .999 * dr * dr > dx * dx + dy * dy;
  }
  function d3_layout_packSiblings(node) {
    if (!(nodes = node.children) || !(n = nodes.length)) return;
    var nodes, xMin = Infinity, xMax = -Infinity, yMin = Infinity, yMax = -Infinity, a, b, c, i, j, k, n;
    function bound(node) {
      xMin = Math.min(node.x - node.r, xMin);
      xMax = Math.max(node.x + node.r, xMax);
      yMin = Math.min(node.y - node.r, yMin);
      yMax = Math.max(node.y + node.r, yMax);
    }
    nodes.forEach(d3_layout_packLink);
    a = nodes[0];
    a.x = -a.r;
    a.y = 0;
    bound(a);
    if (n > 1) {
      b = nodes[1];
      b.x = b.r;
      b.y = 0;
      bound(b);
      if (n > 2) {
        c = nodes[2];
        d3_layout_packPlace(a, b, c);
        bound(c);
        d3_layout_packInsert(a, c);
        a._pack_prev = c;
        d3_layout_packInsert(c, b);
        b = a._pack_next;
        for (i = 3; i < n; i++) {
          d3_layout_packPlace(a, b, c = nodes[i]);
          var isect = 0, s1 = 1, s2 = 1;
          for (j = b._pack_next; j !== b; j = j._pack_next, s1++) {
            if (d3_layout_packIntersects(j, c)) {
              isect = 1;
              break;
            }
          }
          if (isect == 1) {
            for (k = a._pack_prev; k !== j._pack_prev; k = k._pack_prev, s2++) {
              if (d3_layout_packIntersects(k, c)) {
                break;
              }
            }
          }
          if (isect) {
            if (s1 < s2 || s1 == s2 && b.r < a.r) d3_layout_packSplice(a, b = j); else d3_layout_packSplice(a = k, b);
            i--;
          } else {
            d3_layout_packInsert(a, c);
            b = c;
            bound(c);
          }
        }
      }
    }
    var cx = (xMin + xMax) / 2, cy = (yMin + yMax) / 2, cr = 0;
    for (i = 0; i < n; i++) {
      c = nodes[i];
      c.x -= cx;
      c.y -= cy;
      cr = Math.max(cr, c.r + Math.sqrt(c.x * c.x + c.y * c.y));
    }
    node.r = cr;
    nodes.forEach(d3_layout_packUnlink);
  }
  function d3_layout_packLink(node) {
    node._pack_next = node._pack_prev = node;
  }
  function d3_layout_packUnlink(node) {
    delete node._pack_next;
    delete node._pack_prev;
  }
  function d3_layout_packTransform(node, x, y, k) {
    var children = node.children;
    node.x = x += k * node.x;
    node.y = y += k * node.y;
    node.r *= k;
    if (children) {
      var i = -1, n = children.length;
      while (++i < n) d3_layout_packTransform(children[i], x, y, k);
    }
  }
  function d3_layout_packPlace(a, b, c) {
    var db = a.r + c.r, dx = b.x - a.x, dy = b.y - a.y;
    if (db && (dx || dy)) {
      var da = b.r + c.r, dc = dx * dx + dy * dy;
      da *= da;
      db *= db;
      var x = .5 + (db - da) / (2 * dc), y = Math.sqrt(Math.max(0, 2 * da * (db + dc) - (db -= dc) * db - da * da)) / (2 * dc);
      c.x = a.x + x * dx + y * dy;
      c.y = a.y + x * dy - y * dx;
    } else {
      c.x = a.x + db;
      c.y = a.y;
    }
  }
  d3.layout.tree = function() {
    var hierarchy = d3.layout.hierarchy().sort(null).value(null), separation = d3_layout_treeSeparation, size = [ 1, 1 ], nodeSize = null;
    function tree(d, i) {
      var nodes = hierarchy.call(this, d, i), root0 = nodes[0], root1 = wrapTree(root0);
      d3_layout_hierarchyVisitAfter(root1, firstWalk), root1.parent.m = -root1.z;
      d3_layout_hierarchyVisitBefore(root1, secondWalk);
      if (nodeSize) d3_layout_hierarchyVisitBefore(root0, sizeNode); else {
        var left = root0, right = root0, bottom = root0;
        d3_layout_hierarchyVisitBefore(root0, function(node) {
          if (node.x < left.x) left = node;
          if (node.x > right.x) right = node;
          if (node.depth > bottom.depth) bottom = node;
        });
        var tx = separation(left, right) / 2 - left.x, kx = size[0] / (right.x + separation(right, left) / 2 + tx), ky = size[1] / (bottom.depth || 1);
        d3_layout_hierarchyVisitBefore(root0, function(node) {
          node.x = (node.x + tx) * kx;
          node.y = node.depth * ky;
        });
      }
      return nodes;
    }
    function wrapTree(root0) {
      var root1 = {
        A: null,
        children: [ root0 ]
      }, queue = [ root1 ], node1;
      while ((node1 = queue.pop()) != null) {
        for (var children = node1.children, child, i = 0, n = children.length; i < n; ++i) {
          queue.push((children[i] = child = {
            _: children[i],
            parent: node1,
            children: (child = children[i].children) && child.slice() || [],
            A: null,
            a: null,
            z: 0,
            m: 0,
            c: 0,
            s: 0,
            t: null,
            i: i
          }).a = child);
        }
      }
      return root1.children[0];
    }
    function firstWalk(v) {
      var children = v.children, siblings = v.parent.children, w = v.i ? siblings[v.i - 1] : null;
      if (children.length) {
        d3_layout_treeShift(v);
        var midpoint = (children[0].z + children[children.length - 1].z) / 2;
        if (w) {
          v.z = w.z + separation(v._, w._);
          v.m = v.z - midpoint;
        } else {
          v.z = midpoint;
        }
      } else if (w) {
        v.z = w.z + separation(v._, w._);
      }
      v.parent.A = apportion(v, w, v.parent.A || siblings[0]);
    }
    function secondWalk(v) {
      v._.x = v.z + v.parent.m;
      v.m += v.parent.m;
    }
    function apportion(v, w, ancestor) {
      if (w) {
        var vip = v, vop = v, vim = w, vom = vip.parent.children[0], sip = vip.m, sop = vop.m, sim = vim.m, som = vom.m, shift;
        while (vim = d3_layout_treeRight(vim), vip = d3_layout_treeLeft(vip), vim && vip) {
          vom = d3_layout_treeLeft(vom);
          vop = d3_layout_treeRight(vop);
          vop.a = v;
          shift = vim.z + sim - vip.z - sip + separation(vim._, vip._);
          if (shift > 0) {
            d3_layout_treeMove(d3_layout_treeAncestor(vim, v, ancestor), v, shift);
            sip += shift;
            sop += shift;
          }
          sim += vim.m;
          sip += vip.m;
          som += vom.m;
          sop += vop.m;
        }
        if (vim && !d3_layout_treeRight(vop)) {
          vop.t = vim;
          vop.m += sim - sop;
        }
        if (vip && !d3_layout_treeLeft(vom)) {
          vom.t = vip;
          vom.m += sip - som;
          ancestor = v;
        }
      }
      return ancestor;
    }
    function sizeNode(node) {
      node.x *= size[0];
      node.y = node.depth * size[1];
    }
    tree.separation = function(x) {
      if (!arguments.length) return separation;
      separation = x;
      return tree;
    };
    tree.size = function(x) {
      if (!arguments.length) return nodeSize ? null : size;
      nodeSize = (size = x) == null ? sizeNode : null;
      return tree;
    };
    tree.nodeSize = function(x) {
      if (!arguments.length) return nodeSize ? size : null;
      nodeSize = (size = x) == null ? null : sizeNode;
      return tree;
    };
    return d3_layout_hierarchyRebind(tree, hierarchy);
  };
  function d3_layout_treeSeparation(a, b) {
    return a.parent == b.parent ? 1 : 2;
  }
  function d3_layout_treeLeft(v) {
    var children = v.children;
    return children.length ? children[0] : v.t;
  }
  function d3_layout_treeRight(v) {
    var children = v.children, n;
    return (n = children.length) ? children[n - 1] : v.t;
  }
  function d3_layout_treeMove(wm, wp, shift) {
    var change = shift / (wp.i - wm.i);
    wp.c -= change;
    wp.s += shift;
    wm.c += change;
    wp.z += shift;
    wp.m += shift;
  }
  function d3_layout_treeShift(v) {
    var shift = 0, change = 0, children = v.children, i = children.length, w;
    while (--i >= 0) {
      w = children[i];
      w.z += shift;
      w.m += shift;
      shift += w.s + (change += w.c);
    }
  }
  function d3_layout_treeAncestor(vim, v, ancestor) {
    return vim.a.parent === v.parent ? vim.a : ancestor;
  }
  d3.layout.cluster = function() {
    var hierarchy = d3.layout.hierarchy().sort(null).value(null), separation = d3_layout_treeSeparation, size = [ 1, 1 ], nodeSize = false;
    function cluster(d, i) {
      var nodes = hierarchy.call(this, d, i), root = nodes[0], previousNode, x = 0;
      d3_layout_hierarchyVisitAfter(root, function(node) {
        var children = node.children;
        if (children && children.length) {
          node.x = d3_layout_clusterX(children);
          node.y = d3_layout_clusterY(children);
        } else {
          node.x = previousNode ? x += separation(node, previousNode) : 0;
          node.y = 0;
          previousNode = node;
        }
      });
      var left = d3_layout_clusterLeft(root), right = d3_layout_clusterRight(root), x0 = left.x - separation(left, right) / 2, x1 = right.x + separation(right, left) / 2;
      d3_layout_hierarchyVisitAfter(root, nodeSize ? function(node) {
        node.x = (node.x - root.x) * size[0];
        node.y = (root.y - node.y) * size[1];
      } : function(node) {
        node.x = (node.x - x0) / (x1 - x0) * size[0];
        node.y = (1 - (root.y ? node.y / root.y : 1)) * size[1];
      });
      return nodes;
    }
    cluster.separation = function(x) {
      if (!arguments.length) return separation;
      separation = x;
      return cluster;
    };
    cluster.size = function(x) {
      if (!arguments.length) return nodeSize ? null : size;
      nodeSize = (size = x) == null;
      return cluster;
    };
    cluster.nodeSize = function(x) {
      if (!arguments.length) return nodeSize ? size : null;
      nodeSize = (size = x) != null;
      return cluster;
    };
    return d3_layout_hierarchyRebind(cluster, hierarchy);
  };
  function d3_layout_clusterY(children) {
    return 1 + d3.max(children, function(child) {
      return child.y;
    });
  }
  function d3_layout_clusterX(children) {
    return children.reduce(function(x, child) {
      return x + child.x;
    }, 0) / children.length;
  }
  function d3_layout_clusterLeft(node) {
    var children = node.children;
    return children && children.length ? d3_layout_clusterLeft(children[0]) : node;
  }
  function d3_layout_clusterRight(node) {
    var children = node.children, n;
    return children && (n = children.length) ? d3_layout_clusterRight(children[n - 1]) : node;
  }
  d3.layout.treemap = function() {
    var hierarchy = d3.layout.hierarchy(), round = Math.round, size = [ 1, 1 ], padding = null, pad = d3_layout_treemapPadNull, sticky = false, stickies, mode = "squarify", ratio = .5 * (1 + Math.sqrt(5));
    function scale(children, k) {
      var i = -1, n = children.length, child, area;
      while (++i < n) {
        area = (child = children[i]).value * (k < 0 ? 0 : k);
        child.area = isNaN(area) || area <= 0 ? 0 : area;
      }
    }
    function squarify(node) {
      var children = node.children;
      if (children && children.length) {
        var rect = pad(node), row = [], remaining = children.slice(), child, best = Infinity, score, u = mode === "slice" ? rect.dx : mode === "dice" ? rect.dy : mode === "slice-dice" ? node.depth & 1 ? rect.dy : rect.dx : Math.min(rect.dx, rect.dy), n;
        scale(remaining, rect.dx * rect.dy / node.value);
        row.area = 0;
        while ((n = remaining.length) > 0) {
          row.push(child = remaining[n - 1]);
          row.area += child.area;
          if (mode !== "squarify" || (score = worst(row, u)) <= best) {
            remaining.pop();
            best = score;
          } else {
            row.area -= row.pop().area;
            position(row, u, rect, false);
            u = Math.min(rect.dx, rect.dy);
            row.length = row.area = 0;
            best = Infinity;
          }
        }
        if (row.length) {
          position(row, u, rect, true);
          row.length = row.area = 0;
        }
        children.forEach(squarify);
      }
    }
    function stickify(node) {
      var children = node.children;
      if (children && children.length) {
        var rect = pad(node), remaining = children.slice(), child, row = [];
        scale(remaining, rect.dx * rect.dy / node.value);
        row.area = 0;
        while (child = remaining.pop()) {
          row.push(child);
          row.area += child.area;
          if (child.z != null) {
            position(row, child.z ? rect.dx : rect.dy, rect, !remaining.length);
            row.length = row.area = 0;
          }
        }
        children.forEach(stickify);
      }
    }
    function worst(row, u) {
      var s = row.area, r, rmax = 0, rmin = Infinity, i = -1, n = row.length;
      while (++i < n) {
        if (!(r = row[i].area)) continue;
        if (r < rmin) rmin = r;
        if (r > rmax) rmax = r;
      }
      s *= s;
      u *= u;
      return s ? Math.max(u * rmax * ratio / s, s / (u * rmin * ratio)) : Infinity;
    }
    function position(row, u, rect, flush) {
      var i = -1, n = row.length, x = rect.x, y = rect.y, v = u ? round(row.area / u) : 0, o;
      if (u == rect.dx) {
        if (flush || v > rect.dy) v = rect.dy;
        while (++i < n) {
          o = row[i];
          o.x = x;
          o.y = y;
          o.dy = v;
          x += o.dx = Math.min(rect.x + rect.dx - x, v ? round(o.area / v) : 0);
        }
        o.z = true;
        o.dx += rect.x + rect.dx - x;
        rect.y += v;
        rect.dy -= v;
      } else {
        if (flush || v > rect.dx) v = rect.dx;
        while (++i < n) {
          o = row[i];
          o.x = x;
          o.y = y;
          o.dx = v;
          y += o.dy = Math.min(rect.y + rect.dy - y, v ? round(o.area / v) : 0);
        }
        o.z = false;
        o.dy += rect.y + rect.dy - y;
        rect.x += v;
        rect.dx -= v;
      }
    }
    function treemap(d) {
      var nodes = stickies || hierarchy(d), root = nodes[0];
      root.x = root.y = 0;
      if (root.value) root.dx = size[0], root.dy = size[1]; else root.dx = root.dy = 0;
      if (stickies) hierarchy.revalue(root);
      scale([ root ], root.dx * root.dy / root.value);
      (stickies ? stickify : squarify)(root);
      if (sticky) stickies = nodes;
      return nodes;
    }
    treemap.size = function(x) {
      if (!arguments.length) return size;
      size = x;
      return treemap;
    };
    treemap.padding = function(x) {
      if (!arguments.length) return padding;
      function padFunction(node) {
        var p = x.call(treemap, node, node.depth);
        return p == null ? d3_layout_treemapPadNull(node) : d3_layout_treemapPad(node, typeof p === "number" ? [ p, p, p, p ] : p);
      }
      function padConstant(node) {
        return d3_layout_treemapPad(node, x);
      }
      var type;
      pad = (padding = x) == null ? d3_layout_treemapPadNull : (type = typeof x) === "function" ? padFunction : type === "number" ? (x = [ x, x, x, x ], 
      padConstant) : padConstant;
      return treemap;
    };
    treemap.round = function(x) {
      if (!arguments.length) return round != Number;
      round = x ? Math.round : Number;
      return treemap;
    };
    treemap.sticky = function(x) {
      if (!arguments.length) return sticky;
      sticky = x;
      stickies = null;
      return treemap;
    };
    treemap.ratio = function(x) {
      if (!arguments.length) return ratio;
      ratio = x;
      return treemap;
    };
    treemap.mode = function(x) {
      if (!arguments.length) return mode;
      mode = x + "";
      return treemap;
    };
    return d3_layout_hierarchyRebind(treemap, hierarchy);
  };
  function d3_layout_treemapPadNull(node) {
    return {
      x: node.x,
      y: node.y,
      dx: node.dx,
      dy: node.dy
    };
  }
  function d3_layout_treemapPad(node, padding) {
    var x = node.x + padding[3], y = node.y + padding[0], dx = node.dx - padding[1] - padding[3], dy = node.dy - padding[0] - padding[2];
    if (dx < 0) {
      x += dx / 2;
      dx = 0;
    }
    if (dy < 0) {
      y += dy / 2;
      dy = 0;
    }
    return {
      x: x,
      y: y,
      dx: dx,
      dy: dy
    };
  }
  d3.random = {
    normal: function(µ, σ) {
      var n = arguments.length;
      if (n < 2) σ = 1;
      if (n < 1) µ = 0;
      return function() {
        var x, y, r;
        do {
          x = Math.random() * 2 - 1;
          y = Math.random() * 2 - 1;
          r = x * x + y * y;
        } while (!r || r > 1);
        return µ + σ * x * Math.sqrt(-2 * Math.log(r) / r);
      };
    },
    logNormal: function() {
      var random = d3.random.normal.apply(d3, arguments);
      return function() {
        return Math.exp(random());
      };
    },
    bates: function(m) {
      var random = d3.random.irwinHall(m);
      return function() {
        return random() / m;
      };
    },
    irwinHall: function(m) {
      return function() {
        for (var s = 0, j = 0; j < m; j++) s += Math.random();
        return s;
      };
    }
  };
  d3.scale = {};
  function d3_scaleExtent(domain) {
    var start = domain[0], stop = domain[domain.length - 1];
    return start < stop ? [ start, stop ] : [ stop, start ];
  }
  function d3_scaleRange(scale) {
    return scale.rangeExtent ? scale.rangeExtent() : d3_scaleExtent(scale.range());
  }
  function d3_scale_bilinear(domain, range, uninterpolate, interpolate) {
    var u = uninterpolate(domain[0], domain[1]), i = interpolate(range[0], range[1]);
    return function(x) {
      return i(u(x));
    };
  }
  function d3_scale_nice(domain, nice) {
    var i0 = 0, i1 = domain.length - 1, x0 = domain[i0], x1 = domain[i1], dx;
    if (x1 < x0) {
      dx = i0, i0 = i1, i1 = dx;
      dx = x0, x0 = x1, x1 = dx;
    }
    domain[i0] = nice.floor(x0);
    domain[i1] = nice.ceil(x1);
    return domain;
  }
  function d3_scale_niceStep(step) {
    return step ? {
      floor: function(x) {
        return Math.floor(x / step) * step;
      },
      ceil: function(x) {
        return Math.ceil(x / step) * step;
      }
    } : d3_scale_niceIdentity;
  }
  var d3_scale_niceIdentity = {
    floor: d3_identity,
    ceil: d3_identity
  };
  function d3_scale_polylinear(domain, range, uninterpolate, interpolate) {
    var u = [], i = [], j = 0, k = Math.min(domain.length, range.length) - 1;
    if (domain[k] < domain[0]) {
      domain = domain.slice().reverse();
      range = range.slice().reverse();
    }
    while (++j <= k) {
      u.push(uninterpolate(domain[j - 1], domain[j]));
      i.push(interpolate(range[j - 1], range[j]));
    }
    return function(x) {
      var j = d3.bisect(domain, x, 1, k) - 1;
      return i[j](u[j](x));
    };
  }
  d3.scale.linear = function() {
    return d3_scale_linear([ 0, 1 ], [ 0, 1 ], d3_interpolate, false);
  };
  function d3_scale_linear(domain, range, interpolate, clamp) {
    var output, input;
    function rescale() {
      var linear = Math.min(domain.length, range.length) > 2 ? d3_scale_polylinear : d3_scale_bilinear, uninterpolate = clamp ? d3_uninterpolateClamp : d3_uninterpolateNumber;
      output = linear(domain, range, uninterpolate, interpolate);
      input = linear(range, domain, uninterpolate, d3_interpolate);
      return scale;
    }
    function scale(x) {
      return output(x);
    }
    scale.invert = function(y) {
      return input(y);
    };
    scale.domain = function(x) {
      if (!arguments.length) return domain;
      domain = x.map(Number);
      return rescale();
    };
    scale.range = function(x) {
      if (!arguments.length) return range;
      range = x;
      return rescale();
    };
    scale.rangeRound = function(x) {
      return scale.range(x).interpolate(d3_interpolateRound);
    };
    scale.clamp = function(x) {
      if (!arguments.length) return clamp;
      clamp = x;
      return rescale();
    };
    scale.interpolate = function(x) {
      if (!arguments.length) return interpolate;
      interpolate = x;
      return rescale();
    };
    scale.ticks = function(m) {
      return d3_scale_linearTicks(domain, m);
    };
    scale.tickFormat = function(m, format) {
      return d3_scale_linearTickFormat(domain, m, format);
    };
    scale.nice = function(m) {
      d3_scale_linearNice(domain, m);
      return rescale();
    };
    scale.copy = function() {
      return d3_scale_linear(domain, range, interpolate, clamp);
    };
    return rescale();
  }
  function d3_scale_linearRebind(scale, linear) {
    return d3.rebind(scale, linear, "range", "rangeRound", "interpolate", "clamp");
  }
  function d3_scale_linearNice(domain, m) {
    d3_scale_nice(domain, d3_scale_niceStep(d3_scale_linearTickRange(domain, m)[2]));
    d3_scale_nice(domain, d3_scale_niceStep(d3_scale_linearTickRange(domain, m)[2]));
    return domain;
  }
  function d3_scale_linearTickRange(domain, m) {
    if (m == null) m = 10;
    var extent = d3_scaleExtent(domain), span = extent[1] - extent[0], step = Math.pow(10, Math.floor(Math.log(span / m) / Math.LN10)), err = m / span * step;
    if (err <= .15) step *= 10; else if (err <= .35) step *= 5; else if (err <= .75) step *= 2;
    extent[0] = Math.ceil(extent[0] / step) * step;
    extent[1] = Math.floor(extent[1] / step) * step + step * .5;
    extent[2] = step;
    return extent;
  }
  function d3_scale_linearTicks(domain, m) {
    return d3.range.apply(d3, d3_scale_linearTickRange(domain, m));
  }
  function d3_scale_linearTickFormat(domain, m, format) {
    var range = d3_scale_linearTickRange(domain, m);
    if (format) {
      var match = d3_format_re.exec(format);
      match.shift();
      if (match[8] === "s") {
        var prefix = d3.formatPrefix(Math.max(abs(range[0]), abs(range[1])));
        if (!match[7]) match[7] = "." + d3_scale_linearPrecision(prefix.scale(range[2]));
        match[8] = "f";
        format = d3.format(match.join(""));
        return function(d) {
          return format(prefix.scale(d)) + prefix.symbol;
        };
      }
      if (!match[7]) match[7] = "." + d3_scale_linearFormatPrecision(match[8], range);
      format = match.join("");
    } else {
      format = ",." + d3_scale_linearPrecision(range[2]) + "f";
    }
    return d3.format(format);
  }
  var d3_scale_linearFormatSignificant = {
    s: 1,
    g: 1,
    p: 1,
    r: 1,
    e: 1
  };
  function d3_scale_linearPrecision(value) {
    return -Math.floor(Math.log(value) / Math.LN10 + .01);
  }
  function d3_scale_linearFormatPrecision(type, range) {
    var p = d3_scale_linearPrecision(range[2]);
    return type in d3_scale_linearFormatSignificant ? Math.abs(p - d3_scale_linearPrecision(Math.max(abs(range[0]), abs(range[1])))) + +(type !== "e") : p - (type === "%") * 2;
  }
  d3.scale.log = function() {
    return d3_scale_log(d3.scale.linear().domain([ 0, 1 ]), 10, true, [ 1, 10 ]);
  };
  function d3_scale_log(linear, base, positive, domain) {
    function log(x) {
      return (positive ? Math.log(x < 0 ? 0 : x) : -Math.log(x > 0 ? 0 : -x)) / Math.log(base);
    }
    function pow(x) {
      return positive ? Math.pow(base, x) : -Math.pow(base, -x);
    }
    function scale(x) {
      return linear(log(x));
    }
    scale.invert = function(x) {
      return pow(linear.invert(x));
    };
    scale.domain = function(x) {
      if (!arguments.length) return domain;
      positive = x[0] >= 0;
      linear.domain((domain = x.map(Number)).map(log));
      return scale;
    };
    scale.base = function(_) {
      if (!arguments.length) return base;
      base = +_;
      linear.domain(domain.map(log));
      return scale;
    };
    scale.nice = function() {
      var niced = d3_scale_nice(domain.map(log), positive ? Math : d3_scale_logNiceNegative);
      linear.domain(niced);
      domain = niced.map(pow);
      return scale;
    };
    scale.ticks = function() {
      var extent = d3_scaleExtent(domain), ticks = [], u = extent[0], v = extent[1], i = Math.floor(log(u)), j = Math.ceil(log(v)), n = base % 1 ? 2 : base;
      if (isFinite(j - i)) {
        if (positive) {
          for (;i < j; i++) for (var k = 1; k < n; k++) ticks.push(pow(i) * k);
          ticks.push(pow(i));
        } else {
          ticks.push(pow(i));
          for (;i++ < j; ) for (var k = n - 1; k > 0; k--) ticks.push(pow(i) * k);
        }
        for (i = 0; ticks[i] < u; i++) {}
        for (j = ticks.length; ticks[j - 1] > v; j--) {}
        ticks = ticks.slice(i, j);
      }
      return ticks;
    };
    scale.tickFormat = function(n, format) {
      if (!arguments.length) return d3_scale_logFormat;
      if (arguments.length < 2) format = d3_scale_logFormat; else if (typeof format !== "function") format = d3.format(format);
      var k = Math.max(1, base * n / scale.ticks().length);
      return function(d) {
        var i = d / pow(Math.round(log(d)));
        if (i * base < base - .5) i *= base;
        return i <= k ? format(d) : "";
      };
    };
    scale.copy = function() {
      return d3_scale_log(linear.copy(), base, positive, domain);
    };
    return d3_scale_linearRebind(scale, linear);
  }
  var d3_scale_logFormat = d3.format(".0e"), d3_scale_logNiceNegative = {
    floor: function(x) {
      return -Math.ceil(-x);
    },
    ceil: function(x) {
      return -Math.floor(-x);
    }
  };
  d3.scale.pow = function() {
    return d3_scale_pow(d3.scale.linear(), 1, [ 0, 1 ]);
  };
  function d3_scale_pow(linear, exponent, domain) {
    var powp = d3_scale_powPow(exponent), powb = d3_scale_powPow(1 / exponent);
    function scale(x) {
      return linear(powp(x));
    }
    scale.invert = function(x) {
      return powb(linear.invert(x));
    };
    scale.domain = function(x) {
      if (!arguments.length) return domain;
      linear.domain((domain = x.map(Number)).map(powp));
      return scale;
    };
    scale.ticks = function(m) {
      return d3_scale_linearTicks(domain, m);
    };
    scale.tickFormat = function(m, format) {
      return d3_scale_linearTickFormat(domain, m, format);
    };
    scale.nice = function(m) {
      return scale.domain(d3_scale_linearNice(domain, m));
    };
    scale.exponent = function(x) {
      if (!arguments.length) return exponent;
      powp = d3_scale_powPow(exponent = x);
      powb = d3_scale_powPow(1 / exponent);
      linear.domain(domain.map(powp));
      return scale;
    };
    scale.copy = function() {
      return d3_scale_pow(linear.copy(), exponent, domain);
    };
    return d3_scale_linearRebind(scale, linear);
  }
  function d3_scale_powPow(e) {
    return function(x) {
      return x < 0 ? -Math.pow(-x, e) : Math.pow(x, e);
    };
  }
  d3.scale.sqrt = function() {
    return d3.scale.pow().exponent(.5);
  };
  d3.scale.ordinal = function() {
    return d3_scale_ordinal([], {
      t: "range",
      a: [ [] ]
    });
  };
  function d3_scale_ordinal(domain, ranger) {
    var index, range, rangeBand;
    function scale(x) {
      return range[((index.get(x) || (ranger.t === "range" ? index.set(x, domain.push(x)) : NaN)) - 1) % range.length];
    }
    function steps(start, step) {
      return d3.range(domain.length).map(function(i) {
        return start + step * i;
      });
    }
    scale.domain = function(x) {
      if (!arguments.length) return domain;
      domain = [];
      index = new d3_Map();
      var i = -1, n = x.length, xi;
      while (++i < n) if (!index.has(xi = x[i])) index.set(xi, domain.push(xi));
      return scale[ranger.t].apply(scale, ranger.a);
    };
    scale.range = function(x) {
      if (!arguments.length) return range;
      range = x;
      rangeBand = 0;
      ranger = {
        t: "range",
        a: arguments
      };
      return scale;
    };
    scale.rangePoints = function(x, padding) {
      if (arguments.length < 2) padding = 0;
      var start = x[0], stop = x[1], step = domain.length < 2 ? (start = (start + stop) / 2, 
      0) : (stop - start) / (domain.length - 1 + padding);
      range = steps(start + step * padding / 2, step);
      rangeBand = 0;
      ranger = {
        t: "rangePoints",
        a: arguments
      };
      return scale;
    };
    scale.rangeRoundPoints = function(x, padding) {
      if (arguments.length < 2) padding = 0;
      var start = x[0], stop = x[1], step = domain.length < 2 ? (start = stop = Math.round((start + stop) / 2), 
      0) : (stop - start) / (domain.length - 1 + padding) | 0;
      range = steps(start + Math.round(step * padding / 2 + (stop - start - (domain.length - 1 + padding) * step) / 2), step);
      rangeBand = 0;
      ranger = {
        t: "rangeRoundPoints",
        a: arguments
      };
      return scale;
    };
    scale.rangeBands = function(x, padding, outerPadding) {
      if (arguments.length < 2) padding = 0;
      if (arguments.length < 3) outerPadding = padding;
      var reverse = x[1] < x[0], start = x[reverse - 0], stop = x[1 - reverse], step = (stop - start) / (domain.length - padding + 2 * outerPadding);
      range = steps(start + step * outerPadding, step);
      if (reverse) range.reverse();
      rangeBand = step * (1 - padding);
      ranger = {
        t: "rangeBands",
        a: arguments
      };
      return scale;
    };
    scale.rangeRoundBands = function(x, padding, outerPadding) {
      if (arguments.length < 2) padding = 0;
      if (arguments.length < 3) outerPadding = padding;
      var reverse = x[1] < x[0], start = x[reverse - 0], stop = x[1 - reverse], step = Math.floor((stop - start) / (domain.length - padding + 2 * outerPadding));
      range = steps(start + Math.round((stop - start - (domain.length - padding) * step) / 2), step);
      if (reverse) range.reverse();
      rangeBand = Math.round(step * (1 - padding));
      ranger = {
        t: "rangeRoundBands",
        a: arguments
      };
      return scale;
    };
    scale.rangeBand = function() {
      return rangeBand;
    };
    scale.rangeExtent = function() {
      return d3_scaleExtent(ranger.a[0]);
    };
    scale.copy = function() {
      return d3_scale_ordinal(domain, ranger);
    };
    return scale.domain(domain);
  }
  d3.scale.category10 = function() {
    return d3.scale.ordinal().range(d3_category10);
  };
  d3.scale.category20 = function() {
    return d3.scale.ordinal().range(d3_category20);
  };
  d3.scale.category20b = function() {
    return d3.scale.ordinal().range(d3_category20b);
  };
  d3.scale.category20c = function() {
    return d3.scale.ordinal().range(d3_category20c);
  };
  var d3_category10 = [ 2062260, 16744206, 2924588, 14034728, 9725885, 9197131, 14907330, 8355711, 12369186, 1556175 ].map(d3_rgbString);
  var d3_category20 = [ 2062260, 11454440, 16744206, 16759672, 2924588, 10018698, 14034728, 16750742, 9725885, 12955861, 9197131, 12885140, 14907330, 16234194, 8355711, 13092807, 12369186, 14408589, 1556175, 10410725 ].map(d3_rgbString);
  var d3_category20b = [ 3750777, 5395619, 7040719, 10264286, 6519097, 9216594, 11915115, 13556636, 9202993, 12426809, 15186514, 15190932, 8666169, 11356490, 14049643, 15177372, 8077683, 10834324, 13528509, 14589654 ].map(d3_rgbString);
  var d3_category20c = [ 3244733, 7057110, 10406625, 13032431, 15095053, 16616764, 16625259, 16634018, 3253076, 7652470, 10607003, 13101504, 7695281, 10394312, 12369372, 14342891, 6513507, 9868950, 12434877, 14277081 ].map(d3_rgbString);
  d3.scale.quantile = function() {
    return d3_scale_quantile([], []);
  };
  function d3_scale_quantile(domain, range) {
    var thresholds;
    function rescale() {
      var k = 0, q = range.length;
      thresholds = [];
      while (++k < q) thresholds[k - 1] = d3.quantile(domain, k / q);
      return scale;
    }
    function scale(x) {
      if (!isNaN(x = +x)) return range[d3.bisect(thresholds, x)];
    }
    scale.domain = function(x) {
      if (!arguments.length) return domain;
      domain = x.map(d3_number).filter(d3_numeric).sort(d3_ascending);
      return rescale();
    };
    scale.range = function(x) {
      if (!arguments.length) return range;
      range = x;
      return rescale();
    };
    scale.quantiles = function() {
      return thresholds;
    };
    scale.invertExtent = function(y) {
      y = range.indexOf(y);
      return y < 0 ? [ NaN, NaN ] : [ y > 0 ? thresholds[y - 1] : domain[0], y < thresholds.length ? thresholds[y] : domain[domain.length - 1] ];
    };
    scale.copy = function() {
      return d3_scale_quantile(domain, range);
    };
    return rescale();
  }
  d3.scale.quantize = function() {
    return d3_scale_quantize(0, 1, [ 0, 1 ]);
  };
  function d3_scale_quantize(x0, x1, range) {
    var kx, i;
    function scale(x) {
      return range[Math.max(0, Math.min(i, Math.floor(kx * (x - x0))))];
    }
    function rescale() {
      kx = range.length / (x1 - x0);
      i = range.length - 1;
      return scale;
    }
    scale.domain = function(x) {
      if (!arguments.length) return [ x0, x1 ];
      x0 = +x[0];
      x1 = +x[x.length - 1];
      return rescale();
    };
    scale.range = function(x) {
      if (!arguments.length) return range;
      range = x;
      return rescale();
    };
    scale.invertExtent = function(y) {
      y = range.indexOf(y);
      y = y < 0 ? NaN : y / kx + x0;
      return [ y, y + 1 / kx ];
    };
    scale.copy = function() {
      return d3_scale_quantize(x0, x1, range);
    };
    return rescale();
  }
  d3.scale.threshold = function() {
    return d3_scale_threshold([ .5 ], [ 0, 1 ]);
  };
  function d3_scale_threshold(domain, range) {
    function scale(x) {
      if (x <= x) return range[d3.bisect(domain, x)];
    }
    scale.domain = function(_) {
      if (!arguments.length) return domain;
      domain = _;
      return scale;
    };
    scale.range = function(_) {
      if (!arguments.length) return range;
      range = _;
      return scale;
    };
    scale.invertExtent = function(y) {
      y = range.indexOf(y);
      return [ domain[y - 1], domain[y] ];
    };
    scale.copy = function() {
      return d3_scale_threshold(domain, range);
    };
    return scale;
  }
  d3.scale.identity = function() {
    return d3_scale_identity([ 0, 1 ]);
  };
  function d3_scale_identity(domain) {
    function identity(x) {
      return +x;
    }
    identity.invert = identity;
    identity.domain = identity.range = function(x) {
      if (!arguments.length) return domain;
      domain = x.map(identity);
      return identity;
    };
    identity.ticks = function(m) {
      return d3_scale_linearTicks(domain, m);
    };
    identity.tickFormat = function(m, format) {
      return d3_scale_linearTickFormat(domain, m, format);
    };
    identity.copy = function() {
      return d3_scale_identity(domain);
    };
    return identity;
  }
  d3.svg = {};
  function d3_zero() {
    return 0;
  }
  d3.svg.arc = function() {
    var innerRadius = d3_svg_arcInnerRadius, outerRadius = d3_svg_arcOuterRadius, cornerRadius = d3_zero, padRadius = d3_svg_arcAuto, startAngle = d3_svg_arcStartAngle, endAngle = d3_svg_arcEndAngle, padAngle = d3_svg_arcPadAngle;
    function arc() {
      var r0 = Math.max(0, +innerRadius.apply(this, arguments)), r1 = Math.max(0, +outerRadius.apply(this, arguments)), a0 = startAngle.apply(this, arguments) - halfπ, a1 = endAngle.apply(this, arguments) - halfπ, da = Math.abs(a1 - a0), cw = a0 > a1 ? 0 : 1;
      if (r1 < r0) rc = r1, r1 = r0, r0 = rc;
      if (da >= τε) return circleSegment(r1, cw) + (r0 ? circleSegment(r0, 1 - cw) : "") + "Z";
      var rc, cr, rp, ap, p0 = 0, p1 = 0, x0, y0, x1, y1, x2, y2, x3, y3, path = [];
      if (ap = (+padAngle.apply(this, arguments) || 0) / 2) {
        rp = padRadius === d3_svg_arcAuto ? Math.sqrt(r0 * r0 + r1 * r1) : +padRadius.apply(this, arguments);
        if (!cw) p1 *= -1;
        if (r1) p1 = d3_asin(rp / r1 * Math.sin(ap));
        if (r0) p0 = d3_asin(rp / r0 * Math.sin(ap));
      }
      if (r1) {
        x0 = r1 * Math.cos(a0 + p1);
        y0 = r1 * Math.sin(a0 + p1);
        x1 = r1 * Math.cos(a1 - p1);
        y1 = r1 * Math.sin(a1 - p1);
        var l1 = Math.abs(a1 - a0 - 2 * p1) <= π ? 0 : 1;
        if (p1 && d3_svg_arcSweep(x0, y0, x1, y1) === cw ^ l1) {
          var h1 = (a0 + a1) / 2;
          x0 = r1 * Math.cos(h1);
          y0 = r1 * Math.sin(h1);
          x1 = y1 = null;
        }
      } else {
        x0 = y0 = 0;
      }
      if (r0) {
        x2 = r0 * Math.cos(a1 - p0);
        y2 = r0 * Math.sin(a1 - p0);
        x3 = r0 * Math.cos(a0 + p0);
        y3 = r0 * Math.sin(a0 + p0);
        var l0 = Math.abs(a0 - a1 + 2 * p0) <= π ? 0 : 1;
        if (p0 && d3_svg_arcSweep(x2, y2, x3, y3) === 1 - cw ^ l0) {
          var h0 = (a0 + a1) / 2;
          x2 = r0 * Math.cos(h0);
          y2 = r0 * Math.sin(h0);
          x3 = y3 = null;
        }
      } else {
        x2 = y2 = 0;
      }
      if (da > ε && (rc = Math.min(Math.abs(r1 - r0) / 2, +cornerRadius.apply(this, arguments))) > .001) {
        cr = r0 < r1 ^ cw ? 0 : 1;
        var rc1 = rc, rc0 = rc;
        if (da < π) {
          var oc = x3 == null ? [ x2, y2 ] : x1 == null ? [ x0, y0 ] : d3_geom_polygonIntersect([ x0, y0 ], [ x3, y3 ], [ x1, y1 ], [ x2, y2 ]), ax = x0 - oc[0], ay = y0 - oc[1], bx = x1 - oc[0], by = y1 - oc[1], kc = 1 / Math.sin(Math.acos((ax * bx + ay * by) / (Math.sqrt(ax * ax + ay * ay) * Math.sqrt(bx * bx + by * by))) / 2), lc = Math.sqrt(oc[0] * oc[0] + oc[1] * oc[1]);
          rc0 = Math.min(rc, (r0 - lc) / (kc - 1));
          rc1 = Math.min(rc, (r1 - lc) / (kc + 1));
        }
        if (x1 != null) {
          var t30 = d3_svg_arcCornerTangents(x3 == null ? [ x2, y2 ] : [ x3, y3 ], [ x0, y0 ], r1, rc1, cw), t12 = d3_svg_arcCornerTangents([ x1, y1 ], [ x2, y2 ], r1, rc1, cw);
          if (rc === rc1) {
            path.push("M", t30[0], "A", rc1, ",", rc1, " 0 0,", cr, " ", t30[1], "A", r1, ",", r1, " 0 ", 1 - cw ^ d3_svg_arcSweep(t30[1][0], t30[1][1], t12[1][0], t12[1][1]), ",", cw, " ", t12[1], "A", rc1, ",", rc1, " 0 0,", cr, " ", t12[0]);
          } else {
            path.push("M", t30[0], "A", rc1, ",", rc1, " 0 1,", cr, " ", t12[0]);
          }
        } else {
          path.push("M", x0, ",", y0);
        }
        if (x3 != null) {
          var t03 = d3_svg_arcCornerTangents([ x0, y0 ], [ x3, y3 ], r0, -rc0, cw), t21 = d3_svg_arcCornerTangents([ x2, y2 ], x1 == null ? [ x0, y0 ] : [ x1, y1 ], r0, -rc0, cw);
          if (rc === rc0) {
            path.push("L", t21[0], "A", rc0, ",", rc0, " 0 0,", cr, " ", t21[1], "A", r0, ",", r0, " 0 ", cw ^ d3_svg_arcSweep(t21[1][0], t21[1][1], t03[1][0], t03[1][1]), ",", 1 - cw, " ", t03[1], "A", rc0, ",", rc0, " 0 0,", cr, " ", t03[0]);
          } else {
            path.push("L", t21[0], "A", rc0, ",", rc0, " 0 0,", cr, " ", t03[0]);
          }
        } else {
          path.push("L", x2, ",", y2);
        }
      } else {
        path.push("M", x0, ",", y0);
        if (x1 != null) path.push("A", r1, ",", r1, " 0 ", l1, ",", cw, " ", x1, ",", y1);
        path.push("L", x2, ",", y2);
        if (x3 != null) path.push("A", r0, ",", r0, " 0 ", l0, ",", 1 - cw, " ", x3, ",", y3);
      }
      path.push("Z");
      return path.join("");
    }
    function circleSegment(r1, cw) {
      return "M0," + r1 + "A" + r1 + "," + r1 + " 0 1," + cw + " 0," + -r1 + "A" + r1 + "," + r1 + " 0 1," + cw + " 0," + r1;
    }
    arc.innerRadius = function(v) {
      if (!arguments.length) return innerRadius;
      innerRadius = d3_functor(v);
      return arc;
    };
    arc.outerRadius = function(v) {
      if (!arguments.length) return outerRadius;
      outerRadius = d3_functor(v);
      return arc;
    };
    arc.cornerRadius = function(v) {
      if (!arguments.length) return cornerRadius;
      cornerRadius = d3_functor(v);
      return arc;
    };
    arc.padRadius = function(v) {
      if (!arguments.length) return padRadius;
      padRadius = v == d3_svg_arcAuto ? d3_svg_arcAuto : d3_functor(v);
      return arc;
    };
    arc.startAngle = function(v) {
      if (!arguments.length) return startAngle;
      startAngle = d3_functor(v);
      return arc;
    };
    arc.endAngle = function(v) {
      if (!arguments.length) return endAngle;
      endAngle = d3_functor(v);
      return arc;
    };
    arc.padAngle = function(v) {
      if (!arguments.length) return padAngle;
      padAngle = d3_functor(v);
      return arc;
    };
    arc.centroid = function() {
      var r = (+innerRadius.apply(this, arguments) + +outerRadius.apply(this, arguments)) / 2, a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - halfπ;
      return [ Math.cos(a) * r, Math.sin(a) * r ];
    };
    return arc;
  };
  var d3_svg_arcAuto = "auto";
  function d3_svg_arcInnerRadius(d) {
    return d.innerRadius;
  }
  function d3_svg_arcOuterRadius(d) {
    return d.outerRadius;
  }
  function d3_svg_arcStartAngle(d) {
    return d.startAngle;
  }
  function d3_svg_arcEndAngle(d) {
    return d.endAngle;
  }
  function d3_svg_arcPadAngle(d) {
    return d && d.padAngle;
  }
  function d3_svg_arcSweep(x0, y0, x1, y1) {
    return (x0 - x1) * y0 - (y0 - y1) * x0 > 0 ? 0 : 1;
  }
  function d3_svg_arcCornerTangents(p0, p1, r1, rc, cw) {
    var x01 = p0[0] - p1[0], y01 = p0[1] - p1[1], lo = (cw ? rc : -rc) / Math.sqrt(x01 * x01 + y01 * y01), ox = lo * y01, oy = -lo * x01, x1 = p0[0] + ox, y1 = p0[1] + oy, x2 = p1[0] + ox, y2 = p1[1] + oy, x3 = (x1 + x2) / 2, y3 = (y1 + y2) / 2, dx = x2 - x1, dy = y2 - y1, d2 = dx * dx + dy * dy, r = r1 - rc, D = x1 * y2 - x2 * y1, d = (dy < 0 ? -1 : 1) * Math.sqrt(Math.max(0, r * r * d2 - D * D)), cx0 = (D * dy - dx * d) / d2, cy0 = (-D * dx - dy * d) / d2, cx1 = (D * dy + dx * d) / d2, cy1 = (-D * dx + dy * d) / d2, dx0 = cx0 - x3, dy0 = cy0 - y3, dx1 = cx1 - x3, dy1 = cy1 - y3;
    if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;
    return [ [ cx0 - ox, cy0 - oy ], [ cx0 * r1 / r, cy0 * r1 / r ] ];
  }
  function d3_svg_line(projection) {
    var x = d3_geom_pointX, y = d3_geom_pointY, defined = d3_true, interpolate = d3_svg_lineLinear, interpolateKey = interpolate.key, tension = .7;
    function line(data) {
      var segments = [], points = [], i = -1, n = data.length, d, fx = d3_functor(x), fy = d3_functor(y);
      function segment() {
        segments.push("M", interpolate(projection(points), tension));
      }
      while (++i < n) {
        if (defined.call(this, d = data[i], i)) {
          points.push([ +fx.call(this, d, i), +fy.call(this, d, i) ]);
        } else if (points.length) {
          segment();
          points = [];
        }
      }
      if (points.length) segment();
      return segments.length ? segments.join("") : null;
    }
    line.x = function(_) {
      if (!arguments.length) return x;
      x = _;
      return line;
    };
    line.y = function(_) {
      if (!arguments.length) return y;
      y = _;
      return line;
    };
    line.defined = function(_) {
      if (!arguments.length) return defined;
      defined = _;
      return line;
    };
    line.interpolate = function(_) {
      if (!arguments.length) return interpolateKey;
      if (typeof _ === "function") interpolateKey = interpolate = _; else interpolateKey = (interpolate = d3_svg_lineInterpolators.get(_) || d3_svg_lineLinear).key;
      return line;
    };
    line.tension = function(_) {
      if (!arguments.length) return tension;
      tension = _;
      return line;
    };
    return line;
  }
  d3.svg.line = function() {
    return d3_svg_line(d3_identity);
  };
  var d3_svg_lineInterpolators = d3.map({
    linear: d3_svg_lineLinear,
    "linear-closed": d3_svg_lineLinearClosed,
    step: d3_svg_lineStep,
    "step-before": d3_svg_lineStepBefore,
    "step-after": d3_svg_lineStepAfter,
    basis: d3_svg_lineBasis,
    "basis-open": d3_svg_lineBasisOpen,
    "basis-closed": d3_svg_lineBasisClosed,
    bundle: d3_svg_lineBundle,
    cardinal: d3_svg_lineCardinal,
    "cardinal-open": d3_svg_lineCardinalOpen,
    "cardinal-closed": d3_svg_lineCardinalClosed,
    monotone: d3_svg_lineMonotone
  });
  d3_svg_lineInterpolators.forEach(function(key, value) {
    value.key = key;
    value.closed = /-closed$/.test(key);
  });
  function d3_svg_lineLinear(points) {
    return points.length > 1 ? points.join("L") : points + "Z";
  }
  function d3_svg_lineLinearClosed(points) {
    return points.join("L") + "Z";
  }
  function d3_svg_lineStep(points) {
    var i = 0, n = points.length, p = points[0], path = [ p[0], ",", p[1] ];
    while (++i < n) path.push("H", (p[0] + (p = points[i])[0]) / 2, "V", p[1]);
    if (n > 1) path.push("H", p[0]);
    return path.join("");
  }
  function d3_svg_lineStepBefore(points) {
    var i = 0, n = points.length, p = points[0], path = [ p[0], ",", p[1] ];
    while (++i < n) path.push("V", (p = points[i])[1], "H", p[0]);
    return path.join("");
  }
  function d3_svg_lineStepAfter(points) {
    var i = 0, n = points.length, p = points[0], path = [ p[0], ",", p[1] ];
    while (++i < n) path.push("H", (p = points[i])[0], "V", p[1]);
    return path.join("");
  }
  function d3_svg_lineCardinalOpen(points, tension) {
    return points.length < 4 ? d3_svg_lineLinear(points) : points[1] + d3_svg_lineHermite(points.slice(1, -1), d3_svg_lineCardinalTangents(points, tension));
  }
  function d3_svg_lineCardinalClosed(points, tension) {
    return points.length < 3 ? d3_svg_lineLinearClosed(points) : points[0] + d3_svg_lineHermite((points.push(points[0]), 
    points), d3_svg_lineCardinalTangents([ points[points.length - 2] ].concat(points, [ points[1] ]), tension));
  }
  function d3_svg_lineCardinal(points, tension) {
    return points.length < 3 ? d3_svg_lineLinear(points) : points[0] + d3_svg_lineHermite(points, d3_svg_lineCardinalTangents(points, tension));
  }
  function d3_svg_lineHermite(points, tangents) {
    if (tangents.length < 1 || points.length != tangents.length && points.length != tangents.length + 2) {
      return d3_svg_lineLinear(points);
    }
    var quad = points.length != tangents.length, path = "", p0 = points[0], p = points[1], t0 = tangents[0], t = t0, pi = 1;
    if (quad) {
      path += "Q" + (p[0] - t0[0] * 2 / 3) + "," + (p[1] - t0[1] * 2 / 3) + "," + p[0] + "," + p[1];
      p0 = points[1];
      pi = 2;
    }
    if (tangents.length > 1) {
      t = tangents[1];
      p = points[pi];
      pi++;
      path += "C" + (p0[0] + t0[0]) + "," + (p0[1] + t0[1]) + "," + (p[0] - t[0]) + "," + (p[1] - t[1]) + "," + p[0] + "," + p[1];
      for (var i = 2; i < tangents.length; i++, pi++) {
        p = points[pi];
        t = tangents[i];
        path += "S" + (p[0] - t[0]) + "," + (p[1] - t[1]) + "," + p[0] + "," + p[1];
      }
    }
    if (quad) {
      var lp = points[pi];
      path += "Q" + (p[0] + t[0] * 2 / 3) + "," + (p[1] + t[1] * 2 / 3) + "," + lp[0] + "," + lp[1];
    }
    return path;
  }
  function d3_svg_lineCardinalTangents(points, tension) {
    var tangents = [], a = (1 - tension) / 2, p0, p1 = points[0], p2 = points[1], i = 1, n = points.length;
    while (++i < n) {
      p0 = p1;
      p1 = p2;
      p2 = points[i];
      tangents.push([ a * (p2[0] - p0[0]), a * (p2[1] - p0[1]) ]);
    }
    return tangents;
  }
  function d3_svg_lineBasis(points) {
    if (points.length < 3) return d3_svg_lineLinear(points);
    var i = 1, n = points.length, pi = points[0], x0 = pi[0], y0 = pi[1], px = [ x0, x0, x0, (pi = points[1])[0] ], py = [ y0, y0, y0, pi[1] ], path = [ x0, ",", y0, "L", d3_svg_lineDot4(d3_svg_lineBasisBezier3, px), ",", d3_svg_lineDot4(d3_svg_lineBasisBezier3, py) ];
    points.push(points[n - 1]);
    while (++i <= n) {
      pi = points[i];
      px.shift();
      px.push(pi[0]);
      py.shift();
      py.push(pi[1]);
      d3_svg_lineBasisBezier(path, px, py);
    }
    points.pop();
    path.push("L", pi);
    return path.join("");
  }
  function d3_svg_lineBasisOpen(points) {
    if (points.length < 4) return d3_svg_lineLinear(points);
    var path = [], i = -1, n = points.length, pi, px = [ 0 ], py = [ 0 ];
    while (++i < 3) {
      pi = points[i];
      px.push(pi[0]);
      py.push(pi[1]);
    }
    path.push(d3_svg_lineDot4(d3_svg_lineBasisBezier3, px) + "," + d3_svg_lineDot4(d3_svg_lineBasisBezier3, py));
    --i;
    while (++i < n) {
      pi = points[i];
      px.shift();
      px.push(pi[0]);
      py.shift();
      py.push(pi[1]);
      d3_svg_lineBasisBezier(path, px, py);
    }
    return path.join("");
  }
  function d3_svg_lineBasisClosed(points) {
    var path, i = -1, n = points.length, m = n + 4, pi, px = [], py = [];
    while (++i < 4) {
      pi = points[i % n];
      px.push(pi[0]);
      py.push(pi[1]);
    }
    path = [ d3_svg_lineDot4(d3_svg_lineBasisBezier3, px), ",", d3_svg_lineDot4(d3_svg_lineBasisBezier3, py) ];
    --i;
    while (++i < m) {
      pi = points[i % n];
      px.shift();
      px.push(pi[0]);
      py.shift();
      py.push(pi[1]);
      d3_svg_lineBasisBezier(path, px, py);
    }
    return path.join("");
  }
  function d3_svg_lineBundle(points, tension) {
    var n = points.length - 1;
    if (n) {
      var x0 = points[0][0], y0 = points[0][1], dx = points[n][0] - x0, dy = points[n][1] - y0, i = -1, p, t;
      while (++i <= n) {
        p = points[i];
        t = i / n;
        p[0] = tension * p[0] + (1 - tension) * (x0 + t * dx);
        p[1] = tension * p[1] + (1 - tension) * (y0 + t * dy);
      }
    }
    return d3_svg_lineBasis(points);
  }
  function d3_svg_lineDot4(a, b) {
    return a[0] * b[0] + a[1] * b[1] + a[2] * b[2] + a[3] * b[3];
  }
  var d3_svg_lineBasisBezier1 = [ 0, 2 / 3, 1 / 3, 0 ], d3_svg_lineBasisBezier2 = [ 0, 1 / 3, 2 / 3, 0 ], d3_svg_lineBasisBezier3 = [ 0, 1 / 6, 2 / 3, 1 / 6 ];
  function d3_svg_lineBasisBezier(path, x, y) {
    path.push("C", d3_svg_lineDot4(d3_svg_lineBasisBezier1, x), ",", d3_svg_lineDot4(d3_svg_lineBasisBezier1, y), ",", d3_svg_lineDot4(d3_svg_lineBasisBezier2, x), ",", d3_svg_lineDot4(d3_svg_lineBasisBezier2, y), ",", d3_svg_lineDot4(d3_svg_lineBasisBezier3, x), ",", d3_svg_lineDot4(d3_svg_lineBasisBezier3, y));
  }
  function d3_svg_lineSlope(p0, p1) {
    return (p1[1] - p0[1]) / (p1[0] - p0[0]);
  }
  function d3_svg_lineFiniteDifferences(points) {
    var i = 0, j = points.length - 1, m = [], p0 = points[0], p1 = points[1], d = m[0] = d3_svg_lineSlope(p0, p1);
    while (++i < j) {
      m[i] = (d + (d = d3_svg_lineSlope(p0 = p1, p1 = points[i + 1]))) / 2;
    }
    m[i] = d;
    return m;
  }
  function d3_svg_lineMonotoneTangents(points) {
    var tangents = [], d, a, b, s, m = d3_svg_lineFiniteDifferences(points), i = -1, j = points.length - 1;
    while (++i < j) {
      d = d3_svg_lineSlope(points[i], points[i + 1]);
      if (abs(d) < ε) {
        m[i] = m[i + 1] = 0;
      } else {
        a = m[i] / d;
        b = m[i + 1] / d;
        s = a * a + b * b;
        if (s > 9) {
          s = d * 3 / Math.sqrt(s);
          m[i] = s * a;
          m[i + 1] = s * b;
        }
      }
    }
    i = -1;
    while (++i <= j) {
      s = (points[Math.min(j, i + 1)][0] - points[Math.max(0, i - 1)][0]) / (6 * (1 + m[i] * m[i]));
      tangents.push([ s || 0, m[i] * s || 0 ]);
    }
    return tangents;
  }
  function d3_svg_lineMonotone(points) {
    return points.length < 3 ? d3_svg_lineLinear(points) : points[0] + d3_svg_lineHermite(points, d3_svg_lineMonotoneTangents(points));
  }
  d3.svg.line.radial = function() {
    var line = d3_svg_line(d3_svg_lineRadial);
    line.radius = line.x, delete line.x;
    line.angle = line.y, delete line.y;
    return line;
  };
  function d3_svg_lineRadial(points) {
    var point, i = -1, n = points.length, r, a;
    while (++i < n) {
      point = points[i];
      r = point[0];
      a = point[1] - halfπ;
      point[0] = r * Math.cos(a);
      point[1] = r * Math.sin(a);
    }
    return points;
  }
  function d3_svg_area(projection) {
    var x0 = d3_geom_pointX, x1 = d3_geom_pointX, y0 = 0, y1 = d3_geom_pointY, defined = d3_true, interpolate = d3_svg_lineLinear, interpolateKey = interpolate.key, interpolateReverse = interpolate, L = "L", tension = .7;
    function area(data) {
      var segments = [], points0 = [], points1 = [], i = -1, n = data.length, d, fx0 = d3_functor(x0), fy0 = d3_functor(y0), fx1 = x0 === x1 ? function() {
        return x;
      } : d3_functor(x1), fy1 = y0 === y1 ? function() {
        return y;
      } : d3_functor(y1), x, y;
      function segment() {
        segments.push("M", interpolate(projection(points1), tension), L, interpolateReverse(projection(points0.reverse()), tension), "Z");
      }
      while (++i < n) {
        if (defined.call(this, d = data[i], i)) {
          points0.push([ x = +fx0.call(this, d, i), y = +fy0.call(this, d, i) ]);
          points1.push([ +fx1.call(this, d, i), +fy1.call(this, d, i) ]);
        } else if (points0.length) {
          segment();
          points0 = [];
          points1 = [];
        }
      }
      if (points0.length) segment();
      return segments.length ? segments.join("") : null;
    }
    area.x = function(_) {
      if (!arguments.length) return x1;
      x0 = x1 = _;
      return area;
    };
    area.x0 = function(_) {
      if (!arguments.length) return x0;
      x0 = _;
      return area;
    };
    area.x1 = function(_) {
      if (!arguments.length) return x1;
      x1 = _;
      return area;
    };
    area.y = function(_) {
      if (!arguments.length) return y1;
      y0 = y1 = _;
      return area;
    };
    area.y0 = function(_) {
      if (!arguments.length) return y0;
      y0 = _;
      return area;
    };
    area.y1 = function(_) {
      if (!arguments.length) return y1;
      y1 = _;
      return area;
    };
    area.defined = function(_) {
      if (!arguments.length) return defined;
      defined = _;
      return area;
    };
    area.interpolate = function(_) {
      if (!arguments.length) return interpolateKey;
      if (typeof _ === "function") interpolateKey = interpolate = _; else interpolateKey = (interpolate = d3_svg_lineInterpolators.get(_) || d3_svg_lineLinear).key;
      interpolateReverse = interpolate.reverse || interpolate;
      L = interpolate.closed ? "M" : "L";
      return area;
    };
    area.tension = function(_) {
      if (!arguments.length) return tension;
      tension = _;
      return area;
    };
    return area;
  }
  d3_svg_lineStepBefore.reverse = d3_svg_lineStepAfter;
  d3_svg_lineStepAfter.reverse = d3_svg_lineStepBefore;
  d3.svg.area = function() {
    return d3_svg_area(d3_identity);
  };
  d3.svg.area.radial = function() {
    var area = d3_svg_area(d3_svg_lineRadial);
    area.radius = area.x, delete area.x;
    area.innerRadius = area.x0, delete area.x0;
    area.outerRadius = area.x1, delete area.x1;
    area.angle = area.y, delete area.y;
    area.startAngle = area.y0, delete area.y0;
    area.endAngle = area.y1, delete area.y1;
    return area;
  };
  d3.svg.chord = function() {
    var source = d3_source, target = d3_target, radius = d3_svg_chordRadius, startAngle = d3_svg_arcStartAngle, endAngle = d3_svg_arcEndAngle;
    function chord(d, i) {
      var s = subgroup(this, source, d, i), t = subgroup(this, target, d, i);
      return "M" + s.p0 + arc(s.r, s.p1, s.a1 - s.a0) + (equals(s, t) ? curve(s.r, s.p1, s.r, s.p0) : curve(s.r, s.p1, t.r, t.p0) + arc(t.r, t.p1, t.a1 - t.a0) + curve(t.r, t.p1, s.r, s.p0)) + "Z";
    }
    function subgroup(self, f, d, i) {
      var subgroup = f.call(self, d, i), r = radius.call(self, subgroup, i), a0 = startAngle.call(self, subgroup, i) - halfπ, a1 = endAngle.call(self, subgroup, i) - halfπ;
      return {
        r: r,
        a0: a0,
        a1: a1,
        p0: [ r * Math.cos(a0), r * Math.sin(a0) ],
        p1: [ r * Math.cos(a1), r * Math.sin(a1) ]
      };
    }
    function equals(a, b) {
      return a.a0 == b.a0 && a.a1 == b.a1;
    }
    function arc(r, p, a) {
      return "A" + r + "," + r + " 0 " + +(a > π) + ",1 " + p;
    }
    function curve(r0, p0, r1, p1) {
      return "Q 0,0 " + p1;
    }
    chord.radius = function(v) {
      if (!arguments.length) return radius;
      radius = d3_functor(v);
      return chord;
    };
    chord.source = function(v) {
      if (!arguments.length) return source;
      source = d3_functor(v);
      return chord;
    };
    chord.target = function(v) {
      if (!arguments.length) return target;
      target = d3_functor(v);
      return chord;
    };
    chord.startAngle = function(v) {
      if (!arguments.length) return startAngle;
      startAngle = d3_functor(v);
      return chord;
    };
    chord.endAngle = function(v) {
      if (!arguments.length) return endAngle;
      endAngle = d3_functor(v);
      return chord;
    };
    return chord;
  };
  function d3_svg_chordRadius(d) {
    return d.radius;
  }
  d3.svg.diagonal = function() {
    var source = d3_source, target = d3_target, projection = d3_svg_diagonalProjection;
    function diagonal(d, i) {
      var p0 = source.call(this, d, i), p3 = target.call(this, d, i), m = (p0.y + p3.y) / 2, p = [ p0, {
        x: p0.x,
        y: m
      }, {
        x: p3.x,
        y: m
      }, p3 ];
      p = p.map(projection);
      return "M" + p[0] + "C" + p[1] + " " + p[2] + " " + p[3];
    }
    diagonal.source = function(x) {
      if (!arguments.length) return source;
      source = d3_functor(x);
      return diagonal;
    };
    diagonal.target = function(x) {
      if (!arguments.length) return target;
      target = d3_functor(x);
      return diagonal;
    };
    diagonal.projection = function(x) {
      if (!arguments.length) return projection;
      projection = x;
      return diagonal;
    };
    return diagonal;
  };
  function d3_svg_diagonalProjection(d) {
    return [ d.x, d.y ];
  }
  d3.svg.diagonal.radial = function() {
    var diagonal = d3.svg.diagonal(), projection = d3_svg_diagonalProjection, projection_ = diagonal.projection;
    diagonal.projection = function(x) {
      return arguments.length ? projection_(d3_svg_diagonalRadialProjection(projection = x)) : projection;
    };
    return diagonal;
  };
  function d3_svg_diagonalRadialProjection(projection) {
    return function() {
      var d = projection.apply(this, arguments), r = d[0], a = d[1] - halfπ;
      return [ r * Math.cos(a), r * Math.sin(a) ];
    };
  }
  d3.svg.symbol = function() {
    var type = d3_svg_symbolType, size = d3_svg_symbolSize;
    function symbol(d, i) {
      return (d3_svg_symbols.get(type.call(this, d, i)) || d3_svg_symbolCircle)(size.call(this, d, i));
    }
    symbol.type = function(x) {
      if (!arguments.length) return type;
      type = d3_functor(x);
      return symbol;
    };
    symbol.size = function(x) {
      if (!arguments.length) return size;
      size = d3_functor(x);
      return symbol;
    };
    return symbol;
  };
  function d3_svg_symbolSize() {
    return 64;
  }
  function d3_svg_symbolType() {
    return "circle";
  }
  function d3_svg_symbolCircle(size) {
    var r = Math.sqrt(size / π);
    return "M0," + r + "A" + r + "," + r + " 0 1,1 0," + -r + "A" + r + "," + r + " 0 1,1 0," + r + "Z";
  }
  var d3_svg_symbols = d3.map({
    circle: d3_svg_symbolCircle,
    cross: function(size) {
      var r = Math.sqrt(size / 5) / 2;
      return "M" + -3 * r + "," + -r + "H" + -r + "V" + -3 * r + "H" + r + "V" + -r + "H" + 3 * r + "V" + r + "H" + r + "V" + 3 * r + "H" + -r + "V" + r + "H" + -3 * r + "Z";
    },
    diamond: function(size) {
      var ry = Math.sqrt(size / (2 * d3_svg_symbolTan30)), rx = ry * d3_svg_symbolTan30;
      return "M0," + -ry + "L" + rx + ",0" + " 0," + ry + " " + -rx + ",0" + "Z";
    },
    square: function(size) {
      var r = Math.sqrt(size) / 2;
      return "M" + -r + "," + -r + "L" + r + "," + -r + " " + r + "," + r + " " + -r + "," + r + "Z";
    },
    "triangle-down": function(size) {
      var rx = Math.sqrt(size / d3_svg_symbolSqrt3), ry = rx * d3_svg_symbolSqrt3 / 2;
      return "M0," + ry + "L" + rx + "," + -ry + " " + -rx + "," + -ry + "Z";
    },
    "triangle-up": function(size) {
      var rx = Math.sqrt(size / d3_svg_symbolSqrt3), ry = rx * d3_svg_symbolSqrt3 / 2;
      return "M0," + -ry + "L" + rx + "," + ry + " " + -rx + "," + ry + "Z";
    }
  });
  d3.svg.symbolTypes = d3_svg_symbols.keys();
  var d3_svg_symbolSqrt3 = Math.sqrt(3), d3_svg_symbolTan30 = Math.tan(30 * d3_radians);
  d3_selectionPrototype.transition = function(name) {
    var id = d3_transitionInheritId || ++d3_transitionId, ns = d3_transitionNamespace(name), subgroups = [], subgroup, node, transition = d3_transitionInherit || {
      time: Date.now(),
      ease: d3_ease_cubicInOut,
      delay: 0,
      duration: 250
    };
    for (var j = -1, m = this.length; ++j < m; ) {
      subgroups.push(subgroup = []);
      for (var group = this[j], i = -1, n = group.length; ++i < n; ) {
        if (node = group[i]) d3_transitionNode(node, i, ns, id, transition);
        subgroup.push(node);
      }
    }
    return d3_transition(subgroups, ns, id);
  };
  d3_selectionPrototype.interrupt = function(name) {
    return this.each(name == null ? d3_selection_interrupt : d3_selection_interruptNS(d3_transitionNamespace(name)));
  };
  var d3_selection_interrupt = d3_selection_interruptNS(d3_transitionNamespace());
  function d3_selection_interruptNS(ns) {
    return function() {
      var lock, activeId, active;
      if ((lock = this[ns]) && (active = lock[activeId = lock.active])) {
        active.timer.c = null;
        active.timer.t = NaN;
        if (--lock.count) delete lock[activeId]; else delete this[ns];
        lock.active += .5;
        active.event && active.event.interrupt.call(this, this.__data__, active.index);
      }
    };
  }
  function d3_transition(groups, ns, id) {
    d3_subclass(groups, d3_transitionPrototype);
    groups.namespace = ns;
    groups.id = id;
    return groups;
  }
  var d3_transitionPrototype = [], d3_transitionId = 0, d3_transitionInheritId, d3_transitionInherit;
  d3_transitionPrototype.call = d3_selectionPrototype.call;
  d3_transitionPrototype.empty = d3_selectionPrototype.empty;
  d3_transitionPrototype.node = d3_selectionPrototype.node;
  d3_transitionPrototype.size = d3_selectionPrototype.size;
  d3.transition = function(selection, name) {
    return selection && selection.transition ? d3_transitionInheritId ? selection.transition(name) : selection : d3.selection().transition(selection);
  };
  d3.transition.prototype = d3_transitionPrototype;
  d3_transitionPrototype.select = function(selector) {
    var id = this.id, ns = this.namespace, subgroups = [], subgroup, subnode, node;
    selector = d3_selection_selector(selector);
    for (var j = -1, m = this.length; ++j < m; ) {
      subgroups.push(subgroup = []);
      for (var group = this[j], i = -1, n = group.length; ++i < n; ) {
        if ((node = group[i]) && (subnode = selector.call(node, node.__data__, i, j))) {
          if ("__data__" in node) subnode.__data__ = node.__data__;
          d3_transitionNode(subnode, i, ns, id, node[ns][id]);
          subgroup.push(subnode);
        } else {
          subgroup.push(null);
        }
      }
    }
    return d3_transition(subgroups, ns, id);
  };
  d3_transitionPrototype.selectAll = function(selector) {
    var id = this.id, ns = this.namespace, subgroups = [], subgroup, subnodes, node, subnode, transition;
    selector = d3_selection_selectorAll(selector);
    for (var j = -1, m = this.length; ++j < m; ) {
      for (var group = this[j], i = -1, n = group.length; ++i < n; ) {
        if (node = group[i]) {
          transition = node[ns][id];
          subnodes = selector.call(node, node.__data__, i, j);
          subgroups.push(subgroup = []);
          for (var k = -1, o = subnodes.length; ++k < o; ) {
            if (subnode = subnodes[k]) d3_transitionNode(subnode, k, ns, id, transition);
            subgroup.push(subnode);
          }
        }
      }
    }
    return d3_transition(subgroups, ns, id);
  };
  d3_transitionPrototype.filter = function(filter) {
    var subgroups = [], subgroup, group, node;
    if (typeof filter !== "function") filter = d3_selection_filter(filter);
    for (var j = 0, m = this.length; j < m; j++) {
      subgroups.push(subgroup = []);
      for (var group = this[j], i = 0, n = group.length; i < n; i++) {
        if ((node = group[i]) && filter.call(node, node.__data__, i, j)) {
          subgroup.push(node);
        }
      }
    }
    return d3_transition(subgroups, this.namespace, this.id);
  };
  d3_transitionPrototype.tween = function(name, tween) {
    var id = this.id, ns = this.namespace;
    if (arguments.length < 2) return this.node()[ns][id].tween.get(name);
    return d3_selection_each(this, tween == null ? function(node) {
      node[ns][id].tween.remove(name);
    } : function(node) {
      node[ns][id].tween.set(name, tween);
    });
  };
  function d3_transition_tween(groups, name, value, tween) {
    var id = groups.id, ns = groups.namespace;
    return d3_selection_each(groups, typeof value === "function" ? function(node, i, j) {
      node[ns][id].tween.set(name, tween(value.call(node, node.__data__, i, j)));
    } : (value = tween(value), function(node) {
      node[ns][id].tween.set(name, value);
    }));
  }
  d3_transitionPrototype.attr = function(nameNS, value) {
    if (arguments.length < 2) {
      for (value in nameNS) this.attr(value, nameNS[value]);
      return this;
    }
    var interpolate = nameNS == "transform" ? d3_interpolateTransform : d3_interpolate, name = d3.ns.qualify(nameNS);
    function attrNull() {
      this.removeAttribute(name);
    }
    function attrNullNS() {
      this.removeAttributeNS(name.space, name.local);
    }
    function attrTween(b) {
      return b == null ? attrNull : (b += "", function() {
        var a = this.getAttribute(name), i;
        return a !== b && (i = interpolate(a, b), function(t) {
          this.setAttribute(name, i(t));
        });
      });
    }
    function attrTweenNS(b) {
      return b == null ? attrNullNS : (b += "", function() {
        var a = this.getAttributeNS(name.space, name.local), i;
        return a !== b && (i = interpolate(a, b), function(t) {
          this.setAttributeNS(name.space, name.local, i(t));
        });
      });
    }
    return d3_transition_tween(this, "attr." + nameNS, value, name.local ? attrTweenNS : attrTween);
  };
  d3_transitionPrototype.attrTween = function(nameNS, tween) {
    var name = d3.ns.qualify(nameNS);
    function attrTween(d, i) {
      var f = tween.call(this, d, i, this.getAttribute(name));
      return f && function(t) {
        this.setAttribute(name, f(t));
      };
    }
    function attrTweenNS(d, i) {
      var f = tween.call(this, d, i, this.getAttributeNS(name.space, name.local));
      return f && function(t) {
        this.setAttributeNS(name.space, name.local, f(t));
      };
    }
    return this.tween("attr." + nameNS, name.local ? attrTweenNS : attrTween);
  };
  d3_transitionPrototype.style = function(name, value, priority) {
    var n = arguments.length;
    if (n < 3) {
      if (typeof name !== "string") {
        if (n < 2) value = "";
        for (priority in name) this.style(priority, name[priority], value);
        return this;
      }
      priority = "";
    }
    function styleNull() {
      this.style.removeProperty(name);
    }
    function styleString(b) {
      return b == null ? styleNull : (b += "", function() {
        var a = d3_window(this).getComputedStyle(this, null).getPropertyValue(name), i;
        return a !== b && (i = d3_interpolate(a, b), function(t) {
          this.style.setProperty(name, i(t), priority);
        });
      });
    }
    return d3_transition_tween(this, "style." + name, value, styleString);
  };
  d3_transitionPrototype.styleTween = function(name, tween, priority) {
    if (arguments.length < 3) priority = "";
    function styleTween(d, i) {
      var f = tween.call(this, d, i, d3_window(this).getComputedStyle(this, null).getPropertyValue(name));
      return f && function(t) {
        this.style.setProperty(name, f(t), priority);
      };
    }
    return this.tween("style." + name, styleTween);
  };
  d3_transitionPrototype.text = function(value) {
    return d3_transition_tween(this, "text", value, d3_transition_text);
  };
  function d3_transition_text(b) {
    if (b == null) b = "";
    return function() {
      this.textContent = b;
    };
  }
  d3_transitionPrototype.remove = function() {
    var ns = this.namespace;
    return this.each("end.transition", function() {
      var p;
      if (this[ns].count < 2 && (p = this.parentNode)) p.removeChild(this);
    });
  };
  d3_transitionPrototype.ease = function(value) {
    var id = this.id, ns = this.namespace;
    if (arguments.length < 1) return this.node()[ns][id].ease;
    if (typeof value !== "function") value = d3.ease.apply(d3, arguments);
    return d3_selection_each(this, function(node) {
      node[ns][id].ease = value;
    });
  };
  d3_transitionPrototype.delay = function(value) {
    var id = this.id, ns = this.namespace;
    if (arguments.length < 1) return this.node()[ns][id].delay;
    return d3_selection_each(this, typeof value === "function" ? function(node, i, j) {
      node[ns][id].delay = +value.call(node, node.__data__, i, j);
    } : (value = +value, function(node) {
      node[ns][id].delay = value;
    }));
  };
  d3_transitionPrototype.duration = function(value) {
    var id = this.id, ns = this.namespace;
    if (arguments.length < 1) return this.node()[ns][id].duration;
    return d3_selection_each(this, typeof value === "function" ? function(node, i, j) {
      node[ns][id].duration = Math.max(1, value.call(node, node.__data__, i, j));
    } : (value = Math.max(1, value), function(node) {
      node[ns][id].duration = value;
    }));
  };
  d3_transitionPrototype.each = function(type, listener) {
    var id = this.id, ns = this.namespace;
    if (arguments.length < 2) {
      var inherit = d3_transitionInherit, inheritId = d3_transitionInheritId;
      try {
        d3_transitionInheritId = id;
        d3_selection_each(this, function(node, i, j) {
          d3_transitionInherit = node[ns][id];
          type.call(node, node.__data__, i, j);
        });
      } finally {
        d3_transitionInherit = inherit;
        d3_transitionInheritId = inheritId;
      }
    } else {
      d3_selection_each(this, function(node) {
        var transition = node[ns][id];
        (transition.event || (transition.event = d3.dispatch("start", "end", "interrupt"))).on(type, listener);
      });
    }
    return this;
  };
  d3_transitionPrototype.transition = function() {
    var id0 = this.id, id1 = ++d3_transitionId, ns = this.namespace, subgroups = [], subgroup, group, node, transition;
    for (var j = 0, m = this.length; j < m; j++) {
      subgroups.push(subgroup = []);
      for (var group = this[j], i = 0, n = group.length; i < n; i++) {
        if (node = group[i]) {
          transition = node[ns][id0];
          d3_transitionNode(node, i, ns, id1, {
            time: transition.time,
            ease: transition.ease,
            delay: transition.delay + transition.duration,
            duration: transition.duration
          });
        }
        subgroup.push(node);
      }
    }
    return d3_transition(subgroups, ns, id1);
  };
  function d3_transitionNamespace(name) {
    return name == null ? "__transition__" : "__transition_" + name + "__";
  }
  function d3_transitionNode(node, i, ns, id, inherit) {
    var lock = node[ns] || (node[ns] = {
      active: 0,
      count: 0
    }), transition = lock[id], time, timer, duration, ease, tweens;
    function schedule(elapsed) {
      var delay = transition.delay;
      timer.t = delay + time;
      if (delay <= elapsed) return start(elapsed - delay);
      timer.c = start;
    }
    function start(elapsed) {
      var activeId = lock.active, active = lock[activeId];
      if (active) {
        active.timer.c = null;
        active.timer.t = NaN;
        --lock.count;
        delete lock[activeId];
        active.event && active.event.interrupt.call(node, node.__data__, active.index);
      }
      for (var cancelId in lock) {
        if (+cancelId < id) {
          var cancel = lock[cancelId];
          cancel.timer.c = null;
          cancel.timer.t = NaN;
          --lock.count;
          delete lock[cancelId];
        }
      }
      timer.c = tick;
      d3_timer(function() {
        if (timer.c && tick(elapsed || 1)) {
          timer.c = null;
          timer.t = NaN;
        }
        return 1;
      }, 0, time);
      lock.active = id;
      transition.event && transition.event.start.call(node, node.__data__, i);
      tweens = [];
      transition.tween.forEach(function(key, value) {
        if (value = value.call(node, node.__data__, i)) {
          tweens.push(value);
        }
      });
      ease = transition.ease;
      duration = transition.duration;
    }
    function tick(elapsed) {
      var t = elapsed / duration, e = ease(t), n = tweens.length;
      while (n > 0) {
        tweens[--n].call(node, e);
      }
      if (t >= 1) {
        transition.event && transition.event.end.call(node, node.__data__, i);
        if (--lock.count) delete lock[id]; else delete node[ns];
        return 1;
      }
    }
    if (!transition) {
      time = inherit.time;
      timer = d3_timer(schedule, 0, time);
      transition = lock[id] = {
        tween: new d3_Map(),
        time: time,
        timer: timer,
        delay: inherit.delay,
        duration: inherit.duration,
        ease: inherit.ease,
        index: i
      };
      inherit = null;
      ++lock.count;
    }
  }
  d3.svg.axis = function() {
    var scale = d3.scale.linear(), orient = d3_svg_axisDefaultOrient, innerTickSize = 6, outerTickSize = 6, tickPadding = 3, tickArguments_ = [ 10 ], tickValues = null, tickFormat_;
    function axis(g) {
      g.each(function() {
        var g = d3.select(this);
        var scale0 = this.__chart__ || scale, scale1 = this.__chart__ = scale.copy();
        var ticks = tickValues == null ? scale1.ticks ? scale1.ticks.apply(scale1, tickArguments_) : scale1.domain() : tickValues, tickFormat = tickFormat_ == null ? scale1.tickFormat ? scale1.tickFormat.apply(scale1, tickArguments_) : d3_identity : tickFormat_, tick = g.selectAll(".tick").data(ticks, scale1), tickEnter = tick.enter().insert("g", ".domain").attr("class", "tick").style("opacity", ε), tickExit = d3.transition(tick.exit()).style("opacity", ε).remove(), tickUpdate = d3.transition(tick.order()).style("opacity", 1), tickSpacing = Math.max(innerTickSize, 0) + tickPadding, tickTransform;
        var range = d3_scaleRange(scale1), path = g.selectAll(".domain").data([ 0 ]), pathUpdate = (path.enter().append("path").attr("class", "domain"), 
        d3.transition(path));
        tickEnter.append("line");
        tickEnter.append("text");
        var lineEnter = tickEnter.select("line"), lineUpdate = tickUpdate.select("line"), text = tick.select("text").text(tickFormat), textEnter = tickEnter.select("text"), textUpdate = tickUpdate.select("text"), sign = orient === "top" || orient === "left" ? -1 : 1, x1, x2, y1, y2;
        if (orient === "bottom" || orient === "top") {
          tickTransform = d3_svg_axisX, x1 = "x", y1 = "y", x2 = "x2", y2 = "y2";
          text.attr("dy", sign < 0 ? "0em" : ".71em").style("text-anchor", "middle");
          pathUpdate.attr("d", "M" + range[0] + "," + sign * outerTickSize + "V0H" + range[1] + "V" + sign * outerTickSize);
        } else {
          tickTransform = d3_svg_axisY, x1 = "y", y1 = "x", x2 = "y2", y2 = "x2";
          text.attr("dy", ".32em").style("text-anchor", sign < 0 ? "end" : "start");
          pathUpdate.attr("d", "M" + sign * outerTickSize + "," + range[0] + "H0V" + range[1] + "H" + sign * outerTickSize);
        }
        lineEnter.attr(y2, sign * innerTickSize);
        textEnter.attr(y1, sign * tickSpacing);
        lineUpdate.attr(x2, 0).attr(y2, sign * innerTickSize);
        textUpdate.attr(x1, 0).attr(y1, sign * tickSpacing);
        if (scale1.rangeBand) {
          var x = scale1, dx = x.rangeBand() / 2;
          scale0 = scale1 = function(d) {
            return x(d) + dx;
          };
        } else if (scale0.rangeBand) {
          scale0 = scale1;
        } else {
          tickExit.call(tickTransform, scale1, scale0);
        }
        tickEnter.call(tickTransform, scale0, scale1);
        tickUpdate.call(tickTransform, scale1, scale1);
      });
    }
    axis.scale = function(x) {
      if (!arguments.length) return scale;
      scale = x;
      return axis;
    };
    axis.orient = function(x) {
      if (!arguments.length) return orient;
      orient = x in d3_svg_axisOrients ? x + "" : d3_svg_axisDefaultOrient;
      return axis;
    };
    axis.ticks = function() {
      if (!arguments.length) return tickArguments_;
      tickArguments_ = d3_array(arguments);
      return axis;
    };
    axis.tickValues = function(x) {
      if (!arguments.length) return tickValues;
      tickValues = x;
      return axis;
    };
    axis.tickFormat = function(x) {
      if (!arguments.length) return tickFormat_;
      tickFormat_ = x;
      return axis;
    };
    axis.tickSize = function(x) {
      var n = arguments.length;
      if (!n) return innerTickSize;
      innerTickSize = +x;
      outerTickSize = +arguments[n - 1];
      return axis;
    };
    axis.innerTickSize = function(x) {
      if (!arguments.length) return innerTickSize;
      innerTickSize = +x;
      return axis;
    };
    axis.outerTickSize = function(x) {
      if (!arguments.length) return outerTickSize;
      outerTickSize = +x;
      return axis;
    };
    axis.tickPadding = function(x) {
      if (!arguments.length) return tickPadding;
      tickPadding = +x;
      return axis;
    };
    axis.tickSubdivide = function() {
      return arguments.length && axis;
    };
    return axis;
  };
  var d3_svg_axisDefaultOrient = "bottom", d3_svg_axisOrients = {
    top: 1,
    right: 1,
    bottom: 1,
    left: 1
  };
  function d3_svg_axisX(selection, x0, x1) {
    selection.attr("transform", function(d) {
      var v0 = x0(d);
      return "translate(" + (isFinite(v0) ? v0 : x1(d)) + ",0)";
    });
  }
  function d3_svg_axisY(selection, y0, y1) {
    selection.attr("transform", function(d) {
      var v0 = y0(d);
      return "translate(0," + (isFinite(v0) ? v0 : y1(d)) + ")";
    });
  }
  d3.svg.brush = function() {
    var event = d3_eventDispatch(brush, "brushstart", "brush", "brushend"), x = null, y = null, xExtent = [ 0, 0 ], yExtent = [ 0, 0 ], xExtentDomain, yExtentDomain, xClamp = true, yClamp = true, resizes = d3_svg_brushResizes[0];
    function brush(g) {
      g.each(function() {
        var g = d3.select(this).style("pointer-events", "all").style("-webkit-tap-highlight-color", "rgba(0,0,0,0)").on("mousedown.brush", brushstart).on("touchstart.brush", brushstart);
        var background = g.selectAll(".background").data([ 0 ]);
        background.enter().append("rect").attr("class", "background").style("visibility", "hidden").style("cursor", "crosshair");
        g.selectAll(".extent").data([ 0 ]).enter().append("rect").attr("class", "extent").style("cursor", "move");
        var resize = g.selectAll(".resize").data(resizes, d3_identity);
        resize.exit().remove();
        resize.enter().append("g").attr("class", function(d) {
          return "resize " + d;
        }).style("cursor", function(d) {
          return d3_svg_brushCursor[d];
        }).append("rect").attr("x", function(d) {
          return /[ew]$/.test(d) ? -3 : null;
        }).attr("y", function(d) {
          return /^[ns]/.test(d) ? -3 : null;
        }).attr("width", 6).attr("height", 6).style("visibility", "hidden");
        resize.style("display", brush.empty() ? "none" : null);
        var gUpdate = d3.transition(g), backgroundUpdate = d3.transition(background), range;
        if (x) {
          range = d3_scaleRange(x);
          backgroundUpdate.attr("x", range[0]).attr("width", range[1] - range[0]);
          redrawX(gUpdate);
        }
        if (y) {
          range = d3_scaleRange(y);
          backgroundUpdate.attr("y", range[0]).attr("height", range[1] - range[0]);
          redrawY(gUpdate);
        }
        redraw(gUpdate);
      });
    }
    brush.event = function(g) {
      g.each(function() {
        var event_ = event.of(this, arguments), extent1 = {
          x: xExtent,
          y: yExtent,
          i: xExtentDomain,
          j: yExtentDomain
        }, extent0 = this.__chart__ || extent1;
        this.__chart__ = extent1;
        if (d3_transitionInheritId) {
          d3.select(this).transition().each("start.brush", function() {
            xExtentDomain = extent0.i;
            yExtentDomain = extent0.j;
            xExtent = extent0.x;
            yExtent = extent0.y;
            event_({
              type: "brushstart"
            });
          }).tween("brush:brush", function() {
            var xi = d3_interpolateArray(xExtent, extent1.x), yi = d3_interpolateArray(yExtent, extent1.y);
            xExtentDomain = yExtentDomain = null;
            return function(t) {
              xExtent = extent1.x = xi(t);
              yExtent = extent1.y = yi(t);
              event_({
                type: "brush",
                mode: "resize"
              });
            };
          }).each("end.brush", function() {
            xExtentDomain = extent1.i;
            yExtentDomain = extent1.j;
            event_({
              type: "brush",
              mode: "resize"
            });
            event_({
              type: "brushend"
            });
          });
        } else {
          event_({
            type: "brushstart"
          });
          event_({
            type: "brush",
            mode: "resize"
          });
          event_({
            type: "brushend"
          });
        }
      });
    };
    function redraw(g) {
      g.selectAll(".resize").attr("transform", function(d) {
        return "translate(" + xExtent[+/e$/.test(d)] + "," + yExtent[+/^s/.test(d)] + ")";
      });
    }
    function redrawX(g) {
      g.select(".extent").attr("x", xExtent[0]);
      g.selectAll(".extent,.n>rect,.s>rect").attr("width", xExtent[1] - xExtent[0]);
    }
    function redrawY(g) {
      g.select(".extent").attr("y", yExtent[0]);
      g.selectAll(".extent,.e>rect,.w>rect").attr("height", yExtent[1] - yExtent[0]);
    }
    function brushstart() {
      var target = this, eventTarget = d3.select(d3.event.target), event_ = event.of(target, arguments), g = d3.select(target), resizing = eventTarget.datum(), resizingX = !/^(n|s)$/.test(resizing) && x, resizingY = !/^(e|w)$/.test(resizing) && y, dragging = eventTarget.classed("extent"), dragRestore = d3_event_dragSuppress(target), center, origin = d3.mouse(target), offset;
      var w = d3.select(d3_window(target)).on("keydown.brush", keydown).on("keyup.brush", keyup);
      if (d3.event.changedTouches) {
        w.on("touchmove.brush", brushmove).on("touchend.brush", brushend);
      } else {
        w.on("mousemove.brush", brushmove).on("mouseup.brush", brushend);
      }
      g.interrupt().selectAll("*").interrupt();
      if (dragging) {
        origin[0] = xExtent[0] - origin[0];
        origin[1] = yExtent[0] - origin[1];
      } else if (resizing) {
        var ex = +/w$/.test(resizing), ey = +/^n/.test(resizing);
        offset = [ xExtent[1 - ex] - origin[0], yExtent[1 - ey] - origin[1] ];
        origin[0] = xExtent[ex];
        origin[1] = yExtent[ey];
      } else if (d3.event.altKey) center = origin.slice();
      g.style("pointer-events", "none").selectAll(".resize").style("display", null);
      d3.select("body").style("cursor", eventTarget.style("cursor"));
      event_({
        type: "brushstart"
      });
      brushmove();
      function keydown() {
        if (d3.event.keyCode == 32) {
          if (!dragging) {
            center = null;
            origin[0] -= xExtent[1];
            origin[1] -= yExtent[1];
            dragging = 2;
          }
          d3_eventPreventDefault();
        }
      }
      function keyup() {
        if (d3.event.keyCode == 32 && dragging == 2) {
          origin[0] += xExtent[1];
          origin[1] += yExtent[1];
          dragging = 0;
          d3_eventPreventDefault();
        }
      }
      function brushmove() {
        var point = d3.mouse(target), moved = false;
        if (offset) {
          point[0] += offset[0];
          point[1] += offset[1];
        }
        if (!dragging) {
          if (d3.event.altKey) {
            if (!center) center = [ (xExtent[0] + xExtent[1]) / 2, (yExtent[0] + yExtent[1]) / 2 ];
            origin[0] = xExtent[+(point[0] < center[0])];
            origin[1] = yExtent[+(point[1] < center[1])];
          } else center = null;
        }
        if (resizingX && move1(point, x, 0)) {
          redrawX(g);
          moved = true;
        }
        if (resizingY && move1(point, y, 1)) {
          redrawY(g);
          moved = true;
        }
        if (moved) {
          redraw(g);
          event_({
            type: "brush",
            mode: dragging ? "move" : "resize"
          });
        }
      }
      function move1(point, scale, i) {
        var range = d3_scaleRange(scale), r0 = range[0], r1 = range[1], position = origin[i], extent = i ? yExtent : xExtent, size = extent[1] - extent[0], min, max;
        if (dragging) {
          r0 -= position;
          r1 -= size + position;
        }
        min = (i ? yClamp : xClamp) ? Math.max(r0, Math.min(r1, point[i])) : point[i];
        if (dragging) {
          max = (min += position) + size;
        } else {
          if (center) position = Math.max(r0, Math.min(r1, 2 * center[i] - min));
          if (position < min) {
            max = min;
            min = position;
          } else {
            max = position;
          }
        }
        if (extent[0] != min || extent[1] != max) {
          if (i) yExtentDomain = null; else xExtentDomain = null;
          extent[0] = min;
          extent[1] = max;
          return true;
        }
      }
      function brushend() {
        brushmove();
        g.style("pointer-events", "all").selectAll(".resize").style("display", brush.empty() ? "none" : null);
        d3.select("body").style("cursor", null);
        w.on("mousemove.brush", null).on("mouseup.brush", null).on("touchmove.brush", null).on("touchend.brush", null).on("keydown.brush", null).on("keyup.brush", null);
        dragRestore();
        event_({
          type: "brushend"
        });
      }
    }
    brush.x = function(z) {
      if (!arguments.length) return x;
      x = z;
      resizes = d3_svg_brushResizes[!x << 1 | !y];
      return brush;
    };
    brush.y = function(z) {
      if (!arguments.length) return y;
      y = z;
      resizes = d3_svg_brushResizes[!x << 1 | !y];
      return brush;
    };
    brush.clamp = function(z) {
      if (!arguments.length) return x && y ? [ xClamp, yClamp ] : x ? xClamp : y ? yClamp : null;
      if (x && y) xClamp = !!z[0], yClamp = !!z[1]; else if (x) xClamp = !!z; else if (y) yClamp = !!z;
      return brush;
    };
    brush.extent = function(z) {
      var x0, x1, y0, y1, t;
      if (!arguments.length) {
        if (x) {
          if (xExtentDomain) {
            x0 = xExtentDomain[0], x1 = xExtentDomain[1];
          } else {
            x0 = xExtent[0], x1 = xExtent[1];
            if (x.invert) x0 = x.invert(x0), x1 = x.invert(x1);
            if (x1 < x0) t = x0, x0 = x1, x1 = t;
          }
        }
        if (y) {
          if (yExtentDomain) {
            y0 = yExtentDomain[0], y1 = yExtentDomain[1];
          } else {
            y0 = yExtent[0], y1 = yExtent[1];
            if (y.invert) y0 = y.invert(y0), y1 = y.invert(y1);
            if (y1 < y0) t = y0, y0 = y1, y1 = t;
          }
        }
        return x && y ? [ [ x0, y0 ], [ x1, y1 ] ] : x ? [ x0, x1 ] : y && [ y0, y1 ];
      }
      if (x) {
        x0 = z[0], x1 = z[1];
        if (y) x0 = x0[0], x1 = x1[0];
        xExtentDomain = [ x0, x1 ];
        if (x.invert) x0 = x(x0), x1 = x(x1);
        if (x1 < x0) t = x0, x0 = x1, x1 = t;
        if (x0 != xExtent[0] || x1 != xExtent[1]) xExtent = [ x0, x1 ];
      }
      if (y) {
        y0 = z[0], y1 = z[1];
        if (x) y0 = y0[1], y1 = y1[1];
        yExtentDomain = [ y0, y1 ];
        if (y.invert) y0 = y(y0), y1 = y(y1);
        if (y1 < y0) t = y0, y0 = y1, y1 = t;
        if (y0 != yExtent[0] || y1 != yExtent[1]) yExtent = [ y0, y1 ];
      }
      return brush;
    };
    brush.clear = function() {
      if (!brush.empty()) {
        xExtent = [ 0, 0 ], yExtent = [ 0, 0 ];
        xExtentDomain = yExtentDomain = null;
      }
      return brush;
    };
    brush.empty = function() {
      return !!x && xExtent[0] == xExtent[1] || !!y && yExtent[0] == yExtent[1];
    };
    return d3.rebind(brush, event, "on");
  };
  var d3_svg_brushCursor = {
    n: "ns-resize",
    e: "ew-resize",
    s: "ns-resize",
    w: "ew-resize",
    nw: "nwse-resize",
    ne: "nesw-resize",
    se: "nwse-resize",
    sw: "nesw-resize"
  };
  var d3_svg_brushResizes = [ [ "n", "e", "s", "w", "nw", "ne", "se", "sw" ], [ "e", "w" ], [ "n", "s" ], [] ];
  var d3_time_format = d3_time.format = d3_locale_enUS.timeFormat;
  var d3_time_formatUtc = d3_time_format.utc;
  var d3_time_formatIso = d3_time_formatUtc("%Y-%m-%dT%H:%M:%S.%LZ");
  d3_time_format.iso = Date.prototype.toISOString && +new Date("2000-01-01T00:00:00.000Z") ? d3_time_formatIsoNative : d3_time_formatIso;
  function d3_time_formatIsoNative(date) {
    return date.toISOString();
  }
  d3_time_formatIsoNative.parse = function(string) {
    var date = new Date(string);
    return isNaN(date) ? null : date;
  };
  d3_time_formatIsoNative.toString = d3_time_formatIso.toString;
  d3_time.second = d3_time_interval(function(date) {
    return new d3_date(Math.floor(date / 1e3) * 1e3);
  }, function(date, offset) {
    date.setTime(date.getTime() + Math.floor(offset) * 1e3);
  }, function(date) {
    return date.getSeconds();
  });
  d3_time.seconds = d3_time.second.range;
  d3_time.seconds.utc = d3_time.second.utc.range;
  d3_time.minute = d3_time_interval(function(date) {
    return new d3_date(Math.floor(date / 6e4) * 6e4);
  }, function(date, offset) {
    date.setTime(date.getTime() + Math.floor(offset) * 6e4);
  }, function(date) {
    return date.getMinutes();
  });
  d3_time.minutes = d3_time.minute.range;
  d3_time.minutes.utc = d3_time.minute.utc.range;
  d3_time.hour = d3_time_interval(function(date) {
    var timezone = date.getTimezoneOffset() / 60;
    return new d3_date((Math.floor(date / 36e5 - timezone) + timezone) * 36e5);
  }, function(date, offset) {
    date.setTime(date.getTime() + Math.floor(offset) * 36e5);
  }, function(date) {
    return date.getHours();
  });
  d3_time.hours = d3_time.hour.range;
  d3_time.hours.utc = d3_time.hour.utc.range;
  d3_time.month = d3_time_interval(function(date) {
    date = d3_time.day(date);
    date.setDate(1);
    return date;
  }, function(date, offset) {
    date.setMonth(date.getMonth() + offset);
  }, function(date) {
    return date.getMonth();
  });
  d3_time.months = d3_time.month.range;
  d3_time.months.utc = d3_time.month.utc.range;
  function d3_time_scale(linear, methods, format) {
    function scale(x) {
      return linear(x);
    }
    scale.invert = function(x) {
      return d3_time_scaleDate(linear.invert(x));
    };
    scale.domain = function(x) {
      if (!arguments.length) return linear.domain().map(d3_time_scaleDate);
      linear.domain(x);
      return scale;
    };
    function tickMethod(extent, count) {
      var span = extent[1] - extent[0], target = span / count, i = d3.bisect(d3_time_scaleSteps, target);
      return i == d3_time_scaleSteps.length ? [ methods.year, d3_scale_linearTickRange(extent.map(function(d) {
        return d / 31536e6;
      }), count)[2] ] : !i ? [ d3_time_scaleMilliseconds, d3_scale_linearTickRange(extent, count)[2] ] : methods[target / d3_time_scaleSteps[i - 1] < d3_time_scaleSteps[i] / target ? i - 1 : i];
    }
    scale.nice = function(interval, skip) {
      var domain = scale.domain(), extent = d3_scaleExtent(domain), method = interval == null ? tickMethod(extent, 10) : typeof interval === "number" && tickMethod(extent, interval);
      if (method) interval = method[0], skip = method[1];
      function skipped(date) {
        return !isNaN(date) && !interval.range(date, d3_time_scaleDate(+date + 1), skip).length;
      }
      return scale.domain(d3_scale_nice(domain, skip > 1 ? {
        floor: function(date) {
          while (skipped(date = interval.floor(date))) date = d3_time_scaleDate(date - 1);
          return date;
        },
        ceil: function(date) {
          while (skipped(date = interval.ceil(date))) date = d3_time_scaleDate(+date + 1);
          return date;
        }
      } : interval));
    };
    scale.ticks = function(interval, skip) {
      var extent = d3_scaleExtent(scale.domain()), method = interval == null ? tickMethod(extent, 10) : typeof interval === "number" ? tickMethod(extent, interval) : !interval.range && [ {
        range: interval
      }, skip ];
      if (method) interval = method[0], skip = method[1];
      return interval.range(extent[0], d3_time_scaleDate(+extent[1] + 1), skip < 1 ? 1 : skip);
    };
    scale.tickFormat = function() {
      return format;
    };
    scale.copy = function() {
      return d3_time_scale(linear.copy(), methods, format);
    };
    return d3_scale_linearRebind(scale, linear);
  }
  function d3_time_scaleDate(t) {
    return new Date(t);
  }
  var d3_time_scaleSteps = [ 1e3, 5e3, 15e3, 3e4, 6e4, 3e5, 9e5, 18e5, 36e5, 108e5, 216e5, 432e5, 864e5, 1728e5, 6048e5, 2592e6, 7776e6, 31536e6 ];
  var d3_time_scaleLocalMethods = [ [ d3_time.second, 1 ], [ d3_time.second, 5 ], [ d3_time.second, 15 ], [ d3_time.second, 30 ], [ d3_time.minute, 1 ], [ d3_time.minute, 5 ], [ d3_time.minute, 15 ], [ d3_time.minute, 30 ], [ d3_time.hour, 1 ], [ d3_time.hour, 3 ], [ d3_time.hour, 6 ], [ d3_time.hour, 12 ], [ d3_time.day, 1 ], [ d3_time.day, 2 ], [ d3_time.week, 1 ], [ d3_time.month, 1 ], [ d3_time.month, 3 ], [ d3_time.year, 1 ] ];
  var d3_time_scaleLocalFormat = d3_time_format.multi([ [ ".%L", function(d) {
    return d.getMilliseconds();
  } ], [ ":%S", function(d) {
    return d.getSeconds();
  } ], [ "%I:%M", function(d) {
    return d.getMinutes();
  } ], [ "%I %p", function(d) {
    return d.getHours();
  } ], [ "%a %d", function(d) {
    return d.getDay() && d.getDate() != 1;
  } ], [ "%b %d", function(d) {
    return d.getDate() != 1;
  } ], [ "%B", function(d) {
    return d.getMonth();
  } ], [ "%Y", d3_true ] ]);
  var d3_time_scaleMilliseconds = {
    range: function(start, stop, step) {
      return d3.range(Math.ceil(start / step) * step, +stop, step).map(d3_time_scaleDate);
    },
    floor: d3_identity,
    ceil: d3_identity
  };
  d3_time_scaleLocalMethods.year = d3_time.year;
  d3_time.scale = function() {
    return d3_time_scale(d3.scale.linear(), d3_time_scaleLocalMethods, d3_time_scaleLocalFormat);
  };
  var d3_time_scaleUtcMethods = d3_time_scaleLocalMethods.map(function(m) {
    return [ m[0].utc, m[1] ];
  });
  var d3_time_scaleUtcFormat = d3_time_formatUtc.multi([ [ ".%L", function(d) {
    return d.getUTCMilliseconds();
  } ], [ ":%S", function(d) {
    return d.getUTCSeconds();
  } ], [ "%I:%M", function(d) {
    return d.getUTCMinutes();
  } ], [ "%I %p", function(d) {
    return d.getUTCHours();
  } ], [ "%a %d", function(d) {
    return d.getUTCDay() && d.getUTCDate() != 1;
  } ], [ "%b %d", function(d) {
    return d.getUTCDate() != 1;
  } ], [ "%B", function(d) {
    return d.getUTCMonth();
  } ], [ "%Y", d3_true ] ]);
  d3_time_scaleUtcMethods.year = d3_time.year.utc;
  d3_time.scale.utc = function() {
    return d3_time_scale(d3.scale.linear(), d3_time_scaleUtcMethods, d3_time_scaleUtcFormat);
  };
  d3.text = d3_xhrType(function(request) {
    return request.responseText;
  });
  d3.json = function(url, callback) {
    return d3_xhr(url, "application/json", d3_json, callback);
  };
  function d3_json(request) {
    return JSON.parse(request.responseText);
  }
  d3.html = function(url, callback) {
    return d3_xhr(url, "text/html", d3_html, callback);
  };
  function d3_html(request) {
    var range = d3_document.createRange();
    range.selectNode(d3_document.body);
    return range.createContextualFragment(request.responseText);
  }
  d3.xml = d3_xhrType(function(request) {
    return request.responseXML;
  });
  if (true) this.d3 = d3, !(__WEBPACK_AMD_DEFINE_FACTORY__ = (d3),
				__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
				(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
				__WEBPACK_AMD_DEFINE_FACTORY__),
				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); else {}
}();

/***/ }),

/***/ "./node_modules/dom-helpers/activeElement.js":
/*!***************************************************!*\
  !*** ./node_modules/dom-helpers/activeElement.js ***!
  \***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = activeElement;

var _ownerDocument = _interopRequireDefault(__webpack_require__(/*! ./ownerDocument */ "./node_modules/dom-helpers/ownerDocument.js"));

function activeElement(doc) {
  if (doc === void 0) {
    doc = (0, _ownerDocument.default)();
  }

  try {
    return doc.activeElement;
  } catch (e) {
    /* ie throws if no active element */
  }
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/class/addClass.js":
/*!****************************************************!*\
  !*** ./node_modules/dom-helpers/class/addClass.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = addClass;

var _hasClass = _interopRequireDefault(__webpack_require__(/*! ./hasClass */ "./node_modules/dom-helpers/class/hasClass.js"));

function addClass(element, className) {
  if (element.classList) element.classList.add(className);else if (!(0, _hasClass.default)(element, className)) if (typeof element.className === 'string') element.className = element.className + ' ' + className;else element.setAttribute('class', (element.className && element.className.baseVal || '') + ' ' + className);
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/class/hasClass.js":
/*!****************************************************!*\
  !*** ./node_modules/dom-helpers/class/hasClass.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = hasClass;

function hasClass(element, className) {
  if (element.classList) return !!className && element.classList.contains(className);else return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/class/index.js":
/*!*************************************************!*\
  !*** ./node_modules/dom-helpers/class/index.js ***!
  \*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = void 0;

var _addClass = _interopRequireDefault(__webpack_require__(/*! ./addClass */ "./node_modules/dom-helpers/class/addClass.js"));

exports.addClass = _addClass.default;

var _removeClass = _interopRequireDefault(__webpack_require__(/*! ./removeClass */ "./node_modules/dom-helpers/class/removeClass.js"));

exports.removeClass = _removeClass.default;

var _hasClass = _interopRequireDefault(__webpack_require__(/*! ./hasClass */ "./node_modules/dom-helpers/class/hasClass.js"));

exports.hasClass = _hasClass.default;
var _default = {
  addClass: _addClass.default,
  removeClass: _removeClass.default,
  hasClass: _hasClass.default
};
exports.default = _default;

/***/ }),

/***/ "./node_modules/dom-helpers/class/removeClass.js":
/*!*******************************************************!*\
  !*** ./node_modules/dom-helpers/class/removeClass.js ***!
  \*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


function replaceClassName(origClass, classToRemove) {
  return origClass.replace(new RegExp('(^|\\s)' + classToRemove + '(?:\\s|$)', 'g'), '$1').replace(/\s+/g, ' ').replace(/^\s*|\s*$/g, '');
}

module.exports = function removeClass(element, className) {
  if (element.classList) element.classList.remove(className);else if (typeof element.className === 'string') element.className = replaceClassName(element.className, className);else element.setAttribute('class', replaceClassName(element.className && element.className.baseVal || '', className));
};

/***/ }),

/***/ "./node_modules/dom-helpers/events/filter.js":
/*!***************************************************!*\
  !*** ./node_modules/dom-helpers/events/filter.js ***!
  \***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = filterEvents;

var _contains = _interopRequireDefault(__webpack_require__(/*! ../query/contains */ "./node_modules/dom-helpers/query/contains.js"));

var _querySelectorAll = _interopRequireDefault(__webpack_require__(/*! ../query/querySelectorAll */ "./node_modules/dom-helpers/query/querySelectorAll.js"));

function filterEvents(selector, handler) {
  return function filterHandler(e) {
    var top = e.currentTarget,
        target = e.target,
        matches = (0, _querySelectorAll.default)(top, selector);
    if (matches.some(function (match) {
      return (0, _contains.default)(match, target);
    })) handler.call(this, e);
  };
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/events/index.js":
/*!**************************************************!*\
  !*** ./node_modules/dom-helpers/events/index.js ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = void 0;

var _on = _interopRequireDefault(__webpack_require__(/*! ./on */ "./node_modules/dom-helpers/events/on.js"));

exports.on = _on.default;

var _off = _interopRequireDefault(__webpack_require__(/*! ./off */ "./node_modules/dom-helpers/events/off.js"));

exports.off = _off.default;

var _filter = _interopRequireDefault(__webpack_require__(/*! ./filter */ "./node_modules/dom-helpers/events/filter.js"));

exports.filter = _filter.default;

var _listen = _interopRequireDefault(__webpack_require__(/*! ./listen */ "./node_modules/dom-helpers/events/listen.js"));

exports.listen = _listen.default;
var _default = {
  on: _on.default,
  off: _off.default,
  filter: _filter.default,
  listen: _listen.default
};
exports.default = _default;

/***/ }),

/***/ "./node_modules/dom-helpers/events/listen.js":
/*!***************************************************!*\
  !*** ./node_modules/dom-helpers/events/listen.js ***!
  \***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = void 0;

var _inDOM = _interopRequireDefault(__webpack_require__(/*! ../util/inDOM */ "./node_modules/dom-helpers/util/inDOM.js"));

var _on = _interopRequireDefault(__webpack_require__(/*! ./on */ "./node_modules/dom-helpers/events/on.js"));

var _off = _interopRequireDefault(__webpack_require__(/*! ./off */ "./node_modules/dom-helpers/events/off.js"));

var listen = function listen() {};

if (_inDOM.default) {
  listen = function listen(node, eventName, handler, capture) {
    (0, _on.default)(node, eventName, handler, capture);
    return function () {
      (0, _off.default)(node, eventName, handler, capture);
    };
  };
}

var _default = listen;
exports.default = _default;
module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/events/off.js":
/*!************************************************!*\
  !*** ./node_modules/dom-helpers/events/off.js ***!
  \************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = void 0;

var _inDOM = _interopRequireDefault(__webpack_require__(/*! ../util/inDOM */ "./node_modules/dom-helpers/util/inDOM.js"));

var off = function off() {};

if (_inDOM.default) {
  off = function () {
    if (document.addEventListener) return function (node, eventName, handler, capture) {
      return node.removeEventListener(eventName, handler, capture || false);
    };else if (document.attachEvent) return function (node, eventName, handler) {
      return node.detachEvent('on' + eventName, handler);
    };
  }();
}

var _default = off;
exports.default = _default;
module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/events/on.js":
/*!***********************************************!*\
  !*** ./node_modules/dom-helpers/events/on.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = void 0;

var _inDOM = _interopRequireDefault(__webpack_require__(/*! ../util/inDOM */ "./node_modules/dom-helpers/util/inDOM.js"));

var on = function on() {};

if (_inDOM.default) {
  on = function () {
    if (document.addEventListener) return function (node, eventName, handler, capture) {
      return node.addEventListener(eventName, handler, capture || false);
    };else if (document.attachEvent) return function (node, eventName, handler) {
      return node.attachEvent('on' + eventName, function (e) {
        e = e || window.event;
        e.target = e.target || e.srcElement;
        e.currentTarget = node;
        handler.call(node, e);
      });
    };
  }();
}

var _default = on;
exports.default = _default;
module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/ownerDocument.js":
/*!***************************************************!*\
  !*** ./node_modules/dom-helpers/ownerDocument.js ***!
  \***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = ownerDocument;

function ownerDocument(node) {
  return node && node.ownerDocument || document;
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/query/contains.js":
/*!****************************************************!*\
  !*** ./node_modules/dom-helpers/query/contains.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = void 0;

var _inDOM = _interopRequireDefault(__webpack_require__(/*! ../util/inDOM */ "./node_modules/dom-helpers/util/inDOM.js"));

var _default = function () {
  // HTML DOM and SVG DOM may have different support levels,
  // so we need to check on context instead of a document root element.
  return _inDOM.default ? function (context, node) {
    if (context.contains) {
      return context.contains(node);
    } else if (context.compareDocumentPosition) {
      return context === node || !!(context.compareDocumentPosition(node) & 16);
    } else {
      return fallback(context, node);
    }
  } : fallback;
}();

exports.default = _default;

function fallback(context, node) {
  if (node) do {
    if (node === context) return true;
  } while (node = node.parentNode);
  return false;
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/query/isWindow.js":
/*!****************************************************!*\
  !*** ./node_modules/dom-helpers/query/isWindow.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = getWindow;

function getWindow(node) {
  return node === node.window ? node : node.nodeType === 9 ? node.defaultView || node.parentWindow : false;
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/query/offset.js":
/*!**************************************************!*\
  !*** ./node_modules/dom-helpers/query/offset.js ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = offset;

var _contains = _interopRequireDefault(__webpack_require__(/*! ./contains */ "./node_modules/dom-helpers/query/contains.js"));

var _isWindow = _interopRequireDefault(__webpack_require__(/*! ./isWindow */ "./node_modules/dom-helpers/query/isWindow.js"));

var _ownerDocument = _interopRequireDefault(__webpack_require__(/*! ../ownerDocument */ "./node_modules/dom-helpers/ownerDocument.js"));

function offset(node) {
  var doc = (0, _ownerDocument.default)(node),
      win = (0, _isWindow.default)(doc),
      docElem = doc && doc.documentElement,
      box = {
    top: 0,
    left: 0,
    height: 0,
    width: 0
  };
  if (!doc) return; // Make sure it's not a disconnected DOM node

  if (!(0, _contains.default)(docElem, node)) return box;
  if (node.getBoundingClientRect !== undefined) box = node.getBoundingClientRect(); // IE8 getBoundingClientRect doesn't support width & height

  box = {
    top: box.top + (win.pageYOffset || docElem.scrollTop) - (docElem.clientTop || 0),
    left: box.left + (win.pageXOffset || docElem.scrollLeft) - (docElem.clientLeft || 0),
    width: (box.width == null ? node.offsetWidth : box.width) || 0,
    height: (box.height == null ? node.offsetHeight : box.height) || 0
  };
  return box;
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/query/offsetParent.js":
/*!********************************************************!*\
  !*** ./node_modules/dom-helpers/query/offsetParent.js ***!
  \********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = offsetParent;

var _ownerDocument = _interopRequireDefault(__webpack_require__(/*! ../ownerDocument */ "./node_modules/dom-helpers/ownerDocument.js"));

var _style = _interopRequireDefault(__webpack_require__(/*! ../style */ "./node_modules/dom-helpers/style/index.js"));

function nodeName(node) {
  return node.nodeName && node.nodeName.toLowerCase();
}

function offsetParent(node) {
  var doc = (0, _ownerDocument.default)(node),
      offsetParent = node && node.offsetParent;

  while (offsetParent && nodeName(node) !== 'html' && (0, _style.default)(offsetParent, 'position') === 'static') {
    offsetParent = offsetParent.offsetParent;
  }

  return offsetParent || doc.documentElement;
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/query/position.js":
/*!****************************************************!*\
  !*** ./node_modules/dom-helpers/query/position.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = position;

var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));

var _offset = _interopRequireDefault(__webpack_require__(/*! ./offset */ "./node_modules/dom-helpers/query/offset.js"));

var _offsetParent = _interopRequireDefault(__webpack_require__(/*! ./offsetParent */ "./node_modules/dom-helpers/query/offsetParent.js"));

var _scrollTop = _interopRequireDefault(__webpack_require__(/*! ./scrollTop */ "./node_modules/dom-helpers/query/scrollTop.js"));

var _scrollLeft = _interopRequireDefault(__webpack_require__(/*! ./scrollLeft */ "./node_modules/dom-helpers/query/scrollLeft.js"));

var _style = _interopRequireDefault(__webpack_require__(/*! ../style */ "./node_modules/dom-helpers/style/index.js"));

function nodeName(node) {
  return node.nodeName && node.nodeName.toLowerCase();
}

function position(node, offsetParent) {
  var parentOffset = {
    top: 0,
    left: 0
  },
      offset; // Fixed elements are offset from window (parentOffset = {top:0, left: 0},
  // because it is its only offset parent

  if ((0, _style.default)(node, 'position') === 'fixed') {
    offset = node.getBoundingClientRect();
  } else {
    offsetParent = offsetParent || (0, _offsetParent.default)(node);
    offset = (0, _offset.default)(node);
    if (nodeName(offsetParent) !== 'html') parentOffset = (0, _offset.default)(offsetParent);
    parentOffset.top += parseInt((0, _style.default)(offsetParent, 'borderTopWidth'), 10) - (0, _scrollTop.default)(offsetParent) || 0;
    parentOffset.left += parseInt((0, _style.default)(offsetParent, 'borderLeftWidth'), 10) - (0, _scrollLeft.default)(offsetParent) || 0;
  } // Subtract parent offsets and node margins


  return (0, _extends2.default)({}, offset, {
    top: offset.top - parentOffset.top - (parseInt((0, _style.default)(node, 'marginTop'), 10) || 0),
    left: offset.left - parentOffset.left - (parseInt((0, _style.default)(node, 'marginLeft'), 10) || 0)
  });
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/query/querySelectorAll.js":
/*!************************************************************!*\
  !*** ./node_modules/dom-helpers/query/querySelectorAll.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = qsa;
// Zepto.js
// (c) 2010-2015 Thomas Fuchs
// Zepto.js may be freely distributed under the MIT license.
var simpleSelectorRE = /^[\w-]*$/;
var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice);

function qsa(element, selector) {
  var maybeID = selector[0] === '#',
      maybeClass = selector[0] === '.',
      nameOnly = maybeID || maybeClass ? selector.slice(1) : selector,
      isSimple = simpleSelectorRE.test(nameOnly),
      found;

  if (isSimple) {
    if (maybeID) {
      element = element.getElementById ? element : document;
      return (found = element.getElementById(nameOnly)) ? [found] : [];
    }

    if (element.getElementsByClassName && maybeClass) return toArray(element.getElementsByClassName(nameOnly));
    return toArray(element.getElementsByTagName(selector));
  }

  return toArray(element.querySelectorAll(selector));
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/query/scrollLeft.js":
/*!******************************************************!*\
  !*** ./node_modules/dom-helpers/query/scrollLeft.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = scrollTop;

var _isWindow = _interopRequireDefault(__webpack_require__(/*! ./isWindow */ "./node_modules/dom-helpers/query/isWindow.js"));

function scrollTop(node, val) {
  var win = (0, _isWindow.default)(node);
  if (val === undefined) return win ? 'pageXOffset' in win ? win.pageXOffset : win.document.documentElement.scrollLeft : node.scrollLeft;
  if (win) win.scrollTo(val, 'pageYOffset' in win ? win.pageYOffset : win.document.documentElement.scrollTop);else node.scrollLeft = val;
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/query/scrollTop.js":
/*!*****************************************************!*\
  !*** ./node_modules/dom-helpers/query/scrollTop.js ***!
  \*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = scrollTop;

var _isWindow = _interopRequireDefault(__webpack_require__(/*! ./isWindow */ "./node_modules/dom-helpers/query/isWindow.js"));

function scrollTop(node, val) {
  var win = (0, _isWindow.default)(node);
  if (val === undefined) return win ? 'pageYOffset' in win ? win.pageYOffset : win.document.documentElement.scrollTop : node.scrollTop;
  if (win) win.scrollTo('pageXOffset' in win ? win.pageXOffset : win.document.documentElement.scrollLeft, val);else node.scrollTop = val;
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/style/getComputedStyle.js":
/*!************************************************************!*\
  !*** ./node_modules/dom-helpers/style/getComputedStyle.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = _getComputedStyle;

var _camelizeStyle = _interopRequireDefault(__webpack_require__(/*! ../util/camelizeStyle */ "./node_modules/dom-helpers/util/camelizeStyle.js"));

var rposition = /^(top|right|bottom|left)$/;
var rnumnonpx = /^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;

function _getComputedStyle(node) {
  if (!node) throw new TypeError('No Element passed to `getComputedStyle()`');
  var doc = node.ownerDocument;
  return 'defaultView' in doc ? doc.defaultView.opener ? node.ownerDocument.defaultView.getComputedStyle(node, null) : window.getComputedStyle(node, null) : {
    //ie 8 "magic" from: https://github.com/jquery/jquery/blob/1.11-stable/src/css/curCSS.js#L72
    getPropertyValue: function getPropertyValue(prop) {
      var style = node.style;
      prop = (0, _camelizeStyle.default)(prop);
      if (prop == 'float') prop = 'styleFloat';
      var current = node.currentStyle[prop] || null;
      if (current == null && style && style[prop]) current = style[prop];

      if (rnumnonpx.test(current) && !rposition.test(prop)) {
        // Remember the original values
        var left = style.left;
        var runStyle = node.runtimeStyle;
        var rsLeft = runStyle && runStyle.left; // Put in the new values to get a computed value out

        if (rsLeft) runStyle.left = node.currentStyle.left;
        style.left = prop === 'fontSize' ? '1em' : current;
        current = style.pixelLeft + 'px'; // Revert the changed values

        style.left = left;
        if (rsLeft) runStyle.left = rsLeft;
      }

      return current;
    }
  };
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/style/index.js":
/*!*************************************************!*\
  !*** ./node_modules/dom-helpers/style/index.js ***!
  \*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = style;

var _camelizeStyle = _interopRequireDefault(__webpack_require__(/*! ../util/camelizeStyle */ "./node_modules/dom-helpers/util/camelizeStyle.js"));

var _hyphenateStyle = _interopRequireDefault(__webpack_require__(/*! ../util/hyphenateStyle */ "./node_modules/dom-helpers/util/hyphenateStyle.js"));

var _getComputedStyle2 = _interopRequireDefault(__webpack_require__(/*! ./getComputedStyle */ "./node_modules/dom-helpers/style/getComputedStyle.js"));

var _removeStyle = _interopRequireDefault(__webpack_require__(/*! ./removeStyle */ "./node_modules/dom-helpers/style/removeStyle.js"));

var _properties = __webpack_require__(/*! ../transition/properties */ "./node_modules/dom-helpers/transition/properties.js");

var _isTransform = _interopRequireDefault(__webpack_require__(/*! ../transition/isTransform */ "./node_modules/dom-helpers/transition/isTransform.js"));

function style(node, property, value) {
  var css = '';
  var transforms = '';
  var props = property;

  if (typeof property === 'string') {
    if (value === undefined) {
      return node.style[(0, _camelizeStyle.default)(property)] || (0, _getComputedStyle2.default)(node).getPropertyValue((0, _hyphenateStyle.default)(property));
    } else {
      (props = {})[property] = value;
    }
  }

  Object.keys(props).forEach(function (key) {
    var value = props[key];

    if (!value && value !== 0) {
      (0, _removeStyle.default)(node, (0, _hyphenateStyle.default)(key));
    } else if ((0, _isTransform.default)(key)) {
      transforms += key + "(" + value + ") ";
    } else {
      css += (0, _hyphenateStyle.default)(key) + ": " + value + ";";
    }
  });

  if (transforms) {
    css += _properties.transform + ": " + transforms + ";";
  }

  node.style.cssText += ';' + css;
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/style/removeStyle.js":
/*!*******************************************************!*\
  !*** ./node_modules/dom-helpers/style/removeStyle.js ***!
  \*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = removeStyle;

function removeStyle(node, key) {
  return 'removeProperty' in node.style ? node.style.removeProperty(key) : node.style.removeAttribute(key);
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/transition/isTransform.js":
/*!************************************************************!*\
  !*** ./node_modules/dom-helpers/transition/isTransform.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = isTransform;
var supportedTransforms = /^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;

function isTransform(property) {
  return !!(property && supportedTransforms.test(property));
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/transition/properties.js":
/*!***********************************************************!*\
  !*** ./node_modules/dom-helpers/transition/properties.js ***!
  \***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = exports.animationEnd = exports.animationDelay = exports.animationTiming = exports.animationDuration = exports.animationName = exports.transitionEnd = exports.transitionDuration = exports.transitionDelay = exports.transitionTiming = exports.transitionProperty = exports.transform = void 0;

var _inDOM = _interopRequireDefault(__webpack_require__(/*! ../util/inDOM */ "./node_modules/dom-helpers/util/inDOM.js"));

var transform = 'transform';
exports.transform = transform;
var prefix, transitionEnd, animationEnd;
exports.animationEnd = animationEnd;
exports.transitionEnd = transitionEnd;
var transitionProperty, transitionDuration, transitionTiming, transitionDelay;
exports.transitionDelay = transitionDelay;
exports.transitionTiming = transitionTiming;
exports.transitionDuration = transitionDuration;
exports.transitionProperty = transitionProperty;
var animationName, animationDuration, animationTiming, animationDelay;
exports.animationDelay = animationDelay;
exports.animationTiming = animationTiming;
exports.animationDuration = animationDuration;
exports.animationName = animationName;

if (_inDOM.default) {
  var _getTransitionPropert = getTransitionProperties();

  prefix = _getTransitionPropert.prefix;
  exports.transitionEnd = transitionEnd = _getTransitionPropert.transitionEnd;
  exports.animationEnd = animationEnd = _getTransitionPropert.animationEnd;
  exports.transform = transform = prefix + "-" + transform;
  exports.transitionProperty = transitionProperty = prefix + "-transition-property";
  exports.transitionDuration = transitionDuration = prefix + "-transition-duration";
  exports.transitionDelay = transitionDelay = prefix + "-transition-delay";
  exports.transitionTiming = transitionTiming = prefix + "-transition-timing-function";
  exports.animationName = animationName = prefix + "-animation-name";
  exports.animationDuration = animationDuration = prefix + "-animation-duration";
  exports.animationTiming = animationTiming = prefix + "-animation-delay";
  exports.animationDelay = animationDelay = prefix + "-animation-timing-function";
}

var _default = {
  transform: transform,
  end: transitionEnd,
  property: transitionProperty,
  timing: transitionTiming,
  delay: transitionDelay,
  duration: transitionDuration
};
exports.default = _default;

function getTransitionProperties() {
  var style = document.createElement('div').style;
  var vendorMap = {
    O: function O(e) {
      return "o" + e.toLowerCase();
    },
    Moz: function Moz(e) {
      return e.toLowerCase();
    },
    Webkit: function Webkit(e) {
      return "webkit" + e;
    },
    ms: function ms(e) {
      return "MS" + e;
    }
  };
  var vendors = Object.keys(vendorMap);
  var transitionEnd, animationEnd;
  var prefix = '';

  for (var i = 0; i < vendors.length; i++) {
    var vendor = vendors[i];

    if (vendor + "TransitionProperty" in style) {
      prefix = "-" + vendor.toLowerCase();
      transitionEnd = vendorMap[vendor]('TransitionEnd');
      animationEnd = vendorMap[vendor]('AnimationEnd');
      break;
    }
  }

  if (!transitionEnd && 'transitionProperty' in style) transitionEnd = 'transitionend';
  if (!animationEnd && 'animationName' in style) animationEnd = 'animationend';
  style = null;
  return {
    animationEnd: animationEnd,
    transitionEnd: transitionEnd,
    prefix: prefix
  };
}

/***/ }),

/***/ "./node_modules/dom-helpers/util/camelize.js":
/*!***************************************************!*\
  !*** ./node_modules/dom-helpers/util/camelize.js ***!
  \***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = camelize;
var rHyphen = /-(.)/g;

function camelize(string) {
  return string.replace(rHyphen, function (_, chr) {
    return chr.toUpperCase();
  });
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/util/camelizeStyle.js":
/*!********************************************************!*\
  !*** ./node_modules/dom-helpers/util/camelizeStyle.js ***!
  \********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = camelizeStyleName;

var _camelize = _interopRequireDefault(__webpack_require__(/*! ./camelize */ "./node_modules/dom-helpers/util/camelize.js"));

/**
 * Copyright 2014-2015, Facebook, Inc.
 * All rights reserved.
 * https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/vendor/core/camelizeStyleName.js
 */
var msPattern = /^-ms-/;

function camelizeStyleName(string) {
  return (0, _camelize.default)(string.replace(msPattern, 'ms-'));
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/util/hyphenate.js":
/*!****************************************************!*\
  !*** ./node_modules/dom-helpers/util/hyphenate.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = hyphenate;
var rUpper = /([A-Z])/g;

function hyphenate(string) {
  return string.replace(rUpper, '-$1').toLowerCase();
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/util/hyphenateStyle.js":
/*!*********************************************************!*\
  !*** ./node_modules/dom-helpers/util/hyphenateStyle.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = hyphenateStyleName;

var _hyphenate = _interopRequireDefault(__webpack_require__(/*! ./hyphenate */ "./node_modules/dom-helpers/util/hyphenate.js"));

/**
 * Copyright 2013-2014, Facebook, Inc.
 * All rights reserved.
 * https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/vendor/core/hyphenateStyleName.js
 */
var msPattern = /^ms-/;

function hyphenateStyleName(string) {
  return (0, _hyphenate.default)(string).replace(msPattern, '-ms-');
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/util/inDOM.js":
/*!************************************************!*\
  !*** ./node_modules/dom-helpers/util/inDOM.js ***!
  \************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = void 0;

var _default = !!(typeof window !== 'undefined' && window.document && window.document.createElement);

exports.default = _default;
module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/util/scrollbarSize.js":
/*!********************************************************!*\
  !*** ./node_modules/dom-helpers/util/scrollbarSize.js ***!
  \********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = scrollbarSize;

var _inDOM = _interopRequireDefault(__webpack_require__(/*! ./inDOM */ "./node_modules/dom-helpers/util/inDOM.js"));

var size;

function scrollbarSize(recalc) {
  if (!size && size !== 0 || recalc) {
    if (_inDOM.default) {
      var scrollDiv = document.createElement('div');
      scrollDiv.style.position = 'absolute';
      scrollDiv.style.top = '-9999px';
      scrollDiv.style.width = '50px';
      scrollDiv.style.height = '50px';
      scrollDiv.style.overflow = 'scroll';
      document.body.appendChild(scrollDiv);
      size = scrollDiv.offsetWidth - scrollDiv.clientWidth;
      document.body.removeChild(scrollDiv);
    }
  }

  return size;
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/escape-string-regexp/index.js":
/*!****************************************************!*\
  !*** ./node_modules/escape-string-regexp/index.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;

module.exports = function (str) {
	if (typeof str !== 'string') {
		throw new TypeError('Expected a string');
	}

	return str.replace(matchOperatorsRe, '\\$&');
};


/***/ }),

/***/ "./node_modules/fbjs/lib/emptyFunction.js":
/*!************************************************!*\
  !*** ./node_modules/fbjs/lib/emptyFunction.js ***!
  \************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


/**
 * Copyright (c) 2013-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * 
 */

function makeEmptyFunction(arg) {
  return function () {
    return arg;
  };
}

/**
 * This function accepts and discards inputs; it has no side effects. This is
 * primarily useful idiomatically for overridable function endpoints which
 * always need to be callable, since JS lacks a null-call idiom ala Cocoa.
 */
var emptyFunction = function emptyFunction() {};

emptyFunction.thatReturns = makeEmptyFunction;
emptyFunction.thatReturnsFalse = makeEmptyFunction(false);
emptyFunction.thatReturnsTrue = makeEmptyFunction(true);
emptyFunction.thatReturnsNull = makeEmptyFunction(null);
emptyFunction.thatReturnsThis = function () {
  return this;
};
emptyFunction.thatReturnsArgument = function (arg) {
  return arg;
};

module.exports = emptyFunction;

/***/ }),

/***/ "./node_modules/fbjs/lib/shallowEqual.js":
/*!***********************************************!*\
  !*** ./node_modules/fbjs/lib/shallowEqual.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/**
 * Copyright (c) 2013-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @typechecks
 * 
 */

/*eslint-disable no-self-compare */



var hasOwnProperty = Object.prototype.hasOwnProperty;

/**
 * inlined Object.is polyfill to avoid requiring consumers ship their own
 * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
 */
function is(x, y) {
  // SameValue algorithm
  if (x === y) {
    // Steps 1-5, 7-10
    // Steps 6.b-6.e: +0 != -0
    // Added the nonzero y check to make Flow happy, but it is redundant
    return x !== 0 || y !== 0 || 1 / x === 1 / y;
  } else {
    // Step 6.a: NaN == NaN
    return x !== x && y !== y;
  }
}

/**
 * Performs equality by iterating through keys on an object and returning false
 * when any key has values which are not strictly equal between the arguments.
 * Returns true when the values of all keys are strictly equal.
 */
function shallowEqual(objA, objB) {
  if (is(objA, objB)) {
    return true;
  }

  if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
    return false;
  }

  var keysA = Object.keys(objA);
  var keysB = Object.keys(objB);

  if (keysA.length !== keysB.length) {
    return false;
  }

  // Test for A's keys different from B.
  for (var i = 0; i < keysA.length; i++) {
    if (!hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
      return false;
    }
  }

  return true;
}

module.exports = shallowEqual;

/***/ }),

/***/ "./node_modules/fbjs/lib/warning.js":
/*!******************************************!*\
  !*** ./node_modules/fbjs/lib/warning.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/**
 * Copyright (c) 2014-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 */



var emptyFunction = __webpack_require__(/*! ./emptyFunction */ "./node_modules/fbjs/lib/emptyFunction.js");

/**
 * Similar to invariant but only logs a warning if the condition is not met.
 * This can be used to log issues in development environments in critical
 * paths. Removing the logging code for production environments will keep the
 * same logic and follow the same code paths.
 */

var warning = emptyFunction;

if (true) {
  var printWarning = function printWarning(format) {
    for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
      args[_key - 1] = arguments[_key];
    }

    var argIndex = 0;
    var message = 'Warning: ' + format.replace(/%s/g, function () {
      return args[argIndex++];
    });
    if (typeof console !== 'undefined') {
      console.error(message);
    }
    try {
      // --- Welcome to debugging React ---
      // This error was thrown as a convenience so that you can use this stack
      // to find the callsite that caused this warning to fire.
      throw new Error(message);
    } catch (x) {}
  };

  warning = function warning(condition, format) {
    if (format === undefined) {
      throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
    }

    if (format.indexOf('Failed Composite propType: ') === 0) {
      return; // Ignore CompositeComponent proptype check.
    }

    if (!condition) {
      for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
        args[_key2 - 2] = arguments[_key2];
      }

      printWarning.apply(undefined, [format].concat(args));
    }
  };
}

module.exports = warning;

/***/ }),

/***/ "./node_modules/gud/index.js":
/*!***********************************!*\
  !*** ./node_modules/gud/index.js ***!
  \***********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(global) {// @flow


var key = '__global_unique_id__';

module.exports = function() {
  return global[key] = (global[key] || 0) + 1;
};

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))

/***/ }),

/***/ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js ***!
  \**********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


/**
 * Copyright 2015, Yahoo! Inc.
 * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
 */
var REACT_STATICS = {
    childContextTypes: true,
    contextTypes: true,
    defaultProps: true,
    displayName: true,
    getDefaultProps: true,
    getDerivedStateFromProps: true,
    mixins: true,
    propTypes: true,
    type: true
};

var KNOWN_STATICS = {
    name: true,
    length: true,
    prototype: true,
    caller: true,
    callee: true,
    arguments: true,
    arity: true
};

var defineProperty = Object.defineProperty;
var getOwnPropertyNames = Object.getOwnPropertyNames;
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
var getPrototypeOf = Object.getPrototypeOf;
var objectPrototype = getPrototypeOf && getPrototypeOf(Object);

function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
    if (typeof sourceComponent !== 'string') { // don't hoist over string (html) components

        if (objectPrototype) {
            var inheritedComponent = getPrototypeOf(sourceComponent);
            if (inheritedComponent && inheritedComponent !== objectPrototype) {
                hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
            }
        }

        var keys = getOwnPropertyNames(sourceComponent);

        if (getOwnPropertySymbols) {
            keys = keys.concat(getOwnPropertySymbols(sourceComponent));
        }

        for (var i = 0; i < keys.length; ++i) {
            var key = keys[i];
            if (!REACT_STATICS[key] && !KNOWN_STATICS[key] && (!blacklist || !blacklist[key])) {
                var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
                try { // Avoid failures from read-only properties
                    defineProperty(targetComponent, key, descriptor);
                } catch (e) {}
            }
        }

        return targetComponent;
    }

    return targetComponent;
}

module.exports = hoistNonReactStatics;


/***/ }),

/***/ "./node_modules/invariant/browser.js":
/*!*******************************************!*\
  !*** ./node_modules/invariant/browser.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/**
 * Copyright (c) 2013-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */



/**
 * Use invariant() to assert state which your program assumes to be true.
 *
 * Provide sprintf-style format (only %s is supported) and arguments
 * to provide information about what broke and what you were
 * expecting.
 *
 * The invariant message will be stripped in production, but the invariant
 * will remain to ensure logic does not differ in production.
 */

var invariant = function(condition, format, a, b, c, d, e, f) {
  if (true) {
    if (format === undefined) {
      throw new Error('invariant requires an error message argument');
    }
  }

  if (!condition) {
    var error;
    if (format === undefined) {
      error = new Error(
        'Minified exception occurred; use the non-minified dev environment ' +
        'for the full error message and additional helpful warnings.'
      );
    } else {
      var args = [a, b, c, d, e, f];
      var argIndex = 0;
      error = new Error(
        format.replace(/%s/g, function() { return args[argIndex++]; })
      );
      error.name = 'Invariant Violation';
    }

    error.framesToPop = 1; // we don't care about invariant's own frame
    throw error;
  }
};

module.exports = invariant;


/***/ }),

/***/ "./node_modules/keycode/index.js":
/*!***************************************!*\
  !*** ./node_modules/keycode/index.js ***!
  \***************************************/
/*! no static exports found */
/***/ (function(module, exports) {

// Source: http://jsfiddle.net/vWx8V/
// http://stackoverflow.com/questions/5603195/full-list-of-javascript-keycodes

/**
 * Conenience method returns corresponding value for given keyName or keyCode.
 *
 * @param {Mixed} keyCode {Number} or keyName {String}
 * @return {Mixed}
 * @api public
 */

function keyCode(searchInput) {
  // Keyboard Events
  if (searchInput && 'object' === typeof searchInput) {
    var hasKeyCode = searchInput.which || searchInput.keyCode || searchInput.charCode
    if (hasKeyCode) searchInput = hasKeyCode
  }

  // Numbers
  if ('number' === typeof searchInput) return names[searchInput]

  // Everything else (cast to string)
  var search = String(searchInput)

  // check codes
  var foundNamedKey = codes[search.toLowerCase()]
  if (foundNamedKey) return foundNamedKey

  // check aliases
  var foundNamedKey = aliases[search.toLowerCase()]
  if (foundNamedKey) return foundNamedKey

  // weird character?
  if (search.length === 1) return search.charCodeAt(0)

  return undefined
}

/**
 * Compares a keyboard event with a given keyCode or keyName.
 *
 * @param {Event} event Keyboard event that should be tested
 * @param {Mixed} keyCode {Number} or keyName {String}
 * @return {Boolean}
 * @api public
 */
keyCode.isEventKey = function isEventKey(event, nameOrCode) {
  if (event && 'object' === typeof event) {
    var keyCode = event.which || event.keyCode || event.charCode
    if (keyCode === null || keyCode === undefined) { return false; }
    if (typeof nameOrCode === 'string') {
      // check codes
      var foundNamedKey = codes[nameOrCode.toLowerCase()]
      if (foundNamedKey) { return foundNamedKey === keyCode; }
    
      // check aliases
      var foundNamedKey = aliases[nameOrCode.toLowerCase()]
      if (foundNamedKey) { return foundNamedKey === keyCode; }
    } else if (typeof nameOrCode === 'number') {
      return nameOrCode === keyCode;
    }
    return false;
  }
}

exports = module.exports = keyCode;

/**
 * Get by name
 *
 *   exports.code['enter'] // => 13
 */

var codes = exports.code = exports.codes = {
  'backspace': 8,
  'tab': 9,
  'enter': 13,
  'shift': 16,
  'ctrl': 17,
  'alt': 18,
  'pause/break': 19,
  'caps lock': 20,
  'esc': 27,
  'space': 32,
  'page up': 33,
  'page down': 34,
  'end': 35,
  'home': 36,
  'left': 37,
  'up': 38,
  'right': 39,
  'down': 40,
  'insert': 45,
  'delete': 46,
  'command': 91,
  'left command': 91,
  'right command': 93,
  'numpad *': 106,
  'numpad +': 107,
  'numpad -': 109,
  'numpad .': 110,
  'numpad /': 111,
  'num lock': 144,
  'scroll lock': 145,
  'my computer': 182,
  'my calculator': 183,
  ';': 186,
  '=': 187,
  ',': 188,
  '-': 189,
  '.': 190,
  '/': 191,
  '`': 192,
  '[': 219,
  '\\': 220,
  ']': 221,
  "'": 222
}

// Helper aliases

var aliases = exports.aliases = {
  'windows': 91,
  '⇧': 16,
  '⌥': 18,
  '⌃': 17,
  '⌘': 91,
  'ctl': 17,
  'control': 17,
  'option': 18,
  'pause': 19,
  'break': 19,
  'caps': 20,
  'return': 13,
  'escape': 27,
  'spc': 32,
  'spacebar': 32,
  'pgup': 33,
  'pgdn': 34,
  'ins': 45,
  'del': 46,
  'cmd': 91
}

/*!
 * Programatically add the following
 */

// lower case chars
for (i = 97; i < 123; i++) codes[String.fromCharCode(i)] = i - 32

// numbers
for (var i = 48; i < 58; i++) codes[i - 48] = i

// function keys
for (i = 1; i < 13; i++) codes['f'+i] = i + 111

// numpad keys
for (i = 0; i < 10; i++) codes['numpad '+i] = i + 96

/**
 * Get by code
 *
 *   exports.name[13] // => 'Enter'
 */

var names = exports.names = exports.title = {} // title for backward compat

// Create reverse mapping
for (i in codes) names[codes[i]] = i

// Add aliases
for (var alias in aliases) {
  codes[alias] = aliases[alias]
}


/***/ }),

/***/ "./node_modules/lodash/_DataView.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_DataView.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
    root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");

/* Built-in method references that are verified to be native. */
var DataView = getNative(root, 'DataView');

module.exports = DataView;


/***/ }),

/***/ "./node_modules/lodash/_Hash.js":
/*!**************************************!*\
  !*** ./node_modules/lodash/_Hash.js ***!
  \**************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var hashClear = __webpack_require__(/*! ./_hashClear */ "./node_modules/lodash/_hashClear.js"),
    hashDelete = __webpack_require__(/*! ./_hashDelete */ "./node_modules/lodash/_hashDelete.js"),
    hashGet = __webpack_require__(/*! ./_hashGet */ "./node_modules/lodash/_hashGet.js"),
    hashHas = __webpack_require__(/*! ./_hashHas */ "./node_modules/lodash/_hashHas.js"),
    hashSet = __webpack_require__(/*! ./_hashSet */ "./node_modules/lodash/_hashSet.js");

/**
 * Creates a hash object.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */
function Hash(entries) {
  var index = -1,
      length = entries == null ? 0 : entries.length;

  this.clear();
  while (++index < length) {
    var entry = entries[index];
    this.set(entry[0], entry[1]);
  }
}

// Add methods to `Hash`.
Hash.prototype.clear = hashClear;
Hash.prototype['delete'] = hashDelete;
Hash.prototype.get = hashGet;
Hash.prototype.has = hashHas;
Hash.prototype.set = hashSet;

module.exports = Hash;


/***/ }),

/***/ "./node_modules/lodash/_LazyWrapper.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_LazyWrapper.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseCreate = __webpack_require__(/*! ./_baseCreate */ "./node_modules/lodash/_baseCreate.js"),
    baseLodash = __webpack_require__(/*! ./_baseLodash */ "./node_modules/lodash/_baseLodash.js");

/** Used as references for the maximum length and index of an array. */
var MAX_ARRAY_LENGTH = 4294967295;

/**
 * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
 *
 * @private
 * @constructor
 * @param {*} value The value to wrap.
 */
function LazyWrapper(value) {
  this.__wrapped__ = value;
  this.__actions__ = [];
  this.__dir__ = 1;
  this.__filtered__ = false;
  this.__iteratees__ = [];
  this.__takeCount__ = MAX_ARRAY_LENGTH;
  this.__views__ = [];
}

// Ensure `LazyWrapper` is an instance of `baseLodash`.
LazyWrapper.prototype = baseCreate(baseLodash.prototype);
LazyWrapper.prototype.constructor = LazyWrapper;

module.exports = LazyWrapper;


/***/ }),

/***/ "./node_modules/lodash/_ListCache.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_ListCache.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var listCacheClear = __webpack_require__(/*! ./_listCacheClear */ "./node_modules/lodash/_listCacheClear.js"),
    listCacheDelete = __webpack_require__(/*! ./_listCacheDelete */ "./node_modules/lodash/_listCacheDelete.js"),
    listCacheGet = __webpack_require__(/*! ./_listCacheGet */ "./node_modules/lodash/_listCacheGet.js"),
    listCacheHas = __webpack_require__(/*! ./_listCacheHas */ "./node_modules/lodash/_listCacheHas.js"),
    listCacheSet = __webpack_require__(/*! ./_listCacheSet */ "./node_modules/lodash/_listCacheSet.js");

/**
 * Creates an list cache object.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */
function ListCache(entries) {
  var index = -1,
      length = entries == null ? 0 : entries.length;

  this.clear();
  while (++index < length) {
    var entry = entries[index];
    this.set(entry[0], entry[1]);
  }
}

// Add methods to `ListCache`.
ListCache.prototype.clear = listCacheClear;
ListCache.prototype['delete'] = listCacheDelete;
ListCache.prototype.get = listCacheGet;
ListCache.prototype.has = listCacheHas;
ListCache.prototype.set = listCacheSet;

module.exports = ListCache;


/***/ }),

/***/ "./node_modules/lodash/_LodashWrapper.js":
/*!***********************************************!*\
  !*** ./node_modules/lodash/_LodashWrapper.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseCreate = __webpack_require__(/*! ./_baseCreate */ "./node_modules/lodash/_baseCreate.js"),
    baseLodash = __webpack_require__(/*! ./_baseLodash */ "./node_modules/lodash/_baseLodash.js");

/**
 * The base constructor for creating `lodash` wrapper objects.
 *
 * @private
 * @param {*} value The value to wrap.
 * @param {boolean} [chainAll] Enable explicit method chain sequences.
 */
function LodashWrapper(value, chainAll) {
  this.__wrapped__ = value;
  this.__actions__ = [];
  this.__chain__ = !!chainAll;
  this.__index__ = 0;
  this.__values__ = undefined;
}

LodashWrapper.prototype = baseCreate(baseLodash.prototype);
LodashWrapper.prototype.constructor = LodashWrapper;

module.exports = LodashWrapper;


/***/ }),

/***/ "./node_modules/lodash/_Map.js":
/*!*************************************!*\
  !*** ./node_modules/lodash/_Map.js ***!
  \*************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
    root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");

/* Built-in method references that are verified to be native. */
var Map = getNative(root, 'Map');

module.exports = Map;


/***/ }),

/***/ "./node_modules/lodash/_MapCache.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_MapCache.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var mapCacheClear = __webpack_require__(/*! ./_mapCacheClear */ "./node_modules/lodash/_mapCacheClear.js"),
    mapCacheDelete = __webpack_require__(/*! ./_mapCacheDelete */ "./node_modules/lodash/_mapCacheDelete.js"),
    mapCacheGet = __webpack_require__(/*! ./_mapCacheGet */ "./node_modules/lodash/_mapCacheGet.js"),
    mapCacheHas = __webpack_require__(/*! ./_mapCacheHas */ "./node_modules/lodash/_mapCacheHas.js"),
    mapCacheSet = __webpack_require__(/*! ./_mapCacheSet */ "./node_modules/lodash/_mapCacheSet.js");

/**
 * Creates a map cache object to store key-value pairs.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */
function MapCache(entries) {
  var index = -1,
      length = entries == null ? 0 : entries.length;

  this.clear();
  while (++index < length) {
    var entry = entries[index];
    this.set(entry[0], entry[1]);
  }
}

// Add methods to `MapCache`.
MapCache.prototype.clear = mapCacheClear;
MapCache.prototype['delete'] = mapCacheDelete;
MapCache.prototype.get = mapCacheGet;
MapCache.prototype.has = mapCacheHas;
MapCache.prototype.set = mapCacheSet;

module.exports = MapCache;


/***/ }),

/***/ "./node_modules/lodash/_Promise.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_Promise.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
    root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");

/* Built-in method references that are verified to be native. */
var Promise = getNative(root, 'Promise');

module.exports = Promise;


/***/ }),

/***/ "./node_modules/lodash/_Set.js":
/*!*************************************!*\
  !*** ./node_modules/lodash/_Set.js ***!
  \*************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
    root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");

/* Built-in method references that are verified to be native. */
var Set = getNative(root, 'Set');

module.exports = Set;


/***/ }),

/***/ "./node_modules/lodash/_SetCache.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_SetCache.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var MapCache = __webpack_require__(/*! ./_MapCache */ "./node_modules/lodash/_MapCache.js"),
    setCacheAdd = __webpack_require__(/*! ./_setCacheAdd */ "./node_modules/lodash/_setCacheAdd.js"),
    setCacheHas = __webpack_require__(/*! ./_setCacheHas */ "./node_modules/lodash/_setCacheHas.js");

/**
 *
 * Creates an array cache object to store unique values.
 *
 * @private
 * @constructor
 * @param {Array} [values] The values to cache.
 */
function SetCache(values) {
  var index = -1,
      length = values == null ? 0 : values.length;

  this.__data__ = new MapCache;
  while (++index < length) {
    this.add(values[index]);
  }
}

// Add methods to `SetCache`.
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
SetCache.prototype.has = setCacheHas;

module.exports = SetCache;


/***/ }),

/***/ "./node_modules/lodash/_Stack.js":
/*!***************************************!*\
  !*** ./node_modules/lodash/_Stack.js ***!
  \***************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"),
    stackClear = __webpack_require__(/*! ./_stackClear */ "./node_modules/lodash/_stackClear.js"),
    stackDelete = __webpack_require__(/*! ./_stackDelete */ "./node_modules/lodash/_stackDelete.js"),
    stackGet = __webpack_require__(/*! ./_stackGet */ "./node_modules/lodash/_stackGet.js"),
    stackHas = __webpack_require__(/*! ./_stackHas */ "./node_modules/lodash/_stackHas.js"),
    stackSet = __webpack_require__(/*! ./_stackSet */ "./node_modules/lodash/_stackSet.js");

/**
 * Creates a stack cache object to store key-value pairs.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */
function Stack(entries) {
  var data = this.__data__ = new ListCache(entries);
  this.size = data.size;
}

// Add methods to `Stack`.
Stack.prototype.clear = stackClear;
Stack.prototype['delete'] = stackDelete;
Stack.prototype.get = stackGet;
Stack.prototype.has = stackHas;
Stack.prototype.set = stackSet;

module.exports = Stack;


/***/ }),

/***/ "./node_modules/lodash/_Symbol.js":
/*!****************************************!*\
  !*** ./node_modules/lodash/_Symbol.js ***!
  \****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");

/** Built-in value references. */
var Symbol = root.Symbol;

module.exports = Symbol;


/***/ }),

/***/ "./node_modules/lodash/_Uint8Array.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_Uint8Array.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");

/** Built-in value references. */
var Uint8Array = root.Uint8Array;

module.exports = Uint8Array;


/***/ }),

/***/ "./node_modules/lodash/_WeakMap.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_WeakMap.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
    root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");

/* Built-in method references that are verified to be native. */
var WeakMap = getNative(root, 'WeakMap');

module.exports = WeakMap;


/***/ }),

/***/ "./node_modules/lodash/_apply.js":
/*!***************************************!*\
  !*** ./node_modules/lodash/_apply.js ***!
  \***************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * A faster alternative to `Function#apply`, this function invokes `func`
 * with the `this` binding of `thisArg` and the arguments of `args`.
 *
 * @private
 * @param {Function} func The function to invoke.
 * @param {*} thisArg The `this` binding of `func`.
 * @param {Array} args The arguments to invoke `func` with.
 * @returns {*} Returns the result of `func`.
 */
function apply(func, thisArg, args) {
  switch (args.length) {
    case 0: return func.call(thisArg);
    case 1: return func.call(thisArg, args[0]);
    case 2: return func.call(thisArg, args[0], args[1]);
    case 3: return func.call(thisArg, args[0], args[1], args[2]);
  }
  return func.apply(thisArg, args);
}

module.exports = apply;


/***/ }),

/***/ "./node_modules/lodash/_arrayEach.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_arrayEach.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * A specialized version of `_.forEach` for arrays without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns `array`.
 */
function arrayEach(array, iteratee) {
  var index = -1,
      length = array == null ? 0 : array.length;

  while (++index < length) {
    if (iteratee(array[index], index, array) === false) {
      break;
    }
  }
  return array;
}

module.exports = arrayEach;


/***/ }),

/***/ "./node_modules/lodash/_arrayFilter.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_arrayFilter.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * A specialized version of `_.filter` for arrays without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} predicate The function invoked per iteration.
 * @returns {Array} Returns the new filtered array.
 */
function arrayFilter(array, predicate) {
  var index = -1,
      length = array == null ? 0 : array.length,
      resIndex = 0,
      result = [];

  while (++index < length) {
    var value = array[index];
    if (predicate(value, index, array)) {
      result[resIndex++] = value;
    }
  }
  return result;
}

module.exports = arrayFilter;


/***/ }),

/***/ "./node_modules/lodash/_arrayLikeKeys.js":
/*!***********************************************!*\
  !*** ./node_modules/lodash/_arrayLikeKeys.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseTimes = __webpack_require__(/*! ./_baseTimes */ "./node_modules/lodash/_baseTimes.js"),
    isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
    isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
    isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js");

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Creates an array of the enumerable property names of the array-like `value`.
 *
 * @private
 * @param {*} value The value to query.
 * @param {boolean} inherited Specify returning inherited property names.
 * @returns {Array} Returns the array of property names.
 */
function arrayLikeKeys(value, inherited) {
  var isArr = isArray(value),
      isArg = !isArr && isArguments(value),
      isBuff = !isArr && !isArg && isBuffer(value),
      isType = !isArr && !isArg && !isBuff && isTypedArray(value),
      skipIndexes = isArr || isArg || isBuff || isType,
      result = skipIndexes ? baseTimes(value.length, String) : [],
      length = result.length;

  for (var key in value) {
    if ((inherited || hasOwnProperty.call(value, key)) &&
        !(skipIndexes && (
           // Safari 9 has enumerable `arguments.length` in strict mode.
           key == 'length' ||
           // Node.js 0.10 has enumerable non-index properties on buffers.
           (isBuff && (key == 'offset' || key == 'parent')) ||
           // PhantomJS 2 has enumerable non-index properties on typed arrays.
           (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
           // Skip index properties.
           isIndex(key, length)
        ))) {
      result.push(key);
    }
  }
  return result;
}

module.exports = arrayLikeKeys;


/***/ }),

/***/ "./node_modules/lodash/_arrayMap.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_arrayMap.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * A specialized version of `_.map` for arrays without support for iteratee
 * shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns the new mapped array.
 */
function arrayMap(array, iteratee) {
  var index = -1,
      length = array == null ? 0 : array.length,
      result = Array(length);

  while (++index < length) {
    result[index] = iteratee(array[index], index, array);
  }
  return result;
}

module.exports = arrayMap;


/***/ }),

/***/ "./node_modules/lodash/_arrayPush.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_arrayPush.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Appends the elements of `values` to `array`.
 *
 * @private
 * @param {Array} array The array to modify.
 * @param {Array} values The values to append.
 * @returns {Array} Returns `array`.
 */
function arrayPush(array, values) {
  var index = -1,
      length = values.length,
      offset = array.length;

  while (++index < length) {
    array[offset + index] = values[index];
  }
  return array;
}

module.exports = arrayPush;


/***/ }),

/***/ "./node_modules/lodash/_arraySome.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_arraySome.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * A specialized version of `_.some` for arrays without support for iteratee
 * shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} predicate The function invoked per iteration.
 * @returns {boolean} Returns `true` if any element passes the predicate check,
 *  else `false`.
 */
function arraySome(array, predicate) {
  var index = -1,
      length = array == null ? 0 : array.length;

  while (++index < length) {
    if (predicate(array[index], index, array)) {
      return true;
    }
  }
  return false;
}

module.exports = arraySome;


/***/ }),

/***/ "./node_modules/lodash/_assignMergeValue.js":
/*!**************************************************!*\
  !*** ./node_modules/lodash/_assignMergeValue.js ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js"),
    eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js");

/**
 * This function is like `assignValue` except that it doesn't assign
 * `undefined` values.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */
function assignMergeValue(object, key, value) {
  if ((value !== undefined && !eq(object[key], value)) ||
      (value === undefined && !(key in object))) {
    baseAssignValue(object, key, value);
  }
}

module.exports = assignMergeValue;


/***/ }),

/***/ "./node_modules/lodash/_assignValue.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_assignValue.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js"),
    eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js");

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Assigns `value` to `key` of `object` if the existing value is not equivalent
 * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * for equality comparisons.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */
function assignValue(object, key, value) {
  var objValue = object[key];
  if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
      (value === undefined && !(key in object))) {
    baseAssignValue(object, key, value);
  }
}

module.exports = assignValue;


/***/ }),

/***/ "./node_modules/lodash/_assocIndexOf.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_assocIndexOf.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js");

/**
 * Gets the index at which the `key` is found in `array` of key-value pairs.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} key The key to search for.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */
function assocIndexOf(array, key) {
  var length = array.length;
  while (length--) {
    if (eq(array[length][0], key)) {
      return length;
    }
  }
  return -1;
}

module.exports = assocIndexOf;


/***/ }),

/***/ "./node_modules/lodash/_baseAssign.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_baseAssign.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
    keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");

/**
 * The base implementation of `_.assign` without support for multiple sources
 * or `customizer` functions.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @returns {Object} Returns `object`.
 */
function baseAssign(object, source) {
  return object && copyObject(source, keys(source), object);
}

module.exports = baseAssign;


/***/ }),

/***/ "./node_modules/lodash/_baseAssignIn.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_baseAssignIn.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
    keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");

/**
 * The base implementation of `_.assignIn` without support for multiple sources
 * or `customizer` functions.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @returns {Object} Returns `object`.
 */
function baseAssignIn(object, source) {
  return object && copyObject(source, keysIn(source), object);
}

module.exports = baseAssignIn;


/***/ }),

/***/ "./node_modules/lodash/_baseAssignValue.js":
/*!*************************************************!*\
  !*** ./node_modules/lodash/_baseAssignValue.js ***!
  \*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var defineProperty = __webpack_require__(/*! ./_defineProperty */ "./node_modules/lodash/_defineProperty.js");

/**
 * The base implementation of `assignValue` and `assignMergeValue` without
 * value checks.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */
function baseAssignValue(object, key, value) {
  if (key == '__proto__' && defineProperty) {
    defineProperty(object, key, {
      'configurable': true,
      'enumerable': true,
      'value': value,
      'writable': true
    });
  } else {
    object[key] = value;
  }
}

module.exports = baseAssignValue;


/***/ }),

/***/ "./node_modules/lodash/_baseClone.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_baseClone.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
    arrayEach = __webpack_require__(/*! ./_arrayEach */ "./node_modules/lodash/_arrayEach.js"),
    assignValue = __webpack_require__(/*! ./_assignValue */ "./node_modules/lodash/_assignValue.js"),
    baseAssign = __webpack_require__(/*! ./_baseAssign */ "./node_modules/lodash/_baseAssign.js"),
    baseAssignIn = __webpack_require__(/*! ./_baseAssignIn */ "./node_modules/lodash/_baseAssignIn.js"),
    cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "./node_modules/lodash/_cloneBuffer.js"),
    copyArray = __webpack_require__(/*! ./_copyArray */ "./node_modules/lodash/_copyArray.js"),
    copySymbols = __webpack_require__(/*! ./_copySymbols */ "./node_modules/lodash/_copySymbols.js"),
    copySymbolsIn = __webpack_require__(/*! ./_copySymbolsIn */ "./node_modules/lodash/_copySymbolsIn.js"),
    getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "./node_modules/lodash/_getAllKeys.js"),
    getAllKeysIn = __webpack_require__(/*! ./_getAllKeysIn */ "./node_modules/lodash/_getAllKeysIn.js"),
    getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
    initCloneArray = __webpack_require__(/*! ./_initCloneArray */ "./node_modules/lodash/_initCloneArray.js"),
    initCloneByTag = __webpack_require__(/*! ./_initCloneByTag */ "./node_modules/lodash/_initCloneByTag.js"),
    initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "./node_modules/lodash/_initCloneObject.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
    isMap = __webpack_require__(/*! ./isMap */ "./node_modules/lodash/isMap.js"),
    isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
    isSet = __webpack_require__(/*! ./isSet */ "./node_modules/lodash/isSet.js"),
    keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");

/** Used to compose bitmasks for cloning. */
var CLONE_DEEP_FLAG = 1,
    CLONE_FLAT_FLAG = 2,
    CLONE_SYMBOLS_FLAG = 4;

/** `Object#toString` result references. */
var argsTag = '[object Arguments]',
    arrayTag = '[object Array]',
    boolTag = '[object Boolean]',
    dateTag = '[object Date]',
    errorTag = '[object Error]',
    funcTag = '[object Function]',
    genTag = '[object GeneratorFunction]',
    mapTag = '[object Map]',
    numberTag = '[object Number]',
    objectTag = '[object Object]',
    regexpTag = '[object RegExp]',
    setTag = '[object Set]',
    stringTag = '[object String]',
    symbolTag = '[object Symbol]',
    weakMapTag = '[object WeakMap]';

var arrayBufferTag = '[object ArrayBuffer]',
    dataViewTag = '[object DataView]',
    float32Tag = '[object Float32Array]',
    float64Tag = '[object Float64Array]',
    int8Tag = '[object Int8Array]',
    int16Tag = '[object Int16Array]',
    int32Tag = '[object Int32Array]',
    uint8Tag = '[object Uint8Array]',
    uint8ClampedTag = '[object Uint8ClampedArray]',
    uint16Tag = '[object Uint16Array]',
    uint32Tag = '[object Uint32Array]';

/** Used to identify `toStringTag` values supported by `_.clone`. */
var cloneableTags = {};
cloneableTags[argsTag] = cloneableTags[arrayTag] =
cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
cloneableTags[boolTag] = cloneableTags[dateTag] =
cloneableTags[float32Tag] = cloneableTags[float64Tag] =
cloneableTags[int8Tag] = cloneableTags[int16Tag] =
cloneableTags[int32Tag] = cloneableTags[mapTag] =
cloneableTags[numberTag] = cloneableTags[objectTag] =
cloneableTags[regexpTag] = cloneableTags[setTag] =
cloneableTags[stringTag] = cloneableTags[symbolTag] =
cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
cloneableTags[errorTag] = cloneableTags[funcTag] =
cloneableTags[weakMapTag] = false;

/**
 * The base implementation of `_.clone` and `_.cloneDeep` which tracks
 * traversed objects.
 *
 * @private
 * @param {*} value The value to clone.
 * @param {boolean} bitmask The bitmask flags.
 *  1 - Deep clone
 *  2 - Flatten inherited properties
 *  4 - Clone symbols
 * @param {Function} [customizer] The function to customize cloning.
 * @param {string} [key] The key of `value`.
 * @param {Object} [object] The parent object of `value`.
 * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
 * @returns {*} Returns the cloned value.
 */
function baseClone(value, bitmask, customizer, key, object, stack) {
  var result,
      isDeep = bitmask & CLONE_DEEP_FLAG,
      isFlat = bitmask & CLONE_FLAT_FLAG,
      isFull = bitmask & CLONE_SYMBOLS_FLAG;

  if (customizer) {
    result = object ? customizer(value, key, object, stack) : customizer(value);
  }
  if (result !== undefined) {
    return result;
  }
  if (!isObject(value)) {
    return value;
  }
  var isArr = isArray(value);
  if (isArr) {
    result = initCloneArray(value);
    if (!isDeep) {
      return copyArray(value, result);
    }
  } else {
    var tag = getTag(value),
        isFunc = tag == funcTag || tag == genTag;

    if (isBuffer(value)) {
      return cloneBuffer(value, isDeep);
    }
    if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
      result = (isFlat || isFunc) ? {} : initCloneObject(value);
      if (!isDeep) {
        return isFlat
          ? copySymbolsIn(value, baseAssignIn(result, value))
          : copySymbols(value, baseAssign(result, value));
      }
    } else {
      if (!cloneableTags[tag]) {
        return object ? value : {};
      }
      result = initCloneByTag(value, tag, isDeep);
    }
  }
  // Check for circular references and return its corresponding clone.
  stack || (stack = new Stack);
  var stacked = stack.get(value);
  if (stacked) {
    return stacked;
  }
  stack.set(value, result);

  if (isSet(value)) {
    value.forEach(function(subValue) {
      result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
    });
  } else if (isMap(value)) {
    value.forEach(function(subValue, key) {
      result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
    });
  }

  var keysFunc = isFull
    ? (isFlat ? getAllKeysIn : getAllKeys)
    : (isFlat ? keysIn : keys);

  var props = isArr ? undefined : keysFunc(value);
  arrayEach(props || value, function(subValue, key) {
    if (props) {
      key = subValue;
      subValue = value[key];
    }
    // Recursively populate clone (susceptible to call stack limits).
    assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
  });
  return result;
}

module.exports = baseClone;


/***/ }),

/***/ "./node_modules/lodash/_baseCreate.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_baseCreate.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");

/** Built-in value references. */
var objectCreate = Object.create;

/**
 * The base implementation of `_.create` without support for assigning
 * properties to the created object.
 *
 * @private
 * @param {Object} proto The object to inherit from.
 * @returns {Object} Returns the new object.
 */
var baseCreate = (function() {
  function object() {}
  return function(proto) {
    if (!isObject(proto)) {
      return {};
    }
    if (objectCreate) {
      return objectCreate(proto);
    }
    object.prototype = proto;
    var result = new object;
    object.prototype = undefined;
    return result;
  };
}());

module.exports = baseCreate;


/***/ }),

/***/ "./node_modules/lodash/_baseEach.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_baseEach.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "./node_modules/lodash/_baseForOwn.js"),
    createBaseEach = __webpack_require__(/*! ./_createBaseEach */ "./node_modules/lodash/_createBaseEach.js");

/**
 * The base implementation of `_.forEach` without support for iteratee shorthands.
 *
 * @private
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array|Object} Returns `collection`.
 */
var baseEach = createBaseEach(baseForOwn);

module.exports = baseEach;


/***/ }),

/***/ "./node_modules/lodash/_baseFindIndex.js":
/*!***********************************************!*\
  !*** ./node_modules/lodash/_baseFindIndex.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * The base implementation of `_.findIndex` and `_.findLastIndex` without
 * support for iteratee shorthands.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {Function} predicate The function invoked per iteration.
 * @param {number} fromIndex The index to search from.
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */
function baseFindIndex(array, predicate, fromIndex, fromRight) {
  var length = array.length,
      index = fromIndex + (fromRight ? 1 : -1);

  while ((fromRight ? index-- : ++index < length)) {
    if (predicate(array[index], index, array)) {
      return index;
    }
  }
  return -1;
}

module.exports = baseFindIndex;


/***/ }),

/***/ "./node_modules/lodash/_baseFlatten.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_baseFlatten.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var arrayPush = __webpack_require__(/*! ./_arrayPush */ "./node_modules/lodash/_arrayPush.js"),
    isFlattenable = __webpack_require__(/*! ./_isFlattenable */ "./node_modules/lodash/_isFlattenable.js");

/**
 * The base implementation of `_.flatten` with support for restricting flattening.
 *
 * @private
 * @param {Array} array The array to flatten.
 * @param {number} depth The maximum recursion depth.
 * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
 * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
 * @param {Array} [result=[]] The initial result value.
 * @returns {Array} Returns the new flattened array.
 */
function baseFlatten(array, depth, predicate, isStrict, result) {
  var index = -1,
      length = array.length;

  predicate || (predicate = isFlattenable);
  result || (result = []);

  while (++index < length) {
    var value = array[index];
    if (depth > 0 && predicate(value)) {
      if (depth > 1) {
        // Recursively flatten arrays (susceptible to call stack limits).
        baseFlatten(value, depth - 1, predicate, isStrict, result);
      } else {
        arrayPush(result, value);
      }
    } else if (!isStrict) {
      result[result.length] = value;
    }
  }
  return result;
}

module.exports = baseFlatten;


/***/ }),

/***/ "./node_modules/lodash/_baseFor.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_baseFor.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var createBaseFor = __webpack_require__(/*! ./_createBaseFor */ "./node_modules/lodash/_createBaseFor.js");

/**
 * The base implementation of `baseForOwn` which iterates over `object`
 * properties returned by `keysFunc` and invokes `iteratee` for each property.
 * Iteratee functions may exit iteration early by explicitly returning `false`.
 *
 * @private
 * @param {Object} object The object to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @param {Function} keysFunc The function to get the keys of `object`.
 * @returns {Object} Returns `object`.
 */
var baseFor = createBaseFor();

module.exports = baseFor;


/***/ }),

/***/ "./node_modules/lodash/_baseForOwn.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_baseForOwn.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseFor = __webpack_require__(/*! ./_baseFor */ "./node_modules/lodash/_baseFor.js"),
    keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");

/**
 * The base implementation of `_.forOwn` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The object to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Object} Returns `object`.
 */
function baseForOwn(object, iteratee) {
  return object && baseFor(object, iteratee, keys);
}

module.exports = baseForOwn;


/***/ }),

/***/ "./node_modules/lodash/_baseGet.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_baseGet.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
    toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");

/**
 * The base implementation of `_.get` without support for default values.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Array|string} path The path of the property to get.
 * @returns {*} Returns the resolved value.
 */
function baseGet(object, path) {
  path = castPath(path, object);

  var index = 0,
      length = path.length;

  while (object != null && index < length) {
    object = object[toKey(path[index++])];
  }
  return (index && index == length) ? object : undefined;
}

module.exports = baseGet;


/***/ }),

/***/ "./node_modules/lodash/_baseGetAllKeys.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_baseGetAllKeys.js ***!
  \************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var arrayPush = __webpack_require__(/*! ./_arrayPush */ "./node_modules/lodash/_arrayPush.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");

/**
 * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
 * `keysFunc` and `symbolsFunc` to get the enumerable property names and
 * symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Function} keysFunc The function to get the keys of `object`.
 * @param {Function} symbolsFunc The function to get the symbols of `object`.
 * @returns {Array} Returns the array of property names and symbols.
 */
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  var result = keysFunc(object);
  return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
}

module.exports = baseGetAllKeys;


/***/ }),

/***/ "./node_modules/lodash/_baseGetTag.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_baseGetTag.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
    getRawTag = __webpack_require__(/*! ./_getRawTag */ "./node_modules/lodash/_getRawTag.js"),
    objectToString = __webpack_require__(/*! ./_objectToString */ "./node_modules/lodash/_objectToString.js");

/** `Object#toString` result references. */
var nullTag = '[object Null]',
    undefinedTag = '[object Undefined]';

/** Built-in value references. */
var symToStringTag = Symbol ? Symbol.toStringTag : undefined;

/**
 * The base implementation of `getTag` without fallbacks for buggy environments.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the `toStringTag`.
 */
function baseGetTag(value) {
  if (value == null) {
    return value === undefined ? undefinedTag : nullTag;
  }
  return (symToStringTag && symToStringTag in Object(value))
    ? getRawTag(value)
    : objectToString(value);
}

module.exports = baseGetTag;


/***/ }),

/***/ "./node_modules/lodash/_baseHas.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_baseHas.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * The base implementation of `_.has` without support for deep paths.
 *
 * @private
 * @param {Object} [object] The object to query.
 * @param {Array|string} key The key to check.
 * @returns {boolean} Returns `true` if `key` exists, else `false`.
 */
function baseHas(object, key) {
  return object != null && hasOwnProperty.call(object, key);
}

module.exports = baseHas;


/***/ }),

/***/ "./node_modules/lodash/_baseHasIn.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_baseHasIn.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * The base implementation of `_.hasIn` without support for deep paths.
 *
 * @private
 * @param {Object} [object] The object to query.
 * @param {Array|string} key The key to check.
 * @returns {boolean} Returns `true` if `key` exists, else `false`.
 */
function baseHasIn(object, key) {
  return object != null && key in Object(object);
}

module.exports = baseHasIn;


/***/ }),

/***/ "./node_modules/lodash/_baseIsArguments.js":
/*!*************************************************!*\
  !*** ./node_modules/lodash/_baseIsArguments.js ***!
  \*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");

/** `Object#toString` result references. */
var argsTag = '[object Arguments]';

/**
 * The base implementation of `_.isArguments`.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an `arguments` object,
 */
function baseIsArguments(value) {
  return isObjectLike(value) && baseGetTag(value) == argsTag;
}

module.exports = baseIsArguments;


/***/ }),

/***/ "./node_modules/lodash/_baseIsEqual.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_baseIsEqual.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseIsEqualDeep = __webpack_require__(/*! ./_baseIsEqualDeep */ "./node_modules/lodash/_baseIsEqualDeep.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");

/**
 * The base implementation of `_.isEqual` which supports partial comparisons
 * and tracks traversed objects.
 *
 * @private
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @param {boolean} bitmask The bitmask flags.
 *  1 - Unordered comparison
 *  2 - Partial comparison
 * @param {Function} [customizer] The function to customize comparisons.
 * @param {Object} [stack] Tracks traversed `value` and `other` objects.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 */
function baseIsEqual(value, other, bitmask, customizer, stack) {
  if (value === other) {
    return true;
  }
  if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
    return value !== value && other !== other;
  }
  return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
}

module.exports = baseIsEqual;


/***/ }),

/***/ "./node_modules/lodash/_baseIsEqualDeep.js":
/*!*************************************************!*\
  !*** ./node_modules/lodash/_baseIsEqualDeep.js ***!
  \*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
    equalArrays = __webpack_require__(/*! ./_equalArrays */ "./node_modules/lodash/_equalArrays.js"),
    equalByTag = __webpack_require__(/*! ./_equalByTag */ "./node_modules/lodash/_equalByTag.js"),
    equalObjects = __webpack_require__(/*! ./_equalObjects */ "./node_modules/lodash/_equalObjects.js"),
    getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
    isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js");

/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1;

/** `Object#toString` result references. */
var argsTag = '[object Arguments]',
    arrayTag = '[object Array]',
    objectTag = '[object Object]';

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * A specialized version of `baseIsEqual` for arrays and objects which performs
 * deep comparisons and tracks traversed objects enabling objects with circular
 * references to be compared.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} [stack] Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
  var objIsArr = isArray(object),
      othIsArr = isArray(other),
      objTag = objIsArr ? arrayTag : getTag(object),
      othTag = othIsArr ? arrayTag : getTag(other);

  objTag = objTag == argsTag ? objectTag : objTag;
  othTag = othTag == argsTag ? objectTag : othTag;

  var objIsObj = objTag == objectTag,
      othIsObj = othTag == objectTag,
      isSameTag = objTag == othTag;

  if (isSameTag && isBuffer(object)) {
    if (!isBuffer(other)) {
      return false;
    }
    objIsArr = true;
    objIsObj = false;
  }
  if (isSameTag && !objIsObj) {
    stack || (stack = new Stack);
    return (objIsArr || isTypedArray(object))
      ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
      : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
  }
  if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
    var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
        othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');

    if (objIsWrapped || othIsWrapped) {
      var objUnwrapped = objIsWrapped ? object.value() : object,
          othUnwrapped = othIsWrapped ? other.value() : other;

      stack || (stack = new Stack);
      return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
    }
  }
  if (!isSameTag) {
    return false;
  }
  stack || (stack = new Stack);
  return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
}

module.exports = baseIsEqualDeep;


/***/ }),

/***/ "./node_modules/lodash/_baseIsMap.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_baseIsMap.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");

/** `Object#toString` result references. */
var mapTag = '[object Map]';

/**
 * The base implementation of `_.isMap` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a map, else `false`.
 */
function baseIsMap(value) {
  return isObjectLike(value) && getTag(value) == mapTag;
}

module.exports = baseIsMap;


/***/ }),

/***/ "./node_modules/lodash/_baseIsMatch.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_baseIsMatch.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
    baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "./node_modules/lodash/_baseIsEqual.js");

/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1,
    COMPARE_UNORDERED_FLAG = 2;

/**
 * The base implementation of `_.isMatch` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The object to inspect.
 * @param {Object} source The object of property values to match.
 * @param {Array} matchData The property names, values, and compare flags to match.
 * @param {Function} [customizer] The function to customize comparisons.
 * @returns {boolean} Returns `true` if `object` is a match, else `false`.
 */
function baseIsMatch(object, source, matchData, customizer) {
  var index = matchData.length,
      length = index,
      noCustomizer = !customizer;

  if (object == null) {
    return !length;
  }
  object = Object(object);
  while (index--) {
    var data = matchData[index];
    if ((noCustomizer && data[2])
          ? data[1] !== object[data[0]]
          : !(data[0] in object)
        ) {
      return false;
    }
  }
  while (++index < length) {
    data = matchData[index];
    var key = data[0],
        objValue = object[key],
        srcValue = data[1];

    if (noCustomizer && data[2]) {
      if (objValue === undefined && !(key in object)) {
        return false;
      }
    } else {
      var stack = new Stack;
      if (customizer) {
        var result = customizer(objValue, srcValue, key, object, source, stack);
      }
      if (!(result === undefined
            ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
            : result
          )) {
        return false;
      }
    }
  }
  return true;
}

module.exports = baseIsMatch;


/***/ }),

/***/ "./node_modules/lodash/_baseIsNative.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_baseIsNative.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
    isMasked = __webpack_require__(/*! ./_isMasked */ "./node_modules/lodash/_isMasked.js"),
    isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
    toSource = __webpack_require__(/*! ./_toSource */ "./node_modules/lodash/_toSource.js");

/**
 * Used to match `RegExp`
 * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
 */
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;

/** Used to detect host constructors (Safari). */
var reIsHostCtor = /^\[object .+?Constructor\]$/;

/** Used for built-in method references. */
var funcProto = Function.prototype,
    objectProto = Object.prototype;

/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/** Used to detect if a method is native. */
var reIsNative = RegExp('^' +
  funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
);

/**
 * The base implementation of `_.isNative` without bad shim checks.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a native function,
 *  else `false`.
 */
function baseIsNative(value) {
  if (!isObject(value) || isMasked(value)) {
    return false;
  }
  var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
  return pattern.test(toSource(value));
}

module.exports = baseIsNative;


/***/ }),

/***/ "./node_modules/lodash/_baseIsSet.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_baseIsSet.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");

/** `Object#toString` result references. */
var setTag = '[object Set]';

/**
 * The base implementation of `_.isSet` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a set, else `false`.
 */
function baseIsSet(value) {
  return isObjectLike(value) && getTag(value) == setTag;
}

module.exports = baseIsSet;


/***/ }),

/***/ "./node_modules/lodash/_baseIsTypedArray.js":
/*!**************************************************!*\
  !*** ./node_modules/lodash/_baseIsTypedArray.js ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
    isLength = __webpack_require__(/*! ./isLength */ "./node_modules/lodash/isLength.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");

/** `Object#toString` result references. */
var argsTag = '[object Arguments]',
    arrayTag = '[object Array]',
    boolTag = '[object Boolean]',
    dateTag = '[object Date]',
    errorTag = '[object Error]',
    funcTag = '[object Function]',
    mapTag = '[object Map]',
    numberTag = '[object Number]',
    objectTag = '[object Object]',
    regexpTag = '[object RegExp]',
    setTag = '[object Set]',
    stringTag = '[object String]',
    weakMapTag = '[object WeakMap]';

var arrayBufferTag = '[object ArrayBuffer]',
    dataViewTag = '[object DataView]',
    float32Tag = '[object Float32Array]',
    float64Tag = '[object Float64Array]',
    int8Tag = '[object Int8Array]',
    int16Tag = '[object Int16Array]',
    int32Tag = '[object Int32Array]',
    uint8Tag = '[object Uint8Array]',
    uint8ClampedTag = '[object Uint8ClampedArray]',
    uint16Tag = '[object Uint16Array]',
    uint32Tag = '[object Uint32Array]';

/** Used to identify `toStringTag` values of typed arrays. */
var typedArrayTags = {};
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
typedArrayTags[uint32Tag] = true;
typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
typedArrayTags[errorTag] = typedArrayTags[funcTag] =
typedArrayTags[mapTag] = typedArrayTags[numberTag] =
typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
typedArrayTags[setTag] = typedArrayTags[stringTag] =
typedArrayTags[weakMapTag] = false;

/**
 * The base implementation of `_.isTypedArray` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
 */
function baseIsTypedArray(value) {
  return isObjectLike(value) &&
    isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
}

module.exports = baseIsTypedArray;


/***/ }),

/***/ "./node_modules/lodash/_baseIteratee.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_baseIteratee.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseMatches = __webpack_require__(/*! ./_baseMatches */ "./node_modules/lodash/_baseMatches.js"),
    baseMatchesProperty = __webpack_require__(/*! ./_baseMatchesProperty */ "./node_modules/lodash/_baseMatchesProperty.js"),
    identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    property = __webpack_require__(/*! ./property */ "./node_modules/lodash/property.js");

/**
 * The base implementation of `_.iteratee`.
 *
 * @private
 * @param {*} [value=_.identity] The value to convert to an iteratee.
 * @returns {Function} Returns the iteratee.
 */
function baseIteratee(value) {
  // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
  // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
  if (typeof value == 'function') {
    return value;
  }
  if (value == null) {
    return identity;
  }
  if (typeof value == 'object') {
    return isArray(value)
      ? baseMatchesProperty(value[0], value[1])
      : baseMatches(value);
  }
  return property(value);
}

module.exports = baseIteratee;


/***/ }),

/***/ "./node_modules/lodash/_baseKeys.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_baseKeys.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js"),
    nativeKeys = __webpack_require__(/*! ./_nativeKeys */ "./node_modules/lodash/_nativeKeys.js");

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */
function baseKeys(object) {
  if (!isPrototype(object)) {
    return nativeKeys(object);
  }
  var result = [];
  for (var key in Object(object)) {
    if (hasOwnProperty.call(object, key) && key != 'constructor') {
      result.push(key);
    }
  }
  return result;
}

module.exports = baseKeys;


/***/ }),

/***/ "./node_modules/lodash/_baseKeysIn.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_baseKeysIn.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
    isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js"),
    nativeKeysIn = __webpack_require__(/*! ./_nativeKeysIn */ "./node_modules/lodash/_nativeKeysIn.js");

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */
function baseKeysIn(object) {
  if (!isObject(object)) {
    return nativeKeysIn(object);
  }
  var isProto = isPrototype(object),
      result = [];

  for (var key in object) {
    if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
      result.push(key);
    }
  }
  return result;
}

module.exports = baseKeysIn;


/***/ }),

/***/ "./node_modules/lodash/_baseLodash.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_baseLodash.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * The function whose prototype chain sequence wrappers inherit from.
 *
 * @private
 */
function baseLodash() {
  // No operation performed.
}

module.exports = baseLodash;


/***/ }),

/***/ "./node_modules/lodash/_baseMatches.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_baseMatches.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseIsMatch = __webpack_require__(/*! ./_baseIsMatch */ "./node_modules/lodash/_baseIsMatch.js"),
    getMatchData = __webpack_require__(/*! ./_getMatchData */ "./node_modules/lodash/_getMatchData.js"),
    matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "./node_modules/lodash/_matchesStrictComparable.js");

/**
 * The base implementation of `_.matches` which doesn't clone `source`.
 *
 * @private
 * @param {Object} source The object of property values to match.
 * @returns {Function} Returns the new spec function.
 */
function baseMatches(source) {
  var matchData = getMatchData(source);
  if (matchData.length == 1 && matchData[0][2]) {
    return matchesStrictComparable(matchData[0][0], matchData[0][1]);
  }
  return function(object) {
    return object === source || baseIsMatch(object, source, matchData);
  };
}

module.exports = baseMatches;


/***/ }),

/***/ "./node_modules/lodash/_baseMatchesProperty.js":
/*!*****************************************************!*\
  !*** ./node_modules/lodash/_baseMatchesProperty.js ***!
  \*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "./node_modules/lodash/_baseIsEqual.js"),
    get = __webpack_require__(/*! ./get */ "./node_modules/lodash/get.js"),
    hasIn = __webpack_require__(/*! ./hasIn */ "./node_modules/lodash/hasIn.js"),
    isKey = __webpack_require__(/*! ./_isKey */ "./node_modules/lodash/_isKey.js"),
    isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "./node_modules/lodash/_isStrictComparable.js"),
    matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "./node_modules/lodash/_matchesStrictComparable.js"),
    toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");

/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1,
    COMPARE_UNORDERED_FLAG = 2;

/**
 * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
 *
 * @private
 * @param {string} path The path of the property to get.
 * @param {*} srcValue The value to match.
 * @returns {Function} Returns the new spec function.
 */
function baseMatchesProperty(path, srcValue) {
  if (isKey(path) && isStrictComparable(srcValue)) {
    return matchesStrictComparable(toKey(path), srcValue);
  }
  return function(object) {
    var objValue = get(object, path);
    return (objValue === undefined && objValue === srcValue)
      ? hasIn(object, path)
      : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
  };
}

module.exports = baseMatchesProperty;


/***/ }),

/***/ "./node_modules/lodash/_baseMerge.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_baseMerge.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
    assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "./node_modules/lodash/_assignMergeValue.js"),
    baseFor = __webpack_require__(/*! ./_baseFor */ "./node_modules/lodash/_baseFor.js"),
    baseMergeDeep = __webpack_require__(/*! ./_baseMergeDeep */ "./node_modules/lodash/_baseMergeDeep.js"),
    isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
    keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js"),
    safeGet = __webpack_require__(/*! ./_safeGet */ "./node_modules/lodash/_safeGet.js");

/**
 * The base implementation of `_.merge` without support for multiple sources.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @param {number} srcIndex The index of `source`.
 * @param {Function} [customizer] The function to customize merged values.
 * @param {Object} [stack] Tracks traversed source values and their merged
 *  counterparts.
 */
function baseMerge(object, source, srcIndex, customizer, stack) {
  if (object === source) {
    return;
  }
  baseFor(source, function(srcValue, key) {
    stack || (stack = new Stack);
    if (isObject(srcValue)) {
      baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
    }
    else {
      var newValue = customizer
        ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
        : undefined;

      if (newValue === undefined) {
        newValue = srcValue;
      }
      assignMergeValue(object, key, newValue);
    }
  }, keysIn);
}

module.exports = baseMerge;


/***/ }),

/***/ "./node_modules/lodash/_baseMergeDeep.js":
/*!***********************************************!*\
  !*** ./node_modules/lodash/_baseMergeDeep.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "./node_modules/lodash/_assignMergeValue.js"),
    cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "./node_modules/lodash/_cloneBuffer.js"),
    cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "./node_modules/lodash/_cloneTypedArray.js"),
    copyArray = __webpack_require__(/*! ./_copyArray */ "./node_modules/lodash/_copyArray.js"),
    initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "./node_modules/lodash/_initCloneObject.js"),
    isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "./node_modules/lodash/isArrayLikeObject.js"),
    isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
    isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
    isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
    isPlainObject = __webpack_require__(/*! ./isPlainObject */ "./node_modules/lodash/isPlainObject.js"),
    isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js"),
    safeGet = __webpack_require__(/*! ./_safeGet */ "./node_modules/lodash/_safeGet.js"),
    toPlainObject = __webpack_require__(/*! ./toPlainObject */ "./node_modules/lodash/toPlainObject.js");

/**
 * A specialized version of `baseMerge` for arrays and objects which performs
 * deep merges and tracks traversed objects enabling objects with circular
 * references to be merged.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @param {string} key The key of the value to merge.
 * @param {number} srcIndex The index of `source`.
 * @param {Function} mergeFunc The function to merge values.
 * @param {Function} [customizer] The function to customize assigned values.
 * @param {Object} [stack] Tracks traversed source values and their merged
 *  counterparts.
 */
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
  var objValue = safeGet(object, key),
      srcValue = safeGet(source, key),
      stacked = stack.get(srcValue);

  if (stacked) {
    assignMergeValue(object, key, stacked);
    return;
  }
  var newValue = customizer
    ? customizer(objValue, srcValue, (key + ''), object, source, stack)
    : undefined;

  var isCommon = newValue === undefined;

  if (isCommon) {
    var isArr = isArray(srcValue),
        isBuff = !isArr && isBuffer(srcValue),
        isTyped = !isArr && !isBuff && isTypedArray(srcValue);

    newValue = srcValue;
    if (isArr || isBuff || isTyped) {
      if (isArray(objValue)) {
        newValue = objValue;
      }
      else if (isArrayLikeObject(objValue)) {
        newValue = copyArray(objValue);
      }
      else if (isBuff) {
        isCommon = false;
        newValue = cloneBuffer(srcValue, true);
      }
      else if (isTyped) {
        isCommon = false;
        newValue = cloneTypedArray(srcValue, true);
      }
      else {
        newValue = [];
      }
    }
    else if (isPlainObject(srcValue) || isArguments(srcValue)) {
      newValue = objValue;
      if (isArguments(objValue)) {
        newValue = toPlainObject(objValue);
      }
      else if (!isObject(objValue) || isFunction(objValue)) {
        newValue = initCloneObject(srcValue);
      }
    }
    else {
      isCommon = false;
    }
  }
  if (isCommon) {
    // Recursively merge objects and arrays (susceptible to call stack limits).
    stack.set(srcValue, newValue);
    mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
    stack['delete'](srcValue);
  }
  assignMergeValue(object, key, newValue);
}

module.exports = baseMergeDeep;


/***/ }),

/***/ "./node_modules/lodash/_basePick.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_basePick.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var basePickBy = __webpack_require__(/*! ./_basePickBy */ "./node_modules/lodash/_basePickBy.js"),
    hasIn = __webpack_require__(/*! ./hasIn */ "./node_modules/lodash/hasIn.js");

/**
 * The base implementation of `_.pick` without support for individual
 * property identifiers.
 *
 * @private
 * @param {Object} object The source object.
 * @param {string[]} paths The property paths to pick.
 * @returns {Object} Returns the new object.
 */
function basePick(object, paths) {
  return basePickBy(object, paths, function(value, path) {
    return hasIn(object, path);
  });
}

module.exports = basePick;


/***/ }),

/***/ "./node_modules/lodash/_basePickBy.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_basePickBy.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js"),
    baseSet = __webpack_require__(/*! ./_baseSet */ "./node_modules/lodash/_baseSet.js"),
    castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js");

/**
 * The base implementation of  `_.pickBy` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The source object.
 * @param {string[]} paths The property paths to pick.
 * @param {Function} predicate The function invoked per property.
 * @returns {Object} Returns the new object.
 */
function basePickBy(object, paths, predicate) {
  var index = -1,
      length = paths.length,
      result = {};

  while (++index < length) {
    var path = paths[index],
        value = baseGet(object, path);

    if (predicate(value, path)) {
      baseSet(result, castPath(path, object), value);
    }
  }
  return result;
}

module.exports = basePickBy;


/***/ }),

/***/ "./node_modules/lodash/_baseProperty.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_baseProperty.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * The base implementation of `_.property` without support for deep paths.
 *
 * @private
 * @param {string} key The key of the property to get.
 * @returns {Function} Returns the new accessor function.
 */
function baseProperty(key) {
  return function(object) {
    return object == null ? undefined : object[key];
  };
}

module.exports = baseProperty;


/***/ }),

/***/ "./node_modules/lodash/_basePropertyDeep.js":
/*!**************************************************!*\
  !*** ./node_modules/lodash/_basePropertyDeep.js ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js");

/**
 * A specialized version of `baseProperty` which supports deep paths.
 *
 * @private
 * @param {Array|string} path The path of the property to get.
 * @returns {Function} Returns the new accessor function.
 */
function basePropertyDeep(path) {
  return function(object) {
    return baseGet(object, path);
  };
}

module.exports = basePropertyDeep;


/***/ }),

/***/ "./node_modules/lodash/_baseRest.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_baseRest.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js"),
    overRest = __webpack_require__(/*! ./_overRest */ "./node_modules/lodash/_overRest.js"),
    setToString = __webpack_require__(/*! ./_setToString */ "./node_modules/lodash/_setToString.js");

/**
 * The base implementation of `_.rest` which doesn't validate or coerce arguments.
 *
 * @private
 * @param {Function} func The function to apply a rest parameter to.
 * @param {number} [start=func.length-1] The start position of the rest parameter.
 * @returns {Function} Returns the new function.
 */
function baseRest(func, start) {
  return setToString(overRest(func, start, identity), func + '');
}

module.exports = baseRest;


/***/ }),

/***/ "./node_modules/lodash/_baseSet.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_baseSet.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var assignValue = __webpack_require__(/*! ./_assignValue */ "./node_modules/lodash/_assignValue.js"),
    castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
    isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
    isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
    toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");

/**
 * The base implementation of `_.set`.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {Array|string} path The path of the property to set.
 * @param {*} value The value to set.
 * @param {Function} [customizer] The function to customize path creation.
 * @returns {Object} Returns `object`.
 */
function baseSet(object, path, value, customizer) {
  if (!isObject(object)) {
    return object;
  }
  path = castPath(path, object);

  var index = -1,
      length = path.length,
      lastIndex = length - 1,
      nested = object;

  while (nested != null && ++index < length) {
    var key = toKey(path[index]),
        newValue = value;

    if (index != lastIndex) {
      var objValue = nested[key];
      newValue = customizer ? customizer(objValue, key, nested) : undefined;
      if (newValue === undefined) {
        newValue = isObject(objValue)
          ? objValue
          : (isIndex(path[index + 1]) ? [] : {});
      }
    }
    assignValue(nested, key, newValue);
    nested = nested[key];
  }
  return object;
}

module.exports = baseSet;


/***/ }),

/***/ "./node_modules/lodash/_baseSetToString.js":
/*!*************************************************!*\
  !*** ./node_modules/lodash/_baseSetToString.js ***!
  \*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var constant = __webpack_require__(/*! ./constant */ "./node_modules/lodash/constant.js"),
    defineProperty = __webpack_require__(/*! ./_defineProperty */ "./node_modules/lodash/_defineProperty.js"),
    identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js");

/**
 * The base implementation of `setToString` without support for hot loop shorting.
 *
 * @private
 * @param {Function} func The function to modify.
 * @param {Function} string The `toString` result.
 * @returns {Function} Returns `func`.
 */
var baseSetToString = !defineProperty ? identity : function(func, string) {
  return defineProperty(func, 'toString', {
    'configurable': true,
    'enumerable': false,
    'value': constant(string),
    'writable': true
  });
};

module.exports = baseSetToString;


/***/ }),

/***/ "./node_modules/lodash/_baseSlice.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_baseSlice.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * The base implementation of `_.slice` without an iteratee call guard.
 *
 * @private
 * @param {Array} array The array to slice.
 * @param {number} [start=0] The start position.
 * @param {number} [end=array.length] The end position.
 * @returns {Array} Returns the slice of `array`.
 */
function baseSlice(array, start, end) {
  var index = -1,
      length = array.length;

  if (start < 0) {
    start = -start > length ? 0 : (length + start);
  }
  end = end > length ? length : end;
  if (end < 0) {
    end += length;
  }
  length = start > end ? 0 : ((end - start) >>> 0);
  start >>>= 0;

  var result = Array(length);
  while (++index < length) {
    result[index] = array[index + start];
  }
  return result;
}

module.exports = baseSlice;


/***/ }),

/***/ "./node_modules/lodash/_baseSome.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_baseSome.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseEach = __webpack_require__(/*! ./_baseEach */ "./node_modules/lodash/_baseEach.js");

/**
 * The base implementation of `_.some` without support for iteratee shorthands.
 *
 * @private
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} predicate The function invoked per iteration.
 * @returns {boolean} Returns `true` if any element passes the predicate check,
 *  else `false`.
 */
function baseSome(collection, predicate) {
  var result;

  baseEach(collection, function(value, index, collection) {
    result = predicate(value, index, collection);
    return !result;
  });
  return !!result;
}

module.exports = baseSome;


/***/ }),

/***/ "./node_modules/lodash/_baseTimes.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_baseTimes.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * The base implementation of `_.times` without support for iteratee shorthands
 * or max array length checks.
 *
 * @private
 * @param {number} n The number of times to invoke `iteratee`.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns the array of results.
 */
function baseTimes(n, iteratee) {
  var index = -1,
      result = Array(n);

  while (++index < n) {
    result[index] = iteratee(index);
  }
  return result;
}

module.exports = baseTimes;


/***/ }),

/***/ "./node_modules/lodash/_baseToString.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_baseToString.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
    arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");

/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0;

/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
    symbolToString = symbolProto ? symbolProto.toString : undefined;

/**
 * The base implementation of `_.toString` which doesn't convert nullish
 * values to empty strings.
 *
 * @private
 * @param {*} value The value to process.
 * @returns {string} Returns the string.
 */
function baseToString(value) {
  // Exit early for strings to avoid a performance hit in some environments.
  if (typeof value == 'string') {
    return value;
  }
  if (isArray(value)) {
    // Recursively convert values (susceptible to call stack limits).
    return arrayMap(value, baseToString) + '';
  }
  if (isSymbol(value)) {
    return symbolToString ? symbolToString.call(value) : '';
  }
  var result = (value + '');
  return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
}

module.exports = baseToString;


/***/ }),

/***/ "./node_modules/lodash/_baseUnary.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_baseUnary.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * The base implementation of `_.unary` without support for storing metadata.
 *
 * @private
 * @param {Function} func The function to cap arguments for.
 * @returns {Function} Returns the new capped function.
 */
function baseUnary(func) {
  return function(value) {
    return func(value);
  };
}

module.exports = baseUnary;


/***/ }),

/***/ "./node_modules/lodash/_baseUnset.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_baseUnset.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
    last = __webpack_require__(/*! ./last */ "./node_modules/lodash/last.js"),
    parent = __webpack_require__(/*! ./_parent */ "./node_modules/lodash/_parent.js"),
    toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");

/**
 * The base implementation of `_.unset`.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {Array|string} path The property path to unset.
 * @returns {boolean} Returns `true` if the property is deleted, else `false`.
 */
function baseUnset(object, path) {
  path = castPath(path, object);
  object = parent(object, path);
  return object == null || delete object[toKey(last(path))];
}

module.exports = baseUnset;


/***/ }),

/***/ "./node_modules/lodash/_cacheHas.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_cacheHas.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Checks if a `cache` value for `key` exists.
 *
 * @private
 * @param {Object} cache The cache to query.
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function cacheHas(cache, key) {
  return cache.has(key);
}

module.exports = cacheHas;


/***/ }),

/***/ "./node_modules/lodash/_castPath.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_castPath.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isKey = __webpack_require__(/*! ./_isKey */ "./node_modules/lodash/_isKey.js"),
    stringToPath = __webpack_require__(/*! ./_stringToPath */ "./node_modules/lodash/_stringToPath.js"),
    toString = __webpack_require__(/*! ./toString */ "./node_modules/lodash/toString.js");

/**
 * Casts `value` to a path array if it's not one.
 *
 * @private
 * @param {*} value The value to inspect.
 * @param {Object} [object] The object to query keys on.
 * @returns {Array} Returns the cast property path array.
 */
function castPath(value, object) {
  if (isArray(value)) {
    return value;
  }
  return isKey(value, object) ? [value] : stringToPath(toString(value));
}

module.exports = castPath;


/***/ }),

/***/ "./node_modules/lodash/_cloneArrayBuffer.js":
/*!**************************************************!*\
  !*** ./node_modules/lodash/_cloneArrayBuffer.js ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "./node_modules/lodash/_Uint8Array.js");

/**
 * Creates a clone of `arrayBuffer`.
 *
 * @private
 * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
 * @returns {ArrayBuffer} Returns the cloned array buffer.
 */
function cloneArrayBuffer(arrayBuffer) {
  var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
  new Uint8Array(result).set(new Uint8Array(arrayBuffer));
  return result;
}

module.exports = cloneArrayBuffer;


/***/ }),

/***/ "./node_modules/lodash/_cloneBuffer.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_cloneBuffer.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");

/** Detect free variable `exports`. */
var freeExports = true && exports && !exports.nodeType && exports;

/** Detect free variable `module`. */
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;

/** Detect the popular CommonJS extension `module.exports`. */
var moduleExports = freeModule && freeModule.exports === freeExports;

/** Built-in value references. */
var Buffer = moduleExports ? root.Buffer : undefined,
    allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;

/**
 * Creates a clone of  `buffer`.
 *
 * @private
 * @param {Buffer} buffer The buffer to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Buffer} Returns the cloned buffer.
 */
function cloneBuffer(buffer, isDeep) {
  if (isDeep) {
    return buffer.slice();
  }
  var length = buffer.length,
      result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);

  buffer.copy(result);
  return result;
}

module.exports = cloneBuffer;

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))

/***/ }),

/***/ "./node_modules/lodash/_cloneDataView.js":
/*!***********************************************!*\
  !*** ./node_modules/lodash/_cloneDataView.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "./node_modules/lodash/_cloneArrayBuffer.js");

/**
 * Creates a clone of `dataView`.
 *
 * @private
 * @param {Object} dataView The data view to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the cloned data view.
 */
function cloneDataView(dataView, isDeep) {
  var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
  return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
}

module.exports = cloneDataView;


/***/ }),

/***/ "./node_modules/lodash/_cloneRegExp.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_cloneRegExp.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/** Used to match `RegExp` flags from their coerced string values. */
var reFlags = /\w*$/;

/**
 * Creates a clone of `regexp`.
 *
 * @private
 * @param {Object} regexp The regexp to clone.
 * @returns {Object} Returns the cloned regexp.
 */
function cloneRegExp(regexp) {
  var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
  result.lastIndex = regexp.lastIndex;
  return result;
}

module.exports = cloneRegExp;


/***/ }),

/***/ "./node_modules/lodash/_cloneSymbol.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_cloneSymbol.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js");

/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
    symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;

/**
 * Creates a clone of the `symbol` object.
 *
 * @private
 * @param {Object} symbol The symbol object to clone.
 * @returns {Object} Returns the cloned symbol object.
 */
function cloneSymbol(symbol) {
  return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
}

module.exports = cloneSymbol;


/***/ }),

/***/ "./node_modules/lodash/_cloneTypedArray.js":
/*!*************************************************!*\
  !*** ./node_modules/lodash/_cloneTypedArray.js ***!
  \*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "./node_modules/lodash/_cloneArrayBuffer.js");

/**
 * Creates a clone of `typedArray`.
 *
 * @private
 * @param {Object} typedArray The typed array to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the cloned typed array.
 */
function cloneTypedArray(typedArray, isDeep) {
  var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
  return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
}

module.exports = cloneTypedArray;


/***/ }),

/***/ "./node_modules/lodash/_copyArray.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_copyArray.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Copies the values of `source` to `array`.
 *
 * @private
 * @param {Array} source The array to copy values from.
 * @param {Array} [array=[]] The array to copy values to.
 * @returns {Array} Returns `array`.
 */
function copyArray(source, array) {
  var index = -1,
      length = source.length;

  array || (array = Array(length));
  while (++index < length) {
    array[index] = source[index];
  }
  return array;
}

module.exports = copyArray;


/***/ }),

/***/ "./node_modules/lodash/_copyObject.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_copyObject.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var assignValue = __webpack_require__(/*! ./_assignValue */ "./node_modules/lodash/_assignValue.js"),
    baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js");

/**
 * Copies properties of `source` to `object`.
 *
 * @private
 * @param {Object} source The object to copy properties from.
 * @param {Array} props The property identifiers to copy.
 * @param {Object} [object={}] The object to copy properties to.
 * @param {Function} [customizer] The function to customize copied values.
 * @returns {Object} Returns `object`.
 */
function copyObject(source, props, object, customizer) {
  var isNew = !object;
  object || (object = {});

  var index = -1,
      length = props.length;

  while (++index < length) {
    var key = props[index];

    var newValue = customizer
      ? customizer(object[key], source[key], key, object, source)
      : undefined;

    if (newValue === undefined) {
      newValue = source[key];
    }
    if (isNew) {
      baseAssignValue(object, key, newValue);
    } else {
      assignValue(object, key, newValue);
    }
  }
  return object;
}

module.exports = copyObject;


/***/ }),

/***/ "./node_modules/lodash/_copySymbols.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_copySymbols.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
    getSymbols = __webpack_require__(/*! ./_getSymbols */ "./node_modules/lodash/_getSymbols.js");

/**
 * Copies own symbols of `source` to `object`.
 *
 * @private
 * @param {Object} source The object to copy symbols from.
 * @param {Object} [object={}] The object to copy symbols to.
 * @returns {Object} Returns `object`.
 */
function copySymbols(source, object) {
  return copyObject(source, getSymbols(source), object);
}

module.exports = copySymbols;


/***/ }),

/***/ "./node_modules/lodash/_copySymbolsIn.js":
/*!***********************************************!*\
  !*** ./node_modules/lodash/_copySymbolsIn.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
    getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "./node_modules/lodash/_getSymbolsIn.js");

/**
 * Copies own and inherited symbols of `source` to `object`.
 *
 * @private
 * @param {Object} source The object to copy symbols from.
 * @param {Object} [object={}] The object to copy symbols to.
 * @returns {Object} Returns `object`.
 */
function copySymbolsIn(source, object) {
  return copyObject(source, getSymbolsIn(source), object);
}

module.exports = copySymbolsIn;


/***/ }),

/***/ "./node_modules/lodash/_coreJsData.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_coreJsData.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");

/** Used to detect overreaching core-js shims. */
var coreJsData = root['__core-js_shared__'];

module.exports = coreJsData;


/***/ }),

/***/ "./node_modules/lodash/_createAssigner.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_createAssigner.js ***!
  \************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseRest = __webpack_require__(/*! ./_baseRest */ "./node_modules/lodash/_baseRest.js"),
    isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "./node_modules/lodash/_isIterateeCall.js");

/**
 * Creates a function like `_.assign`.
 *
 * @private
 * @param {Function} assigner The function to assign values.
 * @returns {Function} Returns the new assigner function.
 */
function createAssigner(assigner) {
  return baseRest(function(object, sources) {
    var index = -1,
        length = sources.length,
        customizer = length > 1 ? sources[length - 1] : undefined,
        guard = length > 2 ? sources[2] : undefined;

    customizer = (assigner.length > 3 && typeof customizer == 'function')
      ? (length--, customizer)
      : undefined;

    if (guard && isIterateeCall(sources[0], sources[1], guard)) {
      customizer = length < 3 ? undefined : customizer;
      length = 1;
    }
    object = Object(object);
    while (++index < length) {
      var source = sources[index];
      if (source) {
        assigner(object, source, index, customizer);
      }
    }
    return object;
  });
}

module.exports = createAssigner;


/***/ }),

/***/ "./node_modules/lodash/_createBaseEach.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_createBaseEach.js ***!
  \************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");

/**
 * Creates a `baseEach` or `baseEachRight` function.
 *
 * @private
 * @param {Function} eachFunc The function to iterate over a collection.
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {Function} Returns the new base function.
 */
function createBaseEach(eachFunc, fromRight) {
  return function(collection, iteratee) {
    if (collection == null) {
      return collection;
    }
    if (!isArrayLike(collection)) {
      return eachFunc(collection, iteratee);
    }
    var length = collection.length,
        index = fromRight ? length : -1,
        iterable = Object(collection);

    while ((fromRight ? index-- : ++index < length)) {
      if (iteratee(iterable[index], index, iterable) === false) {
        break;
      }
    }
    return collection;
  };
}

module.exports = createBaseEach;


/***/ }),

/***/ "./node_modules/lodash/_createBaseFor.js":
/*!***********************************************!*\
  !*** ./node_modules/lodash/_createBaseFor.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Creates a base function for methods like `_.forIn` and `_.forOwn`.
 *
 * @private
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {Function} Returns the new base function.
 */
function createBaseFor(fromRight) {
  return function(object, iteratee, keysFunc) {
    var index = -1,
        iterable = Object(object),
        props = keysFunc(object),
        length = props.length;

    while (length--) {
      var key = props[fromRight ? length : ++index];
      if (iteratee(iterable[key], key, iterable) === false) {
        break;
      }
    }
    return object;
  };
}

module.exports = createBaseFor;


/***/ }),

/***/ "./node_modules/lodash/_createFind.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_createFind.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
    isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
    keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");

/**
 * Creates a `_.find` or `_.findLast` function.
 *
 * @private
 * @param {Function} findIndexFunc The function to find the collection index.
 * @returns {Function} Returns the new find function.
 */
function createFind(findIndexFunc) {
  return function(collection, predicate, fromIndex) {
    var iterable = Object(collection);
    if (!isArrayLike(collection)) {
      var iteratee = baseIteratee(predicate, 3);
      collection = keys(collection);
      predicate = function(key) { return iteratee(iterable[key], key, iterable); };
    }
    var index = findIndexFunc(collection, predicate, fromIndex);
    return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
  };
}

module.exports = createFind;


/***/ }),

/***/ "./node_modules/lodash/_createFlow.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_createFlow.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var LodashWrapper = __webpack_require__(/*! ./_LodashWrapper */ "./node_modules/lodash/_LodashWrapper.js"),
    flatRest = __webpack_require__(/*! ./_flatRest */ "./node_modules/lodash/_flatRest.js"),
    getData = __webpack_require__(/*! ./_getData */ "./node_modules/lodash/_getData.js"),
    getFuncName = __webpack_require__(/*! ./_getFuncName */ "./node_modules/lodash/_getFuncName.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isLaziable = __webpack_require__(/*! ./_isLaziable */ "./node_modules/lodash/_isLaziable.js");

/** Error message constants. */
var FUNC_ERROR_TEXT = 'Expected a function';

/** Used to compose bitmasks for function metadata. */
var WRAP_CURRY_FLAG = 8,
    WRAP_PARTIAL_FLAG = 32,
    WRAP_ARY_FLAG = 128,
    WRAP_REARG_FLAG = 256;

/**
 * Creates a `_.flow` or `_.flowRight` function.
 *
 * @private
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {Function} Returns the new flow function.
 */
function createFlow(fromRight) {
  return flatRest(function(funcs) {
    var length = funcs.length,
        index = length,
        prereq = LodashWrapper.prototype.thru;

    if (fromRight) {
      funcs.reverse();
    }
    while (index--) {
      var func = funcs[index];
      if (typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      if (prereq && !wrapper && getFuncName(func) == 'wrapper') {
        var wrapper = new LodashWrapper([], true);
      }
    }
    index = wrapper ? index : length;
    while (++index < length) {
      func = funcs[index];

      var funcName = getFuncName(func),
          data = funcName == 'wrapper' ? getData(func) : undefined;

      if (data && isLaziable(data[0]) &&
            data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&
            !data[4].length && data[9] == 1
          ) {
        wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
      } else {
        wrapper = (func.length == 1 && isLaziable(func))
          ? wrapper[funcName]()
          : wrapper.thru(func);
      }
    }
    return function() {
      var args = arguments,
          value = args[0];

      if (wrapper && args.length == 1 && isArray(value)) {
        return wrapper.plant(value).value();
      }
      var index = 0,
          result = length ? funcs[index].apply(this, args) : value;

      while (++index < length) {
        result = funcs[index].call(this, result);
      }
      return result;
    };
  });
}

module.exports = createFlow;


/***/ }),

/***/ "./node_modules/lodash/_customOmitClone.js":
/*!*************************************************!*\
  !*** ./node_modules/lodash/_customOmitClone.js ***!
  \*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isPlainObject = __webpack_require__(/*! ./isPlainObject */ "./node_modules/lodash/isPlainObject.js");

/**
 * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
 * objects.
 *
 * @private
 * @param {*} value The value to inspect.
 * @param {string} key The key of the property to inspect.
 * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
 */
function customOmitClone(value) {
  return isPlainObject(value) ? undefined : value;
}

module.exports = customOmitClone;


/***/ }),

/***/ "./node_modules/lodash/_defineProperty.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_defineProperty.js ***!
  \************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js");

var defineProperty = (function() {
  try {
    var func = getNative(Object, 'defineProperty');
    func({}, '', {});
    return func;
  } catch (e) {}
}());

module.exports = defineProperty;


/***/ }),

/***/ "./node_modules/lodash/_equalArrays.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_equalArrays.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var SetCache = __webpack_require__(/*! ./_SetCache */ "./node_modules/lodash/_SetCache.js"),
    arraySome = __webpack_require__(/*! ./_arraySome */ "./node_modules/lodash/_arraySome.js"),
    cacheHas = __webpack_require__(/*! ./_cacheHas */ "./node_modules/lodash/_cacheHas.js");

/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1,
    COMPARE_UNORDERED_FLAG = 2;

/**
 * A specialized version of `baseIsEqualDeep` for arrays with support for
 * partial deep comparisons.
 *
 * @private
 * @param {Array} array The array to compare.
 * @param {Array} other The other array to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `array` and `other` objects.
 * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
 */
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
  var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
      arrLength = array.length,
      othLength = other.length;

  if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
    return false;
  }
  // Assume cyclic values are equal.
  var stacked = stack.get(array);
  if (stacked && stack.get(other)) {
    return stacked == other;
  }
  var index = -1,
      result = true,
      seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;

  stack.set(array, other);
  stack.set(other, array);

  // Ignore non-index properties.
  while (++index < arrLength) {
    var arrValue = array[index],
        othValue = other[index];

    if (customizer) {
      var compared = isPartial
        ? customizer(othValue, arrValue, index, other, array, stack)
        : customizer(arrValue, othValue, index, array, other, stack);
    }
    if (compared !== undefined) {
      if (compared) {
        continue;
      }
      result = false;
      break;
    }
    // Recursively compare arrays (susceptible to call stack limits).
    if (seen) {
      if (!arraySome(other, function(othValue, othIndex) {
            if (!cacheHas(seen, othIndex) &&
                (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
              return seen.push(othIndex);
            }
          })) {
        result = false;
        break;
      }
    } else if (!(
          arrValue === othValue ||
            equalFunc(arrValue, othValue, bitmask, customizer, stack)
        )) {
      result = false;
      break;
    }
  }
  stack['delete'](array);
  stack['delete'](other);
  return result;
}

module.exports = equalArrays;


/***/ }),

/***/ "./node_modules/lodash/_equalByTag.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_equalByTag.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
    Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "./node_modules/lodash/_Uint8Array.js"),
    eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js"),
    equalArrays = __webpack_require__(/*! ./_equalArrays */ "./node_modules/lodash/_equalArrays.js"),
    mapToArray = __webpack_require__(/*! ./_mapToArray */ "./node_modules/lodash/_mapToArray.js"),
    setToArray = __webpack_require__(/*! ./_setToArray */ "./node_modules/lodash/_setToArray.js");

/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1,
    COMPARE_UNORDERED_FLAG = 2;

/** `Object#toString` result references. */
var boolTag = '[object Boolean]',
    dateTag = '[object Date]',
    errorTag = '[object Error]',
    mapTag = '[object Map]',
    numberTag = '[object Number]',
    regexpTag = '[object RegExp]',
    setTag = '[object Set]',
    stringTag = '[object String]',
    symbolTag = '[object Symbol]';

var arrayBufferTag = '[object ArrayBuffer]',
    dataViewTag = '[object DataView]';

/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
    symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;

/**
 * A specialized version of `baseIsEqualDeep` for comparing objects of
 * the same `toStringTag`.
 *
 * **Note:** This function only supports comparing values with tags of
 * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {string} tag The `toStringTag` of the objects to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
  switch (tag) {
    case dataViewTag:
      if ((object.byteLength != other.byteLength) ||
          (object.byteOffset != other.byteOffset)) {
        return false;
      }
      object = object.buffer;
      other = other.buffer;

    case arrayBufferTag:
      if ((object.byteLength != other.byteLength) ||
          !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
        return false;
      }
      return true;

    case boolTag:
    case dateTag:
    case numberTag:
      // Coerce booleans to `1` or `0` and dates to milliseconds.
      // Invalid dates are coerced to `NaN`.
      return eq(+object, +other);

    case errorTag:
      return object.name == other.name && object.message == other.message;

    case regexpTag:
    case stringTag:
      // Coerce regexes to strings and treat strings, primitives and objects,
      // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
      // for more details.
      return object == (other + '');

    case mapTag:
      var convert = mapToArray;

    case setTag:
      var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
      convert || (convert = setToArray);

      if (object.size != other.size && !isPartial) {
        return false;
      }
      // Assume cyclic values are equal.
      var stacked = stack.get(object);
      if (stacked) {
        return stacked == other;
      }
      bitmask |= COMPARE_UNORDERED_FLAG;

      // Recursively compare objects (susceptible to call stack limits).
      stack.set(object, other);
      var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
      stack['delete'](object);
      return result;

    case symbolTag:
      if (symbolValueOf) {
        return symbolValueOf.call(object) == symbolValueOf.call(other);
      }
  }
  return false;
}

module.exports = equalByTag;


/***/ }),

/***/ "./node_modules/lodash/_equalObjects.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_equalObjects.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "./node_modules/lodash/_getAllKeys.js");

/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1;

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * A specialized version of `baseIsEqualDeep` for objects with support for
 * partial deep comparisons.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
  var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
      objProps = getAllKeys(object),
      objLength = objProps.length,
      othProps = getAllKeys(other),
      othLength = othProps.length;

  if (objLength != othLength && !isPartial) {
    return false;
  }
  var index = objLength;
  while (index--) {
    var key = objProps[index];
    if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
      return false;
    }
  }
  // Assume cyclic values are equal.
  var stacked = stack.get(object);
  if (stacked && stack.get(other)) {
    return stacked == other;
  }
  var result = true;
  stack.set(object, other);
  stack.set(other, object);

  var skipCtor = isPartial;
  while (++index < objLength) {
    key = objProps[index];
    var objValue = object[key],
        othValue = other[key];

    if (customizer) {
      var compared = isPartial
        ? customizer(othValue, objValue, key, other, object, stack)
        : customizer(objValue, othValue, key, object, other, stack);
    }
    // Recursively compare objects (susceptible to call stack limits).
    if (!(compared === undefined
          ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
          : compared
        )) {
      result = false;
      break;
    }
    skipCtor || (skipCtor = key == 'constructor');
  }
  if (result && !skipCtor) {
    var objCtor = object.constructor,
        othCtor = other.constructor;

    // Non `Object` object instances with different constructors are not equal.
    if (objCtor != othCtor &&
        ('constructor' in object && 'constructor' in other) &&
        !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
          typeof othCtor == 'function' && othCtor instanceof othCtor)) {
      result = false;
    }
  }
  stack['delete'](object);
  stack['delete'](other);
  return result;
}

module.exports = equalObjects;


/***/ }),

/***/ "./node_modules/lodash/_flatRest.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_flatRest.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var flatten = __webpack_require__(/*! ./flatten */ "./node_modules/lodash/flatten.js"),
    overRest = __webpack_require__(/*! ./_overRest */ "./node_modules/lodash/_overRest.js"),
    setToString = __webpack_require__(/*! ./_setToString */ "./node_modules/lodash/_setToString.js");

/**
 * A specialized version of `baseRest` which flattens the rest array.
 *
 * @private
 * @param {Function} func The function to apply a rest parameter to.
 * @returns {Function} Returns the new function.
 */
function flatRest(func) {
  return setToString(overRest(func, undefined, flatten), func + '');
}

module.exports = flatRest;


/***/ }),

/***/ "./node_modules/lodash/_freeGlobal.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_freeGlobal.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;

module.exports = freeGlobal;

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))

/***/ }),

/***/ "./node_modules/lodash/_getAllKeys.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_getAllKeys.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "./node_modules/lodash/_baseGetAllKeys.js"),
    getSymbols = __webpack_require__(/*! ./_getSymbols */ "./node_modules/lodash/_getSymbols.js"),
    keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");

/**
 * Creates an array of own enumerable property names and symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names and symbols.
 */
function getAllKeys(object) {
  return baseGetAllKeys(object, keys, getSymbols);
}

module.exports = getAllKeys;


/***/ }),

/***/ "./node_modules/lodash/_getAllKeysIn.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_getAllKeysIn.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "./node_modules/lodash/_baseGetAllKeys.js"),
    getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "./node_modules/lodash/_getSymbolsIn.js"),
    keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");

/**
 * Creates an array of own and inherited enumerable property names and
 * symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names and symbols.
 */
function getAllKeysIn(object) {
  return baseGetAllKeys(object, keysIn, getSymbolsIn);
}

module.exports = getAllKeysIn;


/***/ }),

/***/ "./node_modules/lodash/_getData.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_getData.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var metaMap = __webpack_require__(/*! ./_metaMap */ "./node_modules/lodash/_metaMap.js"),
    noop = __webpack_require__(/*! ./noop */ "./node_modules/lodash/noop.js");

/**
 * Gets metadata for `func`.
 *
 * @private
 * @param {Function} func The function to query.
 * @returns {*} Returns the metadata for `func`.
 */
var getData = !metaMap ? noop : function(func) {
  return metaMap.get(func);
};

module.exports = getData;


/***/ }),

/***/ "./node_modules/lodash/_getFuncName.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_getFuncName.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var realNames = __webpack_require__(/*! ./_realNames */ "./node_modules/lodash/_realNames.js");

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Gets the name of `func`.
 *
 * @private
 * @param {Function} func The function to query.
 * @returns {string} Returns the function name.
 */
function getFuncName(func) {
  var result = (func.name + ''),
      array = realNames[result],
      length = hasOwnProperty.call(realNames, result) ? array.length : 0;

  while (length--) {
    var data = array[length],
        otherFunc = data.func;
    if (otherFunc == null || otherFunc == func) {
      return data.name;
    }
  }
  return result;
}

module.exports = getFuncName;


/***/ }),

/***/ "./node_modules/lodash/_getMapData.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_getMapData.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isKeyable = __webpack_require__(/*! ./_isKeyable */ "./node_modules/lodash/_isKeyable.js");

/**
 * Gets the data for `map`.
 *
 * @private
 * @param {Object} map The map to query.
 * @param {string} key The reference key.
 * @returns {*} Returns the map data.
 */
function getMapData(map, key) {
  var data = map.__data__;
  return isKeyable(key)
    ? data[typeof key == 'string' ? 'string' : 'hash']
    : data.map;
}

module.exports = getMapData;


/***/ }),

/***/ "./node_modules/lodash/_getMatchData.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_getMatchData.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "./node_modules/lodash/_isStrictComparable.js"),
    keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");

/**
 * Gets the property names, values, and compare flags of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the match data of `object`.
 */
function getMatchData(object) {
  var result = keys(object),
      length = result.length;

  while (length--) {
    var key = result[length],
        value = object[key];

    result[length] = [key, value, isStrictComparable(value)];
  }
  return result;
}

module.exports = getMatchData;


/***/ }),

/***/ "./node_modules/lodash/_getNative.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_getNative.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseIsNative = __webpack_require__(/*! ./_baseIsNative */ "./node_modules/lodash/_baseIsNative.js"),
    getValue = __webpack_require__(/*! ./_getValue */ "./node_modules/lodash/_getValue.js");

/**
 * Gets the native function at `key` of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {string} key The key of the method to get.
 * @returns {*} Returns the function if it's native, else `undefined`.
 */
function getNative(object, key) {
  var value = getValue(object, key);
  return baseIsNative(value) ? value : undefined;
}

module.exports = getNative;


/***/ }),

/***/ "./node_modules/lodash/_getPrototype.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_getPrototype.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var overArg = __webpack_require__(/*! ./_overArg */ "./node_modules/lodash/_overArg.js");

/** Built-in value references. */
var getPrototype = overArg(Object.getPrototypeOf, Object);

module.exports = getPrototype;


/***/ }),

/***/ "./node_modules/lodash/_getRawTag.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_getRawTag.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js");

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Used to resolve the
 * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
 * of values.
 */
var nativeObjectToString = objectProto.toString;

/** Built-in value references. */
var symToStringTag = Symbol ? Symbol.toStringTag : undefined;

/**
 * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the raw `toStringTag`.
 */
function getRawTag(value) {
  var isOwn = hasOwnProperty.call(value, symToStringTag),
      tag = value[symToStringTag];

  try {
    value[symToStringTag] = undefined;
    var unmasked = true;
  } catch (e) {}

  var result = nativeObjectToString.call(value);
  if (unmasked) {
    if (isOwn) {
      value[symToStringTag] = tag;
    } else {
      delete value[symToStringTag];
    }
  }
  return result;
}

module.exports = getRawTag;


/***/ }),

/***/ "./node_modules/lodash/_getSymbols.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_getSymbols.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "./node_modules/lodash/_arrayFilter.js"),
    stubArray = __webpack_require__(/*! ./stubArray */ "./node_modules/lodash/stubArray.js");

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Built-in value references. */
var propertyIsEnumerable = objectProto.propertyIsEnumerable;

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeGetSymbols = Object.getOwnPropertySymbols;

/**
 * Creates an array of the own enumerable symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of symbols.
 */
var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
  if (object == null) {
    return [];
  }
  object = Object(object);
  return arrayFilter(nativeGetSymbols(object), function(symbol) {
    return propertyIsEnumerable.call(object, symbol);
  });
};

module.exports = getSymbols;


/***/ }),

/***/ "./node_modules/lodash/_getSymbolsIn.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_getSymbolsIn.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var arrayPush = __webpack_require__(/*! ./_arrayPush */ "./node_modules/lodash/_arrayPush.js"),
    getPrototype = __webpack_require__(/*! ./_getPrototype */ "./node_modules/lodash/_getPrototype.js"),
    getSymbols = __webpack_require__(/*! ./_getSymbols */ "./node_modules/lodash/_getSymbols.js"),
    stubArray = __webpack_require__(/*! ./stubArray */ "./node_modules/lodash/stubArray.js");

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeGetSymbols = Object.getOwnPropertySymbols;

/**
 * Creates an array of the own and inherited enumerable symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of symbols.
 */
var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
  var result = [];
  while (object) {
    arrayPush(result, getSymbols(object));
    object = getPrototype(object);
  }
  return result;
};

module.exports = getSymbolsIn;


/***/ }),

/***/ "./node_modules/lodash/_getTag.js":
/*!****************************************!*\
  !*** ./node_modules/lodash/_getTag.js ***!
  \****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var DataView = __webpack_require__(/*! ./_DataView */ "./node_modules/lodash/_DataView.js"),
    Map = __webpack_require__(/*! ./_Map */ "./node_modules/lodash/_Map.js"),
    Promise = __webpack_require__(/*! ./_Promise */ "./node_modules/lodash/_Promise.js"),
    Set = __webpack_require__(/*! ./_Set */ "./node_modules/lodash/_Set.js"),
    WeakMap = __webpack_require__(/*! ./_WeakMap */ "./node_modules/lodash/_WeakMap.js"),
    baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
    toSource = __webpack_require__(/*! ./_toSource */ "./node_modules/lodash/_toSource.js");

/** `Object#toString` result references. */
var mapTag = '[object Map]',
    objectTag = '[object Object]',
    promiseTag = '[object Promise]',
    setTag = '[object Set]',
    weakMapTag = '[object WeakMap]';

var dataViewTag = '[object DataView]';

/** Used to detect maps, sets, and weakmaps. */
var dataViewCtorString = toSource(DataView),
    mapCtorString = toSource(Map),
    promiseCtorString = toSource(Promise),
    setCtorString = toSource(Set),
    weakMapCtorString = toSource(WeakMap);

/**
 * Gets the `toStringTag` of `value`.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the `toStringTag`.
 */
var getTag = baseGetTag;

// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
    (Map && getTag(new Map) != mapTag) ||
    (Promise && getTag(Promise.resolve()) != promiseTag) ||
    (Set && getTag(new Set) != setTag) ||
    (WeakMap && getTag(new WeakMap) != weakMapTag)) {
  getTag = function(value) {
    var result = baseGetTag(value),
        Ctor = result == objectTag ? value.constructor : undefined,
        ctorString = Ctor ? toSource(Ctor) : '';

    if (ctorString) {
      switch (ctorString) {
        case dataViewCtorString: return dataViewTag;
        case mapCtorString: return mapTag;
        case promiseCtorString: return promiseTag;
        case setCtorString: return setTag;
        case weakMapCtorString: return weakMapTag;
      }
    }
    return result;
  };
}

module.exports = getTag;


/***/ }),

/***/ "./node_modules/lodash/_getValue.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_getValue.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Gets the value at `key` of `object`.
 *
 * @private
 * @param {Object} [object] The object to query.
 * @param {string} key The key of the property to get.
 * @returns {*} Returns the property value.
 */
function getValue(object, key) {
  return object == null ? undefined : object[key];
}

module.exports = getValue;


/***/ }),

/***/ "./node_modules/lodash/_hasPath.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_hasPath.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
    isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
    isLength = __webpack_require__(/*! ./isLength */ "./node_modules/lodash/isLength.js"),
    toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");

/**
 * Checks if `path` exists on `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Array|string} path The path to check.
 * @param {Function} hasFunc The function to check properties.
 * @returns {boolean} Returns `true` if `path` exists, else `false`.
 */
function hasPath(object, path, hasFunc) {
  path = castPath(path, object);

  var index = -1,
      length = path.length,
      result = false;

  while (++index < length) {
    var key = toKey(path[index]);
    if (!(result = object != null && hasFunc(object, key))) {
      break;
    }
    object = object[key];
  }
  if (result || ++index != length) {
    return result;
  }
  length = object == null ? 0 : object.length;
  return !!length && isLength(length) && isIndex(key, length) &&
    (isArray(object) || isArguments(object));
}

module.exports = hasPath;


/***/ }),

/***/ "./node_modules/lodash/_hashClear.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_hashClear.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");

/**
 * Removes all key-value entries from the hash.
 *
 * @private
 * @name clear
 * @memberOf Hash
 */
function hashClear() {
  this.__data__ = nativeCreate ? nativeCreate(null) : {};
  this.size = 0;
}

module.exports = hashClear;


/***/ }),

/***/ "./node_modules/lodash/_hashDelete.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_hashDelete.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Removes `key` and its value from the hash.
 *
 * @private
 * @name delete
 * @memberOf Hash
 * @param {Object} hash The hash to modify.
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function hashDelete(key) {
  var result = this.has(key) && delete this.__data__[key];
  this.size -= result ? 1 : 0;
  return result;
}

module.exports = hashDelete;


/***/ }),

/***/ "./node_modules/lodash/_hashGet.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_hashGet.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");

/** Used to stand-in for `undefined` hash values. */
var HASH_UNDEFINED = '__lodash_hash_undefined__';

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Gets the hash value for `key`.
 *
 * @private
 * @name get
 * @memberOf Hash
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
function hashGet(key) {
  var data = this.__data__;
  if (nativeCreate) {
    var result = data[key];
    return result === HASH_UNDEFINED ? undefined : result;
  }
  return hasOwnProperty.call(data, key) ? data[key] : undefined;
}

module.exports = hashGet;


/***/ }),

/***/ "./node_modules/lodash/_hashHas.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_hashHas.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Checks if a hash value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf Hash
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function hashHas(key) {
  var data = this.__data__;
  return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
}

module.exports = hashHas;


/***/ }),

/***/ "./node_modules/lodash/_hashSet.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_hashSet.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");

/** Used to stand-in for `undefined` hash values. */
var HASH_UNDEFINED = '__lodash_hash_undefined__';

/**
 * Sets the hash `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf Hash
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the hash instance.
 */
function hashSet(key, value) {
  var data = this.__data__;
  this.size += this.has(key) ? 0 : 1;
  data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  return this;
}

module.exports = hashSet;


/***/ }),

/***/ "./node_modules/lodash/_initCloneArray.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_initCloneArray.js ***!
  \************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Initializes an array clone.
 *
 * @private
 * @param {Array} array The array to clone.
 * @returns {Array} Returns the initialized clone.
 */
function initCloneArray(array) {
  var length = array.length,
      result = new array.constructor(length);

  // Add properties assigned by `RegExp#exec`.
  if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
    result.index = array.index;
    result.input = array.input;
  }
  return result;
}

module.exports = initCloneArray;


/***/ }),

/***/ "./node_modules/lodash/_initCloneByTag.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_initCloneByTag.js ***!
  \************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "./node_modules/lodash/_cloneArrayBuffer.js"),
    cloneDataView = __webpack_require__(/*! ./_cloneDataView */ "./node_modules/lodash/_cloneDataView.js"),
    cloneRegExp = __webpack_require__(/*! ./_cloneRegExp */ "./node_modules/lodash/_cloneRegExp.js"),
    cloneSymbol = __webpack_require__(/*! ./_cloneSymbol */ "./node_modules/lodash/_cloneSymbol.js"),
    cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "./node_modules/lodash/_cloneTypedArray.js");

/** `Object#toString` result references. */
var boolTag = '[object Boolean]',
    dateTag = '[object Date]',
    mapTag = '[object Map]',
    numberTag = '[object Number]',
    regexpTag = '[object RegExp]',
    setTag = '[object Set]',
    stringTag = '[object String]',
    symbolTag = '[object Symbol]';

var arrayBufferTag = '[object ArrayBuffer]',
    dataViewTag = '[object DataView]',
    float32Tag = '[object Float32Array]',
    float64Tag = '[object Float64Array]',
    int8Tag = '[object Int8Array]',
    int16Tag = '[object Int16Array]',
    int32Tag = '[object Int32Array]',
    uint8Tag = '[object Uint8Array]',
    uint8ClampedTag = '[object Uint8ClampedArray]',
    uint16Tag = '[object Uint16Array]',
    uint32Tag = '[object Uint32Array]';

/**
 * Initializes an object clone based on its `toStringTag`.
 *
 * **Note:** This function only supports cloning values with tags of
 * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
 *
 * @private
 * @param {Object} object The object to clone.
 * @param {string} tag The `toStringTag` of the object to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the initialized clone.
 */
function initCloneByTag(object, tag, isDeep) {
  var Ctor = object.constructor;
  switch (tag) {
    case arrayBufferTag:
      return cloneArrayBuffer(object);

    case boolTag:
    case dateTag:
      return new Ctor(+object);

    case dataViewTag:
      return cloneDataView(object, isDeep);

    case float32Tag: case float64Tag:
    case int8Tag: case int16Tag: case int32Tag:
    case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
      return cloneTypedArray(object, isDeep);

    case mapTag:
      return new Ctor;

    case numberTag:
    case stringTag:
      return new Ctor(object);

    case regexpTag:
      return cloneRegExp(object);

    case setTag:
      return new Ctor;

    case symbolTag:
      return cloneSymbol(object);
  }
}

module.exports = initCloneByTag;


/***/ }),

/***/ "./node_modules/lodash/_initCloneObject.js":
/*!*************************************************!*\
  !*** ./node_modules/lodash/_initCloneObject.js ***!
  \*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseCreate = __webpack_require__(/*! ./_baseCreate */ "./node_modules/lodash/_baseCreate.js"),
    getPrototype = __webpack_require__(/*! ./_getPrototype */ "./node_modules/lodash/_getPrototype.js"),
    isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js");

/**
 * Initializes an object clone.
 *
 * @private
 * @param {Object} object The object to clone.
 * @returns {Object} Returns the initialized clone.
 */
function initCloneObject(object) {
  return (typeof object.constructor == 'function' && !isPrototype(object))
    ? baseCreate(getPrototype(object))
    : {};
}

module.exports = initCloneObject;


/***/ }),

/***/ "./node_modules/lodash/_isFlattenable.js":
/*!***********************************************!*\
  !*** ./node_modules/lodash/_isFlattenable.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
    isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");

/** Built-in value references. */
var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;

/**
 * Checks if `value` is a flattenable `arguments` object or array.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
 */
function isFlattenable(value) {
  return isArray(value) || isArguments(value) ||
    !!(spreadableSymbol && value && value[spreadableSymbol]);
}

module.exports = isFlattenable;


/***/ }),

/***/ "./node_modules/lodash/_isIndex.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_isIndex.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/** Used as references for various `Number` constants. */
var MAX_SAFE_INTEGER = 9007199254740991;

/** Used to detect unsigned integer values. */
var reIsUint = /^(?:0|[1-9]\d*)$/;

/**
 * Checks if `value` is a valid array-like index.
 *
 * @private
 * @param {*} value The value to check.
 * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
 * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
 */
function isIndex(value, length) {
  var type = typeof value;
  length = length == null ? MAX_SAFE_INTEGER : length;

  return !!length &&
    (type == 'number' ||
      (type != 'symbol' && reIsUint.test(value))) &&
        (value > -1 && value % 1 == 0 && value < length);
}

module.exports = isIndex;


/***/ }),

/***/ "./node_modules/lodash/_isIterateeCall.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_isIterateeCall.js ***!
  \************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js"),
    isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
    isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
    isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");

/**
 * Checks if the given arguments are from an iteratee call.
 *
 * @private
 * @param {*} value The potential iteratee value argument.
 * @param {*} index The potential iteratee index or key argument.
 * @param {*} object The potential iteratee object argument.
 * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
 *  else `false`.
 */
function isIterateeCall(value, index, object) {
  if (!isObject(object)) {
    return false;
  }
  var type = typeof index;
  if (type == 'number'
        ? (isArrayLike(object) && isIndex(index, object.length))
        : (type == 'string' && index in object)
      ) {
    return eq(object[index], value);
  }
  return false;
}

module.exports = isIterateeCall;


/***/ }),

/***/ "./node_modules/lodash/_isKey.js":
/*!***************************************!*\
  !*** ./node_modules/lodash/_isKey.js ***!
  \***************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");

/** Used to match property names within property paths. */
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
    reIsPlainProp = /^\w*$/;

/**
 * Checks if `value` is a property name and not a property path.
 *
 * @private
 * @param {*} value The value to check.
 * @param {Object} [object] The object to query keys on.
 * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
 */
function isKey(value, object) {
  if (isArray(value)) {
    return false;
  }
  var type = typeof value;
  if (type == 'number' || type == 'symbol' || type == 'boolean' ||
      value == null || isSymbol(value)) {
    return true;
  }
  return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
    (object != null && value in Object(object));
}

module.exports = isKey;


/***/ }),

/***/ "./node_modules/lodash/_isKeyable.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_isKeyable.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Checks if `value` is suitable for use as unique object key.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
 */
function isKeyable(value) {
  var type = typeof value;
  return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
    ? (value !== '__proto__')
    : (value === null);
}

module.exports = isKeyable;


/***/ }),

/***/ "./node_modules/lodash/_isLaziable.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_isLaziable.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var LazyWrapper = __webpack_require__(/*! ./_LazyWrapper */ "./node_modules/lodash/_LazyWrapper.js"),
    getData = __webpack_require__(/*! ./_getData */ "./node_modules/lodash/_getData.js"),
    getFuncName = __webpack_require__(/*! ./_getFuncName */ "./node_modules/lodash/_getFuncName.js"),
    lodash = __webpack_require__(/*! ./wrapperLodash */ "./node_modules/lodash/wrapperLodash.js");

/**
 * Checks if `func` has a lazy counterpart.
 *
 * @private
 * @param {Function} func The function to check.
 * @returns {boolean} Returns `true` if `func` has a lazy counterpart,
 *  else `false`.
 */
function isLaziable(func) {
  var funcName = getFuncName(func),
      other = lodash[funcName];

  if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {
    return false;
  }
  if (func === other) {
    return true;
  }
  var data = getData(other);
  return !!data && func === data[0];
}

module.exports = isLaziable;


/***/ }),

/***/ "./node_modules/lodash/_isMasked.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_isMasked.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var coreJsData = __webpack_require__(/*! ./_coreJsData */ "./node_modules/lodash/_coreJsData.js");

/** Used to detect methods masquerading as native. */
var maskSrcKey = (function() {
  var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  return uid ? ('Symbol(src)_1.' + uid) : '';
}());

/**
 * Checks if `func` has its source masked.
 *
 * @private
 * @param {Function} func The function to check.
 * @returns {boolean} Returns `true` if `func` is masked, else `false`.
 */
function isMasked(func) {
  return !!maskSrcKey && (maskSrcKey in func);
}

module.exports = isMasked;


/***/ }),

/***/ "./node_modules/lodash/_isPrototype.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_isPrototype.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/** Used for built-in method references. */
var objectProto = Object.prototype;

/**
 * Checks if `value` is likely a prototype object.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
 */
function isPrototype(value) {
  var Ctor = value && value.constructor,
      proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;

  return value === proto;
}

module.exports = isPrototype;


/***/ }),

/***/ "./node_modules/lodash/_isStrictComparable.js":
/*!****************************************************!*\
  !*** ./node_modules/lodash/_isStrictComparable.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");

/**
 * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` if suitable for strict
 *  equality comparisons, else `false`.
 */
function isStrictComparable(value) {
  return value === value && !isObject(value);
}

module.exports = isStrictComparable;


/***/ }),

/***/ "./node_modules/lodash/_listCacheClear.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_listCacheClear.js ***!
  \************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Removes all key-value entries from the list cache.
 *
 * @private
 * @name clear
 * @memberOf ListCache
 */
function listCacheClear() {
  this.__data__ = [];
  this.size = 0;
}

module.exports = listCacheClear;


/***/ }),

/***/ "./node_modules/lodash/_listCacheDelete.js":
/*!*************************************************!*\
  !*** ./node_modules/lodash/_listCacheDelete.js ***!
  \*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");

/** Used for built-in method references. */
var arrayProto = Array.prototype;

/** Built-in value references. */
var splice = arrayProto.splice;

/**
 * Removes `key` and its value from the list cache.
 *
 * @private
 * @name delete
 * @memberOf ListCache
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function listCacheDelete(key) {
  var data = this.__data__,
      index = assocIndexOf(data, key);

  if (index < 0) {
    return false;
  }
  var lastIndex = data.length - 1;
  if (index == lastIndex) {
    data.pop();
  } else {
    splice.call(data, index, 1);
  }
  --this.size;
  return true;
}

module.exports = listCacheDelete;


/***/ }),

/***/ "./node_modules/lodash/_listCacheGet.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_listCacheGet.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");

/**
 * Gets the list cache value for `key`.
 *
 * @private
 * @name get
 * @memberOf ListCache
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
function listCacheGet(key) {
  var data = this.__data__,
      index = assocIndexOf(data, key);

  return index < 0 ? undefined : data[index][1];
}

module.exports = listCacheGet;


/***/ }),

/***/ "./node_modules/lodash/_listCacheHas.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_listCacheHas.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");

/**
 * Checks if a list cache value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf ListCache
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function listCacheHas(key) {
  return assocIndexOf(this.__data__, key) > -1;
}

module.exports = listCacheHas;


/***/ }),

/***/ "./node_modules/lodash/_listCacheSet.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_listCacheSet.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");

/**
 * Sets the list cache `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf ListCache
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the list cache instance.
 */
function listCacheSet(key, value) {
  var data = this.__data__,
      index = assocIndexOf(data, key);

  if (index < 0) {
    ++this.size;
    data.push([key, value]);
  } else {
    data[index][1] = value;
  }
  return this;
}

module.exports = listCacheSet;


/***/ }),

/***/ "./node_modules/lodash/_mapCacheClear.js":
/*!***********************************************!*\
  !*** ./node_modules/lodash/_mapCacheClear.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var Hash = __webpack_require__(/*! ./_Hash */ "./node_modules/lodash/_Hash.js"),
    ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"),
    Map = __webpack_require__(/*! ./_Map */ "./node_modules/lodash/_Map.js");

/**
 * Removes all key-value entries from the map.
 *
 * @private
 * @name clear
 * @memberOf MapCache
 */
function mapCacheClear() {
  this.size = 0;
  this.__data__ = {
    'hash': new Hash,
    'map': new (Map || ListCache),
    'string': new Hash
  };
}

module.exports = mapCacheClear;


/***/ }),

/***/ "./node_modules/lodash/_mapCacheDelete.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_mapCacheDelete.js ***!
  \************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");

/**
 * Removes `key` and its value from the map.
 *
 * @private
 * @name delete
 * @memberOf MapCache
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function mapCacheDelete(key) {
  var result = getMapData(this, key)['delete'](key);
  this.size -= result ? 1 : 0;
  return result;
}

module.exports = mapCacheDelete;


/***/ }),

/***/ "./node_modules/lodash/_mapCacheGet.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_mapCacheGet.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");

/**
 * Gets the map value for `key`.
 *
 * @private
 * @name get
 * @memberOf MapCache
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
function mapCacheGet(key) {
  return getMapData(this, key).get(key);
}

module.exports = mapCacheGet;


/***/ }),

/***/ "./node_modules/lodash/_mapCacheHas.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_mapCacheHas.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");

/**
 * Checks if a map value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf MapCache
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function mapCacheHas(key) {
  return getMapData(this, key).has(key);
}

module.exports = mapCacheHas;


/***/ }),

/***/ "./node_modules/lodash/_mapCacheSet.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_mapCacheSet.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");

/**
 * Sets the map `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf MapCache
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the map cache instance.
 */
function mapCacheSet(key, value) {
  var data = getMapData(this, key),
      size = data.size;

  data.set(key, value);
  this.size += data.size == size ? 0 : 1;
  return this;
}

module.exports = mapCacheSet;


/***/ }),

/***/ "./node_modules/lodash/_mapToArray.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_mapToArray.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Converts `map` to its key-value pairs.
 *
 * @private
 * @param {Object} map The map to convert.
 * @returns {Array} Returns the key-value pairs.
 */
function mapToArray(map) {
  var index = -1,
      result = Array(map.size);

  map.forEach(function(value, key) {
    result[++index] = [key, value];
  });
  return result;
}

module.exports = mapToArray;


/***/ }),

/***/ "./node_modules/lodash/_matchesStrictComparable.js":
/*!*********************************************************!*\
  !*** ./node_modules/lodash/_matchesStrictComparable.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * A specialized version of `matchesProperty` for source values suitable
 * for strict equality comparisons, i.e. `===`.
 *
 * @private
 * @param {string} key The key of the property to get.
 * @param {*} srcValue The value to match.
 * @returns {Function} Returns the new spec function.
 */
function matchesStrictComparable(key, srcValue) {
  return function(object) {
    if (object == null) {
      return false;
    }
    return object[key] === srcValue &&
      (srcValue !== undefined || (key in Object(object)));
  };
}

module.exports = matchesStrictComparable;


/***/ }),

/***/ "./node_modules/lodash/_memoizeCapped.js":
/*!***********************************************!*\
  !*** ./node_modules/lodash/_memoizeCapped.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var memoize = __webpack_require__(/*! ./memoize */ "./node_modules/lodash/memoize.js");

/** Used as the maximum memoize cache size. */
var MAX_MEMOIZE_SIZE = 500;

/**
 * A specialized version of `_.memoize` which clears the memoized function's
 * cache when it exceeds `MAX_MEMOIZE_SIZE`.
 *
 * @private
 * @param {Function} func The function to have its output memoized.
 * @returns {Function} Returns the new memoized function.
 */
function memoizeCapped(func) {
  var result = memoize(func, function(key) {
    if (cache.size === MAX_MEMOIZE_SIZE) {
      cache.clear();
    }
    return key;
  });

  var cache = result.cache;
  return result;
}

module.exports = memoizeCapped;


/***/ }),

/***/ "./node_modules/lodash/_metaMap.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_metaMap.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var WeakMap = __webpack_require__(/*! ./_WeakMap */ "./node_modules/lodash/_WeakMap.js");

/** Used to store function metadata. */
var metaMap = WeakMap && new WeakMap;

module.exports = metaMap;


/***/ }),

/***/ "./node_modules/lodash/_nativeCreate.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_nativeCreate.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js");

/* Built-in method references that are verified to be native. */
var nativeCreate = getNative(Object, 'create');

module.exports = nativeCreate;


/***/ }),

/***/ "./node_modules/lodash/_nativeKeys.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_nativeKeys.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var overArg = __webpack_require__(/*! ./_overArg */ "./node_modules/lodash/_overArg.js");

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeKeys = overArg(Object.keys, Object);

module.exports = nativeKeys;


/***/ }),

/***/ "./node_modules/lodash/_nativeKeysIn.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_nativeKeysIn.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * This function is like
 * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
 * except that it includes inherited enumerable properties.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */
function nativeKeysIn(object) {
  var result = [];
  if (object != null) {
    for (var key in Object(object)) {
      result.push(key);
    }
  }
  return result;
}

module.exports = nativeKeysIn;


/***/ }),

/***/ "./node_modules/lodash/_nodeUtil.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_nodeUtil.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "./node_modules/lodash/_freeGlobal.js");

/** Detect free variable `exports`. */
var freeExports = true && exports && !exports.nodeType && exports;

/** Detect free variable `module`. */
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;

/** Detect the popular CommonJS extension `module.exports`. */
var moduleExports = freeModule && freeModule.exports === freeExports;

/** Detect free variable `process` from Node.js. */
var freeProcess = moduleExports && freeGlobal.process;

/** Used to access faster Node.js helpers. */
var nodeUtil = (function() {
  try {
    // Use `util.types` for Node.js 10+.
    var types = freeModule && freeModule.require && freeModule.require('util').types;

    if (types) {
      return types;
    }

    // Legacy `process.binding('util')` for Node.js < 10.
    return freeProcess && freeProcess.binding && freeProcess.binding('util');
  } catch (e) {}
}());

module.exports = nodeUtil;

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))

/***/ }),

/***/ "./node_modules/lodash/_objectToString.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_objectToString.js ***!
  \************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/** Used for built-in method references. */
var objectProto = Object.prototype;

/**
 * Used to resolve the
 * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
 * of values.
 */
var nativeObjectToString = objectProto.toString;

/**
 * Converts `value` to a string using `Object.prototype.toString`.
 *
 * @private
 * @param {*} value The value to convert.
 * @returns {string} Returns the converted string.
 */
function objectToString(value) {
  return nativeObjectToString.call(value);
}

module.exports = objectToString;


/***/ }),

/***/ "./node_modules/lodash/_overArg.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_overArg.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Creates a unary function that invokes `func` with its argument transformed.
 *
 * @private
 * @param {Function} func The function to wrap.
 * @param {Function} transform The argument transform.
 * @returns {Function} Returns the new function.
 */
function overArg(func, transform) {
  return function(arg) {
    return func(transform(arg));
  };
}

module.exports = overArg;


/***/ }),

/***/ "./node_modules/lodash/_overRest.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_overRest.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var apply = __webpack_require__(/*! ./_apply */ "./node_modules/lodash/_apply.js");

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max;

/**
 * A specialized version of `baseRest` which transforms the rest array.
 *
 * @private
 * @param {Function} func The function to apply a rest parameter to.
 * @param {number} [start=func.length-1] The start position of the rest parameter.
 * @param {Function} transform The rest array transform.
 * @returns {Function} Returns the new function.
 */
function overRest(func, start, transform) {
  start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
  return function() {
    var args = arguments,
        index = -1,
        length = nativeMax(args.length - start, 0),
        array = Array(length);

    while (++index < length) {
      array[index] = args[start + index];
    }
    index = -1;
    var otherArgs = Array(start + 1);
    while (++index < start) {
      otherArgs[index] = args[index];
    }
    otherArgs[start] = transform(array);
    return apply(func, this, otherArgs);
  };
}

module.exports = overRest;


/***/ }),

/***/ "./node_modules/lodash/_parent.js":
/*!****************************************!*\
  !*** ./node_modules/lodash/_parent.js ***!
  \****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js"),
    baseSlice = __webpack_require__(/*! ./_baseSlice */ "./node_modules/lodash/_baseSlice.js");

/**
 * Gets the parent value at `path` of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Array} path The path to get the parent value of.
 * @returns {*} Returns the parent value.
 */
function parent(object, path) {
  return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
}

module.exports = parent;


/***/ }),

/***/ "./node_modules/lodash/_realNames.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_realNames.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/** Used to lookup unminified function names. */
var realNames = {};

module.exports = realNames;


/***/ }),

/***/ "./node_modules/lodash/_root.js":
/*!**************************************!*\
  !*** ./node_modules/lodash/_root.js ***!
  \**************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "./node_modules/lodash/_freeGlobal.js");

/** Detect free variable `self`. */
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;

/** Used as a reference to the global object. */
var root = freeGlobal || freeSelf || Function('return this')();

module.exports = root;


/***/ }),

/***/ "./node_modules/lodash/_safeGet.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_safeGet.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
 *
 * @private
 * @param {Object} object The object to query.
 * @param {string} key The key of the property to get.
 * @returns {*} Returns the property value.
 */
function safeGet(object, key) {
  if (key === 'constructor' && typeof object[key] === 'function') {
    return;
  }

  if (key == '__proto__') {
    return;
  }

  return object[key];
}

module.exports = safeGet;


/***/ }),

/***/ "./node_modules/lodash/_setCacheAdd.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_setCacheAdd.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/** Used to stand-in for `undefined` hash values. */
var HASH_UNDEFINED = '__lodash_hash_undefined__';

/**
 * Adds `value` to the array cache.
 *
 * @private
 * @name add
 * @memberOf SetCache
 * @alias push
 * @param {*} value The value to cache.
 * @returns {Object} Returns the cache instance.
 */
function setCacheAdd(value) {
  this.__data__.set(value, HASH_UNDEFINED);
  return this;
}

module.exports = setCacheAdd;


/***/ }),

/***/ "./node_modules/lodash/_setCacheHas.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_setCacheHas.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Checks if `value` is in the array cache.
 *
 * @private
 * @name has
 * @memberOf SetCache
 * @param {*} value The value to search for.
 * @returns {number} Returns `true` if `value` is found, else `false`.
 */
function setCacheHas(value) {
  return this.__data__.has(value);
}

module.exports = setCacheHas;


/***/ }),

/***/ "./node_modules/lodash/_setToArray.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_setToArray.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Converts `set` to an array of its values.
 *
 * @private
 * @param {Object} set The set to convert.
 * @returns {Array} Returns the values.
 */
function setToArray(set) {
  var index = -1,
      result = Array(set.size);

  set.forEach(function(value) {
    result[++index] = value;
  });
  return result;
}

module.exports = setToArray;


/***/ }),

/***/ "./node_modules/lodash/_setToString.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_setToString.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseSetToString = __webpack_require__(/*! ./_baseSetToString */ "./node_modules/lodash/_baseSetToString.js"),
    shortOut = __webpack_require__(/*! ./_shortOut */ "./node_modules/lodash/_shortOut.js");

/**
 * Sets the `toString` method of `func` to return `string`.
 *
 * @private
 * @param {Function} func The function to modify.
 * @param {Function} string The `toString` result.
 * @returns {Function} Returns `func`.
 */
var setToString = shortOut(baseSetToString);

module.exports = setToString;


/***/ }),

/***/ "./node_modules/lodash/_shortOut.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_shortOut.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/** Used to detect hot functions by number of calls within a span of milliseconds. */
var HOT_COUNT = 800,
    HOT_SPAN = 16;

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeNow = Date.now;

/**
 * Creates a function that'll short out and invoke `identity` instead
 * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
 * milliseconds.
 *
 * @private
 * @param {Function} func The function to restrict.
 * @returns {Function} Returns the new shortable function.
 */
function shortOut(func) {
  var count = 0,
      lastCalled = 0;

  return function() {
    var stamp = nativeNow(),
        remaining = HOT_SPAN - (stamp - lastCalled);

    lastCalled = stamp;
    if (remaining > 0) {
      if (++count >= HOT_COUNT) {
        return arguments[0];
      }
    } else {
      count = 0;
    }
    return func.apply(undefined, arguments);
  };
}

module.exports = shortOut;


/***/ }),

/***/ "./node_modules/lodash/_stackClear.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_stackClear.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js");

/**
 * Removes all key-value entries from the stack.
 *
 * @private
 * @name clear
 * @memberOf Stack
 */
function stackClear() {
  this.__data__ = new ListCache;
  this.size = 0;
}

module.exports = stackClear;


/***/ }),

/***/ "./node_modules/lodash/_stackDelete.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_stackDelete.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Removes `key` and its value from the stack.
 *
 * @private
 * @name delete
 * @memberOf Stack
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function stackDelete(key) {
  var data = this.__data__,
      result = data['delete'](key);

  this.size = data.size;
  return result;
}

module.exports = stackDelete;


/***/ }),

/***/ "./node_modules/lodash/_stackGet.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_stackGet.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Gets the stack value for `key`.
 *
 * @private
 * @name get
 * @memberOf Stack
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
function stackGet(key) {
  return this.__data__.get(key);
}

module.exports = stackGet;


/***/ }),

/***/ "./node_modules/lodash/_stackHas.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_stackHas.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Checks if a stack value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf Stack
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function stackHas(key) {
  return this.__data__.has(key);
}

module.exports = stackHas;


/***/ }),

/***/ "./node_modules/lodash/_stackSet.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_stackSet.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"),
    Map = __webpack_require__(/*! ./_Map */ "./node_modules/lodash/_Map.js"),
    MapCache = __webpack_require__(/*! ./_MapCache */ "./node_modules/lodash/_MapCache.js");

/** Used as the size to enable large array optimizations. */
var LARGE_ARRAY_SIZE = 200;

/**
 * Sets the stack `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf Stack
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the stack cache instance.
 */
function stackSet(key, value) {
  var data = this.__data__;
  if (data instanceof ListCache) {
    var pairs = data.__data__;
    if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
      pairs.push([key, value]);
      this.size = ++data.size;
      return this;
    }
    data = this.__data__ = new MapCache(pairs);
  }
  data.set(key, value);
  this.size = data.size;
  return this;
}

module.exports = stackSet;


/***/ }),

/***/ "./node_modules/lodash/_stringToPath.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_stringToPath.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var memoizeCapped = __webpack_require__(/*! ./_memoizeCapped */ "./node_modules/lodash/_memoizeCapped.js");

/** Used to match property names within property paths. */
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;

/** Used to match backslashes in property paths. */
var reEscapeChar = /\\(\\)?/g;

/**
 * Converts `string` to a property path array.
 *
 * @private
 * @param {string} string The string to convert.
 * @returns {Array} Returns the property path array.
 */
var stringToPath = memoizeCapped(function(string) {
  var result = [];
  if (string.charCodeAt(0) === 46 /* . */) {
    result.push('');
  }
  string.replace(rePropName, function(match, number, quote, subString) {
    result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
  });
  return result;
});

module.exports = stringToPath;


/***/ }),

/***/ "./node_modules/lodash/_toKey.js":
/*!***************************************!*\
  !*** ./node_modules/lodash/_toKey.js ***!
  \***************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");

/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0;

/**
 * Converts `value` to a string key if it's not a string or symbol.
 *
 * @private
 * @param {*} value The value to inspect.
 * @returns {string|symbol} Returns the key.
 */
function toKey(value) {
  if (typeof value == 'string' || isSymbol(value)) {
    return value;
  }
  var result = (value + '');
  return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
}

module.exports = toKey;


/***/ }),

/***/ "./node_modules/lodash/_toSource.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_toSource.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/** Used for built-in method references. */
var funcProto = Function.prototype;

/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;

/**
 * Converts `func` to its source code.
 *
 * @private
 * @param {Function} func The function to convert.
 * @returns {string} Returns the source code.
 */
function toSource(func) {
  if (func != null) {
    try {
      return funcToString.call(func);
    } catch (e) {}
    try {
      return (func + '');
    } catch (e) {}
  }
  return '';
}

module.exports = toSource;


/***/ }),

/***/ "./node_modules/lodash/_wrapperClone.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_wrapperClone.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var LazyWrapper = __webpack_require__(/*! ./_LazyWrapper */ "./node_modules/lodash/_LazyWrapper.js"),
    LodashWrapper = __webpack_require__(/*! ./_LodashWrapper */ "./node_modules/lodash/_LodashWrapper.js"),
    copyArray = __webpack_require__(/*! ./_copyArray */ "./node_modules/lodash/_copyArray.js");

/**
 * Creates a clone of `wrapper`.
 *
 * @private
 * @param {Object} wrapper The wrapper to clone.
 * @returns {Object} Returns the cloned wrapper.
 */
function wrapperClone(wrapper) {
  if (wrapper instanceof LazyWrapper) {
    return wrapper.clone();
  }
  var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);
  result.__actions__ = copyArray(wrapper.__actions__);
  result.__index__  = wrapper.__index__;
  result.__values__ = wrapper.__values__;
  return result;
}

module.exports = wrapperClone;


/***/ }),

/***/ "./node_modules/lodash/cloneDeep.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/cloneDeep.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseClone = __webpack_require__(/*! ./_baseClone */ "./node_modules/lodash/_baseClone.js");

/** Used to compose bitmasks for cloning. */
var CLONE_DEEP_FLAG = 1,
    CLONE_SYMBOLS_FLAG = 4;

/**
 * This method is like `_.clone` except that it recursively clones `value`.
 *
 * @static
 * @memberOf _
 * @since 1.0.0
 * @category Lang
 * @param {*} value The value to recursively clone.
 * @returns {*} Returns the deep cloned value.
 * @see _.clone
 * @example
 *
 * var objects = [{ 'a': 1 }, { 'b': 2 }];
 *
 * var deep = _.cloneDeep(objects);
 * console.log(deep[0] === objects[0]);
 * // => false
 */
function cloneDeep(value) {
  return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
}

module.exports = cloneDeep;


/***/ }),

/***/ "./node_modules/lodash/constant.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/constant.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Creates a function that returns `value`.
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Util
 * @param {*} value The value to return from the new function.
 * @returns {Function} Returns the new constant function.
 * @example
 *
 * var objects = _.times(2, _.constant({ 'a': 1 }));
 *
 * console.log(objects);
 * // => [{ 'a': 1 }, { 'a': 1 }]
 *
 * console.log(objects[0] === objects[1]);
 * // => true
 */
function constant(value) {
  return function() {
    return value;
  };
}

module.exports = constant;


/***/ }),

/***/ "./node_modules/lodash/debounce.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/debounce.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
    now = __webpack_require__(/*! ./now */ "./node_modules/lodash/now.js"),
    toNumber = __webpack_require__(/*! ./toNumber */ "./node_modules/lodash/toNumber.js");

/** Error message constants. */
var FUNC_ERROR_TEXT = 'Expected a function';

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max,
    nativeMin = Math.min;

/**
 * Creates a debounced function that delays invoking `func` until after `wait`
 * milliseconds have elapsed since the last time the debounced function was
 * invoked. The debounced function comes with a `cancel` method to cancel
 * delayed `func` invocations and a `flush` method to immediately invoke them.
 * Provide `options` to indicate whether `func` should be invoked on the
 * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
 * with the last arguments provided to the debounced function. Subsequent
 * calls to the debounced function return the result of the last `func`
 * invocation.
 *
 * **Note:** If `leading` and `trailing` options are `true`, `func` is
 * invoked on the trailing edge of the timeout only if the debounced function
 * is invoked more than once during the `wait` timeout.
 *
 * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
 * until to the next tick, similar to `setTimeout` with a timeout of `0`.
 *
 * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
 * for details over the differences between `_.debounce` and `_.throttle`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to debounce.
 * @param {number} [wait=0] The number of milliseconds to delay.
 * @param {Object} [options={}] The options object.
 * @param {boolean} [options.leading=false]
 *  Specify invoking on the leading edge of the timeout.
 * @param {number} [options.maxWait]
 *  The maximum time `func` is allowed to be delayed before it's invoked.
 * @param {boolean} [options.trailing=true]
 *  Specify invoking on the trailing edge of the timeout.
 * @returns {Function} Returns the new debounced function.
 * @example
 *
 * // Avoid costly calculations while the window size is in flux.
 * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
 *
 * // Invoke `sendMail` when clicked, debouncing subsequent calls.
 * jQuery(element).on('click', _.debounce(sendMail, 300, {
 *   'leading': true,
 *   'trailing': false
 * }));
 *
 * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
 * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
 * var source = new EventSource('/stream');
 * jQuery(source).on('message', debounced);
 *
 * // Cancel the trailing debounced invocation.
 * jQuery(window).on('popstate', debounced.cancel);
 */
function debounce(func, wait, options) {
  var lastArgs,
      lastThis,
      maxWait,
      result,
      timerId,
      lastCallTime,
      lastInvokeTime = 0,
      leading = false,
      maxing = false,
      trailing = true;

  if (typeof func != 'function') {
    throw new TypeError(FUNC_ERROR_TEXT);
  }
  wait = toNumber(wait) || 0;
  if (isObject(options)) {
    leading = !!options.leading;
    maxing = 'maxWait' in options;
    maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
    trailing = 'trailing' in options ? !!options.trailing : trailing;
  }

  function invokeFunc(time) {
    var args = lastArgs,
        thisArg = lastThis;

    lastArgs = lastThis = undefined;
    lastInvokeTime = time;
    result = func.apply(thisArg, args);
    return result;
  }

  function leadingEdge(time) {
    // Reset any `maxWait` timer.
    lastInvokeTime = time;
    // Start the timer for the trailing edge.
    timerId = setTimeout(timerExpired, wait);
    // Invoke the leading edge.
    return leading ? invokeFunc(time) : result;
  }

  function remainingWait(time) {
    var timeSinceLastCall = time - lastCallTime,
        timeSinceLastInvoke = time - lastInvokeTime,
        timeWaiting = wait - timeSinceLastCall;

    return maxing
      ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
      : timeWaiting;
  }

  function shouldInvoke(time) {
    var timeSinceLastCall = time - lastCallTime,
        timeSinceLastInvoke = time - lastInvokeTime;

    // Either this is the first call, activity has stopped and we're at the
    // trailing edge, the system time has gone backwards and we're treating
    // it as the trailing edge, or we've hit the `maxWait` limit.
    return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
      (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
  }

  function timerExpired() {
    var time = now();
    if (shouldInvoke(time)) {
      return trailingEdge(time);
    }
    // Restart the timer.
    timerId = setTimeout(timerExpired, remainingWait(time));
  }

  function trailingEdge(time) {
    timerId = undefined;

    // Only invoke if we have `lastArgs` which means `func` has been
    // debounced at least once.
    if (trailing && lastArgs) {
      return invokeFunc(time);
    }
    lastArgs = lastThis = undefined;
    return result;
  }

  function cancel() {
    if (timerId !== undefined) {
      clearTimeout(timerId);
    }
    lastInvokeTime = 0;
    lastArgs = lastCallTime = lastThis = timerId = undefined;
  }

  function flush() {
    return timerId === undefined ? result : trailingEdge(now());
  }

  function debounced() {
    var time = now(),
        isInvoking = shouldInvoke(time);

    lastArgs = arguments;
    lastThis = this;
    lastCallTime = time;

    if (isInvoking) {
      if (timerId === undefined) {
        return leadingEdge(lastCallTime);
      }
      if (maxing) {
        // Handle invocations in a tight loop.
        clearTimeout(timerId);
        timerId = setTimeout(timerExpired, wait);
        return invokeFunc(lastCallTime);
      }
    }
    if (timerId === undefined) {
      timerId = setTimeout(timerExpired, wait);
    }
    return result;
  }
  debounced.cancel = cancel;
  debounced.flush = flush;
  return debounced;
}

module.exports = debounce;


/***/ }),

/***/ "./node_modules/lodash/eq.js":
/*!***********************************!*\
  !*** ./node_modules/lodash/eq.js ***!
  \***********************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Performs a
 * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * comparison between two values to determine if they are equivalent.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 * @example
 *
 * var object = { 'a': 1 };
 * var other = { 'a': 1 };
 *
 * _.eq(object, object);
 * // => true
 *
 * _.eq(object, other);
 * // => false
 *
 * _.eq('a', 'a');
 * // => true
 *
 * _.eq('a', Object('a'));
 * // => false
 *
 * _.eq(NaN, NaN);
 * // => true
 */
function eq(value, other) {
  return value === other || (value !== value && other !== other);
}

module.exports = eq;


/***/ }),

/***/ "./node_modules/lodash/find.js":
/*!*************************************!*\
  !*** ./node_modules/lodash/find.js ***!
  \*************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var createFind = __webpack_require__(/*! ./_createFind */ "./node_modules/lodash/_createFind.js"),
    findIndex = __webpack_require__(/*! ./findIndex */ "./node_modules/lodash/findIndex.js");

/**
 * Iterates over elements of `collection`, returning the first element
 * `predicate` returns truthy for. The predicate is invoked with three
 * arguments: (value, index|key, collection).
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Collection
 * @param {Array|Object} collection The collection to inspect.
 * @param {Function} [predicate=_.identity] The function invoked per iteration.
 * @param {number} [fromIndex=0] The index to search from.
 * @returns {*} Returns the matched element, else `undefined`.
 * @example
 *
 * var users = [
 *   { 'user': 'barney',  'age': 36, 'active': true },
 *   { 'user': 'fred',    'age': 40, 'active': false },
 *   { 'user': 'pebbles', 'age': 1,  'active': true }
 * ];
 *
 * _.find(users, function(o) { return o.age < 40; });
 * // => object for 'barney'
 *
 * // The `_.matches` iteratee shorthand.
 * _.find(users, { 'age': 1, 'active': true });
 * // => object for 'pebbles'
 *
 * // The `_.matchesProperty` iteratee shorthand.
 * _.find(users, ['active', false]);
 * // => object for 'fred'
 *
 * // The `_.property` iteratee shorthand.
 * _.find(users, 'active');
 * // => object for 'barney'
 */
var find = createFind(findIndex);

module.exports = find;


/***/ }),

/***/ "./node_modules/lodash/findIndex.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/findIndex.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "./node_modules/lodash/_baseFindIndex.js"),
    baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
    toInteger = __webpack_require__(/*! ./toInteger */ "./node_modules/lodash/toInteger.js");

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max;

/**
 * This method is like `_.find` except that it returns the index of the first
 * element `predicate` returns truthy for instead of the element itself.
 *
 * @static
 * @memberOf _
 * @since 1.1.0
 * @category Array
 * @param {Array} array The array to inspect.
 * @param {Function} [predicate=_.identity] The function invoked per iteration.
 * @param {number} [fromIndex=0] The index to search from.
 * @returns {number} Returns the index of the found element, else `-1`.
 * @example
 *
 * var users = [
 *   { 'user': 'barney',  'active': false },
 *   { 'user': 'fred',    'active': false },
 *   { 'user': 'pebbles', 'active': true }
 * ];
 *
 * _.findIndex(users, function(o) { return o.user == 'barney'; });
 * // => 0
 *
 * // The `_.matches` iteratee shorthand.
 * _.findIndex(users, { 'user': 'fred', 'active': false });
 * // => 1
 *
 * // The `_.matchesProperty` iteratee shorthand.
 * _.findIndex(users, ['active', false]);
 * // => 0
 *
 * // The `_.property` iteratee shorthand.
 * _.findIndex(users, 'active');
 * // => 2
 */
function findIndex(array, predicate, fromIndex) {
  var length = array == null ? 0 : array.length;
  if (!length) {
    return -1;
  }
  var index = fromIndex == null ? 0 : toInteger(fromIndex);
  if (index < 0) {
    index = nativeMax(length + index, 0);
  }
  return baseFindIndex(array, baseIteratee(predicate, 3), index);
}

module.exports = findIndex;


/***/ }),

/***/ "./node_modules/lodash/flatten.js":
/*!****************************************!*\
  !*** ./node_modules/lodash/flatten.js ***!
  \****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "./node_modules/lodash/_baseFlatten.js");

/**
 * Flattens `array` a single level deep.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The array to flatten.
 * @returns {Array} Returns the new flattened array.
 * @example
 *
 * _.flatten([1, [2, [3, [4]], 5]]);
 * // => [1, 2, [3, [4]], 5]
 */
function flatten(array) {
  var length = array == null ? 0 : array.length;
  return length ? baseFlatten(array, 1) : [];
}

module.exports = flatten;


/***/ }),

/***/ "./node_modules/lodash/flowRight.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/flowRight.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var createFlow = __webpack_require__(/*! ./_createFlow */ "./node_modules/lodash/_createFlow.js");

/**
 * This method is like `_.flow` except that it creates a function that
 * invokes the given functions from right to left.
 *
 * @static
 * @since 3.0.0
 * @memberOf _
 * @category Util
 * @param {...(Function|Function[])} [funcs] The functions to invoke.
 * @returns {Function} Returns the new composite function.
 * @see _.flow
 * @example
 *
 * function square(n) {
 *   return n * n;
 * }
 *
 * var addSquare = _.flowRight([square, _.add]);
 * addSquare(1, 2);
 * // => 9
 */
var flowRight = createFlow(true);

module.exports = flowRight;


/***/ }),

/***/ "./node_modules/lodash/get.js":
/*!************************************!*\
  !*** ./node_modules/lodash/get.js ***!
  \************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js");

/**
 * Gets the value at `path` of `object`. If the resolved value is
 * `undefined`, the `defaultValue` is returned in its place.
 *
 * @static
 * @memberOf _
 * @since 3.7.0
 * @category Object
 * @param {Object} object The object to query.
 * @param {Array|string} path The path of the property to get.
 * @param {*} [defaultValue] The value returned for `undefined` resolved values.
 * @returns {*} Returns the resolved value.
 * @example
 *
 * var object = { 'a': [{ 'b': { 'c': 3 } }] };
 *
 * _.get(object, 'a[0].b.c');
 * // => 3
 *
 * _.get(object, ['a', '0', 'b', 'c']);
 * // => 3
 *
 * _.get(object, 'a.b.c', 'default');
 * // => 'default'
 */
function get(object, path, defaultValue) {
  var result = object == null ? undefined : baseGet(object, path);
  return result === undefined ? defaultValue : result;
}

module.exports = get;


/***/ }),

/***/ "./node_modules/lodash/has.js":
/*!************************************!*\
  !*** ./node_modules/lodash/has.js ***!
  \************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseHas = __webpack_require__(/*! ./_baseHas */ "./node_modules/lodash/_baseHas.js"),
    hasPath = __webpack_require__(/*! ./_hasPath */ "./node_modules/lodash/_hasPath.js");

/**
 * Checks if `path` is a direct property of `object`.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The object to query.
 * @param {Array|string} path The path to check.
 * @returns {boolean} Returns `true` if `path` exists, else `false`.
 * @example
 *
 * var object = { 'a': { 'b': 2 } };
 * var other = _.create({ 'a': _.create({ 'b': 2 }) });
 *
 * _.has(object, 'a');
 * // => true
 *
 * _.has(object, 'a.b');
 * // => true
 *
 * _.has(object, ['a', 'b']);
 * // => true
 *
 * _.has(other, 'a');
 * // => false
 */
function has(object, path) {
  return object != null && hasPath(object, path, baseHas);
}

module.exports = has;


/***/ }),

/***/ "./node_modules/lodash/hasIn.js":
/*!**************************************!*\
  !*** ./node_modules/lodash/hasIn.js ***!
  \**************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseHasIn = __webpack_require__(/*! ./_baseHasIn */ "./node_modules/lodash/_baseHasIn.js"),
    hasPath = __webpack_require__(/*! ./_hasPath */ "./node_modules/lodash/_hasPath.js");

/**
 * Checks if `path` is a direct or inherited property of `object`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Object
 * @param {Object} object The object to query.
 * @param {Array|string} path The path to check.
 * @returns {boolean} Returns `true` if `path` exists, else `false`.
 * @example
 *
 * var object = _.create({ 'a': _.create({ 'b': 2 }) });
 *
 * _.hasIn(object, 'a');
 * // => true
 *
 * _.hasIn(object, 'a.b');
 * // => true
 *
 * _.hasIn(object, ['a', 'b']);
 * // => true
 *
 * _.hasIn(object, 'b');
 * // => false
 */
function hasIn(object, path) {
  return object != null && hasPath(object, path, baseHasIn);
}

module.exports = hasIn;


/***/ }),

/***/ "./node_modules/lodash/head.js":
/*!*************************************!*\
  !*** ./node_modules/lodash/head.js ***!
  \*************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Gets the first element of `array`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @alias first
 * @category Array
 * @param {Array} array The array to query.
 * @returns {*} Returns the first element of `array`.
 * @example
 *
 * _.head([1, 2, 3]);
 * // => 1
 *
 * _.head([]);
 * // => undefined
 */
function head(array) {
  return (array && array.length) ? array[0] : undefined;
}

module.exports = head;


/***/ }),

/***/ "./node_modules/lodash/identity.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/identity.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * This method returns the first argument it receives.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Util
 * @param {*} value Any value.
 * @returns {*} Returns `value`.
 * @example
 *
 * var object = { 'a': 1 };
 *
 * console.log(_.identity(object) === object);
 * // => true
 */
function identity(value) {
  return value;
}

module.exports = identity;


/***/ }),

/***/ "./node_modules/lodash/isArguments.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/isArguments.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseIsArguments = __webpack_require__(/*! ./_baseIsArguments */ "./node_modules/lodash/_baseIsArguments.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/** Built-in value references. */
var propertyIsEnumerable = objectProto.propertyIsEnumerable;

/**
 * Checks if `value` is likely an `arguments` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an `arguments` object,
 *  else `false`.
 * @example
 *
 * _.isArguments(function() { return arguments; }());
 * // => true
 *
 * _.isArguments([1, 2, 3]);
 * // => false
 */
var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
  return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
    !propertyIsEnumerable.call(value, 'callee');
};

module.exports = isArguments;


/***/ }),

/***/ "./node_modules/lodash/isArray.js":
/*!****************************************!*\
  !*** ./node_modules/lodash/isArray.js ***!
  \****************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Checks if `value` is classified as an `Array` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an array, else `false`.
 * @example
 *
 * _.isArray([1, 2, 3]);
 * // => true
 *
 * _.isArray(document.body.children);
 * // => false
 *
 * _.isArray('abc');
 * // => false
 *
 * _.isArray(_.noop);
 * // => false
 */
var isArray = Array.isArray;

module.exports = isArray;


/***/ }),

/***/ "./node_modules/lodash/isArrayLike.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/isArrayLike.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
    isLength = __webpack_require__(/*! ./isLength */ "./node_modules/lodash/isLength.js");

/**
 * Checks if `value` is array-like. A value is considered array-like if it's
 * not a function and has a `value.length` that's an integer greater than or
 * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
 * @example
 *
 * _.isArrayLike([1, 2, 3]);
 * // => true
 *
 * _.isArrayLike(document.body.children);
 * // => true
 *
 * _.isArrayLike('abc');
 * // => true
 *
 * _.isArrayLike(_.noop);
 * // => false
 */
function isArrayLike(value) {
  return value != null && isLength(value.length) && !isFunction(value);
}

module.exports = isArrayLike;


/***/ }),

/***/ "./node_modules/lodash/isArrayLikeObject.js":
/*!**************************************************!*\
  !*** ./node_modules/lodash/isArrayLikeObject.js ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");

/**
 * This method is like `_.isArrayLike` except that it also checks if `value`
 * is an object.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an array-like object,
 *  else `false`.
 * @example
 *
 * _.isArrayLikeObject([1, 2, 3]);
 * // => true
 *
 * _.isArrayLikeObject(document.body.children);
 * // => true
 *
 * _.isArrayLikeObject('abc');
 * // => false
 *
 * _.isArrayLikeObject(_.noop);
 * // => false
 */
function isArrayLikeObject(value) {
  return isObjectLike(value) && isArrayLike(value);
}

module.exports = isArrayLikeObject;


/***/ }),

/***/ "./node_modules/lodash/isBuffer.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/isBuffer.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js"),
    stubFalse = __webpack_require__(/*! ./stubFalse */ "./node_modules/lodash/stubFalse.js");

/** Detect free variable `exports`. */
var freeExports = true && exports && !exports.nodeType && exports;

/** Detect free variable `module`. */
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;

/** Detect the popular CommonJS extension `module.exports`. */
var moduleExports = freeModule && freeModule.exports === freeExports;

/** Built-in value references. */
var Buffer = moduleExports ? root.Buffer : undefined;

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;

/**
 * Checks if `value` is a buffer.
 *
 * @static
 * @memberOf _
 * @since 4.3.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
 * @example
 *
 * _.isBuffer(new Buffer(2));
 * // => true
 *
 * _.isBuffer(new Uint8Array(2));
 * // => false
 */
var isBuffer = nativeIsBuffer || stubFalse;

module.exports = isBuffer;

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))

/***/ }),

/***/ "./node_modules/lodash/isEqual.js":
/*!****************************************!*\
  !*** ./node_modules/lodash/isEqual.js ***!
  \****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "./node_modules/lodash/_baseIsEqual.js");

/**
 * Performs a deep comparison between two values to determine if they are
 * equivalent.
 *
 * **Note:** This method supports comparing arrays, array buffers, booleans,
 * date objects, error objects, maps, numbers, `Object` objects, regexes,
 * sets, strings, symbols, and typed arrays. `Object` objects are compared
 * by their own, not inherited, enumerable properties. Functions and DOM
 * nodes are compared by strict equality, i.e. `===`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 * @example
 *
 * var object = { 'a': 1 };
 * var other = { 'a': 1 };
 *
 * _.isEqual(object, other);
 * // => true
 *
 * object === other;
 * // => false
 */
function isEqual(value, other) {
  return baseIsEqual(value, other);
}

module.exports = isEqual;


/***/ }),

/***/ "./node_modules/lodash/isEqualWith.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/isEqualWith.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "./node_modules/lodash/_baseIsEqual.js");

/**
 * This method is like `_.isEqual` except that it accepts `customizer` which
 * is invoked to compare values. If `customizer` returns `undefined`, comparisons
 * are handled by the method instead. The `customizer` is invoked with up to
 * six arguments: (objValue, othValue [, index|key, object, other, stack]).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @param {Function} [customizer] The function to customize comparisons.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 * @example
 *
 * function isGreeting(value) {
 *   return /^h(?:i|ello)$/.test(value);
 * }
 *
 * function customizer(objValue, othValue) {
 *   if (isGreeting(objValue) && isGreeting(othValue)) {
 *     return true;
 *   }
 * }
 *
 * var array = ['hello', 'goodbye'];
 * var other = ['hi', 'goodbye'];
 *
 * _.isEqualWith(array, other, customizer);
 * // => true
 */
function isEqualWith(value, other, customizer) {
  customizer = typeof customizer == 'function' ? customizer : undefined;
  var result = customizer ? customizer(value, other) : undefined;
  return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;
}

module.exports = isEqualWith;


/***/ }),

/***/ "./node_modules/lodash/isFunction.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/isFunction.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
    isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");

/** `Object#toString` result references. */
var asyncTag = '[object AsyncFunction]',
    funcTag = '[object Function]',
    genTag = '[object GeneratorFunction]',
    proxyTag = '[object Proxy]';

/**
 * Checks if `value` is classified as a `Function` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a function, else `false`.
 * @example
 *
 * _.isFunction(_);
 * // => true
 *
 * _.isFunction(/abc/);
 * // => false
 */
function isFunction(value) {
  if (!isObject(value)) {
    return false;
  }
  // The use of `Object#toString` avoids issues with the `typeof` operator
  // in Safari 9 which returns 'object' for typed arrays and other constructors.
  var tag = baseGetTag(value);
  return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
}

module.exports = isFunction;


/***/ }),

/***/ "./node_modules/lodash/isLength.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/isLength.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/** Used as references for various `Number` constants. */
var MAX_SAFE_INTEGER = 9007199254740991;

/**
 * Checks if `value` is a valid array-like length.
 *
 * **Note:** This method is loosely based on
 * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
 * @example
 *
 * _.isLength(3);
 * // => true
 *
 * _.isLength(Number.MIN_VALUE);
 * // => false
 *
 * _.isLength(Infinity);
 * // => false
 *
 * _.isLength('3');
 * // => false
 */
function isLength(value) {
  return typeof value == 'number' &&
    value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
}

module.exports = isLength;


/***/ }),

/***/ "./node_modules/lodash/isMap.js":
/*!**************************************!*\
  !*** ./node_modules/lodash/isMap.js ***!
  \**************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseIsMap = __webpack_require__(/*! ./_baseIsMap */ "./node_modules/lodash/_baseIsMap.js"),
    baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
    nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js");

/* Node.js helper references. */
var nodeIsMap = nodeUtil && nodeUtil.isMap;

/**
 * Checks if `value` is classified as a `Map` object.
 *
 * @static
 * @memberOf _
 * @since 4.3.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a map, else `false`.
 * @example
 *
 * _.isMap(new Map);
 * // => true
 *
 * _.isMap(new WeakMap);
 * // => false
 */
var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;

module.exports = isMap;


/***/ }),

/***/ "./node_modules/lodash/isObject.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/isObject.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Checks if `value` is the
 * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
 * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an object, else `false`.
 * @example
 *
 * _.isObject({});
 * // => true
 *
 * _.isObject([1, 2, 3]);
 * // => true
 *
 * _.isObject(_.noop);
 * // => true
 *
 * _.isObject(null);
 * // => false
 */
function isObject(value) {
  var type = typeof value;
  return value != null && (type == 'object' || type == 'function');
}

module.exports = isObject;


/***/ }),

/***/ "./node_modules/lodash/isObjectLike.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/isObjectLike.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Checks if `value` is object-like. A value is object-like if it's not `null`
 * and has a `typeof` result of "object".
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
 * @example
 *
 * _.isObjectLike({});
 * // => true
 *
 * _.isObjectLike([1, 2, 3]);
 * // => true
 *
 * _.isObjectLike(_.noop);
 * // => false
 *
 * _.isObjectLike(null);
 * // => false
 */
function isObjectLike(value) {
  return value != null && typeof value == 'object';
}

module.exports = isObjectLike;


/***/ }),

/***/ "./node_modules/lodash/isPlainObject.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/isPlainObject.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
    getPrototype = __webpack_require__(/*! ./_getPrototype */ "./node_modules/lodash/_getPrototype.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");

/** `Object#toString` result references. */
var objectTag = '[object Object]';

/** Used for built-in method references. */
var funcProto = Function.prototype,
    objectProto = Object.prototype;

/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/** Used to infer the `Object` constructor. */
var objectCtorString = funcToString.call(Object);

/**
 * Checks if `value` is a plain object, that is, an object created by the
 * `Object` constructor or one with a `[[Prototype]]` of `null`.
 *
 * @static
 * @memberOf _
 * @since 0.8.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 * }
 *
 * _.isPlainObject(new Foo);
 * // => false
 *
 * _.isPlainObject([1, 2, 3]);
 * // => false
 *
 * _.isPlainObject({ 'x': 0, 'y': 0 });
 * // => true
 *
 * _.isPlainObject(Object.create(null));
 * // => true
 */
function isPlainObject(value) {
  if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
    return false;
  }
  var proto = getPrototype(value);
  if (proto === null) {
    return true;
  }
  var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
  return typeof Ctor == 'function' && Ctor instanceof Ctor &&
    funcToString.call(Ctor) == objectCtorString;
}

module.exports = isPlainObject;


/***/ }),

/***/ "./node_modules/lodash/isSet.js":
/*!**************************************!*\
  !*** ./node_modules/lodash/isSet.js ***!
  \**************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseIsSet = __webpack_require__(/*! ./_baseIsSet */ "./node_modules/lodash/_baseIsSet.js"),
    baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
    nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js");

/* Node.js helper references. */
var nodeIsSet = nodeUtil && nodeUtil.isSet;

/**
 * Checks if `value` is classified as a `Set` object.
 *
 * @static
 * @memberOf _
 * @since 4.3.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a set, else `false`.
 * @example
 *
 * _.isSet(new Set);
 * // => true
 *
 * _.isSet(new WeakSet);
 * // => false
 */
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;

module.exports = isSet;


/***/ }),

/***/ "./node_modules/lodash/isString.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/isString.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");

/** `Object#toString` result references. */
var stringTag = '[object String]';

/**
 * Checks if `value` is classified as a `String` primitive or object.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a string, else `false`.
 * @example
 *
 * _.isString('abc');
 * // => true
 *
 * _.isString(1);
 * // => false
 */
function isString(value) {
  return typeof value == 'string' ||
    (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
}

module.exports = isString;


/***/ }),

/***/ "./node_modules/lodash/isSymbol.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/isSymbol.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");

/** `Object#toString` result references. */
var symbolTag = '[object Symbol]';

/**
 * Checks if `value` is classified as a `Symbol` primitive or object.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
 * @example
 *
 * _.isSymbol(Symbol.iterator);
 * // => true
 *
 * _.isSymbol('abc');
 * // => false
 */
function isSymbol(value) {
  return typeof value == 'symbol' ||
    (isObjectLike(value) && baseGetTag(value) == symbolTag);
}

module.exports = isSymbol;


/***/ }),

/***/ "./node_modules/lodash/isTypedArray.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/isTypedArray.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseIsTypedArray = __webpack_require__(/*! ./_baseIsTypedArray */ "./node_modules/lodash/_baseIsTypedArray.js"),
    baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
    nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js");

/* Node.js helper references. */
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;

/**
 * Checks if `value` is classified as a typed array.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
 * @example
 *
 * _.isTypedArray(new Uint8Array);
 * // => true
 *
 * _.isTypedArray([]);
 * // => false
 */
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;

module.exports = isTypedArray;


/***/ }),

/***/ "./node_modules/lodash/keys.js":
/*!*************************************!*\
  !*** ./node_modules/lodash/keys.js ***!
  \*************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "./node_modules/lodash/_arrayLikeKeys.js"),
    baseKeys = __webpack_require__(/*! ./_baseKeys */ "./node_modules/lodash/_baseKeys.js"),
    isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");

/**
 * Creates an array of the own enumerable property names of `object`.
 *
 * **Note:** Non-object values are coerced to objects. See the
 * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
 * for more details.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.keys(new Foo);
 * // => ['a', 'b'] (iteration order is not guaranteed)
 *
 * _.keys('hi');
 * // => ['0', '1']
 */
function keys(object) {
  return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
}

module.exports = keys;


/***/ }),

/***/ "./node_modules/lodash/keysIn.js":
/*!***************************************!*\
  !*** ./node_modules/lodash/keysIn.js ***!
  \***************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "./node_modules/lodash/_arrayLikeKeys.js"),
    baseKeysIn = __webpack_require__(/*! ./_baseKeysIn */ "./node_modules/lodash/_baseKeysIn.js"),
    isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");

/**
 * Creates an array of the own and inherited enumerable property names of `object`.
 *
 * **Note:** Non-object values are coerced to objects.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Object
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.keysIn(new Foo);
 * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
 */
function keysIn(object) {
  return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
}

module.exports = keysIn;


/***/ }),

/***/ "./node_modules/lodash/last.js":
/*!*************************************!*\
  !*** ./node_modules/lodash/last.js ***!
  \*************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Gets the last element of `array`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The array to query.
 * @returns {*} Returns the last element of `array`.
 * @example
 *
 * _.last([1, 2, 3]);
 * // => 3
 */
function last(array) {
  var length = array == null ? 0 : array.length;
  return length ? array[length - 1] : undefined;
}

module.exports = last;


/***/ }),

/***/ "./node_modules/lodash/lodash.js":
/*!***************************************!*\
  !*** ./node_modules/lodash/lodash.js ***!
  \***************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(global, module) {var __WEBPACK_AMD_DEFINE_RESULT__;/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */
;(function() {

  /** Used as a safe reference for `undefined` in pre-ES5 environments. */
  var undefined;

  /** Used as the semantic version number. */
  var VERSION = '4.17.14';

  /** Used as the size to enable large array optimizations. */
  var LARGE_ARRAY_SIZE = 200;

  /** Error message constants. */
  var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',
      FUNC_ERROR_TEXT = 'Expected a function';

  /** Used to stand-in for `undefined` hash values. */
  var HASH_UNDEFINED = '__lodash_hash_undefined__';

  /** Used as the maximum memoize cache size. */
  var MAX_MEMOIZE_SIZE = 500;

  /** Used as the internal argument placeholder. */
  var PLACEHOLDER = '__lodash_placeholder__';

  /** Used to compose bitmasks for cloning. */
  var CLONE_DEEP_FLAG = 1,
      CLONE_FLAT_FLAG = 2,
      CLONE_SYMBOLS_FLAG = 4;

  /** Used to compose bitmasks for value comparisons. */
  var COMPARE_PARTIAL_FLAG = 1,
      COMPARE_UNORDERED_FLAG = 2;

  /** Used to compose bitmasks for function metadata. */
  var WRAP_BIND_FLAG = 1,
      WRAP_BIND_KEY_FLAG = 2,
      WRAP_CURRY_BOUND_FLAG = 4,
      WRAP_CURRY_FLAG = 8,
      WRAP_CURRY_RIGHT_FLAG = 16,
      WRAP_PARTIAL_FLAG = 32,
      WRAP_PARTIAL_RIGHT_FLAG = 64,
      WRAP_ARY_FLAG = 128,
      WRAP_REARG_FLAG = 256,
      WRAP_FLIP_FLAG = 512;

  /** Used as default options for `_.truncate`. */
  var DEFAULT_TRUNC_LENGTH = 30,
      DEFAULT_TRUNC_OMISSION = '...';

  /** Used to detect hot functions by number of calls within a span of milliseconds. */
  var HOT_COUNT = 800,
      HOT_SPAN = 16;

  /** Used to indicate the type of lazy iteratees. */
  var LAZY_FILTER_FLAG = 1,
      LAZY_MAP_FLAG = 2,
      LAZY_WHILE_FLAG = 3;

  /** Used as references for various `Number` constants. */
  var INFINITY = 1 / 0,
      MAX_SAFE_INTEGER = 9007199254740991,
      MAX_INTEGER = 1.7976931348623157e+308,
      NAN = 0 / 0;

  /** Used as references for the maximum length and index of an array. */
  var MAX_ARRAY_LENGTH = 4294967295,
      MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,
      HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;

  /** Used to associate wrap methods with their bit flags. */
  var wrapFlags = [
    ['ary', WRAP_ARY_FLAG],
    ['bind', WRAP_BIND_FLAG],
    ['bindKey', WRAP_BIND_KEY_FLAG],
    ['curry', WRAP_CURRY_FLAG],
    ['curryRight', WRAP_CURRY_RIGHT_FLAG],
    ['flip', WRAP_FLIP_FLAG],
    ['partial', WRAP_PARTIAL_FLAG],
    ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],
    ['rearg', WRAP_REARG_FLAG]
  ];

  /** `Object#toString` result references. */
  var argsTag = '[object Arguments]',
      arrayTag = '[object Array]',
      asyncTag = '[object AsyncFunction]',
      boolTag = '[object Boolean]',
      dateTag = '[object Date]',
      domExcTag = '[object DOMException]',
      errorTag = '[object Error]',
      funcTag = '[object Function]',
      genTag = '[object GeneratorFunction]',
      mapTag = '[object Map]',
      numberTag = '[object Number]',
      nullTag = '[object Null]',
      objectTag = '[object Object]',
      promiseTag = '[object Promise]',
      proxyTag = '[object Proxy]',
      regexpTag = '[object RegExp]',
      setTag = '[object Set]',
      stringTag = '[object String]',
      symbolTag = '[object Symbol]',
      undefinedTag = '[object Undefined]',
      weakMapTag = '[object WeakMap]',
      weakSetTag = '[object WeakSet]';

  var arrayBufferTag = '[object ArrayBuffer]',
      dataViewTag = '[object DataView]',
      float32Tag = '[object Float32Array]',
      float64Tag = '[object Float64Array]',
      int8Tag = '[object Int8Array]',
      int16Tag = '[object Int16Array]',
      int32Tag = '[object Int32Array]',
      uint8Tag = '[object Uint8Array]',
      uint8ClampedTag = '[object Uint8ClampedArray]',
      uint16Tag = '[object Uint16Array]',
      uint32Tag = '[object Uint32Array]';

  /** Used to match empty string literals in compiled template source. */
  var reEmptyStringLeading = /\b__p \+= '';/g,
      reEmptyStringMiddle = /\b(__p \+=) '' \+/g,
      reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g;

  /** Used to match HTML entities and HTML characters. */
  var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,
      reUnescapedHtml = /[&<>"']/g,
      reHasEscapedHtml = RegExp(reEscapedHtml.source),
      reHasUnescapedHtml = RegExp(reUnescapedHtml.source);

  /** Used to match template delimiters. */
  var reEscape = /<%-([\s\S]+?)%>/g,
      reEvaluate = /<%([\s\S]+?)%>/g,
      reInterpolate = /<%=([\s\S]+?)%>/g;

  /** Used to match property names within property paths. */
  var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
      reIsPlainProp = /^\w*$/,
      rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;

  /**
   * Used to match `RegExp`
   * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
   */
  var reRegExpChar = /[\\^$.*+?()[\]{}|]/g,
      reHasRegExpChar = RegExp(reRegExpChar.source);

  /** Used to match leading and trailing whitespace. */
  var reTrim = /^\s+|\s+$/g,
      reTrimStart = /^\s+/,
      reTrimEnd = /\s+$/;

  /** Used to match wrap detail comments. */
  var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,
      reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/,
      reSplitDetails = /,? & /;

  /** Used to match words composed of alphanumeric characters. */
  var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;

  /** Used to match backslashes in property paths. */
  var reEscapeChar = /\\(\\)?/g;

  /**
   * Used to match
   * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).
   */
  var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;

  /** Used to match `RegExp` flags from their coerced string values. */
  var reFlags = /\w*$/;

  /** Used to detect bad signed hexadecimal string values. */
  var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;

  /** Used to detect binary string values. */
  var reIsBinary = /^0b[01]+$/i;

  /** Used to detect host constructors (Safari). */
  var reIsHostCtor = /^\[object .+?Constructor\]$/;

  /** Used to detect octal string values. */
  var reIsOctal = /^0o[0-7]+$/i;

  /** Used to detect unsigned integer values. */
  var reIsUint = /^(?:0|[1-9]\d*)$/;

  /** Used to match Latin Unicode letters (excluding mathematical operators). */
  var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;

  /** Used to ensure capturing order of template delimiters. */
  var reNoMatch = /($^)/;

  /** Used to match unescaped characters in compiled string literals. */
  var reUnescapedString = /['\n\r\u2028\u2029\\]/g;

  /** Used to compose unicode character classes. */
  var rsAstralRange = '\\ud800-\\udfff',
      rsComboMarksRange = '\\u0300-\\u036f',
      reComboHalfMarksRange = '\\ufe20-\\ufe2f',
      rsComboSymbolsRange = '\\u20d0-\\u20ff',
      rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
      rsDingbatRange = '\\u2700-\\u27bf',
      rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
      rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
      rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
      rsPunctuationRange = '\\u2000-\\u206f',
      rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
      rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
      rsVarRange = '\\ufe0e\\ufe0f',
      rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;

  /** Used to compose unicode capture groups. */
  var rsApos = "['\u2019]",
      rsAstral = '[' + rsAstralRange + ']',
      rsBreak = '[' + rsBreakRange + ']',
      rsCombo = '[' + rsComboRange + ']',
      rsDigits = '\\d+',
      rsDingbat = '[' + rsDingbatRange + ']',
      rsLower = '[' + rsLowerRange + ']',
      rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
      rsFitz = '\\ud83c[\\udffb-\\udfff]',
      rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
      rsNonAstral = '[^' + rsAstralRange + ']',
      rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
      rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
      rsUpper = '[' + rsUpperRange + ']',
      rsZWJ = '\\u200d';

  /** Used to compose unicode regexes. */
  var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
      rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
      rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',
      rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',
      reOptMod = rsModifier + '?',
      rsOptVar = '[' + rsVarRange + ']?',
      rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
      rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
      rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
      rsSeq = rsOptVar + reOptMod + rsOptJoin,
      rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,
      rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';

  /** Used to match apostrophes. */
  var reApos = RegExp(rsApos, 'g');

  /**
   * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
   * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
   */
  var reComboMark = RegExp(rsCombo, 'g');

  /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
  var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');

  /** Used to match complex or compound words. */
  var reUnicodeWord = RegExp([
    rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
    rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',
    rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
    rsUpper + '+' + rsOptContrUpper,
    rsOrdUpper,
    rsOrdLower,
    rsDigits,
    rsEmoji
  ].join('|'), 'g');

  /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
  var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange  + rsComboRange + rsVarRange + ']');

  /** Used to detect strings that need a more robust regexp to match words. */
  var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;

  /** Used to assign default `context` object properties. */
  var contextProps = [
    'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',
    'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',
    'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',
    'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',
    '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'
  ];

  /** Used to make template sourceURLs easier to identify. */
  var templateCounter = -1;

  /** Used to identify `toStringTag` values of typed arrays. */
  var typedArrayTags = {};
  typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
  typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
  typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
  typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
  typedArrayTags[uint32Tag] = true;
  typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
  typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
  typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
  typedArrayTags[errorTag] = typedArrayTags[funcTag] =
  typedArrayTags[mapTag] = typedArrayTags[numberTag] =
  typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
  typedArrayTags[setTag] = typedArrayTags[stringTag] =
  typedArrayTags[weakMapTag] = false;

  /** Used to identify `toStringTag` values supported by `_.clone`. */
  var cloneableTags = {};
  cloneableTags[argsTag] = cloneableTags[arrayTag] =
  cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
  cloneableTags[boolTag] = cloneableTags[dateTag] =
  cloneableTags[float32Tag] = cloneableTags[float64Tag] =
  cloneableTags[int8Tag] = cloneableTags[int16Tag] =
  cloneableTags[int32Tag] = cloneableTags[mapTag] =
  cloneableTags[numberTag] = cloneableTags[objectTag] =
  cloneableTags[regexpTag] = cloneableTags[setTag] =
  cloneableTags[stringTag] = cloneableTags[symbolTag] =
  cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
  cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
  cloneableTags[errorTag] = cloneableTags[funcTag] =
  cloneableTags[weakMapTag] = false;

  /** Used to map Latin Unicode letters to basic Latin letters. */
  var deburredLetters = {
    // Latin-1 Supplement block.
    '\xc0': 'A',  '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
    '\xe0': 'a',  '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
    '\xc7': 'C',  '\xe7': 'c',
    '\xd0': 'D',  '\xf0': 'd',
    '\xc8': 'E',  '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
    '\xe8': 'e',  '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
    '\xcc': 'I',  '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
    '\xec': 'i',  '\xed': 'i', '\xee': 'i', '\xef': 'i',
    '\xd1': 'N',  '\xf1': 'n',
    '\xd2': 'O',  '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
    '\xf2': 'o',  '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
    '\xd9': 'U',  '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
    '\xf9': 'u',  '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
    '\xdd': 'Y',  '\xfd': 'y', '\xff': 'y',
    '\xc6': 'Ae', '\xe6': 'ae',
    '\xde': 'Th', '\xfe': 'th',
    '\xdf': 'ss',
    // Latin Extended-A block.
    '\u0100': 'A',  '\u0102': 'A', '\u0104': 'A',
    '\u0101': 'a',  '\u0103': 'a', '\u0105': 'a',
    '\u0106': 'C',  '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
    '\u0107': 'c',  '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
    '\u010e': 'D',  '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
    '\u0112': 'E',  '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
    '\u0113': 'e',  '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
    '\u011c': 'G',  '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
    '\u011d': 'g',  '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
    '\u0124': 'H',  '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
    '\u0128': 'I',  '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
    '\u0129': 'i',  '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
    '\u0134': 'J',  '\u0135': 'j',
    '\u0136': 'K',  '\u0137': 'k', '\u0138': 'k',
    '\u0139': 'L',  '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
    '\u013a': 'l',  '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
    '\u0143': 'N',  '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
    '\u0144': 'n',  '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
    '\u014c': 'O',  '\u014e': 'O', '\u0150': 'O',
    '\u014d': 'o',  '\u014f': 'o', '\u0151': 'o',
    '\u0154': 'R',  '\u0156': 'R', '\u0158': 'R',
    '\u0155': 'r',  '\u0157': 'r', '\u0159': 'r',
    '\u015a': 'S',  '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
    '\u015b': 's',  '\u015d': 's', '\u015f': 's', '\u0161': 's',
    '\u0162': 'T',  '\u0164': 'T', '\u0166': 'T',
    '\u0163': 't',  '\u0165': 't', '\u0167': 't',
    '\u0168': 'U',  '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
    '\u0169': 'u',  '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
    '\u0174': 'W',  '\u0175': 'w',
    '\u0176': 'Y',  '\u0177': 'y', '\u0178': 'Y',
    '\u0179': 'Z',  '\u017b': 'Z', '\u017d': 'Z',
    '\u017a': 'z',  '\u017c': 'z', '\u017e': 'z',
    '\u0132': 'IJ', '\u0133': 'ij',
    '\u0152': 'Oe', '\u0153': 'oe',
    '\u0149': "'n", '\u017f': 's'
  };

  /** Used to map characters to HTML entities. */
  var htmlEscapes = {
    '&': '&amp;',
    '<': '&lt;',
    '>': '&gt;',
    '"': '&quot;',
    "'": '&#39;'
  };

  /** Used to map HTML entities to characters. */
  var htmlUnescapes = {
    '&amp;': '&',
    '&lt;': '<',
    '&gt;': '>',
    '&quot;': '"',
    '&#39;': "'"
  };

  /** Used to escape characters for inclusion in compiled string literals. */
  var stringEscapes = {
    '\\': '\\',
    "'": "'",
    '\n': 'n',
    '\r': 'r',
    '\u2028': 'u2028',
    '\u2029': 'u2029'
  };

  /** Built-in method references without a dependency on `root`. */
  var freeParseFloat = parseFloat,
      freeParseInt = parseInt;

  /** Detect free variable `global` from Node.js. */
  var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;

  /** Detect free variable `self`. */
  var freeSelf = typeof self == 'object' && self && self.Object === Object && self;

  /** Used as a reference to the global object. */
  var root = freeGlobal || freeSelf || Function('return this')();

  /** Detect free variable `exports`. */
  var freeExports = true && exports && !exports.nodeType && exports;

  /** Detect free variable `module`. */
  var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;

  /** Detect the popular CommonJS extension `module.exports`. */
  var moduleExports = freeModule && freeModule.exports === freeExports;

  /** Detect free variable `process` from Node.js. */
  var freeProcess = moduleExports && freeGlobal.process;

  /** Used to access faster Node.js helpers. */
  var nodeUtil = (function() {
    try {
      // Use `util.types` for Node.js 10+.
      var types = freeModule && freeModule.require && freeModule.require('util').types;

      if (types) {
        return types;
      }

      // Legacy `process.binding('util')` for Node.js < 10.
      return freeProcess && freeProcess.binding && freeProcess.binding('util');
    } catch (e) {}
  }());

  /* Node.js helper references. */
  var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer,
      nodeIsDate = nodeUtil && nodeUtil.isDate,
      nodeIsMap = nodeUtil && nodeUtil.isMap,
      nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,
      nodeIsSet = nodeUtil && nodeUtil.isSet,
      nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;

  /*--------------------------------------------------------------------------*/

  /**
   * A faster alternative to `Function#apply`, this function invokes `func`
   * with the `this` binding of `thisArg` and the arguments of `args`.
   *
   * @private
   * @param {Function} func The function to invoke.
   * @param {*} thisArg The `this` binding of `func`.
   * @param {Array} args The arguments to invoke `func` with.
   * @returns {*} Returns the result of `func`.
   */
  function apply(func, thisArg, args) {
    switch (args.length) {
      case 0: return func.call(thisArg);
      case 1: return func.call(thisArg, args[0]);
      case 2: return func.call(thisArg, args[0], args[1]);
      case 3: return func.call(thisArg, args[0], args[1], args[2]);
    }
    return func.apply(thisArg, args);
  }

  /**
   * A specialized version of `baseAggregator` for arrays.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} setter The function to set `accumulator` values.
   * @param {Function} iteratee The iteratee to transform keys.
   * @param {Object} accumulator The initial aggregated object.
   * @returns {Function} Returns `accumulator`.
   */
  function arrayAggregator(array, setter, iteratee, accumulator) {
    var index = -1,
        length = array == null ? 0 : array.length;

    while (++index < length) {
      var value = array[index];
      setter(accumulator, value, iteratee(value), array);
    }
    return accumulator;
  }

  /**
   * A specialized version of `_.forEach` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {Array} Returns `array`.
   */
  function arrayEach(array, iteratee) {
    var index = -1,
        length = array == null ? 0 : array.length;

    while (++index < length) {
      if (iteratee(array[index], index, array) === false) {
        break;
      }
    }
    return array;
  }

  /**
   * A specialized version of `_.forEachRight` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {Array} Returns `array`.
   */
  function arrayEachRight(array, iteratee) {
    var length = array == null ? 0 : array.length;

    while (length--) {
      if (iteratee(array[length], length, array) === false) {
        break;
      }
    }
    return array;
  }

  /**
   * A specialized version of `_.every` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} predicate The function invoked per iteration.
   * @returns {boolean} Returns `true` if all elements pass the predicate check,
   *  else `false`.
   */
  function arrayEvery(array, predicate) {
    var index = -1,
        length = array == null ? 0 : array.length;

    while (++index < length) {
      if (!predicate(array[index], index, array)) {
        return false;
      }
    }
    return true;
  }

  /**
   * A specialized version of `_.filter` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} predicate The function invoked per iteration.
   * @returns {Array} Returns the new filtered array.
   */
  function arrayFilter(array, predicate) {
    var index = -1,
        length = array == null ? 0 : array.length,
        resIndex = 0,
        result = [];

    while (++index < length) {
      var value = array[index];
      if (predicate(value, index, array)) {
        result[resIndex++] = value;
      }
    }
    return result;
  }

  /**
   * A specialized version of `_.includes` for arrays without support for
   * specifying an index to search from.
   *
   * @private
   * @param {Array} [array] The array to inspect.
   * @param {*} target The value to search for.
   * @returns {boolean} Returns `true` if `target` is found, else `false`.
   */
  function arrayIncludes(array, value) {
    var length = array == null ? 0 : array.length;
    return !!length && baseIndexOf(array, value, 0) > -1;
  }

  /**
   * This function is like `arrayIncludes` except that it accepts a comparator.
   *
   * @private
   * @param {Array} [array] The array to inspect.
   * @param {*} target The value to search for.
   * @param {Function} comparator The comparator invoked per element.
   * @returns {boolean} Returns `true` if `target` is found, else `false`.
   */
  function arrayIncludesWith(array, value, comparator) {
    var index = -1,
        length = array == null ? 0 : array.length;

    while (++index < length) {
      if (comparator(value, array[index])) {
        return true;
      }
    }
    return false;
  }

  /**
   * A specialized version of `_.map` for arrays without support for iteratee
   * shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {Array} Returns the new mapped array.
   */
  function arrayMap(array, iteratee) {
    var index = -1,
        length = array == null ? 0 : array.length,
        result = Array(length);

    while (++index < length) {
      result[index] = iteratee(array[index], index, array);
    }
    return result;
  }

  /**
   * Appends the elements of `values` to `array`.
   *
   * @private
   * @param {Array} array The array to modify.
   * @param {Array} values The values to append.
   * @returns {Array} Returns `array`.
   */
  function arrayPush(array, values) {
    var index = -1,
        length = values.length,
        offset = array.length;

    while (++index < length) {
      array[offset + index] = values[index];
    }
    return array;
  }

  /**
   * A specialized version of `_.reduce` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @param {*} [accumulator] The initial value.
   * @param {boolean} [initAccum] Specify using the first element of `array` as
   *  the initial value.
   * @returns {*} Returns the accumulated value.
   */
  function arrayReduce(array, iteratee, accumulator, initAccum) {
    var index = -1,
        length = array == null ? 0 : array.length;

    if (initAccum && length) {
      accumulator = array[++index];
    }
    while (++index < length) {
      accumulator = iteratee(accumulator, array[index], index, array);
    }
    return accumulator;
  }

  /**
   * A specialized version of `_.reduceRight` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @param {*} [accumulator] The initial value.
   * @param {boolean} [initAccum] Specify using the last element of `array` as
   *  the initial value.
   * @returns {*} Returns the accumulated value.
   */
  function arrayReduceRight(array, iteratee, accumulator, initAccum) {
    var length = array == null ? 0 : array.length;
    if (initAccum && length) {
      accumulator = array[--length];
    }
    while (length--) {
      accumulator = iteratee(accumulator, array[length], length, array);
    }
    return accumulator;
  }

  /**
   * A specialized version of `_.some` for arrays without support for iteratee
   * shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} predicate The function invoked per iteration.
   * @returns {boolean} Returns `true` if any element passes the predicate check,
   *  else `false`.
   */
  function arraySome(array, predicate) {
    var index = -1,
        length = array == null ? 0 : array.length;

    while (++index < length) {
      if (predicate(array[index], index, array)) {
        return true;
      }
    }
    return false;
  }

  /**
   * Gets the size of an ASCII `string`.
   *
   * @private
   * @param {string} string The string inspect.
   * @returns {number} Returns the string size.
   */
  var asciiSize = baseProperty('length');

  /**
   * Converts an ASCII `string` to an array.
   *
   * @private
   * @param {string} string The string to convert.
   * @returns {Array} Returns the converted array.
   */
  function asciiToArray(string) {
    return string.split('');
  }

  /**
   * Splits an ASCII `string` into an array of its words.
   *
   * @private
   * @param {string} The string to inspect.
   * @returns {Array} Returns the words of `string`.
   */
  function asciiWords(string) {
    return string.match(reAsciiWord) || [];
  }

  /**
   * The base implementation of methods like `_.findKey` and `_.findLastKey`,
   * without support for iteratee shorthands, which iterates over `collection`
   * using `eachFunc`.
   *
   * @private
   * @param {Array|Object} collection The collection to inspect.
   * @param {Function} predicate The function invoked per iteration.
   * @param {Function} eachFunc The function to iterate over `collection`.
   * @returns {*} Returns the found element or its key, else `undefined`.
   */
  function baseFindKey(collection, predicate, eachFunc) {
    var result;
    eachFunc(collection, function(value, key, collection) {
      if (predicate(value, key, collection)) {
        result = key;
        return false;
      }
    });
    return result;
  }

  /**
   * The base implementation of `_.findIndex` and `_.findLastIndex` without
   * support for iteratee shorthands.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {Function} predicate The function invoked per iteration.
   * @param {number} fromIndex The index to search from.
   * @param {boolean} [fromRight] Specify iterating from right to left.
   * @returns {number} Returns the index of the matched value, else `-1`.
   */
  function baseFindIndex(array, predicate, fromIndex, fromRight) {
    var length = array.length,
        index = fromIndex + (fromRight ? 1 : -1);

    while ((fromRight ? index-- : ++index < length)) {
      if (predicate(array[index], index, array)) {
        return index;
      }
    }
    return -1;
  }

  /**
   * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {*} value The value to search for.
   * @param {number} fromIndex The index to search from.
   * @returns {number} Returns the index of the matched value, else `-1`.
   */
  function baseIndexOf(array, value, fromIndex) {
    return value === value
      ? strictIndexOf(array, value, fromIndex)
      : baseFindIndex(array, baseIsNaN, fromIndex);
  }

  /**
   * This function is like `baseIndexOf` except that it accepts a comparator.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {*} value The value to search for.
   * @param {number} fromIndex The index to search from.
   * @param {Function} comparator The comparator invoked per element.
   * @returns {number} Returns the index of the matched value, else `-1`.
   */
  function baseIndexOfWith(array, value, fromIndex, comparator) {
    var index = fromIndex - 1,
        length = array.length;

    while (++index < length) {
      if (comparator(array[index], value)) {
        return index;
      }
    }
    return -1;
  }

  /**
   * The base implementation of `_.isNaN` without support for number objects.
   *
   * @private
   * @param {*} value The value to check.
   * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
   */
  function baseIsNaN(value) {
    return value !== value;
  }

  /**
   * The base implementation of `_.mean` and `_.meanBy` without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} array The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {number} Returns the mean.
   */
  function baseMean(array, iteratee) {
    var length = array == null ? 0 : array.length;
    return length ? (baseSum(array, iteratee) / length) : NAN;
  }

  /**
   * The base implementation of `_.property` without support for deep paths.
   *
   * @private
   * @param {string} key The key of the property to get.
   * @returns {Function} Returns the new accessor function.
   */
  function baseProperty(key) {
    return function(object) {
      return object == null ? undefined : object[key];
    };
  }

  /**
   * The base implementation of `_.propertyOf` without support for deep paths.
   *
   * @private
   * @param {Object} object The object to query.
   * @returns {Function} Returns the new accessor function.
   */
  function basePropertyOf(object) {
    return function(key) {
      return object == null ? undefined : object[key];
    };
  }

  /**
   * The base implementation of `_.reduce` and `_.reduceRight`, without support
   * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
   *
   * @private
   * @param {Array|Object} collection The collection to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @param {*} accumulator The initial value.
   * @param {boolean} initAccum Specify using the first or last element of
   *  `collection` as the initial value.
   * @param {Function} eachFunc The function to iterate over `collection`.
   * @returns {*} Returns the accumulated value.
   */
  function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
    eachFunc(collection, function(value, index, collection) {
      accumulator = initAccum
        ? (initAccum = false, value)
        : iteratee(accumulator, value, index, collection);
    });
    return accumulator;
  }

  /**
   * The base implementation of `_.sortBy` which uses `comparer` to define the
   * sort order of `array` and replaces criteria objects with their corresponding
   * values.
   *
   * @private
   * @param {Array} array The array to sort.
   * @param {Function} comparer The function to define sort order.
   * @returns {Array} Returns `array`.
   */
  function baseSortBy(array, comparer) {
    var length = array.length;

    array.sort(comparer);
    while (length--) {
      array[length] = array[length].value;
    }
    return array;
  }

  /**
   * The base implementation of `_.sum` and `_.sumBy` without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} array The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {number} Returns the sum.
   */
  function baseSum(array, iteratee) {
    var result,
        index = -1,
        length = array.length;

    while (++index < length) {
      var current = iteratee(array[index]);
      if (current !== undefined) {
        result = result === undefined ? current : (result + current);
      }
    }
    return result;
  }

  /**
   * The base implementation of `_.times` without support for iteratee shorthands
   * or max array length checks.
   *
   * @private
   * @param {number} n The number of times to invoke `iteratee`.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {Array} Returns the array of results.
   */
  function baseTimes(n, iteratee) {
    var index = -1,
        result = Array(n);

    while (++index < n) {
      result[index] = iteratee(index);
    }
    return result;
  }

  /**
   * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array
   * of key-value pairs for `object` corresponding to the property names of `props`.
   *
   * @private
   * @param {Object} object The object to query.
   * @param {Array} props The property names to get values for.
   * @returns {Object} Returns the key-value pairs.
   */
  function baseToPairs(object, props) {
    return arrayMap(props, function(key) {
      return [key, object[key]];
    });
  }

  /**
   * The base implementation of `_.unary` without support for storing metadata.
   *
   * @private
   * @param {Function} func The function to cap arguments for.
   * @returns {Function} Returns the new capped function.
   */
  function baseUnary(func) {
    return function(value) {
      return func(value);
    };
  }

  /**
   * The base implementation of `_.values` and `_.valuesIn` which creates an
   * array of `object` property values corresponding to the property names
   * of `props`.
   *
   * @private
   * @param {Object} object The object to query.
   * @param {Array} props The property names to get values for.
   * @returns {Object} Returns the array of property values.
   */
  function baseValues(object, props) {
    return arrayMap(props, function(key) {
      return object[key];
    });
  }

  /**
   * Checks if a `cache` value for `key` exists.
   *
   * @private
   * @param {Object} cache The cache to query.
   * @param {string} key The key of the entry to check.
   * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
   */
  function cacheHas(cache, key) {
    return cache.has(key);
  }

  /**
   * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol
   * that is not found in the character symbols.
   *
   * @private
   * @param {Array} strSymbols The string symbols to inspect.
   * @param {Array} chrSymbols The character symbols to find.
   * @returns {number} Returns the index of the first unmatched string symbol.
   */
  function charsStartIndex(strSymbols, chrSymbols) {
    var index = -1,
        length = strSymbols.length;

    while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
    return index;
  }

  /**
   * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol
   * that is not found in the character symbols.
   *
   * @private
   * @param {Array} strSymbols The string symbols to inspect.
   * @param {Array} chrSymbols The character symbols to find.
   * @returns {number} Returns the index of the last unmatched string symbol.
   */
  function charsEndIndex(strSymbols, chrSymbols) {
    var index = strSymbols.length;

    while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
    return index;
  }

  /**
   * Gets the number of `placeholder` occurrences in `array`.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {*} placeholder The placeholder to search for.
   * @returns {number} Returns the placeholder count.
   */
  function countHolders(array, placeholder) {
    var length = array.length,
        result = 0;

    while (length--) {
      if (array[length] === placeholder) {
        ++result;
      }
    }
    return result;
  }

  /**
   * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
   * letters to basic Latin letters.
   *
   * @private
   * @param {string} letter The matched letter to deburr.
   * @returns {string} Returns the deburred letter.
   */
  var deburrLetter = basePropertyOf(deburredLetters);

  /**
   * Used by `_.escape` to convert characters to HTML entities.
   *
   * @private
   * @param {string} chr The matched character to escape.
   * @returns {string} Returns the escaped character.
   */
  var escapeHtmlChar = basePropertyOf(htmlEscapes);

  /**
   * Used by `_.template` to escape characters for inclusion in compiled string literals.
   *
   * @private
   * @param {string} chr The matched character to escape.
   * @returns {string} Returns the escaped character.
   */
  function escapeStringChar(chr) {
    return '\\' + stringEscapes[chr];
  }

  /**
   * Gets the value at `key` of `object`.
   *
   * @private
   * @param {Object} [object] The object to query.
   * @param {string} key The key of the property to get.
   * @returns {*} Returns the property value.
   */
  function getValue(object, key) {
    return object == null ? undefined : object[key];
  }

  /**
   * Checks if `string` contains Unicode symbols.
   *
   * @private
   * @param {string} string The string to inspect.
   * @returns {boolean} Returns `true` if a symbol is found, else `false`.
   */
  function hasUnicode(string) {
    return reHasUnicode.test(string);
  }

  /**
   * Checks if `string` contains a word composed of Unicode symbols.
   *
   * @private
   * @param {string} string The string to inspect.
   * @returns {boolean} Returns `true` if a word is found, else `false`.
   */
  function hasUnicodeWord(string) {
    return reHasUnicodeWord.test(string);
  }

  /**
   * Converts `iterator` to an array.
   *
   * @private
   * @param {Object} iterator The iterator to convert.
   * @returns {Array} Returns the converted array.
   */
  function iteratorToArray(iterator) {
    var data,
        result = [];

    while (!(data = iterator.next()).done) {
      result.push(data.value);
    }
    return result;
  }

  /**
   * Converts `map` to its key-value pairs.
   *
   * @private
   * @param {Object} map The map to convert.
   * @returns {Array} Returns the key-value pairs.
   */
  function mapToArray(map) {
    var index = -1,
        result = Array(map.size);

    map.forEach(function(value, key) {
      result[++index] = [key, value];
    });
    return result;
  }

  /**
   * Creates a unary function that invokes `func` with its argument transformed.
   *
   * @private
   * @param {Function} func The function to wrap.
   * @param {Function} transform The argument transform.
   * @returns {Function} Returns the new function.
   */
  function overArg(func, transform) {
    return function(arg) {
      return func(transform(arg));
    };
  }

  /**
   * Replaces all `placeholder` elements in `array` with an internal placeholder
   * and returns an array of their indexes.
   *
   * @private
   * @param {Array} array The array to modify.
   * @param {*} placeholder The placeholder to replace.
   * @returns {Array} Returns the new array of placeholder indexes.
   */
  function replaceHolders(array, placeholder) {
    var index = -1,
        length = array.length,
        resIndex = 0,
        result = [];

    while (++index < length) {
      var value = array[index];
      if (value === placeholder || value === PLACEHOLDER) {
        array[index] = PLACEHOLDER;
        result[resIndex++] = index;
      }
    }
    return result;
  }

  /**
   * Converts `set` to an array of its values.
   *
   * @private
   * @param {Object} set The set to convert.
   * @returns {Array} Returns the values.
   */
  function setToArray(set) {
    var index = -1,
        result = Array(set.size);

    set.forEach(function(value) {
      result[++index] = value;
    });
    return result;
  }

  /**
   * Converts `set` to its value-value pairs.
   *
   * @private
   * @param {Object} set The set to convert.
   * @returns {Array} Returns the value-value pairs.
   */
  function setToPairs(set) {
    var index = -1,
        result = Array(set.size);

    set.forEach(function(value) {
      result[++index] = [value, value];
    });
    return result;
  }

  /**
   * A specialized version of `_.indexOf` which performs strict equality
   * comparisons of values, i.e. `===`.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {*} value The value to search for.
   * @param {number} fromIndex The index to search from.
   * @returns {number} Returns the index of the matched value, else `-1`.
   */
  function strictIndexOf(array, value, fromIndex) {
    var index = fromIndex - 1,
        length = array.length;

    while (++index < length) {
      if (array[index] === value) {
        return index;
      }
    }
    return -1;
  }

  /**
   * A specialized version of `_.lastIndexOf` which performs strict equality
   * comparisons of values, i.e. `===`.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {*} value The value to search for.
   * @param {number} fromIndex The index to search from.
   * @returns {number} Returns the index of the matched value, else `-1`.
   */
  function strictLastIndexOf(array, value, fromIndex) {
    var index = fromIndex + 1;
    while (index--) {
      if (array[index] === value) {
        return index;
      }
    }
    return index;
  }

  /**
   * Gets the number of symbols in `string`.
   *
   * @private
   * @param {string} string The string to inspect.
   * @returns {number} Returns the string size.
   */
  function stringSize(string) {
    return hasUnicode(string)
      ? unicodeSize(string)
      : asciiSize(string);
  }

  /**
   * Converts `string` to an array.
   *
   * @private
   * @param {string} string The string to convert.
   * @returns {Array} Returns the converted array.
   */
  function stringToArray(string) {
    return hasUnicode(string)
      ? unicodeToArray(string)
      : asciiToArray(string);
  }

  /**
   * Used by `_.unescape` to convert HTML entities to characters.
   *
   * @private
   * @param {string} chr The matched character to unescape.
   * @returns {string} Returns the unescaped character.
   */
  var unescapeHtmlChar = basePropertyOf(htmlUnescapes);

  /**
   * Gets the size of a Unicode `string`.
   *
   * @private
   * @param {string} string The string inspect.
   * @returns {number} Returns the string size.
   */
  function unicodeSize(string) {
    var result = reUnicode.lastIndex = 0;
    while (reUnicode.test(string)) {
      ++result;
    }
    return result;
  }

  /**
   * Converts a Unicode `string` to an array.
   *
   * @private
   * @param {string} string The string to convert.
   * @returns {Array} Returns the converted array.
   */
  function unicodeToArray(string) {
    return string.match(reUnicode) || [];
  }

  /**
   * Splits a Unicode `string` into an array of its words.
   *
   * @private
   * @param {string} The string to inspect.
   * @returns {Array} Returns the words of `string`.
   */
  function unicodeWords(string) {
    return string.match(reUnicodeWord) || [];
  }

  /*--------------------------------------------------------------------------*/

  /**
   * Create a new pristine `lodash` function using the `context` object.
   *
   * @static
   * @memberOf _
   * @since 1.1.0
   * @category Util
   * @param {Object} [context=root] The context object.
   * @returns {Function} Returns a new `lodash` function.
   * @example
   *
   * _.mixin({ 'foo': _.constant('foo') });
   *
   * var lodash = _.runInContext();
   * lodash.mixin({ 'bar': lodash.constant('bar') });
   *
   * _.isFunction(_.foo);
   * // => true
   * _.isFunction(_.bar);
   * // => false
   *
   * lodash.isFunction(lodash.foo);
   * // => false
   * lodash.isFunction(lodash.bar);
   * // => true
   *
   * // Create a suped-up `defer` in Node.js.
   * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;
   */
  var runInContext = (function runInContext(context) {
    context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));

    /** Built-in constructor references. */
    var Array = context.Array,
        Date = context.Date,
        Error = context.Error,
        Function = context.Function,
        Math = context.Math,
        Object = context.Object,
        RegExp = context.RegExp,
        String = context.String,
        TypeError = context.TypeError;

    /** Used for built-in method references. */
    var arrayProto = Array.prototype,
        funcProto = Function.prototype,
        objectProto = Object.prototype;

    /** Used to detect overreaching core-js shims. */
    var coreJsData = context['__core-js_shared__'];

    /** Used to resolve the decompiled source of functions. */
    var funcToString = funcProto.toString;

    /** Used to check objects for own properties. */
    var hasOwnProperty = objectProto.hasOwnProperty;

    /** Used to generate unique IDs. */
    var idCounter = 0;

    /** Used to detect methods masquerading as native. */
    var maskSrcKey = (function() {
      var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
      return uid ? ('Symbol(src)_1.' + uid) : '';
    }());

    /**
     * Used to resolve the
     * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
     * of values.
     */
    var nativeObjectToString = objectProto.toString;

    /** Used to infer the `Object` constructor. */
    var objectCtorString = funcToString.call(Object);

    /** Used to restore the original `_` reference in `_.noConflict`. */
    var oldDash = root._;

    /** Used to detect if a method is native. */
    var reIsNative = RegExp('^' +
      funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
      .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
    );

    /** Built-in value references. */
    var Buffer = moduleExports ? context.Buffer : undefined,
        Symbol = context.Symbol,
        Uint8Array = context.Uint8Array,
        allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,
        getPrototype = overArg(Object.getPrototypeOf, Object),
        objectCreate = Object.create,
        propertyIsEnumerable = objectProto.propertyIsEnumerable,
        splice = arrayProto.splice,
        spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined,
        symIterator = Symbol ? Symbol.iterator : undefined,
        symToStringTag = Symbol ? Symbol.toStringTag : undefined;

    var defineProperty = (function() {
      try {
        var func = getNative(Object, 'defineProperty');
        func({}, '', {});
        return func;
      } catch (e) {}
    }());

    /** Mocked built-ins. */
    var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,
        ctxNow = Date && Date.now !== root.Date.now && Date.now,
        ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;

    /* Built-in method references for those with the same name as other `lodash` methods. */
    var nativeCeil = Math.ceil,
        nativeFloor = Math.floor,
        nativeGetSymbols = Object.getOwnPropertySymbols,
        nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
        nativeIsFinite = context.isFinite,
        nativeJoin = arrayProto.join,
        nativeKeys = overArg(Object.keys, Object),
        nativeMax = Math.max,
        nativeMin = Math.min,
        nativeNow = Date.now,
        nativeParseInt = context.parseInt,
        nativeRandom = Math.random,
        nativeReverse = arrayProto.reverse;

    /* Built-in method references that are verified to be native. */
    var DataView = getNative(context, 'DataView'),
        Map = getNative(context, 'Map'),
        Promise = getNative(context, 'Promise'),
        Set = getNative(context, 'Set'),
        WeakMap = getNative(context, 'WeakMap'),
        nativeCreate = getNative(Object, 'create');

    /** Used to store function metadata. */
    var metaMap = WeakMap && new WeakMap;

    /** Used to lookup unminified function names. */
    var realNames = {};

    /** Used to detect maps, sets, and weakmaps. */
    var dataViewCtorString = toSource(DataView),
        mapCtorString = toSource(Map),
        promiseCtorString = toSource(Promise),
        setCtorString = toSource(Set),
        weakMapCtorString = toSource(WeakMap);

    /** Used to convert symbols to primitives and strings. */
    var symbolProto = Symbol ? Symbol.prototype : undefined,
        symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,
        symbolToString = symbolProto ? symbolProto.toString : undefined;

    /*------------------------------------------------------------------------*/

    /**
     * Creates a `lodash` object which wraps `value` to enable implicit method
     * chain sequences. Methods that operate on and return arrays, collections,
     * and functions can be chained together. Methods that retrieve a single value
     * or may return a primitive value will automatically end the chain sequence
     * and return the unwrapped value. Otherwise, the value must be unwrapped
     * with `_#value`.
     *
     * Explicit chain sequences, which must be unwrapped with `_#value`, may be
     * enabled using `_.chain`.
     *
     * The execution of chained methods is lazy, that is, it's deferred until
     * `_#value` is implicitly or explicitly called.
     *
     * Lazy evaluation allows several methods to support shortcut fusion.
     * Shortcut fusion is an optimization to merge iteratee calls; this avoids
     * the creation of intermediate arrays and can greatly reduce the number of
     * iteratee executions. Sections of a chain sequence qualify for shortcut
     * fusion if the section is applied to an array and iteratees accept only
     * one argument. The heuristic for whether a section qualifies for shortcut
     * fusion is subject to change.
     *
     * Chaining is supported in custom builds as long as the `_#value` method is
     * directly or indirectly included in the build.
     *
     * In addition to lodash methods, wrappers have `Array` and `String` methods.
     *
     * The wrapper `Array` methods are:
     * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`
     *
     * The wrapper `String` methods are:
     * `replace` and `split`
     *
     * The wrapper methods that support shortcut fusion are:
     * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,
     * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,
     * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`
     *
     * The chainable wrapper methods are:
     * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,
     * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,
     * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
     * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,
     * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,
     * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,
     * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,
     * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,
     * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,
     * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,
     * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
     * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,
     * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,
     * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,
     * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,
     * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,
     * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,
     * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,
     * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,
     * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,
     * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,
     * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,
     * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,
     * `zipObject`, `zipObjectDeep`, and `zipWith`
     *
     * The wrapper methods that are **not** chainable by default are:
     * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
     * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,
     * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,
     * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,
     * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,
     * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,
     * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,
     * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,
     * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,
     * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,
     * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,
     * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,
     * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,
     * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,
     * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,
     * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,
     * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
     * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,
     * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,
     * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,
     * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,
     * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
     * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,
     * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,
     * `upperFirst`, `value`, and `words`
     *
     * @name _
     * @constructor
     * @category Seq
     * @param {*} value The value to wrap in a `lodash` instance.
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * var wrapped = _([1, 2, 3]);
     *
     * // Returns an unwrapped value.
     * wrapped.reduce(_.add);
     * // => 6
     *
     * // Returns a wrapped value.
     * var squares = wrapped.map(square);
     *
     * _.isArray(squares);
     * // => false
     *
     * _.isArray(squares.value());
     * // => true
     */
    function lodash(value) {
      if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
        if (value instanceof LodashWrapper) {
          return value;
        }
        if (hasOwnProperty.call(value, '__wrapped__')) {
          return wrapperClone(value);
        }
      }
      return new LodashWrapper(value);
    }

    /**
     * The base implementation of `_.create` without support for assigning
     * properties to the created object.
     *
     * @private
     * @param {Object} proto The object to inherit from.
     * @returns {Object} Returns the new object.
     */
    var baseCreate = (function() {
      function object() {}
      return function(proto) {
        if (!isObject(proto)) {
          return {};
        }
        if (objectCreate) {
          return objectCreate(proto);
        }
        object.prototype = proto;
        var result = new object;
        object.prototype = undefined;
        return result;
      };
    }());

    /**
     * The function whose prototype chain sequence wrappers inherit from.
     *
     * @private
     */
    function baseLodash() {
      // No operation performed.
    }

    /**
     * The base constructor for creating `lodash` wrapper objects.
     *
     * @private
     * @param {*} value The value to wrap.
     * @param {boolean} [chainAll] Enable explicit method chain sequences.
     */
    function LodashWrapper(value, chainAll) {
      this.__wrapped__ = value;
      this.__actions__ = [];
      this.__chain__ = !!chainAll;
      this.__index__ = 0;
      this.__values__ = undefined;
    }

    /**
     * By default, the template delimiters used by lodash are like those in
     * embedded Ruby (ERB) as well as ES2015 template strings. Change the
     * following template settings to use alternative delimiters.
     *
     * @static
     * @memberOf _
     * @type {Object}
     */
    lodash.templateSettings = {

      /**
       * Used to detect `data` property values to be HTML-escaped.
       *
       * @memberOf _.templateSettings
       * @type {RegExp}
       */
      'escape': reEscape,

      /**
       * Used to detect code to be evaluated.
       *
       * @memberOf _.templateSettings
       * @type {RegExp}
       */
      'evaluate': reEvaluate,

      /**
       * Used to detect `data` property values to inject.
       *
       * @memberOf _.templateSettings
       * @type {RegExp}
       */
      'interpolate': reInterpolate,

      /**
       * Used to reference the data object in the template text.
       *
       * @memberOf _.templateSettings
       * @type {string}
       */
      'variable': '',

      /**
       * Used to import variables into the compiled template.
       *
       * @memberOf _.templateSettings
       * @type {Object}
       */
      'imports': {

        /**
         * A reference to the `lodash` function.
         *
         * @memberOf _.templateSettings.imports
         * @type {Function}
         */
        '_': lodash
      }
    };

    // Ensure wrappers are instances of `baseLodash`.
    lodash.prototype = baseLodash.prototype;
    lodash.prototype.constructor = lodash;

    LodashWrapper.prototype = baseCreate(baseLodash.prototype);
    LodashWrapper.prototype.constructor = LodashWrapper;

    /*------------------------------------------------------------------------*/

    /**
     * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
     *
     * @private
     * @constructor
     * @param {*} value The value to wrap.
     */
    function LazyWrapper(value) {
      this.__wrapped__ = value;
      this.__actions__ = [];
      this.__dir__ = 1;
      this.__filtered__ = false;
      this.__iteratees__ = [];
      this.__takeCount__ = MAX_ARRAY_LENGTH;
      this.__views__ = [];
    }

    /**
     * Creates a clone of the lazy wrapper object.
     *
     * @private
     * @name clone
     * @memberOf LazyWrapper
     * @returns {Object} Returns the cloned `LazyWrapper` object.
     */
    function lazyClone() {
      var result = new LazyWrapper(this.__wrapped__);
      result.__actions__ = copyArray(this.__actions__);
      result.__dir__ = this.__dir__;
      result.__filtered__ = this.__filtered__;
      result.__iteratees__ = copyArray(this.__iteratees__);
      result.__takeCount__ = this.__takeCount__;
      result.__views__ = copyArray(this.__views__);
      return result;
    }

    /**
     * Reverses the direction of lazy iteration.
     *
     * @private
     * @name reverse
     * @memberOf LazyWrapper
     * @returns {Object} Returns the new reversed `LazyWrapper` object.
     */
    function lazyReverse() {
      if (this.__filtered__) {
        var result = new LazyWrapper(this);
        result.__dir__ = -1;
        result.__filtered__ = true;
      } else {
        result = this.clone();
        result.__dir__ *= -1;
      }
      return result;
    }

    /**
     * Extracts the unwrapped value from its lazy wrapper.
     *
     * @private
     * @name value
     * @memberOf LazyWrapper
     * @returns {*} Returns the unwrapped value.
     */
    function lazyValue() {
      var array = this.__wrapped__.value(),
          dir = this.__dir__,
          isArr = isArray(array),
          isRight = dir < 0,
          arrLength = isArr ? array.length : 0,
          view = getView(0, arrLength, this.__views__),
          start = view.start,
          end = view.end,
          length = end - start,
          index = isRight ? end : (start - 1),
          iteratees = this.__iteratees__,
          iterLength = iteratees.length,
          resIndex = 0,
          takeCount = nativeMin(length, this.__takeCount__);

      if (!isArr || (!isRight && arrLength == length && takeCount == length)) {
        return baseWrapperValue(array, this.__actions__);
      }
      var result = [];

      outer:
      while (length-- && resIndex < takeCount) {
        index += dir;

        var iterIndex = -1,
            value = array[index];

        while (++iterIndex < iterLength) {
          var data = iteratees[iterIndex],
              iteratee = data.iteratee,
              type = data.type,
              computed = iteratee(value);

          if (type == LAZY_MAP_FLAG) {
            value = computed;
          } else if (!computed) {
            if (type == LAZY_FILTER_FLAG) {
              continue outer;
            } else {
              break outer;
            }
          }
        }
        result[resIndex++] = value;
      }
      return result;
    }

    // Ensure `LazyWrapper` is an instance of `baseLodash`.
    LazyWrapper.prototype = baseCreate(baseLodash.prototype);
    LazyWrapper.prototype.constructor = LazyWrapper;

    /*------------------------------------------------------------------------*/

    /**
     * Creates a hash object.
     *
     * @private
     * @constructor
     * @param {Array} [entries] The key-value pairs to cache.
     */
    function Hash(entries) {
      var index = -1,
          length = entries == null ? 0 : entries.length;

      this.clear();
      while (++index < length) {
        var entry = entries[index];
        this.set(entry[0], entry[1]);
      }
    }

    /**
     * Removes all key-value entries from the hash.
     *
     * @private
     * @name clear
     * @memberOf Hash
     */
    function hashClear() {
      this.__data__ = nativeCreate ? nativeCreate(null) : {};
      this.size = 0;
    }

    /**
     * Removes `key` and its value from the hash.
     *
     * @private
     * @name delete
     * @memberOf Hash
     * @param {Object} hash The hash to modify.
     * @param {string} key The key of the value to remove.
     * @returns {boolean} Returns `true` if the entry was removed, else `false`.
     */
    function hashDelete(key) {
      var result = this.has(key) && delete this.__data__[key];
      this.size -= result ? 1 : 0;
      return result;
    }

    /**
     * Gets the hash value for `key`.
     *
     * @private
     * @name get
     * @memberOf Hash
     * @param {string} key The key of the value to get.
     * @returns {*} Returns the entry value.
     */
    function hashGet(key) {
      var data = this.__data__;
      if (nativeCreate) {
        var result = data[key];
        return result === HASH_UNDEFINED ? undefined : result;
      }
      return hasOwnProperty.call(data, key) ? data[key] : undefined;
    }

    /**
     * Checks if a hash value for `key` exists.
     *
     * @private
     * @name has
     * @memberOf Hash
     * @param {string} key The key of the entry to check.
     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
     */
    function hashHas(key) {
      var data = this.__data__;
      return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
    }

    /**
     * Sets the hash `key` to `value`.
     *
     * @private
     * @name set
     * @memberOf Hash
     * @param {string} key The key of the value to set.
     * @param {*} value The value to set.
     * @returns {Object} Returns the hash instance.
     */
    function hashSet(key, value) {
      var data = this.__data__;
      this.size += this.has(key) ? 0 : 1;
      data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
      return this;
    }

    // Add methods to `Hash`.
    Hash.prototype.clear = hashClear;
    Hash.prototype['delete'] = hashDelete;
    Hash.prototype.get = hashGet;
    Hash.prototype.has = hashHas;
    Hash.prototype.set = hashSet;

    /*------------------------------------------------------------------------*/

    /**
     * Creates an list cache object.
     *
     * @private
     * @constructor
     * @param {Array} [entries] The key-value pairs to cache.
     */
    function ListCache(entries) {
      var index = -1,
          length = entries == null ? 0 : entries.length;

      this.clear();
      while (++index < length) {
        var entry = entries[index];
        this.set(entry[0], entry[1]);
      }
    }

    /**
     * Removes all key-value entries from the list cache.
     *
     * @private
     * @name clear
     * @memberOf ListCache
     */
    function listCacheClear() {
      this.__data__ = [];
      this.size = 0;
    }

    /**
     * Removes `key` and its value from the list cache.
     *
     * @private
     * @name delete
     * @memberOf ListCache
     * @param {string} key The key of the value to remove.
     * @returns {boolean} Returns `true` if the entry was removed, else `false`.
     */
    function listCacheDelete(key) {
      var data = this.__data__,
          index = assocIndexOf(data, key);

      if (index < 0) {
        return false;
      }
      var lastIndex = data.length - 1;
      if (index == lastIndex) {
        data.pop();
      } else {
        splice.call(data, index, 1);
      }
      --this.size;
      return true;
    }

    /**
     * Gets the list cache value for `key`.
     *
     * @private
     * @name get
     * @memberOf ListCache
     * @param {string} key The key of the value to get.
     * @returns {*} Returns the entry value.
     */
    function listCacheGet(key) {
      var data = this.__data__,
          index = assocIndexOf(data, key);

      return index < 0 ? undefined : data[index][1];
    }

    /**
     * Checks if a list cache value for `key` exists.
     *
     * @private
     * @name has
     * @memberOf ListCache
     * @param {string} key The key of the entry to check.
     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
     */
    function listCacheHas(key) {
      return assocIndexOf(this.__data__, key) > -1;
    }

    /**
     * Sets the list cache `key` to `value`.
     *
     * @private
     * @name set
     * @memberOf ListCache
     * @param {string} key The key of the value to set.
     * @param {*} value The value to set.
     * @returns {Object} Returns the list cache instance.
     */
    function listCacheSet(key, value) {
      var data = this.__data__,
          index = assocIndexOf(data, key);

      if (index < 0) {
        ++this.size;
        data.push([key, value]);
      } else {
        data[index][1] = value;
      }
      return this;
    }

    // Add methods to `ListCache`.
    ListCache.prototype.clear = listCacheClear;
    ListCache.prototype['delete'] = listCacheDelete;
    ListCache.prototype.get = listCacheGet;
    ListCache.prototype.has = listCacheHas;
    ListCache.prototype.set = listCacheSet;

    /*------------------------------------------------------------------------*/

    /**
     * Creates a map cache object to store key-value pairs.
     *
     * @private
     * @constructor
     * @param {Array} [entries] The key-value pairs to cache.
     */
    function MapCache(entries) {
      var index = -1,
          length = entries == null ? 0 : entries.length;

      this.clear();
      while (++index < length) {
        var entry = entries[index];
        this.set(entry[0], entry[1]);
      }
    }

    /**
     * Removes all key-value entries from the map.
     *
     * @private
     * @name clear
     * @memberOf MapCache
     */
    function mapCacheClear() {
      this.size = 0;
      this.__data__ = {
        'hash': new Hash,
        'map': new (Map || ListCache),
        'string': new Hash
      };
    }

    /**
     * Removes `key` and its value from the map.
     *
     * @private
     * @name delete
     * @memberOf MapCache
     * @param {string} key The key of the value to remove.
     * @returns {boolean} Returns `true` if the entry was removed, else `false`.
     */
    function mapCacheDelete(key) {
      var result = getMapData(this, key)['delete'](key);
      this.size -= result ? 1 : 0;
      return result;
    }

    /**
     * Gets the map value for `key`.
     *
     * @private
     * @name get
     * @memberOf MapCache
     * @param {string} key The key of the value to get.
     * @returns {*} Returns the entry value.
     */
    function mapCacheGet(key) {
      return getMapData(this, key).get(key);
    }

    /**
     * Checks if a map value for `key` exists.
     *
     * @private
     * @name has
     * @memberOf MapCache
     * @param {string} key The key of the entry to check.
     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
     */
    function mapCacheHas(key) {
      return getMapData(this, key).has(key);
    }

    /**
     * Sets the map `key` to `value`.
     *
     * @private
     * @name set
     * @memberOf MapCache
     * @param {string} key The key of the value to set.
     * @param {*} value The value to set.
     * @returns {Object} Returns the map cache instance.
     */
    function mapCacheSet(key, value) {
      var data = getMapData(this, key),
          size = data.size;

      data.set(key, value);
      this.size += data.size == size ? 0 : 1;
      return this;
    }

    // Add methods to `MapCache`.
    MapCache.prototype.clear = mapCacheClear;
    MapCache.prototype['delete'] = mapCacheDelete;
    MapCache.prototype.get = mapCacheGet;
    MapCache.prototype.has = mapCacheHas;
    MapCache.prototype.set = mapCacheSet;

    /*------------------------------------------------------------------------*/

    /**
     *
     * Creates an array cache object to store unique values.
     *
     * @private
     * @constructor
     * @param {Array} [values] The values to cache.
     */
    function SetCache(values) {
      var index = -1,
          length = values == null ? 0 : values.length;

      this.__data__ = new MapCache;
      while (++index < length) {
        this.add(values[index]);
      }
    }

    /**
     * Adds `value` to the array cache.
     *
     * @private
     * @name add
     * @memberOf SetCache
     * @alias push
     * @param {*} value The value to cache.
     * @returns {Object} Returns the cache instance.
     */
    function setCacheAdd(value) {
      this.__data__.set(value, HASH_UNDEFINED);
      return this;
    }

    /**
     * Checks if `value` is in the array cache.
     *
     * @private
     * @name has
     * @memberOf SetCache
     * @param {*} value The value to search for.
     * @returns {number} Returns `true` if `value` is found, else `false`.
     */
    function setCacheHas(value) {
      return this.__data__.has(value);
    }

    // Add methods to `SetCache`.
    SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
    SetCache.prototype.has = setCacheHas;

    /*------------------------------------------------------------------------*/

    /**
     * Creates a stack cache object to store key-value pairs.
     *
     * @private
     * @constructor
     * @param {Array} [entries] The key-value pairs to cache.
     */
    function Stack(entries) {
      var data = this.__data__ = new ListCache(entries);
      this.size = data.size;
    }

    /**
     * Removes all key-value entries from the stack.
     *
     * @private
     * @name clear
     * @memberOf Stack
     */
    function stackClear() {
      this.__data__ = new ListCache;
      this.size = 0;
    }

    /**
     * Removes `key` and its value from the stack.
     *
     * @private
     * @name delete
     * @memberOf Stack
     * @param {string} key The key of the value to remove.
     * @returns {boolean} Returns `true` if the entry was removed, else `false`.
     */
    function stackDelete(key) {
      var data = this.__data__,
          result = data['delete'](key);

      this.size = data.size;
      return result;
    }

    /**
     * Gets the stack value for `key`.
     *
     * @private
     * @name get
     * @memberOf Stack
     * @param {string} key The key of the value to get.
     * @returns {*} Returns the entry value.
     */
    function stackGet(key) {
      return this.__data__.get(key);
    }

    /**
     * Checks if a stack value for `key` exists.
     *
     * @private
     * @name has
     * @memberOf Stack
     * @param {string} key The key of the entry to check.
     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
     */
    function stackHas(key) {
      return this.__data__.has(key);
    }

    /**
     * Sets the stack `key` to `value`.
     *
     * @private
     * @name set
     * @memberOf Stack
     * @param {string} key The key of the value to set.
     * @param {*} value The value to set.
     * @returns {Object} Returns the stack cache instance.
     */
    function stackSet(key, value) {
      var data = this.__data__;
      if (data instanceof ListCache) {
        var pairs = data.__data__;
        if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
          pairs.push([key, value]);
          this.size = ++data.size;
          return this;
        }
        data = this.__data__ = new MapCache(pairs);
      }
      data.set(key, value);
      this.size = data.size;
      return this;
    }

    // Add methods to `Stack`.
    Stack.prototype.clear = stackClear;
    Stack.prototype['delete'] = stackDelete;
    Stack.prototype.get = stackGet;
    Stack.prototype.has = stackHas;
    Stack.prototype.set = stackSet;

    /*------------------------------------------------------------------------*/

    /**
     * Creates an array of the enumerable property names of the array-like `value`.
     *
     * @private
     * @param {*} value The value to query.
     * @param {boolean} inherited Specify returning inherited property names.
     * @returns {Array} Returns the array of property names.
     */
    function arrayLikeKeys(value, inherited) {
      var isArr = isArray(value),
          isArg = !isArr && isArguments(value),
          isBuff = !isArr && !isArg && isBuffer(value),
          isType = !isArr && !isArg && !isBuff && isTypedArray(value),
          skipIndexes = isArr || isArg || isBuff || isType,
          result = skipIndexes ? baseTimes(value.length, String) : [],
          length = result.length;

      for (var key in value) {
        if ((inherited || hasOwnProperty.call(value, key)) &&
            !(skipIndexes && (
               // Safari 9 has enumerable `arguments.length` in strict mode.
               key == 'length' ||
               // Node.js 0.10 has enumerable non-index properties on buffers.
               (isBuff && (key == 'offset' || key == 'parent')) ||
               // PhantomJS 2 has enumerable non-index properties on typed arrays.
               (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
               // Skip index properties.
               isIndex(key, length)
            ))) {
          result.push(key);
        }
      }
      return result;
    }

    /**
     * A specialized version of `_.sample` for arrays.
     *
     * @private
     * @param {Array} array The array to sample.
     * @returns {*} Returns the random element.
     */
    function arraySample(array) {
      var length = array.length;
      return length ? array[baseRandom(0, length - 1)] : undefined;
    }

    /**
     * A specialized version of `_.sampleSize` for arrays.
     *
     * @private
     * @param {Array} array The array to sample.
     * @param {number} n The number of elements to sample.
     * @returns {Array} Returns the random elements.
     */
    function arraySampleSize(array, n) {
      return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));
    }

    /**
     * A specialized version of `_.shuffle` for arrays.
     *
     * @private
     * @param {Array} array The array to shuffle.
     * @returns {Array} Returns the new shuffled array.
     */
    function arrayShuffle(array) {
      return shuffleSelf(copyArray(array));
    }

    /**
     * This function is like `assignValue` except that it doesn't assign
     * `undefined` values.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {string} key The key of the property to assign.
     * @param {*} value The value to assign.
     */
    function assignMergeValue(object, key, value) {
      if ((value !== undefined && !eq(object[key], value)) ||
          (value === undefined && !(key in object))) {
        baseAssignValue(object, key, value);
      }
    }

    /**
     * Assigns `value` to `key` of `object` if the existing value is not equivalent
     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {string} key The key of the property to assign.
     * @param {*} value The value to assign.
     */
    function assignValue(object, key, value) {
      var objValue = object[key];
      if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
          (value === undefined && !(key in object))) {
        baseAssignValue(object, key, value);
      }
    }

    /**
     * Gets the index at which the `key` is found in `array` of key-value pairs.
     *
     * @private
     * @param {Array} array The array to inspect.
     * @param {*} key The key to search for.
     * @returns {number} Returns the index of the matched value, else `-1`.
     */
    function assocIndexOf(array, key) {
      var length = array.length;
      while (length--) {
        if (eq(array[length][0], key)) {
          return length;
        }
      }
      return -1;
    }

    /**
     * Aggregates elements of `collection` on `accumulator` with keys transformed
     * by `iteratee` and values set by `setter`.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} setter The function to set `accumulator` values.
     * @param {Function} iteratee The iteratee to transform keys.
     * @param {Object} accumulator The initial aggregated object.
     * @returns {Function} Returns `accumulator`.
     */
    function baseAggregator(collection, setter, iteratee, accumulator) {
      baseEach(collection, function(value, key, collection) {
        setter(accumulator, value, iteratee(value), collection);
      });
      return accumulator;
    }

    /**
     * The base implementation of `_.assign` without support for multiple sources
     * or `customizer` functions.
     *
     * @private
     * @param {Object} object The destination object.
     * @param {Object} source The source object.
     * @returns {Object} Returns `object`.
     */
    function baseAssign(object, source) {
      return object && copyObject(source, keys(source), object);
    }

    /**
     * The base implementation of `_.assignIn` without support for multiple sources
     * or `customizer` functions.
     *
     * @private
     * @param {Object} object The destination object.
     * @param {Object} source The source object.
     * @returns {Object} Returns `object`.
     */
    function baseAssignIn(object, source) {
      return object && copyObject(source, keysIn(source), object);
    }

    /**
     * The base implementation of `assignValue` and `assignMergeValue` without
     * value checks.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {string} key The key of the property to assign.
     * @param {*} value The value to assign.
     */
    function baseAssignValue(object, key, value) {
      if (key == '__proto__' && defineProperty) {
        defineProperty(object, key, {
          'configurable': true,
          'enumerable': true,
          'value': value,
          'writable': true
        });
      } else {
        object[key] = value;
      }
    }

    /**
     * The base implementation of `_.at` without support for individual paths.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {string[]} paths The property paths to pick.
     * @returns {Array} Returns the picked elements.
     */
    function baseAt(object, paths) {
      var index = -1,
          length = paths.length,
          result = Array(length),
          skip = object == null;

      while (++index < length) {
        result[index] = skip ? undefined : get(object, paths[index]);
      }
      return result;
    }

    /**
     * The base implementation of `_.clamp` which doesn't coerce arguments.
     *
     * @private
     * @param {number} number The number to clamp.
     * @param {number} [lower] The lower bound.
     * @param {number} upper The upper bound.
     * @returns {number} Returns the clamped number.
     */
    function baseClamp(number, lower, upper) {
      if (number === number) {
        if (upper !== undefined) {
          number = number <= upper ? number : upper;
        }
        if (lower !== undefined) {
          number = number >= lower ? number : lower;
        }
      }
      return number;
    }

    /**
     * The base implementation of `_.clone` and `_.cloneDeep` which tracks
     * traversed objects.
     *
     * @private
     * @param {*} value The value to clone.
     * @param {boolean} bitmask The bitmask flags.
     *  1 - Deep clone
     *  2 - Flatten inherited properties
     *  4 - Clone symbols
     * @param {Function} [customizer] The function to customize cloning.
     * @param {string} [key] The key of `value`.
     * @param {Object} [object] The parent object of `value`.
     * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
     * @returns {*} Returns the cloned value.
     */
    function baseClone(value, bitmask, customizer, key, object, stack) {
      var result,
          isDeep = bitmask & CLONE_DEEP_FLAG,
          isFlat = bitmask & CLONE_FLAT_FLAG,
          isFull = bitmask & CLONE_SYMBOLS_FLAG;

      if (customizer) {
        result = object ? customizer(value, key, object, stack) : customizer(value);
      }
      if (result !== undefined) {
        return result;
      }
      if (!isObject(value)) {
        return value;
      }
      var isArr = isArray(value);
      if (isArr) {
        result = initCloneArray(value);
        if (!isDeep) {
          return copyArray(value, result);
        }
      } else {
        var tag = getTag(value),
            isFunc = tag == funcTag || tag == genTag;

        if (isBuffer(value)) {
          return cloneBuffer(value, isDeep);
        }
        if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
          result = (isFlat || isFunc) ? {} : initCloneObject(value);
          if (!isDeep) {
            return isFlat
              ? copySymbolsIn(value, baseAssignIn(result, value))
              : copySymbols(value, baseAssign(result, value));
          }
        } else {
          if (!cloneableTags[tag]) {
            return object ? value : {};
          }
          result = initCloneByTag(value, tag, isDeep);
        }
      }
      // Check for circular references and return its corresponding clone.
      stack || (stack = new Stack);
      var stacked = stack.get(value);
      if (stacked) {
        return stacked;
      }
      stack.set(value, result);

      if (isSet(value)) {
        value.forEach(function(subValue) {
          result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
        });
      } else if (isMap(value)) {
        value.forEach(function(subValue, key) {
          result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
        });
      }

      var keysFunc = isFull
        ? (isFlat ? getAllKeysIn : getAllKeys)
        : (isFlat ? keysIn : keys);

      var props = isArr ? undefined : keysFunc(value);
      arrayEach(props || value, function(subValue, key) {
        if (props) {
          key = subValue;
          subValue = value[key];
        }
        // Recursively populate clone (susceptible to call stack limits).
        assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
      });
      return result;
    }

    /**
     * The base implementation of `_.conforms` which doesn't clone `source`.
     *
     * @private
     * @param {Object} source The object of property predicates to conform to.
     * @returns {Function} Returns the new spec function.
     */
    function baseConforms(source) {
      var props = keys(source);
      return function(object) {
        return baseConformsTo(object, source, props);
      };
    }

    /**
     * The base implementation of `_.conformsTo` which accepts `props` to check.
     *
     * @private
     * @param {Object} object The object to inspect.
     * @param {Object} source The object of property predicates to conform to.
     * @returns {boolean} Returns `true` if `object` conforms, else `false`.
     */
    function baseConformsTo(object, source, props) {
      var length = props.length;
      if (object == null) {
        return !length;
      }
      object = Object(object);
      while (length--) {
        var key = props[length],
            predicate = source[key],
            value = object[key];

        if ((value === undefined && !(key in object)) || !predicate(value)) {
          return false;
        }
      }
      return true;
    }

    /**
     * The base implementation of `_.delay` and `_.defer` which accepts `args`
     * to provide to `func`.
     *
     * @private
     * @param {Function} func The function to delay.
     * @param {number} wait The number of milliseconds to delay invocation.
     * @param {Array} args The arguments to provide to `func`.
     * @returns {number|Object} Returns the timer id or timeout object.
     */
    function baseDelay(func, wait, args) {
      if (typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      return setTimeout(function() { func.apply(undefined, args); }, wait);
    }

    /**
     * The base implementation of methods like `_.difference` without support
     * for excluding multiple arrays or iteratee shorthands.
     *
     * @private
     * @param {Array} array The array to inspect.
     * @param {Array} values The values to exclude.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of filtered values.
     */
    function baseDifference(array, values, iteratee, comparator) {
      var index = -1,
          includes = arrayIncludes,
          isCommon = true,
          length = array.length,
          result = [],
          valuesLength = values.length;

      if (!length) {
        return result;
      }
      if (iteratee) {
        values = arrayMap(values, baseUnary(iteratee));
      }
      if (comparator) {
        includes = arrayIncludesWith;
        isCommon = false;
      }
      else if (values.length >= LARGE_ARRAY_SIZE) {
        includes = cacheHas;
        isCommon = false;
        values = new SetCache(values);
      }
      outer:
      while (++index < length) {
        var value = array[index],
            computed = iteratee == null ? value : iteratee(value);

        value = (comparator || value !== 0) ? value : 0;
        if (isCommon && computed === computed) {
          var valuesIndex = valuesLength;
          while (valuesIndex--) {
            if (values[valuesIndex] === computed) {
              continue outer;
            }
          }
          result.push(value);
        }
        else if (!includes(values, computed, comparator)) {
          result.push(value);
        }
      }
      return result;
    }

    /**
     * The base implementation of `_.forEach` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @returns {Array|Object} Returns `collection`.
     */
    var baseEach = createBaseEach(baseForOwn);

    /**
     * The base implementation of `_.forEachRight` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @returns {Array|Object} Returns `collection`.
     */
    var baseEachRight = createBaseEach(baseForOwnRight, true);

    /**
     * The base implementation of `_.every` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} predicate The function invoked per iteration.
     * @returns {boolean} Returns `true` if all elements pass the predicate check,
     *  else `false`
     */
    function baseEvery(collection, predicate) {
      var result = true;
      baseEach(collection, function(value, index, collection) {
        result = !!predicate(value, index, collection);
        return result;
      });
      return result;
    }

    /**
     * The base implementation of methods like `_.max` and `_.min` which accepts a
     * `comparator` to determine the extremum value.
     *
     * @private
     * @param {Array} array The array to iterate over.
     * @param {Function} iteratee The iteratee invoked per iteration.
     * @param {Function} comparator The comparator used to compare values.
     * @returns {*} Returns the extremum value.
     */
    function baseExtremum(array, iteratee, comparator) {
      var index = -1,
          length = array.length;

      while (++index < length) {
        var value = array[index],
            current = iteratee(value);

        if (current != null && (computed === undefined
              ? (current === current && !isSymbol(current))
              : comparator(current, computed)
            )) {
          var computed = current,
              result = value;
        }
      }
      return result;
    }

    /**
     * The base implementation of `_.fill` without an iteratee call guard.
     *
     * @private
     * @param {Array} array The array to fill.
     * @param {*} value The value to fill `array` with.
     * @param {number} [start=0] The start position.
     * @param {number} [end=array.length] The end position.
     * @returns {Array} Returns `array`.
     */
    function baseFill(array, value, start, end) {
      var length = array.length;

      start = toInteger(start);
      if (start < 0) {
        start = -start > length ? 0 : (length + start);
      }
      end = (end === undefined || end > length) ? length : toInteger(end);
      if (end < 0) {
        end += length;
      }
      end = start > end ? 0 : toLength(end);
      while (start < end) {
        array[start++] = value;
      }
      return array;
    }

    /**
     * The base implementation of `_.filter` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} predicate The function invoked per iteration.
     * @returns {Array} Returns the new filtered array.
     */
    function baseFilter(collection, predicate) {
      var result = [];
      baseEach(collection, function(value, index, collection) {
        if (predicate(value, index, collection)) {
          result.push(value);
        }
      });
      return result;
    }

    /**
     * The base implementation of `_.flatten` with support for restricting flattening.
     *
     * @private
     * @param {Array} array The array to flatten.
     * @param {number} depth The maximum recursion depth.
     * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
     * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
     * @param {Array} [result=[]] The initial result value.
     * @returns {Array} Returns the new flattened array.
     */
    function baseFlatten(array, depth, predicate, isStrict, result) {
      var index = -1,
          length = array.length;

      predicate || (predicate = isFlattenable);
      result || (result = []);

      while (++index < length) {
        var value = array[index];
        if (depth > 0 && predicate(value)) {
          if (depth > 1) {
            // Recursively flatten arrays (susceptible to call stack limits).
            baseFlatten(value, depth - 1, predicate, isStrict, result);
          } else {
            arrayPush(result, value);
          }
        } else if (!isStrict) {
          result[result.length] = value;
        }
      }
      return result;
    }

    /**
     * The base implementation of `baseForOwn` which iterates over `object`
     * properties returned by `keysFunc` and invokes `iteratee` for each property.
     * Iteratee functions may exit iteration early by explicitly returning `false`.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @param {Function} keysFunc The function to get the keys of `object`.
     * @returns {Object} Returns `object`.
     */
    var baseFor = createBaseFor();

    /**
     * This function is like `baseFor` except that it iterates over properties
     * in the opposite order.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @param {Function} keysFunc The function to get the keys of `object`.
     * @returns {Object} Returns `object`.
     */
    var baseForRight = createBaseFor(true);

    /**
     * The base implementation of `_.forOwn` without support for iteratee shorthands.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @returns {Object} Returns `object`.
     */
    function baseForOwn(object, iteratee) {
      return object && baseFor(object, iteratee, keys);
    }

    /**
     * The base implementation of `_.forOwnRight` without support for iteratee shorthands.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @returns {Object} Returns `object`.
     */
    function baseForOwnRight(object, iteratee) {
      return object && baseForRight(object, iteratee, keys);
    }

    /**
     * The base implementation of `_.functions` which creates an array of
     * `object` function property names filtered from `props`.
     *
     * @private
     * @param {Object} object The object to inspect.
     * @param {Array} props The property names to filter.
     * @returns {Array} Returns the function names.
     */
    function baseFunctions(object, props) {
      return arrayFilter(props, function(key) {
        return isFunction(object[key]);
      });
    }

    /**
     * The base implementation of `_.get` without support for default values.
     *
     * @private
     * @param {Object} object The object to query.
     * @param {Array|string} path The path of the property to get.
     * @returns {*} Returns the resolved value.
     */
    function baseGet(object, path) {
      path = castPath(path, object);

      var index = 0,
          length = path.length;

      while (object != null && index < length) {
        object = object[toKey(path[index++])];
      }
      return (index && index == length) ? object : undefined;
    }

    /**
     * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
     * `keysFunc` and `symbolsFunc` to get the enumerable property names and
     * symbols of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @param {Function} keysFunc The function to get the keys of `object`.
     * @param {Function} symbolsFunc The function to get the symbols of `object`.
     * @returns {Array} Returns the array of property names and symbols.
     */
    function baseGetAllKeys(object, keysFunc, symbolsFunc) {
      var result = keysFunc(object);
      return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
    }

    /**
     * The base implementation of `getTag` without fallbacks for buggy environments.
     *
     * @private
     * @param {*} value The value to query.
     * @returns {string} Returns the `toStringTag`.
     */
    function baseGetTag(value) {
      if (value == null) {
        return value === undefined ? undefinedTag : nullTag;
      }
      return (symToStringTag && symToStringTag in Object(value))
        ? getRawTag(value)
        : objectToString(value);
    }

    /**
     * The base implementation of `_.gt` which doesn't coerce arguments.
     *
     * @private
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is greater than `other`,
     *  else `false`.
     */
    function baseGt(value, other) {
      return value > other;
    }

    /**
     * The base implementation of `_.has` without support for deep paths.
     *
     * @private
     * @param {Object} [object] The object to query.
     * @param {Array|string} key The key to check.
     * @returns {boolean} Returns `true` if `key` exists, else `false`.
     */
    function baseHas(object, key) {
      return object != null && hasOwnProperty.call(object, key);
    }

    /**
     * The base implementation of `_.hasIn` without support for deep paths.
     *
     * @private
     * @param {Object} [object] The object to query.
     * @param {Array|string} key The key to check.
     * @returns {boolean} Returns `true` if `key` exists, else `false`.
     */
    function baseHasIn(object, key) {
      return object != null && key in Object(object);
    }

    /**
     * The base implementation of `_.inRange` which doesn't coerce arguments.
     *
     * @private
     * @param {number} number The number to check.
     * @param {number} start The start of the range.
     * @param {number} end The end of the range.
     * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
     */
    function baseInRange(number, start, end) {
      return number >= nativeMin(start, end) && number < nativeMax(start, end);
    }

    /**
     * The base implementation of methods like `_.intersection`, without support
     * for iteratee shorthands, that accepts an array of arrays to inspect.
     *
     * @private
     * @param {Array} arrays The arrays to inspect.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of shared values.
     */
    function baseIntersection(arrays, iteratee, comparator) {
      var includes = comparator ? arrayIncludesWith : arrayIncludes,
          length = arrays[0].length,
          othLength = arrays.length,
          othIndex = othLength,
          caches = Array(othLength),
          maxLength = Infinity,
          result = [];

      while (othIndex--) {
        var array = arrays[othIndex];
        if (othIndex && iteratee) {
          array = arrayMap(array, baseUnary(iteratee));
        }
        maxLength = nativeMin(array.length, maxLength);
        caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))
          ? new SetCache(othIndex && array)
          : undefined;
      }
      array = arrays[0];

      var index = -1,
          seen = caches[0];

      outer:
      while (++index < length && result.length < maxLength) {
        var value = array[index],
            computed = iteratee ? iteratee(value) : value;

        value = (comparator || value !== 0) ? value : 0;
        if (!(seen
              ? cacheHas(seen, computed)
              : includes(result, computed, comparator)
            )) {
          othIndex = othLength;
          while (--othIndex) {
            var cache = caches[othIndex];
            if (!(cache
                  ? cacheHas(cache, computed)
                  : includes(arrays[othIndex], computed, comparator))
                ) {
              continue outer;
            }
          }
          if (seen) {
            seen.push(computed);
          }
          result.push(value);
        }
      }
      return result;
    }

    /**
     * The base implementation of `_.invert` and `_.invertBy` which inverts
     * `object` with values transformed by `iteratee` and set by `setter`.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {Function} setter The function to set `accumulator` values.
     * @param {Function} iteratee The iteratee to transform values.
     * @param {Object} accumulator The initial inverted object.
     * @returns {Function} Returns `accumulator`.
     */
    function baseInverter(object, setter, iteratee, accumulator) {
      baseForOwn(object, function(value, key, object) {
        setter(accumulator, iteratee(value), key, object);
      });
      return accumulator;
    }

    /**
     * The base implementation of `_.invoke` without support for individual
     * method arguments.
     *
     * @private
     * @param {Object} object The object to query.
     * @param {Array|string} path The path of the method to invoke.
     * @param {Array} args The arguments to invoke the method with.
     * @returns {*} Returns the result of the invoked method.
     */
    function baseInvoke(object, path, args) {
      path = castPath(path, object);
      object = parent(object, path);
      var func = object == null ? object : object[toKey(last(path))];
      return func == null ? undefined : apply(func, object, args);
    }

    /**
     * The base implementation of `_.isArguments`.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an `arguments` object,
     */
    function baseIsArguments(value) {
      return isObjectLike(value) && baseGetTag(value) == argsTag;
    }

    /**
     * The base implementation of `_.isArrayBuffer` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
     */
    function baseIsArrayBuffer(value) {
      return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;
    }

    /**
     * The base implementation of `_.isDate` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
     */
    function baseIsDate(value) {
      return isObjectLike(value) && baseGetTag(value) == dateTag;
    }

    /**
     * The base implementation of `_.isEqual` which supports partial comparisons
     * and tracks traversed objects.
     *
     * @private
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @param {boolean} bitmask The bitmask flags.
     *  1 - Unordered comparison
     *  2 - Partial comparison
     * @param {Function} [customizer] The function to customize comparisons.
     * @param {Object} [stack] Tracks traversed `value` and `other` objects.
     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
     */
    function baseIsEqual(value, other, bitmask, customizer, stack) {
      if (value === other) {
        return true;
      }
      if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
        return value !== value && other !== other;
      }
      return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
    }

    /**
     * A specialized version of `baseIsEqual` for arrays and objects which performs
     * deep comparisons and tracks traversed objects enabling objects with circular
     * references to be compared.
     *
     * @private
     * @param {Object} object The object to compare.
     * @param {Object} other The other object to compare.
     * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
     * @param {Function} customizer The function to customize comparisons.
     * @param {Function} equalFunc The function to determine equivalents of values.
     * @param {Object} [stack] Tracks traversed `object` and `other` objects.
     * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
     */
    function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
      var objIsArr = isArray(object),
          othIsArr = isArray(other),
          objTag = objIsArr ? arrayTag : getTag(object),
          othTag = othIsArr ? arrayTag : getTag(other);

      objTag = objTag == argsTag ? objectTag : objTag;
      othTag = othTag == argsTag ? objectTag : othTag;

      var objIsObj = objTag == objectTag,
          othIsObj = othTag == objectTag,
          isSameTag = objTag == othTag;

      if (isSameTag && isBuffer(object)) {
        if (!isBuffer(other)) {
          return false;
        }
        objIsArr = true;
        objIsObj = false;
      }
      if (isSameTag && !objIsObj) {
        stack || (stack = new Stack);
        return (objIsArr || isTypedArray(object))
          ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
          : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
      }
      if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
        var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
            othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');

        if (objIsWrapped || othIsWrapped) {
          var objUnwrapped = objIsWrapped ? object.value() : object,
              othUnwrapped = othIsWrapped ? other.value() : other;

          stack || (stack = new Stack);
          return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
        }
      }
      if (!isSameTag) {
        return false;
      }
      stack || (stack = new Stack);
      return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
    }

    /**
     * The base implementation of `_.isMap` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a map, else `false`.
     */
    function baseIsMap(value) {
      return isObjectLike(value) && getTag(value) == mapTag;
    }

    /**
     * The base implementation of `_.isMatch` without support for iteratee shorthands.
     *
     * @private
     * @param {Object} object The object to inspect.
     * @param {Object} source The object of property values to match.
     * @param {Array} matchData The property names, values, and compare flags to match.
     * @param {Function} [customizer] The function to customize comparisons.
     * @returns {boolean} Returns `true` if `object` is a match, else `false`.
     */
    function baseIsMatch(object, source, matchData, customizer) {
      var index = matchData.length,
          length = index,
          noCustomizer = !customizer;

      if (object == null) {
        return !length;
      }
      object = Object(object);
      while (index--) {
        var data = matchData[index];
        if ((noCustomizer && data[2])
              ? data[1] !== object[data[0]]
              : !(data[0] in object)
            ) {
          return false;
        }
      }
      while (++index < length) {
        data = matchData[index];
        var key = data[0],
            objValue = object[key],
            srcValue = data[1];

        if (noCustomizer && data[2]) {
          if (objValue === undefined && !(key in object)) {
            return false;
          }
        } else {
          var stack = new Stack;
          if (customizer) {
            var result = customizer(objValue, srcValue, key, object, source, stack);
          }
          if (!(result === undefined
                ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
                : result
              )) {
            return false;
          }
        }
      }
      return true;
    }

    /**
     * The base implementation of `_.isNative` without bad shim checks.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a native function,
     *  else `false`.
     */
    function baseIsNative(value) {
      if (!isObject(value) || isMasked(value)) {
        return false;
      }
      var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
      return pattern.test(toSource(value));
    }

    /**
     * The base implementation of `_.isRegExp` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
     */
    function baseIsRegExp(value) {
      return isObjectLike(value) && baseGetTag(value) == regexpTag;
    }

    /**
     * The base implementation of `_.isSet` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a set, else `false`.
     */
    function baseIsSet(value) {
      return isObjectLike(value) && getTag(value) == setTag;
    }

    /**
     * The base implementation of `_.isTypedArray` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
     */
    function baseIsTypedArray(value) {
      return isObjectLike(value) &&
        isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
    }

    /**
     * The base implementation of `_.iteratee`.
     *
     * @private
     * @param {*} [value=_.identity] The value to convert to an iteratee.
     * @returns {Function} Returns the iteratee.
     */
    function baseIteratee(value) {
      // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
      // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
      if (typeof value == 'function') {
        return value;
      }
      if (value == null) {
        return identity;
      }
      if (typeof value == 'object') {
        return isArray(value)
          ? baseMatchesProperty(value[0], value[1])
          : baseMatches(value);
      }
      return property(value);
    }

    /**
     * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names.
     */
    function baseKeys(object) {
      if (!isPrototype(object)) {
        return nativeKeys(object);
      }
      var result = [];
      for (var key in Object(object)) {
        if (hasOwnProperty.call(object, key) && key != 'constructor') {
          result.push(key);
        }
      }
      return result;
    }

    /**
     * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names.
     */
    function baseKeysIn(object) {
      if (!isObject(object)) {
        return nativeKeysIn(object);
      }
      var isProto = isPrototype(object),
          result = [];

      for (var key in object) {
        if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
          result.push(key);
        }
      }
      return result;
    }

    /**
     * The base implementation of `_.lt` which doesn't coerce arguments.
     *
     * @private
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is less than `other`,
     *  else `false`.
     */
    function baseLt(value, other) {
      return value < other;
    }

    /**
     * The base implementation of `_.map` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @returns {Array} Returns the new mapped array.
     */
    function baseMap(collection, iteratee) {
      var index = -1,
          result = isArrayLike(collection) ? Array(collection.length) : [];

      baseEach(collection, function(value, key, collection) {
        result[++index] = iteratee(value, key, collection);
      });
      return result;
    }

    /**
     * The base implementation of `_.matches` which doesn't clone `source`.
     *
     * @private
     * @param {Object} source The object of property values to match.
     * @returns {Function} Returns the new spec function.
     */
    function baseMatches(source) {
      var matchData = getMatchData(source);
      if (matchData.length == 1 && matchData[0][2]) {
        return matchesStrictComparable(matchData[0][0], matchData[0][1]);
      }
      return function(object) {
        return object === source || baseIsMatch(object, source, matchData);
      };
    }

    /**
     * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
     *
     * @private
     * @param {string} path The path of the property to get.
     * @param {*} srcValue The value to match.
     * @returns {Function} Returns the new spec function.
     */
    function baseMatchesProperty(path, srcValue) {
      if (isKey(path) && isStrictComparable(srcValue)) {
        return matchesStrictComparable(toKey(path), srcValue);
      }
      return function(object) {
        var objValue = get(object, path);
        return (objValue === undefined && objValue === srcValue)
          ? hasIn(object, path)
          : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
      };
    }

    /**
     * The base implementation of `_.merge` without support for multiple sources.
     *
     * @private
     * @param {Object} object The destination object.
     * @param {Object} source The source object.
     * @param {number} srcIndex The index of `source`.
     * @param {Function} [customizer] The function to customize merged values.
     * @param {Object} [stack] Tracks traversed source values and their merged
     *  counterparts.
     */
    function baseMerge(object, source, srcIndex, customizer, stack) {
      if (object === source) {
        return;
      }
      baseFor(source, function(srcValue, key) {
        stack || (stack = new Stack);
        if (isObject(srcValue)) {
          baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
        }
        else {
          var newValue = customizer
            ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
            : undefined;

          if (newValue === undefined) {
            newValue = srcValue;
          }
          assignMergeValue(object, key, newValue);
        }
      }, keysIn);
    }

    /**
     * A specialized version of `baseMerge` for arrays and objects which performs
     * deep merges and tracks traversed objects enabling objects with circular
     * references to be merged.
     *
     * @private
     * @param {Object} object The destination object.
     * @param {Object} source The source object.
     * @param {string} key The key of the value to merge.
     * @param {number} srcIndex The index of `source`.
     * @param {Function} mergeFunc The function to merge values.
     * @param {Function} [customizer] The function to customize assigned values.
     * @param {Object} [stack] Tracks traversed source values and their merged
     *  counterparts.
     */
    function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
      var objValue = safeGet(object, key),
          srcValue = safeGet(source, key),
          stacked = stack.get(srcValue);

      if (stacked) {
        assignMergeValue(object, key, stacked);
        return;
      }
      var newValue = customizer
        ? customizer(objValue, srcValue, (key + ''), object, source, stack)
        : undefined;

      var isCommon = newValue === undefined;

      if (isCommon) {
        var isArr = isArray(srcValue),
            isBuff = !isArr && isBuffer(srcValue),
            isTyped = !isArr && !isBuff && isTypedArray(srcValue);

        newValue = srcValue;
        if (isArr || isBuff || isTyped) {
          if (isArray(objValue)) {
            newValue = objValue;
          }
          else if (isArrayLikeObject(objValue)) {
            newValue = copyArray(objValue);
          }
          else if (isBuff) {
            isCommon = false;
            newValue = cloneBuffer(srcValue, true);
          }
          else if (isTyped) {
            isCommon = false;
            newValue = cloneTypedArray(srcValue, true);
          }
          else {
            newValue = [];
          }
        }
        else if (isPlainObject(srcValue) || isArguments(srcValue)) {
          newValue = objValue;
          if (isArguments(objValue)) {
            newValue = toPlainObject(objValue);
          }
          else if (!isObject(objValue) || isFunction(objValue)) {
            newValue = initCloneObject(srcValue);
          }
        }
        else {
          isCommon = false;
        }
      }
      if (isCommon) {
        // Recursively merge objects and arrays (susceptible to call stack limits).
        stack.set(srcValue, newValue);
        mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
        stack['delete'](srcValue);
      }
      assignMergeValue(object, key, newValue);
    }

    /**
     * The base implementation of `_.nth` which doesn't coerce arguments.
     *
     * @private
     * @param {Array} array The array to query.
     * @param {number} n The index of the element to return.
     * @returns {*} Returns the nth element of `array`.
     */
    function baseNth(array, n) {
      var length = array.length;
      if (!length) {
        return;
      }
      n += n < 0 ? length : 0;
      return isIndex(n, length) ? array[n] : undefined;
    }

    /**
     * The base implementation of `_.orderBy` without param guards.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
     * @param {string[]} orders The sort orders of `iteratees`.
     * @returns {Array} Returns the new sorted array.
     */
    function baseOrderBy(collection, iteratees, orders) {
      var index = -1;
      iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(getIteratee()));

      var result = baseMap(collection, function(value, key, collection) {
        var criteria = arrayMap(iteratees, function(iteratee) {
          return iteratee(value);
        });
        return { 'criteria': criteria, 'index': ++index, 'value': value };
      });

      return baseSortBy(result, function(object, other) {
        return compareMultiple(object, other, orders);
      });
    }

    /**
     * The base implementation of `_.pick` without support for individual
     * property identifiers.
     *
     * @private
     * @param {Object} object The source object.
     * @param {string[]} paths The property paths to pick.
     * @returns {Object} Returns the new object.
     */
    function basePick(object, paths) {
      return basePickBy(object, paths, function(value, path) {
        return hasIn(object, path);
      });
    }

    /**
     * The base implementation of  `_.pickBy` without support for iteratee shorthands.
     *
     * @private
     * @param {Object} object The source object.
     * @param {string[]} paths The property paths to pick.
     * @param {Function} predicate The function invoked per property.
     * @returns {Object} Returns the new object.
     */
    function basePickBy(object, paths, predicate) {
      var index = -1,
          length = paths.length,
          result = {};

      while (++index < length) {
        var path = paths[index],
            value = baseGet(object, path);

        if (predicate(value, path)) {
          baseSet(result, castPath(path, object), value);
        }
      }
      return result;
    }

    /**
     * A specialized version of `baseProperty` which supports deep paths.
     *
     * @private
     * @param {Array|string} path The path of the property to get.
     * @returns {Function} Returns the new accessor function.
     */
    function basePropertyDeep(path) {
      return function(object) {
        return baseGet(object, path);
      };
    }

    /**
     * The base implementation of `_.pullAllBy` without support for iteratee
     * shorthands.
     *
     * @private
     * @param {Array} array The array to modify.
     * @param {Array} values The values to remove.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns `array`.
     */
    function basePullAll(array, values, iteratee, comparator) {
      var indexOf = comparator ? baseIndexOfWith : baseIndexOf,
          index = -1,
          length = values.length,
          seen = array;

      if (array === values) {
        values = copyArray(values);
      }
      if (iteratee) {
        seen = arrayMap(array, baseUnary(iteratee));
      }
      while (++index < length) {
        var fromIndex = 0,
            value = values[index],
            computed = iteratee ? iteratee(value) : value;

        while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {
          if (seen !== array) {
            splice.call(seen, fromIndex, 1);
          }
          splice.call(array, fromIndex, 1);
        }
      }
      return array;
    }

    /**
     * The base implementation of `_.pullAt` without support for individual
     * indexes or capturing the removed elements.
     *
     * @private
     * @param {Array} array The array to modify.
     * @param {number[]} indexes The indexes of elements to remove.
     * @returns {Array} Returns `array`.
     */
    function basePullAt(array, indexes) {
      var length = array ? indexes.length : 0,
          lastIndex = length - 1;

      while (length--) {
        var index = indexes[length];
        if (length == lastIndex || index !== previous) {
          var previous = index;
          if (isIndex(index)) {
            splice.call(array, index, 1);
          } else {
            baseUnset(array, index);
          }
        }
      }
      return array;
    }

    /**
     * The base implementation of `_.random` without support for returning
     * floating-point numbers.
     *
     * @private
     * @param {number} lower The lower bound.
     * @param {number} upper The upper bound.
     * @returns {number} Returns the random number.
     */
    function baseRandom(lower, upper) {
      return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
    }

    /**
     * The base implementation of `_.range` and `_.rangeRight` which doesn't
     * coerce arguments.
     *
     * @private
     * @param {number} start The start of the range.
     * @param {number} end The end of the range.
     * @param {number} step The value to increment or decrement by.
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Array} Returns the range of numbers.
     */
    function baseRange(start, end, step, fromRight) {
      var index = -1,
          length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
          result = Array(length);

      while (length--) {
        result[fromRight ? length : ++index] = start;
        start += step;
      }
      return result;
    }

    /**
     * The base implementation of `_.repeat` which doesn't coerce arguments.
     *
     * @private
     * @param {string} string The string to repeat.
     * @param {number} n The number of times to repeat the string.
     * @returns {string} Returns the repeated string.
     */
    function baseRepeat(string, n) {
      var result = '';
      if (!string || n < 1 || n > MAX_SAFE_INTEGER) {
        return result;
      }
      // Leverage the exponentiation by squaring algorithm for a faster repeat.
      // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.
      do {
        if (n % 2) {
          result += string;
        }
        n = nativeFloor(n / 2);
        if (n) {
          string += string;
        }
      } while (n);

      return result;
    }

    /**
     * The base implementation of `_.rest` which doesn't validate or coerce arguments.
     *
     * @private
     * @param {Function} func The function to apply a rest parameter to.
     * @param {number} [start=func.length-1] The start position of the rest parameter.
     * @returns {Function} Returns the new function.
     */
    function baseRest(func, start) {
      return setToString(overRest(func, start, identity), func + '');
    }

    /**
     * The base implementation of `_.sample`.
     *
     * @private
     * @param {Array|Object} collection The collection to sample.
     * @returns {*} Returns the random element.
     */
    function baseSample(collection) {
      return arraySample(values(collection));
    }

    /**
     * The base implementation of `_.sampleSize` without param guards.
     *
     * @private
     * @param {Array|Object} collection The collection to sample.
     * @param {number} n The number of elements to sample.
     * @returns {Array} Returns the random elements.
     */
    function baseSampleSize(collection, n) {
      var array = values(collection);
      return shuffleSelf(array, baseClamp(n, 0, array.length));
    }

    /**
     * The base implementation of `_.set`.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to set.
     * @param {*} value The value to set.
     * @param {Function} [customizer] The function to customize path creation.
     * @returns {Object} Returns `object`.
     */
    function baseSet(object, path, value, customizer) {
      if (!isObject(object)) {
        return object;
      }
      path = castPath(path, object);

      var index = -1,
          length = path.length,
          lastIndex = length - 1,
          nested = object;

      while (nested != null && ++index < length) {
        var key = toKey(path[index]),
            newValue = value;

        if (index != lastIndex) {
          var objValue = nested[key];
          newValue = customizer ? customizer(objValue, key, nested) : undefined;
          if (newValue === undefined) {
            newValue = isObject(objValue)
              ? objValue
              : (isIndex(path[index + 1]) ? [] : {});
          }
        }
        assignValue(nested, key, newValue);
        nested = nested[key];
      }
      return object;
    }

    /**
     * The base implementation of `setData` without support for hot loop shorting.
     *
     * @private
     * @param {Function} func The function to associate metadata with.
     * @param {*} data The metadata.
     * @returns {Function} Returns `func`.
     */
    var baseSetData = !metaMap ? identity : function(func, data) {
      metaMap.set(func, data);
      return func;
    };

    /**
     * The base implementation of `setToString` without support for hot loop shorting.
     *
     * @private
     * @param {Function} func The function to modify.
     * @param {Function} string The `toString` result.
     * @returns {Function} Returns `func`.
     */
    var baseSetToString = !defineProperty ? identity : function(func, string) {
      return defineProperty(func, 'toString', {
        'configurable': true,
        'enumerable': false,
        'value': constant(string),
        'writable': true
      });
    };

    /**
     * The base implementation of `_.shuffle`.
     *
     * @private
     * @param {Array|Object} collection The collection to shuffle.
     * @returns {Array} Returns the new shuffled array.
     */
    function baseShuffle(collection) {
      return shuffleSelf(values(collection));
    }

    /**
     * The base implementation of `_.slice` without an iteratee call guard.
     *
     * @private
     * @param {Array} array The array to slice.
     * @param {number} [start=0] The start position.
     * @param {number} [end=array.length] The end position.
     * @returns {Array} Returns the slice of `array`.
     */
    function baseSlice(array, start, end) {
      var index = -1,
          length = array.length;

      if (start < 0) {
        start = -start > length ? 0 : (length + start);
      }
      end = end > length ? length : end;
      if (end < 0) {
        end += length;
      }
      length = start > end ? 0 : ((end - start) >>> 0);
      start >>>= 0;

      var result = Array(length);
      while (++index < length) {
        result[index] = array[index + start];
      }
      return result;
    }

    /**
     * The base implementation of `_.some` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} predicate The function invoked per iteration.
     * @returns {boolean} Returns `true` if any element passes the predicate check,
     *  else `false`.
     */
    function baseSome(collection, predicate) {
      var result;

      baseEach(collection, function(value, index, collection) {
        result = predicate(value, index, collection);
        return !result;
      });
      return !!result;
    }

    /**
     * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which
     * performs a binary search of `array` to determine the index at which `value`
     * should be inserted into `array` in order to maintain its sort order.
     *
     * @private
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @param {boolean} [retHighest] Specify returning the highest qualified index.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     */
    function baseSortedIndex(array, value, retHighest) {
      var low = 0,
          high = array == null ? low : array.length;

      if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {
        while (low < high) {
          var mid = (low + high) >>> 1,
              computed = array[mid];

          if (computed !== null && !isSymbol(computed) &&
              (retHighest ? (computed <= value) : (computed < value))) {
            low = mid + 1;
          } else {
            high = mid;
          }
        }
        return high;
      }
      return baseSortedIndexBy(array, value, identity, retHighest);
    }

    /**
     * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`
     * which invokes `iteratee` for `value` and each element of `array` to compute
     * their sort ranking. The iteratee is invoked with one argument; (value).
     *
     * @private
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @param {Function} iteratee The iteratee invoked per element.
     * @param {boolean} [retHighest] Specify returning the highest qualified index.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     */
    function baseSortedIndexBy(array, value, iteratee, retHighest) {
      value = iteratee(value);

      var low = 0,
          high = array == null ? 0 : array.length,
          valIsNaN = value !== value,
          valIsNull = value === null,
          valIsSymbol = isSymbol(value),
          valIsUndefined = value === undefined;

      while (low < high) {
        var mid = nativeFloor((low + high) / 2),
            computed = iteratee(array[mid]),
            othIsDefined = computed !== undefined,
            othIsNull = computed === null,
            othIsReflexive = computed === computed,
            othIsSymbol = isSymbol(computed);

        if (valIsNaN) {
          var setLow = retHighest || othIsReflexive;
        } else if (valIsUndefined) {
          setLow = othIsReflexive && (retHighest || othIsDefined);
        } else if (valIsNull) {
          setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);
        } else if (valIsSymbol) {
          setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);
        } else if (othIsNull || othIsSymbol) {
          setLow = false;
        } else {
          setLow = retHighest ? (computed <= value) : (computed < value);
        }
        if (setLow) {
          low = mid + 1;
        } else {
          high = mid;
        }
      }
      return nativeMin(high, MAX_ARRAY_INDEX);
    }

    /**
     * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without
     * support for iteratee shorthands.
     *
     * @private
     * @param {Array} array The array to inspect.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @returns {Array} Returns the new duplicate free array.
     */
    function baseSortedUniq(array, iteratee) {
      var index = -1,
          length = array.length,
          resIndex = 0,
          result = [];

      while (++index < length) {
        var value = array[index],
            computed = iteratee ? iteratee(value) : value;

        if (!index || !eq(computed, seen)) {
          var seen = computed;
          result[resIndex++] = value === 0 ? 0 : value;
        }
      }
      return result;
    }

    /**
     * The base implementation of `_.toNumber` which doesn't ensure correct
     * conversions of binary, hexadecimal, or octal string values.
     *
     * @private
     * @param {*} value The value to process.
     * @returns {number} Returns the number.
     */
    function baseToNumber(value) {
      if (typeof value == 'number') {
        return value;
      }
      if (isSymbol(value)) {
        return NAN;
      }
      return +value;
    }

    /**
     * The base implementation of `_.toString` which doesn't convert nullish
     * values to empty strings.
     *
     * @private
     * @param {*} value The value to process.
     * @returns {string} Returns the string.
     */
    function baseToString(value) {
      // Exit early for strings to avoid a performance hit in some environments.
      if (typeof value == 'string') {
        return value;
      }
      if (isArray(value)) {
        // Recursively convert values (susceptible to call stack limits).
        return arrayMap(value, baseToString) + '';
      }
      if (isSymbol(value)) {
        return symbolToString ? symbolToString.call(value) : '';
      }
      var result = (value + '');
      return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
    }

    /**
     * The base implementation of `_.uniqBy` without support for iteratee shorthands.
     *
     * @private
     * @param {Array} array The array to inspect.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new duplicate free array.
     */
    function baseUniq(array, iteratee, comparator) {
      var index = -1,
          includes = arrayIncludes,
          length = array.length,
          isCommon = true,
          result = [],
          seen = result;

      if (comparator) {
        isCommon = false;
        includes = arrayIncludesWith;
      }
      else if (length >= LARGE_ARRAY_SIZE) {
        var set = iteratee ? null : createSet(array);
        if (set) {
          return setToArray(set);
        }
        isCommon = false;
        includes = cacheHas;
        seen = new SetCache;
      }
      else {
        seen = iteratee ? [] : result;
      }
      outer:
      while (++index < length) {
        var value = array[index],
            computed = iteratee ? iteratee(value) : value;

        value = (comparator || value !== 0) ? value : 0;
        if (isCommon && computed === computed) {
          var seenIndex = seen.length;
          while (seenIndex--) {
            if (seen[seenIndex] === computed) {
              continue outer;
            }
          }
          if (iteratee) {
            seen.push(computed);
          }
          result.push(value);
        }
        else if (!includes(seen, computed, comparator)) {
          if (seen !== result) {
            seen.push(computed);
          }
          result.push(value);
        }
      }
      return result;
    }

    /**
     * The base implementation of `_.unset`.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {Array|string} path The property path to unset.
     * @returns {boolean} Returns `true` if the property is deleted, else `false`.
     */
    function baseUnset(object, path) {
      path = castPath(path, object);
      object = parent(object, path);
      return object == null || delete object[toKey(last(path))];
    }

    /**
     * The base implementation of `_.update`.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to update.
     * @param {Function} updater The function to produce the updated value.
     * @param {Function} [customizer] The function to customize path creation.
     * @returns {Object} Returns `object`.
     */
    function baseUpdate(object, path, updater, customizer) {
      return baseSet(object, path, updater(baseGet(object, path)), customizer);
    }

    /**
     * The base implementation of methods like `_.dropWhile` and `_.takeWhile`
     * without support for iteratee shorthands.
     *
     * @private
     * @param {Array} array The array to query.
     * @param {Function} predicate The function invoked per iteration.
     * @param {boolean} [isDrop] Specify dropping elements instead of taking them.
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Array} Returns the slice of `array`.
     */
    function baseWhile(array, predicate, isDrop, fromRight) {
      var length = array.length,
          index = fromRight ? length : -1;

      while ((fromRight ? index-- : ++index < length) &&
        predicate(array[index], index, array)) {}

      return isDrop
        ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))
        : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));
    }

    /**
     * The base implementation of `wrapperValue` which returns the result of
     * performing a sequence of actions on the unwrapped `value`, where each
     * successive action is supplied the return value of the previous.
     *
     * @private
     * @param {*} value The unwrapped value.
     * @param {Array} actions Actions to perform to resolve the unwrapped value.
     * @returns {*} Returns the resolved value.
     */
    function baseWrapperValue(value, actions) {
      var result = value;
      if (result instanceof LazyWrapper) {
        result = result.value();
      }
      return arrayReduce(actions, function(result, action) {
        return action.func.apply(action.thisArg, arrayPush([result], action.args));
      }, result);
    }

    /**
     * The base implementation of methods like `_.xor`, without support for
     * iteratee shorthands, that accepts an array of arrays to inspect.
     *
     * @private
     * @param {Array} arrays The arrays to inspect.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of values.
     */
    function baseXor(arrays, iteratee, comparator) {
      var length = arrays.length;
      if (length < 2) {
        return length ? baseUniq(arrays[0]) : [];
      }
      var index = -1,
          result = Array(length);

      while (++index < length) {
        var array = arrays[index],
            othIndex = -1;

        while (++othIndex < length) {
          if (othIndex != index) {
            result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);
          }
        }
      }
      return baseUniq(baseFlatten(result, 1), iteratee, comparator);
    }

    /**
     * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
     *
     * @private
     * @param {Array} props The property identifiers.
     * @param {Array} values The property values.
     * @param {Function} assignFunc The function to assign values.
     * @returns {Object} Returns the new object.
     */
    function baseZipObject(props, values, assignFunc) {
      var index = -1,
          length = props.length,
          valsLength = values.length,
          result = {};

      while (++index < length) {
        var value = index < valsLength ? values[index] : undefined;
        assignFunc(result, props[index], value);
      }
      return result;
    }

    /**
     * Casts `value` to an empty array if it's not an array like object.
     *
     * @private
     * @param {*} value The value to inspect.
     * @returns {Array|Object} Returns the cast array-like object.
     */
    function castArrayLikeObject(value) {
      return isArrayLikeObject(value) ? value : [];
    }

    /**
     * Casts `value` to `identity` if it's not a function.
     *
     * @private
     * @param {*} value The value to inspect.
     * @returns {Function} Returns cast function.
     */
    function castFunction(value) {
      return typeof value == 'function' ? value : identity;
    }

    /**
     * Casts `value` to a path array if it's not one.
     *
     * @private
     * @param {*} value The value to inspect.
     * @param {Object} [object] The object to query keys on.
     * @returns {Array} Returns the cast property path array.
     */
    function castPath(value, object) {
      if (isArray(value)) {
        return value;
      }
      return isKey(value, object) ? [value] : stringToPath(toString(value));
    }

    /**
     * A `baseRest` alias which can be replaced with `identity` by module
     * replacement plugins.
     *
     * @private
     * @type {Function}
     * @param {Function} func The function to apply a rest parameter to.
     * @returns {Function} Returns the new function.
     */
    var castRest = baseRest;

    /**
     * Casts `array` to a slice if it's needed.
     *
     * @private
     * @param {Array} array The array to inspect.
     * @param {number} start The start position.
     * @param {number} [end=array.length] The end position.
     * @returns {Array} Returns the cast slice.
     */
    function castSlice(array, start, end) {
      var length = array.length;
      end = end === undefined ? length : end;
      return (!start && end >= length) ? array : baseSlice(array, start, end);
    }

    /**
     * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).
     *
     * @private
     * @param {number|Object} id The timer id or timeout object of the timer to clear.
     */
    var clearTimeout = ctxClearTimeout || function(id) {
      return root.clearTimeout(id);
    };

    /**
     * Creates a clone of  `buffer`.
     *
     * @private
     * @param {Buffer} buffer The buffer to clone.
     * @param {boolean} [isDeep] Specify a deep clone.
     * @returns {Buffer} Returns the cloned buffer.
     */
    function cloneBuffer(buffer, isDeep) {
      if (isDeep) {
        return buffer.slice();
      }
      var length = buffer.length,
          result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);

      buffer.copy(result);
      return result;
    }

    /**
     * Creates a clone of `arrayBuffer`.
     *
     * @private
     * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
     * @returns {ArrayBuffer} Returns the cloned array buffer.
     */
    function cloneArrayBuffer(arrayBuffer) {
      var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
      new Uint8Array(result).set(new Uint8Array(arrayBuffer));
      return result;
    }

    /**
     * Creates a clone of `dataView`.
     *
     * @private
     * @param {Object} dataView The data view to clone.
     * @param {boolean} [isDeep] Specify a deep clone.
     * @returns {Object} Returns the cloned data view.
     */
    function cloneDataView(dataView, isDeep) {
      var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
      return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
    }

    /**
     * Creates a clone of `regexp`.
     *
     * @private
     * @param {Object} regexp The regexp to clone.
     * @returns {Object} Returns the cloned regexp.
     */
    function cloneRegExp(regexp) {
      var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
      result.lastIndex = regexp.lastIndex;
      return result;
    }

    /**
     * Creates a clone of the `symbol` object.
     *
     * @private
     * @param {Object} symbol The symbol object to clone.
     * @returns {Object} Returns the cloned symbol object.
     */
    function cloneSymbol(symbol) {
      return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
    }

    /**
     * Creates a clone of `typedArray`.
     *
     * @private
     * @param {Object} typedArray The typed array to clone.
     * @param {boolean} [isDeep] Specify a deep clone.
     * @returns {Object} Returns the cloned typed array.
     */
    function cloneTypedArray(typedArray, isDeep) {
      var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
      return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
    }

    /**
     * Compares values to sort them in ascending order.
     *
     * @private
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {number} Returns the sort order indicator for `value`.
     */
    function compareAscending(value, other) {
      if (value !== other) {
        var valIsDefined = value !== undefined,
            valIsNull = value === null,
            valIsReflexive = value === value,
            valIsSymbol = isSymbol(value);

        var othIsDefined = other !== undefined,
            othIsNull = other === null,
            othIsReflexive = other === other,
            othIsSymbol = isSymbol(other);

        if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
            (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
            (valIsNull && othIsDefined && othIsReflexive) ||
            (!valIsDefined && othIsReflexive) ||
            !valIsReflexive) {
          return 1;
        }
        if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
            (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
            (othIsNull && valIsDefined && valIsReflexive) ||
            (!othIsDefined && valIsReflexive) ||
            !othIsReflexive) {
          return -1;
        }
      }
      return 0;
    }

    /**
     * Used by `_.orderBy` to compare multiple properties of a value to another
     * and stable sort them.
     *
     * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
     * specify an order of "desc" for descending or "asc" for ascending sort order
     * of corresponding values.
     *
     * @private
     * @param {Object} object The object to compare.
     * @param {Object} other The other object to compare.
     * @param {boolean[]|string[]} orders The order to sort by for each property.
     * @returns {number} Returns the sort order indicator for `object`.
     */
    function compareMultiple(object, other, orders) {
      var index = -1,
          objCriteria = object.criteria,
          othCriteria = other.criteria,
          length = objCriteria.length,
          ordersLength = orders.length;

      while (++index < length) {
        var result = compareAscending(objCriteria[index], othCriteria[index]);
        if (result) {
          if (index >= ordersLength) {
            return result;
          }
          var order = orders[index];
          return result * (order == 'desc' ? -1 : 1);
        }
      }
      // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
      // that causes it, under certain circumstances, to provide the same value for
      // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
      // for more details.
      //
      // This also ensures a stable sort in V8 and other engines.
      // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
      return object.index - other.index;
    }

    /**
     * Creates an array that is the composition of partially applied arguments,
     * placeholders, and provided arguments into a single array of arguments.
     *
     * @private
     * @param {Array} args The provided arguments.
     * @param {Array} partials The arguments to prepend to those provided.
     * @param {Array} holders The `partials` placeholder indexes.
     * @params {boolean} [isCurried] Specify composing for a curried function.
     * @returns {Array} Returns the new array of composed arguments.
     */
    function composeArgs(args, partials, holders, isCurried) {
      var argsIndex = -1,
          argsLength = args.length,
          holdersLength = holders.length,
          leftIndex = -1,
          leftLength = partials.length,
          rangeLength = nativeMax(argsLength - holdersLength, 0),
          result = Array(leftLength + rangeLength),
          isUncurried = !isCurried;

      while (++leftIndex < leftLength) {
        result[leftIndex] = partials[leftIndex];
      }
      while (++argsIndex < holdersLength) {
        if (isUncurried || argsIndex < argsLength) {
          result[holders[argsIndex]] = args[argsIndex];
        }
      }
      while (rangeLength--) {
        result[leftIndex++] = args[argsIndex++];
      }
      return result;
    }

    /**
     * This function is like `composeArgs` except that the arguments composition
     * is tailored for `_.partialRight`.
     *
     * @private
     * @param {Array} args The provided arguments.
     * @param {Array} partials The arguments to append to those provided.
     * @param {Array} holders The `partials` placeholder indexes.
     * @params {boolean} [isCurried] Specify composing for a curried function.
     * @returns {Array} Returns the new array of composed arguments.
     */
    function composeArgsRight(args, partials, holders, isCurried) {
      var argsIndex = -1,
          argsLength = args.length,
          holdersIndex = -1,
          holdersLength = holders.length,
          rightIndex = -1,
          rightLength = partials.length,
          rangeLength = nativeMax(argsLength - holdersLength, 0),
          result = Array(rangeLength + rightLength),
          isUncurried = !isCurried;

      while (++argsIndex < rangeLength) {
        result[argsIndex] = args[argsIndex];
      }
      var offset = argsIndex;
      while (++rightIndex < rightLength) {
        result[offset + rightIndex] = partials[rightIndex];
      }
      while (++holdersIndex < holdersLength) {
        if (isUncurried || argsIndex < argsLength) {
          result[offset + holders[holdersIndex]] = args[argsIndex++];
        }
      }
      return result;
    }

    /**
     * Copies the values of `source` to `array`.
     *
     * @private
     * @param {Array} source The array to copy values from.
     * @param {Array} [array=[]] The array to copy values to.
     * @returns {Array} Returns `array`.
     */
    function copyArray(source, array) {
      var index = -1,
          length = source.length;

      array || (array = Array(length));
      while (++index < length) {
        array[index] = source[index];
      }
      return array;
    }

    /**
     * Copies properties of `source` to `object`.
     *
     * @private
     * @param {Object} source The object to copy properties from.
     * @param {Array} props The property identifiers to copy.
     * @param {Object} [object={}] The object to copy properties to.
     * @param {Function} [customizer] The function to customize copied values.
     * @returns {Object} Returns `object`.
     */
    function copyObject(source, props, object, customizer) {
      var isNew = !object;
      object || (object = {});

      var index = -1,
          length = props.length;

      while (++index < length) {
        var key = props[index];

        var newValue = customizer
          ? customizer(object[key], source[key], key, object, source)
          : undefined;

        if (newValue === undefined) {
          newValue = source[key];
        }
        if (isNew) {
          baseAssignValue(object, key, newValue);
        } else {
          assignValue(object, key, newValue);
        }
      }
      return object;
    }

    /**
     * Copies own symbols of `source` to `object`.
     *
     * @private
     * @param {Object} source The object to copy symbols from.
     * @param {Object} [object={}] The object to copy symbols to.
     * @returns {Object} Returns `object`.
     */
    function copySymbols(source, object) {
      return copyObject(source, getSymbols(source), object);
    }

    /**
     * Copies own and inherited symbols of `source` to `object`.
     *
     * @private
     * @param {Object} source The object to copy symbols from.
     * @param {Object} [object={}] The object to copy symbols to.
     * @returns {Object} Returns `object`.
     */
    function copySymbolsIn(source, object) {
      return copyObject(source, getSymbolsIn(source), object);
    }

    /**
     * Creates a function like `_.groupBy`.
     *
     * @private
     * @param {Function} setter The function to set accumulator values.
     * @param {Function} [initializer] The accumulator object initializer.
     * @returns {Function} Returns the new aggregator function.
     */
    function createAggregator(setter, initializer) {
      return function(collection, iteratee) {
        var func = isArray(collection) ? arrayAggregator : baseAggregator,
            accumulator = initializer ? initializer() : {};

        return func(collection, setter, getIteratee(iteratee, 2), accumulator);
      };
    }

    /**
     * Creates a function like `_.assign`.
     *
     * @private
     * @param {Function} assigner The function to assign values.
     * @returns {Function} Returns the new assigner function.
     */
    function createAssigner(assigner) {
      return baseRest(function(object, sources) {
        var index = -1,
            length = sources.length,
            customizer = length > 1 ? sources[length - 1] : undefined,
            guard = length > 2 ? sources[2] : undefined;

        customizer = (assigner.length > 3 && typeof customizer == 'function')
          ? (length--, customizer)
          : undefined;

        if (guard && isIterateeCall(sources[0], sources[1], guard)) {
          customizer = length < 3 ? undefined : customizer;
          length = 1;
        }
        object = Object(object);
        while (++index < length) {
          var source = sources[index];
          if (source) {
            assigner(object, source, index, customizer);
          }
        }
        return object;
      });
    }

    /**
     * Creates a `baseEach` or `baseEachRight` function.
     *
     * @private
     * @param {Function} eachFunc The function to iterate over a collection.
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Function} Returns the new base function.
     */
    function createBaseEach(eachFunc, fromRight) {
      return function(collection, iteratee) {
        if (collection == null) {
          return collection;
        }
        if (!isArrayLike(collection)) {
          return eachFunc(collection, iteratee);
        }
        var length = collection.length,
            index = fromRight ? length : -1,
            iterable = Object(collection);

        while ((fromRight ? index-- : ++index < length)) {
          if (iteratee(iterable[index], index, iterable) === false) {
            break;
          }
        }
        return collection;
      };
    }

    /**
     * Creates a base function for methods like `_.forIn` and `_.forOwn`.
     *
     * @private
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Function} Returns the new base function.
     */
    function createBaseFor(fromRight) {
      return function(object, iteratee, keysFunc) {
        var index = -1,
            iterable = Object(object),
            props = keysFunc(object),
            length = props.length;

        while (length--) {
          var key = props[fromRight ? length : ++index];
          if (iteratee(iterable[key], key, iterable) === false) {
            break;
          }
        }
        return object;
      };
    }

    /**
     * Creates a function that wraps `func` to invoke it with the optional `this`
     * binding of `thisArg`.
     *
     * @private
     * @param {Function} func The function to wrap.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @param {*} [thisArg] The `this` binding of `func`.
     * @returns {Function} Returns the new wrapped function.
     */
    function createBind(func, bitmask, thisArg) {
      var isBind = bitmask & WRAP_BIND_FLAG,
          Ctor = createCtor(func);

      function wrapper() {
        var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
        return fn.apply(isBind ? thisArg : this, arguments);
      }
      return wrapper;
    }

    /**
     * Creates a function like `_.lowerFirst`.
     *
     * @private
     * @param {string} methodName The name of the `String` case method to use.
     * @returns {Function} Returns the new case function.
     */
    function createCaseFirst(methodName) {
      return function(string) {
        string = toString(string);

        var strSymbols = hasUnicode(string)
          ? stringToArray(string)
          : undefined;

        var chr = strSymbols
          ? strSymbols[0]
          : string.charAt(0);

        var trailing = strSymbols
          ? castSlice(strSymbols, 1).join('')
          : string.slice(1);

        return chr[methodName]() + trailing;
      };
    }

    /**
     * Creates a function like `_.camelCase`.
     *
     * @private
     * @param {Function} callback The function to combine each word.
     * @returns {Function} Returns the new compounder function.
     */
    function createCompounder(callback) {
      return function(string) {
        return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
      };
    }

    /**
     * Creates a function that produces an instance of `Ctor` regardless of
     * whether it was invoked as part of a `new` expression or by `call` or `apply`.
     *
     * @private
     * @param {Function} Ctor The constructor to wrap.
     * @returns {Function} Returns the new wrapped function.
     */
    function createCtor(Ctor) {
      return function() {
        // Use a `switch` statement to work with class constructors. See
        // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
        // for more details.
        var args = arguments;
        switch (args.length) {
          case 0: return new Ctor;
          case 1: return new Ctor(args[0]);
          case 2: return new Ctor(args[0], args[1]);
          case 3: return new Ctor(args[0], args[1], args[2]);
          case 4: return new Ctor(args[0], args[1], args[2], args[3]);
          case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);
          case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);
          case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
        }
        var thisBinding = baseCreate(Ctor.prototype),
            result = Ctor.apply(thisBinding, args);

        // Mimic the constructor's `return` behavior.
        // See https://es5.github.io/#x13.2.2 for more details.
        return isObject(result) ? result : thisBinding;
      };
    }

    /**
     * Creates a function that wraps `func` to enable currying.
     *
     * @private
     * @param {Function} func The function to wrap.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @param {number} arity The arity of `func`.
     * @returns {Function} Returns the new wrapped function.
     */
    function createCurry(func, bitmask, arity) {
      var Ctor = createCtor(func);

      function wrapper() {
        var length = arguments.length,
            args = Array(length),
            index = length,
            placeholder = getHolder(wrapper);

        while (index--) {
          args[index] = arguments[index];
        }
        var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)
          ? []
          : replaceHolders(args, placeholder);

        length -= holders.length;
        if (length < arity) {
          return createRecurry(
            func, bitmask, createHybrid, wrapper.placeholder, undefined,
            args, holders, undefined, undefined, arity - length);
        }
        var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
        return apply(fn, this, args);
      }
      return wrapper;
    }

    /**
     * Creates a `_.find` or `_.findLast` function.
     *
     * @private
     * @param {Function} findIndexFunc The function to find the collection index.
     * @returns {Function} Returns the new find function.
     */
    function createFind(findIndexFunc) {
      return function(collection, predicate, fromIndex) {
        var iterable = Object(collection);
        if (!isArrayLike(collection)) {
          var iteratee = getIteratee(predicate, 3);
          collection = keys(collection);
          predicate = function(key) { return iteratee(iterable[key], key, iterable); };
        }
        var index = findIndexFunc(collection, predicate, fromIndex);
        return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
      };
    }

    /**
     * Creates a `_.flow` or `_.flowRight` function.
     *
     * @private
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Function} Returns the new flow function.
     */
    function createFlow(fromRight) {
      return flatRest(function(funcs) {
        var length = funcs.length,
            index = length,
            prereq = LodashWrapper.prototype.thru;

        if (fromRight) {
          funcs.reverse();
        }
        while (index--) {
          var func = funcs[index];
          if (typeof func != 'function') {
            throw new TypeError(FUNC_ERROR_TEXT);
          }
          if (prereq && !wrapper && getFuncName(func) == 'wrapper') {
            var wrapper = new LodashWrapper([], true);
          }
        }
        index = wrapper ? index : length;
        while (++index < length) {
          func = funcs[index];

          var funcName = getFuncName(func),
              data = funcName == 'wrapper' ? getData(func) : undefined;

          if (data && isLaziable(data[0]) &&
                data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&
                !data[4].length && data[9] == 1
              ) {
            wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
          } else {
            wrapper = (func.length == 1 && isLaziable(func))
              ? wrapper[funcName]()
              : wrapper.thru(func);
          }
        }
        return function() {
          var args = arguments,
              value = args[0];

          if (wrapper && args.length == 1 && isArray(value)) {
            return wrapper.plant(value).value();
          }
          var index = 0,
              result = length ? funcs[index].apply(this, args) : value;

          while (++index < length) {
            result = funcs[index].call(this, result);
          }
          return result;
        };
      });
    }

    /**
     * Creates a function that wraps `func` to invoke it with optional `this`
     * binding of `thisArg`, partial application, and currying.
     *
     * @private
     * @param {Function|string} func The function or method name to wrap.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @param {*} [thisArg] The `this` binding of `func`.
     * @param {Array} [partials] The arguments to prepend to those provided to
     *  the new function.
     * @param {Array} [holders] The `partials` placeholder indexes.
     * @param {Array} [partialsRight] The arguments to append to those provided
     *  to the new function.
     * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.
     * @param {Array} [argPos] The argument positions of the new function.
     * @param {number} [ary] The arity cap of `func`.
     * @param {number} [arity] The arity of `func`.
     * @returns {Function} Returns the new wrapped function.
     */
    function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {
      var isAry = bitmask & WRAP_ARY_FLAG,
          isBind = bitmask & WRAP_BIND_FLAG,
          isBindKey = bitmask & WRAP_BIND_KEY_FLAG,
          isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),
          isFlip = bitmask & WRAP_FLIP_FLAG,
          Ctor = isBindKey ? undefined : createCtor(func);

      function wrapper() {
        var length = arguments.length,
            args = Array(length),
            index = length;

        while (index--) {
          args[index] = arguments[index];
        }
        if (isCurried) {
          var placeholder = getHolder(wrapper),
              holdersCount = countHolders(args, placeholder);
        }
        if (partials) {
          args = composeArgs(args, partials, holders, isCurried);
        }
        if (partialsRight) {
          args = composeArgsRight(args, partialsRight, holdersRight, isCurried);
        }
        length -= holdersCount;
        if (isCurried && length < arity) {
          var newHolders = replaceHolders(args, placeholder);
          return createRecurry(
            func, bitmask, createHybrid, wrapper.placeholder, thisArg,
            args, newHolders, argPos, ary, arity - length
          );
        }
        var thisBinding = isBind ? thisArg : this,
            fn = isBindKey ? thisBinding[func] : func;

        length = args.length;
        if (argPos) {
          args = reorder(args, argPos);
        } else if (isFlip && length > 1) {
          args.reverse();
        }
        if (isAry && ary < length) {
          args.length = ary;
        }
        if (this && this !== root && this instanceof wrapper) {
          fn = Ctor || createCtor(fn);
        }
        return fn.apply(thisBinding, args);
      }
      return wrapper;
    }

    /**
     * Creates a function like `_.invertBy`.
     *
     * @private
     * @param {Function} setter The function to set accumulator values.
     * @param {Function} toIteratee The function to resolve iteratees.
     * @returns {Function} Returns the new inverter function.
     */
    function createInverter(setter, toIteratee) {
      return function(object, iteratee) {
        return baseInverter(object, setter, toIteratee(iteratee), {});
      };
    }

    /**
     * Creates a function that performs a mathematical operation on two values.
     *
     * @private
     * @param {Function} operator The function to perform the operation.
     * @param {number} [defaultValue] The value used for `undefined` arguments.
     * @returns {Function} Returns the new mathematical operation function.
     */
    function createMathOperation(operator, defaultValue) {
      return function(value, other) {
        var result;
        if (value === undefined && other === undefined) {
          return defaultValue;
        }
        if (value !== undefined) {
          result = value;
        }
        if (other !== undefined) {
          if (result === undefined) {
            return other;
          }
          if (typeof value == 'string' || typeof other == 'string') {
            value = baseToString(value);
            other = baseToString(other);
          } else {
            value = baseToNumber(value);
            other = baseToNumber(other);
          }
          result = operator(value, other);
        }
        return result;
      };
    }

    /**
     * Creates a function like `_.over`.
     *
     * @private
     * @param {Function} arrayFunc The function to iterate over iteratees.
     * @returns {Function} Returns the new over function.
     */
    function createOver(arrayFunc) {
      return flatRest(function(iteratees) {
        iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
        return baseRest(function(args) {
          var thisArg = this;
          return arrayFunc(iteratees, function(iteratee) {
            return apply(iteratee, thisArg, args);
          });
        });
      });
    }

    /**
     * Creates the padding for `string` based on `length`. The `chars` string
     * is truncated if the number of characters exceeds `length`.
     *
     * @private
     * @param {number} length The padding length.
     * @param {string} [chars=' '] The string used as padding.
     * @returns {string} Returns the padding for `string`.
     */
    function createPadding(length, chars) {
      chars = chars === undefined ? ' ' : baseToString(chars);

      var charsLength = chars.length;
      if (charsLength < 2) {
        return charsLength ? baseRepeat(chars, length) : chars;
      }
      var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));
      return hasUnicode(chars)
        ? castSlice(stringToArray(result), 0, length).join('')
        : result.slice(0, length);
    }

    /**
     * Creates a function that wraps `func` to invoke it with the `this` binding
     * of `thisArg` and `partials` prepended to the arguments it receives.
     *
     * @private
     * @param {Function} func The function to wrap.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @param {*} thisArg The `this` binding of `func`.
     * @param {Array} partials The arguments to prepend to those provided to
     *  the new function.
     * @returns {Function} Returns the new wrapped function.
     */
    function createPartial(func, bitmask, thisArg, partials) {
      var isBind = bitmask & WRAP_BIND_FLAG,
          Ctor = createCtor(func);

      function wrapper() {
        var argsIndex = -1,
            argsLength = arguments.length,
            leftIndex = -1,
            leftLength = partials.length,
            args = Array(leftLength + argsLength),
            fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;

        while (++leftIndex < leftLength) {
          args[leftIndex] = partials[leftIndex];
        }
        while (argsLength--) {
          args[leftIndex++] = arguments[++argsIndex];
        }
        return apply(fn, isBind ? thisArg : this, args);
      }
      return wrapper;
    }

    /**
     * Creates a `_.range` or `_.rangeRight` function.
     *
     * @private
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Function} Returns the new range function.
     */
    function createRange(fromRight) {
      return function(start, end, step) {
        if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
          end = step = undefined;
        }
        // Ensure the sign of `-0` is preserved.
        start = toFinite(start);
        if (end === undefined) {
          end = start;
          start = 0;
        } else {
          end = toFinite(end);
        }
        step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
        return baseRange(start, end, step, fromRight);
      };
    }

    /**
     * Creates a function that performs a relational operation on two values.
     *
     * @private
     * @param {Function} operator The function to perform the operation.
     * @returns {Function} Returns the new relational operation function.
     */
    function createRelationalOperation(operator) {
      return function(value, other) {
        if (!(typeof value == 'string' && typeof other == 'string')) {
          value = toNumber(value);
          other = toNumber(other);
        }
        return operator(value, other);
      };
    }

    /**
     * Creates a function that wraps `func` to continue currying.
     *
     * @private
     * @param {Function} func The function to wrap.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @param {Function} wrapFunc The function to create the `func` wrapper.
     * @param {*} placeholder The placeholder value.
     * @param {*} [thisArg] The `this` binding of `func`.
     * @param {Array} [partials] The arguments to prepend to those provided to
     *  the new function.
     * @param {Array} [holders] The `partials` placeholder indexes.
     * @param {Array} [argPos] The argument positions of the new function.
     * @param {number} [ary] The arity cap of `func`.
     * @param {number} [arity] The arity of `func`.
     * @returns {Function} Returns the new wrapped function.
     */
    function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {
      var isCurry = bitmask & WRAP_CURRY_FLAG,
          newHolders = isCurry ? holders : undefined,
          newHoldersRight = isCurry ? undefined : holders,
          newPartials = isCurry ? partials : undefined,
          newPartialsRight = isCurry ? undefined : partials;

      bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);
      bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);

      if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {
        bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);
      }
      var newData = [
        func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,
        newHoldersRight, argPos, ary, arity
      ];

      var result = wrapFunc.apply(undefined, newData);
      if (isLaziable(func)) {
        setData(result, newData);
      }
      result.placeholder = placeholder;
      return setWrapToString(result, func, bitmask);
    }

    /**
     * Creates a function like `_.round`.
     *
     * @private
     * @param {string} methodName The name of the `Math` method to use when rounding.
     * @returns {Function} Returns the new round function.
     */
    function createRound(methodName) {
      var func = Math[methodName];
      return function(number, precision) {
        number = toNumber(number);
        precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);
        if (precision && nativeIsFinite(number)) {
          // Shift with exponential notation to avoid floating-point issues.
          // See [MDN](https://mdn.io/round#Examples) for more details.
          var pair = (toString(number) + 'e').split('e'),
              value = func(pair[0] + 'e' + (+pair[1] + precision));

          pair = (toString(value) + 'e').split('e');
          return +(pair[0] + 'e' + (+pair[1] - precision));
        }
        return func(number);
      };
    }

    /**
     * Creates a set object of `values`.
     *
     * @private
     * @param {Array} values The values to add to the set.
     * @returns {Object} Returns the new set.
     */
    var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
      return new Set(values);
    };

    /**
     * Creates a `_.toPairs` or `_.toPairsIn` function.
     *
     * @private
     * @param {Function} keysFunc The function to get the keys of a given object.
     * @returns {Function} Returns the new pairs function.
     */
    function createToPairs(keysFunc) {
      return function(object) {
        var tag = getTag(object);
        if (tag == mapTag) {
          return mapToArray(object);
        }
        if (tag == setTag) {
          return setToPairs(object);
        }
        return baseToPairs(object, keysFunc(object));
      };
    }

    /**
     * Creates a function that either curries or invokes `func` with optional
     * `this` binding and partially applied arguments.
     *
     * @private
     * @param {Function|string} func The function or method name to wrap.
     * @param {number} bitmask The bitmask flags.
     *    1 - `_.bind`
     *    2 - `_.bindKey`
     *    4 - `_.curry` or `_.curryRight` of a bound function
     *    8 - `_.curry`
     *   16 - `_.curryRight`
     *   32 - `_.partial`
     *   64 - `_.partialRight`
     *  128 - `_.rearg`
     *  256 - `_.ary`
     *  512 - `_.flip`
     * @param {*} [thisArg] The `this` binding of `func`.
     * @param {Array} [partials] The arguments to be partially applied.
     * @param {Array} [holders] The `partials` placeholder indexes.
     * @param {Array} [argPos] The argument positions of the new function.
     * @param {number} [ary] The arity cap of `func`.
     * @param {number} [arity] The arity of `func`.
     * @returns {Function} Returns the new wrapped function.
     */
    function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {
      var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;
      if (!isBindKey && typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      var length = partials ? partials.length : 0;
      if (!length) {
        bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);
        partials = holders = undefined;
      }
      ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);
      arity = arity === undefined ? arity : toInteger(arity);
      length -= holders ? holders.length : 0;

      if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {
        var partialsRight = partials,
            holdersRight = holders;

        partials = holders = undefined;
      }
      var data = isBindKey ? undefined : getData(func);

      var newData = [
        func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,
        argPos, ary, arity
      ];

      if (data) {
        mergeData(newData, data);
      }
      func = newData[0];
      bitmask = newData[1];
      thisArg = newData[2];
      partials = newData[3];
      holders = newData[4];
      arity = newData[9] = newData[9] === undefined
        ? (isBindKey ? 0 : func.length)
        : nativeMax(newData[9] - length, 0);

      if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {
        bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);
      }
      if (!bitmask || bitmask == WRAP_BIND_FLAG) {
        var result = createBind(func, bitmask, thisArg);
      } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {
        result = createCurry(func, bitmask, arity);
      } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {
        result = createPartial(func, bitmask, thisArg, partials);
      } else {
        result = createHybrid.apply(undefined, newData);
      }
      var setter = data ? baseSetData : setData;
      return setWrapToString(setter(result, newData), func, bitmask);
    }

    /**
     * Used by `_.defaults` to customize its `_.assignIn` use to assign properties
     * of source objects to the destination object for all destination properties
     * that resolve to `undefined`.
     *
     * @private
     * @param {*} objValue The destination value.
     * @param {*} srcValue The source value.
     * @param {string} key The key of the property to assign.
     * @param {Object} object The parent object of `objValue`.
     * @returns {*} Returns the value to assign.
     */
    function customDefaultsAssignIn(objValue, srcValue, key, object) {
      if (objValue === undefined ||
          (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {
        return srcValue;
      }
      return objValue;
    }

    /**
     * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source
     * objects into destination objects that are passed thru.
     *
     * @private
     * @param {*} objValue The destination value.
     * @param {*} srcValue The source value.
     * @param {string} key The key of the property to merge.
     * @param {Object} object The parent object of `objValue`.
     * @param {Object} source The parent object of `srcValue`.
     * @param {Object} [stack] Tracks traversed source values and their merged
     *  counterparts.
     * @returns {*} Returns the value to assign.
     */
    function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {
      if (isObject(objValue) && isObject(srcValue)) {
        // Recursively merge objects and arrays (susceptible to call stack limits).
        stack.set(srcValue, objValue);
        baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);
        stack['delete'](srcValue);
      }
      return objValue;
    }

    /**
     * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
     * objects.
     *
     * @private
     * @param {*} value The value to inspect.
     * @param {string} key The key of the property to inspect.
     * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
     */
    function customOmitClone(value) {
      return isPlainObject(value) ? undefined : value;
    }

    /**
     * A specialized version of `baseIsEqualDeep` for arrays with support for
     * partial deep comparisons.
     *
     * @private
     * @param {Array} array The array to compare.
     * @param {Array} other The other array to compare.
     * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
     * @param {Function} customizer The function to customize comparisons.
     * @param {Function} equalFunc The function to determine equivalents of values.
     * @param {Object} stack Tracks traversed `array` and `other` objects.
     * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
     */
    function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
      var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
          arrLength = array.length,
          othLength = other.length;

      if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
        return false;
      }
      // Assume cyclic values are equal.
      var stacked = stack.get(array);
      if (stacked && stack.get(other)) {
        return stacked == other;
      }
      var index = -1,
          result = true,
          seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;

      stack.set(array, other);
      stack.set(other, array);

      // Ignore non-index properties.
      while (++index < arrLength) {
        var arrValue = array[index],
            othValue = other[index];

        if (customizer) {
          var compared = isPartial
            ? customizer(othValue, arrValue, index, other, array, stack)
            : customizer(arrValue, othValue, index, array, other, stack);
        }
        if (compared !== undefined) {
          if (compared) {
            continue;
          }
          result = false;
          break;
        }
        // Recursively compare arrays (susceptible to call stack limits).
        if (seen) {
          if (!arraySome(other, function(othValue, othIndex) {
                if (!cacheHas(seen, othIndex) &&
                    (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
                  return seen.push(othIndex);
                }
              })) {
            result = false;
            break;
          }
        } else if (!(
              arrValue === othValue ||
                equalFunc(arrValue, othValue, bitmask, customizer, stack)
            )) {
          result = false;
          break;
        }
      }
      stack['delete'](array);
      stack['delete'](other);
      return result;
    }

    /**
     * A specialized version of `baseIsEqualDeep` for comparing objects of
     * the same `toStringTag`.
     *
     * **Note:** This function only supports comparing values with tags of
     * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
     *
     * @private
     * @param {Object} object The object to compare.
     * @param {Object} other The other object to compare.
     * @param {string} tag The `toStringTag` of the objects to compare.
     * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
     * @param {Function} customizer The function to customize comparisons.
     * @param {Function} equalFunc The function to determine equivalents of values.
     * @param {Object} stack Tracks traversed `object` and `other` objects.
     * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
     */
    function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
      switch (tag) {
        case dataViewTag:
          if ((object.byteLength != other.byteLength) ||
              (object.byteOffset != other.byteOffset)) {
            return false;
          }
          object = object.buffer;
          other = other.buffer;

        case arrayBufferTag:
          if ((object.byteLength != other.byteLength) ||
              !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
            return false;
          }
          return true;

        case boolTag:
        case dateTag:
        case numberTag:
          // Coerce booleans to `1` or `0` and dates to milliseconds.
          // Invalid dates are coerced to `NaN`.
          return eq(+object, +other);

        case errorTag:
          return object.name == other.name && object.message == other.message;

        case regexpTag:
        case stringTag:
          // Coerce regexes to strings and treat strings, primitives and objects,
          // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
          // for more details.
          return object == (other + '');

        case mapTag:
          var convert = mapToArray;

        case setTag:
          var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
          convert || (convert = setToArray);

          if (object.size != other.size && !isPartial) {
            return false;
          }
          // Assume cyclic values are equal.
          var stacked = stack.get(object);
          if (stacked) {
            return stacked == other;
          }
          bitmask |= COMPARE_UNORDERED_FLAG;

          // Recursively compare objects (susceptible to call stack limits).
          stack.set(object, other);
          var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
          stack['delete'](object);
          return result;

        case symbolTag:
          if (symbolValueOf) {
            return symbolValueOf.call(object) == symbolValueOf.call(other);
          }
      }
      return false;
    }

    /**
     * A specialized version of `baseIsEqualDeep` for objects with support for
     * partial deep comparisons.
     *
     * @private
     * @param {Object} object The object to compare.
     * @param {Object} other The other object to compare.
     * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
     * @param {Function} customizer The function to customize comparisons.
     * @param {Function} equalFunc The function to determine equivalents of values.
     * @param {Object} stack Tracks traversed `object` and `other` objects.
     * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
     */
    function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
      var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
          objProps = getAllKeys(object),
          objLength = objProps.length,
          othProps = getAllKeys(other),
          othLength = othProps.length;

      if (objLength != othLength && !isPartial) {
        return false;
      }
      var index = objLength;
      while (index--) {
        var key = objProps[index];
        if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
          return false;
        }
      }
      // Assume cyclic values are equal.
      var stacked = stack.get(object);
      if (stacked && stack.get(other)) {
        return stacked == other;
      }
      var result = true;
      stack.set(object, other);
      stack.set(other, object);

      var skipCtor = isPartial;
      while (++index < objLength) {
        key = objProps[index];
        var objValue = object[key],
            othValue = other[key];

        if (customizer) {
          var compared = isPartial
            ? customizer(othValue, objValue, key, other, object, stack)
            : customizer(objValue, othValue, key, object, other, stack);
        }
        // Recursively compare objects (susceptible to call stack limits).
        if (!(compared === undefined
              ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
              : compared
            )) {
          result = false;
          break;
        }
        skipCtor || (skipCtor = key == 'constructor');
      }
      if (result && !skipCtor) {
        var objCtor = object.constructor,
            othCtor = other.constructor;

        // Non `Object` object instances with different constructors are not equal.
        if (objCtor != othCtor &&
            ('constructor' in object && 'constructor' in other) &&
            !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
              typeof othCtor == 'function' && othCtor instanceof othCtor)) {
          result = false;
        }
      }
      stack['delete'](object);
      stack['delete'](other);
      return result;
    }

    /**
     * A specialized version of `baseRest` which flattens the rest array.
     *
     * @private
     * @param {Function} func The function to apply a rest parameter to.
     * @returns {Function} Returns the new function.
     */
    function flatRest(func) {
      return setToString(overRest(func, undefined, flatten), func + '');
    }

    /**
     * Creates an array of own enumerable property names and symbols of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names and symbols.
     */
    function getAllKeys(object) {
      return baseGetAllKeys(object, keys, getSymbols);
    }

    /**
     * Creates an array of own and inherited enumerable property names and
     * symbols of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names and symbols.
     */
    function getAllKeysIn(object) {
      return baseGetAllKeys(object, keysIn, getSymbolsIn);
    }

    /**
     * Gets metadata for `func`.
     *
     * @private
     * @param {Function} func The function to query.
     * @returns {*} Returns the metadata for `func`.
     */
    var getData = !metaMap ? noop : function(func) {
      return metaMap.get(func);
    };

    /**
     * Gets the name of `func`.
     *
     * @private
     * @param {Function} func The function to query.
     * @returns {string} Returns the function name.
     */
    function getFuncName(func) {
      var result = (func.name + ''),
          array = realNames[result],
          length = hasOwnProperty.call(realNames, result) ? array.length : 0;

      while (length--) {
        var data = array[length],
            otherFunc = data.func;
        if (otherFunc == null || otherFunc == func) {
          return data.name;
        }
      }
      return result;
    }

    /**
     * Gets the argument placeholder value for `func`.
     *
     * @private
     * @param {Function} func The function to inspect.
     * @returns {*} Returns the placeholder value.
     */
    function getHolder(func) {
      var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;
      return object.placeholder;
    }

    /**
     * Gets the appropriate "iteratee" function. If `_.iteratee` is customized,
     * this function returns the custom method, otherwise it returns `baseIteratee`.
     * If arguments are provided, the chosen function is invoked with them and
     * its result is returned.
     *
     * @private
     * @param {*} [value] The value to convert to an iteratee.
     * @param {number} [arity] The arity of the created iteratee.
     * @returns {Function} Returns the chosen function or its result.
     */
    function getIteratee() {
      var result = lodash.iteratee || iteratee;
      result = result === iteratee ? baseIteratee : result;
      return arguments.length ? result(arguments[0], arguments[1]) : result;
    }

    /**
     * Gets the data for `map`.
     *
     * @private
     * @param {Object} map The map to query.
     * @param {string} key The reference key.
     * @returns {*} Returns the map data.
     */
    function getMapData(map, key) {
      var data = map.__data__;
      return isKeyable(key)
        ? data[typeof key == 'string' ? 'string' : 'hash']
        : data.map;
    }

    /**
     * Gets the property names, values, and compare flags of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the match data of `object`.
     */
    function getMatchData(object) {
      var result = keys(object),
          length = result.length;

      while (length--) {
        var key = result[length],
            value = object[key];

        result[length] = [key, value, isStrictComparable(value)];
      }
      return result;
    }

    /**
     * Gets the native function at `key` of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @param {string} key The key of the method to get.
     * @returns {*} Returns the function if it's native, else `undefined`.
     */
    function getNative(object, key) {
      var value = getValue(object, key);
      return baseIsNative(value) ? value : undefined;
    }

    /**
     * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
     *
     * @private
     * @param {*} value The value to query.
     * @returns {string} Returns the raw `toStringTag`.
     */
    function getRawTag(value) {
      var isOwn = hasOwnProperty.call(value, symToStringTag),
          tag = value[symToStringTag];

      try {
        value[symToStringTag] = undefined;
        var unmasked = true;
      } catch (e) {}

      var result = nativeObjectToString.call(value);
      if (unmasked) {
        if (isOwn) {
          value[symToStringTag] = tag;
        } else {
          delete value[symToStringTag];
        }
      }
      return result;
    }

    /**
     * Creates an array of the own enumerable symbols of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of symbols.
     */
    var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
      if (object == null) {
        return [];
      }
      object = Object(object);
      return arrayFilter(nativeGetSymbols(object), function(symbol) {
        return propertyIsEnumerable.call(object, symbol);
      });
    };

    /**
     * Creates an array of the own and inherited enumerable symbols of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of symbols.
     */
    var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
      var result = [];
      while (object) {
        arrayPush(result, getSymbols(object));
        object = getPrototype(object);
      }
      return result;
    };

    /**
     * Gets the `toStringTag` of `value`.
     *
     * @private
     * @param {*} value The value to query.
     * @returns {string} Returns the `toStringTag`.
     */
    var getTag = baseGetTag;

    // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
    if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
        (Map && getTag(new Map) != mapTag) ||
        (Promise && getTag(Promise.resolve()) != promiseTag) ||
        (Set && getTag(new Set) != setTag) ||
        (WeakMap && getTag(new WeakMap) != weakMapTag)) {
      getTag = function(value) {
        var result = baseGetTag(value),
            Ctor = result == objectTag ? value.constructor : undefined,
            ctorString = Ctor ? toSource(Ctor) : '';

        if (ctorString) {
          switch (ctorString) {
            case dataViewCtorString: return dataViewTag;
            case mapCtorString: return mapTag;
            case promiseCtorString: return promiseTag;
            case setCtorString: return setTag;
            case weakMapCtorString: return weakMapTag;
          }
        }
        return result;
      };
    }

    /**
     * Gets the view, applying any `transforms` to the `start` and `end` positions.
     *
     * @private
     * @param {number} start The start of the view.
     * @param {number} end The end of the view.
     * @param {Array} transforms The transformations to apply to the view.
     * @returns {Object} Returns an object containing the `start` and `end`
     *  positions of the view.
     */
    function getView(start, end, transforms) {
      var index = -1,
          length = transforms.length;

      while (++index < length) {
        var data = transforms[index],
            size = data.size;

        switch (data.type) {
          case 'drop':      start += size; break;
          case 'dropRight': end -= size; break;
          case 'take':      end = nativeMin(end, start + size); break;
          case 'takeRight': start = nativeMax(start, end - size); break;
        }
      }
      return { 'start': start, 'end': end };
    }

    /**
     * Extracts wrapper details from the `source` body comment.
     *
     * @private
     * @param {string} source The source to inspect.
     * @returns {Array} Returns the wrapper details.
     */
    function getWrapDetails(source) {
      var match = source.match(reWrapDetails);
      return match ? match[1].split(reSplitDetails) : [];
    }

    /**
     * Checks if `path` exists on `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @param {Array|string} path The path to check.
     * @param {Function} hasFunc The function to check properties.
     * @returns {boolean} Returns `true` if `path` exists, else `false`.
     */
    function hasPath(object, path, hasFunc) {
      path = castPath(path, object);

      var index = -1,
          length = path.length,
          result = false;

      while (++index < length) {
        var key = toKey(path[index]);
        if (!(result = object != null && hasFunc(object, key))) {
          break;
        }
        object = object[key];
      }
      if (result || ++index != length) {
        return result;
      }
      length = object == null ? 0 : object.length;
      return !!length && isLength(length) && isIndex(key, length) &&
        (isArray(object) || isArguments(object));
    }

    /**
     * Initializes an array clone.
     *
     * @private
     * @param {Array} array The array to clone.
     * @returns {Array} Returns the initialized clone.
     */
    function initCloneArray(array) {
      var length = array.length,
          result = new array.constructor(length);

      // Add properties assigned by `RegExp#exec`.
      if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
        result.index = array.index;
        result.input = array.input;
      }
      return result;
    }

    /**
     * Initializes an object clone.
     *
     * @private
     * @param {Object} object The object to clone.
     * @returns {Object} Returns the initialized clone.
     */
    function initCloneObject(object) {
      return (typeof object.constructor == 'function' && !isPrototype(object))
        ? baseCreate(getPrototype(object))
        : {};
    }

    /**
     * Initializes an object clone based on its `toStringTag`.
     *
     * **Note:** This function only supports cloning values with tags of
     * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
     *
     * @private
     * @param {Object} object The object to clone.
     * @param {string} tag The `toStringTag` of the object to clone.
     * @param {boolean} [isDeep] Specify a deep clone.
     * @returns {Object} Returns the initialized clone.
     */
    function initCloneByTag(object, tag, isDeep) {
      var Ctor = object.constructor;
      switch (tag) {
        case arrayBufferTag:
          return cloneArrayBuffer(object);

        case boolTag:
        case dateTag:
          return new Ctor(+object);

        case dataViewTag:
          return cloneDataView(object, isDeep);

        case float32Tag: case float64Tag:
        case int8Tag: case int16Tag: case int32Tag:
        case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
          return cloneTypedArray(object, isDeep);

        case mapTag:
          return new Ctor;

        case numberTag:
        case stringTag:
          return new Ctor(object);

        case regexpTag:
          return cloneRegExp(object);

        case setTag:
          return new Ctor;

        case symbolTag:
          return cloneSymbol(object);
      }
    }

    /**
     * Inserts wrapper `details` in a comment at the top of the `source` body.
     *
     * @private
     * @param {string} source The source to modify.
     * @returns {Array} details The details to insert.
     * @returns {string} Returns the modified source.
     */
    function insertWrapDetails(source, details) {
      var length = details.length;
      if (!length) {
        return source;
      }
      var lastIndex = length - 1;
      details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];
      details = details.join(length > 2 ? ', ' : ' ');
      return source.replace(reWrapComment, '{\n/* [wrapped with ' + details + '] */\n');
    }

    /**
     * Checks if `value` is a flattenable `arguments` object or array.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
     */
    function isFlattenable(value) {
      return isArray(value) || isArguments(value) ||
        !!(spreadableSymbol && value && value[spreadableSymbol]);
    }

    /**
     * Checks if `value` is a valid array-like index.
     *
     * @private
     * @param {*} value The value to check.
     * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
     * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
     */
    function isIndex(value, length) {
      var type = typeof value;
      length = length == null ? MAX_SAFE_INTEGER : length;

      return !!length &&
        (type == 'number' ||
          (type != 'symbol' && reIsUint.test(value))) &&
            (value > -1 && value % 1 == 0 && value < length);
    }

    /**
     * Checks if the given arguments are from an iteratee call.
     *
     * @private
     * @param {*} value The potential iteratee value argument.
     * @param {*} index The potential iteratee index or key argument.
     * @param {*} object The potential iteratee object argument.
     * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
     *  else `false`.
     */
    function isIterateeCall(value, index, object) {
      if (!isObject(object)) {
        return false;
      }
      var type = typeof index;
      if (type == 'number'
            ? (isArrayLike(object) && isIndex(index, object.length))
            : (type == 'string' && index in object)
          ) {
        return eq(object[index], value);
      }
      return false;
    }

    /**
     * Checks if `value` is a property name and not a property path.
     *
     * @private
     * @param {*} value The value to check.
     * @param {Object} [object] The object to query keys on.
     * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
     */
    function isKey(value, object) {
      if (isArray(value)) {
        return false;
      }
      var type = typeof value;
      if (type == 'number' || type == 'symbol' || type == 'boolean' ||
          value == null || isSymbol(value)) {
        return true;
      }
      return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
        (object != null && value in Object(object));
    }

    /**
     * Checks if `value` is suitable for use as unique object key.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
     */
    function isKeyable(value) {
      var type = typeof value;
      return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
        ? (value !== '__proto__')
        : (value === null);
    }

    /**
     * Checks if `func` has a lazy counterpart.
     *
     * @private
     * @param {Function} func The function to check.
     * @returns {boolean} Returns `true` if `func` has a lazy counterpart,
     *  else `false`.
     */
    function isLaziable(func) {
      var funcName = getFuncName(func),
          other = lodash[funcName];

      if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {
        return false;
      }
      if (func === other) {
        return true;
      }
      var data = getData(other);
      return !!data && func === data[0];
    }

    /**
     * Checks if `func` has its source masked.
     *
     * @private
     * @param {Function} func The function to check.
     * @returns {boolean} Returns `true` if `func` is masked, else `false`.
     */
    function isMasked(func) {
      return !!maskSrcKey && (maskSrcKey in func);
    }

    /**
     * Checks if `func` is capable of being masked.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `func` is maskable, else `false`.
     */
    var isMaskable = coreJsData ? isFunction : stubFalse;

    /**
     * Checks if `value` is likely a prototype object.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
     */
    function isPrototype(value) {
      var Ctor = value && value.constructor,
          proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;

      return value === proto;
    }

    /**
     * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` if suitable for strict
     *  equality comparisons, else `false`.
     */
    function isStrictComparable(value) {
      return value === value && !isObject(value);
    }

    /**
     * A specialized version of `matchesProperty` for source values suitable
     * for strict equality comparisons, i.e. `===`.
     *
     * @private
     * @param {string} key The key of the property to get.
     * @param {*} srcValue The value to match.
     * @returns {Function} Returns the new spec function.
     */
    function matchesStrictComparable(key, srcValue) {
      return function(object) {
        if (object == null) {
          return false;
        }
        return object[key] === srcValue &&
          (srcValue !== undefined || (key in Object(object)));
      };
    }

    /**
     * A specialized version of `_.memoize` which clears the memoized function's
     * cache when it exceeds `MAX_MEMOIZE_SIZE`.
     *
     * @private
     * @param {Function} func The function to have its output memoized.
     * @returns {Function} Returns the new memoized function.
     */
    function memoizeCapped(func) {
      var result = memoize(func, function(key) {
        if (cache.size === MAX_MEMOIZE_SIZE) {
          cache.clear();
        }
        return key;
      });

      var cache = result.cache;
      return result;
    }

    /**
     * Merges the function metadata of `source` into `data`.
     *
     * Merging metadata reduces the number of wrappers used to invoke a function.
     * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`
     * may be applied regardless of execution order. Methods like `_.ary` and
     * `_.rearg` modify function arguments, making the order in which they are
     * executed important, preventing the merging of metadata. However, we make
     * an exception for a safe combined case where curried functions have `_.ary`
     * and or `_.rearg` applied.
     *
     * @private
     * @param {Array} data The destination metadata.
     * @param {Array} source The source metadata.
     * @returns {Array} Returns `data`.
     */
    function mergeData(data, source) {
      var bitmask = data[1],
          srcBitmask = source[1],
          newBitmask = bitmask | srcBitmask,
          isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);

      var isCombo =
        ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||
        ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||
        ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));

      // Exit early if metadata can't be merged.
      if (!(isCommon || isCombo)) {
        return data;
      }
      // Use source `thisArg` if available.
      if (srcBitmask & WRAP_BIND_FLAG) {
        data[2] = source[2];
        // Set when currying a bound function.
        newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;
      }
      // Compose partial arguments.
      var value = source[3];
      if (value) {
        var partials = data[3];
        data[3] = partials ? composeArgs(partials, value, source[4]) : value;
        data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];
      }
      // Compose partial right arguments.
      value = source[5];
      if (value) {
        partials = data[5];
        data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;
        data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];
      }
      // Use source `argPos` if available.
      value = source[7];
      if (value) {
        data[7] = value;
      }
      // Use source `ary` if it's smaller.
      if (srcBitmask & WRAP_ARY_FLAG) {
        data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);
      }
      // Use source `arity` if one is not provided.
      if (data[9] == null) {
        data[9] = source[9];
      }
      // Use source `func` and merge bitmasks.
      data[0] = source[0];
      data[1] = newBitmask;

      return data;
    }

    /**
     * This function is like
     * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
     * except that it includes inherited enumerable properties.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names.
     */
    function nativeKeysIn(object) {
      var result = [];
      if (object != null) {
        for (var key in Object(object)) {
          result.push(key);
        }
      }
      return result;
    }

    /**
     * Converts `value` to a string using `Object.prototype.toString`.
     *
     * @private
     * @param {*} value The value to convert.
     * @returns {string} Returns the converted string.
     */
    function objectToString(value) {
      return nativeObjectToString.call(value);
    }

    /**
     * A specialized version of `baseRest` which transforms the rest array.
     *
     * @private
     * @param {Function} func The function to apply a rest parameter to.
     * @param {number} [start=func.length-1] The start position of the rest parameter.
     * @param {Function} transform The rest array transform.
     * @returns {Function} Returns the new function.
     */
    function overRest(func, start, transform) {
      start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
      return function() {
        var args = arguments,
            index = -1,
            length = nativeMax(args.length - start, 0),
            array = Array(length);

        while (++index < length) {
          array[index] = args[start + index];
        }
        index = -1;
        var otherArgs = Array(start + 1);
        while (++index < start) {
          otherArgs[index] = args[index];
        }
        otherArgs[start] = transform(array);
        return apply(func, this, otherArgs);
      };
    }

    /**
     * Gets the parent value at `path` of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @param {Array} path The path to get the parent value of.
     * @returns {*} Returns the parent value.
     */
    function parent(object, path) {
      return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
    }

    /**
     * Reorder `array` according to the specified indexes where the element at
     * the first index is assigned as the first element, the element at
     * the second index is assigned as the second element, and so on.
     *
     * @private
     * @param {Array} array The array to reorder.
     * @param {Array} indexes The arranged array indexes.
     * @returns {Array} Returns `array`.
     */
    function reorder(array, indexes) {
      var arrLength = array.length,
          length = nativeMin(indexes.length, arrLength),
          oldArray = copyArray(array);

      while (length--) {
        var index = indexes[length];
        array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;
      }
      return array;
    }

    /**
     * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
     *
     * @private
     * @param {Object} object The object to query.
     * @param {string} key The key of the property to get.
     * @returns {*} Returns the property value.
     */
    function safeGet(object, key) {
      if (key === 'constructor' && typeof object[key] === 'function') {
        return;
      }

      if (key == '__proto__') {
        return;
      }

      return object[key];
    }

    /**
     * Sets metadata for `func`.
     *
     * **Note:** If this function becomes hot, i.e. is invoked a lot in a short
     * period of time, it will trip its breaker and transition to an identity
     * function to avoid garbage collection pauses in V8. See
     * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)
     * for more details.
     *
     * @private
     * @param {Function} func The function to associate metadata with.
     * @param {*} data The metadata.
     * @returns {Function} Returns `func`.
     */
    var setData = shortOut(baseSetData);

    /**
     * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).
     *
     * @private
     * @param {Function} func The function to delay.
     * @param {number} wait The number of milliseconds to delay invocation.
     * @returns {number|Object} Returns the timer id or timeout object.
     */
    var setTimeout = ctxSetTimeout || function(func, wait) {
      return root.setTimeout(func, wait);
    };

    /**
     * Sets the `toString` method of `func` to return `string`.
     *
     * @private
     * @param {Function} func The function to modify.
     * @param {Function} string The `toString` result.
     * @returns {Function} Returns `func`.
     */
    var setToString = shortOut(baseSetToString);

    /**
     * Sets the `toString` method of `wrapper` to mimic the source of `reference`
     * with wrapper details in a comment at the top of the source body.
     *
     * @private
     * @param {Function} wrapper The function to modify.
     * @param {Function} reference The reference function.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @returns {Function} Returns `wrapper`.
     */
    function setWrapToString(wrapper, reference, bitmask) {
      var source = (reference + '');
      return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));
    }

    /**
     * Creates a function that'll short out and invoke `identity` instead
     * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
     * milliseconds.
     *
     * @private
     * @param {Function} func The function to restrict.
     * @returns {Function} Returns the new shortable function.
     */
    function shortOut(func) {
      var count = 0,
          lastCalled = 0;

      return function() {
        var stamp = nativeNow(),
            remaining = HOT_SPAN - (stamp - lastCalled);

        lastCalled = stamp;
        if (remaining > 0) {
          if (++count >= HOT_COUNT) {
            return arguments[0];
          }
        } else {
          count = 0;
        }
        return func.apply(undefined, arguments);
      };
    }

    /**
     * A specialized version of `_.shuffle` which mutates and sets the size of `array`.
     *
     * @private
     * @param {Array} array The array to shuffle.
     * @param {number} [size=array.length] The size of `array`.
     * @returns {Array} Returns `array`.
     */
    function shuffleSelf(array, size) {
      var index = -1,
          length = array.length,
          lastIndex = length - 1;

      size = size === undefined ? length : size;
      while (++index < size) {
        var rand = baseRandom(index, lastIndex),
            value = array[rand];

        array[rand] = array[index];
        array[index] = value;
      }
      array.length = size;
      return array;
    }

    /**
     * Converts `string` to a property path array.
     *
     * @private
     * @param {string} string The string to convert.
     * @returns {Array} Returns the property path array.
     */
    var stringToPath = memoizeCapped(function(string) {
      var result = [];
      if (string.charCodeAt(0) === 46 /* . */) {
        result.push('');
      }
      string.replace(rePropName, function(match, number, quote, subString) {
        result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
      });
      return result;
    });

    /**
     * Converts `value` to a string key if it's not a string or symbol.
     *
     * @private
     * @param {*} value The value to inspect.
     * @returns {string|symbol} Returns the key.
     */
    function toKey(value) {
      if (typeof value == 'string' || isSymbol(value)) {
        return value;
      }
      var result = (value + '');
      return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
    }

    /**
     * Converts `func` to its source code.
     *
     * @private
     * @param {Function} func The function to convert.
     * @returns {string} Returns the source code.
     */
    function toSource(func) {
      if (func != null) {
        try {
          return funcToString.call(func);
        } catch (e) {}
        try {
          return (func + '');
        } catch (e) {}
      }
      return '';
    }

    /**
     * Updates wrapper `details` based on `bitmask` flags.
     *
     * @private
     * @returns {Array} details The details to modify.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @returns {Array} Returns `details`.
     */
    function updateWrapDetails(details, bitmask) {
      arrayEach(wrapFlags, function(pair) {
        var value = '_.' + pair[0];
        if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {
          details.push(value);
        }
      });
      return details.sort();
    }

    /**
     * Creates a clone of `wrapper`.
     *
     * @private
     * @param {Object} wrapper The wrapper to clone.
     * @returns {Object} Returns the cloned wrapper.
     */
    function wrapperClone(wrapper) {
      if (wrapper instanceof LazyWrapper) {
        return wrapper.clone();
      }
      var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);
      result.__actions__ = copyArray(wrapper.__actions__);
      result.__index__  = wrapper.__index__;
      result.__values__ = wrapper.__values__;
      return result;
    }

    /*------------------------------------------------------------------------*/

    /**
     * Creates an array of elements split into groups the length of `size`.
     * If `array` can't be split evenly, the final chunk will be the remaining
     * elements.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to process.
     * @param {number} [size=1] The length of each chunk
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the new array of chunks.
     * @example
     *
     * _.chunk(['a', 'b', 'c', 'd'], 2);
     * // => [['a', 'b'], ['c', 'd']]
     *
     * _.chunk(['a', 'b', 'c', 'd'], 3);
     * // => [['a', 'b', 'c'], ['d']]
     */
    function chunk(array, size, guard) {
      if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {
        size = 1;
      } else {
        size = nativeMax(toInteger(size), 0);
      }
      var length = array == null ? 0 : array.length;
      if (!length || size < 1) {
        return [];
      }
      var index = 0,
          resIndex = 0,
          result = Array(nativeCeil(length / size));

      while (index < length) {
        result[resIndex++] = baseSlice(array, index, (index += size));
      }
      return result;
    }

    /**
     * Creates an array with all falsey values removed. The values `false`, `null`,
     * `0`, `""`, `undefined`, and `NaN` are falsey.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to compact.
     * @returns {Array} Returns the new array of filtered values.
     * @example
     *
     * _.compact([0, 1, false, 2, '', 3]);
     * // => [1, 2, 3]
     */
    function compact(array) {
      var index = -1,
          length = array == null ? 0 : array.length,
          resIndex = 0,
          result = [];

      while (++index < length) {
        var value = array[index];
        if (value) {
          result[resIndex++] = value;
        }
      }
      return result;
    }

    /**
     * Creates a new array concatenating `array` with any additional arrays
     * and/or values.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to concatenate.
     * @param {...*} [values] The values to concatenate.
     * @returns {Array} Returns the new concatenated array.
     * @example
     *
     * var array = [1];
     * var other = _.concat(array, 2, [3], [[4]]);
     *
     * console.log(other);
     * // => [1, 2, 3, [4]]
     *
     * console.log(array);
     * // => [1]
     */
    function concat() {
      var length = arguments.length;
      if (!length) {
        return [];
      }
      var args = Array(length - 1),
          array = arguments[0],
          index = length;

      while (index--) {
        args[index - 1] = arguments[index];
      }
      return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));
    }

    /**
     * Creates an array of `array` values not included in the other given arrays
     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons. The order and references of result values are
     * determined by the first array.
     *
     * **Note:** Unlike `_.pullAll`, this method returns a new array.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {...Array} [values] The values to exclude.
     * @returns {Array} Returns the new array of filtered values.
     * @see _.without, _.xor
     * @example
     *
     * _.difference([2, 1], [2, 3]);
     * // => [1]
     */
    var difference = baseRest(function(array, values) {
      return isArrayLikeObject(array)
        ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))
        : [];
    });

    /**
     * This method is like `_.difference` except that it accepts `iteratee` which
     * is invoked for each element of `array` and `values` to generate the criterion
     * by which they're compared. The order and references of result values are
     * determined by the first array. The iteratee is invoked with one argument:
     * (value).
     *
     * **Note:** Unlike `_.pullAllBy`, this method returns a new array.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {...Array} [values] The values to exclude.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns the new array of filtered values.
     * @example
     *
     * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);
     * // => [1.2]
     *
     * // The `_.property` iteratee shorthand.
     * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');
     * // => [{ 'x': 2 }]
     */
    var differenceBy = baseRest(function(array, values) {
      var iteratee = last(values);
      if (isArrayLikeObject(iteratee)) {
        iteratee = undefined;
      }
      return isArrayLikeObject(array)
        ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2))
        : [];
    });

    /**
     * This method is like `_.difference` except that it accepts `comparator`
     * which is invoked to compare elements of `array` to `values`. The order and
     * references of result values are determined by the first array. The comparator
     * is invoked with two arguments: (arrVal, othVal).
     *
     * **Note:** Unlike `_.pullAllWith`, this method returns a new array.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {...Array} [values] The values to exclude.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of filtered values.
     * @example
     *
     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
     *
     * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);
     * // => [{ 'x': 2, 'y': 1 }]
     */
    var differenceWith = baseRest(function(array, values) {
      var comparator = last(values);
      if (isArrayLikeObject(comparator)) {
        comparator = undefined;
      }
      return isArrayLikeObject(array)
        ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)
        : [];
    });

    /**
     * Creates a slice of `array` with `n` elements dropped from the beginning.
     *
     * @static
     * @memberOf _
     * @since 0.5.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {number} [n=1] The number of elements to drop.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.drop([1, 2, 3]);
     * // => [2, 3]
     *
     * _.drop([1, 2, 3], 2);
     * // => [3]
     *
     * _.drop([1, 2, 3], 5);
     * // => []
     *
     * _.drop([1, 2, 3], 0);
     * // => [1, 2, 3]
     */
    function drop(array, n, guard) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return [];
      }
      n = (guard || n === undefined) ? 1 : toInteger(n);
      return baseSlice(array, n < 0 ? 0 : n, length);
    }

    /**
     * Creates a slice of `array` with `n` elements dropped from the end.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {number} [n=1] The number of elements to drop.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.dropRight([1, 2, 3]);
     * // => [1, 2]
     *
     * _.dropRight([1, 2, 3], 2);
     * // => [1]
     *
     * _.dropRight([1, 2, 3], 5);
     * // => []
     *
     * _.dropRight([1, 2, 3], 0);
     * // => [1, 2, 3]
     */
    function dropRight(array, n, guard) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return [];
      }
      n = (guard || n === undefined) ? 1 : toInteger(n);
      n = length - n;
      return baseSlice(array, 0, n < 0 ? 0 : n);
    }

    /**
     * Creates a slice of `array` excluding elements dropped from the end.
     * Elements are dropped until `predicate` returns falsey. The predicate is
     * invoked with three arguments: (value, index, array).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': true },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': false }
     * ];
     *
     * _.dropRightWhile(users, function(o) { return !o.active; });
     * // => objects for ['barney']
     *
     * // The `_.matches` iteratee shorthand.
     * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });
     * // => objects for ['barney', 'fred']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.dropRightWhile(users, ['active', false]);
     * // => objects for ['barney']
     *
     * // The `_.property` iteratee shorthand.
     * _.dropRightWhile(users, 'active');
     * // => objects for ['barney', 'fred', 'pebbles']
     */
    function dropRightWhile(array, predicate) {
      return (array && array.length)
        ? baseWhile(array, getIteratee(predicate, 3), true, true)
        : [];
    }

    /**
     * Creates a slice of `array` excluding elements dropped from the beginning.
     * Elements are dropped until `predicate` returns falsey. The predicate is
     * invoked with three arguments: (value, index, array).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': false },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': true }
     * ];
     *
     * _.dropWhile(users, function(o) { return !o.active; });
     * // => objects for ['pebbles']
     *
     * // The `_.matches` iteratee shorthand.
     * _.dropWhile(users, { 'user': 'barney', 'active': false });
     * // => objects for ['fred', 'pebbles']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.dropWhile(users, ['active', false]);
     * // => objects for ['pebbles']
     *
     * // The `_.property` iteratee shorthand.
     * _.dropWhile(users, 'active');
     * // => objects for ['barney', 'fred', 'pebbles']
     */
    function dropWhile(array, predicate) {
      return (array && array.length)
        ? baseWhile(array, getIteratee(predicate, 3), true)
        : [];
    }

    /**
     * Fills elements of `array` with `value` from `start` up to, but not
     * including, `end`.
     *
     * **Note:** This method mutates `array`.
     *
     * @static
     * @memberOf _
     * @since 3.2.0
     * @category Array
     * @param {Array} array The array to fill.
     * @param {*} value The value to fill `array` with.
     * @param {number} [start=0] The start position.
     * @param {number} [end=array.length] The end position.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = [1, 2, 3];
     *
     * _.fill(array, 'a');
     * console.log(array);
     * // => ['a', 'a', 'a']
     *
     * _.fill(Array(3), 2);
     * // => [2, 2, 2]
     *
     * _.fill([4, 6, 8, 10], '*', 1, 3);
     * // => [4, '*', '*', 10]
     */
    function fill(array, value, start, end) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return [];
      }
      if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {
        start = 0;
        end = length;
      }
      return baseFill(array, value, start, end);
    }

    /**
     * This method is like `_.find` except that it returns the index of the first
     * element `predicate` returns truthy for instead of the element itself.
     *
     * @static
     * @memberOf _
     * @since 1.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param {number} [fromIndex=0] The index to search from.
     * @returns {number} Returns the index of the found element, else `-1`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': false },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': true }
     * ];
     *
     * _.findIndex(users, function(o) { return o.user == 'barney'; });
     * // => 0
     *
     * // The `_.matches` iteratee shorthand.
     * _.findIndex(users, { 'user': 'fred', 'active': false });
     * // => 1
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.findIndex(users, ['active', false]);
     * // => 0
     *
     * // The `_.property` iteratee shorthand.
     * _.findIndex(users, 'active');
     * // => 2
     */
    function findIndex(array, predicate, fromIndex) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return -1;
      }
      var index = fromIndex == null ? 0 : toInteger(fromIndex);
      if (index < 0) {
        index = nativeMax(length + index, 0);
      }
      return baseFindIndex(array, getIteratee(predicate, 3), index);
    }

    /**
     * This method is like `_.findIndex` except that it iterates over elements
     * of `collection` from right to left.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param {number} [fromIndex=array.length-1] The index to search from.
     * @returns {number} Returns the index of the found element, else `-1`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': true },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': false }
     * ];
     *
     * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });
     * // => 2
     *
     * // The `_.matches` iteratee shorthand.
     * _.findLastIndex(users, { 'user': 'barney', 'active': true });
     * // => 0
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.findLastIndex(users, ['active', false]);
     * // => 2
     *
     * // The `_.property` iteratee shorthand.
     * _.findLastIndex(users, 'active');
     * // => 0
     */
    function findLastIndex(array, predicate, fromIndex) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return -1;
      }
      var index = length - 1;
      if (fromIndex !== undefined) {
        index = toInteger(fromIndex);
        index = fromIndex < 0
          ? nativeMax(length + index, 0)
          : nativeMin(index, length - 1);
      }
      return baseFindIndex(array, getIteratee(predicate, 3), index, true);
    }

    /**
     * Flattens `array` a single level deep.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to flatten.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * _.flatten([1, [2, [3, [4]], 5]]);
     * // => [1, 2, [3, [4]], 5]
     */
    function flatten(array) {
      var length = array == null ? 0 : array.length;
      return length ? baseFlatten(array, 1) : [];
    }

    /**
     * Recursively flattens `array`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to flatten.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * _.flattenDeep([1, [2, [3, [4]], 5]]);
     * // => [1, 2, 3, 4, 5]
     */
    function flattenDeep(array) {
      var length = array == null ? 0 : array.length;
      return length ? baseFlatten(array, INFINITY) : [];
    }

    /**
     * Recursively flatten `array` up to `depth` times.
     *
     * @static
     * @memberOf _
     * @since 4.4.0
     * @category Array
     * @param {Array} array The array to flatten.
     * @param {number} [depth=1] The maximum recursion depth.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * var array = [1, [2, [3, [4]], 5]];
     *
     * _.flattenDepth(array, 1);
     * // => [1, 2, [3, [4]], 5]
     *
     * _.flattenDepth(array, 2);
     * // => [1, 2, 3, [4], 5]
     */
    function flattenDepth(array, depth) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return [];
      }
      depth = depth === undefined ? 1 : toInteger(depth);
      return baseFlatten(array, depth);
    }

    /**
     * The inverse of `_.toPairs`; this method returns an object composed
     * from key-value `pairs`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} pairs The key-value pairs.
     * @returns {Object} Returns the new object.
     * @example
     *
     * _.fromPairs([['a', 1], ['b', 2]]);
     * // => { 'a': 1, 'b': 2 }
     */
    function fromPairs(pairs) {
      var index = -1,
          length = pairs == null ? 0 : pairs.length,
          result = {};

      while (++index < length) {
        var pair = pairs[index];
        result[pair[0]] = pair[1];
      }
      return result;
    }

    /**
     * Gets the first element of `array`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @alias first
     * @category Array
     * @param {Array} array The array to query.
     * @returns {*} Returns the first element of `array`.
     * @example
     *
     * _.head([1, 2, 3]);
     * // => 1
     *
     * _.head([]);
     * // => undefined
     */
    function head(array) {
      return (array && array.length) ? array[0] : undefined;
    }

    /**
     * Gets the index at which the first occurrence of `value` is found in `array`
     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons. If `fromIndex` is negative, it's used as the
     * offset from the end of `array`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {*} value The value to search for.
     * @param {number} [fromIndex=0] The index to search from.
     * @returns {number} Returns the index of the matched value, else `-1`.
     * @example
     *
     * _.indexOf([1, 2, 1, 2], 2);
     * // => 1
     *
     * // Search from the `fromIndex`.
     * _.indexOf([1, 2, 1, 2], 2, 2);
     * // => 3
     */
    function indexOf(array, value, fromIndex) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return -1;
      }
      var index = fromIndex == null ? 0 : toInteger(fromIndex);
      if (index < 0) {
        index = nativeMax(length + index, 0);
      }
      return baseIndexOf(array, value, index);
    }

    /**
     * Gets all but the last element of `array`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to query.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.initial([1, 2, 3]);
     * // => [1, 2]
     */
    function initial(array) {
      var length = array == null ? 0 : array.length;
      return length ? baseSlice(array, 0, -1) : [];
    }

    /**
     * Creates an array of unique values that are included in all given arrays
     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons. The order and references of result values are
     * determined by the first array.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @returns {Array} Returns the new array of intersecting values.
     * @example
     *
     * _.intersection([2, 1], [2, 3]);
     * // => [2]
     */
    var intersection = baseRest(function(arrays) {
      var mapped = arrayMap(arrays, castArrayLikeObject);
      return (mapped.length && mapped[0] === arrays[0])
        ? baseIntersection(mapped)
        : [];
    });

    /**
     * This method is like `_.intersection` except that it accepts `iteratee`
     * which is invoked for each element of each `arrays` to generate the criterion
     * by which they're compared. The order and references of result values are
     * determined by the first array. The iteratee is invoked with one argument:
     * (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns the new array of intersecting values.
     * @example
     *
     * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);
     * // => [2.1]
     *
     * // The `_.property` iteratee shorthand.
     * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
     * // => [{ 'x': 1 }]
     */
    var intersectionBy = baseRest(function(arrays) {
      var iteratee = last(arrays),
          mapped = arrayMap(arrays, castArrayLikeObject);

      if (iteratee === last(mapped)) {
        iteratee = undefined;
      } else {
        mapped.pop();
      }
      return (mapped.length && mapped[0] === arrays[0])
        ? baseIntersection(mapped, getIteratee(iteratee, 2))
        : [];
    });

    /**
     * This method is like `_.intersection` except that it accepts `comparator`
     * which is invoked to compare elements of `arrays`. The order and references
     * of result values are determined by the first array. The comparator is
     * invoked with two arguments: (arrVal, othVal).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of intersecting values.
     * @example
     *
     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
     * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
     *
     * _.intersectionWith(objects, others, _.isEqual);
     * // => [{ 'x': 1, 'y': 2 }]
     */
    var intersectionWith = baseRest(function(arrays) {
      var comparator = last(arrays),
          mapped = arrayMap(arrays, castArrayLikeObject);

      comparator = typeof comparator == 'function' ? comparator : undefined;
      if (comparator) {
        mapped.pop();
      }
      return (mapped.length && mapped[0] === arrays[0])
        ? baseIntersection(mapped, undefined, comparator)
        : [];
    });

    /**
     * Converts all elements in `array` into a string separated by `separator`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to convert.
     * @param {string} [separator=','] The element separator.
     * @returns {string} Returns the joined string.
     * @example
     *
     * _.join(['a', 'b', 'c'], '~');
     * // => 'a~b~c'
     */
    function join(array, separator) {
      return array == null ? '' : nativeJoin.call(array, separator);
    }

    /**
     * Gets the last element of `array`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to query.
     * @returns {*} Returns the last element of `array`.
     * @example
     *
     * _.last([1, 2, 3]);
     * // => 3
     */
    function last(array) {
      var length = array == null ? 0 : array.length;
      return length ? array[length - 1] : undefined;
    }

    /**
     * This method is like `_.indexOf` except that it iterates over elements of
     * `array` from right to left.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {*} value The value to search for.
     * @param {number} [fromIndex=array.length-1] The index to search from.
     * @returns {number} Returns the index of the matched value, else `-1`.
     * @example
     *
     * _.lastIndexOf([1, 2, 1, 2], 2);
     * // => 3
     *
     * // Search from the `fromIndex`.
     * _.lastIndexOf([1, 2, 1, 2], 2, 2);
     * // => 1
     */
    function lastIndexOf(array, value, fromIndex) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return -1;
      }
      var index = length;
      if (fromIndex !== undefined) {
        index = toInteger(fromIndex);
        index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
      }
      return value === value
        ? strictLastIndexOf(array, value, index)
        : baseFindIndex(array, baseIsNaN, index, true);
    }

    /**
     * Gets the element at index `n` of `array`. If `n` is negative, the nth
     * element from the end is returned.
     *
     * @static
     * @memberOf _
     * @since 4.11.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {number} [n=0] The index of the element to return.
     * @returns {*} Returns the nth element of `array`.
     * @example
     *
     * var array = ['a', 'b', 'c', 'd'];
     *
     * _.nth(array, 1);
     * // => 'b'
     *
     * _.nth(array, -2);
     * // => 'c';
     */
    function nth(array, n) {
      return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;
    }

    /**
     * Removes all given values from `array` using
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons.
     *
     * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`
     * to remove elements from an array by predicate.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {...*} [values] The values to remove.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
     *
     * _.pull(array, 'a', 'c');
     * console.log(array);
     * // => ['b', 'b']
     */
    var pull = baseRest(pullAll);

    /**
     * This method is like `_.pull` except that it accepts an array of values to remove.
     *
     * **Note:** Unlike `_.difference`, this method mutates `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {Array} values The values to remove.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
     *
     * _.pullAll(array, ['a', 'c']);
     * console.log(array);
     * // => ['b', 'b']
     */
    function pullAll(array, values) {
      return (array && array.length && values && values.length)
        ? basePullAll(array, values)
        : array;
    }

    /**
     * This method is like `_.pullAll` except that it accepts `iteratee` which is
     * invoked for each element of `array` and `values` to generate the criterion
     * by which they're compared. The iteratee is invoked with one argument: (value).
     *
     * **Note:** Unlike `_.differenceBy`, this method mutates `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {Array} values The values to remove.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];
     *
     * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');
     * console.log(array);
     * // => [{ 'x': 2 }]
     */
    function pullAllBy(array, values, iteratee) {
      return (array && array.length && values && values.length)
        ? basePullAll(array, values, getIteratee(iteratee, 2))
        : array;
    }

    /**
     * This method is like `_.pullAll` except that it accepts `comparator` which
     * is invoked to compare elements of `array` to `values`. The comparator is
     * invoked with two arguments: (arrVal, othVal).
     *
     * **Note:** Unlike `_.differenceWith`, this method mutates `array`.
     *
     * @static
     * @memberOf _
     * @since 4.6.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {Array} values The values to remove.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];
     *
     * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);
     * console.log(array);
     * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]
     */
    function pullAllWith(array, values, comparator) {
      return (array && array.length && values && values.length)
        ? basePullAll(array, values, undefined, comparator)
        : array;
    }

    /**
     * Removes elements from `array` corresponding to `indexes` and returns an
     * array of removed elements.
     *
     * **Note:** Unlike `_.at`, this method mutates `array`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {...(number|number[])} [indexes] The indexes of elements to remove.
     * @returns {Array} Returns the new array of removed elements.
     * @example
     *
     * var array = ['a', 'b', 'c', 'd'];
     * var pulled = _.pullAt(array, [1, 3]);
     *
     * console.log(array);
     * // => ['a', 'c']
     *
     * console.log(pulled);
     * // => ['b', 'd']
     */
    var pullAt = flatRest(function(array, indexes) {
      var length = array == null ? 0 : array.length,
          result = baseAt(array, indexes);

      basePullAt(array, arrayMap(indexes, function(index) {
        return isIndex(index, length) ? +index : index;
      }).sort(compareAscending));

      return result;
    });

    /**
     * Removes all elements from `array` that `predicate` returns truthy for
     * and returns an array of the removed elements. The predicate is invoked
     * with three arguments: (value, index, array).
     *
     * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`
     * to pull elements from an array by value.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new array of removed elements.
     * @example
     *
     * var array = [1, 2, 3, 4];
     * var evens = _.remove(array, function(n) {
     *   return n % 2 == 0;
     * });
     *
     * console.log(array);
     * // => [1, 3]
     *
     * console.log(evens);
     * // => [2, 4]
     */
    function remove(array, predicate) {
      var result = [];
      if (!(array && array.length)) {
        return result;
      }
      var index = -1,
          indexes = [],
          length = array.length;

      predicate = getIteratee(predicate, 3);
      while (++index < length) {
        var value = array[index];
        if (predicate(value, index, array)) {
          result.push(value);
          indexes.push(index);
        }
      }
      basePullAt(array, indexes);
      return result;
    }

    /**
     * Reverses `array` so that the first element becomes the last, the second
     * element becomes the second to last, and so on.
     *
     * **Note:** This method mutates `array` and is based on
     * [`Array#reverse`](https://mdn.io/Array/reverse).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = [1, 2, 3];
     *
     * _.reverse(array);
     * // => [3, 2, 1]
     *
     * console.log(array);
     * // => [3, 2, 1]
     */
    function reverse(array) {
      return array == null ? array : nativeReverse.call(array);
    }

    /**
     * Creates a slice of `array` from `start` up to, but not including, `end`.
     *
     * **Note:** This method is used instead of
     * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are
     * returned.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to slice.
     * @param {number} [start=0] The start position.
     * @param {number} [end=array.length] The end position.
     * @returns {Array} Returns the slice of `array`.
     */
    function slice(array, start, end) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return [];
      }
      if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {
        start = 0;
        end = length;
      }
      else {
        start = start == null ? 0 : toInteger(start);
        end = end === undefined ? length : toInteger(end);
      }
      return baseSlice(array, start, end);
    }

    /**
     * Uses a binary search to determine the lowest index at which `value`
     * should be inserted into `array` in order to maintain its sort order.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     * @example
     *
     * _.sortedIndex([30, 50], 40);
     * // => 1
     */
    function sortedIndex(array, value) {
      return baseSortedIndex(array, value);
    }

    /**
     * This method is like `_.sortedIndex` except that it accepts `iteratee`
     * which is invoked for `value` and each element of `array` to compute their
     * sort ranking. The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     * @example
     *
     * var objects = [{ 'x': 4 }, { 'x': 5 }];
     *
     * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
     * // => 0
     *
     * // The `_.property` iteratee shorthand.
     * _.sortedIndexBy(objects, { 'x': 4 }, 'x');
     * // => 0
     */
    function sortedIndexBy(array, value, iteratee) {
      return baseSortedIndexBy(array, value, getIteratee(iteratee, 2));
    }

    /**
     * This method is like `_.indexOf` except that it performs a binary
     * search on a sorted `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {*} value The value to search for.
     * @returns {number} Returns the index of the matched value, else `-1`.
     * @example
     *
     * _.sortedIndexOf([4, 5, 5, 5, 6], 5);
     * // => 1
     */
    function sortedIndexOf(array, value) {
      var length = array == null ? 0 : array.length;
      if (length) {
        var index = baseSortedIndex(array, value);
        if (index < length && eq(array[index], value)) {
          return index;
        }
      }
      return -1;
    }

    /**
     * This method is like `_.sortedIndex` except that it returns the highest
     * index at which `value` should be inserted into `array` in order to
     * maintain its sort order.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     * @example
     *
     * _.sortedLastIndex([4, 5, 5, 5, 6], 5);
     * // => 4
     */
    function sortedLastIndex(array, value) {
      return baseSortedIndex(array, value, true);
    }

    /**
     * This method is like `_.sortedLastIndex` except that it accepts `iteratee`
     * which is invoked for `value` and each element of `array` to compute their
     * sort ranking. The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     * @example
     *
     * var objects = [{ 'x': 4 }, { 'x': 5 }];
     *
     * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
     * // => 1
     *
     * // The `_.property` iteratee shorthand.
     * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');
     * // => 1
     */
    function sortedLastIndexBy(array, value, iteratee) {
      return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true);
    }

    /**
     * This method is like `_.lastIndexOf` except that it performs a binary
     * search on a sorted `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {*} value The value to search for.
     * @returns {number} Returns the index of the matched value, else `-1`.
     * @example
     *
     * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);
     * // => 3
     */
    function sortedLastIndexOf(array, value) {
      var length = array == null ? 0 : array.length;
      if (length) {
        var index = baseSortedIndex(array, value, true) - 1;
        if (eq(array[index], value)) {
          return index;
        }
      }
      return -1;
    }

    /**
     * This method is like `_.uniq` except that it's designed and optimized
     * for sorted arrays.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @returns {Array} Returns the new duplicate free array.
     * @example
     *
     * _.sortedUniq([1, 1, 2]);
     * // => [1, 2]
     */
    function sortedUniq(array) {
      return (array && array.length)
        ? baseSortedUniq(array)
        : [];
    }

    /**
     * This method is like `_.uniqBy` except that it's designed and optimized
     * for sorted arrays.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @returns {Array} Returns the new duplicate free array.
     * @example
     *
     * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);
     * // => [1.1, 2.3]
     */
    function sortedUniqBy(array, iteratee) {
      return (array && array.length)
        ? baseSortedUniq(array, getIteratee(iteratee, 2))
        : [];
    }

    /**
     * Gets all but the first element of `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.tail([1, 2, 3]);
     * // => [2, 3]
     */
    function tail(array) {
      var length = array == null ? 0 : array.length;
      return length ? baseSlice(array, 1, length) : [];
    }

    /**
     * Creates a slice of `array` with `n` elements taken from the beginning.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {number} [n=1] The number of elements to take.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.take([1, 2, 3]);
     * // => [1]
     *
     * _.take([1, 2, 3], 2);
     * // => [1, 2]
     *
     * _.take([1, 2, 3], 5);
     * // => [1, 2, 3]
     *
     * _.take([1, 2, 3], 0);
     * // => []
     */
    function take(array, n, guard) {
      if (!(array && array.length)) {
        return [];
      }
      n = (guard || n === undefined) ? 1 : toInteger(n);
      return baseSlice(array, 0, n < 0 ? 0 : n);
    }

    /**
     * Creates a slice of `array` with `n` elements taken from the end.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {number} [n=1] The number of elements to take.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.takeRight([1, 2, 3]);
     * // => [3]
     *
     * _.takeRight([1, 2, 3], 2);
     * // => [2, 3]
     *
     * _.takeRight([1, 2, 3], 5);
     * // => [1, 2, 3]
     *
     * _.takeRight([1, 2, 3], 0);
     * // => []
     */
    function takeRight(array, n, guard) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return [];
      }
      n = (guard || n === undefined) ? 1 : toInteger(n);
      n = length - n;
      return baseSlice(array, n < 0 ? 0 : n, length);
    }

    /**
     * Creates a slice of `array` with elements taken from the end. Elements are
     * taken until `predicate` returns falsey. The predicate is invoked with
     * three arguments: (value, index, array).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': true },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': false }
     * ];
     *
     * _.takeRightWhile(users, function(o) { return !o.active; });
     * // => objects for ['fred', 'pebbles']
     *
     * // The `_.matches` iteratee shorthand.
     * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });
     * // => objects for ['pebbles']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.takeRightWhile(users, ['active', false]);
     * // => objects for ['fred', 'pebbles']
     *
     * // The `_.property` iteratee shorthand.
     * _.takeRightWhile(users, 'active');
     * // => []
     */
    function takeRightWhile(array, predicate) {
      return (array && array.length)
        ? baseWhile(array, getIteratee(predicate, 3), false, true)
        : [];
    }

    /**
     * Creates a slice of `array` with elements taken from the beginning. Elements
     * are taken until `predicate` returns falsey. The predicate is invoked with
     * three arguments: (value, index, array).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': false },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': true }
     * ];
     *
     * _.takeWhile(users, function(o) { return !o.active; });
     * // => objects for ['barney', 'fred']
     *
     * // The `_.matches` iteratee shorthand.
     * _.takeWhile(users, { 'user': 'barney', 'active': false });
     * // => objects for ['barney']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.takeWhile(users, ['active', false]);
     * // => objects for ['barney', 'fred']
     *
     * // The `_.property` iteratee shorthand.
     * _.takeWhile(users, 'active');
     * // => []
     */
    function takeWhile(array, predicate) {
      return (array && array.length)
        ? baseWhile(array, getIteratee(predicate, 3))
        : [];
    }

    /**
     * Creates an array of unique values, in order, from all given arrays using
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @returns {Array} Returns the new array of combined values.
     * @example
     *
     * _.union([2], [1, 2]);
     * // => [2, 1]
     */
    var union = baseRest(function(arrays) {
      return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
    });

    /**
     * This method is like `_.union` except that it accepts `iteratee` which is
     * invoked for each element of each `arrays` to generate the criterion by
     * which uniqueness is computed. Result values are chosen from the first
     * array in which the value occurs. The iteratee is invoked with one argument:
     * (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns the new array of combined values.
     * @example
     *
     * _.unionBy([2.1], [1.2, 2.3], Math.floor);
     * // => [2.1, 1.2]
     *
     * // The `_.property` iteratee shorthand.
     * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
     * // => [{ 'x': 1 }, { 'x': 2 }]
     */
    var unionBy = baseRest(function(arrays) {
      var iteratee = last(arrays);
      if (isArrayLikeObject(iteratee)) {
        iteratee = undefined;
      }
      return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2));
    });

    /**
     * This method is like `_.union` except that it accepts `comparator` which
     * is invoked to compare elements of `arrays`. Result values are chosen from
     * the first array in which the value occurs. The comparator is invoked
     * with two arguments: (arrVal, othVal).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of combined values.
     * @example
     *
     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
     * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
     *
     * _.unionWith(objects, others, _.isEqual);
     * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
     */
    var unionWith = baseRest(function(arrays) {
      var comparator = last(arrays);
      comparator = typeof comparator == 'function' ? comparator : undefined;
      return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);
    });

    /**
     * Creates a duplicate-free version of an array, using
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons, in which only the first occurrence of each element
     * is kept. The order of result values is determined by the order they occur
     * in the array.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @returns {Array} Returns the new duplicate free array.
     * @example
     *
     * _.uniq([2, 1, 2]);
     * // => [2, 1]
     */
    function uniq(array) {
      return (array && array.length) ? baseUniq(array) : [];
    }

    /**
     * This method is like `_.uniq` except that it accepts `iteratee` which is
     * invoked for each element in `array` to generate the criterion by which
     * uniqueness is computed. The order of result values is determined by the
     * order they occur in the array. The iteratee is invoked with one argument:
     * (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns the new duplicate free array.
     * @example
     *
     * _.uniqBy([2.1, 1.2, 2.3], Math.floor);
     * // => [2.1, 1.2]
     *
     * // The `_.property` iteratee shorthand.
     * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
     * // => [{ 'x': 1 }, { 'x': 2 }]
     */
    function uniqBy(array, iteratee) {
      return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : [];
    }

    /**
     * This method is like `_.uniq` except that it accepts `comparator` which
     * is invoked to compare elements of `array`. The order of result values is
     * determined by the order they occur in the array.The comparator is invoked
     * with two arguments: (arrVal, othVal).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new duplicate free array.
     * @example
     *
     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];
     *
     * _.uniqWith(objects, _.isEqual);
     * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]
     */
    function uniqWith(array, comparator) {
      comparator = typeof comparator == 'function' ? comparator : undefined;
      return (array && array.length) ? baseUniq(array, undefined, comparator) : [];
    }

    /**
     * This method is like `_.zip` except that it accepts an array of grouped
     * elements and creates an array regrouping the elements to their pre-zip
     * configuration.
     *
     * @static
     * @memberOf _
     * @since 1.2.0
     * @category Array
     * @param {Array} array The array of grouped elements to process.
     * @returns {Array} Returns the new array of regrouped elements.
     * @example
     *
     * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);
     * // => [['a', 1, true], ['b', 2, false]]
     *
     * _.unzip(zipped);
     * // => [['a', 'b'], [1, 2], [true, false]]
     */
    function unzip(array) {
      if (!(array && array.length)) {
        return [];
      }
      var length = 0;
      array = arrayFilter(array, function(group) {
        if (isArrayLikeObject(group)) {
          length = nativeMax(group.length, length);
          return true;
        }
      });
      return baseTimes(length, function(index) {
        return arrayMap(array, baseProperty(index));
      });
    }

    /**
     * This method is like `_.unzip` except that it accepts `iteratee` to specify
     * how regrouped values should be combined. The iteratee is invoked with the
     * elements of each group: (...group).
     *
     * @static
     * @memberOf _
     * @since 3.8.0
     * @category Array
     * @param {Array} array The array of grouped elements to process.
     * @param {Function} [iteratee=_.identity] The function to combine
     *  regrouped values.
     * @returns {Array} Returns the new array of regrouped elements.
     * @example
     *
     * var zipped = _.zip([1, 2], [10, 20], [100, 200]);
     * // => [[1, 10, 100], [2, 20, 200]]
     *
     * _.unzipWith(zipped, _.add);
     * // => [3, 30, 300]
     */
    function unzipWith(array, iteratee) {
      if (!(array && array.length)) {
        return [];
      }
      var result = unzip(array);
      if (iteratee == null) {
        return result;
      }
      return arrayMap(result, function(group) {
        return apply(iteratee, undefined, group);
      });
    }

    /**
     * Creates an array excluding all given values using
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons.
     *
     * **Note:** Unlike `_.pull`, this method returns a new array.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {...*} [values] The values to exclude.
     * @returns {Array} Returns the new array of filtered values.
     * @see _.difference, _.xor
     * @example
     *
     * _.without([2, 1, 2, 3], 1, 2);
     * // => [3]
     */
    var without = baseRest(function(array, values) {
      return isArrayLikeObject(array)
        ? baseDifference(array, values)
        : [];
    });

    /**
     * Creates an array of unique values that is the
     * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)
     * of the given arrays. The order of result values is determined by the order
     * they occur in the arrays.
     *
     * @static
     * @memberOf _
     * @since 2.4.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @returns {Array} Returns the new array of filtered values.
     * @see _.difference, _.without
     * @example
     *
     * _.xor([2, 1], [2, 3]);
     * // => [1, 3]
     */
    var xor = baseRest(function(arrays) {
      return baseXor(arrayFilter(arrays, isArrayLikeObject));
    });

    /**
     * This method is like `_.xor` except that it accepts `iteratee` which is
     * invoked for each element of each `arrays` to generate the criterion by
     * which by which they're compared. The order of result values is determined
     * by the order they occur in the arrays. The iteratee is invoked with one
     * argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns the new array of filtered values.
     * @example
     *
     * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);
     * // => [1.2, 3.4]
     *
     * // The `_.property` iteratee shorthand.
     * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
     * // => [{ 'x': 2 }]
     */
    var xorBy = baseRest(function(arrays) {
      var iteratee = last(arrays);
      if (isArrayLikeObject(iteratee)) {
        iteratee = undefined;
      }
      return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2));
    });

    /**
     * This method is like `_.xor` except that it accepts `comparator` which is
     * invoked to compare elements of `arrays`. The order of result values is
     * determined by the order they occur in the arrays. The comparator is invoked
     * with two arguments: (arrVal, othVal).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of filtered values.
     * @example
     *
     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
     * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
     *
     * _.xorWith(objects, others, _.isEqual);
     * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
     */
    var xorWith = baseRest(function(arrays) {
      var comparator = last(arrays);
      comparator = typeof comparator == 'function' ? comparator : undefined;
      return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);
    });

    /**
     * Creates an array of grouped elements, the first of which contains the
     * first elements of the given arrays, the second of which contains the
     * second elements of the given arrays, and so on.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {...Array} [arrays] The arrays to process.
     * @returns {Array} Returns the new array of grouped elements.
     * @example
     *
     * _.zip(['a', 'b'], [1, 2], [true, false]);
     * // => [['a', 1, true], ['b', 2, false]]
     */
    var zip = baseRest(unzip);

    /**
     * This method is like `_.fromPairs` except that it accepts two arrays,
     * one of property identifiers and one of corresponding values.
     *
     * @static
     * @memberOf _
     * @since 0.4.0
     * @category Array
     * @param {Array} [props=[]] The property identifiers.
     * @param {Array} [values=[]] The property values.
     * @returns {Object} Returns the new object.
     * @example
     *
     * _.zipObject(['a', 'b'], [1, 2]);
     * // => { 'a': 1, 'b': 2 }
     */
    function zipObject(props, values) {
      return baseZipObject(props || [], values || [], assignValue);
    }

    /**
     * This method is like `_.zipObject` except that it supports property paths.
     *
     * @static
     * @memberOf _
     * @since 4.1.0
     * @category Array
     * @param {Array} [props=[]] The property identifiers.
     * @param {Array} [values=[]] The property values.
     * @returns {Object} Returns the new object.
     * @example
     *
     * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);
     * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }
     */
    function zipObjectDeep(props, values) {
      return baseZipObject(props || [], values || [], baseSet);
    }

    /**
     * This method is like `_.zip` except that it accepts `iteratee` to specify
     * how grouped values should be combined. The iteratee is invoked with the
     * elements of each group: (...group).
     *
     * @static
     * @memberOf _
     * @since 3.8.0
     * @category Array
     * @param {...Array} [arrays] The arrays to process.
     * @param {Function} [iteratee=_.identity] The function to combine
     *  grouped values.
     * @returns {Array} Returns the new array of grouped elements.
     * @example
     *
     * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {
     *   return a + b + c;
     * });
     * // => [111, 222]
     */
    var zipWith = baseRest(function(arrays) {
      var length = arrays.length,
          iteratee = length > 1 ? arrays[length - 1] : undefined;

      iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;
      return unzipWith(arrays, iteratee);
    });

    /*------------------------------------------------------------------------*/

    /**
     * Creates a `lodash` wrapper instance that wraps `value` with explicit method
     * chain sequences enabled. The result of such sequences must be unwrapped
     * with `_#value`.
     *
     * @static
     * @memberOf _
     * @since 1.3.0
     * @category Seq
     * @param {*} value The value to wrap.
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'age': 36 },
     *   { 'user': 'fred',    'age': 40 },
     *   { 'user': 'pebbles', 'age': 1 }
     * ];
     *
     * var youngest = _
     *   .chain(users)
     *   .sortBy('age')
     *   .map(function(o) {
     *     return o.user + ' is ' + o.age;
     *   })
     *   .head()
     *   .value();
     * // => 'pebbles is 1'
     */
    function chain(value) {
      var result = lodash(value);
      result.__chain__ = true;
      return result;
    }

    /**
     * This method invokes `interceptor` and returns `value`. The interceptor
     * is invoked with one argument; (value). The purpose of this method is to
     * "tap into" a method chain sequence in order to modify intermediate results.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Seq
     * @param {*} value The value to provide to `interceptor`.
     * @param {Function} interceptor The function to invoke.
     * @returns {*} Returns `value`.
     * @example
     *
     * _([1, 2, 3])
     *  .tap(function(array) {
     *    // Mutate input array.
     *    array.pop();
     *  })
     *  .reverse()
     *  .value();
     * // => [2, 1]
     */
    function tap(value, interceptor) {
      interceptor(value);
      return value;
    }

    /**
     * This method is like `_.tap` except that it returns the result of `interceptor`.
     * The purpose of this method is to "pass thru" values replacing intermediate
     * results in a method chain sequence.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Seq
     * @param {*} value The value to provide to `interceptor`.
     * @param {Function} interceptor The function to invoke.
     * @returns {*} Returns the result of `interceptor`.
     * @example
     *
     * _('  abc  ')
     *  .chain()
     *  .trim()
     *  .thru(function(value) {
     *    return [value];
     *  })
     *  .value();
     * // => ['abc']
     */
    function thru(value, interceptor) {
      return interceptor(value);
    }

    /**
     * This method is the wrapper version of `_.at`.
     *
     * @name at
     * @memberOf _
     * @since 1.0.0
     * @category Seq
     * @param {...(string|string[])} [paths] The property paths to pick.
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
     *
     * _(object).at(['a[0].b.c', 'a[1]']).value();
     * // => [3, 4]
     */
    var wrapperAt = flatRest(function(paths) {
      var length = paths.length,
          start = length ? paths[0] : 0,
          value = this.__wrapped__,
          interceptor = function(object) { return baseAt(object, paths); };

      if (length > 1 || this.__actions__.length ||
          !(value instanceof LazyWrapper) || !isIndex(start)) {
        return this.thru(interceptor);
      }
      value = value.slice(start, +start + (length ? 1 : 0));
      value.__actions__.push({
        'func': thru,
        'args': [interceptor],
        'thisArg': undefined
      });
      return new LodashWrapper(value, this.__chain__).thru(function(array) {
        if (length && !array.length) {
          array.push(undefined);
        }
        return array;
      });
    });

    /**
     * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.
     *
     * @name chain
     * @memberOf _
     * @since 0.1.0
     * @category Seq
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * var users = [
     *   { 'user': 'barney', 'age': 36 },
     *   { 'user': 'fred',   'age': 40 }
     * ];
     *
     * // A sequence without explicit chaining.
     * _(users).head();
     * // => { 'user': 'barney', 'age': 36 }
     *
     * // A sequence with explicit chaining.
     * _(users)
     *   .chain()
     *   .head()
     *   .pick('user')
     *   .value();
     * // => { 'user': 'barney' }
     */
    function wrapperChain() {
      return chain(this);
    }

    /**
     * Executes the chain sequence and returns the wrapped result.
     *
     * @name commit
     * @memberOf _
     * @since 3.2.0
     * @category Seq
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * var array = [1, 2];
     * var wrapped = _(array).push(3);
     *
     * console.log(array);
     * // => [1, 2]
     *
     * wrapped = wrapped.commit();
     * console.log(array);
     * // => [1, 2, 3]
     *
     * wrapped.last();
     * // => 3
     *
     * console.log(array);
     * // => [1, 2, 3]
     */
    function wrapperCommit() {
      return new LodashWrapper(this.value(), this.__chain__);
    }

    /**
     * Gets the next value on a wrapped object following the
     * [iterator protocol](https://mdn.io/iteration_protocols#iterator).
     *
     * @name next
     * @memberOf _
     * @since 4.0.0
     * @category Seq
     * @returns {Object} Returns the next iterator value.
     * @example
     *
     * var wrapped = _([1, 2]);
     *
     * wrapped.next();
     * // => { 'done': false, 'value': 1 }
     *
     * wrapped.next();
     * // => { 'done': false, 'value': 2 }
     *
     * wrapped.next();
     * // => { 'done': true, 'value': undefined }
     */
    function wrapperNext() {
      if (this.__values__ === undefined) {
        this.__values__ = toArray(this.value());
      }
      var done = this.__index__ >= this.__values__.length,
          value = done ? undefined : this.__values__[this.__index__++];

      return { 'done': done, 'value': value };
    }

    /**
     * Enables the wrapper to be iterable.
     *
     * @name Symbol.iterator
     * @memberOf _
     * @since 4.0.0
     * @category Seq
     * @returns {Object} Returns the wrapper object.
     * @example
     *
     * var wrapped = _([1, 2]);
     *
     * wrapped[Symbol.iterator]() === wrapped;
     * // => true
     *
     * Array.from(wrapped);
     * // => [1, 2]
     */
    function wrapperToIterator() {
      return this;
    }

    /**
     * Creates a clone of the chain sequence planting `value` as the wrapped value.
     *
     * @name plant
     * @memberOf _
     * @since 3.2.0
     * @category Seq
     * @param {*} value The value to plant.
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * var wrapped = _([1, 2]).map(square);
     * var other = wrapped.plant([3, 4]);
     *
     * other.value();
     * // => [9, 16]
     *
     * wrapped.value();
     * // => [1, 4]
     */
    function wrapperPlant(value) {
      var result,
          parent = this;

      while (parent instanceof baseLodash) {
        var clone = wrapperClone(parent);
        clone.__index__ = 0;
        clone.__values__ = undefined;
        if (result) {
          previous.__wrapped__ = clone;
        } else {
          result = clone;
        }
        var previous = clone;
        parent = parent.__wrapped__;
      }
      previous.__wrapped__ = value;
      return result;
    }

    /**
     * This method is the wrapper version of `_.reverse`.
     *
     * **Note:** This method mutates the wrapped array.
     *
     * @name reverse
     * @memberOf _
     * @since 0.1.0
     * @category Seq
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * var array = [1, 2, 3];
     *
     * _(array).reverse().value()
     * // => [3, 2, 1]
     *
     * console.log(array);
     * // => [3, 2, 1]
     */
    function wrapperReverse() {
      var value = this.__wrapped__;
      if (value instanceof LazyWrapper) {
        var wrapped = value;
        if (this.__actions__.length) {
          wrapped = new LazyWrapper(this);
        }
        wrapped = wrapped.reverse();
        wrapped.__actions__.push({
          'func': thru,
          'args': [reverse],
          'thisArg': undefined
        });
        return new LodashWrapper(wrapped, this.__chain__);
      }
      return this.thru(reverse);
    }

    /**
     * Executes the chain sequence to resolve the unwrapped value.
     *
     * @name value
     * @memberOf _
     * @since 0.1.0
     * @alias toJSON, valueOf
     * @category Seq
     * @returns {*} Returns the resolved unwrapped value.
     * @example
     *
     * _([1, 2, 3]).value();
     * // => [1, 2, 3]
     */
    function wrapperValue() {
      return baseWrapperValue(this.__wrapped__, this.__actions__);
    }

    /*------------------------------------------------------------------------*/

    /**
     * Creates an object composed of keys generated from the results of running
     * each element of `collection` thru `iteratee`. The corresponding value of
     * each key is the number of times the key was returned by `iteratee`. The
     * iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 0.5.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
     * @returns {Object} Returns the composed aggregate object.
     * @example
     *
     * _.countBy([6.1, 4.2, 6.3], Math.floor);
     * // => { '4': 1, '6': 2 }
     *
     * // The `_.property` iteratee shorthand.
     * _.countBy(['one', 'two', 'three'], 'length');
     * // => { '3': 2, '5': 1 }
     */
    var countBy = createAggregator(function(result, value, key) {
      if (hasOwnProperty.call(result, key)) {
        ++result[key];
      } else {
        baseAssignValue(result, key, 1);
      }
    });

    /**
     * Checks if `predicate` returns truthy for **all** elements of `collection`.
     * Iteration is stopped once `predicate` returns falsey. The predicate is
     * invoked with three arguments: (value, index|key, collection).
     *
     * **Note:** This method returns `true` for
     * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because
     * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of
     * elements of empty collections.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {boolean} Returns `true` if all elements pass the predicate check,
     *  else `false`.
     * @example
     *
     * _.every([true, 1, null, 'yes'], Boolean);
     * // => false
     *
     * var users = [
     *   { 'user': 'barney', 'age': 36, 'active': false },
     *   { 'user': 'fred',   'age': 40, 'active': false }
     * ];
     *
     * // The `_.matches` iteratee shorthand.
     * _.every(users, { 'user': 'barney', 'active': false });
     * // => false
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.every(users, ['active', false]);
     * // => true
     *
     * // The `_.property` iteratee shorthand.
     * _.every(users, 'active');
     * // => false
     */
    function every(collection, predicate, guard) {
      var func = isArray(collection) ? arrayEvery : baseEvery;
      if (guard && isIterateeCall(collection, predicate, guard)) {
        predicate = undefined;
      }
      return func(collection, getIteratee(predicate, 3));
    }

    /**
     * Iterates over elements of `collection`, returning an array of all elements
     * `predicate` returns truthy for. The predicate is invoked with three
     * arguments: (value, index|key, collection).
     *
     * **Note:** Unlike `_.remove`, this method returns a new array.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new filtered array.
     * @see _.reject
     * @example
     *
     * var users = [
     *   { 'user': 'barney', 'age': 36, 'active': true },
     *   { 'user': 'fred',   'age': 40, 'active': false }
     * ];
     *
     * _.filter(users, function(o) { return !o.active; });
     * // => objects for ['fred']
     *
     * // The `_.matches` iteratee shorthand.
     * _.filter(users, { 'age': 36, 'active': true });
     * // => objects for ['barney']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.filter(users, ['active', false]);
     * // => objects for ['fred']
     *
     * // The `_.property` iteratee shorthand.
     * _.filter(users, 'active');
     * // => objects for ['barney']
     */
    function filter(collection, predicate) {
      var func = isArray(collection) ? arrayFilter : baseFilter;
      return func(collection, getIteratee(predicate, 3));
    }

    /**
     * Iterates over elements of `collection`, returning the first element
     * `predicate` returns truthy for. The predicate is invoked with three
     * arguments: (value, index|key, collection).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param {number} [fromIndex=0] The index to search from.
     * @returns {*} Returns the matched element, else `undefined`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'age': 36, 'active': true },
     *   { 'user': 'fred',    'age': 40, 'active': false },
     *   { 'user': 'pebbles', 'age': 1,  'active': true }
     * ];
     *
     * _.find(users, function(o) { return o.age < 40; });
     * // => object for 'barney'
     *
     * // The `_.matches` iteratee shorthand.
     * _.find(users, { 'age': 1, 'active': true });
     * // => object for 'pebbles'
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.find(users, ['active', false]);
     * // => object for 'fred'
     *
     * // The `_.property` iteratee shorthand.
     * _.find(users, 'active');
     * // => object for 'barney'
     */
    var find = createFind(findIndex);

    /**
     * This method is like `_.find` except that it iterates over elements of
     * `collection` from right to left.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param {number} [fromIndex=collection.length-1] The index to search from.
     * @returns {*} Returns the matched element, else `undefined`.
     * @example
     *
     * _.findLast([1, 2, 3, 4], function(n) {
     *   return n % 2 == 1;
     * });
     * // => 3
     */
    var findLast = createFind(findLastIndex);

    /**
     * Creates a flattened array of values by running each element in `collection`
     * thru `iteratee` and flattening the mapped results. The iteratee is invoked
     * with three arguments: (value, index|key, collection).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * function duplicate(n) {
     *   return [n, n];
     * }
     *
     * _.flatMap([1, 2], duplicate);
     * // => [1, 1, 2, 2]
     */
    function flatMap(collection, iteratee) {
      return baseFlatten(map(collection, iteratee), 1);
    }

    /**
     * This method is like `_.flatMap` except that it recursively flattens the
     * mapped results.
     *
     * @static
     * @memberOf _
     * @since 4.7.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * function duplicate(n) {
     *   return [[[n, n]]];
     * }
     *
     * _.flatMapDeep([1, 2], duplicate);
     * // => [1, 1, 2, 2]
     */
    function flatMapDeep(collection, iteratee) {
      return baseFlatten(map(collection, iteratee), INFINITY);
    }

    /**
     * This method is like `_.flatMap` except that it recursively flattens the
     * mapped results up to `depth` times.
     *
     * @static
     * @memberOf _
     * @since 4.7.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @param {number} [depth=1] The maximum recursion depth.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * function duplicate(n) {
     *   return [[[n, n]]];
     * }
     *
     * _.flatMapDepth([1, 2], duplicate, 2);
     * // => [[1, 1], [2, 2]]
     */
    function flatMapDepth(collection, iteratee, depth) {
      depth = depth === undefined ? 1 : toInteger(depth);
      return baseFlatten(map(collection, iteratee), depth);
    }

    /**
     * Iterates over elements of `collection` and invokes `iteratee` for each element.
     * The iteratee is invoked with three arguments: (value, index|key, collection).
     * Iteratee functions may exit iteration early by explicitly returning `false`.
     *
     * **Note:** As with other "Collections" methods, objects with a "length"
     * property are iterated like arrays. To avoid this behavior use `_.forIn`
     * or `_.forOwn` for object iteration.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @alias each
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array|Object} Returns `collection`.
     * @see _.forEachRight
     * @example
     *
     * _.forEach([1, 2], function(value) {
     *   console.log(value);
     * });
     * // => Logs `1` then `2`.
     *
     * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
     *   console.log(key);
     * });
     * // => Logs 'a' then 'b' (iteration order is not guaranteed).
     */
    function forEach(collection, iteratee) {
      var func = isArray(collection) ? arrayEach : baseEach;
      return func(collection, getIteratee(iteratee, 3));
    }

    /**
     * This method is like `_.forEach` except that it iterates over elements of
     * `collection` from right to left.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @alias eachRight
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array|Object} Returns `collection`.
     * @see _.forEach
     * @example
     *
     * _.forEachRight([1, 2], function(value) {
     *   console.log(value);
     * });
     * // => Logs `2` then `1`.
     */
    function forEachRight(collection, iteratee) {
      var func = isArray(collection) ? arrayEachRight : baseEachRight;
      return func(collection, getIteratee(iteratee, 3));
    }

    /**
     * Creates an object composed of keys generated from the results of running
     * each element of `collection` thru `iteratee`. The order of grouped values
     * is determined by the order they occur in `collection`. The corresponding
     * value of each key is an array of elements responsible for generating the
     * key. The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
     * @returns {Object} Returns the composed aggregate object.
     * @example
     *
     * _.groupBy([6.1, 4.2, 6.3], Math.floor);
     * // => { '4': [4.2], '6': [6.1, 6.3] }
     *
     * // The `_.property` iteratee shorthand.
     * _.groupBy(['one', 'two', 'three'], 'length');
     * // => { '3': ['one', 'two'], '5': ['three'] }
     */
    var groupBy = createAggregator(function(result, value, key) {
      if (hasOwnProperty.call(result, key)) {
        result[key].push(value);
      } else {
        baseAssignValue(result, key, [value]);
      }
    });

    /**
     * Checks if `value` is in `collection`. If `collection` is a string, it's
     * checked for a substring of `value`, otherwise
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * is used for equality comparisons. If `fromIndex` is negative, it's used as
     * the offset from the end of `collection`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object|string} collection The collection to inspect.
     * @param {*} value The value to search for.
     * @param {number} [fromIndex=0] The index to search from.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
     * @returns {boolean} Returns `true` if `value` is found, else `false`.
     * @example
     *
     * _.includes([1, 2, 3], 1);
     * // => true
     *
     * _.includes([1, 2, 3], 1, 2);
     * // => false
     *
     * _.includes({ 'a': 1, 'b': 2 }, 1);
     * // => true
     *
     * _.includes('abcd', 'bc');
     * // => true
     */
    function includes(collection, value, fromIndex, guard) {
      collection = isArrayLike(collection) ? collection : values(collection);
      fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;

      var length = collection.length;
      if (fromIndex < 0) {
        fromIndex = nativeMax(length + fromIndex, 0);
      }
      return isString(collection)
        ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)
        : (!!length && baseIndexOf(collection, value, fromIndex) > -1);
    }

    /**
     * Invokes the method at `path` of each element in `collection`, returning
     * an array of the results of each invoked method. Any additional arguments
     * are provided to each invoked method. If `path` is a function, it's invoked
     * for, and `this` bound to, each element in `collection`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Array|Function|string} path The path of the method to invoke or
     *  the function invoked per iteration.
     * @param {...*} [args] The arguments to invoke each method with.
     * @returns {Array} Returns the array of results.
     * @example
     *
     * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');
     * // => [[1, 5, 7], [1, 2, 3]]
     *
     * _.invokeMap([123, 456], String.prototype.split, '');
     * // => [['1', '2', '3'], ['4', '5', '6']]
     */
    var invokeMap = baseRest(function(collection, path, args) {
      var index = -1,
          isFunc = typeof path == 'function',
          result = isArrayLike(collection) ? Array(collection.length) : [];

      baseEach(collection, function(value) {
        result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);
      });
      return result;
    });

    /**
     * Creates an object composed of keys generated from the results of running
     * each element of `collection` thru `iteratee`. The corresponding value of
     * each key is the last element responsible for generating the key. The
     * iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
     * @returns {Object} Returns the composed aggregate object.
     * @example
     *
     * var array = [
     *   { 'dir': 'left', 'code': 97 },
     *   { 'dir': 'right', 'code': 100 }
     * ];
     *
     * _.keyBy(array, function(o) {
     *   return String.fromCharCode(o.code);
     * });
     * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }
     *
     * _.keyBy(array, 'dir');
     * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }
     */
    var keyBy = createAggregator(function(result, value, key) {
      baseAssignValue(result, key, value);
    });

    /**
     * Creates an array of values by running each element in `collection` thru
     * `iteratee`. The iteratee is invoked with three arguments:
     * (value, index|key, collection).
     *
     * Many lodash methods are guarded to work as iteratees for methods like
     * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
     *
     * The guarded methods are:
     * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
     * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
     * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
     * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new mapped array.
     * @example
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * _.map([4, 8], square);
     * // => [16, 64]
     *
     * _.map({ 'a': 4, 'b': 8 }, square);
     * // => [16, 64] (iteration order is not guaranteed)
     *
     * var users = [
     *   { 'user': 'barney' },
     *   { 'user': 'fred' }
     * ];
     *
     * // The `_.property` iteratee shorthand.
     * _.map(users, 'user');
     * // => ['barney', 'fred']
     */
    function map(collection, iteratee) {
      var func = isArray(collection) ? arrayMap : baseMap;
      return func(collection, getIteratee(iteratee, 3));
    }

    /**
     * This method is like `_.sortBy` except that it allows specifying the sort
     * orders of the iteratees to sort by. If `orders` is unspecified, all values
     * are sorted in ascending order. Otherwise, specify an order of "desc" for
     * descending or "asc" for ascending sort order of corresponding values.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]
     *  The iteratees to sort by.
     * @param {string[]} [orders] The sort orders of `iteratees`.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
     * @returns {Array} Returns the new sorted array.
     * @example
     *
     * var users = [
     *   { 'user': 'fred',   'age': 48 },
     *   { 'user': 'barney', 'age': 34 },
     *   { 'user': 'fred',   'age': 40 },
     *   { 'user': 'barney', 'age': 36 }
     * ];
     *
     * // Sort by `user` in ascending order and by `age` in descending order.
     * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
     * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
     */
    function orderBy(collection, iteratees, orders, guard) {
      if (collection == null) {
        return [];
      }
      if (!isArray(iteratees)) {
        iteratees = iteratees == null ? [] : [iteratees];
      }
      orders = guard ? undefined : orders;
      if (!isArray(orders)) {
        orders = orders == null ? [] : [orders];
      }
      return baseOrderBy(collection, iteratees, orders);
    }

    /**
     * Creates an array of elements split into two groups, the first of which
     * contains elements `predicate` returns truthy for, the second of which
     * contains elements `predicate` returns falsey for. The predicate is
     * invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the array of grouped elements.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'age': 36, 'active': false },
     *   { 'user': 'fred',    'age': 40, 'active': true },
     *   { 'user': 'pebbles', 'age': 1,  'active': false }
     * ];
     *
     * _.partition(users, function(o) { return o.active; });
     * // => objects for [['fred'], ['barney', 'pebbles']]
     *
     * // The `_.matches` iteratee shorthand.
     * _.partition(users, { 'age': 1, 'active': false });
     * // => objects for [['pebbles'], ['barney', 'fred']]
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.partition(users, ['active', false]);
     * // => objects for [['barney', 'pebbles'], ['fred']]
     *
     * // The `_.property` iteratee shorthand.
     * _.partition(users, 'active');
     * // => objects for [['fred'], ['barney', 'pebbles']]
     */
    var partition = createAggregator(function(result, value, key) {
      result[key ? 0 : 1].push(value);
    }, function() { return [[], []]; });

    /**
     * Reduces `collection` to a value which is the accumulated result of running
     * each element in `collection` thru `iteratee`, where each successive
     * invocation is supplied the return value of the previous. If `accumulator`
     * is not given, the first element of `collection` is used as the initial
     * value. The iteratee is invoked with four arguments:
     * (accumulator, value, index|key, collection).
     *
     * Many lodash methods are guarded to work as iteratees for methods like
     * `_.reduce`, `_.reduceRight`, and `_.transform`.
     *
     * The guarded methods are:
     * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
     * and `sortBy`
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @param {*} [accumulator] The initial value.
     * @returns {*} Returns the accumulated value.
     * @see _.reduceRight
     * @example
     *
     * _.reduce([1, 2], function(sum, n) {
     *   return sum + n;
     * }, 0);
     * // => 3
     *
     * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
     *   (result[value] || (result[value] = [])).push(key);
     *   return result;
     * }, {});
     * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
     */
    function reduce(collection, iteratee, accumulator) {
      var func = isArray(collection) ? arrayReduce : baseReduce,
          initAccum = arguments.length < 3;

      return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);
    }

    /**
     * This method is like `_.reduce` except that it iterates over elements of
     * `collection` from right to left.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @param {*} [accumulator] The initial value.
     * @returns {*} Returns the accumulated value.
     * @see _.reduce
     * @example
     *
     * var array = [[0, 1], [2, 3], [4, 5]];
     *
     * _.reduceRight(array, function(flattened, other) {
     *   return flattened.concat(other);
     * }, []);
     * // => [4, 5, 2, 3, 0, 1]
     */
    function reduceRight(collection, iteratee, accumulator) {
      var func = isArray(collection) ? arrayReduceRight : baseReduce,
          initAccum = arguments.length < 3;

      return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);
    }

    /**
     * The opposite of `_.filter`; this method returns the elements of `collection`
     * that `predicate` does **not** return truthy for.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new filtered array.
     * @see _.filter
     * @example
     *
     * var users = [
     *   { 'user': 'barney', 'age': 36, 'active': false },
     *   { 'user': 'fred',   'age': 40, 'active': true }
     * ];
     *
     * _.reject(users, function(o) { return !o.active; });
     * // => objects for ['fred']
     *
     * // The `_.matches` iteratee shorthand.
     * _.reject(users, { 'age': 40, 'active': true });
     * // => objects for ['barney']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.reject(users, ['active', false]);
     * // => objects for ['fred']
     *
     * // The `_.property` iteratee shorthand.
     * _.reject(users, 'active');
     * // => objects for ['barney']
     */
    function reject(collection, predicate) {
      var func = isArray(collection) ? arrayFilter : baseFilter;
      return func(collection, negate(getIteratee(predicate, 3)));
    }

    /**
     * Gets a random element from `collection`.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to sample.
     * @returns {*} Returns the random element.
     * @example
     *
     * _.sample([1, 2, 3, 4]);
     * // => 2
     */
    function sample(collection) {
      var func = isArray(collection) ? arraySample : baseSample;
      return func(collection);
    }

    /**
     * Gets `n` random elements at unique keys from `collection` up to the
     * size of `collection`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to sample.
     * @param {number} [n=1] The number of elements to sample.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the random elements.
     * @example
     *
     * _.sampleSize([1, 2, 3], 2);
     * // => [3, 1]
     *
     * _.sampleSize([1, 2, 3], 4);
     * // => [2, 3, 1]
     */
    function sampleSize(collection, n, guard) {
      if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {
        n = 1;
      } else {
        n = toInteger(n);
      }
      var func = isArray(collection) ? arraySampleSize : baseSampleSize;
      return func(collection, n);
    }

    /**
     * Creates an array of shuffled values, using a version of the
     * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to shuffle.
     * @returns {Array} Returns the new shuffled array.
     * @example
     *
     * _.shuffle([1, 2, 3, 4]);
     * // => [4, 1, 3, 2]
     */
    function shuffle(collection) {
      var func = isArray(collection) ? arrayShuffle : baseShuffle;
      return func(collection);
    }

    /**
     * Gets the size of `collection` by returning its length for array-like
     * values or the number of own enumerable string keyed properties for objects.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object|string} collection The collection to inspect.
     * @returns {number} Returns the collection size.
     * @example
     *
     * _.size([1, 2, 3]);
     * // => 3
     *
     * _.size({ 'a': 1, 'b': 2 });
     * // => 2
     *
     * _.size('pebbles');
     * // => 7
     */
    function size(collection) {
      if (collection == null) {
        return 0;
      }
      if (isArrayLike(collection)) {
        return isString(collection) ? stringSize(collection) : collection.length;
      }
      var tag = getTag(collection);
      if (tag == mapTag || tag == setTag) {
        return collection.size;
      }
      return baseKeys(collection).length;
    }

    /**
     * Checks if `predicate` returns truthy for **any** element of `collection`.
     * Iteration is stopped once `predicate` returns truthy. The predicate is
     * invoked with three arguments: (value, index|key, collection).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {boolean} Returns `true` if any element passes the predicate check,
     *  else `false`.
     * @example
     *
     * _.some([null, 0, 'yes', false], Boolean);
     * // => true
     *
     * var users = [
     *   { 'user': 'barney', 'active': true },
     *   { 'user': 'fred',   'active': false }
     * ];
     *
     * // The `_.matches` iteratee shorthand.
     * _.some(users, { 'user': 'barney', 'active': false });
     * // => false
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.some(users, ['active', false]);
     * // => true
     *
     * // The `_.property` iteratee shorthand.
     * _.some(users, 'active');
     * // => true
     */
    function some(collection, predicate, guard) {
      var func = isArray(collection) ? arraySome : baseSome;
      if (guard && isIterateeCall(collection, predicate, guard)) {
        predicate = undefined;
      }
      return func(collection, getIteratee(predicate, 3));
    }

    /**
     * Creates an array of elements, sorted in ascending order by the results of
     * running each element in a collection thru each iteratee. This method
     * performs a stable sort, that is, it preserves the original sort order of
     * equal elements. The iteratees are invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {...(Function|Function[])} [iteratees=[_.identity]]
     *  The iteratees to sort by.
     * @returns {Array} Returns the new sorted array.
     * @example
     *
     * var users = [
     *   { 'user': 'fred',   'age': 48 },
     *   { 'user': 'barney', 'age': 36 },
     *   { 'user': 'fred',   'age': 40 },
     *   { 'user': 'barney', 'age': 34 }
     * ];
     *
     * _.sortBy(users, [function(o) { return o.user; }]);
     * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
     *
     * _.sortBy(users, ['user', 'age']);
     * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]
     */
    var sortBy = baseRest(function(collection, iteratees) {
      if (collection == null) {
        return [];
      }
      var length = iteratees.length;
      if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {
        iteratees = [];
      } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
        iteratees = [iteratees[0]];
      }
      return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
    });

    /*------------------------------------------------------------------------*/

    /**
     * Gets the timestamp of the number of milliseconds that have elapsed since
     * the Unix epoch (1 January 1970 00:00:00 UTC).
     *
     * @static
     * @memberOf _
     * @since 2.4.0
     * @category Date
     * @returns {number} Returns the timestamp.
     * @example
     *
     * _.defer(function(stamp) {
     *   console.log(_.now() - stamp);
     * }, _.now());
     * // => Logs the number of milliseconds it took for the deferred invocation.
     */
    var now = ctxNow || function() {
      return root.Date.now();
    };

    /*------------------------------------------------------------------------*/

    /**
     * The opposite of `_.before`; this method creates a function that invokes
     * `func` once it's called `n` or more times.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {number} n The number of calls before `func` is invoked.
     * @param {Function} func The function to restrict.
     * @returns {Function} Returns the new restricted function.
     * @example
     *
     * var saves = ['profile', 'settings'];
     *
     * var done = _.after(saves.length, function() {
     *   console.log('done saving!');
     * });
     *
     * _.forEach(saves, function(type) {
     *   asyncSave({ 'type': type, 'complete': done });
     * });
     * // => Logs 'done saving!' after the two async saves have completed.
     */
    function after(n, func) {
      if (typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      n = toInteger(n);
      return function() {
        if (--n < 1) {
          return func.apply(this, arguments);
        }
      };
    }

    /**
     * Creates a function that invokes `func`, with up to `n` arguments,
     * ignoring any additional arguments.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Function
     * @param {Function} func The function to cap arguments for.
     * @param {number} [n=func.length] The arity cap.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Function} Returns the new capped function.
     * @example
     *
     * _.map(['6', '8', '10'], _.ary(parseInt, 1));
     * // => [6, 8, 10]
     */
    function ary(func, n, guard) {
      n = guard ? undefined : n;
      n = (func && n == null) ? func.length : n;
      return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);
    }

    /**
     * Creates a function that invokes `func`, with the `this` binding and arguments
     * of the created function, while it's called less than `n` times. Subsequent
     * calls to the created function return the result of the last `func` invocation.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Function
     * @param {number} n The number of calls at which `func` is no longer invoked.
     * @param {Function} func The function to restrict.
     * @returns {Function} Returns the new restricted function.
     * @example
     *
     * jQuery(element).on('click', _.before(5, addContactToList));
     * // => Allows adding up to 4 contacts to the list.
     */
    function before(n, func) {
      var result;
      if (typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      n = toInteger(n);
      return function() {
        if (--n > 0) {
          result = func.apply(this, arguments);
        }
        if (n <= 1) {
          func = undefined;
        }
        return result;
      };
    }

    /**
     * Creates a function that invokes `func` with the `this` binding of `thisArg`
     * and `partials` prepended to the arguments it receives.
     *
     * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
     * may be used as a placeholder for partially applied arguments.
     *
     * **Note:** Unlike native `Function#bind`, this method doesn't set the "length"
     * property of bound functions.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to bind.
     * @param {*} thisArg The `this` binding of `func`.
     * @param {...*} [partials] The arguments to be partially applied.
     * @returns {Function} Returns the new bound function.
     * @example
     *
     * function greet(greeting, punctuation) {
     *   return greeting + ' ' + this.user + punctuation;
     * }
     *
     * var object = { 'user': 'fred' };
     *
     * var bound = _.bind(greet, object, 'hi');
     * bound('!');
     * // => 'hi fred!'
     *
     * // Bound with placeholders.
     * var bound = _.bind(greet, object, _, '!');
     * bound('hi');
     * // => 'hi fred!'
     */
    var bind = baseRest(function(func, thisArg, partials) {
      var bitmask = WRAP_BIND_FLAG;
      if (partials.length) {
        var holders = replaceHolders(partials, getHolder(bind));
        bitmask |= WRAP_PARTIAL_FLAG;
      }
      return createWrap(func, bitmask, thisArg, partials, holders);
    });

    /**
     * Creates a function that invokes the method at `object[key]` with `partials`
     * prepended to the arguments it receives.
     *
     * This method differs from `_.bind` by allowing bound functions to reference
     * methods that may be redefined or don't yet exist. See
     * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)
     * for more details.
     *
     * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic
     * builds, may be used as a placeholder for partially applied arguments.
     *
     * @static
     * @memberOf _
     * @since 0.10.0
     * @category Function
     * @param {Object} object The object to invoke the method on.
     * @param {string} key The key of the method.
     * @param {...*} [partials] The arguments to be partially applied.
     * @returns {Function} Returns the new bound function.
     * @example
     *
     * var object = {
     *   'user': 'fred',
     *   'greet': function(greeting, punctuation) {
     *     return greeting + ' ' + this.user + punctuation;
     *   }
     * };
     *
     * var bound = _.bindKey(object, 'greet', 'hi');
     * bound('!');
     * // => 'hi fred!'
     *
     * object.greet = function(greeting, punctuation) {
     *   return greeting + 'ya ' + this.user + punctuation;
     * };
     *
     * bound('!');
     * // => 'hiya fred!'
     *
     * // Bound with placeholders.
     * var bound = _.bindKey(object, 'greet', _, '!');
     * bound('hi');
     * // => 'hiya fred!'
     */
    var bindKey = baseRest(function(object, key, partials) {
      var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG;
      if (partials.length) {
        var holders = replaceHolders(partials, getHolder(bindKey));
        bitmask |= WRAP_PARTIAL_FLAG;
      }
      return createWrap(key, bitmask, object, partials, holders);
    });

    /**
     * Creates a function that accepts arguments of `func` and either invokes
     * `func` returning its result, if at least `arity` number of arguments have
     * been provided, or returns a function that accepts the remaining `func`
     * arguments, and so on. The arity of `func` may be specified if `func.length`
     * is not sufficient.
     *
     * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,
     * may be used as a placeholder for provided arguments.
     *
     * **Note:** This method doesn't set the "length" property of curried functions.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Function
     * @param {Function} func The function to curry.
     * @param {number} [arity=func.length] The arity of `func`.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Function} Returns the new curried function.
     * @example
     *
     * var abc = function(a, b, c) {
     *   return [a, b, c];
     * };
     *
     * var curried = _.curry(abc);
     *
     * curried(1)(2)(3);
     * // => [1, 2, 3]
     *
     * curried(1, 2)(3);
     * // => [1, 2, 3]
     *
     * curried(1, 2, 3);
     * // => [1, 2, 3]
     *
     * // Curried with placeholders.
     * curried(1)(_, 3)(2);
     * // => [1, 2, 3]
     */
    function curry(func, arity, guard) {
      arity = guard ? undefined : arity;
      var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
      result.placeholder = curry.placeholder;
      return result;
    }

    /**
     * This method is like `_.curry` except that arguments are applied to `func`
     * in the manner of `_.partialRight` instead of `_.partial`.
     *
     * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic
     * builds, may be used as a placeholder for provided arguments.
     *
     * **Note:** This method doesn't set the "length" property of curried functions.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Function
     * @param {Function} func The function to curry.
     * @param {number} [arity=func.length] The arity of `func`.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Function} Returns the new curried function.
     * @example
     *
     * var abc = function(a, b, c) {
     *   return [a, b, c];
     * };
     *
     * var curried = _.curryRight(abc);
     *
     * curried(3)(2)(1);
     * // => [1, 2, 3]
     *
     * curried(2, 3)(1);
     * // => [1, 2, 3]
     *
     * curried(1, 2, 3);
     * // => [1, 2, 3]
     *
     * // Curried with placeholders.
     * curried(3)(1, _)(2);
     * // => [1, 2, 3]
     */
    function curryRight(func, arity, guard) {
      arity = guard ? undefined : arity;
      var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
      result.placeholder = curryRight.placeholder;
      return result;
    }

    /**
     * Creates a debounced function that delays invoking `func` until after `wait`
     * milliseconds have elapsed since the last time the debounced function was
     * invoked. The debounced function comes with a `cancel` method to cancel
     * delayed `func` invocations and a `flush` method to immediately invoke them.
     * Provide `options` to indicate whether `func` should be invoked on the
     * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
     * with the last arguments provided to the debounced function. Subsequent
     * calls to the debounced function return the result of the last `func`
     * invocation.
     *
     * **Note:** If `leading` and `trailing` options are `true`, `func` is
     * invoked on the trailing edge of the timeout only if the debounced function
     * is invoked more than once during the `wait` timeout.
     *
     * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
     * until to the next tick, similar to `setTimeout` with a timeout of `0`.
     *
     * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
     * for details over the differences between `_.debounce` and `_.throttle`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to debounce.
     * @param {number} [wait=0] The number of milliseconds to delay.
     * @param {Object} [options={}] The options object.
     * @param {boolean} [options.leading=false]
     *  Specify invoking on the leading edge of the timeout.
     * @param {number} [options.maxWait]
     *  The maximum time `func` is allowed to be delayed before it's invoked.
     * @param {boolean} [options.trailing=true]
     *  Specify invoking on the trailing edge of the timeout.
     * @returns {Function} Returns the new debounced function.
     * @example
     *
     * // Avoid costly calculations while the window size is in flux.
     * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
     *
     * // Invoke `sendMail` when clicked, debouncing subsequent calls.
     * jQuery(element).on('click', _.debounce(sendMail, 300, {
     *   'leading': true,
     *   'trailing': false
     * }));
     *
     * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
     * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
     * var source = new EventSource('/stream');
     * jQuery(source).on('message', debounced);
     *
     * // Cancel the trailing debounced invocation.
     * jQuery(window).on('popstate', debounced.cancel);
     */
    function debounce(func, wait, options) {
      var lastArgs,
          lastThis,
          maxWait,
          result,
          timerId,
          lastCallTime,
          lastInvokeTime = 0,
          leading = false,
          maxing = false,
          trailing = true;

      if (typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      wait = toNumber(wait) || 0;
      if (isObject(options)) {
        leading = !!options.leading;
        maxing = 'maxWait' in options;
        maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
        trailing = 'trailing' in options ? !!options.trailing : trailing;
      }

      function invokeFunc(time) {
        var args = lastArgs,
            thisArg = lastThis;

        lastArgs = lastThis = undefined;
        lastInvokeTime = time;
        result = func.apply(thisArg, args);
        return result;
      }

      function leadingEdge(time) {
        // Reset any `maxWait` timer.
        lastInvokeTime = time;
        // Start the timer for the trailing edge.
        timerId = setTimeout(timerExpired, wait);
        // Invoke the leading edge.
        return leading ? invokeFunc(time) : result;
      }

      function remainingWait(time) {
        var timeSinceLastCall = time - lastCallTime,
            timeSinceLastInvoke = time - lastInvokeTime,
            timeWaiting = wait - timeSinceLastCall;

        return maxing
          ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
          : timeWaiting;
      }

      function shouldInvoke(time) {
        var timeSinceLastCall = time - lastCallTime,
            timeSinceLastInvoke = time - lastInvokeTime;

        // Either this is the first call, activity has stopped and we're at the
        // trailing edge, the system time has gone backwards and we're treating
        // it as the trailing edge, or we've hit the `maxWait` limit.
        return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
          (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
      }

      function timerExpired() {
        var time = now();
        if (shouldInvoke(time)) {
          return trailingEdge(time);
        }
        // Restart the timer.
        timerId = setTimeout(timerExpired, remainingWait(time));
      }

      function trailingEdge(time) {
        timerId = undefined;

        // Only invoke if we have `lastArgs` which means `func` has been
        // debounced at least once.
        if (trailing && lastArgs) {
          return invokeFunc(time);
        }
        lastArgs = lastThis = undefined;
        return result;
      }

      function cancel() {
        if (timerId !== undefined) {
          clearTimeout(timerId);
        }
        lastInvokeTime = 0;
        lastArgs = lastCallTime = lastThis = timerId = undefined;
      }

      function flush() {
        return timerId === undefined ? result : trailingEdge(now());
      }

      function debounced() {
        var time = now(),
            isInvoking = shouldInvoke(time);

        lastArgs = arguments;
        lastThis = this;
        lastCallTime = time;

        if (isInvoking) {
          if (timerId === undefined) {
            return leadingEdge(lastCallTime);
          }
          if (maxing) {
            // Handle invocations in a tight loop.
            clearTimeout(timerId);
            timerId = setTimeout(timerExpired, wait);
            return invokeFunc(lastCallTime);
          }
        }
        if (timerId === undefined) {
          timerId = setTimeout(timerExpired, wait);
        }
        return result;
      }
      debounced.cancel = cancel;
      debounced.flush = flush;
      return debounced;
    }

    /**
     * Defers invoking the `func` until the current call stack has cleared. Any
     * additional arguments are provided to `func` when it's invoked.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to defer.
     * @param {...*} [args] The arguments to invoke `func` with.
     * @returns {number} Returns the timer id.
     * @example
     *
     * _.defer(function(text) {
     *   console.log(text);
     * }, 'deferred');
     * // => Logs 'deferred' after one millisecond.
     */
    var defer = baseRest(function(func, args) {
      return baseDelay(func, 1, args);
    });

    /**
     * Invokes `func` after `wait` milliseconds. Any additional arguments are
     * provided to `func` when it's invoked.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to delay.
     * @param {number} wait The number of milliseconds to delay invocation.
     * @param {...*} [args] The arguments to invoke `func` with.
     * @returns {number} Returns the timer id.
     * @example
     *
     * _.delay(function(text) {
     *   console.log(text);
     * }, 1000, 'later');
     * // => Logs 'later' after one second.
     */
    var delay = baseRest(function(func, wait, args) {
      return baseDelay(func, toNumber(wait) || 0, args);
    });

    /**
     * Creates a function that invokes `func` with arguments reversed.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Function
     * @param {Function} func The function to flip arguments for.
     * @returns {Function} Returns the new flipped function.
     * @example
     *
     * var flipped = _.flip(function() {
     *   return _.toArray(arguments);
     * });
     *
     * flipped('a', 'b', 'c', 'd');
     * // => ['d', 'c', 'b', 'a']
     */
    function flip(func) {
      return createWrap(func, WRAP_FLIP_FLAG);
    }

    /**
     * Creates a function that memoizes the result of `func`. If `resolver` is
     * provided, it determines the cache key for storing the result based on the
     * arguments provided to the memoized function. By default, the first argument
     * provided to the memoized function is used as the map cache key. The `func`
     * is invoked with the `this` binding of the memoized function.
     *
     * **Note:** The cache is exposed as the `cache` property on the memoized
     * function. Its creation may be customized by replacing the `_.memoize.Cache`
     * constructor with one whose instances implement the
     * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
     * method interface of `clear`, `delete`, `get`, `has`, and `set`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to have its output memoized.
     * @param {Function} [resolver] The function to resolve the cache key.
     * @returns {Function} Returns the new memoized function.
     * @example
     *
     * var object = { 'a': 1, 'b': 2 };
     * var other = { 'c': 3, 'd': 4 };
     *
     * var values = _.memoize(_.values);
     * values(object);
     * // => [1, 2]
     *
     * values(other);
     * // => [3, 4]
     *
     * object.a = 2;
     * values(object);
     * // => [1, 2]
     *
     * // Modify the result cache.
     * values.cache.set(object, ['a', 'b']);
     * values(object);
     * // => ['a', 'b']
     *
     * // Replace `_.memoize.Cache`.
     * _.memoize.Cache = WeakMap;
     */
    function memoize(func, resolver) {
      if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      var memoized = function() {
        var args = arguments,
            key = resolver ? resolver.apply(this, args) : args[0],
            cache = memoized.cache;

        if (cache.has(key)) {
          return cache.get(key);
        }
        var result = func.apply(this, args);
        memoized.cache = cache.set(key, result) || cache;
        return result;
      };
      memoized.cache = new (memoize.Cache || MapCache);
      return memoized;
    }

    // Expose `MapCache`.
    memoize.Cache = MapCache;

    /**
     * Creates a function that negates the result of the predicate `func`. The
     * `func` predicate is invoked with the `this` binding and arguments of the
     * created function.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Function
     * @param {Function} predicate The predicate to negate.
     * @returns {Function} Returns the new negated function.
     * @example
     *
     * function isEven(n) {
     *   return n % 2 == 0;
     * }
     *
     * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
     * // => [1, 3, 5]
     */
    function negate(predicate) {
      if (typeof predicate != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      return function() {
        var args = arguments;
        switch (args.length) {
          case 0: return !predicate.call(this);
          case 1: return !predicate.call(this, args[0]);
          case 2: return !predicate.call(this, args[0], args[1]);
          case 3: return !predicate.call(this, args[0], args[1], args[2]);
        }
        return !predicate.apply(this, args);
      };
    }

    /**
     * Creates a function that is restricted to invoking `func` once. Repeat calls
     * to the function return the value of the first invocation. The `func` is
     * invoked with the `this` binding and arguments of the created function.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to restrict.
     * @returns {Function} Returns the new restricted function.
     * @example
     *
     * var initialize = _.once(createApplication);
     * initialize();
     * initialize();
     * // => `createApplication` is invoked once
     */
    function once(func) {
      return before(2, func);
    }

    /**
     * Creates a function that invokes `func` with its arguments transformed.
     *
     * @static
     * @since 4.0.0
     * @memberOf _
     * @category Function
     * @param {Function} func The function to wrap.
     * @param {...(Function|Function[])} [transforms=[_.identity]]
     *  The argument transforms.
     * @returns {Function} Returns the new function.
     * @example
     *
     * function doubled(n) {
     *   return n * 2;
     * }
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * var func = _.overArgs(function(x, y) {
     *   return [x, y];
     * }, [square, doubled]);
     *
     * func(9, 3);
     * // => [81, 6]
     *
     * func(10, 5);
     * // => [100, 10]
     */
    var overArgs = castRest(function(func, transforms) {
      transforms = (transforms.length == 1 && isArray(transforms[0]))
        ? arrayMap(transforms[0], baseUnary(getIteratee()))
        : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));

      var funcsLength = transforms.length;
      return baseRest(function(args) {
        var index = -1,
            length = nativeMin(args.length, funcsLength);

        while (++index < length) {
          args[index] = transforms[index].call(this, args[index]);
        }
        return apply(func, this, args);
      });
    });

    /**
     * Creates a function that invokes `func` with `partials` prepended to the
     * arguments it receives. This method is like `_.bind` except it does **not**
     * alter the `this` binding.
     *
     * The `_.partial.placeholder` value, which defaults to `_` in monolithic
     * builds, may be used as a placeholder for partially applied arguments.
     *
     * **Note:** This method doesn't set the "length" property of partially
     * applied functions.
     *
     * @static
     * @memberOf _
     * @since 0.2.0
     * @category Function
     * @param {Function} func The function to partially apply arguments to.
     * @param {...*} [partials] The arguments to be partially applied.
     * @returns {Function} Returns the new partially applied function.
     * @example
     *
     * function greet(greeting, name) {
     *   return greeting + ' ' + name;
     * }
     *
     * var sayHelloTo = _.partial(greet, 'hello');
     * sayHelloTo('fred');
     * // => 'hello fred'
     *
     * // Partially applied with placeholders.
     * var greetFred = _.partial(greet, _, 'fred');
     * greetFred('hi');
     * // => 'hi fred'
     */
    var partial = baseRest(function(func, partials) {
      var holders = replaceHolders(partials, getHolder(partial));
      return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders);
    });

    /**
     * This method is like `_.partial` except that partially applied arguments
     * are appended to the arguments it receives.
     *
     * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic
     * builds, may be used as a placeholder for partially applied arguments.
     *
     * **Note:** This method doesn't set the "length" property of partially
     * applied functions.
     *
     * @static
     * @memberOf _
     * @since 1.0.0
     * @category Function
     * @param {Function} func The function to partially apply arguments to.
     * @param {...*} [partials] The arguments to be partially applied.
     * @returns {Function} Returns the new partially applied function.
     * @example
     *
     * function greet(greeting, name) {
     *   return greeting + ' ' + name;
     * }
     *
     * var greetFred = _.partialRight(greet, 'fred');
     * greetFred('hi');
     * // => 'hi fred'
     *
     * // Partially applied with placeholders.
     * var sayHelloTo = _.partialRight(greet, 'hello', _);
     * sayHelloTo('fred');
     * // => 'hello fred'
     */
    var partialRight = baseRest(function(func, partials) {
      var holders = replaceHolders(partials, getHolder(partialRight));
      return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders);
    });

    /**
     * Creates a function that invokes `func` with arguments arranged according
     * to the specified `indexes` where the argument value at the first index is
     * provided as the first argument, the argument value at the second index is
     * provided as the second argument, and so on.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Function
     * @param {Function} func The function to rearrange arguments for.
     * @param {...(number|number[])} indexes The arranged argument indexes.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var rearged = _.rearg(function(a, b, c) {
     *   return [a, b, c];
     * }, [2, 0, 1]);
     *
     * rearged('b', 'c', 'a')
     * // => ['a', 'b', 'c']
     */
    var rearg = flatRest(function(func, indexes) {
      return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes);
    });

    /**
     * Creates a function that invokes `func` with the `this` binding of the
     * created function and arguments from `start` and beyond provided as
     * an array.
     *
     * **Note:** This method is based on the
     * [rest parameter](https://mdn.io/rest_parameters).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Function
     * @param {Function} func The function to apply a rest parameter to.
     * @param {number} [start=func.length-1] The start position of the rest parameter.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var say = _.rest(function(what, names) {
     *   return what + ' ' + _.initial(names).join(', ') +
     *     (_.size(names) > 1 ? ', & ' : '') + _.last(names);
     * });
     *
     * say('hello', 'fred', 'barney', 'pebbles');
     * // => 'hello fred, barney, & pebbles'
     */
    function rest(func, start) {
      if (typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      start = start === undefined ? start : toInteger(start);
      return baseRest(func, start);
    }

    /**
     * Creates a function that invokes `func` with the `this` binding of the
     * create function and an array of arguments much like
     * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).
     *
     * **Note:** This method is based on the
     * [spread operator](https://mdn.io/spread_operator).
     *
     * @static
     * @memberOf _
     * @since 3.2.0
     * @category Function
     * @param {Function} func The function to spread arguments over.
     * @param {number} [start=0] The start position of the spread.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var say = _.spread(function(who, what) {
     *   return who + ' says ' + what;
     * });
     *
     * say(['fred', 'hello']);
     * // => 'fred says hello'
     *
     * var numbers = Promise.all([
     *   Promise.resolve(40),
     *   Promise.resolve(36)
     * ]);
     *
     * numbers.then(_.spread(function(x, y) {
     *   return x + y;
     * }));
     * // => a Promise of 76
     */
    function spread(func, start) {
      if (typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      start = start == null ? 0 : nativeMax(toInteger(start), 0);
      return baseRest(function(args) {
        var array = args[start],
            otherArgs = castSlice(args, 0, start);

        if (array) {
          arrayPush(otherArgs, array);
        }
        return apply(func, this, otherArgs);
      });
    }

    /**
     * Creates a throttled function that only invokes `func` at most once per
     * every `wait` milliseconds. The throttled function comes with a `cancel`
     * method to cancel delayed `func` invocations and a `flush` method to
     * immediately invoke them. Provide `options` to indicate whether `func`
     * should be invoked on the leading and/or trailing edge of the `wait`
     * timeout. The `func` is invoked with the last arguments provided to the
     * throttled function. Subsequent calls to the throttled function return the
     * result of the last `func` invocation.
     *
     * **Note:** If `leading` and `trailing` options are `true`, `func` is
     * invoked on the trailing edge of the timeout only if the throttled function
     * is invoked more than once during the `wait` timeout.
     *
     * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
     * until to the next tick, similar to `setTimeout` with a timeout of `0`.
     *
     * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
     * for details over the differences between `_.throttle` and `_.debounce`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to throttle.
     * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
     * @param {Object} [options={}] The options object.
     * @param {boolean} [options.leading=true]
     *  Specify invoking on the leading edge of the timeout.
     * @param {boolean} [options.trailing=true]
     *  Specify invoking on the trailing edge of the timeout.
     * @returns {Function} Returns the new throttled function.
     * @example
     *
     * // Avoid excessively updating the position while scrolling.
     * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
     *
     * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
     * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
     * jQuery(element).on('click', throttled);
     *
     * // Cancel the trailing throttled invocation.
     * jQuery(window).on('popstate', throttled.cancel);
     */
    function throttle(func, wait, options) {
      var leading = true,
          trailing = true;

      if (typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      if (isObject(options)) {
        leading = 'leading' in options ? !!options.leading : leading;
        trailing = 'trailing' in options ? !!options.trailing : trailing;
      }
      return debounce(func, wait, {
        'leading': leading,
        'maxWait': wait,
        'trailing': trailing
      });
    }

    /**
     * Creates a function that accepts up to one argument, ignoring any
     * additional arguments.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Function
     * @param {Function} func The function to cap arguments for.
     * @returns {Function} Returns the new capped function.
     * @example
     *
     * _.map(['6', '8', '10'], _.unary(parseInt));
     * // => [6, 8, 10]
     */
    function unary(func) {
      return ary(func, 1);
    }

    /**
     * Creates a function that provides `value` to `wrapper` as its first
     * argument. Any additional arguments provided to the function are appended
     * to those provided to the `wrapper`. The wrapper is invoked with the `this`
     * binding of the created function.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {*} value The value to wrap.
     * @param {Function} [wrapper=identity] The wrapper function.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var p = _.wrap(_.escape, function(func, text) {
     *   return '<p>' + func(text) + '</p>';
     * });
     *
     * p('fred, barney, & pebbles');
     * // => '<p>fred, barney, &amp; pebbles</p>'
     */
    function wrap(value, wrapper) {
      return partial(castFunction(wrapper), value);
    }

    /*------------------------------------------------------------------------*/

    /**
     * Casts `value` as an array if it's not one.
     *
     * @static
     * @memberOf _
     * @since 4.4.0
     * @category Lang
     * @param {*} value The value to inspect.
     * @returns {Array} Returns the cast array.
     * @example
     *
     * _.castArray(1);
     * // => [1]
     *
     * _.castArray({ 'a': 1 });
     * // => [{ 'a': 1 }]
     *
     * _.castArray('abc');
     * // => ['abc']
     *
     * _.castArray(null);
     * // => [null]
     *
     * _.castArray(undefined);
     * // => [undefined]
     *
     * _.castArray();
     * // => []
     *
     * var array = [1, 2, 3];
     * console.log(_.castArray(array) === array);
     * // => true
     */
    function castArray() {
      if (!arguments.length) {
        return [];
      }
      var value = arguments[0];
      return isArray(value) ? value : [value];
    }

    /**
     * Creates a shallow clone of `value`.
     *
     * **Note:** This method is loosely based on the
     * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
     * and supports cloning arrays, array buffers, booleans, date objects, maps,
     * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
     * arrays. The own enumerable properties of `arguments` objects are cloned
     * as plain objects. An empty object is returned for uncloneable values such
     * as error objects, functions, DOM nodes, and WeakMaps.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to clone.
     * @returns {*} Returns the cloned value.
     * @see _.cloneDeep
     * @example
     *
     * var objects = [{ 'a': 1 }, { 'b': 2 }];
     *
     * var shallow = _.clone(objects);
     * console.log(shallow[0] === objects[0]);
     * // => true
     */
    function clone(value) {
      return baseClone(value, CLONE_SYMBOLS_FLAG);
    }

    /**
     * This method is like `_.clone` except that it accepts `customizer` which
     * is invoked to produce the cloned value. If `customizer` returns `undefined`,
     * cloning is handled by the method instead. The `customizer` is invoked with
     * up to four arguments; (value [, index|key, object, stack]).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to clone.
     * @param {Function} [customizer] The function to customize cloning.
     * @returns {*} Returns the cloned value.
     * @see _.cloneDeepWith
     * @example
     *
     * function customizer(value) {
     *   if (_.isElement(value)) {
     *     return value.cloneNode(false);
     *   }
     * }
     *
     * var el = _.cloneWith(document.body, customizer);
     *
     * console.log(el === document.body);
     * // => false
     * console.log(el.nodeName);
     * // => 'BODY'
     * console.log(el.childNodes.length);
     * // => 0
     */
    function cloneWith(value, customizer) {
      customizer = typeof customizer == 'function' ? customizer : undefined;
      return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);
    }

    /**
     * This method is like `_.clone` except that it recursively clones `value`.
     *
     * @static
     * @memberOf _
     * @since 1.0.0
     * @category Lang
     * @param {*} value The value to recursively clone.
     * @returns {*} Returns the deep cloned value.
     * @see _.clone
     * @example
     *
     * var objects = [{ 'a': 1 }, { 'b': 2 }];
     *
     * var deep = _.cloneDeep(objects);
     * console.log(deep[0] === objects[0]);
     * // => false
     */
    function cloneDeep(value) {
      return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
    }

    /**
     * This method is like `_.cloneWith` except that it recursively clones `value`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to recursively clone.
     * @param {Function} [customizer] The function to customize cloning.
     * @returns {*} Returns the deep cloned value.
     * @see _.cloneWith
     * @example
     *
     * function customizer(value) {
     *   if (_.isElement(value)) {
     *     return value.cloneNode(true);
     *   }
     * }
     *
     * var el = _.cloneDeepWith(document.body, customizer);
     *
     * console.log(el === document.body);
     * // => false
     * console.log(el.nodeName);
     * // => 'BODY'
     * console.log(el.childNodes.length);
     * // => 20
     */
    function cloneDeepWith(value, customizer) {
      customizer = typeof customizer == 'function' ? customizer : undefined;
      return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);
    }

    /**
     * Checks if `object` conforms to `source` by invoking the predicate
     * properties of `source` with the corresponding property values of `object`.
     *
     * **Note:** This method is equivalent to `_.conforms` when `source` is
     * partially applied.
     *
     * @static
     * @memberOf _
     * @since 4.14.0
     * @category Lang
     * @param {Object} object The object to inspect.
     * @param {Object} source The object of property predicates to conform to.
     * @returns {boolean} Returns `true` if `object` conforms, else `false`.
     * @example
     *
     * var object = { 'a': 1, 'b': 2 };
     *
     * _.conformsTo(object, { 'b': function(n) { return n > 1; } });
     * // => true
     *
     * _.conformsTo(object, { 'b': function(n) { return n > 2; } });
     * // => false
     */
    function conformsTo(object, source) {
      return source == null || baseConformsTo(object, source, keys(source));
    }

    /**
     * Performs a
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * comparison between two values to determine if they are equivalent.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
     * @example
     *
     * var object = { 'a': 1 };
     * var other = { 'a': 1 };
     *
     * _.eq(object, object);
     * // => true
     *
     * _.eq(object, other);
     * // => false
     *
     * _.eq('a', 'a');
     * // => true
     *
     * _.eq('a', Object('a'));
     * // => false
     *
     * _.eq(NaN, NaN);
     * // => true
     */
    function eq(value, other) {
      return value === other || (value !== value && other !== other);
    }

    /**
     * Checks if `value` is greater than `other`.
     *
     * @static
     * @memberOf _
     * @since 3.9.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is greater than `other`,
     *  else `false`.
     * @see _.lt
     * @example
     *
     * _.gt(3, 1);
     * // => true
     *
     * _.gt(3, 3);
     * // => false
     *
     * _.gt(1, 3);
     * // => false
     */
    var gt = createRelationalOperation(baseGt);

    /**
     * Checks if `value` is greater than or equal to `other`.
     *
     * @static
     * @memberOf _
     * @since 3.9.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is greater than or equal to
     *  `other`, else `false`.
     * @see _.lte
     * @example
     *
     * _.gte(3, 1);
     * // => true
     *
     * _.gte(3, 3);
     * // => true
     *
     * _.gte(1, 3);
     * // => false
     */
    var gte = createRelationalOperation(function(value, other) {
      return value >= other;
    });

    /**
     * Checks if `value` is likely an `arguments` object.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an `arguments` object,
     *  else `false`.
     * @example
     *
     * _.isArguments(function() { return arguments; }());
     * // => true
     *
     * _.isArguments([1, 2, 3]);
     * // => false
     */
    var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
      return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
        !propertyIsEnumerable.call(value, 'callee');
    };

    /**
     * Checks if `value` is classified as an `Array` object.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an array, else `false`.
     * @example
     *
     * _.isArray([1, 2, 3]);
     * // => true
     *
     * _.isArray(document.body.children);
     * // => false
     *
     * _.isArray('abc');
     * // => false
     *
     * _.isArray(_.noop);
     * // => false
     */
    var isArray = Array.isArray;

    /**
     * Checks if `value` is classified as an `ArrayBuffer` object.
     *
     * @static
     * @memberOf _
     * @since 4.3.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
     * @example
     *
     * _.isArrayBuffer(new ArrayBuffer(2));
     * // => true
     *
     * _.isArrayBuffer(new Array(2));
     * // => false
     */
    var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;

    /**
     * Checks if `value` is array-like. A value is considered array-like if it's
     * not a function and has a `value.length` that's an integer greater than or
     * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
     * @example
     *
     * _.isArrayLike([1, 2, 3]);
     * // => true
     *
     * _.isArrayLike(document.body.children);
     * // => true
     *
     * _.isArrayLike('abc');
     * // => true
     *
     * _.isArrayLike(_.noop);
     * // => false
     */
    function isArrayLike(value) {
      return value != null && isLength(value.length) && !isFunction(value);
    }

    /**
     * This method is like `_.isArrayLike` except that it also checks if `value`
     * is an object.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an array-like object,
     *  else `false`.
     * @example
     *
     * _.isArrayLikeObject([1, 2, 3]);
     * // => true
     *
     * _.isArrayLikeObject(document.body.children);
     * // => true
     *
     * _.isArrayLikeObject('abc');
     * // => false
     *
     * _.isArrayLikeObject(_.noop);
     * // => false
     */
    function isArrayLikeObject(value) {
      return isObjectLike(value) && isArrayLike(value);
    }

    /**
     * Checks if `value` is classified as a boolean primitive or object.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.
     * @example
     *
     * _.isBoolean(false);
     * // => true
     *
     * _.isBoolean(null);
     * // => false
     */
    function isBoolean(value) {
      return value === true || value === false ||
        (isObjectLike(value) && baseGetTag(value) == boolTag);
    }

    /**
     * Checks if `value` is a buffer.
     *
     * @static
     * @memberOf _
     * @since 4.3.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
     * @example
     *
     * _.isBuffer(new Buffer(2));
     * // => true
     *
     * _.isBuffer(new Uint8Array(2));
     * // => false
     */
    var isBuffer = nativeIsBuffer || stubFalse;

    /**
     * Checks if `value` is classified as a `Date` object.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
     * @example
     *
     * _.isDate(new Date);
     * // => true
     *
     * _.isDate('Mon April 23 2012');
     * // => false
     */
    var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;

    /**
     * Checks if `value` is likely a DOM element.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.
     * @example
     *
     * _.isElement(document.body);
     * // => true
     *
     * _.isElement('<body>');
     * // => false
     */
    function isElement(value) {
      return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);
    }

    /**
     * Checks if `value` is an empty object, collection, map, or set.
     *
     * Objects are considered empty if they have no own enumerable string keyed
     * properties.
     *
     * Array-like values such as `arguments` objects, arrays, buffers, strings, or
     * jQuery-like collections are considered empty if they have a `length` of `0`.
     * Similarly, maps and sets are considered empty if they have a `size` of `0`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is empty, else `false`.
     * @example
     *
     * _.isEmpty(null);
     * // => true
     *
     * _.isEmpty(true);
     * // => true
     *
     * _.isEmpty(1);
     * // => true
     *
     * _.isEmpty([1, 2, 3]);
     * // => false
     *
     * _.isEmpty({ 'a': 1 });
     * // => false
     */
    function isEmpty(value) {
      if (value == null) {
        return true;
      }
      if (isArrayLike(value) &&
          (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
            isBuffer(value) || isTypedArray(value) || isArguments(value))) {
        return !value.length;
      }
      var tag = getTag(value);
      if (tag == mapTag || tag == setTag) {
        return !value.size;
      }
      if (isPrototype(value)) {
        return !baseKeys(value).length;
      }
      for (var key in value) {
        if (hasOwnProperty.call(value, key)) {
          return false;
        }
      }
      return true;
    }

    /**
     * Performs a deep comparison between two values to determine if they are
     * equivalent.
     *
     * **Note:** This method supports comparing arrays, array buffers, booleans,
     * date objects, error objects, maps, numbers, `Object` objects, regexes,
     * sets, strings, symbols, and typed arrays. `Object` objects are compared
     * by their own, not inherited, enumerable properties. Functions and DOM
     * nodes are compared by strict equality, i.e. `===`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
     * @example
     *
     * var object = { 'a': 1 };
     * var other = { 'a': 1 };
     *
     * _.isEqual(object, other);
     * // => true
     *
     * object === other;
     * // => false
     */
    function isEqual(value, other) {
      return baseIsEqual(value, other);
    }

    /**
     * This method is like `_.isEqual` except that it accepts `customizer` which
     * is invoked to compare values. If `customizer` returns `undefined`, comparisons
     * are handled by the method instead. The `customizer` is invoked with up to
     * six arguments: (objValue, othValue [, index|key, object, other, stack]).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @param {Function} [customizer] The function to customize comparisons.
     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
     * @example
     *
     * function isGreeting(value) {
     *   return /^h(?:i|ello)$/.test(value);
     * }
     *
     * function customizer(objValue, othValue) {
     *   if (isGreeting(objValue) && isGreeting(othValue)) {
     *     return true;
     *   }
     * }
     *
     * var array = ['hello', 'goodbye'];
     * var other = ['hi', 'goodbye'];
     *
     * _.isEqualWith(array, other, customizer);
     * // => true
     */
    function isEqualWith(value, other, customizer) {
      customizer = typeof customizer == 'function' ? customizer : undefined;
      var result = customizer ? customizer(value, other) : undefined;
      return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;
    }

    /**
     * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,
     * `SyntaxError`, `TypeError`, or `URIError` object.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an error object, else `false`.
     * @example
     *
     * _.isError(new Error);
     * // => true
     *
     * _.isError(Error);
     * // => false
     */
    function isError(value) {
      if (!isObjectLike(value)) {
        return false;
      }
      var tag = baseGetTag(value);
      return tag == errorTag || tag == domExcTag ||
        (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));
    }

    /**
     * Checks if `value` is a finite primitive number.
     *
     * **Note:** This method is based on
     * [`Number.isFinite`](https://mdn.io/Number/isFinite).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.
     * @example
     *
     * _.isFinite(3);
     * // => true
     *
     * _.isFinite(Number.MIN_VALUE);
     * // => true
     *
     * _.isFinite(Infinity);
     * // => false
     *
     * _.isFinite('3');
     * // => false
     */
    function isFinite(value) {
      return typeof value == 'number' && nativeIsFinite(value);
    }

    /**
     * Checks if `value` is classified as a `Function` object.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a function, else `false`.
     * @example
     *
     * _.isFunction(_);
     * // => true
     *
     * _.isFunction(/abc/);
     * // => false
     */
    function isFunction(value) {
      if (!isObject(value)) {
        return false;
      }
      // The use of `Object#toString` avoids issues with the `typeof` operator
      // in Safari 9 which returns 'object' for typed arrays and other constructors.
      var tag = baseGetTag(value);
      return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
    }

    /**
     * Checks if `value` is an integer.
     *
     * **Note:** This method is based on
     * [`Number.isInteger`](https://mdn.io/Number/isInteger).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an integer, else `false`.
     * @example
     *
     * _.isInteger(3);
     * // => true
     *
     * _.isInteger(Number.MIN_VALUE);
     * // => false
     *
     * _.isInteger(Infinity);
     * // => false
     *
     * _.isInteger('3');
     * // => false
     */
    function isInteger(value) {
      return typeof value == 'number' && value == toInteger(value);
    }

    /**
     * Checks if `value` is a valid array-like length.
     *
     * **Note:** This method is loosely based on
     * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
     * @example
     *
     * _.isLength(3);
     * // => true
     *
     * _.isLength(Number.MIN_VALUE);
     * // => false
     *
     * _.isLength(Infinity);
     * // => false
     *
     * _.isLength('3');
     * // => false
     */
    function isLength(value) {
      return typeof value == 'number' &&
        value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
    }

    /**
     * Checks if `value` is the
     * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
     * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an object, else `false`.
     * @example
     *
     * _.isObject({});
     * // => true
     *
     * _.isObject([1, 2, 3]);
     * // => true
     *
     * _.isObject(_.noop);
     * // => true
     *
     * _.isObject(null);
     * // => false
     */
    function isObject(value) {
      var type = typeof value;
      return value != null && (type == 'object' || type == 'function');
    }

    /**
     * Checks if `value` is object-like. A value is object-like if it's not `null`
     * and has a `typeof` result of "object".
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
     * @example
     *
     * _.isObjectLike({});
     * // => true
     *
     * _.isObjectLike([1, 2, 3]);
     * // => true
     *
     * _.isObjectLike(_.noop);
     * // => false
     *
     * _.isObjectLike(null);
     * // => false
     */
    function isObjectLike(value) {
      return value != null && typeof value == 'object';
    }

    /**
     * Checks if `value` is classified as a `Map` object.
     *
     * @static
     * @memberOf _
     * @since 4.3.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a map, else `false`.
     * @example
     *
     * _.isMap(new Map);
     * // => true
     *
     * _.isMap(new WeakMap);
     * // => false
     */
    var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;

    /**
     * Performs a partial deep comparison between `object` and `source` to
     * determine if `object` contains equivalent property values.
     *
     * **Note:** This method is equivalent to `_.matches` when `source` is
     * partially applied.
     *
     * Partial comparisons will match empty array and empty object `source`
     * values against any array or object value, respectively. See `_.isEqual`
     * for a list of supported value comparisons.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Lang
     * @param {Object} object The object to inspect.
     * @param {Object} source The object of property values to match.
     * @returns {boolean} Returns `true` if `object` is a match, else `false`.
     * @example
     *
     * var object = { 'a': 1, 'b': 2 };
     *
     * _.isMatch(object, { 'b': 2 });
     * // => true
     *
     * _.isMatch(object, { 'b': 1 });
     * // => false
     */
    function isMatch(object, source) {
      return object === source || baseIsMatch(object, source, getMatchData(source));
    }

    /**
     * This method is like `_.isMatch` except that it accepts `customizer` which
     * is invoked to compare values. If `customizer` returns `undefined`, comparisons
     * are handled by the method instead. The `customizer` is invoked with five
     * arguments: (objValue, srcValue, index|key, object, source).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {Object} object The object to inspect.
     * @param {Object} source The object of property values to match.
     * @param {Function} [customizer] The function to customize comparisons.
     * @returns {boolean} Returns `true` if `object` is a match, else `false`.
     * @example
     *
     * function isGreeting(value) {
     *   return /^h(?:i|ello)$/.test(value);
     * }
     *
     * function customizer(objValue, srcValue) {
     *   if (isGreeting(objValue) && isGreeting(srcValue)) {
     *     return true;
     *   }
     * }
     *
     * var object = { 'greeting': 'hello' };
     * var source = { 'greeting': 'hi' };
     *
     * _.isMatchWith(object, source, customizer);
     * // => true
     */
    function isMatchWith(object, source, customizer) {
      customizer = typeof customizer == 'function' ? customizer : undefined;
      return baseIsMatch(object, source, getMatchData(source), customizer);
    }

    /**
     * Checks if `value` is `NaN`.
     *
     * **Note:** This method is based on
     * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as
     * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for
     * `undefined` and other non-number values.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
     * @example
     *
     * _.isNaN(NaN);
     * // => true
     *
     * _.isNaN(new Number(NaN));
     * // => true
     *
     * isNaN(undefined);
     * // => true
     *
     * _.isNaN(undefined);
     * // => false
     */
    function isNaN(value) {
      // An `NaN` primitive is the only value that is not equal to itself.
      // Perform the `toStringTag` check first to avoid errors with some
      // ActiveX objects in IE.
      return isNumber(value) && value != +value;
    }

    /**
     * Checks if `value` is a pristine native function.
     *
     * **Note:** This method can't reliably detect native functions in the presence
     * of the core-js package because core-js circumvents this kind of detection.
     * Despite multiple requests, the core-js maintainer has made it clear: any
     * attempt to fix the detection will be obstructed. As a result, we're left
     * with little choice but to throw an error. Unfortunately, this also affects
     * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),
     * which rely on core-js.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a native function,
     *  else `false`.
     * @example
     *
     * _.isNative(Array.prototype.push);
     * // => true
     *
     * _.isNative(_);
     * // => false
     */
    function isNative(value) {
      if (isMaskable(value)) {
        throw new Error(CORE_ERROR_TEXT);
      }
      return baseIsNative(value);
    }

    /**
     * Checks if `value` is `null`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is `null`, else `false`.
     * @example
     *
     * _.isNull(null);
     * // => true
     *
     * _.isNull(void 0);
     * // => false
     */
    function isNull(value) {
      return value === null;
    }

    /**
     * Checks if `value` is `null` or `undefined`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
     * @example
     *
     * _.isNil(null);
     * // => true
     *
     * _.isNil(void 0);
     * // => true
     *
     * _.isNil(NaN);
     * // => false
     */
    function isNil(value) {
      return value == null;
    }

    /**
     * Checks if `value` is classified as a `Number` primitive or object.
     *
     * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
     * classified as numbers, use the `_.isFinite` method.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a number, else `false`.
     * @example
     *
     * _.isNumber(3);
     * // => true
     *
     * _.isNumber(Number.MIN_VALUE);
     * // => true
     *
     * _.isNumber(Infinity);
     * // => true
     *
     * _.isNumber('3');
     * // => false
     */
    function isNumber(value) {
      return typeof value == 'number' ||
        (isObjectLike(value) && baseGetTag(value) == numberTag);
    }

    /**
     * Checks if `value` is a plain object, that is, an object created by the
     * `Object` constructor or one with a `[[Prototype]]` of `null`.
     *
     * @static
     * @memberOf _
     * @since 0.8.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     * }
     *
     * _.isPlainObject(new Foo);
     * // => false
     *
     * _.isPlainObject([1, 2, 3]);
     * // => false
     *
     * _.isPlainObject({ 'x': 0, 'y': 0 });
     * // => true
     *
     * _.isPlainObject(Object.create(null));
     * // => true
     */
    function isPlainObject(value) {
      if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
        return false;
      }
      var proto = getPrototype(value);
      if (proto === null) {
        return true;
      }
      var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
      return typeof Ctor == 'function' && Ctor instanceof Ctor &&
        funcToString.call(Ctor) == objectCtorString;
    }

    /**
     * Checks if `value` is classified as a `RegExp` object.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
     * @example
     *
     * _.isRegExp(/abc/);
     * // => true
     *
     * _.isRegExp('/abc/');
     * // => false
     */
    var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;

    /**
     * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754
     * double precision number which isn't the result of a rounded unsafe integer.
     *
     * **Note:** This method is based on
     * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.
     * @example
     *
     * _.isSafeInteger(3);
     * // => true
     *
     * _.isSafeInteger(Number.MIN_VALUE);
     * // => false
     *
     * _.isSafeInteger(Infinity);
     * // => false
     *
     * _.isSafeInteger('3');
     * // => false
     */
    function isSafeInteger(value) {
      return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;
    }

    /**
     * Checks if `value` is classified as a `Set` object.
     *
     * @static
     * @memberOf _
     * @since 4.3.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a set, else `false`.
     * @example
     *
     * _.isSet(new Set);
     * // => true
     *
     * _.isSet(new WeakSet);
     * // => false
     */
    var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;

    /**
     * Checks if `value` is classified as a `String` primitive or object.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a string, else `false`.
     * @example
     *
     * _.isString('abc');
     * // => true
     *
     * _.isString(1);
     * // => false
     */
    function isString(value) {
      return typeof value == 'string' ||
        (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
    }

    /**
     * Checks if `value` is classified as a `Symbol` primitive or object.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
     * @example
     *
     * _.isSymbol(Symbol.iterator);
     * // => true
     *
     * _.isSymbol('abc');
     * // => false
     */
    function isSymbol(value) {
      return typeof value == 'symbol' ||
        (isObjectLike(value) && baseGetTag(value) == symbolTag);
    }

    /**
     * Checks if `value` is classified as a typed array.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
     * @example
     *
     * _.isTypedArray(new Uint8Array);
     * // => true
     *
     * _.isTypedArray([]);
     * // => false
     */
    var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;

    /**
     * Checks if `value` is `undefined`.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
     * @example
     *
     * _.isUndefined(void 0);
     * // => true
     *
     * _.isUndefined(null);
     * // => false
     */
    function isUndefined(value) {
      return value === undefined;
    }

    /**
     * Checks if `value` is classified as a `WeakMap` object.
     *
     * @static
     * @memberOf _
     * @since 4.3.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.
     * @example
     *
     * _.isWeakMap(new WeakMap);
     * // => true
     *
     * _.isWeakMap(new Map);
     * // => false
     */
    function isWeakMap(value) {
      return isObjectLike(value) && getTag(value) == weakMapTag;
    }

    /**
     * Checks if `value` is classified as a `WeakSet` object.
     *
     * @static
     * @memberOf _
     * @since 4.3.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.
     * @example
     *
     * _.isWeakSet(new WeakSet);
     * // => true
     *
     * _.isWeakSet(new Set);
     * // => false
     */
    function isWeakSet(value) {
      return isObjectLike(value) && baseGetTag(value) == weakSetTag;
    }

    /**
     * Checks if `value` is less than `other`.
     *
     * @static
     * @memberOf _
     * @since 3.9.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is less than `other`,
     *  else `false`.
     * @see _.gt
     * @example
     *
     * _.lt(1, 3);
     * // => true
     *
     * _.lt(3, 3);
     * // => false
     *
     * _.lt(3, 1);
     * // => false
     */
    var lt = createRelationalOperation(baseLt);

    /**
     * Checks if `value` is less than or equal to `other`.
     *
     * @static
     * @memberOf _
     * @since 3.9.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is less than or equal to
     *  `other`, else `false`.
     * @see _.gte
     * @example
     *
     * _.lte(1, 3);
     * // => true
     *
     * _.lte(3, 3);
     * // => true
     *
     * _.lte(3, 1);
     * // => false
     */
    var lte = createRelationalOperation(function(value, other) {
      return value <= other;
    });

    /**
     * Converts `value` to an array.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {Array} Returns the converted array.
     * @example
     *
     * _.toArray({ 'a': 1, 'b': 2 });
     * // => [1, 2]
     *
     * _.toArray('abc');
     * // => ['a', 'b', 'c']
     *
     * _.toArray(1);
     * // => []
     *
     * _.toArray(null);
     * // => []
     */
    function toArray(value) {
      if (!value) {
        return [];
      }
      if (isArrayLike(value)) {
        return isString(value) ? stringToArray(value) : copyArray(value);
      }
      if (symIterator && value[symIterator]) {
        return iteratorToArray(value[symIterator]());
      }
      var tag = getTag(value),
          func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);

      return func(value);
    }

    /**
     * Converts `value` to a finite number.
     *
     * @static
     * @memberOf _
     * @since 4.12.0
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {number} Returns the converted number.
     * @example
     *
     * _.toFinite(3.2);
     * // => 3.2
     *
     * _.toFinite(Number.MIN_VALUE);
     * // => 5e-324
     *
     * _.toFinite(Infinity);
     * // => 1.7976931348623157e+308
     *
     * _.toFinite('3.2');
     * // => 3.2
     */
    function toFinite(value) {
      if (!value) {
        return value === 0 ? value : 0;
      }
      value = toNumber(value);
      if (value === INFINITY || value === -INFINITY) {
        var sign = (value < 0 ? -1 : 1);
        return sign * MAX_INTEGER;
      }
      return value === value ? value : 0;
    }

    /**
     * Converts `value` to an integer.
     *
     * **Note:** This method is loosely based on
     * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {number} Returns the converted integer.
     * @example
     *
     * _.toInteger(3.2);
     * // => 3
     *
     * _.toInteger(Number.MIN_VALUE);
     * // => 0
     *
     * _.toInteger(Infinity);
     * // => 1.7976931348623157e+308
     *
     * _.toInteger('3.2');
     * // => 3
     */
    function toInteger(value) {
      var result = toFinite(value),
          remainder = result % 1;

      return result === result ? (remainder ? result - remainder : result) : 0;
    }

    /**
     * Converts `value` to an integer suitable for use as the length of an
     * array-like object.
     *
     * **Note:** This method is based on
     * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {number} Returns the converted integer.
     * @example
     *
     * _.toLength(3.2);
     * // => 3
     *
     * _.toLength(Number.MIN_VALUE);
     * // => 0
     *
     * _.toLength(Infinity);
     * // => 4294967295
     *
     * _.toLength('3.2');
     * // => 3
     */
    function toLength(value) {
      return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;
    }

    /**
     * Converts `value` to a number.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to process.
     * @returns {number} Returns the number.
     * @example
     *
     * _.toNumber(3.2);
     * // => 3.2
     *
     * _.toNumber(Number.MIN_VALUE);
     * // => 5e-324
     *
     * _.toNumber(Infinity);
     * // => Infinity
     *
     * _.toNumber('3.2');
     * // => 3.2
     */
    function toNumber(value) {
      if (typeof value == 'number') {
        return value;
      }
      if (isSymbol(value)) {
        return NAN;
      }
      if (isObject(value)) {
        var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
        value = isObject(other) ? (other + '') : other;
      }
      if (typeof value != 'string') {
        return value === 0 ? value : +value;
      }
      value = value.replace(reTrim, '');
      var isBinary = reIsBinary.test(value);
      return (isBinary || reIsOctal.test(value))
        ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
        : (reIsBadHex.test(value) ? NAN : +value);
    }

    /**
     * Converts `value` to a plain object flattening inherited enumerable string
     * keyed properties of `value` to own properties of the plain object.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {Object} Returns the converted plain object.
     * @example
     *
     * function Foo() {
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.assign({ 'a': 1 }, new Foo);
     * // => { 'a': 1, 'b': 2 }
     *
     * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
     * // => { 'a': 1, 'b': 2, 'c': 3 }
     */
    function toPlainObject(value) {
      return copyObject(value, keysIn(value));
    }

    /**
     * Converts `value` to a safe integer. A safe integer can be compared and
     * represented correctly.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {number} Returns the converted integer.
     * @example
     *
     * _.toSafeInteger(3.2);
     * // => 3
     *
     * _.toSafeInteger(Number.MIN_VALUE);
     * // => 0
     *
     * _.toSafeInteger(Infinity);
     * // => 9007199254740991
     *
     * _.toSafeInteger('3.2');
     * // => 3
     */
    function toSafeInteger(value) {
      return value
        ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)
        : (value === 0 ? value : 0);
    }

    /**
     * Converts `value` to a string. An empty string is returned for `null`
     * and `undefined` values. The sign of `-0` is preserved.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {string} Returns the converted string.
     * @example
     *
     * _.toString(null);
     * // => ''
     *
     * _.toString(-0);
     * // => '-0'
     *
     * _.toString([1, 2, 3]);
     * // => '1,2,3'
     */
    function toString(value) {
      return value == null ? '' : baseToString(value);
    }

    /*------------------------------------------------------------------------*/

    /**
     * Assigns own enumerable string keyed properties of source objects to the
     * destination object. Source objects are applied from left to right.
     * Subsequent sources overwrite property assignments of previous sources.
     *
     * **Note:** This method mutates `object` and is loosely based on
     * [`Object.assign`](https://mdn.io/Object/assign).
     *
     * @static
     * @memberOf _
     * @since 0.10.0
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} [sources] The source objects.
     * @returns {Object} Returns `object`.
     * @see _.assignIn
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     * }
     *
     * function Bar() {
     *   this.c = 3;
     * }
     *
     * Foo.prototype.b = 2;
     * Bar.prototype.d = 4;
     *
     * _.assign({ 'a': 0 }, new Foo, new Bar);
     * // => { 'a': 1, 'c': 3 }
     */
    var assign = createAssigner(function(object, source) {
      if (isPrototype(source) || isArrayLike(source)) {
        copyObject(source, keys(source), object);
        return;
      }
      for (var key in source) {
        if (hasOwnProperty.call(source, key)) {
          assignValue(object, key, source[key]);
        }
      }
    });

    /**
     * This method is like `_.assign` except that it iterates over own and
     * inherited source properties.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @alias extend
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} [sources] The source objects.
     * @returns {Object} Returns `object`.
     * @see _.assign
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     * }
     *
     * function Bar() {
     *   this.c = 3;
     * }
     *
     * Foo.prototype.b = 2;
     * Bar.prototype.d = 4;
     *
     * _.assignIn({ 'a': 0 }, new Foo, new Bar);
     * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }
     */
    var assignIn = createAssigner(function(object, source) {
      copyObject(source, keysIn(source), object);
    });

    /**
     * This method is like `_.assignIn` except that it accepts `customizer`
     * which is invoked to produce the assigned values. If `customizer` returns
     * `undefined`, assignment is handled by the method instead. The `customizer`
     * is invoked with five arguments: (objValue, srcValue, key, object, source).
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @alias extendWith
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} sources The source objects.
     * @param {Function} [customizer] The function to customize assigned values.
     * @returns {Object} Returns `object`.
     * @see _.assignWith
     * @example
     *
     * function customizer(objValue, srcValue) {
     *   return _.isUndefined(objValue) ? srcValue : objValue;
     * }
     *
     * var defaults = _.partialRight(_.assignInWith, customizer);
     *
     * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
     * // => { 'a': 1, 'b': 2 }
     */
    var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {
      copyObject(source, keysIn(source), object, customizer);
    });

    /**
     * This method is like `_.assign` except that it accepts `customizer`
     * which is invoked to produce the assigned values. If `customizer` returns
     * `undefined`, assignment is handled by the method instead. The `customizer`
     * is invoked with five arguments: (objValue, srcValue, key, object, source).
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} sources The source objects.
     * @param {Function} [customizer] The function to customize assigned values.
     * @returns {Object} Returns `object`.
     * @see _.assignInWith
     * @example
     *
     * function customizer(objValue, srcValue) {
     *   return _.isUndefined(objValue) ? srcValue : objValue;
     * }
     *
     * var defaults = _.partialRight(_.assignWith, customizer);
     *
     * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
     * // => { 'a': 1, 'b': 2 }
     */
    var assignWith = createAssigner(function(object, source, srcIndex, customizer) {
      copyObject(source, keys(source), object, customizer);
    });

    /**
     * Creates an array of values corresponding to `paths` of `object`.
     *
     * @static
     * @memberOf _
     * @since 1.0.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {...(string|string[])} [paths] The property paths to pick.
     * @returns {Array} Returns the picked values.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
     *
     * _.at(object, ['a[0].b.c', 'a[1]']);
     * // => [3, 4]
     */
    var at = flatRest(baseAt);

    /**
     * Creates an object that inherits from the `prototype` object. If a
     * `properties` object is given, its own enumerable string keyed properties
     * are assigned to the created object.
     *
     * @static
     * @memberOf _
     * @since 2.3.0
     * @category Object
     * @param {Object} prototype The object to inherit from.
     * @param {Object} [properties] The properties to assign to the object.
     * @returns {Object} Returns the new object.
     * @example
     *
     * function Shape() {
     *   this.x = 0;
     *   this.y = 0;
     * }
     *
     * function Circle() {
     *   Shape.call(this);
     * }
     *
     * Circle.prototype = _.create(Shape.prototype, {
     *   'constructor': Circle
     * });
     *
     * var circle = new Circle;
     * circle instanceof Circle;
     * // => true
     *
     * circle instanceof Shape;
     * // => true
     */
    function create(prototype, properties) {
      var result = baseCreate(prototype);
      return properties == null ? result : baseAssign(result, properties);
    }

    /**
     * Assigns own and inherited enumerable string keyed properties of source
     * objects to the destination object for all destination properties that
     * resolve to `undefined`. Source objects are applied from left to right.
     * Once a property is set, additional values of the same property are ignored.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} [sources] The source objects.
     * @returns {Object} Returns `object`.
     * @see _.defaultsDeep
     * @example
     *
     * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
     * // => { 'a': 1, 'b': 2 }
     */
    var defaults = baseRest(function(object, sources) {
      object = Object(object);

      var index = -1;
      var length = sources.length;
      var guard = length > 2 ? sources[2] : undefined;

      if (guard && isIterateeCall(sources[0], sources[1], guard)) {
        length = 1;
      }

      while (++index < length) {
        var source = sources[index];
        var props = keysIn(source);
        var propsIndex = -1;
        var propsLength = props.length;

        while (++propsIndex < propsLength) {
          var key = props[propsIndex];
          var value = object[key];

          if (value === undefined ||
              (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {
            object[key] = source[key];
          }
        }
      }

      return object;
    });

    /**
     * This method is like `_.defaults` except that it recursively assigns
     * default properties.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 3.10.0
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} [sources] The source objects.
     * @returns {Object} Returns `object`.
     * @see _.defaults
     * @example
     *
     * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });
     * // => { 'a': { 'b': 2, 'c': 3 } }
     */
    var defaultsDeep = baseRest(function(args) {
      args.push(undefined, customDefaultsMerge);
      return apply(mergeWith, undefined, args);
    });

    /**
     * This method is like `_.find` except that it returns the key of the first
     * element `predicate` returns truthy for instead of the element itself.
     *
     * @static
     * @memberOf _
     * @since 1.1.0
     * @category Object
     * @param {Object} object The object to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {string|undefined} Returns the key of the matched element,
     *  else `undefined`.
     * @example
     *
     * var users = {
     *   'barney':  { 'age': 36, 'active': true },
     *   'fred':    { 'age': 40, 'active': false },
     *   'pebbles': { 'age': 1,  'active': true }
     * };
     *
     * _.findKey(users, function(o) { return o.age < 40; });
     * // => 'barney' (iteration order is not guaranteed)
     *
     * // The `_.matches` iteratee shorthand.
     * _.findKey(users, { 'age': 1, 'active': true });
     * // => 'pebbles'
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.findKey(users, ['active', false]);
     * // => 'fred'
     *
     * // The `_.property` iteratee shorthand.
     * _.findKey(users, 'active');
     * // => 'barney'
     */
    function findKey(object, predicate) {
      return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);
    }

    /**
     * This method is like `_.findKey` except that it iterates over elements of
     * a collection in the opposite order.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Object
     * @param {Object} object The object to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {string|undefined} Returns the key of the matched element,
     *  else `undefined`.
     * @example
     *
     * var users = {
     *   'barney':  { 'age': 36, 'active': true },
     *   'fred':    { 'age': 40, 'active': false },
     *   'pebbles': { 'age': 1,  'active': true }
     * };
     *
     * _.findLastKey(users, function(o) { return o.age < 40; });
     * // => returns 'pebbles' assuming `_.findKey` returns 'barney'
     *
     * // The `_.matches` iteratee shorthand.
     * _.findLastKey(users, { 'age': 36, 'active': true });
     * // => 'barney'
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.findLastKey(users, ['active', false]);
     * // => 'fred'
     *
     * // The `_.property` iteratee shorthand.
     * _.findLastKey(users, 'active');
     * // => 'pebbles'
     */
    function findLastKey(object, predicate) {
      return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);
    }

    /**
     * Iterates over own and inherited enumerable string keyed properties of an
     * object and invokes `iteratee` for each property. The iteratee is invoked
     * with three arguments: (value, key, object). Iteratee functions may exit
     * iteration early by explicitly returning `false`.
     *
     * @static
     * @memberOf _
     * @since 0.3.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns `object`.
     * @see _.forInRight
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.forIn(new Foo, function(value, key) {
     *   console.log(key);
     * });
     * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
     */
    function forIn(object, iteratee) {
      return object == null
        ? object
        : baseFor(object, getIteratee(iteratee, 3), keysIn);
    }

    /**
     * This method is like `_.forIn` except that it iterates over properties of
     * `object` in the opposite order.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns `object`.
     * @see _.forIn
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.forInRight(new Foo, function(value, key) {
     *   console.log(key);
     * });
     * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.
     */
    function forInRight(object, iteratee) {
      return object == null
        ? object
        : baseForRight(object, getIteratee(iteratee, 3), keysIn);
    }

    /**
     * Iterates over own enumerable string keyed properties of an object and
     * invokes `iteratee` for each property. The iteratee is invoked with three
     * arguments: (value, key, object). Iteratee functions may exit iteration
     * early by explicitly returning `false`.
     *
     * @static
     * @memberOf _
     * @since 0.3.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns `object`.
     * @see _.forOwnRight
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.forOwn(new Foo, function(value, key) {
     *   console.log(key);
     * });
     * // => Logs 'a' then 'b' (iteration order is not guaranteed).
     */
    function forOwn(object, iteratee) {
      return object && baseForOwn(object, getIteratee(iteratee, 3));
    }

    /**
     * This method is like `_.forOwn` except that it iterates over properties of
     * `object` in the opposite order.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns `object`.
     * @see _.forOwn
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.forOwnRight(new Foo, function(value, key) {
     *   console.log(key);
     * });
     * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.
     */
    function forOwnRight(object, iteratee) {
      return object && baseForOwnRight(object, getIteratee(iteratee, 3));
    }

    /**
     * Creates an array of function property names from own enumerable properties
     * of `object`.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The object to inspect.
     * @returns {Array} Returns the function names.
     * @see _.functionsIn
     * @example
     *
     * function Foo() {
     *   this.a = _.constant('a');
     *   this.b = _.constant('b');
     * }
     *
     * Foo.prototype.c = _.constant('c');
     *
     * _.functions(new Foo);
     * // => ['a', 'b']
     */
    function functions(object) {
      return object == null ? [] : baseFunctions(object, keys(object));
    }

    /**
     * Creates an array of function property names from own and inherited
     * enumerable properties of `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The object to inspect.
     * @returns {Array} Returns the function names.
     * @see _.functions
     * @example
     *
     * function Foo() {
     *   this.a = _.constant('a');
     *   this.b = _.constant('b');
     * }
     *
     * Foo.prototype.c = _.constant('c');
     *
     * _.functionsIn(new Foo);
     * // => ['a', 'b', 'c']
     */
    function functionsIn(object) {
      return object == null ? [] : baseFunctions(object, keysIn(object));
    }

    /**
     * Gets the value at `path` of `object`. If the resolved value is
     * `undefined`, the `defaultValue` is returned in its place.
     *
     * @static
     * @memberOf _
     * @since 3.7.0
     * @category Object
     * @param {Object} object The object to query.
     * @param {Array|string} path The path of the property to get.
     * @param {*} [defaultValue] The value returned for `undefined` resolved values.
     * @returns {*} Returns the resolved value.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 3 } }] };
     *
     * _.get(object, 'a[0].b.c');
     * // => 3
     *
     * _.get(object, ['a', '0', 'b', 'c']);
     * // => 3
     *
     * _.get(object, 'a.b.c', 'default');
     * // => 'default'
     */
    function get(object, path, defaultValue) {
      var result = object == null ? undefined : baseGet(object, path);
      return result === undefined ? defaultValue : result;
    }

    /**
     * Checks if `path` is a direct property of `object`.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The object to query.
     * @param {Array|string} path The path to check.
     * @returns {boolean} Returns `true` if `path` exists, else `false`.
     * @example
     *
     * var object = { 'a': { 'b': 2 } };
     * var other = _.create({ 'a': _.create({ 'b': 2 }) });
     *
     * _.has(object, 'a');
     * // => true
     *
     * _.has(object, 'a.b');
     * // => true
     *
     * _.has(object, ['a', 'b']);
     * // => true
     *
     * _.has(other, 'a');
     * // => false
     */
    function has(object, path) {
      return object != null && hasPath(object, path, baseHas);
    }

    /**
     * Checks if `path` is a direct or inherited property of `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The object to query.
     * @param {Array|string} path The path to check.
     * @returns {boolean} Returns `true` if `path` exists, else `false`.
     * @example
     *
     * var object = _.create({ 'a': _.create({ 'b': 2 }) });
     *
     * _.hasIn(object, 'a');
     * // => true
     *
     * _.hasIn(object, 'a.b');
     * // => true
     *
     * _.hasIn(object, ['a', 'b']);
     * // => true
     *
     * _.hasIn(object, 'b');
     * // => false
     */
    function hasIn(object, path) {
      return object != null && hasPath(object, path, baseHasIn);
    }

    /**
     * Creates an object composed of the inverted keys and values of `object`.
     * If `object` contains duplicate values, subsequent values overwrite
     * property assignments of previous values.
     *
     * @static
     * @memberOf _
     * @since 0.7.0
     * @category Object
     * @param {Object} object The object to invert.
     * @returns {Object} Returns the new inverted object.
     * @example
     *
     * var object = { 'a': 1, 'b': 2, 'c': 1 };
     *
     * _.invert(object);
     * // => { '1': 'c', '2': 'b' }
     */
    var invert = createInverter(function(result, value, key) {
      if (value != null &&
          typeof value.toString != 'function') {
        value = nativeObjectToString.call(value);
      }

      result[value] = key;
    }, constant(identity));

    /**
     * This method is like `_.invert` except that the inverted object is generated
     * from the results of running each element of `object` thru `iteratee`. The
     * corresponding inverted value of each inverted key is an array of keys
     * responsible for generating the inverted value. The iteratee is invoked
     * with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.1.0
     * @category Object
     * @param {Object} object The object to invert.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Object} Returns the new inverted object.
     * @example
     *
     * var object = { 'a': 1, 'b': 2, 'c': 1 };
     *
     * _.invertBy(object);
     * // => { '1': ['a', 'c'], '2': ['b'] }
     *
     * _.invertBy(object, function(value) {
     *   return 'group' + value;
     * });
     * // => { 'group1': ['a', 'c'], 'group2': ['b'] }
     */
    var invertBy = createInverter(function(result, value, key) {
      if (value != null &&
          typeof value.toString != 'function') {
        value = nativeObjectToString.call(value);
      }

      if (hasOwnProperty.call(result, value)) {
        result[value].push(key);
      } else {
        result[value] = [key];
      }
    }, getIteratee);

    /**
     * Invokes the method at `path` of `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The object to query.
     * @param {Array|string} path The path of the method to invoke.
     * @param {...*} [args] The arguments to invoke the method with.
     * @returns {*} Returns the result of the invoked method.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };
     *
     * _.invoke(object, 'a[0].b.c.slice', 1, 3);
     * // => [2, 3]
     */
    var invoke = baseRest(baseInvoke);

    /**
     * Creates an array of the own enumerable property names of `object`.
     *
     * **Note:** Non-object values are coerced to objects. See the
     * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
     * for more details.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.keys(new Foo);
     * // => ['a', 'b'] (iteration order is not guaranteed)
     *
     * _.keys('hi');
     * // => ['0', '1']
     */
    function keys(object) {
      return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
    }

    /**
     * Creates an array of the own and inherited enumerable property names of `object`.
     *
     * **Note:** Non-object values are coerced to objects.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.keysIn(new Foo);
     * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
     */
    function keysIn(object) {
      return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
    }

    /**
     * The opposite of `_.mapValues`; this method creates an object with the
     * same values as `object` and keys generated by running each own enumerable
     * string keyed property of `object` thru `iteratee`. The iteratee is invoked
     * with three arguments: (value, key, object).
     *
     * @static
     * @memberOf _
     * @since 3.8.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns the new mapped object.
     * @see _.mapValues
     * @example
     *
     * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {
     *   return key + value;
     * });
     * // => { 'a1': 1, 'b2': 2 }
     */
    function mapKeys(object, iteratee) {
      var result = {};
      iteratee = getIteratee(iteratee, 3);

      baseForOwn(object, function(value, key, object) {
        baseAssignValue(result, iteratee(value, key, object), value);
      });
      return result;
    }

    /**
     * Creates an object with the same keys as `object` and values generated
     * by running each own enumerable string keyed property of `object` thru
     * `iteratee`. The iteratee is invoked with three arguments:
     * (value, key, object).
     *
     * @static
     * @memberOf _
     * @since 2.4.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns the new mapped object.
     * @see _.mapKeys
     * @example
     *
     * var users = {
     *   'fred':    { 'user': 'fred',    'age': 40 },
     *   'pebbles': { 'user': 'pebbles', 'age': 1 }
     * };
     *
     * _.mapValues(users, function(o) { return o.age; });
     * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
     *
     * // The `_.property` iteratee shorthand.
     * _.mapValues(users, 'age');
     * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
     */
    function mapValues(object, iteratee) {
      var result = {};
      iteratee = getIteratee(iteratee, 3);

      baseForOwn(object, function(value, key, object) {
        baseAssignValue(result, key, iteratee(value, key, object));
      });
      return result;
    }

    /**
     * This method is like `_.assign` except that it recursively merges own and
     * inherited enumerable string keyed properties of source objects into the
     * destination object. Source properties that resolve to `undefined` are
     * skipped if a destination value exists. Array and plain object properties
     * are merged recursively. Other objects and value types are overridden by
     * assignment. Source objects are applied from left to right. Subsequent
     * sources overwrite property assignments of previous sources.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 0.5.0
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} [sources] The source objects.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var object = {
     *   'a': [{ 'b': 2 }, { 'd': 4 }]
     * };
     *
     * var other = {
     *   'a': [{ 'c': 3 }, { 'e': 5 }]
     * };
     *
     * _.merge(object, other);
     * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
     */
    var merge = createAssigner(function(object, source, srcIndex) {
      baseMerge(object, source, srcIndex);
    });

    /**
     * This method is like `_.merge` except that it accepts `customizer` which
     * is invoked to produce the merged values of the destination and source
     * properties. If `customizer` returns `undefined`, merging is handled by the
     * method instead. The `customizer` is invoked with six arguments:
     * (objValue, srcValue, key, object, source, stack).
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} sources The source objects.
     * @param {Function} customizer The function to customize assigned values.
     * @returns {Object} Returns `object`.
     * @example
     *
     * function customizer(objValue, srcValue) {
     *   if (_.isArray(objValue)) {
     *     return objValue.concat(srcValue);
     *   }
     * }
     *
     * var object = { 'a': [1], 'b': [2] };
     * var other = { 'a': [3], 'b': [4] };
     *
     * _.mergeWith(object, other, customizer);
     * // => { 'a': [1, 3], 'b': [2, 4] }
     */
    var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {
      baseMerge(object, source, srcIndex, customizer);
    });

    /**
     * The opposite of `_.pick`; this method creates an object composed of the
     * own and inherited enumerable property paths of `object` that are not omitted.
     *
     * **Note:** This method is considerably slower than `_.pick`.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The source object.
     * @param {...(string|string[])} [paths] The property paths to omit.
     * @returns {Object} Returns the new object.
     * @example
     *
     * var object = { 'a': 1, 'b': '2', 'c': 3 };
     *
     * _.omit(object, ['a', 'c']);
     * // => { 'b': '2' }
     */
    var omit = flatRest(function(object, paths) {
      var result = {};
      if (object == null) {
        return result;
      }
      var isDeep = false;
      paths = arrayMap(paths, function(path) {
        path = castPath(path, object);
        isDeep || (isDeep = path.length > 1);
        return path;
      });
      copyObject(object, getAllKeysIn(object), result);
      if (isDeep) {
        result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
      }
      var length = paths.length;
      while (length--) {
        baseUnset(result, paths[length]);
      }
      return result;
    });

    /**
     * The opposite of `_.pickBy`; this method creates an object composed of
     * the own and inherited enumerable string keyed properties of `object` that
     * `predicate` doesn't return truthy for. The predicate is invoked with two
     * arguments: (value, key).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The source object.
     * @param {Function} [predicate=_.identity] The function invoked per property.
     * @returns {Object} Returns the new object.
     * @example
     *
     * var object = { 'a': 1, 'b': '2', 'c': 3 };
     *
     * _.omitBy(object, _.isNumber);
     * // => { 'b': '2' }
     */
    function omitBy(object, predicate) {
      return pickBy(object, negate(getIteratee(predicate)));
    }

    /**
     * Creates an object composed of the picked `object` properties.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The source object.
     * @param {...(string|string[])} [paths] The property paths to pick.
     * @returns {Object} Returns the new object.
     * @example
     *
     * var object = { 'a': 1, 'b': '2', 'c': 3 };
     *
     * _.pick(object, ['a', 'c']);
     * // => { 'a': 1, 'c': 3 }
     */
    var pick = flatRest(function(object, paths) {
      return object == null ? {} : basePick(object, paths);
    });

    /**
     * Creates an object composed of the `object` properties `predicate` returns
     * truthy for. The predicate is invoked with two arguments: (value, key).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The source object.
     * @param {Function} [predicate=_.identity] The function invoked per property.
     * @returns {Object} Returns the new object.
     * @example
     *
     * var object = { 'a': 1, 'b': '2', 'c': 3 };
     *
     * _.pickBy(object, _.isNumber);
     * // => { 'a': 1, 'c': 3 }
     */
    function pickBy(object, predicate) {
      if (object == null) {
        return {};
      }
      var props = arrayMap(getAllKeysIn(object), function(prop) {
        return [prop];
      });
      predicate = getIteratee(predicate);
      return basePickBy(object, props, function(value, path) {
        return predicate(value, path[0]);
      });
    }

    /**
     * This method is like `_.get` except that if the resolved value is a
     * function it's invoked with the `this` binding of its parent object and
     * its result is returned.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The object to query.
     * @param {Array|string} path The path of the property to resolve.
     * @param {*} [defaultValue] The value returned for `undefined` resolved values.
     * @returns {*} Returns the resolved value.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };
     *
     * _.result(object, 'a[0].b.c1');
     * // => 3
     *
     * _.result(object, 'a[0].b.c2');
     * // => 4
     *
     * _.result(object, 'a[0].b.c3', 'default');
     * // => 'default'
     *
     * _.result(object, 'a[0].b.c3', _.constant('default'));
     * // => 'default'
     */
    function result(object, path, defaultValue) {
      path = castPath(path, object);

      var index = -1,
          length = path.length;

      // Ensure the loop is entered when path is empty.
      if (!length) {
        length = 1;
        object = undefined;
      }
      while (++index < length) {
        var value = object == null ? undefined : object[toKey(path[index])];
        if (value === undefined) {
          index = length;
          value = defaultValue;
        }
        object = isFunction(value) ? value.call(object) : value;
      }
      return object;
    }

    /**
     * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
     * it's created. Arrays are created for missing index properties while objects
     * are created for all other missing properties. Use `_.setWith` to customize
     * `path` creation.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 3.7.0
     * @category Object
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to set.
     * @param {*} value The value to set.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 3 } }] };
     *
     * _.set(object, 'a[0].b.c', 4);
     * console.log(object.a[0].b.c);
     * // => 4
     *
     * _.set(object, ['x', '0', 'y', 'z'], 5);
     * console.log(object.x[0].y.z);
     * // => 5
     */
    function set(object, path, value) {
      return object == null ? object : baseSet(object, path, value);
    }

    /**
     * This method is like `_.set` except that it accepts `customizer` which is
     * invoked to produce the objects of `path`.  If `customizer` returns `undefined`
     * path creation is handled by the method instead. The `customizer` is invoked
     * with three arguments: (nsValue, key, nsObject).
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to set.
     * @param {*} value The value to set.
     * @param {Function} [customizer] The function to customize assigned values.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var object = {};
     *
     * _.setWith(object, '[0][1]', 'a', Object);
     * // => { '0': { '1': 'a' } }
     */
    function setWith(object, path, value, customizer) {
      customizer = typeof customizer == 'function' ? customizer : undefined;
      return object == null ? object : baseSet(object, path, value, customizer);
    }

    /**
     * Creates an array of own enumerable string keyed-value pairs for `object`
     * which can be consumed by `_.fromPairs`. If `object` is a map or set, its
     * entries are returned.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @alias entries
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the key-value pairs.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.toPairs(new Foo);
     * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)
     */
    var toPairs = createToPairs(keys);

    /**
     * Creates an array of own and inherited enumerable string keyed-value pairs
     * for `object` which can be consumed by `_.fromPairs`. If `object` is a map
     * or set, its entries are returned.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @alias entriesIn
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the key-value pairs.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.toPairsIn(new Foo);
     * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)
     */
    var toPairsIn = createToPairs(keysIn);

    /**
     * An alternative to `_.reduce`; this method transforms `object` to a new
     * `accumulator` object which is the result of running each of its own
     * enumerable string keyed properties thru `iteratee`, with each invocation
     * potentially mutating the `accumulator` object. If `accumulator` is not
     * provided, a new object with the same `[[Prototype]]` will be used. The
     * iteratee is invoked with four arguments: (accumulator, value, key, object).
     * Iteratee functions may exit iteration early by explicitly returning `false`.
     *
     * @static
     * @memberOf _
     * @since 1.3.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @param {*} [accumulator] The custom accumulator value.
     * @returns {*} Returns the accumulated value.
     * @example
     *
     * _.transform([2, 3, 4], function(result, n) {
     *   result.push(n *= n);
     *   return n % 2 == 0;
     * }, []);
     * // => [4, 9]
     *
     * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
     *   (result[value] || (result[value] = [])).push(key);
     * }, {});
     * // => { '1': ['a', 'c'], '2': ['b'] }
     */
    function transform(object, iteratee, accumulator) {
      var isArr = isArray(object),
          isArrLike = isArr || isBuffer(object) || isTypedArray(object);

      iteratee = getIteratee(iteratee, 4);
      if (accumulator == null) {
        var Ctor = object && object.constructor;
        if (isArrLike) {
          accumulator = isArr ? new Ctor : [];
        }
        else if (isObject(object)) {
          accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
        }
        else {
          accumulator = {};
        }
      }
      (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {
        return iteratee(accumulator, value, index, object);
      });
      return accumulator;
    }

    /**
     * Removes the property at `path` of `object`.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to unset.
     * @returns {boolean} Returns `true` if the property is deleted, else `false`.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 7 } }] };
     * _.unset(object, 'a[0].b.c');
     * // => true
     *
     * console.log(object);
     * // => { 'a': [{ 'b': {} }] };
     *
     * _.unset(object, ['a', '0', 'b', 'c']);
     * // => true
     *
     * console.log(object);
     * // => { 'a': [{ 'b': {} }] };
     */
    function unset(object, path) {
      return object == null ? true : baseUnset(object, path);
    }

    /**
     * This method is like `_.set` except that accepts `updater` to produce the
     * value to set. Use `_.updateWith` to customize `path` creation. The `updater`
     * is invoked with one argument: (value).
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.6.0
     * @category Object
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to set.
     * @param {Function} updater The function to produce the updated value.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 3 } }] };
     *
     * _.update(object, 'a[0].b.c', function(n) { return n * n; });
     * console.log(object.a[0].b.c);
     * // => 9
     *
     * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });
     * console.log(object.x[0].y.z);
     * // => 0
     */
    function update(object, path, updater) {
      return object == null ? object : baseUpdate(object, path, castFunction(updater));
    }

    /**
     * This method is like `_.update` except that it accepts `customizer` which is
     * invoked to produce the objects of `path`.  If `customizer` returns `undefined`
     * path creation is handled by the method instead. The `customizer` is invoked
     * with three arguments: (nsValue, key, nsObject).
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.6.0
     * @category Object
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to set.
     * @param {Function} updater The function to produce the updated value.
     * @param {Function} [customizer] The function to customize assigned values.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var object = {};
     *
     * _.updateWith(object, '[0][1]', _.constant('a'), Object);
     * // => { '0': { '1': 'a' } }
     */
    function updateWith(object, path, updater, customizer) {
      customizer = typeof customizer == 'function' ? customizer : undefined;
      return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);
    }

    /**
     * Creates an array of the own enumerable string keyed property values of `object`.
     *
     * **Note:** Non-object values are coerced to objects.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property values.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.values(new Foo);
     * // => [1, 2] (iteration order is not guaranteed)
     *
     * _.values('hi');
     * // => ['h', 'i']
     */
    function values(object) {
      return object == null ? [] : baseValues(object, keys(object));
    }

    /**
     * Creates an array of the own and inherited enumerable string keyed property
     * values of `object`.
     *
     * **Note:** Non-object values are coerced to objects.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property values.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.valuesIn(new Foo);
     * // => [1, 2, 3] (iteration order is not guaranteed)
     */
    function valuesIn(object) {
      return object == null ? [] : baseValues(object, keysIn(object));
    }

    /*------------------------------------------------------------------------*/

    /**
     * Clamps `number` within the inclusive `lower` and `upper` bounds.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Number
     * @param {number} number The number to clamp.
     * @param {number} [lower] The lower bound.
     * @param {number} upper The upper bound.
     * @returns {number} Returns the clamped number.
     * @example
     *
     * _.clamp(-10, -5, 5);
     * // => -5
     *
     * _.clamp(10, -5, 5);
     * // => 5
     */
    function clamp(number, lower, upper) {
      if (upper === undefined) {
        upper = lower;
        lower = undefined;
      }
      if (upper !== undefined) {
        upper = toNumber(upper);
        upper = upper === upper ? upper : 0;
      }
      if (lower !== undefined) {
        lower = toNumber(lower);
        lower = lower === lower ? lower : 0;
      }
      return baseClamp(toNumber(number), lower, upper);
    }

    /**
     * Checks if `n` is between `start` and up to, but not including, `end`. If
     * `end` is not specified, it's set to `start` with `start` then set to `0`.
     * If `start` is greater than `end` the params are swapped to support
     * negative ranges.
     *
     * @static
     * @memberOf _
     * @since 3.3.0
     * @category Number
     * @param {number} number The number to check.
     * @param {number} [start=0] The start of the range.
     * @param {number} end The end of the range.
     * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
     * @see _.range, _.rangeRight
     * @example
     *
     * _.inRange(3, 2, 4);
     * // => true
     *
     * _.inRange(4, 8);
     * // => true
     *
     * _.inRange(4, 2);
     * // => false
     *
     * _.inRange(2, 2);
     * // => false
     *
     * _.inRange(1.2, 2);
     * // => true
     *
     * _.inRange(5.2, 4);
     * // => false
     *
     * _.inRange(-3, -2, -6);
     * // => true
     */
    function inRange(number, start, end) {
      start = toFinite(start);
      if (end === undefined) {
        end = start;
        start = 0;
      } else {
        end = toFinite(end);
      }
      number = toNumber(number);
      return baseInRange(number, start, end);
    }

    /**
     * Produces a random number between the inclusive `lower` and `upper` bounds.
     * If only one argument is provided a number between `0` and the given number
     * is returned. If `floating` is `true`, or either `lower` or `upper` are
     * floats, a floating-point number is returned instead of an integer.
     *
     * **Note:** JavaScript follows the IEEE-754 standard for resolving
     * floating-point values which can produce unexpected results.
     *
     * @static
     * @memberOf _
     * @since 0.7.0
     * @category Number
     * @param {number} [lower=0] The lower bound.
     * @param {number} [upper=1] The upper bound.
     * @param {boolean} [floating] Specify returning a floating-point number.
     * @returns {number} Returns the random number.
     * @example
     *
     * _.random(0, 5);
     * // => an integer between 0 and 5
     *
     * _.random(5);
     * // => also an integer between 0 and 5
     *
     * _.random(5, true);
     * // => a floating-point number between 0 and 5
     *
     * _.random(1.2, 5.2);
     * // => a floating-point number between 1.2 and 5.2
     */
    function random(lower, upper, floating) {
      if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {
        upper = floating = undefined;
      }
      if (floating === undefined) {
        if (typeof upper == 'boolean') {
          floating = upper;
          upper = undefined;
        }
        else if (typeof lower == 'boolean') {
          floating = lower;
          lower = undefined;
        }
      }
      if (lower === undefined && upper === undefined) {
        lower = 0;
        upper = 1;
      }
      else {
        lower = toFinite(lower);
        if (upper === undefined) {
          upper = lower;
          lower = 0;
        } else {
          upper = toFinite(upper);
        }
      }
      if (lower > upper) {
        var temp = lower;
        lower = upper;
        upper = temp;
      }
      if (floating || lower % 1 || upper % 1) {
        var rand = nativeRandom();
        return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);
      }
      return baseRandom(lower, upper);
    }

    /*------------------------------------------------------------------------*/

    /**
     * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the camel cased string.
     * @example
     *
     * _.camelCase('Foo Bar');
     * // => 'fooBar'
     *
     * _.camelCase('--foo-bar--');
     * // => 'fooBar'
     *
     * _.camelCase('__FOO_BAR__');
     * // => 'fooBar'
     */
    var camelCase = createCompounder(function(result, word, index) {
      word = word.toLowerCase();
      return result + (index ? capitalize(word) : word);
    });

    /**
     * Converts the first character of `string` to upper case and the remaining
     * to lower case.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to capitalize.
     * @returns {string} Returns the capitalized string.
     * @example
     *
     * _.capitalize('FRED');
     * // => 'Fred'
     */
    function capitalize(string) {
      return upperFirst(toString(string).toLowerCase());
    }

    /**
     * Deburrs `string` by converting
     * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
     * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
     * letters to basic Latin letters and removing
     * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to deburr.
     * @returns {string} Returns the deburred string.
     * @example
     *
     * _.deburr('déjà vu');
     * // => 'deja vu'
     */
    function deburr(string) {
      string = toString(string);
      return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');
    }

    /**
     * Checks if `string` ends with the given target string.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to inspect.
     * @param {string} [target] The string to search for.
     * @param {number} [position=string.length] The position to search up to.
     * @returns {boolean} Returns `true` if `string` ends with `target`,
     *  else `false`.
     * @example
     *
     * _.endsWith('abc', 'c');
     * // => true
     *
     * _.endsWith('abc', 'b');
     * // => false
     *
     * _.endsWith('abc', 'b', 2);
     * // => true
     */
    function endsWith(string, target, position) {
      string = toString(string);
      target = baseToString(target);

      var length = string.length;
      position = position === undefined
        ? length
        : baseClamp(toInteger(position), 0, length);

      var end = position;
      position -= target.length;
      return position >= 0 && string.slice(position, end) == target;
    }

    /**
     * Converts the characters "&", "<", ">", '"', and "'" in `string` to their
     * corresponding HTML entities.
     *
     * **Note:** No other characters are escaped. To escape additional
     * characters use a third-party library like [_he_](https://mths.be/he).
     *
     * Though the ">" character is escaped for symmetry, characters like
     * ">" and "/" don't need escaping in HTML and have no special meaning
     * unless they're part of a tag or unquoted attribute value. See
     * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
     * (under "semi-related fun fact") for more details.
     *
     * When working with HTML you should always
     * [quote attribute values](http://wonko.com/post/html-escaping) to reduce
     * XSS vectors.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category String
     * @param {string} [string=''] The string to escape.
     * @returns {string} Returns the escaped string.
     * @example
     *
     * _.escape('fred, barney, & pebbles');
     * // => 'fred, barney, &amp; pebbles'
     */
    function escape(string) {
      string = toString(string);
      return (string && reHasUnescapedHtml.test(string))
        ? string.replace(reUnescapedHtml, escapeHtmlChar)
        : string;
    }

    /**
     * Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
     * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to escape.
     * @returns {string} Returns the escaped string.
     * @example
     *
     * _.escapeRegExp('[lodash](https://lodash.com/)');
     * // => '\[lodash\]\(https://lodash\.com/\)'
     */
    function escapeRegExp(string) {
      string = toString(string);
      return (string && reHasRegExpChar.test(string))
        ? string.replace(reRegExpChar, '\\$&')
        : string;
    }

    /**
     * Converts `string` to
     * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the kebab cased string.
     * @example
     *
     * _.kebabCase('Foo Bar');
     * // => 'foo-bar'
     *
     * _.kebabCase('fooBar');
     * // => 'foo-bar'
     *
     * _.kebabCase('__FOO_BAR__');
     * // => 'foo-bar'
     */
    var kebabCase = createCompounder(function(result, word, index) {
      return result + (index ? '-' : '') + word.toLowerCase();
    });

    /**
     * Converts `string`, as space separated words, to lower case.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the lower cased string.
     * @example
     *
     * _.lowerCase('--Foo-Bar--');
     * // => 'foo bar'
     *
     * _.lowerCase('fooBar');
     * // => 'foo bar'
     *
     * _.lowerCase('__FOO_BAR__');
     * // => 'foo bar'
     */
    var lowerCase = createCompounder(function(result, word, index) {
      return result + (index ? ' ' : '') + word.toLowerCase();
    });

    /**
     * Converts the first character of `string` to lower case.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the converted string.
     * @example
     *
     * _.lowerFirst('Fred');
     * // => 'fred'
     *
     * _.lowerFirst('FRED');
     * // => 'fRED'
     */
    var lowerFirst = createCaseFirst('toLowerCase');

    /**
     * Pads `string` on the left and right sides if it's shorter than `length`.
     * Padding characters are truncated if they can't be evenly divided by `length`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to pad.
     * @param {number} [length=0] The padding length.
     * @param {string} [chars=' '] The string used as padding.
     * @returns {string} Returns the padded string.
     * @example
     *
     * _.pad('abc', 8);
     * // => '  abc   '
     *
     * _.pad('abc', 8, '_-');
     * // => '_-abc_-_'
     *
     * _.pad('abc', 3);
     * // => 'abc'
     */
    function pad(string, length, chars) {
      string = toString(string);
      length = toInteger(length);

      var strLength = length ? stringSize(string) : 0;
      if (!length || strLength >= length) {
        return string;
      }
      var mid = (length - strLength) / 2;
      return (
        createPadding(nativeFloor(mid), chars) +
        string +
        createPadding(nativeCeil(mid), chars)
      );
    }

    /**
     * Pads `string` on the right side if it's shorter than `length`. Padding
     * characters are truncated if they exceed `length`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to pad.
     * @param {number} [length=0] The padding length.
     * @param {string} [chars=' '] The string used as padding.
     * @returns {string} Returns the padded string.
     * @example
     *
     * _.padEnd('abc', 6);
     * // => 'abc   '
     *
     * _.padEnd('abc', 6, '_-');
     * // => 'abc_-_'
     *
     * _.padEnd('abc', 3);
     * // => 'abc'
     */
    function padEnd(string, length, chars) {
      string = toString(string);
      length = toInteger(length);

      var strLength = length ? stringSize(string) : 0;
      return (length && strLength < length)
        ? (string + createPadding(length - strLength, chars))
        : string;
    }

    /**
     * Pads `string` on the left side if it's shorter than `length`. Padding
     * characters are truncated if they exceed `length`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to pad.
     * @param {number} [length=0] The padding length.
     * @param {string} [chars=' '] The string used as padding.
     * @returns {string} Returns the padded string.
     * @example
     *
     * _.padStart('abc', 6);
     * // => '   abc'
     *
     * _.padStart('abc', 6, '_-');
     * // => '_-_abc'
     *
     * _.padStart('abc', 3);
     * // => 'abc'
     */
    function padStart(string, length, chars) {
      string = toString(string);
      length = toInteger(length);

      var strLength = length ? stringSize(string) : 0;
      return (length && strLength < length)
        ? (createPadding(length - strLength, chars) + string)
        : string;
    }

    /**
     * Converts `string` to an integer of the specified radix. If `radix` is
     * `undefined` or `0`, a `radix` of `10` is used unless `value` is a
     * hexadecimal, in which case a `radix` of `16` is used.
     *
     * **Note:** This method aligns with the
     * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.
     *
     * @static
     * @memberOf _
     * @since 1.1.0
     * @category String
     * @param {string} string The string to convert.
     * @param {number} [radix=10] The radix to interpret `value` by.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {number} Returns the converted integer.
     * @example
     *
     * _.parseInt('08');
     * // => 8
     *
     * _.map(['6', '08', '10'], _.parseInt);
     * // => [6, 8, 10]
     */
    function parseInt(string, radix, guard) {
      if (guard || radix == null) {
        radix = 0;
      } else if (radix) {
        radix = +radix;
      }
      return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);
    }

    /**
     * Repeats the given string `n` times.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to repeat.
     * @param {number} [n=1] The number of times to repeat the string.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {string} Returns the repeated string.
     * @example
     *
     * _.repeat('*', 3);
     * // => '***'
     *
     * _.repeat('abc', 2);
     * // => 'abcabc'
     *
     * _.repeat('abc', 0);
     * // => ''
     */
    function repeat(string, n, guard) {
      if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {
        n = 1;
      } else {
        n = toInteger(n);
      }
      return baseRepeat(toString(string), n);
    }

    /**
     * Replaces matches for `pattern` in `string` with `replacement`.
     *
     * **Note:** This method is based on
     * [`String#replace`](https://mdn.io/String/replace).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to modify.
     * @param {RegExp|string} pattern The pattern to replace.
     * @param {Function|string} replacement The match replacement.
     * @returns {string} Returns the modified string.
     * @example
     *
     * _.replace('Hi Fred', 'Fred', 'Barney');
     * // => 'Hi Barney'
     */
    function replace() {
      var args = arguments,
          string = toString(args[0]);

      return args.length < 3 ? string : string.replace(args[1], args[2]);
    }

    /**
     * Converts `string` to
     * [snake case](https://en.wikipedia.org/wiki/Snake_case).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the snake cased string.
     * @example
     *
     * _.snakeCase('Foo Bar');
     * // => 'foo_bar'
     *
     * _.snakeCase('fooBar');
     * // => 'foo_bar'
     *
     * _.snakeCase('--FOO-BAR--');
     * // => 'foo_bar'
     */
    var snakeCase = createCompounder(function(result, word, index) {
      return result + (index ? '_' : '') + word.toLowerCase();
    });

    /**
     * Splits `string` by `separator`.
     *
     * **Note:** This method is based on
     * [`String#split`](https://mdn.io/String/split).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to split.
     * @param {RegExp|string} separator The separator pattern to split by.
     * @param {number} [limit] The length to truncate results to.
     * @returns {Array} Returns the string segments.
     * @example
     *
     * _.split('a-b-c', '-', 2);
     * // => ['a', 'b']
     */
    function split(string, separator, limit) {
      if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {
        separator = limit = undefined;
      }
      limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;
      if (!limit) {
        return [];
      }
      string = toString(string);
      if (string && (
            typeof separator == 'string' ||
            (separator != null && !isRegExp(separator))
          )) {
        separator = baseToString(separator);
        if (!separator && hasUnicode(string)) {
          return castSlice(stringToArray(string), 0, limit);
        }
      }
      return string.split(separator, limit);
    }

    /**
     * Converts `string` to
     * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
     *
     * @static
     * @memberOf _
     * @since 3.1.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the start cased string.
     * @example
     *
     * _.startCase('--foo-bar--');
     * // => 'Foo Bar'
     *
     * _.startCase('fooBar');
     * // => 'Foo Bar'
     *
     * _.startCase('__FOO_BAR__');
     * // => 'FOO BAR'
     */
    var startCase = createCompounder(function(result, word, index) {
      return result + (index ? ' ' : '') + upperFirst(word);
    });

    /**
     * Checks if `string` starts with the given target string.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to inspect.
     * @param {string} [target] The string to search for.
     * @param {number} [position=0] The position to search from.
     * @returns {boolean} Returns `true` if `string` starts with `target`,
     *  else `false`.
     * @example
     *
     * _.startsWith('abc', 'a');
     * // => true
     *
     * _.startsWith('abc', 'b');
     * // => false
     *
     * _.startsWith('abc', 'b', 1);
     * // => true
     */
    function startsWith(string, target, position) {
      string = toString(string);
      position = position == null
        ? 0
        : baseClamp(toInteger(position), 0, string.length);

      target = baseToString(target);
      return string.slice(position, position + target.length) == target;
    }

    /**
     * Creates a compiled template function that can interpolate data properties
     * in "interpolate" delimiters, HTML-escape interpolated data properties in
     * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data
     * properties may be accessed as free variables in the template. If a setting
     * object is given, it takes precedence over `_.templateSettings` values.
     *
     * **Note:** In the development build `_.template` utilizes
     * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
     * for easier debugging.
     *
     * For more information on precompiling templates see
     * [lodash's custom builds documentation](https://lodash.com/custom-builds).
     *
     * For more information on Chrome extension sandboxes see
     * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category String
     * @param {string} [string=''] The template string.
     * @param {Object} [options={}] The options object.
     * @param {RegExp} [options.escape=_.templateSettings.escape]
     *  The HTML "escape" delimiter.
     * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]
     *  The "evaluate" delimiter.
     * @param {Object} [options.imports=_.templateSettings.imports]
     *  An object to import into the template as free variables.
     * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]
     *  The "interpolate" delimiter.
     * @param {string} [options.sourceURL='lodash.templateSources[n]']
     *  The sourceURL of the compiled template.
     * @param {string} [options.variable='obj']
     *  The data object variable name.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Function} Returns the compiled template function.
     * @example
     *
     * // Use the "interpolate" delimiter to create a compiled template.
     * var compiled = _.template('hello <%= user %>!');
     * compiled({ 'user': 'fred' });
     * // => 'hello fred!'
     *
     * // Use the HTML "escape" delimiter to escape data property values.
     * var compiled = _.template('<b><%- value %></b>');
     * compiled({ 'value': '<script>' });
     * // => '<b>&lt;script&gt;</b>'
     *
     * // Use the "evaluate" delimiter to execute JavaScript and generate HTML.
     * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');
     * compiled({ 'users': ['fred', 'barney'] });
     * // => '<li>fred</li><li>barney</li>'
     *
     * // Use the internal `print` function in "evaluate" delimiters.
     * var compiled = _.template('<% print("hello " + user); %>!');
     * compiled({ 'user': 'barney' });
     * // => 'hello barney!'
     *
     * // Use the ES template literal delimiter as an "interpolate" delimiter.
     * // Disable support by replacing the "interpolate" delimiter.
     * var compiled = _.template('hello ${ user }!');
     * compiled({ 'user': 'pebbles' });
     * // => 'hello pebbles!'
     *
     * // Use backslashes to treat delimiters as plain text.
     * var compiled = _.template('<%= "\\<%- value %\\>" %>');
     * compiled({ 'value': 'ignored' });
     * // => '<%- value %>'
     *
     * // Use the `imports` option to import `jQuery` as `jq`.
     * var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';
     * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });
     * compiled({ 'users': ['fred', 'barney'] });
     * // => '<li>fred</li><li>barney</li>'
     *
     * // Use the `sourceURL` option to specify a custom sourceURL for the template.
     * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });
     * compiled(data);
     * // => Find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector.
     *
     * // Use the `variable` option to ensure a with-statement isn't used in the compiled template.
     * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
     * compiled.source;
     * // => function(data) {
     * //   var __t, __p = '';
     * //   __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';
     * //   return __p;
     * // }
     *
     * // Use custom template delimiters.
     * _.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
     * var compiled = _.template('hello {{ user }}!');
     * compiled({ 'user': 'mustache' });
     * // => 'hello mustache!'
     *
     * // Use the `source` property to inline compiled templates for meaningful
     * // line numbers in error messages and stack traces.
     * fs.writeFileSync(path.join(process.cwd(), 'jst.js'), '\
     *   var JST = {\
     *     "main": ' + _.template(mainText).source + '\
     *   };\
     * ');
     */
    function template(string, options, guard) {
      // Based on John Resig's `tmpl` implementation
      // (http://ejohn.org/blog/javascript-micro-templating/)
      // and Laura Doktorova's doT.js (https://github.com/olado/doT).
      var settings = lodash.templateSettings;

      if (guard && isIterateeCall(string, options, guard)) {
        options = undefined;
      }
      string = toString(string);
      options = assignInWith({}, options, settings, customDefaultsAssignIn);

      var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn),
          importsKeys = keys(imports),
          importsValues = baseValues(imports, importsKeys);

      var isEscaping,
          isEvaluating,
          index = 0,
          interpolate = options.interpolate || reNoMatch,
          source = "__p += '";

      // Compile the regexp to match each delimiter.
      var reDelimiters = RegExp(
        (options.escape || reNoMatch).source + '|' +
        interpolate.source + '|' +
        (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + '|' +
        (options.evaluate || reNoMatch).source + '|$'
      , 'g');

      // Use a sourceURL for easier debugging.
      // The sourceURL gets injected into the source that's eval-ed, so be careful
      // with lookup (in case of e.g. prototype pollution), and strip newlines if any.
      // A newline wouldn't be a valid sourceURL anyway, and it'd enable code injection.
      var sourceURL = '//# sourceURL=' +
        (hasOwnProperty.call(options, 'sourceURL')
          ? (options.sourceURL + '').replace(/[\r\n]/g, ' ')
          : ('lodash.templateSources[' + (++templateCounter) + ']')
        ) + '\n';

      string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
        interpolateValue || (interpolateValue = esTemplateValue);

        // Escape characters that can't be included in string literals.
        source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);

        // Replace delimiters with snippets.
        if (escapeValue) {
          isEscaping = true;
          source += "' +\n__e(" + escapeValue + ") +\n'";
        }
        if (evaluateValue) {
          isEvaluating = true;
          source += "';\n" + evaluateValue + ";\n__p += '";
        }
        if (interpolateValue) {
          source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
        }
        index = offset + match.length;

        // The JS engine embedded in Adobe products needs `match` returned in
        // order to produce the correct `offset` value.
        return match;
      });

      source += "';\n";

      // If `variable` is not specified wrap a with-statement around the generated
      // code to add the data object to the top of the scope chain.
      // Like with sourceURL, we take care to not check the option's prototype,
      // as this configuration is a code injection vector.
      var variable = hasOwnProperty.call(options, 'variable') && options.variable;
      if (!variable) {
        source = 'with (obj) {\n' + source + '\n}\n';
      }
      // Cleanup code by stripping empty strings.
      source = (isEvaluating ? source.replace(reEmptyStringLeading, '') : source)
        .replace(reEmptyStringMiddle, '$1')
        .replace(reEmptyStringTrailing, '$1;');

      // Frame code as the function body.
      source = 'function(' + (variable || 'obj') + ') {\n' +
        (variable
          ? ''
          : 'obj || (obj = {});\n'
        ) +
        "var __t, __p = ''" +
        (isEscaping
           ? ', __e = _.escape'
           : ''
        ) +
        (isEvaluating
          ? ', __j = Array.prototype.join;\n' +
            "function print() { __p += __j.call(arguments, '') }\n"
          : ';\n'
        ) +
        source +
        'return __p\n}';

      var result = attempt(function() {
        return Function(importsKeys, sourceURL + 'return ' + source)
          .apply(undefined, importsValues);
      });

      // Provide the compiled function's source by its `toString` method or
      // the `source` property as a convenience for inlining compiled templates.
      result.source = source;
      if (isError(result)) {
        throw result;
      }
      return result;
    }

    /**
     * Converts `string`, as a whole, to lower case just like
     * [String#toLowerCase](https://mdn.io/toLowerCase).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the lower cased string.
     * @example
     *
     * _.toLower('--Foo-Bar--');
     * // => '--foo-bar--'
     *
     * _.toLower('fooBar');
     * // => 'foobar'
     *
     * _.toLower('__FOO_BAR__');
     * // => '__foo_bar__'
     */
    function toLower(value) {
      return toString(value).toLowerCase();
    }

    /**
     * Converts `string`, as a whole, to upper case just like
     * [String#toUpperCase](https://mdn.io/toUpperCase).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the upper cased string.
     * @example
     *
     * _.toUpper('--foo-bar--');
     * // => '--FOO-BAR--'
     *
     * _.toUpper('fooBar');
     * // => 'FOOBAR'
     *
     * _.toUpper('__foo_bar__');
     * // => '__FOO_BAR__'
     */
    function toUpper(value) {
      return toString(value).toUpperCase();
    }

    /**
     * Removes leading and trailing whitespace or specified characters from `string`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to trim.
     * @param {string} [chars=whitespace] The characters to trim.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {string} Returns the trimmed string.
     * @example
     *
     * _.trim('  abc  ');
     * // => 'abc'
     *
     * _.trim('-_-abc-_-', '_-');
     * // => 'abc'
     *
     * _.map(['  foo  ', '  bar  '], _.trim);
     * // => ['foo', 'bar']
     */
    function trim(string, chars, guard) {
      string = toString(string);
      if (string && (guard || chars === undefined)) {
        return string.replace(reTrim, '');
      }
      if (!string || !(chars = baseToString(chars))) {
        return string;
      }
      var strSymbols = stringToArray(string),
          chrSymbols = stringToArray(chars),
          start = charsStartIndex(strSymbols, chrSymbols),
          end = charsEndIndex(strSymbols, chrSymbols) + 1;

      return castSlice(strSymbols, start, end).join('');
    }

    /**
     * Removes trailing whitespace or specified characters from `string`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to trim.
     * @param {string} [chars=whitespace] The characters to trim.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {string} Returns the trimmed string.
     * @example
     *
     * _.trimEnd('  abc  ');
     * // => '  abc'
     *
     * _.trimEnd('-_-abc-_-', '_-');
     * // => '-_-abc'
     */
    function trimEnd(string, chars, guard) {
      string = toString(string);
      if (string && (guard || chars === undefined)) {
        return string.replace(reTrimEnd, '');
      }
      if (!string || !(chars = baseToString(chars))) {
        return string;
      }
      var strSymbols = stringToArray(string),
          end = charsEndIndex(strSymbols, stringToArray(chars)) + 1;

      return castSlice(strSymbols, 0, end).join('');
    }

    /**
     * Removes leading whitespace or specified characters from `string`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to trim.
     * @param {string} [chars=whitespace] The characters to trim.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {string} Returns the trimmed string.
     * @example
     *
     * _.trimStart('  abc  ');
     * // => 'abc  '
     *
     * _.trimStart('-_-abc-_-', '_-');
     * // => 'abc-_-'
     */
    function trimStart(string, chars, guard) {
      string = toString(string);
      if (string && (guard || chars === undefined)) {
        return string.replace(reTrimStart, '');
      }
      if (!string || !(chars = baseToString(chars))) {
        return string;
      }
      var strSymbols = stringToArray(string),
          start = charsStartIndex(strSymbols, stringToArray(chars));

      return castSlice(strSymbols, start).join('');
    }

    /**
     * Truncates `string` if it's longer than the given maximum string length.
     * The last characters of the truncated string are replaced with the omission
     * string which defaults to "...".
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to truncate.
     * @param {Object} [options={}] The options object.
     * @param {number} [options.length=30] The maximum string length.
     * @param {string} [options.omission='...'] The string to indicate text is omitted.
     * @param {RegExp|string} [options.separator] The separator pattern to truncate to.
     * @returns {string} Returns the truncated string.
     * @example
     *
     * _.truncate('hi-diddly-ho there, neighborino');
     * // => 'hi-diddly-ho there, neighbo...'
     *
     * _.truncate('hi-diddly-ho there, neighborino', {
     *   'length': 24,
     *   'separator': ' '
     * });
     * // => 'hi-diddly-ho there,...'
     *
     * _.truncate('hi-diddly-ho there, neighborino', {
     *   'length': 24,
     *   'separator': /,? +/
     * });
     * // => 'hi-diddly-ho there...'
     *
     * _.truncate('hi-diddly-ho there, neighborino', {
     *   'omission': ' [...]'
     * });
     * // => 'hi-diddly-ho there, neig [...]'
     */
    function truncate(string, options) {
      var length = DEFAULT_TRUNC_LENGTH,
          omission = DEFAULT_TRUNC_OMISSION;

      if (isObject(options)) {
        var separator = 'separator' in options ? options.separator : separator;
        length = 'length' in options ? toInteger(options.length) : length;
        omission = 'omission' in options ? baseToString(options.omission) : omission;
      }
      string = toString(string);

      var strLength = string.length;
      if (hasUnicode(string)) {
        var strSymbols = stringToArray(string);
        strLength = strSymbols.length;
      }
      if (length >= strLength) {
        return string;
      }
      var end = length - stringSize(omission);
      if (end < 1) {
        return omission;
      }
      var result = strSymbols
        ? castSlice(strSymbols, 0, end).join('')
        : string.slice(0, end);

      if (separator === undefined) {
        return result + omission;
      }
      if (strSymbols) {
        end += (result.length - end);
      }
      if (isRegExp(separator)) {
        if (string.slice(end).search(separator)) {
          var match,
              substring = result;

          if (!separator.global) {
            separator = RegExp(separator.source, toString(reFlags.exec(separator)) + 'g');
          }
          separator.lastIndex = 0;
          while ((match = separator.exec(substring))) {
            var newEnd = match.index;
          }
          result = result.slice(0, newEnd === undefined ? end : newEnd);
        }
      } else if (string.indexOf(baseToString(separator), end) != end) {
        var index = result.lastIndexOf(separator);
        if (index > -1) {
          result = result.slice(0, index);
        }
      }
      return result + omission;
    }

    /**
     * The inverse of `_.escape`; this method converts the HTML entities
     * `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to
     * their corresponding characters.
     *
     * **Note:** No other HTML entities are unescaped. To unescape additional
     * HTML entities use a third-party library like [_he_](https://mths.be/he).
     *
     * @static
     * @memberOf _
     * @since 0.6.0
     * @category String
     * @param {string} [string=''] The string to unescape.
     * @returns {string} Returns the unescaped string.
     * @example
     *
     * _.unescape('fred, barney, &amp; pebbles');
     * // => 'fred, barney, & pebbles'
     */
    function unescape(string) {
      string = toString(string);
      return (string && reHasEscapedHtml.test(string))
        ? string.replace(reEscapedHtml, unescapeHtmlChar)
        : string;
    }

    /**
     * Converts `string`, as space separated words, to upper case.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the upper cased string.
     * @example
     *
     * _.upperCase('--foo-bar');
     * // => 'FOO BAR'
     *
     * _.upperCase('fooBar');
     * // => 'FOO BAR'
     *
     * _.upperCase('__foo_bar__');
     * // => 'FOO BAR'
     */
    var upperCase = createCompounder(function(result, word, index) {
      return result + (index ? ' ' : '') + word.toUpperCase();
    });

    /**
     * Converts the first character of `string` to upper case.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the converted string.
     * @example
     *
     * _.upperFirst('fred');
     * // => 'Fred'
     *
     * _.upperFirst('FRED');
     * // => 'FRED'
     */
    var upperFirst = createCaseFirst('toUpperCase');

    /**
     * Splits `string` into an array of its words.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to inspect.
     * @param {RegExp|string} [pattern] The pattern to match words.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the words of `string`.
     * @example
     *
     * _.words('fred, barney, & pebbles');
     * // => ['fred', 'barney', 'pebbles']
     *
     * _.words('fred, barney, & pebbles', /[^, ]+/g);
     * // => ['fred', 'barney', '&', 'pebbles']
     */
    function words(string, pattern, guard) {
      string = toString(string);
      pattern = guard ? undefined : pattern;

      if (pattern === undefined) {
        return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
      }
      return string.match(pattern) || [];
    }

    /*------------------------------------------------------------------------*/

    /**
     * Attempts to invoke `func`, returning either the result or the caught error
     * object. Any additional arguments are provided to `func` when it's invoked.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Util
     * @param {Function} func The function to attempt.
     * @param {...*} [args] The arguments to invoke `func` with.
     * @returns {*} Returns the `func` result or error object.
     * @example
     *
     * // Avoid throwing errors for invalid selectors.
     * var elements = _.attempt(function(selector) {
     *   return document.querySelectorAll(selector);
     * }, '>_>');
     *
     * if (_.isError(elements)) {
     *   elements = [];
     * }
     */
    var attempt = baseRest(function(func, args) {
      try {
        return apply(func, undefined, args);
      } catch (e) {
        return isError(e) ? e : new Error(e);
      }
    });

    /**
     * Binds methods of an object to the object itself, overwriting the existing
     * method.
     *
     * **Note:** This method doesn't set the "length" property of bound functions.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {Object} object The object to bind and assign the bound methods to.
     * @param {...(string|string[])} methodNames The object method names to bind.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var view = {
     *   'label': 'docs',
     *   'click': function() {
     *     console.log('clicked ' + this.label);
     *   }
     * };
     *
     * _.bindAll(view, ['click']);
     * jQuery(element).on('click', view.click);
     * // => Logs 'clicked docs' when clicked.
     */
    var bindAll = flatRest(function(object, methodNames) {
      arrayEach(methodNames, function(key) {
        key = toKey(key);
        baseAssignValue(object, key, bind(object[key], object));
      });
      return object;
    });

    /**
     * Creates a function that iterates over `pairs` and invokes the corresponding
     * function of the first predicate to return truthy. The predicate-function
     * pairs are invoked with the `this` binding and arguments of the created
     * function.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {Array} pairs The predicate-function pairs.
     * @returns {Function} Returns the new composite function.
     * @example
     *
     * var func = _.cond([
     *   [_.matches({ 'a': 1 }),           _.constant('matches A')],
     *   [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],
     *   [_.stubTrue,                      _.constant('no match')]
     * ]);
     *
     * func({ 'a': 1, 'b': 2 });
     * // => 'matches A'
     *
     * func({ 'a': 0, 'b': 1 });
     * // => 'matches B'
     *
     * func({ 'a': '1', 'b': '2' });
     * // => 'no match'
     */
    function cond(pairs) {
      var length = pairs == null ? 0 : pairs.length,
          toIteratee = getIteratee();

      pairs = !length ? [] : arrayMap(pairs, function(pair) {
        if (typeof pair[1] != 'function') {
          throw new TypeError(FUNC_ERROR_TEXT);
        }
        return [toIteratee(pair[0]), pair[1]];
      });

      return baseRest(function(args) {
        var index = -1;
        while (++index < length) {
          var pair = pairs[index];
          if (apply(pair[0], this, args)) {
            return apply(pair[1], this, args);
          }
        }
      });
    }

    /**
     * Creates a function that invokes the predicate properties of `source` with
     * the corresponding property values of a given object, returning `true` if
     * all predicates return truthy, else `false`.
     *
     * **Note:** The created function is equivalent to `_.conformsTo` with
     * `source` partially applied.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {Object} source The object of property predicates to conform to.
     * @returns {Function} Returns the new spec function.
     * @example
     *
     * var objects = [
     *   { 'a': 2, 'b': 1 },
     *   { 'a': 1, 'b': 2 }
     * ];
     *
     * _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } }));
     * // => [{ 'a': 1, 'b': 2 }]
     */
    function conforms(source) {
      return baseConforms(baseClone(source, CLONE_DEEP_FLAG));
    }

    /**
     * Creates a function that returns `value`.
     *
     * @static
     * @memberOf _
     * @since 2.4.0
     * @category Util
     * @param {*} value The value to return from the new function.
     * @returns {Function} Returns the new constant function.
     * @example
     *
     * var objects = _.times(2, _.constant({ 'a': 1 }));
     *
     * console.log(objects);
     * // => [{ 'a': 1 }, { 'a': 1 }]
     *
     * console.log(objects[0] === objects[1]);
     * // => true
     */
    function constant(value) {
      return function() {
        return value;
      };
    }

    /**
     * Checks `value` to determine whether a default value should be returned in
     * its place. The `defaultValue` is returned if `value` is `NaN`, `null`,
     * or `undefined`.
     *
     * @static
     * @memberOf _
     * @since 4.14.0
     * @category Util
     * @param {*} value The value to check.
     * @param {*} defaultValue The default value.
     * @returns {*} Returns the resolved value.
     * @example
     *
     * _.defaultTo(1, 10);
     * // => 1
     *
     * _.defaultTo(undefined, 10);
     * // => 10
     */
    function defaultTo(value, defaultValue) {
      return (value == null || value !== value) ? defaultValue : value;
    }

    /**
     * Creates a function that returns the result of invoking the given functions
     * with the `this` binding of the created function, where each successive
     * invocation is supplied the return value of the previous.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Util
     * @param {...(Function|Function[])} [funcs] The functions to invoke.
     * @returns {Function} Returns the new composite function.
     * @see _.flowRight
     * @example
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * var addSquare = _.flow([_.add, square]);
     * addSquare(1, 2);
     * // => 9
     */
    var flow = createFlow();

    /**
     * This method is like `_.flow` except that it creates a function that
     * invokes the given functions from right to left.
     *
     * @static
     * @since 3.0.0
     * @memberOf _
     * @category Util
     * @param {...(Function|Function[])} [funcs] The functions to invoke.
     * @returns {Function} Returns the new composite function.
     * @see _.flow
     * @example
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * var addSquare = _.flowRight([square, _.add]);
     * addSquare(1, 2);
     * // => 9
     */
    var flowRight = createFlow(true);

    /**
     * This method returns the first argument it receives.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {*} value Any value.
     * @returns {*} Returns `value`.
     * @example
     *
     * var object = { 'a': 1 };
     *
     * console.log(_.identity(object) === object);
     * // => true
     */
    function identity(value) {
      return value;
    }

    /**
     * Creates a function that invokes `func` with the arguments of the created
     * function. If `func` is a property name, the created function returns the
     * property value for a given element. If `func` is an array or object, the
     * created function returns `true` for elements that contain the equivalent
     * source properties, otherwise it returns `false`.
     *
     * @static
     * @since 4.0.0
     * @memberOf _
     * @category Util
     * @param {*} [func=_.identity] The value to convert to a callback.
     * @returns {Function} Returns the callback.
     * @example
     *
     * var users = [
     *   { 'user': 'barney', 'age': 36, 'active': true },
     *   { 'user': 'fred',   'age': 40, 'active': false }
     * ];
     *
     * // The `_.matches` iteratee shorthand.
     * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));
     * // => [{ 'user': 'barney', 'age': 36, 'active': true }]
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.filter(users, _.iteratee(['user', 'fred']));
     * // => [{ 'user': 'fred', 'age': 40 }]
     *
     * // The `_.property` iteratee shorthand.
     * _.map(users, _.iteratee('user'));
     * // => ['barney', 'fred']
     *
     * // Create custom iteratee shorthands.
     * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {
     *   return !_.isRegExp(func) ? iteratee(func) : function(string) {
     *     return func.test(string);
     *   };
     * });
     *
     * _.filter(['abc', 'def'], /ef/);
     * // => ['def']
     */
    function iteratee(func) {
      return baseIteratee(typeof func == 'function' ? func : baseClone(func, CLONE_DEEP_FLAG));
    }

    /**
     * Creates a function that performs a partial deep comparison between a given
     * object and `source`, returning `true` if the given object has equivalent
     * property values, else `false`.
     *
     * **Note:** The created function is equivalent to `_.isMatch` with `source`
     * partially applied.
     *
     * Partial comparisons will match empty array and empty object `source`
     * values against any array or object value, respectively. See `_.isEqual`
     * for a list of supported value comparisons.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Util
     * @param {Object} source The object of property values to match.
     * @returns {Function} Returns the new spec function.
     * @example
     *
     * var objects = [
     *   { 'a': 1, 'b': 2, 'c': 3 },
     *   { 'a': 4, 'b': 5, 'c': 6 }
     * ];
     *
     * _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
     * // => [{ 'a': 4, 'b': 5, 'c': 6 }]
     */
    function matches(source) {
      return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
    }

    /**
     * Creates a function that performs a partial deep comparison between the
     * value at `path` of a given object to `srcValue`, returning `true` if the
     * object value is equivalent, else `false`.
     *
     * **Note:** Partial comparisons will match empty array and empty object
     * `srcValue` values against any array or object value, respectively. See
     * `_.isEqual` for a list of supported value comparisons.
     *
     * @static
     * @memberOf _
     * @since 3.2.0
     * @category Util
     * @param {Array|string} path The path of the property to get.
     * @param {*} srcValue The value to match.
     * @returns {Function} Returns the new spec function.
     * @example
     *
     * var objects = [
     *   { 'a': 1, 'b': 2, 'c': 3 },
     *   { 'a': 4, 'b': 5, 'c': 6 }
     * ];
     *
     * _.find(objects, _.matchesProperty('a', 4));
     * // => { 'a': 4, 'b': 5, 'c': 6 }
     */
    function matchesProperty(path, srcValue) {
      return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG));
    }

    /**
     * Creates a function that invokes the method at `path` of a given object.
     * Any additional arguments are provided to the invoked method.
     *
     * @static
     * @memberOf _
     * @since 3.7.0
     * @category Util
     * @param {Array|string} path The path of the method to invoke.
     * @param {...*} [args] The arguments to invoke the method with.
     * @returns {Function} Returns the new invoker function.
     * @example
     *
     * var objects = [
     *   { 'a': { 'b': _.constant(2) } },
     *   { 'a': { 'b': _.constant(1) } }
     * ];
     *
     * _.map(objects, _.method('a.b'));
     * // => [2, 1]
     *
     * _.map(objects, _.method(['a', 'b']));
     * // => [2, 1]
     */
    var method = baseRest(function(path, args) {
      return function(object) {
        return baseInvoke(object, path, args);
      };
    });

    /**
     * The opposite of `_.method`; this method creates a function that invokes
     * the method at a given path of `object`. Any additional arguments are
     * provided to the invoked method.
     *
     * @static
     * @memberOf _
     * @since 3.7.0
     * @category Util
     * @param {Object} object The object to query.
     * @param {...*} [args] The arguments to invoke the method with.
     * @returns {Function} Returns the new invoker function.
     * @example
     *
     * var array = _.times(3, _.constant),
     *     object = { 'a': array, 'b': array, 'c': array };
     *
     * _.map(['a[2]', 'c[0]'], _.methodOf(object));
     * // => [2, 0]
     *
     * _.map([['a', '2'], ['c', '0']], _.methodOf(object));
     * // => [2, 0]
     */
    var methodOf = baseRest(function(object, args) {
      return function(path) {
        return baseInvoke(object, path, args);
      };
    });

    /**
     * Adds all own enumerable string keyed function properties of a source
     * object to the destination object. If `object` is a function, then methods
     * are added to its prototype as well.
     *
     * **Note:** Use `_.runInContext` to create a pristine `lodash` function to
     * avoid conflicts caused by modifying the original.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {Function|Object} [object=lodash] The destination object.
     * @param {Object} source The object of functions to add.
     * @param {Object} [options={}] The options object.
     * @param {boolean} [options.chain=true] Specify whether mixins are chainable.
     * @returns {Function|Object} Returns `object`.
     * @example
     *
     * function vowels(string) {
     *   return _.filter(string, function(v) {
     *     return /[aeiou]/i.test(v);
     *   });
     * }
     *
     * _.mixin({ 'vowels': vowels });
     * _.vowels('fred');
     * // => ['e']
     *
     * _('fred').vowels().value();
     * // => ['e']
     *
     * _.mixin({ 'vowels': vowels }, { 'chain': false });
     * _('fred').vowels();
     * // => ['e']
     */
    function mixin(object, source, options) {
      var props = keys(source),
          methodNames = baseFunctions(source, props);

      if (options == null &&
          !(isObject(source) && (methodNames.length || !props.length))) {
        options = source;
        source = object;
        object = this;
        methodNames = baseFunctions(source, keys(source));
      }
      var chain = !(isObject(options) && 'chain' in options) || !!options.chain,
          isFunc = isFunction(object);

      arrayEach(methodNames, function(methodName) {
        var func = source[methodName];
        object[methodName] = func;
        if (isFunc) {
          object.prototype[methodName] = function() {
            var chainAll = this.__chain__;
            if (chain || chainAll) {
              var result = object(this.__wrapped__),
                  actions = result.__actions__ = copyArray(this.__actions__);

              actions.push({ 'func': func, 'args': arguments, 'thisArg': object });
              result.__chain__ = chainAll;
              return result;
            }
            return func.apply(object, arrayPush([this.value()], arguments));
          };
        }
      });

      return object;
    }

    /**
     * Reverts the `_` variable to its previous value and returns a reference to
     * the `lodash` function.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @returns {Function} Returns the `lodash` function.
     * @example
     *
     * var lodash = _.noConflict();
     */
    function noConflict() {
      if (root._ === this) {
        root._ = oldDash;
      }
      return this;
    }

    /**
     * This method returns `undefined`.
     *
     * @static
     * @memberOf _
     * @since 2.3.0
     * @category Util
     * @example
     *
     * _.times(2, _.noop);
     * // => [undefined, undefined]
     */
    function noop() {
      // No operation performed.
    }

    /**
     * Creates a function that gets the argument at index `n`. If `n` is negative,
     * the nth argument from the end is returned.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {number} [n=0] The index of the argument to return.
     * @returns {Function} Returns the new pass-thru function.
     * @example
     *
     * var func = _.nthArg(1);
     * func('a', 'b', 'c', 'd');
     * // => 'b'
     *
     * var func = _.nthArg(-2);
     * func('a', 'b', 'c', 'd');
     * // => 'c'
     */
    function nthArg(n) {
      n = toInteger(n);
      return baseRest(function(args) {
        return baseNth(args, n);
      });
    }

    /**
     * Creates a function that invokes `iteratees` with the arguments it receives
     * and returns their results.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {...(Function|Function[])} [iteratees=[_.identity]]
     *  The iteratees to invoke.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var func = _.over([Math.max, Math.min]);
     *
     * func(1, 2, 3, 4);
     * // => [4, 1]
     */
    var over = createOver(arrayMap);

    /**
     * Creates a function that checks if **all** of the `predicates` return
     * truthy when invoked with the arguments it receives.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {...(Function|Function[])} [predicates=[_.identity]]
     *  The predicates to check.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var func = _.overEvery([Boolean, isFinite]);
     *
     * func('1');
     * // => true
     *
     * func(null);
     * // => false
     *
     * func(NaN);
     * // => false
     */
    var overEvery = createOver(arrayEvery);

    /**
     * Creates a function that checks if **any** of the `predicates` return
     * truthy when invoked with the arguments it receives.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {...(Function|Function[])} [predicates=[_.identity]]
     *  The predicates to check.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var func = _.overSome([Boolean, isFinite]);
     *
     * func('1');
     * // => true
     *
     * func(null);
     * // => true
     *
     * func(NaN);
     * // => false
     */
    var overSome = createOver(arraySome);

    /**
     * Creates a function that returns the value at `path` of a given object.
     *
     * @static
     * @memberOf _
     * @since 2.4.0
     * @category Util
     * @param {Array|string} path The path of the property to get.
     * @returns {Function} Returns the new accessor function.
     * @example
     *
     * var objects = [
     *   { 'a': { 'b': 2 } },
     *   { 'a': { 'b': 1 } }
     * ];
     *
     * _.map(objects, _.property('a.b'));
     * // => [2, 1]
     *
     * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
     * // => [1, 2]
     */
    function property(path) {
      return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
    }

    /**
     * The opposite of `_.property`; this method creates a function that returns
     * the value at a given path of `object`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Util
     * @param {Object} object The object to query.
     * @returns {Function} Returns the new accessor function.
     * @example
     *
     * var array = [0, 1, 2],
     *     object = { 'a': array, 'b': array, 'c': array };
     *
     * _.map(['a[2]', 'c[0]'], _.propertyOf(object));
     * // => [2, 0]
     *
     * _.map([['a', '2'], ['c', '0']], _.propertyOf(object));
     * // => [2, 0]
     */
    function propertyOf(object) {
      return function(path) {
        return object == null ? undefined : baseGet(object, path);
      };
    }

    /**
     * Creates an array of numbers (positive and/or negative) progressing from
     * `start` up to, but not including, `end`. A step of `-1` is used if a negative
     * `start` is specified without an `end` or `step`. If `end` is not specified,
     * it's set to `start` with `start` then set to `0`.
     *
     * **Note:** JavaScript follows the IEEE-754 standard for resolving
     * floating-point values which can produce unexpected results.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {number} [start=0] The start of the range.
     * @param {number} end The end of the range.
     * @param {number} [step=1] The value to increment or decrement by.
     * @returns {Array} Returns the range of numbers.
     * @see _.inRange, _.rangeRight
     * @example
     *
     * _.range(4);
     * // => [0, 1, 2, 3]
     *
     * _.range(-4);
     * // => [0, -1, -2, -3]
     *
     * _.range(1, 5);
     * // => [1, 2, 3, 4]
     *
     * _.range(0, 20, 5);
     * // => [0, 5, 10, 15]
     *
     * _.range(0, -4, -1);
     * // => [0, -1, -2, -3]
     *
     * _.range(1, 4, 0);
     * // => [1, 1, 1]
     *
     * _.range(0);
     * // => []
     */
    var range = createRange();

    /**
     * This method is like `_.range` except that it populates values in
     * descending order.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {number} [start=0] The start of the range.
     * @param {number} end The end of the range.
     * @param {number} [step=1] The value to increment or decrement by.
     * @returns {Array} Returns the range of numbers.
     * @see _.inRange, _.range
     * @example
     *
     * _.rangeRight(4);
     * // => [3, 2, 1, 0]
     *
     * _.rangeRight(-4);
     * // => [-3, -2, -1, 0]
     *
     * _.rangeRight(1, 5);
     * // => [4, 3, 2, 1]
     *
     * _.rangeRight(0, 20, 5);
     * // => [15, 10, 5, 0]
     *
     * _.rangeRight(0, -4, -1);
     * // => [-3, -2, -1, 0]
     *
     * _.rangeRight(1, 4, 0);
     * // => [1, 1, 1]
     *
     * _.rangeRight(0);
     * // => []
     */
    var rangeRight = createRange(true);

    /**
     * This method returns a new empty array.
     *
     * @static
     * @memberOf _
     * @since 4.13.0
     * @category Util
     * @returns {Array} Returns the new empty array.
     * @example
     *
     * var arrays = _.times(2, _.stubArray);
     *
     * console.log(arrays);
     * // => [[], []]
     *
     * console.log(arrays[0] === arrays[1]);
     * // => false
     */
    function stubArray() {
      return [];
    }

    /**
     * This method returns `false`.
     *
     * @static
     * @memberOf _
     * @since 4.13.0
     * @category Util
     * @returns {boolean} Returns `false`.
     * @example
     *
     * _.times(2, _.stubFalse);
     * // => [false, false]
     */
    function stubFalse() {
      return false;
    }

    /**
     * This method returns a new empty object.
     *
     * @static
     * @memberOf _
     * @since 4.13.0
     * @category Util
     * @returns {Object} Returns the new empty object.
     * @example
     *
     * var objects = _.times(2, _.stubObject);
     *
     * console.log(objects);
     * // => [{}, {}]
     *
     * console.log(objects[0] === objects[1]);
     * // => false
     */
    function stubObject() {
      return {};
    }

    /**
     * This method returns an empty string.
     *
     * @static
     * @memberOf _
     * @since 4.13.0
     * @category Util
     * @returns {string} Returns the empty string.
     * @example
     *
     * _.times(2, _.stubString);
     * // => ['', '']
     */
    function stubString() {
      return '';
    }

    /**
     * This method returns `true`.
     *
     * @static
     * @memberOf _
     * @since 4.13.0
     * @category Util
     * @returns {boolean} Returns `true`.
     * @example
     *
     * _.times(2, _.stubTrue);
     * // => [true, true]
     */
    function stubTrue() {
      return true;
    }

    /**
     * Invokes the iteratee `n` times, returning an array of the results of
     * each invocation. The iteratee is invoked with one argument; (index).
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {number} n The number of times to invoke `iteratee`.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the array of results.
     * @example
     *
     * _.times(3, String);
     * // => ['0', '1', '2']
     *
     *  _.times(4, _.constant(0));
     * // => [0, 0, 0, 0]
     */
    function times(n, iteratee) {
      n = toInteger(n);
      if (n < 1 || n > MAX_SAFE_INTEGER) {
        return [];
      }
      var index = MAX_ARRAY_LENGTH,
          length = nativeMin(n, MAX_ARRAY_LENGTH);

      iteratee = getIteratee(iteratee);
      n -= MAX_ARRAY_LENGTH;

      var result = baseTimes(length, iteratee);
      while (++index < n) {
        iteratee(index);
      }
      return result;
    }

    /**
     * Converts `value` to a property path array.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {*} value The value to convert.
     * @returns {Array} Returns the new property path array.
     * @example
     *
     * _.toPath('a.b.c');
     * // => ['a', 'b', 'c']
     *
     * _.toPath('a[0].b.c');
     * // => ['a', '0', 'b', 'c']
     */
    function toPath(value) {
      if (isArray(value)) {
        return arrayMap(value, toKey);
      }
      return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value)));
    }

    /**
     * Generates a unique ID. If `prefix` is given, the ID is appended to it.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {string} [prefix=''] The value to prefix the ID with.
     * @returns {string} Returns the unique ID.
     * @example
     *
     * _.uniqueId('contact_');
     * // => 'contact_104'
     *
     * _.uniqueId();
     * // => '105'
     */
    function uniqueId(prefix) {
      var id = ++idCounter;
      return toString(prefix) + id;
    }

    /*------------------------------------------------------------------------*/

    /**
     * Adds two numbers.
     *
     * @static
     * @memberOf _
     * @since 3.4.0
     * @category Math
     * @param {number} augend The first number in an addition.
     * @param {number} addend The second number in an addition.
     * @returns {number} Returns the total.
     * @example
     *
     * _.add(6, 4);
     * // => 10
     */
    var add = createMathOperation(function(augend, addend) {
      return augend + addend;
    }, 0);

    /**
     * Computes `number` rounded up to `precision`.
     *
     * @static
     * @memberOf _
     * @since 3.10.0
     * @category Math
     * @param {number} number The number to round up.
     * @param {number} [precision=0] The precision to round up to.
     * @returns {number} Returns the rounded up number.
     * @example
     *
     * _.ceil(4.006);
     * // => 5
     *
     * _.ceil(6.004, 2);
     * // => 6.01
     *
     * _.ceil(6040, -2);
     * // => 6100
     */
    var ceil = createRound('ceil');

    /**
     * Divide two numbers.
     *
     * @static
     * @memberOf _
     * @since 4.7.0
     * @category Math
     * @param {number} dividend The first number in a division.
     * @param {number} divisor The second number in a division.
     * @returns {number} Returns the quotient.
     * @example
     *
     * _.divide(6, 4);
     * // => 1.5
     */
    var divide = createMathOperation(function(dividend, divisor) {
      return dividend / divisor;
    }, 1);

    /**
     * Computes `number` rounded down to `precision`.
     *
     * @static
     * @memberOf _
     * @since 3.10.0
     * @category Math
     * @param {number} number The number to round down.
     * @param {number} [precision=0] The precision to round down to.
     * @returns {number} Returns the rounded down number.
     * @example
     *
     * _.floor(4.006);
     * // => 4
     *
     * _.floor(0.046, 2);
     * // => 0.04
     *
     * _.floor(4060, -2);
     * // => 4000
     */
    var floor = createRound('floor');

    /**
     * Computes the maximum value of `array`. If `array` is empty or falsey,
     * `undefined` is returned.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Math
     * @param {Array} array The array to iterate over.
     * @returns {*} Returns the maximum value.
     * @example
     *
     * _.max([4, 2, 8, 6]);
     * // => 8
     *
     * _.max([]);
     * // => undefined
     */
    function max(array) {
      return (array && array.length)
        ? baseExtremum(array, identity, baseGt)
        : undefined;
    }

    /**
     * This method is like `_.max` except that it accepts `iteratee` which is
     * invoked for each element in `array` to generate the criterion by which
     * the value is ranked. The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {*} Returns the maximum value.
     * @example
     *
     * var objects = [{ 'n': 1 }, { 'n': 2 }];
     *
     * _.maxBy(objects, function(o) { return o.n; });
     * // => { 'n': 2 }
     *
     * // The `_.property` iteratee shorthand.
     * _.maxBy(objects, 'n');
     * // => { 'n': 2 }
     */
    function maxBy(array, iteratee) {
      return (array && array.length)
        ? baseExtremum(array, getIteratee(iteratee, 2), baseGt)
        : undefined;
    }

    /**
     * Computes the mean of the values in `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @returns {number} Returns the mean.
     * @example
     *
     * _.mean([4, 2, 8, 6]);
     * // => 5
     */
    function mean(array) {
      return baseMean(array, identity);
    }

    /**
     * This method is like `_.mean` except that it accepts `iteratee` which is
     * invoked for each element in `array` to generate the value to be averaged.
     * The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.7.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {number} Returns the mean.
     * @example
     *
     * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
     *
     * _.meanBy(objects, function(o) { return o.n; });
     * // => 5
     *
     * // The `_.property` iteratee shorthand.
     * _.meanBy(objects, 'n');
     * // => 5
     */
    function meanBy(array, iteratee) {
      return baseMean(array, getIteratee(iteratee, 2));
    }

    /**
     * Computes the minimum value of `array`. If `array` is empty or falsey,
     * `undefined` is returned.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Math
     * @param {Array} array The array to iterate over.
     * @returns {*} Returns the minimum value.
     * @example
     *
     * _.min([4, 2, 8, 6]);
     * // => 2
     *
     * _.min([]);
     * // => undefined
     */
    function min(array) {
      return (array && array.length)
        ? baseExtremum(array, identity, baseLt)
        : undefined;
    }

    /**
     * This method is like `_.min` except that it accepts `iteratee` which is
     * invoked for each element in `array` to generate the criterion by which
     * the value is ranked. The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {*} Returns the minimum value.
     * @example
     *
     * var objects = [{ 'n': 1 }, { 'n': 2 }];
     *
     * _.minBy(objects, function(o) { return o.n; });
     * // => { 'n': 1 }
     *
     * // The `_.property` iteratee shorthand.
     * _.minBy(objects, 'n');
     * // => { 'n': 1 }
     */
    function minBy(array, iteratee) {
      return (array && array.length)
        ? baseExtremum(array, getIteratee(iteratee, 2), baseLt)
        : undefined;
    }

    /**
     * Multiply two numbers.
     *
     * @static
     * @memberOf _
     * @since 4.7.0
     * @category Math
     * @param {number} multiplier The first number in a multiplication.
     * @param {number} multiplicand The second number in a multiplication.
     * @returns {number} Returns the product.
     * @example
     *
     * _.multiply(6, 4);
     * // => 24
     */
    var multiply = createMathOperation(function(multiplier, multiplicand) {
      return multiplier * multiplicand;
    }, 1);

    /**
     * Computes `number` rounded to `precision`.
     *
     * @static
     * @memberOf _
     * @since 3.10.0
     * @category Math
     * @param {number} number The number to round.
     * @param {number} [precision=0] The precision to round to.
     * @returns {number} Returns the rounded number.
     * @example
     *
     * _.round(4.006);
     * // => 4
     *
     * _.round(4.006, 2);
     * // => 4.01
     *
     * _.round(4060, -2);
     * // => 4100
     */
    var round = createRound('round');

    /**
     * Subtract two numbers.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Math
     * @param {number} minuend The first number in a subtraction.
     * @param {number} subtrahend The second number in a subtraction.
     * @returns {number} Returns the difference.
     * @example
     *
     * _.subtract(6, 4);
     * // => 2
     */
    var subtract = createMathOperation(function(minuend, subtrahend) {
      return minuend - subtrahend;
    }, 0);

    /**
     * Computes the sum of the values in `array`.
     *
     * @static
     * @memberOf _
     * @since 3.4.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @returns {number} Returns the sum.
     * @example
     *
     * _.sum([4, 2, 8, 6]);
     * // => 20
     */
    function sum(array) {
      return (array && array.length)
        ? baseSum(array, identity)
        : 0;
    }

    /**
     * This method is like `_.sum` except that it accepts `iteratee` which is
     * invoked for each element in `array` to generate the value to be summed.
     * The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {number} Returns the sum.
     * @example
     *
     * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
     *
     * _.sumBy(objects, function(o) { return o.n; });
     * // => 20
     *
     * // The `_.property` iteratee shorthand.
     * _.sumBy(objects, 'n');
     * // => 20
     */
    function sumBy(array, iteratee) {
      return (array && array.length)
        ? baseSum(array, getIteratee(iteratee, 2))
        : 0;
    }

    /*------------------------------------------------------------------------*/

    // Add methods that return wrapped values in chain sequences.
    lodash.after = after;
    lodash.ary = ary;
    lodash.assign = assign;
    lodash.assignIn = assignIn;
    lodash.assignInWith = assignInWith;
    lodash.assignWith = assignWith;
    lodash.at = at;
    lodash.before = before;
    lodash.bind = bind;
    lodash.bindAll = bindAll;
    lodash.bindKey = bindKey;
    lodash.castArray = castArray;
    lodash.chain = chain;
    lodash.chunk = chunk;
    lodash.compact = compact;
    lodash.concat = concat;
    lodash.cond = cond;
    lodash.conforms = conforms;
    lodash.constant = constant;
    lodash.countBy = countBy;
    lodash.create = create;
    lodash.curry = curry;
    lodash.curryRight = curryRight;
    lodash.debounce = debounce;
    lodash.defaults = defaults;
    lodash.defaultsDeep = defaultsDeep;
    lodash.defer = defer;
    lodash.delay = delay;
    lodash.difference = difference;
    lodash.differenceBy = differenceBy;
    lodash.differenceWith = differenceWith;
    lodash.drop = drop;
    lodash.dropRight = dropRight;
    lodash.dropRightWhile = dropRightWhile;
    lodash.dropWhile = dropWhile;
    lodash.fill = fill;
    lodash.filter = filter;
    lodash.flatMap = flatMap;
    lodash.flatMapDeep = flatMapDeep;
    lodash.flatMapDepth = flatMapDepth;
    lodash.flatten = flatten;
    lodash.flattenDeep = flattenDeep;
    lodash.flattenDepth = flattenDepth;
    lodash.flip = flip;
    lodash.flow = flow;
    lodash.flowRight = flowRight;
    lodash.fromPairs = fromPairs;
    lodash.functions = functions;
    lodash.functionsIn = functionsIn;
    lodash.groupBy = groupBy;
    lodash.initial = initial;
    lodash.intersection = intersection;
    lodash.intersectionBy = intersectionBy;
    lodash.intersectionWith = intersectionWith;
    lodash.invert = invert;
    lodash.invertBy = invertBy;
    lodash.invokeMap = invokeMap;
    lodash.iteratee = iteratee;
    lodash.keyBy = keyBy;
    lodash.keys = keys;
    lodash.keysIn = keysIn;
    lodash.map = map;
    lodash.mapKeys = mapKeys;
    lodash.mapValues = mapValues;
    lodash.matches = matches;
    lodash.matchesProperty = matchesProperty;
    lodash.memoize = memoize;
    lodash.merge = merge;
    lodash.mergeWith = mergeWith;
    lodash.method = method;
    lodash.methodOf = methodOf;
    lodash.mixin = mixin;
    lodash.negate = negate;
    lodash.nthArg = nthArg;
    lodash.omit = omit;
    lodash.omitBy = omitBy;
    lodash.once = once;
    lodash.orderBy = orderBy;
    lodash.over = over;
    lodash.overArgs = overArgs;
    lodash.overEvery = overEvery;
    lodash.overSome = overSome;
    lodash.partial = partial;
    lodash.partialRight = partialRight;
    lodash.partition = partition;
    lodash.pick = pick;
    lodash.pickBy = pickBy;
    lodash.property = property;
    lodash.propertyOf = propertyOf;
    lodash.pull = pull;
    lodash.pullAll = pullAll;
    lodash.pullAllBy = pullAllBy;
    lodash.pullAllWith = pullAllWith;
    lodash.pullAt = pullAt;
    lodash.range = range;
    lodash.rangeRight = rangeRight;
    lodash.rearg = rearg;
    lodash.reject = reject;
    lodash.remove = remove;
    lodash.rest = rest;
    lodash.reverse = reverse;
    lodash.sampleSize = sampleSize;
    lodash.set = set;
    lodash.setWith = setWith;
    lodash.shuffle = shuffle;
    lodash.slice = slice;
    lodash.sortBy = sortBy;
    lodash.sortedUniq = sortedUniq;
    lodash.sortedUniqBy = sortedUniqBy;
    lodash.split = split;
    lodash.spread = spread;
    lodash.tail = tail;
    lodash.take = take;
    lodash.takeRight = takeRight;
    lodash.takeRightWhile = takeRightWhile;
    lodash.takeWhile = takeWhile;
    lodash.tap = tap;
    lodash.throttle = throttle;
    lodash.thru = thru;
    lodash.toArray = toArray;
    lodash.toPairs = toPairs;
    lodash.toPairsIn = toPairsIn;
    lodash.toPath = toPath;
    lodash.toPlainObject = toPlainObject;
    lodash.transform = transform;
    lodash.unary = unary;
    lodash.union = union;
    lodash.unionBy = unionBy;
    lodash.unionWith = unionWith;
    lodash.uniq = uniq;
    lodash.uniqBy = uniqBy;
    lodash.uniqWith = uniqWith;
    lodash.unset = unset;
    lodash.unzip = unzip;
    lodash.unzipWith = unzipWith;
    lodash.update = update;
    lodash.updateWith = updateWith;
    lodash.values = values;
    lodash.valuesIn = valuesIn;
    lodash.without = without;
    lodash.words = words;
    lodash.wrap = wrap;
    lodash.xor = xor;
    lodash.xorBy = xorBy;
    lodash.xorWith = xorWith;
    lodash.zip = zip;
    lodash.zipObject = zipObject;
    lodash.zipObjectDeep = zipObjectDeep;
    lodash.zipWith = zipWith;

    // Add aliases.
    lodash.entries = toPairs;
    lodash.entriesIn = toPairsIn;
    lodash.extend = assignIn;
    lodash.extendWith = assignInWith;

    // Add methods to `lodash.prototype`.
    mixin(lodash, lodash);

    /*------------------------------------------------------------------------*/

    // Add methods that return unwrapped values in chain sequences.
    lodash.add = add;
    lodash.attempt = attempt;
    lodash.camelCase = camelCase;
    lodash.capitalize = capitalize;
    lodash.ceil = ceil;
    lodash.clamp = clamp;
    lodash.clone = clone;
    lodash.cloneDeep = cloneDeep;
    lodash.cloneDeepWith = cloneDeepWith;
    lodash.cloneWith = cloneWith;
    lodash.conformsTo = conformsTo;
    lodash.deburr = deburr;
    lodash.defaultTo = defaultTo;
    lodash.divide = divide;
    lodash.endsWith = endsWith;
    lodash.eq = eq;
    lodash.escape = escape;
    lodash.escapeRegExp = escapeRegExp;
    lodash.every = every;
    lodash.find = find;
    lodash.findIndex = findIndex;
    lodash.findKey = findKey;
    lodash.findLast = findLast;
    lodash.findLastIndex = findLastIndex;
    lodash.findLastKey = findLastKey;
    lodash.floor = floor;
    lodash.forEach = forEach;
    lodash.forEachRight = forEachRight;
    lodash.forIn = forIn;
    lodash.forInRight = forInRight;
    lodash.forOwn = forOwn;
    lodash.forOwnRight = forOwnRight;
    lodash.get = get;
    lodash.gt = gt;
    lodash.gte = gte;
    lodash.has = has;
    lodash.hasIn = hasIn;
    lodash.head = head;
    lodash.identity = identity;
    lodash.includes = includes;
    lodash.indexOf = indexOf;
    lodash.inRange = inRange;
    lodash.invoke = invoke;
    lodash.isArguments = isArguments;
    lodash.isArray = isArray;
    lodash.isArrayBuffer = isArrayBuffer;
    lodash.isArrayLike = isArrayLike;
    lodash.isArrayLikeObject = isArrayLikeObject;
    lodash.isBoolean = isBoolean;
    lodash.isBuffer = isBuffer;
    lodash.isDate = isDate;
    lodash.isElement = isElement;
    lodash.isEmpty = isEmpty;
    lodash.isEqual = isEqual;
    lodash.isEqualWith = isEqualWith;
    lodash.isError = isError;
    lodash.isFinite = isFinite;
    lodash.isFunction = isFunction;
    lodash.isInteger = isInteger;
    lodash.isLength = isLength;
    lodash.isMap = isMap;
    lodash.isMatch = isMatch;
    lodash.isMatchWith = isMatchWith;
    lodash.isNaN = isNaN;
    lodash.isNative = isNative;
    lodash.isNil = isNil;
    lodash.isNull = isNull;
    lodash.isNumber = isNumber;
    lodash.isObject = isObject;
    lodash.isObjectLike = isObjectLike;
    lodash.isPlainObject = isPlainObject;
    lodash.isRegExp = isRegExp;
    lodash.isSafeInteger = isSafeInteger;
    lodash.isSet = isSet;
    lodash.isString = isString;
    lodash.isSymbol = isSymbol;
    lodash.isTypedArray = isTypedArray;
    lodash.isUndefined = isUndefined;
    lodash.isWeakMap = isWeakMap;
    lodash.isWeakSet = isWeakSet;
    lodash.join = join;
    lodash.kebabCase = kebabCase;
    lodash.last = last;
    lodash.lastIndexOf = lastIndexOf;
    lodash.lowerCase = lowerCase;
    lodash.lowerFirst = lowerFirst;
    lodash.lt = lt;
    lodash.lte = lte;
    lodash.max = max;
    lodash.maxBy = maxBy;
    lodash.mean = mean;
    lodash.meanBy = meanBy;
    lodash.min = min;
    lodash.minBy = minBy;
    lodash.stubArray = stubArray;
    lodash.stubFalse = stubFalse;
    lodash.stubObject = stubObject;
    lodash.stubString = stubString;
    lodash.stubTrue = stubTrue;
    lodash.multiply = multiply;
    lodash.nth = nth;
    lodash.noConflict = noConflict;
    lodash.noop = noop;
    lodash.now = now;
    lodash.pad = pad;
    lodash.padEnd = padEnd;
    lodash.padStart = padStart;
    lodash.parseInt = parseInt;
    lodash.random = random;
    lodash.reduce = reduce;
    lodash.reduceRight = reduceRight;
    lodash.repeat = repeat;
    lodash.replace = replace;
    lodash.result = result;
    lodash.round = round;
    lodash.runInContext = runInContext;
    lodash.sample = sample;
    lodash.size = size;
    lodash.snakeCase = snakeCase;
    lodash.some = some;
    lodash.sortedIndex = sortedIndex;
    lodash.sortedIndexBy = sortedIndexBy;
    lodash.sortedIndexOf = sortedIndexOf;
    lodash.sortedLastIndex = sortedLastIndex;
    lodash.sortedLastIndexBy = sortedLastIndexBy;
    lodash.sortedLastIndexOf = sortedLastIndexOf;
    lodash.startCase = startCase;
    lodash.startsWith = startsWith;
    lodash.subtract = subtract;
    lodash.sum = sum;
    lodash.sumBy = sumBy;
    lodash.template = template;
    lodash.times = times;
    lodash.toFinite = toFinite;
    lodash.toInteger = toInteger;
    lodash.toLength = toLength;
    lodash.toLower = toLower;
    lodash.toNumber = toNumber;
    lodash.toSafeInteger = toSafeInteger;
    lodash.toString = toString;
    lodash.toUpper = toUpper;
    lodash.trim = trim;
    lodash.trimEnd = trimEnd;
    lodash.trimStart = trimStart;
    lodash.truncate = truncate;
    lodash.unescape = unescape;
    lodash.uniqueId = uniqueId;
    lodash.upperCase = upperCase;
    lodash.upperFirst = upperFirst;

    // Add aliases.
    lodash.each = forEach;
    lodash.eachRight = forEachRight;
    lodash.first = head;

    mixin(lodash, (function() {
      var source = {};
      baseForOwn(lodash, function(func, methodName) {
        if (!hasOwnProperty.call(lodash.prototype, methodName)) {
          source[methodName] = func;
        }
      });
      return source;
    }()), { 'chain': false });

    /*------------------------------------------------------------------------*/

    /**
     * The semantic version number.
     *
     * @static
     * @memberOf _
     * @type {string}
     */
    lodash.VERSION = VERSION;

    // Assign default placeholders.
    arrayEach(['bind', 'bindKey', 'curry', 'curryRight', 'partial', 'partialRight'], function(methodName) {
      lodash[methodName].placeholder = lodash;
    });

    // Add `LazyWrapper` methods for `_.drop` and `_.take` variants.
    arrayEach(['drop', 'take'], function(methodName, index) {
      LazyWrapper.prototype[methodName] = function(n) {
        n = n === undefined ? 1 : nativeMax(toInteger(n), 0);

        var result = (this.__filtered__ && !index)
          ? new LazyWrapper(this)
          : this.clone();

        if (result.__filtered__) {
          result.__takeCount__ = nativeMin(n, result.__takeCount__);
        } else {
          result.__views__.push({
            'size': nativeMin(n, MAX_ARRAY_LENGTH),
            'type': methodName + (result.__dir__ < 0 ? 'Right' : '')
          });
        }
        return result;
      };

      LazyWrapper.prototype[methodName + 'Right'] = function(n) {
        return this.reverse()[methodName](n).reverse();
      };
    });

    // Add `LazyWrapper` methods that accept an `iteratee` value.
    arrayEach(['filter', 'map', 'takeWhile'], function(methodName, index) {
      var type = index + 1,
          isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG;

      LazyWrapper.prototype[methodName] = function(iteratee) {
        var result = this.clone();
        result.__iteratees__.push({
          'iteratee': getIteratee(iteratee, 3),
          'type': type
        });
        result.__filtered__ = result.__filtered__ || isFilter;
        return result;
      };
    });

    // Add `LazyWrapper` methods for `_.head` and `_.last`.
    arrayEach(['head', 'last'], function(methodName, index) {
      var takeName = 'take' + (index ? 'Right' : '');

      LazyWrapper.prototype[methodName] = function() {
        return this[takeName](1).value()[0];
      };
    });

    // Add `LazyWrapper` methods for `_.initial` and `_.tail`.
    arrayEach(['initial', 'tail'], function(methodName, index) {
      var dropName = 'drop' + (index ? '' : 'Right');

      LazyWrapper.prototype[methodName] = function() {
        return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);
      };
    });

    LazyWrapper.prototype.compact = function() {
      return this.filter(identity);
    };

    LazyWrapper.prototype.find = function(predicate) {
      return this.filter(predicate).head();
    };

    LazyWrapper.prototype.findLast = function(predicate) {
      return this.reverse().find(predicate);
    };

    LazyWrapper.prototype.invokeMap = baseRest(function(path, args) {
      if (typeof path == 'function') {
        return new LazyWrapper(this);
      }
      return this.map(function(value) {
        return baseInvoke(value, path, args);
      });
    });

    LazyWrapper.prototype.reject = function(predicate) {
      return this.filter(negate(getIteratee(predicate)));
    };

    LazyWrapper.prototype.slice = function(start, end) {
      start = toInteger(start);

      var result = this;
      if (result.__filtered__ && (start > 0 || end < 0)) {
        return new LazyWrapper(result);
      }
      if (start < 0) {
        result = result.takeRight(-start);
      } else if (start) {
        result = result.drop(start);
      }
      if (end !== undefined) {
        end = toInteger(end);
        result = end < 0 ? result.dropRight(-end) : result.take(end - start);
      }
      return result;
    };

    LazyWrapper.prototype.takeRightWhile = function(predicate) {
      return this.reverse().takeWhile(predicate).reverse();
    };

    LazyWrapper.prototype.toArray = function() {
      return this.take(MAX_ARRAY_LENGTH);
    };

    // Add `LazyWrapper` methods to `lodash.prototype`.
    baseForOwn(LazyWrapper.prototype, function(func, methodName) {
      var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName),
          isTaker = /^(?:head|last)$/.test(methodName),
          lodashFunc = lodash[isTaker ? ('take' + (methodName == 'last' ? 'Right' : '')) : methodName],
          retUnwrapped = isTaker || /^find/.test(methodName);

      if (!lodashFunc) {
        return;
      }
      lodash.prototype[methodName] = function() {
        var value = this.__wrapped__,
            args = isTaker ? [1] : arguments,
            isLazy = value instanceof LazyWrapper,
            iteratee = args[0],
            useLazy = isLazy || isArray(value);

        var interceptor = function(value) {
          var result = lodashFunc.apply(lodash, arrayPush([value], args));
          return (isTaker && chainAll) ? result[0] : result;
        };

        if (useLazy && checkIteratee && typeof iteratee == 'function' && iteratee.length != 1) {
          // Avoid lazy use if the iteratee has a "length" value other than `1`.
          isLazy = useLazy = false;
        }
        var chainAll = this.__chain__,
            isHybrid = !!this.__actions__.length,
            isUnwrapped = retUnwrapped && !chainAll,
            onlyLazy = isLazy && !isHybrid;

        if (!retUnwrapped && useLazy) {
          value = onlyLazy ? value : new LazyWrapper(this);
          var result = func.apply(value, args);
          result.__actions__.push({ 'func': thru, 'args': [interceptor], 'thisArg': undefined });
          return new LodashWrapper(result, chainAll);
        }
        if (isUnwrapped && onlyLazy) {
          return func.apply(this, args);
        }
        result = this.thru(interceptor);
        return isUnwrapped ? (isTaker ? result.value()[0] : result.value()) : result;
      };
    });

    // Add `Array` methods to `lodash.prototype`.
    arrayEach(['pop', 'push', 'shift', 'sort', 'splice', 'unshift'], function(methodName) {
      var func = arrayProto[methodName],
          chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru',
          retUnwrapped = /^(?:pop|shift)$/.test(methodName);

      lodash.prototype[methodName] = function() {
        var args = arguments;
        if (retUnwrapped && !this.__chain__) {
          var value = this.value();
          return func.apply(isArray(value) ? value : [], args);
        }
        return this[chainName](function(value) {
          return func.apply(isArray(value) ? value : [], args);
        });
      };
    });

    // Map minified method names to their real names.
    baseForOwn(LazyWrapper.prototype, function(func, methodName) {
      var lodashFunc = lodash[methodName];
      if (lodashFunc) {
        var key = lodashFunc.name + '';
        if (!hasOwnProperty.call(realNames, key)) {
          realNames[key] = [];
        }
        realNames[key].push({ 'name': methodName, 'func': lodashFunc });
      }
    });

    realNames[createHybrid(undefined, WRAP_BIND_KEY_FLAG).name] = [{
      'name': 'wrapper',
      'func': undefined
    }];

    // Add methods to `LazyWrapper`.
    LazyWrapper.prototype.clone = lazyClone;
    LazyWrapper.prototype.reverse = lazyReverse;
    LazyWrapper.prototype.value = lazyValue;

    // Add chain sequence methods to the `lodash` wrapper.
    lodash.prototype.at = wrapperAt;
    lodash.prototype.chain = wrapperChain;
    lodash.prototype.commit = wrapperCommit;
    lodash.prototype.next = wrapperNext;
    lodash.prototype.plant = wrapperPlant;
    lodash.prototype.reverse = wrapperReverse;
    lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue;

    // Add lazy aliases.
    lodash.prototype.first = lodash.prototype.head;

    if (symIterator) {
      lodash.prototype[symIterator] = wrapperToIterator;
    }
    return lodash;
  });

  /*--------------------------------------------------------------------------*/

  // Export lodash.
  var _ = runInContext();

  // Some AMD build optimizers, like r.js, check for condition patterns like:
  if (true) {
    // Expose Lodash on the global object to prevent errors when Lodash is
    // loaded by a script tag in the presence of an AMD loader.
    // See http://requirejs.org/docs/errors.html#mismatch for more details.
    // Use `_.noConflict` to remove Lodash from the global object.
    root._ = _;

    // Define as an anonymous module so, through path mapping, it can be
    // referenced as the "underscore" module.
    !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() {
      return _;
    }).call(exports, __webpack_require__, exports, module),
				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  }
  // Check for `exports` after `define` in case a build optimizer adds it.
  else {}
}.call(this));

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))

/***/ }),

/***/ "./node_modules/lodash/memoize.js":
/*!****************************************!*\
  !*** ./node_modules/lodash/memoize.js ***!
  \****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var MapCache = __webpack_require__(/*! ./_MapCache */ "./node_modules/lodash/_MapCache.js");

/** Error message constants. */
var FUNC_ERROR_TEXT = 'Expected a function';

/**
 * Creates a function that memoizes the result of `func`. If `resolver` is
 * provided, it determines the cache key for storing the result based on the
 * arguments provided to the memoized function. By default, the first argument
 * provided to the memoized function is used as the map cache key. The `func`
 * is invoked with the `this` binding of the memoized function.
 *
 * **Note:** The cache is exposed as the `cache` property on the memoized
 * function. Its creation may be customized by replacing the `_.memoize.Cache`
 * constructor with one whose instances implement the
 * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
 * method interface of `clear`, `delete`, `get`, `has`, and `set`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to have its output memoized.
 * @param {Function} [resolver] The function to resolve the cache key.
 * @returns {Function} Returns the new memoized function.
 * @example
 *
 * var object = { 'a': 1, 'b': 2 };
 * var other = { 'c': 3, 'd': 4 };
 *
 * var values = _.memoize(_.values);
 * values(object);
 * // => [1, 2]
 *
 * values(other);
 * // => [3, 4]
 *
 * object.a = 2;
 * values(object);
 * // => [1, 2]
 *
 * // Modify the result cache.
 * values.cache.set(object, ['a', 'b']);
 * values(object);
 * // => ['a', 'b']
 *
 * // Replace `_.memoize.Cache`.
 * _.memoize.Cache = WeakMap;
 */
function memoize(func, resolver) {
  if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
    throw new TypeError(FUNC_ERROR_TEXT);
  }
  var memoized = function() {
    var args = arguments,
        key = resolver ? resolver.apply(this, args) : args[0],
        cache = memoized.cache;

    if (cache.has(key)) {
      return cache.get(key);
    }
    var result = func.apply(this, args);
    memoized.cache = cache.set(key, result) || cache;
    return result;
  };
  memoized.cache = new (memoize.Cache || MapCache);
  return memoized;
}

// Expose `MapCache`.
memoize.Cache = MapCache;

module.exports = memoize;


/***/ }),

/***/ "./node_modules/lodash/mergeWith.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/mergeWith.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseMerge = __webpack_require__(/*! ./_baseMerge */ "./node_modules/lodash/_baseMerge.js"),
    createAssigner = __webpack_require__(/*! ./_createAssigner */ "./node_modules/lodash/_createAssigner.js");

/**
 * This method is like `_.merge` except that it accepts `customizer` which
 * is invoked to produce the merged values of the destination and source
 * properties. If `customizer` returns `undefined`, merging is handled by the
 * method instead. The `customizer` is invoked with six arguments:
 * (objValue, srcValue, key, object, source, stack).
 *
 * **Note:** This method mutates `object`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Object
 * @param {Object} object The destination object.
 * @param {...Object} sources The source objects.
 * @param {Function} customizer The function to customize assigned values.
 * @returns {Object} Returns `object`.
 * @example
 *
 * function customizer(objValue, srcValue) {
 *   if (_.isArray(objValue)) {
 *     return objValue.concat(srcValue);
 *   }
 * }
 *
 * var object = { 'a': [1], 'b': [2] };
 * var other = { 'a': [3], 'b': [4] };
 *
 * _.mergeWith(object, other, customizer);
 * // => { 'a': [1, 3], 'b': [2, 4] }
 */
var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {
  baseMerge(object, source, srcIndex, customizer);
});

module.exports = mergeWith;


/***/ }),

/***/ "./node_modules/lodash/noop.js":
/*!*************************************!*\
  !*** ./node_modules/lodash/noop.js ***!
  \*************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * This method returns `undefined`.
 *
 * @static
 * @memberOf _
 * @since 2.3.0
 * @category Util
 * @example
 *
 * _.times(2, _.noop);
 * // => [undefined, undefined]
 */
function noop() {
  // No operation performed.
}

module.exports = noop;


/***/ }),

/***/ "./node_modules/lodash/now.js":
/*!************************************!*\
  !*** ./node_modules/lodash/now.js ***!
  \************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");

/**
 * Gets the timestamp of the number of milliseconds that have elapsed since
 * the Unix epoch (1 January 1970 00:00:00 UTC).
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Date
 * @returns {number} Returns the timestamp.
 * @example
 *
 * _.defer(function(stamp) {
 *   console.log(_.now() - stamp);
 * }, _.now());
 * // => Logs the number of milliseconds it took for the deferred invocation.
 */
var now = function() {
  return root.Date.now();
};

module.exports = now;


/***/ }),

/***/ "./node_modules/lodash/omit.js":
/*!*************************************!*\
  !*** ./node_modules/lodash/omit.js ***!
  \*************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js"),
    baseClone = __webpack_require__(/*! ./_baseClone */ "./node_modules/lodash/_baseClone.js"),
    baseUnset = __webpack_require__(/*! ./_baseUnset */ "./node_modules/lodash/_baseUnset.js"),
    castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
    copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
    customOmitClone = __webpack_require__(/*! ./_customOmitClone */ "./node_modules/lodash/_customOmitClone.js"),
    flatRest = __webpack_require__(/*! ./_flatRest */ "./node_modules/lodash/_flatRest.js"),
    getAllKeysIn = __webpack_require__(/*! ./_getAllKeysIn */ "./node_modules/lodash/_getAllKeysIn.js");

/** Used to compose bitmasks for cloning. */
var CLONE_DEEP_FLAG = 1,
    CLONE_FLAT_FLAG = 2,
    CLONE_SYMBOLS_FLAG = 4;

/**
 * The opposite of `_.pick`; this method creates an object composed of the
 * own and inherited enumerable property paths of `object` that are not omitted.
 *
 * **Note:** This method is considerably slower than `_.pick`.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The source object.
 * @param {...(string|string[])} [paths] The property paths to omit.
 * @returns {Object} Returns the new object.
 * @example
 *
 * var object = { 'a': 1, 'b': '2', 'c': 3 };
 *
 * _.omit(object, ['a', 'c']);
 * // => { 'b': '2' }
 */
var omit = flatRest(function(object, paths) {
  var result = {};
  if (object == null) {
    return result;
  }
  var isDeep = false;
  paths = arrayMap(paths, function(path) {
    path = castPath(path, object);
    isDeep || (isDeep = path.length > 1);
    return path;
  });
  copyObject(object, getAllKeysIn(object), result);
  if (isDeep) {
    result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
  }
  var length = paths.length;
  while (length--) {
    baseUnset(result, paths[length]);
  }
  return result;
});

module.exports = omit;


/***/ }),

/***/ "./node_modules/lodash/pick.js":
/*!*************************************!*\
  !*** ./node_modules/lodash/pick.js ***!
  \*************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var basePick = __webpack_require__(/*! ./_basePick */ "./node_modules/lodash/_basePick.js"),
    flatRest = __webpack_require__(/*! ./_flatRest */ "./node_modules/lodash/_flatRest.js");

/**
 * Creates an object composed of the picked `object` properties.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The source object.
 * @param {...(string|string[])} [paths] The property paths to pick.
 * @returns {Object} Returns the new object.
 * @example
 *
 * var object = { 'a': 1, 'b': '2', 'c': 3 };
 *
 * _.pick(object, ['a', 'c']);
 * // => { 'a': 1, 'c': 3 }
 */
var pick = flatRest(function(object, paths) {
  return object == null ? {} : basePick(object, paths);
});

module.exports = pick;


/***/ }),

/***/ "./node_modules/lodash/property.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/property.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseProperty = __webpack_require__(/*! ./_baseProperty */ "./node_modules/lodash/_baseProperty.js"),
    basePropertyDeep = __webpack_require__(/*! ./_basePropertyDeep */ "./node_modules/lodash/_basePropertyDeep.js"),
    isKey = __webpack_require__(/*! ./_isKey */ "./node_modules/lodash/_isKey.js"),
    toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");

/**
 * Creates a function that returns the value at `path` of a given object.
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Util
 * @param {Array|string} path The path of the property to get.
 * @returns {Function} Returns the new accessor function.
 * @example
 *
 * var objects = [
 *   { 'a': { 'b': 2 } },
 *   { 'a': { 'b': 1 } }
 * ];
 *
 * _.map(objects, _.property('a.b'));
 * // => [2, 1]
 *
 * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
 * // => [1, 2]
 */
function property(path) {
  return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
}

module.exports = property;


/***/ }),

/***/ "./node_modules/lodash/result.js":
/*!***************************************!*\
  !*** ./node_modules/lodash/result.js ***!
  \***************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
    isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
    toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");

/**
 * This method is like `_.get` except that if the resolved value is a
 * function it's invoked with the `this` binding of its parent object and
 * its result is returned.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The object to query.
 * @param {Array|string} path The path of the property to resolve.
 * @param {*} [defaultValue] The value returned for `undefined` resolved values.
 * @returns {*} Returns the resolved value.
 * @example
 *
 * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };
 *
 * _.result(object, 'a[0].b.c1');
 * // => 3
 *
 * _.result(object, 'a[0].b.c2');
 * // => 4
 *
 * _.result(object, 'a[0].b.c3', 'default');
 * // => 'default'
 *
 * _.result(object, 'a[0].b.c3', _.constant('default'));
 * // => 'default'
 */
function result(object, path, defaultValue) {
  path = castPath(path, object);

  var index = -1,
      length = path.length;

  // Ensure the loop is entered when path is empty.
  if (!length) {
    length = 1;
    object = undefined;
  }
  while (++index < length) {
    var value = object == null ? undefined : object[toKey(path[index])];
    if (value === undefined) {
      index = length;
      value = defaultValue;
    }
    object = isFunction(value) ? value.call(object) : value;
  }
  return object;
}

module.exports = result;


/***/ }),

/***/ "./node_modules/lodash/some.js":
/*!*************************************!*\
  !*** ./node_modules/lodash/some.js ***!
  \*************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var arraySome = __webpack_require__(/*! ./_arraySome */ "./node_modules/lodash/_arraySome.js"),
    baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
    baseSome = __webpack_require__(/*! ./_baseSome */ "./node_modules/lodash/_baseSome.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "./node_modules/lodash/_isIterateeCall.js");

/**
 * Checks if `predicate` returns truthy for **any** element of `collection`.
 * Iteration is stopped once `predicate` returns truthy. The predicate is
 * invoked with three arguments: (value, index|key, collection).
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Collection
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} [predicate=_.identity] The function invoked per iteration.
 * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
 * @returns {boolean} Returns `true` if any element passes the predicate check,
 *  else `false`.
 * @example
 *
 * _.some([null, 0, 'yes', false], Boolean);
 * // => true
 *
 * var users = [
 *   { 'user': 'barney', 'active': true },
 *   { 'user': 'fred',   'active': false }
 * ];
 *
 * // The `_.matches` iteratee shorthand.
 * _.some(users, { 'user': 'barney', 'active': false });
 * // => false
 *
 * // The `_.matchesProperty` iteratee shorthand.
 * _.some(users, ['active', false]);
 * // => true
 *
 * // The `_.property` iteratee shorthand.
 * _.some(users, 'active');
 * // => true
 */
function some(collection, predicate, guard) {
  var func = isArray(collection) ? arraySome : baseSome;
  if (guard && isIterateeCall(collection, predicate, guard)) {
    predicate = undefined;
  }
  return func(collection, baseIteratee(predicate, 3));
}

module.exports = some;


/***/ }),

/***/ "./node_modules/lodash/stubArray.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/stubArray.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * This method returns a new empty array.
 *
 * @static
 * @memberOf _
 * @since 4.13.0
 * @category Util
 * @returns {Array} Returns the new empty array.
 * @example
 *
 * var arrays = _.times(2, _.stubArray);
 *
 * console.log(arrays);
 * // => [[], []]
 *
 * console.log(arrays[0] === arrays[1]);
 * // => false
 */
function stubArray() {
  return [];
}

module.exports = stubArray;


/***/ }),

/***/ "./node_modules/lodash/stubFalse.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/stubFalse.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * This method returns `false`.
 *
 * @static
 * @memberOf _
 * @since 4.13.0
 * @category Util
 * @returns {boolean} Returns `false`.
 * @example
 *
 * _.times(2, _.stubFalse);
 * // => [false, false]
 */
function stubFalse() {
  return false;
}

module.exports = stubFalse;


/***/ }),

/***/ "./node_modules/lodash/toFinite.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/toFinite.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var toNumber = __webpack_require__(/*! ./toNumber */ "./node_modules/lodash/toNumber.js");

/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0,
    MAX_INTEGER = 1.7976931348623157e+308;

/**
 * Converts `value` to a finite number.
 *
 * @static
 * @memberOf _
 * @since 4.12.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {number} Returns the converted number.
 * @example
 *
 * _.toFinite(3.2);
 * // => 3.2
 *
 * _.toFinite(Number.MIN_VALUE);
 * // => 5e-324
 *
 * _.toFinite(Infinity);
 * // => 1.7976931348623157e+308
 *
 * _.toFinite('3.2');
 * // => 3.2
 */
function toFinite(value) {
  if (!value) {
    return value === 0 ? value : 0;
  }
  value = toNumber(value);
  if (value === INFINITY || value === -INFINITY) {
    var sign = (value < 0 ? -1 : 1);
    return sign * MAX_INTEGER;
  }
  return value === value ? value : 0;
}

module.exports = toFinite;


/***/ }),

/***/ "./node_modules/lodash/toInteger.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/toInteger.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var toFinite = __webpack_require__(/*! ./toFinite */ "./node_modules/lodash/toFinite.js");

/**
 * Converts `value` to an integer.
 *
 * **Note:** This method is loosely based on
 * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {number} Returns the converted integer.
 * @example
 *
 * _.toInteger(3.2);
 * // => 3
 *
 * _.toInteger(Number.MIN_VALUE);
 * // => 0
 *
 * _.toInteger(Infinity);
 * // => 1.7976931348623157e+308
 *
 * _.toInteger('3.2');
 * // => 3
 */
function toInteger(value) {
  var result = toFinite(value),
      remainder = result % 1;

  return result === result ? (remainder ? result - remainder : result) : 0;
}

module.exports = toInteger;


/***/ }),

/***/ "./node_modules/lodash/toNumber.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/toNumber.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
    isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");

/** Used as references for various `Number` constants. */
var NAN = 0 / 0;

/** Used to match leading and trailing whitespace. */
var reTrim = /^\s+|\s+$/g;

/** Used to detect bad signed hexadecimal string values. */
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;

/** Used to detect binary string values. */
var reIsBinary = /^0b[01]+$/i;

/** Used to detect octal string values. */
var reIsOctal = /^0o[0-7]+$/i;

/** Built-in method references without a dependency on `root`. */
var freeParseInt = parseInt;

/**
 * Converts `value` to a number.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to process.
 * @returns {number} Returns the number.
 * @example
 *
 * _.toNumber(3.2);
 * // => 3.2
 *
 * _.toNumber(Number.MIN_VALUE);
 * // => 5e-324
 *
 * _.toNumber(Infinity);
 * // => Infinity
 *
 * _.toNumber('3.2');
 * // => 3.2
 */
function toNumber(value) {
  if (typeof value == 'number') {
    return value;
  }
  if (isSymbol(value)) {
    return NAN;
  }
  if (isObject(value)) {
    var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
    value = isObject(other) ? (other + '') : other;
  }
  if (typeof value != 'string') {
    return value === 0 ? value : +value;
  }
  value = value.replace(reTrim, '');
  var isBinary = reIsBinary.test(value);
  return (isBinary || reIsOctal.test(value))
    ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
    : (reIsBadHex.test(value) ? NAN : +value);
}

module.exports = toNumber;


/***/ }),

/***/ "./node_modules/lodash/toPlainObject.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/toPlainObject.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
    keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");

/**
 * Converts `value` to a plain object flattening inherited enumerable string
 * keyed properties of `value` to own properties of the plain object.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {Object} Returns the converted plain object.
 * @example
 *
 * function Foo() {
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.assign({ 'a': 1 }, new Foo);
 * // => { 'a': 1, 'b': 2 }
 *
 * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
 * // => { 'a': 1, 'b': 2, 'c': 3 }
 */
function toPlainObject(value) {
  return copyObject(value, keysIn(value));
}

module.exports = toPlainObject;


/***/ }),

/***/ "./node_modules/lodash/toString.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/toString.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseToString = __webpack_require__(/*! ./_baseToString */ "./node_modules/lodash/_baseToString.js");

/**
 * Converts `value` to a string. An empty string is returned for `null`
 * and `undefined` values. The sign of `-0` is preserved.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {string} Returns the converted string.
 * @example
 *
 * _.toString(null);
 * // => ''
 *
 * _.toString(-0);
 * // => '-0'
 *
 * _.toString([1, 2, 3]);
 * // => '1,2,3'
 */
function toString(value) {
  return value == null ? '' : baseToString(value);
}

module.exports = toString;


/***/ }),

/***/ "./node_modules/lodash/uniqueId.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/uniqueId.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var toString = __webpack_require__(/*! ./toString */ "./node_modules/lodash/toString.js");

/** Used to generate unique IDs. */
var idCounter = 0;

/**
 * Generates a unique ID. If `prefix` is given, the ID is appended to it.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Util
 * @param {string} [prefix=''] The value to prefix the ID with.
 * @returns {string} Returns the unique ID.
 * @example
 *
 * _.uniqueId('contact_');
 * // => 'contact_104'
 *
 * _.uniqueId();
 * // => '105'
 */
function uniqueId(prefix) {
  var id = ++idCounter;
  return toString(prefix) + id;
}

module.exports = uniqueId;


/***/ }),

/***/ "./node_modules/lodash/wrapperLodash.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/wrapperLodash.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var LazyWrapper = __webpack_require__(/*! ./_LazyWrapper */ "./node_modules/lodash/_LazyWrapper.js"),
    LodashWrapper = __webpack_require__(/*! ./_LodashWrapper */ "./node_modules/lodash/_LodashWrapper.js"),
    baseLodash = __webpack_require__(/*! ./_baseLodash */ "./node_modules/lodash/_baseLodash.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js"),
    wrapperClone = __webpack_require__(/*! ./_wrapperClone */ "./node_modules/lodash/_wrapperClone.js");

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Creates a `lodash` object which wraps `value` to enable implicit method
 * chain sequences. Methods that operate on and return arrays, collections,
 * and functions can be chained together. Methods that retrieve a single value
 * or may return a primitive value will automatically end the chain sequence
 * and return the unwrapped value. Otherwise, the value must be unwrapped
 * with `_#value`.
 *
 * Explicit chain sequences, which must be unwrapped with `_#value`, may be
 * enabled using `_.chain`.
 *
 * The execution of chained methods is lazy, that is, it's deferred until
 * `_#value` is implicitly or explicitly called.
 *
 * Lazy evaluation allows several methods to support shortcut fusion.
 * Shortcut fusion is an optimization to merge iteratee calls; this avoids
 * the creation of intermediate arrays and can greatly reduce the number of
 * iteratee executions. Sections of a chain sequence qualify for shortcut
 * fusion if the section is applied to an array and iteratees accept only
 * one argument. The heuristic for whether a section qualifies for shortcut
 * fusion is subject to change.
 *
 * Chaining is supported in custom builds as long as the `_#value` method is
 * directly or indirectly included in the build.
 *
 * In addition to lodash methods, wrappers have `Array` and `String` methods.
 *
 * The wrapper `Array` methods are:
 * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`
 *
 * The wrapper `String` methods are:
 * `replace` and `split`
 *
 * The wrapper methods that support shortcut fusion are:
 * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,
 * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,
 * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`
 *
 * The chainable wrapper methods are:
 * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,
 * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,
 * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
 * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,
 * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,
 * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,
 * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,
 * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,
 * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,
 * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,
 * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
 * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,
 * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,
 * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,
 * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,
 * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,
 * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,
 * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,
 * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,
 * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,
 * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,
 * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,
 * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,
 * `zipObject`, `zipObjectDeep`, and `zipWith`
 *
 * The wrapper methods that are **not** chainable by default are:
 * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
 * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,
 * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,
 * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,
 * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,
 * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,
 * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,
 * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,
 * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,
 * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,
 * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,
 * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,
 * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,
 * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,
 * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,
 * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,
 * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
 * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,
 * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,
 * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,
 * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,
 * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
 * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,
 * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,
 * `upperFirst`, `value`, and `words`
 *
 * @name _
 * @constructor
 * @category Seq
 * @param {*} value The value to wrap in a `lodash` instance.
 * @returns {Object} Returns the new `lodash` wrapper instance.
 * @example
 *
 * function square(n) {
 *   return n * n;
 * }
 *
 * var wrapped = _([1, 2, 3]);
 *
 * // Returns an unwrapped value.
 * wrapped.reduce(_.add);
 * // => 6
 *
 * // Returns a wrapped value.
 * var squares = wrapped.map(square);
 *
 * _.isArray(squares);
 * // => false
 *
 * _.isArray(squares.value());
 * // => true
 */
function lodash(value) {
  if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
    if (value instanceof LodashWrapper) {
      return value;
    }
    if (hasOwnProperty.call(value, '__wrapped__')) {
      return wrapperClone(value);
    }
  }
  return new LodashWrapper(value);
}

// Ensure wrappers are instances of `baseLodash`.
lodash.prototype = baseLodash.prototype;
lodash.prototype.constructor = lodash;

module.exports = lodash;


/***/ }),

/***/ "./node_modules/object-assign/index.js":
/*!*********************************************!*\
  !*** ./node_modules/object-assign/index.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/


/* eslint-disable no-unused-vars */
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
var hasOwnProperty = Object.prototype.hasOwnProperty;
var propIsEnumerable = Object.prototype.propertyIsEnumerable;

function toObject(val) {
	if (val === null || val === undefined) {
		throw new TypeError('Object.assign cannot be called with null or undefined');
	}

	return Object(val);
}

function shouldUseNative() {
	try {
		if (!Object.assign) {
			return false;
		}

		// Detect buggy property enumeration order in older V8 versions.

		// https://bugs.chromium.org/p/v8/issues/detail?id=4118
		var test1 = new String('abc');  // eslint-disable-line no-new-wrappers
		test1[5] = 'de';
		if (Object.getOwnPropertyNames(test1)[0] === '5') {
			return false;
		}

		// https://bugs.chromium.org/p/v8/issues/detail?id=3056
		var test2 = {};
		for (var i = 0; i < 10; i++) {
			test2['_' + String.fromCharCode(i)] = i;
		}
		var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
			return test2[n];
		});
		if (order2.join('') !== '0123456789') {
			return false;
		}

		// https://bugs.chromium.org/p/v8/issues/detail?id=3056
		var test3 = {};
		'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
			test3[letter] = letter;
		});
		if (Object.keys(Object.assign({}, test3)).join('') !==
				'abcdefghijklmnopqrst') {
			return false;
		}

		return true;
	} catch (err) {
		// We don't expect any of the above to throw, but better to be safe.
		return false;
	}
}

module.exports = shouldUseNative() ? Object.assign : function (target, source) {
	var from;
	var to = toObject(target);
	var symbols;

	for (var s = 1; s < arguments.length; s++) {
		from = Object(arguments[s]);

		for (var key in from) {
			if (hasOwnProperty.call(from, key)) {
				to[key] = from[key];
			}
		}

		if (getOwnPropertySymbols) {
			symbols = getOwnPropertySymbols(from);
			for (var i = 0; i < symbols.length; i++) {
				if (propIsEnumerable.call(from, symbols[i])) {
					to[symbols[i]] = from[symbols[i]];
				}
			}
		}
	}

	return to;
};


/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/common/Timer.js":
/*!****************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/common/Timer.js ***!
  \****************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
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; }; }();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

/**
 * Timer class implements a simple timeout mechanism
 */
var Timer = function () {
  function Timer(func, delay) {
    _classCallCheck(this, Timer);

    this.timer = null;
    this.delay = delay;
    this.execute = func;
  }

  // startTimer optionally takes a new func and delay so the timer instance can be reused.


  _createClass(Timer, [{
    key: "startTimer",
    value: function startTimer(func) {
      var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : -1;

      this.clearTimer();
      if (func) this.execute = func;
      if (delay >= 0) this.delay = delay;
      this.timer = setTimeout(this.execute, this.delay);
    }
  }, {
    key: "clearTimer",
    value: function clearTimer() {
      if (this.timer) {
        clearTimeout(this.timer);
        this.timer = null;
      }
    }
  }, {
    key: "skipTimer",
    value: function skipTimer() {
      if (this.timer) {
        this.execute(true); // execute can take an optional `skipped` argument
        this.clearTimer();
      }
    }
  }]);

  return Timer;
}();

/* harmony default export */ __webpack_exports__["default"] = (Timer);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/common/closestPolyfill.js":
/*!**************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/common/closestPolyfill.js ***!
  \**************************************************************************/
/*! exports provided: matches, closest, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "matches", function() { return matches; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "closest", function() { return closest; });
var matches = Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;

if (!Element.prototype.matches) {
  Element.prototype.matches = matches;
}

function closest(selector) {
  var el = this;
  if (document.documentElement.contains(el)) {
    while (el && el.nodeType === 1) {
      if (el.matches(selector)) return el;
      el = el.parentElement || el.parentNode;
    }
  }
  return null;
}

if (!Element.prototype.closest) {
  Element.prototype.closest = closest;
}

/* harmony default export */ __webpack_exports__["default"] = (closest);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/common/controlled.js":
/*!*********************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/common/controlled.js ***!
  \*********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; };

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; }; }();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }





/*
  controlled(stateTypes, defaults)(WrappedComponent)

  *** NOTE / BEWARE! *******************************************************************************
  This is already deprecated, even as new as it is, because we now have getDerivedStateFromProps!
  It remains here for now because of its additional "persist" feature, which we should factor out.
  **************************************************************************************************

  This Higher Order Component provides the controlled component pattern on a prop-by-prop basis.
  It's a nice way for components to implement internal state so they "just work" out of the box,
  but also give users the option of lifting some or all of that state up into their application.

  controlled() takes arguments as an object with three options:
   * types - an object of PropTypes for the state that will be contained here
   * defaults - an optional object with default values for stateTypes
   * persist - an optional array of names from stateTypes which will be persisted to sessionStorage
  
  The WrappedComponent will be rendered with special props:
   * setControlledState - a reference to this state wrapper's this.setState.
   * Props for all the stateTypes, from this.props if present or from this.state otherwise.
   * All other props passed to the controlled component HoC.
  
  The idea is that the values in stateTypes could be stored in state, or passed in via props.
  The WrappedComponent doesn't have to care which is being used, and can manage the state
  contained here. When present, props are used instead. If you provide these special props,
  be sure to also provide corresponding callbacks/handlers to keep them updated.
  
  If you are using the persist option, you can optionally pass a sessionKey prop to the component
  to ensure multiple instances of the component store their data separately. If you don't pass
  a sessionKey, a stringified list of the persisted keys will be used (not unique to the instance).
*/
var controlled = function controlled(_ref) {
  var types = _ref.types,
      _ref$defaults = _ref.defaults,
      defaults = _ref$defaults === undefined ? {} : _ref$defaults,
      persist = _ref.persist;
  return function (WrappedComponent) {
    var ControlledComponent = function (_React$Component) {
      _inherits(ControlledComponent, _React$Component);

      function ControlledComponent() {
        var _ref2;

        var _temp, _this, _ret;

        _classCallCheck(this, ControlledComponent);

        for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
          args[_key] = arguments[_key];
        }

        return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref2 = ControlledComponent.__proto__ || Object.getPrototypeOf(ControlledComponent)).call.apply(_ref2, [this].concat(args))), _this), _this.state = _extends({}, Object(_helpers__WEBPACK_IMPORTED_MODULE_2__["nullValues"])(types), defaults), _this.setControlledState = function (updater) {
          _this.setState(updater);
        }, _this.loadPersistent = function () {
          if (persist && persist.length > 0) {
            var fromPersisted = window && window.sessionStorage && window.sessionStorage.getItem(_this.sessionKey());
            fromPersisted && _this.setState(JSON.parse(fromPersisted));
          }
        }, _this.savePersistent = function () {
          if (persist && persist.length > 0) {
            var toPersist = Object(_helpers__WEBPACK_IMPORTED_MODULE_2__["selectKeys"])(_this.state, persist);
            window && window.sessionStorage && window.sessionStorage.setItem(_this.sessionKey(), JSON.stringify(toPersist));
          }
        }, _this.sessionKey = function () {
          return _this.props.sessionKey || JSON.stringify(persist);
        }, _temp), _possibleConstructorReturn(_this, _ret);
      }

      _createClass(ControlledComponent, [{
        key: 'componentDidMount',
        value: function componentDidMount() {
          this.loadPersistent();
          window && window.addEventListener && window.addEventListener('beforeunload', this.savePersistent);
        }
      }, {
        key: 'componentWillUnmount',
        value: function componentWillUnmount() {
          this.savePersistent();
          window && window.removeEventListener && window.removeEventListener('beforeunload', this.savePersistent);
        }
      }, {
        key: 'render',
        value: function render() {
          var _this2 = this;

          var controlledStateProps = Object(_helpers__WEBPACK_IMPORTED_MODULE_2__["filterKeys"])(this.props, function (key) {
            return types.hasOwnProperty(key) && _this2.props[key] !== null;
          });
          var otherProps = Object(_helpers__WEBPACK_IMPORTED_MODULE_2__["filterKeys"])(this.props, function (key) {
            return !types.hasOwnProperty(key);
          });
          return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(WrappedComponent, _extends({
            setControlledState: this.setControlledState
          }, this.state, controlledStateProps, otherProps));
        }
      }]);

      return ControlledComponent;
    }(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

    ControlledComponent.displayName = WrappedComponent.displayName;
    ControlledComponent.propTypes = _extends({}, WrappedComponent.propTypes, types, {
      sessionKey: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
    });

    ControlledComponent.defaultProps = _extends({}, WrappedComponent.defaultProps);

    return ControlledComponent; // TODO use recompose withState or withStateHandlers here instead of component state above
  };
};

/* harmony default export */ __webpack_exports__["default"] = (controlled);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/common/helpers.js":
/*!******************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/common/helpers.js ***!
  \******************************************************************/
/*! exports provided: bindMethods, debounce, propExists, propOrState, selectKeys, filterKeys, excludeKeys, childrenToArray, filterChildren, findChild, propsChanged, hasDisplayName, nullValues, noop, KEY_CODES, KEYS, helpers, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bindMethods", function() { return bindMethods; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "debounce", function() { return debounce; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "propExists", function() { return propExists; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "propOrState", function() { return propOrState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "selectKeys", function() { return selectKeys; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "filterKeys", function() { return filterKeys; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "excludeKeys", function() { return excludeKeys; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "childrenToArray", function() { return childrenToArray; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "filterChildren", function() { return filterChildren; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findChild", function() { return findChild; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "propsChanged", function() { return propsChanged; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasDisplayName", function() { return hasDisplayName; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nullValues", function() { return nullValues; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "noop", function() { return noop; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KEY_CODES", function() { return KEY_CODES; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KEYS", function() { return KEYS; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "helpers", function() { return helpers; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _Timer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Timer */ "./node_modules/patternfly-react/dist/esm/common/Timer.js");
/* harmony import */ var _closestPolyfill__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./closestPolyfill */ "./node_modules/patternfly-react/dist/esm/common/closestPolyfill.js");
/* harmony import */ var _controlled__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./controlled */ "./node_modules/patternfly-react/dist/esm/common/controlled.js");
/* harmony import */ var _patternfly__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./patternfly */ "./node_modules/patternfly-react/dist/esm/common/patternfly.js");
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; };

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }







/** Equivalent to calling `this.someMethod = this.someMethod.bind(this)` for every method name in the methods array. */
var bindMethods = function bindMethods(context, methods) {
  // eslint-disable-next-line no-console
  console.warn('\n   bindMethods usage is deprecated in favor of class methods.\n   bindMethods will be removed in the next major release\n   ');
  methods.forEach(function (method) {
    context[method] = context[method].bind(context);
  });
};

/** Implementation of the debounce function */
var debounce = function debounce(func, wait) {
  var timeout = void 0;
  function innerFunc() {
    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    var context = this;
    clearTimeout(timeout);
    timeout = setTimeout(function () {
      return func.apply(context, args);
    }, wait);
  }
  return innerFunc;
};

/** Returns true if propName is a non-null, defined property of the props object (can be any object, not just React props). */
var propExists = function propExists(props, propName) {
  return props && props.hasOwnProperty(propName) && props[propName] != null;
};

/** Given two objects (props and state), returns the value of propName from props if present, or from state otherwise. */
var propOrState = function propOrState(props, state, propName) {
  return propExists(props, propName) ? props[propName] : state[propName];
};

/** Returns a subset of the given object including only the given keys, with values optionally replaced by a fn. */
var selectKeys = function selectKeys(obj, keys) {
  var fn = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : function (val) {
    return val;
  };
  return keys.reduce(function (values, key) {
    return _extends({}, values, _defineProperty({}, key, fn(obj[key])));
  }, {});
};

/** Returns a subset of the given object with a validator function applied to its keys. */
var filterKeys = function filterKeys(obj, validator) {
  return selectKeys(obj, Object.keys(obj).filter(validator));
};

/** Returns a subset of the given object with the given keys left out. */
var excludeKeys = function excludeKeys(obj, keys) {
  return filterKeys(obj, function (key) {
    return !keys.includes(key);
  });
};

/** Returns the given React children prop as a regular array of React nodes. */
var childrenToArray = function childrenToArray(children) {
  return children && react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.count(children) > 0 && react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.toArray(children);
};

/** Filters the given React children prop with the given validator function. Returns an array of nodes. */
var filterChildren = function filterChildren(children, validator) {
  var array = childrenToArray(children);
  return array && array.filter(validator);
};

/** Given a React children prop, finds the first child node to pass the validator function. */
var findChild = function findChild(children, validator) {
  var array = childrenToArray(children);
  return array && array.find(validator);
};

/** Returns true if there is at least one of propNames with a different value in newProps than in oldProps. */
var propsChanged = function propsChanged(propNames, oldProps, newProps) {
  return propNames.some(function (propName) {
    return oldProps[propName] !== newProps[propName];
  });
};

/** Returns true if the component has the desired displayName value */
var hasDisplayName = function hasDisplayName(component, displayName) {
  return component && component.type && component.type.displayName === displayName;
};

/** Returns an object with the same keys as the given one, but all null values. */
var nullValues = function nullValues(obj) {
  return selectKeys(obj, Object.keys(obj), function () {
    return null;
  });
};

var noop = Function.prototype;

var KEY_CODES = {
  TAB_KEY: 9,
  ENTER_KEY: 13,
  ESCAPE_KEY: 27,
  SHIFT: 16,
  A: 65,
  Z: 90,
  NUMPAD: { 0: 97 },
  F11: 122
};
var KEYS = {
  ENTER: 'Enter',
  CAPSLOCK: 'CapsLock',
  SPACE: ' ',
  ARROW_LEFT: 'ArrowLeft',
  ARROW_RIGHT: 'ArrowRight',
  ARROW_DOWN: 'ArrowDown',
  ARROW_UP: 'ArrowUp',
  HOME: 'Home',
  END: 'End'
};

var helpers = {
  Timer: _Timer__WEBPACK_IMPORTED_MODULE_1__["default"],
  closestPolyfill: _closestPolyfill__WEBPACK_IMPORTED_MODULE_2__["closest"],
  controlled: _controlled__WEBPACK_IMPORTED_MODULE_3__["default"],
  patternfly: _patternfly__WEBPACK_IMPORTED_MODULE_4__["patternfly"],
  c3ChartDefaults: _patternfly__WEBPACK_IMPORTED_MODULE_4__["c3ChartDefaults"],
  layout: _patternfly__WEBPACK_IMPORTED_MODULE_4__["layout"],
  debounce: debounce,
  propExists: propExists,
  propOrState: propOrState,
  selectKeys: selectKeys,
  filterKeys: filterKeys,
  excludeKeys: excludeKeys,
  childrenToArray: childrenToArray,
  filterChildren: filterChildren,
  findChild: findChild,
  propsChanged: propsChanged,
  hasDisplayName: hasDisplayName,
  nullValues: nullValues,
  noop: noop,
  KEY_CODES: KEY_CODES,
  KEYS: KEYS
};

/* harmony default export */ __webpack_exports__["default"] = (helpers);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/common/patternfly.js":
/*!*********************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/common/patternfly.js ***!
  \*********************************************************************/
/*! exports provided: patternfly, c3ChartDefaults, layout */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "patternfly", function() { return patternfly; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c3ChartDefaults", function() { return c3ChartDefaults; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "layout", function() { return layout; });
/* harmony import */ var patternfly_dist_js_patternfly_settings__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! patternfly/dist/js/patternfly-settings */ "./node_modules/patternfly/dist/js/patternfly-settings.js");
/* harmony import */ var patternfly_dist_js_patternfly_settings__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(patternfly_dist_js_patternfly_settings__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var patternfly_dist_js_patternfly_settings_charts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! patternfly/dist/js/patternfly-settings-charts */ "./node_modules/patternfly/dist/js/patternfly-settings-charts.js");
/* harmony import */ var patternfly_dist_js_patternfly_settings_charts__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(patternfly_dist_js_patternfly_settings_charts__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var breakjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! breakjs */ "./node_modules/breakjs/dist/break.js");
/* harmony import */ var breakjs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(breakjs__WEBPACK_IMPORTED_MODULE_2__);
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; };





var _window = window,
    patternfly = _window.patternfly;

var c3ChartDefaults = patternfly.c3ChartDefaults();

var mockLayout = {
  is: function is(layout) {
    return layout === 'desktop';
  },
  addChangeListener: function addChangeListener() {},
  removeChangeListener: function removeChangeListener() {}
};

var layout =  false ? undefined : breakjs__WEBPACK_IMPORTED_MODULE_2___default()(_extends({ mobile: 0 }, patternfly.pfBreakpoints));



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/AboutModal/AboutModal.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/AboutModal/AboutModal.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Modal */ "./node_modules/patternfly-react/dist/esm/components/Modal/index.js");
/* harmony import */ var _AboutModalVersions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./AboutModalVersions */ "./node_modules/patternfly-react/dist/esm/components/AboutModal/AboutModalVersions.js");
/* harmony import */ var _AboutModalVersionItem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./AboutModalVersionItem */ "./node_modules/patternfly-react/dist/esm/components/AboutModal/AboutModalVersionItem.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }









/**
 * AboutModal Component for PatternFly
 */
var AboutModal = function AboutModal(_ref) {
  var children = _ref.children,
      className = _ref.className,
      show = _ref.show,
      onHide = _ref.onHide,
      productTitle = _ref.productTitle,
      logo = _ref.logo,
      altLogo = _ref.altLogo,
      trademarkText = _ref.trademarkText,
      closeText = _ref.closeText,
      props = _objectWithoutProperties(_ref, ['children', 'className', 'show', 'onHide', 'productTitle', 'logo', 'altLogo', 'trademarkText', 'closeText']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _Modal__WEBPACK_IMPORTED_MODULE_2__["Modal"],
    _extends({ className: className, contentClassName: 'about-modal-pf', show: show, onHide: onHide }, props),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _Modal__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header,
      null,
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Modal__WEBPACK_IMPORTED_MODULE_2__["Modal"].CloseButton, { onClick: onHide, closeText: closeText })
    ),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _Modal__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body,
      null,
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'h1',
        null,
        productTitle
      ),
      children,
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'div',
        { className: 'trademark-pf' },
        trademarkText
      )
    ),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _Modal__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer,
      null,
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('img', { src: logo, alt: altLogo })
    )
  );
};

AboutModal.defaultProps = {
  closeText: 'Close'
};

AboutModal.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Flag to show the modal */
  show: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool.isRequired,
  /** Function to call when modal is closed */
  onHide: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func.isRequired,
  /** Text or Element to show for the product title */
  productTitle: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Image Source for the Product logo */
  logo: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Alternate text if invalid logo */
  altLogo: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Trademark information text */
  trademarkText: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Alternate text for close button for screen readers (default 'Close') */
  closeText: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
AboutModal.defaultProps = {
  children: null,
  className: '',
  productTitle: null,
  logo: '',
  altLogo: '',
  trademarkText: ''
};

AboutModal.Versions = _AboutModalVersions__WEBPACK_IMPORTED_MODULE_3__["default"];
AboutModal.VersionItem = _AboutModalVersionItem__WEBPACK_IMPORTED_MODULE_4__["default"];

/* harmony default export */ __webpack_exports__["default"] = (AboutModal);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/AboutModal/AboutModalVersionItem.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/AboutModal/AboutModalVersionItem.js ***!
  \***********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }




var AboutModalVersionItem = function AboutModalVersionItem(_ref) {
  var className = _ref.className,
      label = _ref.label,
      versionText = _ref.versionText,
      props = _objectWithoutProperties(_ref, ['className', 'label', 'versionText']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'li',
    _extends({ className: className }, props),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'strong',
      null,
      label
    ),
    ' ',
    versionText
  );
};

AboutModalVersionItem.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Label for the version */
  label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,
  /** Text for the version */
  versionText: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired
};

AboutModalVersionItem.defaultProps = {
  className: ''
};

/* harmony default export */ __webpack_exports__["default"] = (AboutModalVersionItem);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/AboutModal/AboutModalVersions.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/AboutModal/AboutModalVersions.js ***!
  \********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var AboutModalVersions = function AboutModalVersions(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('product-versions-pf', className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'div',
    _extends({ className: classes }, props),
    react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
      'ul',
      { className: 'list-unstyled' },
      children
    )
  );
};

AboutModalVersions.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};

AboutModalVersions.defaultProps = {
  children: null,
  className: ''
};

/* harmony default export */ __webpack_exports__["default"] = (AboutModalVersions);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/AboutModal/index.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/AboutModal/index.js ***!
  \*******************************************************************************/
/*! exports provided: AboutModal, AboutModalVersions, AboutModalVersionItem */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _AboutModal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AboutModal */ "./node_modules/patternfly-react/dist/esm/components/AboutModal/AboutModal.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AboutModal", function() { return _AboutModal__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _AboutModalVersions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AboutModalVersions */ "./node_modules/patternfly-react/dist/esm/components/AboutModal/AboutModalVersions.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AboutModalVersions", function() { return _AboutModalVersions__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _AboutModalVersionItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AboutModalVersionItem */ "./node_modules/patternfly-react/dist/esm/components/AboutModal/AboutModalVersionItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AboutModalVersionItem", function() { return _AboutModalVersionItem__WEBPACK_IMPORTED_MODULE_2__["default"]; });







/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Alert/Alert.js":
/*!**************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Alert/Alert.js ***!
  \**************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./helpers */ "./node_modules/patternfly-react/dist/esm/components/Alert/helpers.js");
/* harmony import */ var _AlertConstants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./AlertConstants */ "./node_modules/patternfly-react/dist/esm/components/Alert/AlertConstants.js");
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; };

function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }









/**
 * Alert Component for Patternfly React
 */
var Alert = function Alert(_ref) {
  var children = _ref.children,
      className = _ref.className,
      onDismiss = _ref.onDismiss,
      type = _ref.type,
      props = _objectWithoutProperties(_ref, ['children', 'className', 'onDismiss', 'type']);

  Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["warnIfDeprecatedType"])(type);

  var alertClass = classnames__WEBPACK_IMPORTED_MODULE_0___default()('alert', className, Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["getClassName"])(type), {
    'alert-dismissable': onDismiss
  });

  var iconName = Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["getIconName"])(type);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'div',
    _extends({ className: alertClass }, props),
    onDismiss && react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
      _Button__WEBPACK_IMPORTED_MODULE_3__["Button"],
      { bsClass: 'close', 'aria-hidden': 'true', onClick: onDismiss },
      react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_4__["Icon"], { type: 'pf', name: 'close' })
    ),
    react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_4__["Icon"], { type: 'pf', name: iconName }),
    children
  );
};
Alert.propTypes = {
  /** additional alert classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** callback when alert is dismissed  */
  onDismiss: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  /** the type of alert  */
  type: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf([].concat(_toConsumableArray(_AlertConstants__WEBPACK_IMPORTED_MODULE_6__["ALERT_TYPES"]), _toConsumableArray(_AlertConstants__WEBPACK_IMPORTED_MODULE_6__["DEPRECATED_ALERT_TYPES"]))),
  /** children nodes  */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node
};
Alert.defaultProps = {
  className: '',
  onDismiss: null, // we do not want to default noop b/c of conditional dismiss button
  type: _AlertConstants__WEBPACK_IMPORTED_MODULE_6__["ALERT_TYPE_ERROR"],
  children: null
};
Alert.ALERT_TYPES = _AlertConstants__WEBPACK_IMPORTED_MODULE_6__["ALERT_TYPES"];

/* harmony default export */ __webpack_exports__["default"] = (Alert);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Alert/AlertConstants.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Alert/AlertConstants.js ***!
  \***********************************************************************************/
/*! exports provided: ALERT_TYPE_ERROR, ALERT_TYPE_WARNING, ALERT_TYPE_SUCCESS, ALERT_TYPE_INFO, ALERT_TYPE_DANGER, ALERT_TYPES, DEPRECATED_ALERT_TYPES */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ALERT_TYPE_ERROR", function() { return ALERT_TYPE_ERROR; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ALERT_TYPE_WARNING", function() { return ALERT_TYPE_WARNING; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ALERT_TYPE_SUCCESS", function() { return ALERT_TYPE_SUCCESS; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ALERT_TYPE_INFO", function() { return ALERT_TYPE_INFO; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ALERT_TYPE_DANGER", function() { return ALERT_TYPE_DANGER; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ALERT_TYPES", function() { return ALERT_TYPES; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEPRECATED_ALERT_TYPES", function() { return DEPRECATED_ALERT_TYPES; });
var ALERT_TYPE_ERROR = 'error';
var ALERT_TYPE_WARNING = 'warning';
var ALERT_TYPE_SUCCESS = 'success';
var ALERT_TYPE_INFO = 'info';
var ALERT_TYPE_DANGER = 'danger'; // deprecated!!!

var ALERT_TYPES = [ALERT_TYPE_ERROR, ALERT_TYPE_WARNING, ALERT_TYPE_SUCCESS, ALERT_TYPE_INFO];

var DEPRECATED_ALERT_TYPES = [ALERT_TYPE_DANGER];

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Alert/helpers.js":
/*!****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Alert/helpers.js ***!
  \****************************************************************************/
/*! exports provided: warnIfDeprecatedType, getIconName, getClassName */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "warnIfDeprecatedType", function() { return warnIfDeprecatedType; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getIconName", function() { return getIconName; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getClassName", function() { return getClassName; });
/* harmony import */ var _AlertConstants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AlertConstants */ "./node_modules/patternfly-react/dist/esm/components/Alert/AlertConstants.js");


var warnIfDeprecatedType = function warnIfDeprecatedType(type) {
  if (type === _AlertConstants__WEBPACK_IMPORTED_MODULE_0__["ALERT_TYPE_DANGER"]) {
    // eslint-disable-next-line no-console
    console.warn('\n      Warning: Deprecated Alert.type=\'' + _AlertConstants__WEBPACK_IMPORTED_MODULE_0__["ALERT_TYPE_DANGER"] + '\'.\n      Please migrate to Alert.type=\'' + _AlertConstants__WEBPACK_IMPORTED_MODULE_0__["ALERT_TYPE_ERROR"] + '\'\n    ');
  }
};

var getIconName = function getIconName(type) {
  switch (type) {
    case _AlertConstants__WEBPACK_IMPORTED_MODULE_0__["ALERT_TYPE_DANGER"]:
    case _AlertConstants__WEBPACK_IMPORTED_MODULE_0__["ALERT_TYPE_ERROR"]:
      return 'error-circle-o';
    case _AlertConstants__WEBPACK_IMPORTED_MODULE_0__["ALERT_TYPE_WARNING"]:
      return 'warning-triangle-o';
    case _AlertConstants__WEBPACK_IMPORTED_MODULE_0__["ALERT_TYPE_SUCCESS"]:
      return 'ok';
    case _AlertConstants__WEBPACK_IMPORTED_MODULE_0__["ALERT_TYPE_INFO"]:
      return 'info';
    default:
      throw new Error('Unsupported alert type=' + type);
  }
};

var getClassName = function getClassName(type) {
  switch (type) {
    case _AlertConstants__WEBPACK_IMPORTED_MODULE_0__["ALERT_TYPE_DANGER"]:
    case _AlertConstants__WEBPACK_IMPORTED_MODULE_0__["ALERT_TYPE_ERROR"]:
      return 'alert-danger';
    case _AlertConstants__WEBPACK_IMPORTED_MODULE_0__["ALERT_TYPE_WARNING"]:
      return 'alert-warning';
    case _AlertConstants__WEBPACK_IMPORTED_MODULE_0__["ALERT_TYPE_SUCCESS"]:
      return 'alert-success';
    case _AlertConstants__WEBPACK_IMPORTED_MODULE_0__["ALERT_TYPE_INFO"]:
      return 'alert-info';
    default:
      throw new Error('Unsupported alert type=' + type);
  }
};

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Alert/index.js":
/*!**************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Alert/index.js ***!
  \**************************************************************************/
/*! exports provided: Alert */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Alert__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Alert */ "./node_modules/patternfly-react/dist/esm/components/Alert/Alert.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Alert", function() { return _Alert__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ApplicationLauncher/ApplicationLauncher.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ApplicationLauncher/ApplicationLauncher.js ***!
  \******************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Dropdown */ "./node_modules/patternfly-react/dist/esm/components/Dropdown/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _ApplicationLauncherToggle__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ApplicationLauncherToggle */ "./node_modules/patternfly-react/dist/esm/components/ApplicationLauncher/ApplicationLauncherToggle.js");
/* harmony import */ var _ApplicationLauncherItem__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ApplicationLauncherItem */ "./node_modules/patternfly-react/dist/esm/components/ApplicationLauncher/ApplicationLauncherItem.js");
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }









var ApplicationLauncher = function ApplicationLauncher(_ref) {
  var open = _ref.open,
      grid = _ref.grid,
      tooltip = _ref.tooltip,
      tooltipPlacement = _ref.tooltipPlacement,
      children = _ref.children,
      toggleLauncher = _ref.toggleLauncher,
      className = _ref.className,
      propTypes = _objectWithoutProperties(_ref, ['open', 'grid', 'tooltip', 'tooltipPlacement', 'children', 'toggleLauncher', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('applauncher-pf dropdown', {
    'applauncher-pf-block-list': grid
  }, { open: open });
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'li',
    { className: classes },
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ApplicationLauncherToggle__WEBPACK_IMPORTED_MODULE_5__["default"], {
      tooltip: tooltip,
      tooltipPlacement: tooltipPlacement,
      onClick: function onClick() {
        return toggleLauncher();
      },
      open: open
    }),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _Dropdown__WEBPACK_IMPORTED_MODULE_3__["Dropdown"].Menu,
      { className: 'dropdown-menu-right' },
      children
    )
  );
};

ApplicationLauncher.propTypes = {
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Children Node */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node.isRequired,
  /** Toggle Tooltip */
  tooltip: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** tooltipPlacement */
  tooltipPlacement: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Application Launcher Type (Default List) */
  grid: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** open bool */
  open: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Toggle launcher func */
  toggleLauncher: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
ApplicationLauncher.defaultProps = {
  className: '',
  tooltip: '',
  tooltipPlacement: 'left',
  toggleLauncher: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  grid: false,
  open: false
};

ApplicationLauncher.Toggle = _ApplicationLauncherToggle__WEBPACK_IMPORTED_MODULE_5__["default"];
ApplicationLauncher.Item = _ApplicationLauncherItem__WEBPACK_IMPORTED_MODULE_6__["default"];

/* harmony default export */ __webpack_exports__["default"] = (ApplicationLauncher);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ApplicationLauncher/ApplicationLauncherItem.js":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ApplicationLauncher/ApplicationLauncherItem.js ***!
  \**********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Tooltip */ "./node_modules/patternfly-react/dist/esm/components/Tooltip/index.js");
/* harmony import */ var _OverlayTrigger__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../OverlayTrigger */ "./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/index.js");
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }








var ApplicationLauncherItem = function ApplicationLauncherItem(_ref) {
  var _onClick = _ref.onClick,
      tooltip = _ref.tooltip,
      tooltipPlacement = _ref.tooltipPlacement,
      title = _ref.title,
      icon = _ref.icon,
      noIcons = _ref.noIcons,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['onClick', 'tooltip', 'tooltipPlacement', 'title', 'icon', 'noIcons', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('applauncher-pf-item', className);

  if (tooltip !== null) {
    return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
      _OverlayTrigger__WEBPACK_IMPORTED_MODULE_4__["OverlayTrigger"],
      {
        overlay: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
          _Tooltip__WEBPACK_IMPORTED_MODULE_3__["Tooltip"],
          { id: title },
          tooltip
        ),
        placement: tooltipPlacement,
        trigger: ['hover', 'focus'],
        rootClose: false
      },
      react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
        'li',
        { className: classes, role: 'presentation' },
        react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
          'a',
          { className: 'applauncher-pf-link', href: '#', onClick: function onClick(e) {
              return _onClick(e);
            }, role: 'menuitem' },
          !noIcons && react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_5__["Icon"], { type: 'pf', name: icon, className: 'applauncher-pf-link-icon' }),
          react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
            'span',
            { className: 'applauncher-pf-link-title' },
            title
          )
        )
      )
    );
  }
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'li',
    { className: classes, role: 'presentation' },
    react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
      'a',
      { className: 'applauncher-pf-link', href: '#', onClick: function onClick(e) {
          return _onClick(e);
        }, role: 'menuitem' },
      !noIcons && react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_5__["Icon"], { type: 'pf', name: icon, className: 'applauncher-pf-link-icon' }),
      react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
        'span',
        { className: 'applauncher-pf-link-title' },
        title
      )
    )
  );
};
ApplicationLauncherItem.propTypes = {
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** onClick func */
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  /** Title String */
  title: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string.isRequired,
  /** Icon Type */
  icon: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string.isRequired,
  /** App Tooltip */
  tooltip: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** Tooltip Placement */
  tooltipPlacement: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** No Icons Bool */
  noIcons: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
ApplicationLauncherItem.defaultProps = {
  className: '',
  onClick: null,
  noIcons: false,
  tooltipPlacement: 'left',
  tooltip: null
};
/* harmony default export */ __webpack_exports__["default"] = (ApplicationLauncherItem);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ApplicationLauncher/ApplicationLauncherToggle.js":
/*!************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ApplicationLauncher/ApplicationLauncherToggle.js ***!
  \************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _OverlayTrigger__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../OverlayTrigger */ "./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/index.js");
/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Tooltip */ "./node_modules/patternfly-react/dist/esm/components/Tooltip/index.js");
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");







var ApplicationLauncherToggle = function ApplicationLauncherToggle(_ref) {
  var open = _ref.open,
      tooltip = _ref.tooltip,
      onClick = _ref.onClick,
      tooltipPlacement = _ref.tooltipPlacement;

  if (tooltip) return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _OverlayTrigger__WEBPACK_IMPORTED_MODULE_2__["OverlayTrigger"],
    {
      placement: tooltipPlacement,
      id: 'applauncher-pf-block-list',
      overlay: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _Tooltip__WEBPACK_IMPORTED_MODULE_3__["Tooltip"],
        { id: tooltip },
        tooltip
      )
    },
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _Button__WEBPACK_IMPORTED_MODULE_5__["Button"],
      { onClick: onClick, bsStyle: 'link', className: 'nav-item-iconic dropdown-toggle', 'aria-expanded': open },
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_4__["Icon"], { name: 'th applauncher-pf-icon' })
    )
  );
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _Button__WEBPACK_IMPORTED_MODULE_5__["Button"],
    { onClick: onClick, bsStyle: 'link', className: 'nav-item-iconic dropdown-toggle', 'aria-expanded': open },
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_4__["Icon"], { name: 'th applauncher-pf-icon' }),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'span',
      { className: 'dropdown-title' },
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'span',
        { className: 'applauncher-pf-title' },
        'Application Launcher',
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('span', { className: 'caret', 'aria-hidden': 'true' })
      )
    )
  );
};
ApplicationLauncherToggle.propTypes = {
  /** onClick func */
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** tooltipPlacement */
  tooltipPlacement: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Toggle Tooltip */
  tooltip: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** is Open bool */
  open: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool.isRequired
};
ApplicationLauncherToggle.defaultProps = {
  onClick: null,
  tooltipPlacement: 'bottom',
  tooltip: ''
};

/* harmony default export */ __webpack_exports__["default"] = (ApplicationLauncherToggle);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ApplicationLauncher/index.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ApplicationLauncher/index.js ***!
  \****************************************************************************************/
/*! exports provided: ApplicationLauncher, ApplicationLauncherItem, ApplicationLauncherToggle */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _ApplicationLauncher__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ApplicationLauncher */ "./node_modules/patternfly-react/dist/esm/components/ApplicationLauncher/ApplicationLauncher.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApplicationLauncher", function() { return _ApplicationLauncher__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _ApplicationLauncherToggle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ApplicationLauncherToggle */ "./node_modules/patternfly-react/dist/esm/components/ApplicationLauncher/ApplicationLauncherToggle.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApplicationLauncherToggle", function() { return _ApplicationLauncherToggle__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _ApplicationLauncherItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ApplicationLauncherItem */ "./node_modules/patternfly-react/dist/esm/components/ApplicationLauncher/ApplicationLauncherItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApplicationLauncherItem", function() { return _ApplicationLauncherItem__WEBPACK_IMPORTED_MODULE_2__["default"]; });







/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Badge/Badge.js":
/*!**************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Badge/Badge.js ***!
  \**************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Badge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Badge */ "./node_modules/react-bootstrap/es/Badge.js");



/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Badge__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Badge/index.js":
/*!**************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Badge/index.js ***!
  \**************************************************************************/
/*! exports provided: Badge */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Badge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Badge */ "./node_modules/patternfly-react/dist/esm/components/Badge/Badge.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Badge", function() { return _Badge__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Breadcrumb/Breadcrumb.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Breadcrumb/Breadcrumb.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react_bootstrap_es_Breadcrumb__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-bootstrap/es/Breadcrumb */ "./node_modules/react-bootstrap/es/Breadcrumb.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }







var Breadcrumb = function Breadcrumb(_ref) {
  var title = _ref.title,
      props = _objectWithoutProperties(_ref, ['title']);

  var breadcrumbClass = classnames__WEBPACK_IMPORTED_MODULE_1___default()({
    'breadcrumbs-pf-title': title
  });
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_es_Breadcrumb__WEBPACK_IMPORTED_MODULE_3__["default"], _extends({ className: breadcrumbClass }, props));
};

Breadcrumb.propTypes = _extends({}, react_bootstrap_es_Breadcrumb__WEBPACK_IMPORTED_MODULE_3__["default"].propTypes, {
  title: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
});

Breadcrumb.defaultProps = {
  title: false
};

Breadcrumb.Item = react_bootstrap_es_Breadcrumb__WEBPACK_IMPORTED_MODULE_3__["default"].Item;

/* harmony default export */ __webpack_exports__["default"] = (Breadcrumb);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Breadcrumb/index.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Breadcrumb/index.js ***!
  \*******************************************************************************/
/*! exports provided: Breadcrumb */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Breadcrumb__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Breadcrumb */ "./node_modules/patternfly-react/dist/esm/components/Breadcrumb/Breadcrumb.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Breadcrumb", function() { return _Breadcrumb__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Button/Button.js":
/*!****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Button/Button.js ***!
  \****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Button__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Button */ "./node_modules/react-bootstrap/es/Button.js");
/* harmony import */ var _ButtonGroup__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ButtonGroup */ "./node_modules/patternfly-react/dist/esm/components/Button/ButtonGroup.js");
/* harmony import */ var _DropdownButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DropdownButton */ "./node_modules/patternfly-react/dist/esm/components/Button/DropdownButton.js");
/* harmony import */ var _SplitButton__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SplitButton */ "./node_modules/patternfly-react/dist/esm/components/Button/SplitButton.js");






react_bootstrap_es_Button__WEBPACK_IMPORTED_MODULE_0__["default"].Dropdown = _DropdownButton__WEBPACK_IMPORTED_MODULE_2__["default"];
react_bootstrap_es_Button__WEBPACK_IMPORTED_MODULE_0__["default"].Group = _ButtonGroup__WEBPACK_IMPORTED_MODULE_1__["default"];
react_bootstrap_es_Button__WEBPACK_IMPORTED_MODULE_0__["default"].Split = _SplitButton__WEBPACK_IMPORTED_MODULE_3__["default"];

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Button__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Button/ButtonConstants.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Button/ButtonConstants.js ***!
  \*************************************************************************************/
/*! exports provided: BUTTON_BS_STYLES */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BUTTON_BS_STYLES", function() { return BUTTON_BS_STYLES; });
var BUTTON_BS_STYLES = ['default', 'primary', 'success', 'warning', 'danger', 'info', 'link'];

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Button/ButtonGroup.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Button/ButtonGroup.js ***!
  \*********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_ButtonGroup__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/ButtonGroup */ "./node_modules/react-bootstrap/es/ButtonGroup.js");



/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_ButtonGroup__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Button/DropdownButton.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Button/DropdownButton.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var react_bootstrap_es_DropdownButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-bootstrap/es/DropdownButton */ "./node_modules/react-bootstrap/es/DropdownButton.js");
/* harmony import */ var _ButtonConstants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ButtonConstants */ "./node_modules/patternfly-react/dist/esm/components/Button/ButtonConstants.js");
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; };







var DropdownButton = function DropdownButton(props) {
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_es_DropdownButton__WEBPACK_IMPORTED_MODULE_2__["default"], props);
};

DropdownButton.propTypes = _extends({}, react_bootstrap_es_DropdownButton__WEBPACK_IMPORTED_MODULE_2__["default"].propTypes, {
  // eslint-disable-next-line react/require-default-props
  bsStyle: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(_ButtonConstants__WEBPACK_IMPORTED_MODULE_3__["BUTTON_BS_STYLES"])
});

DropdownButton.BUTTON_BS_STYLES = _ButtonConstants__WEBPACK_IMPORTED_MODULE_3__["BUTTON_BS_STYLES"];

/* harmony default export */ __webpack_exports__["default"] = (DropdownButton);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Button/SplitButton.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Button/SplitButton.js ***!
  \*********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var react_bootstrap_es_SplitButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-bootstrap/es/SplitButton */ "./node_modules/react-bootstrap/es/SplitButton.js");
/* harmony import */ var _ButtonConstants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ButtonConstants */ "./node_modules/patternfly-react/dist/esm/components/Button/ButtonConstants.js");
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; };







var SplitButton = function SplitButton(props) {
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_es_SplitButton__WEBPACK_IMPORTED_MODULE_2__["default"], props);
};

SplitButton.propTypes = _extends({}, react_bootstrap_es_SplitButton__WEBPACK_IMPORTED_MODULE_2__["default"].propTypes, {
  // eslint-disable-next-line react/require-default-props
  bsStyle: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(_ButtonConstants__WEBPACK_IMPORTED_MODULE_3__["BUTTON_BS_STYLES"])
});

SplitButton.BUTTON_BS_STYLES = _ButtonConstants__WEBPACK_IMPORTED_MODULE_3__["BUTTON_BS_STYLES"];

/* harmony default export */ __webpack_exports__["default"] = (SplitButton);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Button/index.js":
/*!***************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Button/index.js ***!
  \***************************************************************************/
/*! exports provided: Button, ButtonGroup, DropdownButton, SplitButton */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Button */ "./node_modules/patternfly-react/dist/esm/components/Button/Button.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Button", function() { return _Button__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _ButtonGroup__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ButtonGroup */ "./node_modules/patternfly-react/dist/esm/components/Button/ButtonGroup.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ButtonGroup", function() { return _ButtonGroup__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _DropdownButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DropdownButton */ "./node_modules/patternfly-react/dist/esm/components/Button/DropdownButton.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownButton", function() { return _DropdownButton__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _SplitButton__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SplitButton */ "./node_modules/patternfly-react/dist/esm/components/Button/SplitButton.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SplitButton", function() { return _SplitButton__WEBPACK_IMPORTED_MODULE_3__["default"]; });






/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/AggregateStatusCard/AggregateStatusCount.js":
/*!*************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/AggregateStatusCard/AggregateStatusCount.js ***!
  \*************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var AggregateStatusCount = function AggregateStatusCount(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('card-pf-aggregate-status-count', className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'span',
    _extends({ className: classes }, props),
    children
  );
};
AggregateStatusCount.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
/* harmony default export */ __webpack_exports__["default"] = (AggregateStatusCount);

AggregateStatusCount.defaultProps = {
  className: ''
};

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/AggregateStatusCard/AggregateStatusNotification.js":
/*!********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/AggregateStatusCard/AggregateStatusNotification.js ***!
  \********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var AggregateStatusNotification = function AggregateStatusNotification(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('card-pf-aggregate-status-notification', className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'span',
    _extends({ className: classes }, props),
    children
  );
};
AggregateStatusNotification.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
AggregateStatusNotification.defaultProps = {
  className: ''
};

/* harmony default export */ __webpack_exports__["default"] = (AggregateStatusNotification);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/AggregateStatusCard/AggregateStatusNotifications.js":
/*!*********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/AggregateStatusCard/AggregateStatusNotifications.js ***!
  \*********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var AggregateStatusNotifications = function AggregateStatusNotifications(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('card-pf-aggregate-status-notifications', className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'p',
    _extends({ className: classes }, props),
    children
  );
};
AggregateStatusNotifications.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
/* harmony default export */ __webpack_exports__["default"] = (AggregateStatusNotifications);

AggregateStatusNotifications.defaultProps = {
  className: ''
};

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/AggregateStatusCard/index.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/AggregateStatusCard/index.js ***!
  \**********************************************************************************************/
/*! exports provided: AggregateStatusCount, AggregateStatusNotification, AggregateStatusNotifications */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _AggregateStatusCount__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AggregateStatusCount */ "./node_modules/patternfly-react/dist/esm/components/Cards/AggregateStatusCard/AggregateStatusCount.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AggregateStatusCount", function() { return _AggregateStatusCount__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _AggregateStatusNotification__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AggregateStatusNotification */ "./node_modules/patternfly-react/dist/esm/components/Cards/AggregateStatusCard/AggregateStatusNotification.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AggregateStatusNotification", function() { return _AggregateStatusNotification__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _AggregateStatusNotifications__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AggregateStatusNotifications */ "./node_modules/patternfly-react/dist/esm/components/Cards/AggregateStatusCard/AggregateStatusNotifications.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AggregateStatusNotifications", function() { return _AggregateStatusNotifications__WEBPACK_IMPORTED_MODULE_2__["default"]; });







/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/Card.js":
/*!*************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/Card.js ***!
  \*************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _CardTitle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./CardTitle */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardTitle.js");
/* harmony import */ var _CardBody__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./CardBody */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardBody.js");
/* harmony import */ var _CardHeading__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./CardHeading */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardHeading.js");
/* harmony import */ var _CardFooter__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./CardFooter */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardFooter.js");
/* harmony import */ var _CardLink__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./CardLink */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardLink.js");
/* harmony import */ var _CardGrid__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./CardGrid */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardGrid.js");
/* harmony import */ var _CardDropdownButton__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./CardDropdownButton */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardDropdownButton.js");
/* harmony import */ var _CardHeightMatching__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./CardHeightMatching */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardHeightMatching.js");
/* harmony import */ var _UtilizationTrendCard__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./UtilizationTrendCard */ "./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/index.js");
/* harmony import */ var _AggregateStatusCard__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./AggregateStatusCard */ "./node_modules/patternfly-react/dist/esm/components/Cards/AggregateStatusCard/index.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

















/**
 * Card Component for PatternFly React
 */
var Card = function Card(_ref) {
  var children = _ref.children,
      className = _ref.className,
      accented = _ref.accented,
      aggregated = _ref.aggregated,
      aggregatedMini = _ref.aggregatedMini,
      matchHeight = _ref.matchHeight,
      cardRef = _ref.cardRef,
      props = _objectWithoutProperties(_ref, ['children', 'className', 'accented', 'aggregated', 'aggregatedMini', 'matchHeight', 'cardRef']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('card-pf', { 'card-pf-accented': accented }, { 'card-pf-aggregate-status': aggregated }, {
    'card-pf-aggregate-status card-pf-aggregate-status-mini': aggregatedMini
  }, { 'card-pf-match-height': matchHeight }, className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'div',
    _extends({ className: classes, ref: cardRef }, props),
    children
  );
};

Card.propTypes = {
  /** Child nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** Top Card Accent Bool */
  accented: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  /** Aggregate Card Bool */
  aggregated: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  /** Aggregate Mini Card Bool */
  aggregatedMini: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  /** Match Height Bool */
  matchHeight: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  /** Reference prop */
  cardRef: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func
};

Card.defaultProps = {
  className: '',
  accented: false,
  aggregated: false,
  aggregatedMini: false,
  matchHeight: false,
  cardRef: null
};

Card.Title = _CardTitle__WEBPACK_IMPORTED_MODULE_3__["default"];
Card.Body = _CardBody__WEBPACK_IMPORTED_MODULE_4__["default"];
Card.Heading = _CardHeading__WEBPACK_IMPORTED_MODULE_5__["default"];
Card.Footer = _CardFooter__WEBPACK_IMPORTED_MODULE_6__["default"];
Card.Link = _CardLink__WEBPACK_IMPORTED_MODULE_7__["default"];
Card.Grid = _CardGrid__WEBPACK_IMPORTED_MODULE_8__["default"];
Card.DropdownButton = _CardDropdownButton__WEBPACK_IMPORTED_MODULE_9__["default"];
Card.HeightMatching = _CardHeightMatching__WEBPACK_IMPORTED_MODULE_10__["default"];
Card.UtilizationCard = _UtilizationTrendCard__WEBPACK_IMPORTED_MODULE_11__["UtilizationCard"];
Card.UtilizationCardDetails = _UtilizationTrendCard__WEBPACK_IMPORTED_MODULE_11__["UtilizationCardDetails"];
Card.UtilizationCardDetailsCount = _UtilizationTrendCard__WEBPACK_IMPORTED_MODULE_11__["UtilizationCardDetailsCount"];
Card.UtilizationCardDetailsDesc = _UtilizationTrendCard__WEBPACK_IMPORTED_MODULE_11__["UtilizationCardDetailsDesc"];
Card.UtilizationCardDetailsLine1 = _UtilizationTrendCard__WEBPACK_IMPORTED_MODULE_11__["UtilizationCardDetailsLine1"];
Card.UtilizationCardDetailsLine2 = _UtilizationTrendCard__WEBPACK_IMPORTED_MODULE_11__["UtilizationCardDetailsLine2"];
Card.AggregateStatusCount = _AggregateStatusCard__WEBPACK_IMPORTED_MODULE_12__["AggregateStatusCount"];
Card.AggregateStatusNotifications = _AggregateStatusCard__WEBPACK_IMPORTED_MODULE_12__["AggregateStatusNotifications"];
Card.AggregateStatusNotification = _AggregateStatusCard__WEBPACK_IMPORTED_MODULE_12__["AggregateStatusNotification"];

/* harmony default export */ __webpack_exports__["default"] = (Card);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/CardBody.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/CardBody.js ***!
  \*****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var CardBody = function CardBody(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('card-pf-body', className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'div',
    _extends({ className: classes }, props),
    children
  );
};
CardBody.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
CardBody.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (CardBody);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/CardDropdownButton.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/CardDropdownButton.js ***!
  \***************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Dropdown */ "./node_modules/patternfly-react/dist/esm/components/Dropdown/index.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }







var CardDropdownButton = function CardDropdownButton(_ref) {
  var id = _ref.id,
      children = _ref.children,
      title = _ref.title,
      className = _ref.className,
      pullRight = _ref.pullRight,
      props = _objectWithoutProperties(_ref, ['id', 'children', 'title', 'className', 'pullRight']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('card-pf-time-frame-filter', className);
  var CustomButtonGroup = function CustomButtonGroup(customGroup) {
    return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_4__["ButtonGroup"], _extends({}, customGroup, { bsClass: ' ' }));
  };
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    _Dropdown__WEBPACK_IMPORTED_MODULE_3__["Dropdown"],
    _extends({ className: classes, id: id, pullRight: pullRight, componentClass: CustomButtonGroup }, props),
    react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
      _Dropdown__WEBPACK_IMPORTED_MODULE_3__["Dropdown"].Toggle,
      null,
      title
    ),
    react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
      _Dropdown__WEBPACK_IMPORTED_MODULE_3__["Dropdown"].Menu,
      null,
      children
    )
  );
};
CardDropdownButton.propTypes = {
  /** dropdown button id */
  id: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number]),
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Dropdown title */
  title: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** menu right aligned */
  pullRight: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
CardDropdownButton.defaultProps = {
  pullRight: true,
  id: null,
  title: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (CardDropdownButton);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/CardFooter.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/CardFooter.js ***!
  \*******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var CardFooter = function CardFooter(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('card-pf-footer', className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'div',
    _extends({ className: classes }, props),
    children
  );
};
CardFooter.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
CardFooter.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (CardFooter);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/CardGrid.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/CardGrid.js ***!
  \*****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _CardHeightMatching__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./CardHeightMatching */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardHeightMatching.js");
/* harmony import */ var _Grid__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Grid */ "./node_modules/patternfly-react/dist/esm/components/Grid/index.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }







var CardGrid = function CardGrid(_ref) {
  var matchHeight = _ref.matchHeight,
      children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['matchHeight', 'children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('container-cards-pf', className);
  var cardSelector = ['.card-pf-match-height'];

  if (matchHeight) {
    return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
      _Grid__WEBPACK_IMPORTED_MODULE_4__["Grid"],
      _extends({ className: classes }, props),
      react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
        _CardHeightMatching__WEBPACK_IMPORTED_MODULE_3__["default"],
        { selector: cardSelector },
        children
      )
    );
  }
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    _Grid__WEBPACK_IMPORTED_MODULE_4__["Grid"],
    _extends({ className: classes }, props),
    children
  );
};

CardGrid.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** Match Height bool */
  matchHeight: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
CardGrid.defaultProps = {
  className: '',
  matchHeight: false
};

CardGrid.Row = _Grid__WEBPACK_IMPORTED_MODULE_4__["Row"];
CardGrid.Col = _Grid__WEBPACK_IMPORTED_MODULE_4__["Col"];
CardGrid.Clearfix = _Grid__WEBPACK_IMPORTED_MODULE_4__["Clearfix"];

/* harmony default export */ __webpack_exports__["default"] = (CardGrid);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/CardHeading.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/CardHeading.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var CardHeading = function CardHeading(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('card-pf-heading', className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'div',
    _extends({ className: classes }, props),
    children
  );
};
CardHeading.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
CardHeading.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (CardHeading);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/CardHeightMatching.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/CardHeightMatching.js ***!
  \***************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var css_element_queries__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! css-element-queries */ "./node_modules/css-element-queries/index.js");
/* harmony import */ var css_element_queries__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(css_element_queries__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; }; }();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }






var CardHeightMatching = function (_React$Component) {
  _inherits(CardHeightMatching, _React$Component);

  function CardHeightMatching(props) {
    _classCallCheck(this, CardHeightMatching);

    var _this = _possibleConstructorReturn(this, (CardHeightMatching.__proto__ || Object.getPrototypeOf(CardHeightMatching)).call(this, props));

    _this._selectors = Array.isArray(props.selector) ? props.selector : [props.selector];
    _this._resizeSensors = [];
    return _this;
  }

  _createClass(CardHeightMatching, [{
    key: 'componentDidMount',
    value: function componentDidMount() {
      // schedule the initial height matching
      this._matchHeights();
    }
  }, {
    key: 'componentDidUpdate',
    value: function componentDidUpdate() {
      var _this2 = this;

      // if the container got updated, let's match heights again
      setTimeout(function () {
        _this2._matchHeights();
      }, 0);
    }
  }, {
    key: 'componentWillUnmount',
    value: function componentWillUnmount() {
      this._removeSensors();
    }
  }, {
    key: '_addSensors',
    value: function _addSensors() {
      var _this3 = this;

      // setup the event listening on '_container' for our height matching selectors
      this._selectors.forEach(function (selector) {
        var elements = _this3._container.querySelectorAll(selector);
        _this3._resizeSensors.push(new css_element_queries__WEBPACK_IMPORTED_MODULE_2__["ResizeSensor"](elements, Object(_common_helpers__WEBPACK_IMPORTED_MODULE_3__["debounce"])(function () {
          return _this3._matchHeights([selector]);
        }, 200)));
      });
    }
  }, {
    key: '_removeSensors',
    value: function _removeSensors() {
      this._resizeSensors.forEach(function (sensor) {
        sensor.detach();
      });
      this._resizeSensors = [];
    }
  }, {
    key: '_matchHeights',
    value: function _matchHeights() {
      var _this4 = this;

      var selectors = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this._selectors;

      if (!this._container) {
        return;
      }

      // Remove any existing sensors so they do not detect changes made here
      this._removeSensors();

      var arrayMap = function arrayMap(elements) {
        return Array.prototype.map.call(elements, function (el) {
          return el.scrollHeight;
        }).reduce(function (pre, cur) {
          return Math.max(pre, cur);
        }, -Infinity);
      };
      selectors.forEach(function (selector) {
        var elements = _this4._container.querySelectorAll(selector);
        elements.forEach(function (el) {
          el.style.height = null;
        });
        var maxHeight = arrayMap(elements);
        elements.forEach(function (el) {
          el.style.height = maxHeight + 'px';
        });
      });

      // Add resize sensors to watch for resizes
      this._addSensors();
    }
  }, {
    key: 'render',
    value: function render() {
      var _this5 = this;

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'div',
        {
          className: this.props.className,
          ref: function ref(node) {
            _this5._container = node;
          }
        },
        this.props.children
      );
    }
  }]);

  return CardHeightMatching;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

CardHeightMatching.propTypes = {
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node.isRequired,
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  selector: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string)]).isRequired
};
CardHeightMatching.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (CardHeightMatching);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/CardLink.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/CardLink.js ***!
  \*****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var CardLink = function CardLink(_ref) {
  var disabled = _ref.disabled,
      children = _ref.children,
      className = _ref.className,
      icon = _ref.icon,
      props = _objectWithoutProperties(_ref, ['disabled', 'children', 'className', 'icon']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()({
    'card-pf-link-with-icon': icon,
    disabled: disabled
  }, className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'p',
    null,
    react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
      'a',
      _extends({ className: classes }, props),
      icon,
      children
    )
  );
};
CardLink.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** card link icon node */
  icon: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
  /** href prop */
  href: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** is link prop */
  disabled: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
CardLink.defaultProps = {
  className: '',
  icon: null,
  href: null,
  disabled: false
};
/* harmony default export */ __webpack_exports__["default"] = (CardLink);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/CardTitle.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/CardTitle.js ***!
  \******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var CardTitle = function CardTitle(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('card-pf-title', className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'h2',
    _extends({ className: classes }, props),
    children
  );
};
CardTitle.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
CardTitle.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (CardTitle);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCard.js":
/*!*********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCard.js ***!
  \*********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../index */ "./node_modules/patternfly-react/dist/esm/components/Cards/index.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }






var UtilizationCard = function UtilizationCard(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('card-pf-utilization', className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    _index__WEBPACK_IMPORTED_MODULE_3__["Card"],
    _extends({ className: classes }, props),
    children
  );
};
UtilizationCard.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
UtilizationCard.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (UtilizationCard);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCardDetails.js":
/*!****************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCardDetails.js ***!
  \****************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var UtilizationCardDetails = function UtilizationCardDetails(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('card-pf-utilization-details', className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'p',
    _extends({ className: classes }, props),
    children
  );
};
UtilizationCardDetails.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
UtilizationCardDetails.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (UtilizationCardDetails);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCardDetailsCount.js":
/*!*********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCardDetailsCount.js ***!
  \*********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var UtilizationCardDetailsCount = function UtilizationCardDetailsCount(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('card-pf-utilization-card-details-count', className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'span',
    _extends({ className: classes }, props),
    children
  );
};
UtilizationCardDetailsCount.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
UtilizationCardDetailsCount.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (UtilizationCardDetailsCount);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCardDetailsDesc.js":
/*!********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCardDetailsDesc.js ***!
  \********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var UtilizationCardDetailsDesc = function UtilizationCardDetailsDesc(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('card-pf-utilization-card-details-description', className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'span',
    _extends({ className: classes }, props),
    children
  );
};
UtilizationCardDetailsDesc.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
UtilizationCardDetailsDesc.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (UtilizationCardDetailsDesc);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCardDetailsLine1.js":
/*!*********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCardDetailsLine1.js ***!
  \*********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var UtilizationCardDetailsLine1 = function UtilizationCardDetailsLine1(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('card-pf-utilization-card-details-line-1', className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'span',
    _extends({ className: classes }, props),
    children
  );
};
UtilizationCardDetailsLine1.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
UtilizationCardDetailsLine1.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (UtilizationCardDetailsLine1);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCardDetailsLine2.js":
/*!*********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCardDetailsLine2.js ***!
  \*********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var UtilizationCardDetailsLine2 = function UtilizationCardDetailsLine2(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('card-pf-utilization-card-details-line-2', className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'span',
    _extends({ className: classes }, props),
    children
  );
};
UtilizationCardDetailsLine2.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
UtilizationCardDetailsLine2.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (UtilizationCardDetailsLine2);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/index.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/index.js ***!
  \***********************************************************************************************/
/*! exports provided: UtilizationCard, UtilizationCardDetails, UtilizationCardDetailsCount, UtilizationCardDetailsDesc, UtilizationCardDetailsLine1, UtilizationCardDetailsLine2 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _UtilizationCard__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./UtilizationCard */ "./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCard.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCard", function() { return _UtilizationCard__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _UtilizationCardDetails__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./UtilizationCardDetails */ "./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCardDetails.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCardDetails", function() { return _UtilizationCardDetails__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _UtilizationCardDetailsCount__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./UtilizationCardDetailsCount */ "./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCardDetailsCount.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCardDetailsCount", function() { return _UtilizationCardDetailsCount__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _UtilizationCardDetailsDesc__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./UtilizationCardDetailsDesc */ "./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCardDetailsDesc.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCardDetailsDesc", function() { return _UtilizationCardDetailsDesc__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _UtilizationCardDetailsLine1__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./UtilizationCardDetailsLine1 */ "./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCardDetailsLine1.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCardDetailsLine1", function() { return _UtilizationCardDetailsLine1__WEBPACK_IMPORTED_MODULE_4__["default"]; });

/* harmony import */ var _UtilizationCardDetailsLine2__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./UtilizationCardDetailsLine2 */ "./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCardDetailsLine2.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCardDetailsLine2", function() { return _UtilizationCardDetailsLine2__WEBPACK_IMPORTED_MODULE_5__["default"]; });








_UtilizationCard__WEBPACK_IMPORTED_MODULE_0__["default"].Details = _UtilizationCardDetails__WEBPACK_IMPORTED_MODULE_1__["default"];
_UtilizationCard__WEBPACK_IMPORTED_MODULE_0__["default"].DetailsCount = _UtilizationCardDetailsCount__WEBPACK_IMPORTED_MODULE_2__["default"];
_UtilizationCard__WEBPACK_IMPORTED_MODULE_0__["default"].DetailsDesc = _UtilizationCardDetailsDesc__WEBPACK_IMPORTED_MODULE_3__["default"];
_UtilizationCard__WEBPACK_IMPORTED_MODULE_0__["default"].DetailsLine1 = _UtilizationCardDetailsLine1__WEBPACK_IMPORTED_MODULE_4__["default"];
_UtilizationCard__WEBPACK_IMPORTED_MODULE_0__["default"].DetailsLine2 = _UtilizationCardDetailsLine2__WEBPACK_IMPORTED_MODULE_5__["default"];



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/index.js":
/*!**************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/index.js ***!
  \**************************************************************************/
/*! exports provided: Card, CardTitle, CardBody, CardGrid, CardHeading, CardFooter, CardLink, CardDropdownButton, CardHeightMatching, AggregateStatusCount, AggregateStatusNotifications, AggregateStatusNotification, UtilizationCard, UtilizationCardDetails, UtilizationCardDetailsCount, UtilizationCardDetailsDesc, UtilizationCardDetailsLine1, UtilizationCardDetailsLine2 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Card__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Card */ "./node_modules/patternfly-react/dist/esm/components/Cards/Card.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Card", function() { return _Card__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _CardTitle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CardTitle */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardTitle.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardTitle", function() { return _CardTitle__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _CardBody__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CardBody */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardBody.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardBody", function() { return _CardBody__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _CardGrid__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./CardGrid */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardGrid.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardGrid", function() { return _CardGrid__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _CardHeading__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./CardHeading */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardHeading.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardHeading", function() { return _CardHeading__WEBPACK_IMPORTED_MODULE_4__["default"]; });

/* harmony import */ var _CardFooter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./CardFooter */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardFooter.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardFooter", function() { return _CardFooter__WEBPACK_IMPORTED_MODULE_5__["default"]; });

/* harmony import */ var _CardLink__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./CardLink */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardLink.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardLink", function() { return _CardLink__WEBPACK_IMPORTED_MODULE_6__["default"]; });

/* harmony import */ var _CardDropdownButton__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./CardDropdownButton */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardDropdownButton.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardDropdownButton", function() { return _CardDropdownButton__WEBPACK_IMPORTED_MODULE_7__["default"]; });

/* harmony import */ var _CardHeightMatching__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./CardHeightMatching */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardHeightMatching.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardHeightMatching", function() { return _CardHeightMatching__WEBPACK_IMPORTED_MODULE_8__["default"]; });

/* harmony import */ var _AggregateStatusCard__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./AggregateStatusCard */ "./node_modules/patternfly-react/dist/esm/components/Cards/AggregateStatusCard/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AggregateStatusCount", function() { return _AggregateStatusCard__WEBPACK_IMPORTED_MODULE_9__["AggregateStatusCount"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AggregateStatusNotifications", function() { return _AggregateStatusCard__WEBPACK_IMPORTED_MODULE_9__["AggregateStatusNotifications"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AggregateStatusNotification", function() { return _AggregateStatusCard__WEBPACK_IMPORTED_MODULE_9__["AggregateStatusNotification"]; });

/* harmony import */ var _UtilizationTrendCard__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./UtilizationTrendCard */ "./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCard", function() { return _UtilizationTrendCard__WEBPACK_IMPORTED_MODULE_10__["UtilizationCard"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCardDetails", function() { return _UtilizationTrendCard__WEBPACK_IMPORTED_MODULE_10__["UtilizationCardDetails"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCardDetailsCount", function() { return _UtilizationTrendCard__WEBPACK_IMPORTED_MODULE_10__["UtilizationCardDetailsCount"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCardDetailsDesc", function() { return _UtilizationTrendCard__WEBPACK_IMPORTED_MODULE_10__["UtilizationCardDetailsDesc"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCardDetailsLine1", function() { return _UtilizationTrendCard__WEBPACK_IMPORTED_MODULE_10__["UtilizationCardDetailsLine1"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCardDetailsLine2", function() { return _UtilizationTrendCard__WEBPACK_IMPORTED_MODULE_10__["UtilizationCardDetailsLine2"]; });















/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/AreaChart.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/AreaChart.js ***!
  \******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-c3js */ "./node_modules/react-c3js/react-c3js.js");
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_c3js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _ChartConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ChartConstants */ "./node_modules/patternfly-react/dist/esm/components/Chart/ChartConstants.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var AreaChart = Object(_ChartConstants__WEBPACK_IMPORTED_MODULE_2__["getComposer"])('AREA_CHART')(function (_ref) {
  var className = _ref.className,
      type = _ref.type,
      data = _ref.data,
      props = _objectWithoutProperties(_ref, ['className', 'type', 'data']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_c3js__WEBPACK_IMPORTED_MODULE_1___default.a, _extends({ className: className, type: type, data: data }, props));
});

/* harmony default export */ __webpack_exports__["default"] = (AreaChart);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/BarChart.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/BarChart.js ***!
  \*****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-c3js */ "./node_modules/react-c3js/react-c3js.js");
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_c3js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var recompose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! recompose */ "./node_modules/patternfly-react/node_modules/recompose/es/Recompose.js");
/* harmony import */ var _ChartConstants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ChartConstants */ "./node_modules/patternfly-react/dist/esm/components/Chart/ChartConstants.js");
/* harmony import */ var _common_patternfly__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../common/patternfly */ "./node_modules/patternfly-react/dist/esm/common/patternfly.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }







var mapBarChartProps = function mapBarChartProps(props) {
  var newProps = _extends({}, props);

  // Set Bar Chart tooltip
  if (props.categories) {
    newProps.tooltip = _common_patternfly__WEBPACK_IMPORTED_MODULE_4__["c3ChartDefaults"].getDefaultBarTooltip(props.categories);
  }

  return newProps;
};

var BarChart = Object(recompose__WEBPACK_IMPORTED_MODULE_2__["compose"])(Object(_ChartConstants__WEBPACK_IMPORTED_MODULE_3__["getComposer"])('BAR_CHART'), Object(recompose__WEBPACK_IMPORTED_MODULE_2__["mapProps"])(mapBarChartProps))(function (_ref) {
  var className = _ref.className,
      type = _ref.type,
      data = _ref.data,
      props = _objectWithoutProperties(_ref, ['className', 'type', 'data']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_c3js__WEBPACK_IMPORTED_MODULE_1___default.a, _extends({ className: className, type: type, data: data }, props));
});

/* harmony default export */ __webpack_exports__["default"] = (BarChart);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChart.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChart.js ***!
  \********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _common_patternfly__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../common/patternfly */ "./node_modules/patternfly-react/dist/esm/common/patternfly.js");
/* harmony import */ var _Tooltip_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Tooltip/index */ "./node_modules/patternfly-react/dist/esm/components/Tooltip/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _BulletChartValue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./BulletChartValue */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartValue.js");
/* harmony import */ var _BulletChartRange__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./BulletChartRange */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartRange.js");
/* harmony import */ var _BulletChartAxis__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./BulletChartAxis */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartAxis.js");
/* harmony import */ var _BulletChartAxisTic__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./BulletChartAxisTic */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartAxisTic.js");
/* harmony import */ var _BulletChartLegend__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./BulletChartLegend */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartLegend.js");
/* harmony import */ var _BulletChartLegendItem__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./BulletChartLegendItem */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartLegendItem.js");
/* harmony import */ var _BulletChartThreshold__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./BulletChartThreshold */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartThreshold.js");
/* harmony import */ var _BulletChartTitle__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./BulletChartTitle */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartTitle.js");
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }

















var randomId = function randomId() {
  return Date.now();
};

var defaultPrimaryColors = [_common_patternfly__WEBPACK_IMPORTED_MODULE_3__["patternfly"].pfPaletteColors.blue300, _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["patternfly"].pfPaletteColors.blue400, _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["patternfly"].pfPaletteColors.blue500, _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["patternfly"].pfPaletteColors.blue600];

var defaultExtendedColors = [_common_patternfly__WEBPACK_IMPORTED_MODULE_3__["patternfly"].pfPaletteColors.blue400, _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["patternfly"].pfPaletteColors.lightBlue400, _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["patternfly"].pfPaletteColors.cyan400, _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["patternfly"].pfPaletteColors.green400, _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["patternfly"].pfPaletteColors.lightGreen400, _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["patternfly"].pfPaletteColors.gold400, _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["patternfly"].pfPaletteColors.orange400, _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["patternfly"].pfPaletteColors.red300, _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["patternfly"].pfPaletteColors.purple400];

var BulletChart = function BulletChart(_ref) {
  var vertical = _ref.vertical,
      stacked = _ref.stacked,
      label = _ref.label,
      details = _ref.details,
      values = _ref.values,
      percents = _ref.percents,
      maxValue = _ref.maxValue,
      useDots = _ref.useDots,
      useExtendedColors = _ref.useExtendedColors,
      thresholdWarning = _ref.thresholdWarning,
      thresholdWarningLegendText = _ref.thresholdWarningLegendText,
      thresholdWarningLegendTextFunction = _ref.thresholdWarningLegendTextFunction,
      thresholdWarningTooltipFunction = _ref.thresholdWarningTooltipFunction,
      thresholdError = _ref.thresholdError,
      thresholdErrorLegendText = _ref.thresholdErrorLegendText,
      thresholdErrorLegendTextFunction = _ref.thresholdErrorLegendTextFunction,
      thresholdErrorTooltipFunction = _ref.thresholdErrorTooltipFunction,
      ranges = _ref.ranges,
      showAxis = _ref.showAxis,
      customAxis = _ref.customAxis,
      showLegend = _ref.showLegend,
      customLegend = _ref.customLegend,
      className = _ref.className;

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('bullet-chart-pf', { 'bullet-chart-pf-vertical': vertical }, className);

  // Order the ranges into an array of 3 ranges lowest to highest, insert 0's if necessary
  // this is to keep darkest as highest and use darkest colors first (ie. 1 range still uses darkest)
  var rangeValues = [];
  if (ranges) {
    for (var i = 0; i < 3; i++) {
      if (ranges.length > i) {
        rangeValues.push(ranges[i]);
      } else {
        rangeValues.push({ value: 0, title: '' });
      }
    }
    rangeValues.sort(function (range1, range2) {
      return range1.value - range2.value;
    });
  }

  var displayValues = [].concat(_toConsumableArray(values));

  var defaultColors = useExtendedColors ? defaultExtendedColors : defaultPrimaryColors;
  displayValues.forEach(function (value, index) {
    if (!value.color && defaultColors[index]) {
      value.color = defaultColors[index];
    }
  });

  if (!stacked) {
    displayValues.sort(function (value1, value2) {
      return value1.value - value2.value;
    });
  }

  var renderValues = function renderValues() {
    var prevValue = 0;

    var getPrevValue = function getPrevValue(nextValue) {
      if (stacked) {
        var retVal = prevValue;
        prevValue += nextValue;

        return retVal;
      }
      return 0;
    };

    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'div',
      { className: 'bullet-chart-pf-values-container' },
      displayValues.map(function (value, index) {
        return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_BulletChartValue__WEBPACK_IMPORTED_MODULE_6__["default"], {
          key: value.title + '-' + index,
          value: value,
          percent: percents,
          maxValue: maxValue,
          prevValue: getPrevValue(value.value),
          dot: useDots,
          vertical: vertical
        });
      })
    );
  };

  var renderLegend = function renderLegend() {
    if (showLegend) {
      if (customLegend) {
        return customLegend;
      }

      var warningThreshold = thresholdWarningLegendTextFunction(thresholdWarning) || thresholdWarningLegendText;
      var errorThreshold = thresholdErrorLegendTextFunction(thresholdError) || thresholdErrorLegendText;
      var thresholdTipFunction = function thresholdTipFunction(title, value) {
        if (thresholdWarningTooltipFunction) {
          return thresholdWarningTooltipFunction(title, value);
        }
        var tipText = title + ': ' + value + (percents ? '%' : '');
        return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          _Tooltip_index__WEBPACK_IMPORTED_MODULE_4__["Tooltip"],
          { id: randomId() },
          tipText
        );
      };

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _BulletChartLegend__WEBPACK_IMPORTED_MODULE_10__["default"],
        null,
        displayValues.map(function (value, index) {
          var tooltipFunction = function tooltipFunction() {
            if (value.tooltipFunction) {
              return value.tooltipFunction(value.value, value.title);
            }

            var tipText = value.title + ': ' + value.value + (percents ? '%' : '');
            return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
              _Tooltip_index__WEBPACK_IMPORTED_MODULE_4__["Tooltip"],
              { id: value.tooltipId || randomId() },
              tipText
            );
          };

          var legendTextFunction = value.legendTextFunction || _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"];
          return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_BulletChartLegendItem__WEBPACK_IMPORTED_MODULE_11__["default"], {
            key: 'value-' + index,
            title: legendTextFunction(value) || value.legendText || value.title,
            value: value.value,
            color: value.color,
            tooltipFunction: tooltipFunction
          });
        }),
        rangeValues.map(function (range, index) {
          if (range.value > 0 && (percents ? range.value <= 100 : range.value <= maxValue)) {
            var tooltipFunction = function tooltipFunction() {
              if (range.tooltipFunction) {
                return range.tooltipFunction(range.value, range.title);
              }

              var tipText = range.title + ': ' + range.value + (percents ? '%' : '');
              return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
                _Tooltip_index__WEBPACK_IMPORTED_MODULE_4__["Tooltip"],
                { id: range.tooltipId || randomId() },
                tipText
              );
            };

            var legendTextFunction = range.legendTextFunction || _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"];

            return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_BulletChartLegendItem__WEBPACK_IMPORTED_MODULE_11__["default"], {
              key: 'range-' + index,
              title: legendTextFunction(range) || range.legendText || range.title,
              value: range.value,
              boxClassName: 'range-' + index,
              color: range.color,
              tooltipFunction: tooltipFunction
            });
          }

          return null;
        }),
        warningThreshold && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_BulletChartLegendItem__WEBPACK_IMPORTED_MODULE_11__["default"], {
          title: warningThreshold,
          value: thresholdWarning,
          boxClassName: 'warning',
          tooltipFunction: thresholdTipFunction
        }),
        errorThreshold && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_BulletChartLegendItem__WEBPACK_IMPORTED_MODULE_11__["default"], {
          title: errorThreshold,
          value: thresholdError,
          boxClassName: 'error',
          tooltipFunction: thresholdTipFunction
        })
      );
    }

    return null;
  };

  var renderChartData = function renderChartData() {
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'div',
      { className: 'bullet-chart-pf-data-container' },
      renderValues(),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_BulletChartThreshold__WEBPACK_IMPORTED_MODULE_12__["default"], {
        className: 'warning',
        threshold: thresholdWarning,
        vertical: vertical,
        percent: percents,
        maxValue: maxValue
      }),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_BulletChartThreshold__WEBPACK_IMPORTED_MODULE_12__["default"], {
        className: 'error',
        threshold: thresholdError,
        vertical: vertical,
        percent: percents,
        maxValue: maxValue
      }),
      rangeValues.map(function (range, index) {
        return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_BulletChartRange__WEBPACK_IMPORTED_MODULE_7__["default"], {
          key: range.value + '-' + index,
          value: range.value,
          color: range.color,
          percent: percents,
          maxValue: maxValue,
          index: index + 1,
          vertical: vertical
        });
      })
    );
  };

  var renderChartAxis = function renderChartAxis() {
    if (customAxis) {
      return customAxis;
    }

    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _BulletChartAxis__WEBPACK_IMPORTED_MODULE_8__["default"],
      null,
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_BulletChartAxisTic__WEBPACK_IMPORTED_MODULE_9__["default"], { value: 0, vertical: vertical }),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_BulletChartAxisTic__WEBPACK_IMPORTED_MODULE_9__["default"], {
        value: 25,
        text: percents ? undefined : '' + Math.floor(maxValue * 0.25),
        vertical: vertical
      }),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_BulletChartAxisTic__WEBPACK_IMPORTED_MODULE_9__["default"], {
        value: 50,
        text: percents ? undefined : '' + Math.floor(maxValue * 0.5),
        vertical: vertical
      }),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_BulletChartAxisTic__WEBPACK_IMPORTED_MODULE_9__["default"], {
        value: 75,
        text: percents ? undefined : '' + Math.floor(maxValue * 0.75),
        vertical: vertical
      }),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_BulletChartAxisTic__WEBPACK_IMPORTED_MODULE_9__["default"], { value: 100, text: percents ? undefined : '' + Math.floor(maxValue), vertical: vertical })
    );
  };

  var renderChartContainer = function renderChartContainer() {
    var containerClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()('bullet-chart-pf-container', {
      'show-axis': showAxis
    });
    var chartContainer = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'div',
      { className: containerClasses },
      renderChartData(),
      showAxis && renderChartAxis()
    );

    if (vertical) {
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'div',
        { className: 'bullet-chart-pf-vertical-data-container' },
        chartContainer
      );
    }

    return chartContainer;
  };

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    { className: classes },
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'div',
      { className: 'bullet-chart-pf-chart' },
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_BulletChartTitle__WEBPACK_IMPORTED_MODULE_13__["default"], { label: label, details: details }),
      renderChartContainer(),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('span', { className: 'bullet-chart-pf-overflow' })
    ),
    renderLegend()
  );
};

BulletChart.propTypes = {
  /** Option to display the bullet chart vertically, default is false */
  vertical: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Option to stack values (each value is in addition to previous value), default is false */
  stacked: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Text to display as the main label for the chart */
  label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Text to display for details of the chart */
  details: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Array of values, value, title (for legend and tooltip), color, tooltip function(value, title), legendText(optional),
   * legendTextFunction(value). The legendTextFunction takes priority, then the legendTextFunction, then the default
   * legend text.
   * For Primary colors the first four values can use default colors, for Extended colors the first nine
   * values use default colors, further values the color MUST be specified. */
  values: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
    title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    color: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    tooltipFunction: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
    legendText: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    legendTextFunction: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
  })).isRequired,
  /** Option to use values as percentages, default is true */
  percents: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Maximum value when not using percents (ignored if percents is true) */
  maxValue: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  /** Use a dot rather than a bar to depict values, default false */
  useDots: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Use extended color palette for default colors, default false */
  useExtendedColors: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Warning threshold (optional), warning measure line drawn at this point */
  thresholdWarning: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  /** Warning threshold legend text (optional), text to show in the legend for the warning threshold */
  thresholdWarningLegendText: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Warning threshold legend text function(warningValue), function to return text to show in the legend for the warning threshold */
  thresholdWarningLegendTextFunction: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Warning threshold legend tooltip function(text, value), function to return tooltip for the legend */
  thresholdWarningTooltipFunction: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Error threshold (optional), error measure line drawn at this point */
  thresholdError: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  /** Error threshold legend text (optional), text to show in the legend for the warning threshold */
  thresholdErrorLegendText: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Error threshold legend text function(text, value), function to return text to show in the legend for the warning threshold */
  thresholdErrorLegendTextFunction: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Error threshold legend tooltip function(warningValue), function to return tooltip for the legend */
  thresholdErrorTooltipFunction: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Ranges, array of range bars (3 maximum, additional ranges will be ignored) */
  ranges: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
    title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    color: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    tooltipFunction: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
    legendText: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    legendTextFunction: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
  })),
  /** Option to show the axis, default is true */
  showAxis: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Custom Axis */
  customAxis: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Show the legend, default false */
  showLegend: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Custom Legend */
  customLegend: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** User's custom classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};

BulletChart.defaultProps = {
  vertical: false,
  stacked: false,
  label: null,
  details: null,
  percents: true,
  maxValue: 100,
  useDots: false,
  useExtendedColors: false,
  thresholdWarning: 70,
  thresholdWarningLegendText: null,
  thresholdWarningLegendTextFunction: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"],
  thresholdWarningTooltipFunction: null,
  thresholdError: 90,
  thresholdErrorLegendText: null,
  thresholdErrorLegendTextFunction: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"],
  thresholdErrorTooltipFunction: null,
  ranges: null,
  showAxis: true,
  customAxis: null,
  showLegend: false,
  customLegend: null,
  className: null
};

BulletChart.DEFAULT_PRIMARY_COLORS = defaultPrimaryColors;
BulletChart.DEFAULT_EXTENDED_COLORS = defaultExtendedColors;

BulletChart.Title = _BulletChartTitle__WEBPACK_IMPORTED_MODULE_13__["default"];
BulletChart.Value = _BulletChartValue__WEBPACK_IMPORTED_MODULE_6__["default"];
BulletChart.Range = _BulletChartRange__WEBPACK_IMPORTED_MODULE_7__["default"];
BulletChart.Axis = _BulletChartAxis__WEBPACK_IMPORTED_MODULE_8__["default"];
BulletChart.AxisTic = _BulletChartAxisTic__WEBPACK_IMPORTED_MODULE_9__["default"];
BulletChart.Legend = _BulletChartLegend__WEBPACK_IMPORTED_MODULE_10__["default"];
BulletChart.LegendItem = _BulletChartLegendItem__WEBPACK_IMPORTED_MODULE_11__["default"];
BulletChart.Threshold = _BulletChartThreshold__WEBPACK_IMPORTED_MODULE_12__["default"];

/* harmony default export */ __webpack_exports__["default"] = (BulletChart);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartAxis.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartAxis.js ***!
  \************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var BulletChartAxis = function BulletChartAxis(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var bulletChartAxisClass = classnames__WEBPACK_IMPORTED_MODULE_2___default()('bullet-chart-pf-axis', className);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    { className: bulletChartAxisClass },
    children
  );
};

BulletChartAxis.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node.isRequired,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};

BulletChartAxis.defaultProps = {
  className: ''
};

/* harmony default export */ __webpack_exports__["default"] = (BulletChartAxis);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartAxisTic.js":
/*!***************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartAxisTic.js ***!
  \***************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var BulletChartAxisTic = function BulletChartAxisTic(_ref) {
  var className = _ref.className,
      text = _ref.text,
      vertical = _ref.vertical,
      value = _ref.value,
      props = _objectWithoutProperties(_ref, ['className', 'text', 'vertical', 'value']);

  var bulletChartAxisTicClass = classnames__WEBPACK_IMPORTED_MODULE_2___default()('bullet-chart-pf-axis-tic', className);

  var ticStyle = void 0;
  if (vertical) {
    ticStyle = { bottom: 'calc(' + value + '% - 10px)' };
  } else {
    ticStyle = { left: 'calc(' + value + '% - 15px)' };
  }

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'span',
    { className: bulletChartAxisTicClass, style: ticStyle },
    text || value
  );
};

BulletChartAxisTic.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Vertical axis, default false */
  vertical: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Value for the tic mark */
  value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  /** Text for the tic mark, default is the value */
  text: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};

BulletChartAxisTic.defaultProps = {
  className: '',
  vertical: false,
  text: undefined
};

/* harmony default export */ __webpack_exports__["default"] = (BulletChartAxisTic);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartLegend.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartLegend.js ***!
  \**************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var BulletChartLegend = function BulletChartLegend(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var bulletChartLegendClass = classnames__WEBPACK_IMPORTED_MODULE_2___default()('bullet-chart-pf-legend', className);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    _extends({ className: bulletChartLegendClass }, props),
    children
  );
};

BulletChartLegend.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node.isRequired,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
BulletChartLegend.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (BulletChartLegend);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartLegendItem.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartLegendItem.js ***!
  \******************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _OverlayTrigger_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../OverlayTrigger/index */ "./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/index.js");
/* harmony import */ var _Tooltip_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Tooltip/index */ "./node_modules/patternfly-react/dist/esm/components/Tooltip/index.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }








var randomId = function randomId() {
  return Date.now();
};

var BulletChartLegendItem = function BulletChartLegendItem(_ref) {
  var className = _ref.className,
      title = _ref.title,
      value = _ref.value,
      color = _ref.color,
      boxClassName = _ref.boxClassName,
      tooltipFunction = _ref.tooltipFunction,
      tooltipId = _ref.tooltipId,
      props = _objectWithoutProperties(_ref, ['className', 'title', 'value', 'color', 'boxClassName', 'tooltipFunction', 'tooltipId']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('bullet-chart-pf-legend-item', className);

  var boxClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()('bullet-chart-pf-legend-item-box', boxClassName);

  var TooltipFunction = function TooltipFunction() {
    if (tooltipFunction) {
      return tooltipFunction(title, value, color);
    }

    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _Tooltip_index__WEBPACK_IMPORTED_MODULE_4__["Tooltip"],
      { id: tooltipId || randomId() },
      title + ': ' + value + '%'
    );
  };

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _OverlayTrigger_index__WEBPACK_IMPORTED_MODULE_3__["OverlayTrigger"],
    _extends({
      overlay: TooltipFunction(title, value, color),
      placement: 'top',
      trigger: ['hover', 'focus'],
      rootClose: false
    }, props),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'span',
      { className: classes },
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('span', {
        className: boxClasses,
        style: {
          backgroundColor: color
        }
      }),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'span',
        { className: 'bullet-chart-pf-legend-item-text' },
        title
      )
    )
  );
};

BulletChartLegendItem.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Text for the legend item */
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /* Value of the item */
  value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  /* Color for the box */
  color: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Additional css classes for the box */
  boxClassName: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Tooltip function(title, value, color) to render tooltip contents */
  tooltipFunction: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Tooltip ID */
  tooltipId: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};

BulletChartLegendItem.defaultProps = {
  className: '',
  title: '',
  value: 0,
  color: undefined,
  boxClassName: '',
  tooltipFunction: undefined,
  tooltipId: undefined
};

/* harmony default export */ __webpack_exports__["default"] = (BulletChartLegendItem);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartRange.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartRange.js ***!
  \*************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var BulletChartRange = function BulletChartRange(_ref) {
  var className = _ref.className,
      value = _ref.value,
      percent = _ref.percent,
      maxValue = _ref.maxValue,
      index = _ref.index,
      color = _ref.color,
      vertical = _ref.vertical,
      props = _objectWithoutProperties(_ref, ['className', 'value', 'percent', 'maxValue', 'index', 'color', 'vertical']);

  var rangeClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()('bullet-chart-pf-range-bar', 'range-' + index, className);
  if (value > 0 && (percent ? value <= 100 : value <= maxValue)) {
    var showValue = percent ? value : value / maxValue * 100;
    var rangeStyle = {
      width: vertical ? undefined : showValue + '%',
      height: vertical ? showValue + '%' : undefined,
      zIndex: Math.round(100 - showValue)
    };
    if (color) {
      rangeStyle.backgroundColor = color;
    }
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('div', _extends({ className: rangeClasses, style: rangeStyle }, props));
  }

  return null;
};

BulletChartRange.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** End value for the range */
  value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  /** Option to use end value as a percentage, default is true */
  percent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Maximum value when not using percents (ignored if percents is true) */
  maxValue: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  /** Index for the range (1-3) */
  index: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  /** Optional color for the range, should use defaults but provided for flexibility */
  color: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Vertical chart, default false */
  vertical: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};

BulletChartRange.defaultProps = {
  className: '',
  percent: true,
  maxValue: 100,
  color: '',
  vertical: false
};

/* harmony default export */ __webpack_exports__["default"] = (BulletChartRange);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartThreshold.js":
/*!*****************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartThreshold.js ***!
  \*****************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var BulletChartThreshold = function BulletChartThreshold(_ref) {
  var className = _ref.className,
      threshold = _ref.threshold,
      vertical = _ref.vertical,
      percent = _ref.percent,
      maxValue = _ref.maxValue,
      props = _objectWithoutProperties(_ref, ['className', 'threshold', 'vertical', 'percent', 'maxValue']);

  var percentValue = percent ? threshold : threshold / maxValue * 100;

  if (percentValue > 0 && percentValue <= 100) {
    var thresholdClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()('bullet-chart-pf-threshold-indicator', className);
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('div', _extends({
      className: thresholdClasses,
      style: {
        left: vertical ? undefined : percentValue + '%',
        bottom: vertical ? percentValue + '%' : undefined
      }
    }, props));
  }

  return null;
};

BulletChartThreshold.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Threshold value */
  threshold: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  /** Vertical chart, default false */
  vertical: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Option to use threshold value as a percentage, default is true */
  percent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Maximum value when not using percents (ignored if percents is true) */
  maxValue: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number
};

BulletChartThreshold.defaultProps = {
  className: '',
  vertical: false,
  percent: true,
  maxValue: 100
};

/* harmony default export */ __webpack_exports__["default"] = (BulletChartThreshold);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartTitle.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartTitle.js ***!
  \*************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var BulletChartTitle = function BulletChartTitle(_ref) {
  var className = _ref.className,
      label = _ref.label,
      details = _ref.details,
      props = _objectWithoutProperties(_ref, ['className', 'label', 'details']);

  var titleContainerClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()('bullet-chart-pf-title-container', className);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    _extends({ className: titleContainerClasses }, props),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'div',
      { className: 'bullet-chart-pf-title' },
      label
    ),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'div',
      { className: 'bullet-chart-pf-details' },
      details
    )
  );
};

BulletChartTitle.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Label text */
  label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Details text */
  details: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};

BulletChartTitle.defaultProps = {
  className: '',
  label: '',
  details: ''
};

/* harmony default export */ __webpack_exports__["default"] = (BulletChartTitle);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartValue.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartValue.js ***!
  \*************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _OverlayTrigger_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../OverlayTrigger/index */ "./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/index.js");
/* harmony import */ var _Tooltip_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Tooltip/index */ "./node_modules/patternfly-react/dist/esm/components/Tooltip/index.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }







var randomId = function randomId() {
  return Date.now();
};

var BulletChartValue = function BulletChartValue(_ref) {
  var className = _ref.className,
      value = _ref.value,
      percent = _ref.percent,
      maxValue = _ref.maxValue,
      prevValue = _ref.prevValue,
      dot = _ref.dot,
      vertical = _ref.vertical,
      props = _objectWithoutProperties(_ref, ['className', 'value', 'percent', 'maxValue', 'prevValue', 'dot', 'vertical']);

  var usedMax = percent ? 100 : maxValue;
  var percentValue = percent ? value.value + prevValue : (value.value + prevValue) / maxValue * 100;
  var showValue = Math.min(Math.max(percentValue, 0), usedMax * 1.2);

  var TooltipFunction = function TooltipFunction() {
    if (value.tooltipFunction) {
      return value.tooltipFunction(value.value, value.title);
    }

    var tipText = value.title + ': ' + value.value + (percent ? '%' : '');
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _Tooltip_index__WEBPACK_IMPORTED_MODULE_4__["Tooltip"],
      { id: value.tooltipId || randomId() },
      tipText
    );
  };

  var valueClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()({
    'bullet-chart-pf-value-dot': dot,
    'bullet-chart-pf-value-bar': !dot
  }, className);

  var valueComponent = void 0;
  if (dot) {
    valueComponent = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('div', _extends({
      className: valueClasses,
      style: {
        left: vertical ? undefined : showValue + '%',
        bottom: vertical ? showValue + '%' : undefined,
        backgroundColor: value.color,
        zIndex: Math.round(100 + showValue)
      }
    }, props));
  } else {
    var prevShowValue = percent ? prevValue : prevValue / maxValue * 100;
    valueComponent = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('div', _extends({
      className: valueClasses,
      style: {
        left: vertical ? undefined : prevShowValue + '%',
        width: vertical ? undefined : showValue - prevShowValue + '%',
        bottom: vertical ? prevShowValue + '%' : undefined,
        height: vertical ? showValue - prevShowValue + '%' : undefined,
        backgroundColor: value.color,
        zIndex: Math.round(400 - showValue)
      }
    }, props));
  }
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _OverlayTrigger_index__WEBPACK_IMPORTED_MODULE_3__["OverlayTrigger"],
    {
      key: value.title,
      overlay: TooltipFunction(value),
      placement: vertical ? 'right' : 'top',
      trigger: ['hover', 'focus'],
      rootClose: false
    },
    valueComponent
  );
};

BulletChartValue.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Value */
  value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
    title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    color: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    tooltipFunction: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
    tooltipId: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
  }).isRequired,
  /** Option to use value as a percentage, default is true */
  percent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Maximum value when not using percents (ignored if percents is true) */
  maxValue: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  /** Previous value (for stacked charts), default 0 */
  prevValue: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  /** Display a dot rather than a bar, default false */
  dot: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Vertical chart, default false */
  vertical: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};

BulletChartValue.defaultProps = {
  className: '',
  percent: true,
  maxValue: 100,
  prevValue: 0,
  dot: false,
  vertical: false
};

/* harmony default export */ __webpack_exports__["default"] = (BulletChartValue);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/index.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/index.js ***!
  \**************************************************************************************/
/*! exports provided: BulletChart, BulletChartTitle, BulletChartValue, BulletChartRange, BulletChartAxis, BulletChartAxisTic, BulletChartLegend, BulletChartLegendItem, BulletChartThreshold */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _BulletChart__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BulletChart */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChart.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChart", function() { return _BulletChart__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _BulletChartTitle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BulletChartTitle */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartTitle.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartTitle", function() { return _BulletChartTitle__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _BulletChartValue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BulletChartValue */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartValue.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartValue", function() { return _BulletChartValue__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _BulletChartRange__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./BulletChartRange */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartRange.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartRange", function() { return _BulletChartRange__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _BulletChartAxis__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./BulletChartAxis */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartAxis.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartAxis", function() { return _BulletChartAxis__WEBPACK_IMPORTED_MODULE_4__["default"]; });

/* harmony import */ var _BulletChartAxisTic__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./BulletChartAxisTic */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartAxisTic.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartAxisTic", function() { return _BulletChartAxisTic__WEBPACK_IMPORTED_MODULE_5__["default"]; });

/* harmony import */ var _BulletChartLegend__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./BulletChartLegend */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartLegend.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartLegend", function() { return _BulletChartLegend__WEBPACK_IMPORTED_MODULE_6__["default"]; });

/* harmony import */ var _BulletChartLegendItem__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./BulletChartLegendItem */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartLegendItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartLegendItem", function() { return _BulletChartLegendItem__WEBPACK_IMPORTED_MODULE_7__["default"]; });

/* harmony import */ var _BulletChartThreshold__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./BulletChartThreshold */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartThreshold.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartThreshold", function() { return _BulletChartThreshold__WEBPACK_IMPORTED_MODULE_8__["default"]; });













/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/ChartConstants.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/ChartConstants.js ***!
  \***********************************************************************************/
/*! exports provided: getComposer, CHART_CONFIG */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getComposer", function() { return getComposer; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CHART_CONFIG", function() { return CHART_CONFIG; });
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var recompose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! recompose */ "./node_modules/patternfly-react/node_modules/recompose/es/Recompose.js");
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-c3js */ "./node_modules/react-c3js/react-c3js.js");
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_c3js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _common_patternfly__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/patternfly */ "./node_modules/patternfly-react/dist/esm/common/patternfly.js");
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; };







/**
 * Chart defaults
 */

var CHART_CONFIG = {
  AREA_CHART: {
    type: 'area',
    displayName: 'AreaChart',
    className: 'area-chart-pf',
    defaultConfig: _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["c3ChartDefaults"].getDefaultAreaConfig()
  },
  BAR_CHART: {
    type: 'bar',
    displayName: 'BarChart',
    className: 'bar-chart-pf',
    defaultConfig: _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["c3ChartDefaults"].getDefaultBarConfig()
  },
  DONUT_CHART: {
    type: 'donut',
    displayName: 'DonutChart',
    className: 'donut-chart-pf',
    defaultConfig: _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["c3ChartDefaults"].getDefaultDonutConfig()
  },
  GROUPED_BAR_CHART: {
    type: 'bar',
    displayName: 'GroupedBarChart',
    className: 'bar-chart-pf',
    defaultConfig: _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["c3ChartDefaults"].getDefaultGroupedBarConfig()
  },
  LINE_CHART: {
    type: 'line',
    displayName: 'LineChart',
    className: 'line-chart-pf',
    defaultConfig: _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["c3ChartDefaults"].getDefaultLineConfig()
  },
  PIE_CHART: {
    type: 'pie',
    displayName: 'PieChart',
    className: 'pie-chart-pf',
    defaultConfig: _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["c3ChartDefaults"].getDefaultPieConfig()
  },
  SINGLE_AREA_CHART: {
    type: 'area',
    displayName: 'SingleAreaChart',
    className: 'area-chart-pf',
    defaultConfig: _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["c3ChartDefaults"].getDefaultSingleAreaConfig()
  },
  SINGLE_LINE_CHART: {
    type: 'line',
    displayName: 'SingleLineChart',
    className: 'line-chart-pf',
    defaultConfig: _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["c3ChartDefaults"].getDefaultSingleLineConfig()
  },
  SPARKLINE_CHART: {
    type: 'area',
    displayName: 'SparklineChart',
    className: 'chart-pf-sparkline',
    defaultConfig: _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["c3ChartDefaults"].getDefaultSparklineConfig()
  },
  STACKED_BAR_CHART: {
    type: 'bar',
    displayName: 'StackedBarChart',
    className: 'bar-chart-pf',
    defaultConfig: _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["c3ChartDefaults"].getDefaultStackedBarConfig()
  }
};

/**
 * Helper functions
 */

var mapChartProps = function mapChartProps(name, props) {
  var newProps = _extends({}, props);

  // Set chart type
  if (props.data && !props.data.type) {
    newProps.data.type = props.type;
  }

  return newProps;
};

var getComposer = function getComposer(name) {
  var config = CHART_CONFIG[name];

  return Object(recompose__WEBPACK_IMPORTED_MODULE_1__["compose"])(Object(recompose__WEBPACK_IMPORTED_MODULE_1__["setDisplayName"])(config.displayName), Object(recompose__WEBPACK_IMPORTED_MODULE_1__["setPropTypes"])(_extends({
    data: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.object.isRequired
  }, react_c3js__WEBPACK_IMPORTED_MODULE_2___default.a.propTypes)), Object(recompose__WEBPACK_IMPORTED_MODULE_1__["defaultProps"])(_extends({
    type: config.type,
    className: config.className
  }, config.defaultConfig)), Object(recompose__WEBPACK_IMPORTED_MODULE_1__["mapProps"])(function (props) {
    return mapChartProps(name, props);
  }));
};

/**
 * Exports functions
 */



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/DonutChart.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/DonutChart.js ***!
  \*******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-c3js */ "./node_modules/react-c3js/react-c3js.js");
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_c3js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var recompose__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! recompose */ "./node_modules/patternfly-react/node_modules/recompose/es/Recompose.js");
/* harmony import */ var _common_patternfly__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../common/patternfly */ "./node_modules/patternfly-react/dist/esm/common/patternfly.js");
/* harmony import */ var _ChartConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ChartConstants */ "./node_modules/patternfly-react/dist/esm/components/Chart/ChartConstants.js");
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; };

var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }









var pfSetDonutChartTitle = _common_patternfly__WEBPACK_IMPORTED_MODULE_4__["patternfly"].pfSetDonutChartTitle;

var colIndexOfMaxValue = function colIndexOfMaxValue(columns) {
  return columns.reduce(function (iMax, x, i, arr) {
    return x[1] > arr[iMax][1] ? i : iMax;
  }, 0);
};

var setDonutTitle = function setDonutTitle(obj) {
  var primary = void 0;
  var secondary = void 0;

  var props = obj.props;
  var data = props.data,
      _props$title = props.title,
      title = _props$title === undefined ? {} : _props$title;
  var columns = data.columns;

  var sum = columns.reduce(function (acc, x) {
    return acc + x[1];
  }, 0);
  var iMax = colIndexOfMaxValue(columns);

  switch (title.type) {
    case 'percent':
      primary = Math.round(100 * columns[iMax][1] / sum).toString() + '%';

      var _columns$iMax = _slicedToArray(columns[iMax], 1);

      secondary = _columns$iMax[0];

      break;
    case 'max':
      primary = Math.round(columns[iMax][1]).toString();

      var _columns$iMax2 = _slicedToArray(columns[iMax], 1);

      secondary = _columns$iMax2[0];

      break;
    case 'total':
    default:
      primary = Math.round(sum).toString();
      break;
  }

  pfSetDonutChartTitle(
  // eslint-disable-next-line react/no-find-dom-node
  Object(react_dom__WEBPACK_IMPORTED_MODULE_2__["findDOMNode"])(obj), title.primary || primary, title.secondary || secondary);
};

var addDonutTitle = Object(recompose__WEBPACK_IMPORTED_MODULE_3__["lifecycle"])({
  componentDidMount: function componentDidMount() {
    setDonutTitle(this);
  },
  componentDidUpdate: function componentDidUpdate(prevProps) {
    setDonutTitle(this);
  }
});

var DonutChart = Object(recompose__WEBPACK_IMPORTED_MODULE_3__["compose"])(Object(_ChartConstants__WEBPACK_IMPORTED_MODULE_5__["getComposer"])('DONUT_CHART'), addDonutTitle)(function (_ref) {
  var className = _ref.className,
      type = _ref.type,
      data = _ref.data,
      props = _objectWithoutProperties(_ref, ['className', 'type', 'data']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_c3js__WEBPACK_IMPORTED_MODULE_1___default.a, _extends({ className: className, type: type, data: data }, props));
});

/* harmony default export */ __webpack_exports__["default"] = (DonutChart);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/GroupedBarChart.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/GroupedBarChart.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-c3js */ "./node_modules/react-c3js/react-c3js.js");
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_c3js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _ChartConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ChartConstants */ "./node_modules/patternfly-react/dist/esm/components/Chart/ChartConstants.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var GroupedBarChart = Object(_ChartConstants__WEBPACK_IMPORTED_MODULE_2__["getComposer"])('GROUPED_BAR_CHART')(function (_ref) {
  var className = _ref.className,
      type = _ref.type,
      data = _ref.data,
      props = _objectWithoutProperties(_ref, ['className', 'type', 'data']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_c3js__WEBPACK_IMPORTED_MODULE_1___default.a, _extends({ className: className, type: type, data: data }, props));
});

/* harmony default export */ __webpack_exports__["default"] = (GroupedBarChart);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/LineChart.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/LineChart.js ***!
  \******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-c3js */ "./node_modules/react-c3js/react-c3js.js");
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_c3js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _ChartConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ChartConstants */ "./node_modules/patternfly-react/dist/esm/components/Chart/ChartConstants.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var LineChart = Object(_ChartConstants__WEBPACK_IMPORTED_MODULE_2__["getComposer"])('LINE_CHART')(function (_ref) {
  var className = _ref.className,
      type = _ref.type,
      data = _ref.data,
      props = _objectWithoutProperties(_ref, ['className', 'type', 'data']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_c3js__WEBPACK_IMPORTED_MODULE_1___default.a, _extends({ className: className, type: type, data: data }, props));
});

/* harmony default export */ __webpack_exports__["default"] = (LineChart);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/PieChart.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/PieChart.js ***!
  \*****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-c3js */ "./node_modules/react-c3js/react-c3js.js");
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_c3js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _ChartConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ChartConstants */ "./node_modules/patternfly-react/dist/esm/components/Chart/ChartConstants.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var PieChart = Object(_ChartConstants__WEBPACK_IMPORTED_MODULE_2__["getComposer"])('PIE_CHART')(function (_ref) {
  var className = _ref.className,
      type = _ref.type,
      data = _ref.data,
      props = _objectWithoutProperties(_ref, ['className', 'type', 'data']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_c3js__WEBPACK_IMPORTED_MODULE_1___default.a, _extends({ className: className, type: type, data: data }, props));
});

/* harmony default export */ __webpack_exports__["default"] = (PieChart);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/SingleAreaChart.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/SingleAreaChart.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-c3js */ "./node_modules/react-c3js/react-c3js.js");
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_c3js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _ChartConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ChartConstants */ "./node_modules/patternfly-react/dist/esm/components/Chart/ChartConstants.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var SingleAreaChart = Object(_ChartConstants__WEBPACK_IMPORTED_MODULE_2__["getComposer"])('SINGLE_AREA_CHART')(function (_ref) {
  var className = _ref.className,
      type = _ref.type,
      data = _ref.data,
      props = _objectWithoutProperties(_ref, ['className', 'type', 'data']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_c3js__WEBPACK_IMPORTED_MODULE_1___default.a, _extends({ className: className, type: type, data: data }, props));
});

/* harmony default export */ __webpack_exports__["default"] = (SingleAreaChart);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/SingleLineChart.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/SingleLineChart.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-c3js */ "./node_modules/react-c3js/react-c3js.js");
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_c3js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _ChartConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ChartConstants */ "./node_modules/patternfly-react/dist/esm/components/Chart/ChartConstants.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var SingleLineChart = Object(_ChartConstants__WEBPACK_IMPORTED_MODULE_2__["getComposer"])('SINGLE_LINE_CHART')(function (_ref) {
  var className = _ref.className,
      type = _ref.type,
      data = _ref.data,
      props = _objectWithoutProperties(_ref, ['className', 'type', 'data']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_c3js__WEBPACK_IMPORTED_MODULE_1___default.a, _extends({ className: className, type: type, data: data }, props));
});

/* harmony default export */ __webpack_exports__["default"] = (SingleLineChart);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/SparklineChart.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/SparklineChart.js ***!
  \***********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-c3js */ "./node_modules/react-c3js/react-c3js.js");
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_c3js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _ChartConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ChartConstants */ "./node_modules/patternfly-react/dist/esm/components/Chart/ChartConstants.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var SparklineChart = Object(_ChartConstants__WEBPACK_IMPORTED_MODULE_2__["getComposer"])('SPARKLINE_CHART')(function (_ref) {
  var className = _ref.className,
      type = _ref.type,
      data = _ref.data,
      props = _objectWithoutProperties(_ref, ['className', 'type', 'data']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_c3js__WEBPACK_IMPORTED_MODULE_1___default.a, _extends({ className: className, type: type, data: data }, props));
});

/* harmony default export */ __webpack_exports__["default"] = (SparklineChart);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/StackedBarChart.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/StackedBarChart.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-c3js */ "./node_modules/react-c3js/react-c3js.js");
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_c3js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _ChartConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ChartConstants */ "./node_modules/patternfly-react/dist/esm/components/Chart/ChartConstants.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var StackedBarChart = Object(_ChartConstants__WEBPACK_IMPORTED_MODULE_2__["getComposer"])('STACKED_BAR_CHART')(function (_ref) {
  var className = _ref.className,
      type = _ref.type,
      data = _ref.data,
      props = _objectWithoutProperties(_ref, ['className', 'type', 'data']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_c3js__WEBPACK_IMPORTED_MODULE_1___default.a, _extends({ className: className, type: type, data: data }, props));
});

/* harmony default export */ __webpack_exports__["default"] = (StackedBarChart);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/index.js":
/*!**************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/index.js ***!
  \**************************************************************************/
/*! exports provided: AreaChart, BarChart, DonutChart, GroupedBarChart, LineChart, PieChart, SingleAreaChart, SingleLineChart, SparklineChart, StackedBarChart, BulletChart, BulletChartTitle, BulletChartValue, BulletChartRange, BulletChartAxis, BulletChartAxisTic, BulletChartLegend, BulletChartLegendItem, BulletChartThreshold */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _AreaChart__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AreaChart */ "./node_modules/patternfly-react/dist/esm/components/Chart/AreaChart.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AreaChart", function() { return _AreaChart__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _BarChart__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BarChart */ "./node_modules/patternfly-react/dist/esm/components/Chart/BarChart.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BarChart", function() { return _BarChart__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _BulletChart_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BulletChart/index */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChart", function() { return _BulletChart_index__WEBPACK_IMPORTED_MODULE_2__["BulletChart"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartTitle", function() { return _BulletChart_index__WEBPACK_IMPORTED_MODULE_2__["BulletChartTitle"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartValue", function() { return _BulletChart_index__WEBPACK_IMPORTED_MODULE_2__["BulletChartValue"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartRange", function() { return _BulletChart_index__WEBPACK_IMPORTED_MODULE_2__["BulletChartRange"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartAxis", function() { return _BulletChart_index__WEBPACK_IMPORTED_MODULE_2__["BulletChartAxis"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartAxisTic", function() { return _BulletChart_index__WEBPACK_IMPORTED_MODULE_2__["BulletChartAxisTic"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartLegend", function() { return _BulletChart_index__WEBPACK_IMPORTED_MODULE_2__["BulletChartLegend"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartLegendItem", function() { return _BulletChart_index__WEBPACK_IMPORTED_MODULE_2__["BulletChartLegendItem"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartThreshold", function() { return _BulletChart_index__WEBPACK_IMPORTED_MODULE_2__["BulletChartThreshold"]; });

/* harmony import */ var _DonutChart__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DonutChart */ "./node_modules/patternfly-react/dist/esm/components/Chart/DonutChart.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DonutChart", function() { return _DonutChart__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _GroupedBarChart__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./GroupedBarChart */ "./node_modules/patternfly-react/dist/esm/components/Chart/GroupedBarChart.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GroupedBarChart", function() { return _GroupedBarChart__WEBPACK_IMPORTED_MODULE_4__["default"]; });

/* harmony import */ var _LineChart__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./LineChart */ "./node_modules/patternfly-react/dist/esm/components/Chart/LineChart.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LineChart", function() { return _LineChart__WEBPACK_IMPORTED_MODULE_5__["default"]; });

/* harmony import */ var _PieChart__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./PieChart */ "./node_modules/patternfly-react/dist/esm/components/Chart/PieChart.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PieChart", function() { return _PieChart__WEBPACK_IMPORTED_MODULE_6__["default"]; });

/* harmony import */ var _SingleAreaChart__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./SingleAreaChart */ "./node_modules/patternfly-react/dist/esm/components/Chart/SingleAreaChart.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SingleAreaChart", function() { return _SingleAreaChart__WEBPACK_IMPORTED_MODULE_7__["default"]; });

/* harmony import */ var _SingleLineChart__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./SingleLineChart */ "./node_modules/patternfly-react/dist/esm/components/Chart/SingleLineChart.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SingleLineChart", function() { return _SingleLineChart__WEBPACK_IMPORTED_MODULE_8__["default"]; });

/* harmony import */ var _SparklineChart__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./SparklineChart */ "./node_modules/patternfly-react/dist/esm/components/Chart/SparklineChart.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SparklineChart", function() { return _SparklineChart__WEBPACK_IMPORTED_MODULE_9__["default"]; });

/* harmony import */ var _StackedBarChart__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./StackedBarChart */ "./node_modules/patternfly-react/dist/esm/components/Chart/StackedBarChart.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StackedBarChart", function() { return _StackedBarChart__WEBPACK_IMPORTED_MODULE_10__["default"]; });













/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Dropdown/Dropdown.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Dropdown/Dropdown.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _NavDropdown__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./NavDropdown */ "./node_modules/patternfly-react/dist/esm/components/Dropdown/NavDropdown.js");
/* harmony import */ var react_bootstrap_es_Dropdown__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-bootstrap/es/Dropdown */ "./node_modules/react-bootstrap/es/Dropdown.js");




react_bootstrap_es_Dropdown__WEBPACK_IMPORTED_MODULE_1__["default"].NavDropdown = _NavDropdown__WEBPACK_IMPORTED_MODULE_0__["default"];

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Dropdown__WEBPACK_IMPORTED_MODULE_1__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Dropdown/NavDropdown.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Dropdown/NavDropdown.js ***!
  \***********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_NavDropdown__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/NavDropdown */ "./node_modules/react-bootstrap/es/NavDropdown.js");



/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_NavDropdown__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Dropdown/index.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Dropdown/index.js ***!
  \*****************************************************************************/
/*! exports provided: Dropdown, NavDropdown */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Dropdown */ "./node_modules/patternfly-react/dist/esm/components/Dropdown/Dropdown.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Dropdown", function() { return _Dropdown__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _NavDropdown__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./NavDropdown */ "./node_modules/patternfly-react/dist/esm/components/Dropdown/NavDropdown.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NavDropdown", function() { return _NavDropdown__WEBPACK_IMPORTED_MODULE_1__["default"]; });




/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DropdownKebab/DropdownKebab.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DropdownKebab/DropdownKebab.js ***!
  \******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Dropdown */ "./node_modules/patternfly-react/dist/esm/components/Dropdown/index.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");







/**
 * DropdownKebab Component for Patternfly React
 */
var DropdownKebab = function DropdownKebab(_ref) {
  var className = _ref.className,
      children = _ref.children,
      id = _ref.id,
      pullRight = _ref.pullRight,
      componentClass = _ref.componentClass,
      title = _ref.title,
      toggleStyle = _ref.toggleStyle;

  var kebabClass = classnames__WEBPACK_IMPORTED_MODULE_0___default()('dropdown-kebab-pf', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    _Dropdown__WEBPACK_IMPORTED_MODULE_4__["Dropdown"],
    { className: kebabClass, id: id, pullRight: pullRight, componentClass: componentClass },
    react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
      _Dropdown__WEBPACK_IMPORTED_MODULE_4__["Dropdown"].Toggle,
      { bsStyle: toggleStyle, title: title, noCaret: true },
      react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_3__["Icon"], { name: 'ellipsis-v' })
    ),
    react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
      _Dropdown__WEBPACK_IMPORTED_MODULE_4__["Dropdown"].Menu,
      null,
      children
    )
  );
};
DropdownKebab.propTypes = {
  /** additional kebab dropdown classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** children nodes  */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
  /** kebab dropdown id */
  id: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number]).isRequired,
  /** menu right aligned */
  pullRight: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  /** dropdown component class */
  componentClass: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  /** title for kebab */
  title: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** toggle style */
  toggleStyle: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
DropdownKebab.defaultProps = {
  className: '',
  children: null,
  pullRight: false,
  componentClass: _Button__WEBPACK_IMPORTED_MODULE_5__["ButtonGroup"],
  title: '',
  toggleStyle: 'link'
};
/* harmony default export */ __webpack_exports__["default"] = (DropdownKebab);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DropdownKebab/index.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DropdownKebab/index.js ***!
  \**********************************************************************************/
/*! exports provided: DropdownKebab */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _DropdownKebab__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DropdownKebab */ "./node_modules/patternfly-react/dist/esm/components/DropdownKebab/DropdownKebab.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownKebab", function() { return _DropdownKebab__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/DualList.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/DualList.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/cloneDeep */ "./node_modules/lodash/cloneDeep.js");
/* harmony import */ var lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _components_DualListArrows__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/DualListArrows */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListArrows.js");
/* harmony import */ var _components_DualListSelector__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/DualListSelector */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListSelector.js");
/* harmony import */ var _components_DualListHiddenSelect__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/DualListHiddenSelect */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListHiddenSelect.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./helpers */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/helpers.js");
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; };

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; }; }();

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }










var DualList = function (_React$Component) {
  _inherits(DualList, _React$Component);

  function DualList(props) {
    _classCallCheck(this, DualList);

    var _this = _possibleConstructorReturn(this, (DualList.__proto__ || Object.getPrototypeOf(DualList)).call(this, props));

    _this.onItemChange = function (_ref) {
      var _ref$target = _ref.target,
          checked = _ref$target.checked,
          _ref$target$dataset = _ref$target.dataset,
          position = _ref$target$dataset.position,
          side = _ref$target$dataset.side,
          parentPosition = _ref$target$dataset.parentPosition;
      var _this$props$side = _this.props[side],
          originalSelectCount = _this$props$side.selectCount,
          originalItems = _this$props$side.items,
          isSortAsc = _this$props$side.isSortAsc,
          filterTerm = _this$props$side.filterTerm;

      var items = lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_2___default()(originalItems);
      var item = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["getItem"])(isSortAsc, items, position, parentPosition);
      var selectCount = originalSelectCount;
      item.checked = checked;
      if (Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["itemHasParent"])(item)) {
        var parent = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["getItem"])(isSortAsc, items, parentPosition);
        parent.checked = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["isAllChildrenChecked"])(parent);
        selectCount = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["getUpdatedSelectCount"])(selectCount, checked);
      } else if (Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["itemHasChildren"])(item)) {
        var children = item.children;

        Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["toggleAllItems"])(children, checked);
        selectCount = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["getUpdatedSelectCount"])(selectCount, checked, children.length);
      } else {
        selectCount = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["getUpdatedSelectCount"])(selectCount, checked);
      }
      var isMainChecked = false;
      if (filterTerm) {
        var filteredItemsLength = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["getFilterredItemsLength"])(items);
        var selectedFilteredItemsLength = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["getSelectedFilterredItemsLength"])(items);
        isMainChecked = filteredItemsLength > 0 && selectedFilteredItemsLength === filteredItemsLength;
      } else {
        isMainChecked = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["isAllItemsChecked"])(items, selectCount);
      }
      _this.props.onItemChange({
        side: side,
        items: items,
        selectCount: selectCount,
        isMainChecked: isMainChecked
      });
    };

    _this.onMainCheckboxChange = function (_ref2) {
      var _ref2$target = _ref2.target,
          checked = _ref2$target.checked,
          side = _ref2$target.dataset.side;
      var _this$props$side2 = _this.props[side],
          originalItems = _this$props$side2.items,
          filterTerm = _this$props$side2.filterTerm,
          originalSelectCount = _this$props$side2.selectCount;

      var items = lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_2___default()(originalItems);
      var selectCount = originalSelectCount;
      if (filterTerm) {
        var filterredItems = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["getFilterredItems"])(items);
        var toggledAmount = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["toggleAllItems"])(filterredItems, checked);
        selectCount += toggledAmount * (checked ? 1 : -1);
      } else {
        var _toggledAmount = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["toggleAllItems"])(items, checked);
        selectCount = checked ? selectCount + _toggledAmount : 0;
      }
      _this.props.onMainCheckboxChange({
        side: side,
        checked: checked,
        items: items,
        selectCount: selectCount
      });
    };

    _this.onSortClick = function (_ref3) {
      var side = _ref3.target.dataset.side;
      var _this$props$side3 = _this.props[side],
          items = _this$props$side3.items,
          isSortAsc = _this$props$side3.isSortAsc;

      var itemsReversed = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["reverseAllItemsOrder"])(items);
      _this.props.onSortClick({
        side: side,
        items: itemsReversed,
        isSortAsc: !isSortAsc
      });
    };

    _this.onFilterChange = function (event) {
      /** https://reactjs.org/docs/events.html#event-pooling */
      event.persist();
      _this.onFilterChangeDebounced(event);
    };

    _this.emitFilterChange = function (_ref4) {
      var _ref4$target = _ref4.target,
          value = _ref4$target.value,
          side = _ref4$target.dataset.side;
      var _this$props$side4 = _this.props[side],
          originalItems = _this$props$side4.items,
          selectCount = _this$props$side4.selectCount;

      var filterTerm = value.trim();
      if (!value) {
        var _items = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["makeAllHiddenFilteredItemsVisible"])(originalItems);
        var _isMainChecked = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["isAllItemsChecked"])(_items, selectCount);
        _this.props.onFilterChange({ side: side, filterTerm: filterTerm, items: _items, isMainChecked: _isMainChecked });
        return;
      }
      var items = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["filterByHiding"])(originalItems, filterTerm);
      var filteredItemsLength = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["getFilterredItemsLength"])(items);
      var isMainChecked = filteredItemsLength > 0 && Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["getSelectedFilterredItemsLength"])(items) === filteredItemsLength;
      _this.props.onFilterChange({ side: side, filterTerm: filterTerm, items: items, isMainChecked: isMainChecked });
    };

    _this.moveTo = function (otherSide) {
      var _this$props$onChange;

      var side = otherSide === 'right' ? 'left' : 'right';
      var sideState = _this.props[side];
      var otherSideState = _this.props[otherSide];
      var sideItemsWithRemainChildren = [];
      var otherSideItems = lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_2___default()(otherSideState.items);
      var sideItems = sideState.items.filter(function (item) {
        if (Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["isItemSelected"])(item)) {
          if (Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["itemHasChildren"])(item)) {
            var _isItemExistOnList = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["isItemExistOnList"])(otherSideItems, item.label),
                isParentExist = _isItemExistOnList.isParentExist,
                parentIndex = _isItemExistOnList.parentIndex;

            if (isParentExist) {
              var children = otherSideItems[parentIndex].children;

              children.push.apply(children, _toConsumableArray(item.children));
              return false;
            }
          }
          otherSideItems.push(item);
          return false;
        } else if (Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["itemHasChildren"])(item)) {
          var selectedChildren = [];
          var unselectedChildren = [];
          item.children.forEach(function (childItem) {
            if (Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["isItemSelected"])(childItem)) {
              selectedChildren.push(childItem);
            } else {
              unselectedChildren.push(childItem);
            }
          });
          if (selectedChildren.length > 0) {
            var _isItemExistOnList2 = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["isItemExistOnList"])(otherSideItems, item.label),
                _isParentExist = _isItemExistOnList2.isParentExist,
                _parentIndex = _isItemExistOnList2.parentIndex;

            if (_isParentExist) {
              var _otherSideItems$_pare;

              (_otherSideItems$_pare = otherSideItems[_parentIndex].children).push.apply(_otherSideItems$_pare, selectedChildren);
            } else {
              otherSideItems.push(_extends({}, item, { checked: true, children: selectedChildren }));
            }
            if (unselectedChildren.length > 0) {
              sideItemsWithRemainChildren.push(_extends({}, item, { children: unselectedChildren }));
            }
            return false;
          }
        }
        return true;
      });
      if (sideItemsWithRemainChildren.length > 0) {
        var _sideItems;

        (_sideItems = sideItems).push.apply(_sideItems, sideItemsWithRemainChildren);
      }
      var updatedSideState = _extends({}, sideState, {
        selectCount: 0,
        isMainChecked: false
      });

      var updatedOtherSideState = _extends({}, otherSideState, {
        selectCount: 0,
        isMainChecked: false
      });

      sideItems = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["arrangeArray"])(_extends({}, updatedSideState, { items: sideItems }));
      otherSideItems = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["arrangeArray"])(_extends({}, updatedOtherSideState, { items: otherSideItems, resetAllSelected: true }));

      _this.props.onChange((_this$props$onChange = {}, _defineProperty(_this$props$onChange, side, _extends({}, updatedSideState, {
        items: sideItems
      })), _defineProperty(_this$props$onChange, otherSide, _extends({}, updatedOtherSideState, {
        items: otherSideItems
      })), _this$props$onChange));
    };

    _this.leftArrowClick = function () {
      var left = _this.props.arrows.left;

      left.onClick();
      _this.moveTo('left');
    };

    _this.rightArrowClick = function () {
      var right = _this.props.arrows.right;

      right.onClick();
      _this.moveTo('right');
    };

    _this.onFilterChangeDebounced = Object(_common_helpers__WEBPACK_IMPORTED_MODULE_6__["debounce"])(_this.emitFilterChange, 200);
    return _this;
  }

  _createClass(DualList, [{
    key: 'render',
    value: function render() {
      var _props = this.props,
          left = _props.left,
          right = _props.right,
          arrows = _props.arrows,
          allowHiddenInputs = _props.allowHiddenInputs;

      var hiddenInputs = allowHiddenInputs ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,
        null,
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_DualListHiddenSelect__WEBPACK_IMPORTED_MODULE_5__["default"], _extends({}, left.inputProps, { items: left.items })),
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_DualListHiddenSelect__WEBPACK_IMPORTED_MODULE_5__["default"], _extends({}, right.inputProps, { items: right.items }))
      ) : null;
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'div',
        { className: 'dual-list-pf' },
        hiddenInputs,
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_DualListSelector__WEBPACK_IMPORTED_MODULE_4__["default"], _extends({
          side: 'left'
        }, left, {
          onItemChange: this.onItemChange,
          onSortClick: this.onSortClick,
          onFilterChange: this.onFilterChange,
          onMainCheckboxChange: this.onMainCheckboxChange
        })),
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_DualListArrows__WEBPACK_IMPORTED_MODULE_3__["default"], {
          left: { onClick: this.leftArrowClick, ariaLabel: arrows.left.ariaLabel },
          right: { onClick: this.rightArrowClick, ariaLabel: arrows.right.ariaLabel }
        }),
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_DualListSelector__WEBPACK_IMPORTED_MODULE_4__["default"], _extends({
          side: 'right'
        }, right, {
          onItemChange: this.onItemChange,
          onSortClick: this.onSortClick,
          onFilterChange: this.onFilterChange,
          onMainCheckboxChange: this.onMainCheckboxChange
        }))
      );
    }
  }]);

  return DualList;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

DualList.propTypes = {
  /**
   * - items: Array of objects that must contain a label and a value.
   * - options: The Kebab menu items.
   * - isSortAsc: Set the list items sorting direction.
   * - sortBy: set the list items sorting factor.
   * - isMainChecked: Set the main checkbox state.
   */
  left: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    items: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
      label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,
      value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]).isRequired,
      children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
        label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
        value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string])
      }))
    })),
    options: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
    isSortAsc: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
    sortBy: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    isMainChecked: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
    inputProps: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object
  }),
  /**
   * - items: Array of objects that must contain a label and a value.
   * - options: The Kebab menu items.
   * - isSortAsc: Set the list items sorting direction.
   * - isMainChecked: Set the main checkbox state.
   * - sortBy: set the list items sorting factor.
   */
  right: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    items: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
      label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
      value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string])
    })),
    options: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
    isSortAsc: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
    sortBy: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    isMainChecked: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
    inputProps: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object
  }),
  /**
   * - Conatains the left and right arrows properties,
   * - Where in every object there are:
   * - onClick - function which determine the onClick event,
   * - ariaLabel - set the aria-label text.
   */
  arrows: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    left: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
      onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
      ariaLabel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
    }),
    right: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
      onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
      ariaLabel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
    })
  }),
  /**
   * Allows adding hidden select inputs
   * that reflects the dual list selected items.
   * It can be used while submitting a form to access the dual list data.
   * */
  allowHiddenInputs: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /**
   * Function that runs after an item was clicked.
   * receives an object of: { side, items, selectCount, isMainChecked } as a callback.
   */
  onItemChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /**
   * Function that runs after the sort icon was clicked.
   * receives an object of: { side, items, isSortAsc } as a callback.
   */
  onSortClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /**
   * Function that runs after the filter input has changed.
   * receives an object of: { side, filterTerm } as a callback.
   */
  onFilterChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /**
   * Function that runs after the main checkbox was clicked.
   * receives an object of: { side, checked, items, selectCount } as a callback.
   */
  onMainCheckboxChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /**
   * Function that runs after items have been moved between the lists.
   * receives an object of: { left, right } updated sides as a callback.
   */
  onChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};

DualList.defaultProps = {
  left: {
    items: [],
    options: null,
    isSortAsc: true,
    sortBy: 'label',
    filterTerm: '',
    isMainChecked: false,
    inputProps: null
  },
  right: {
    items: [],
    options: null,
    isSortAsc: true,
    sortBy: 'label',
    filterTerm: '',
    isMainChecked: false,
    inputProps: null
  },
  arrows: {
    left: {
      onClick: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
      ariaLabel: null
    },
    right: {
      onClick: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
      ariaLabel: null
    }
  },
  allowHiddenInputs: false,
  onItemChange: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
  onSortClick: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
  onFilterChange: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
  onMainCheckboxChange: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
  onChange: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"]
};

/* harmony default export */ __webpack_exports__["default"] = (DualList);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/DualListControlled.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/DualListControlled.js ***!
  \**************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash */ "./node_modules/lodash/lodash.js");
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./index */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/index.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./helpers */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/helpers.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; };

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; }; }();

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }








var DualListControlled = function (_React$Component) {
  _inherits(DualListControlled, _React$Component);

  function DualListControlled(props) {
    _classCallCheck(this, DualListControlled);

    var _this = _possibleConstructorReturn(this, (DualListControlled.__proto__ || Object.getPrototypeOf(DualListControlled)).call(this, props));

    _this.onItemChange = function (_ref) {
      var side = _ref.side,
          items = _ref.items,
          selectCount = _ref.selectCount,
          isMainChecked = _ref.isMainChecked;
      var onItemChange = _this.props.onItemChange;

      _this.setState(_defineProperty({}, side, _extends({}, _this.state[side], {
        items: items,
        selectCount: selectCount,
        isMainChecked: isMainChecked
      })), function () {
        return onItemChange(_this.state);
      });
    };

    _this.onMainCheckboxChange = function (_ref2) {
      var side = _ref2.side,
          checked = _ref2.checked,
          items = _ref2.items,
          selectCount = _ref2.selectCount;
      var onMainCheckboxChange = _this.props.onMainCheckboxChange;

      _this.setState(_defineProperty({}, side, _extends({}, _this.state[side], {
        items: items,
        selectCount: selectCount,
        isMainChecked: checked
      })), function () {
        return onMainCheckboxChange(_this.state);
      });
    };

    _this.onSortClick = function (_ref3) {
      var side = _ref3.side,
          items = _ref3.items,
          isSortAsc = _ref3.isSortAsc;
      var onSortClick = _this.props.onSortClick;

      _this.setState(_defineProperty({}, side, _extends({}, _this.state[side], {
        items: items,
        isSortAsc: isSortAsc
      })), function () {
        return onSortClick(_this.state);
      });
    };

    _this.onFilterChange = function (_ref4) {
      var side = _ref4.side,
          filterTerm = _ref4.filterTerm,
          items = _ref4.items,
          isMainChecked = _ref4.isMainChecked;
      var onFilterChange = _this.props.onFilterChange;

      _this.setState(_defineProperty({}, side, _extends({}, _this.state[side], {
        filterTerm: filterTerm,
        items: items,
        isMainChecked: isMainChecked
      })), function () {
        return onFilterChange(_this.state);
      });
    };

    _this.onChange = function (_ref5) {
      var left = _ref5.left,
          right = _ref5.right;
      var onChange = _this.props.onChange;

      _this.setState({ left: left, right: right }, function () {
        return onChange(_this.state);
      });
    };

    _this.state = _extends({
      prevProps: props
    }, Object(_helpers__WEBPACK_IMPORTED_MODULE_4__["adjustProps"])(props));
    return _this;
  }

  _createClass(DualListControlled, [{
    key: 'componentDidMount',
    value: function componentDidMount() {
      var onComponentInit = this.props.onComponentInit;

      onComponentInit(this.state);
    }
  }, {
    key: 'render',
    value: function render() {
      var _state = this.state,
          left = _state.left,
          right = _state.right,
          allowHiddenInputs = _state.allowHiddenInputs;

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_3__["DualList"], {
        left: _extends({}, left),
        right: _extends({}, right),
        onItemChange: this.onItemChange,
        onSortClick: this.onSortClick,
        onFilterChange: this.onFilterChange,
        onMainCheckboxChange: this.onMainCheckboxChange,
        onChange: this.onChange,
        allowHiddenInputs: allowHiddenInputs
      });
    }
  }], [{
    key: 'getDerivedStateFromProps',
    value: function getDerivedStateFromProps(nextProps, prevState) {
      return !Object(lodash__WEBPACK_IMPORTED_MODULE_2__["isEqual"])(nextProps, prevState.prevProps) ? _extends({
        prevProps: nextProps
      }, Object(_helpers__WEBPACK_IMPORTED_MODULE_4__["adjustProps"])(nextProps)) : null;
    }
  }]);

  return DualListControlled;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

DualListControlled.propTypes = {
  /**
   * Function that runs after items have been moved between the lists.
   * Receives the updated state as a callback.
   */
  onChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /**
   * Function that runs after an item was clicked.
   * Receives the updated state as a callback.
   */
  onItemChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /**
   * Function that runs after the main checkbox was clicked.
   * Receives the updated state as a callback.
   */
  onMainCheckboxChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /**
   * Function that runs after the sort icon was clicked.
   * Receives the updated state as a callback.
   */
  onSortClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /**
   * Function that runs after the filter input has changed.
   * Receives the updated state as a callback.
   */
  onFilterChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /**
   * Function that runs after the component had mounted.
   * Receives the updated state as a callback.
   */
  onComponentInit: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};

DualListControlled.defaultProps = {
  onChange: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"],
  onItemChange: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"],
  onMainCheckboxChange: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"],
  onSortClick: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"],
  onFilterChange: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"],
  onComponentInit: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"]
};

/* harmony default export */ __webpack_exports__["default"] = (DualListControlled);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListArrows.js":
/*!*********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListArrows.js ***!
  \*********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../constants */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/constants.js");






var DualListArrows = function DualListArrows(_ref) {
  var right = _ref.right,
      left = _ref.left;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    { className: 'dual-list-pf-arrows' },
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
      'aria-label': right.ariaLabel,
      name: 'chevron-circle-down',
      size: 'lg',
      tabIndex: '0',
      onClick: right.onClick,
      onKeyPress: right.onClick
    }),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
      'aria-label': left.ariaLabel,
      name: 'chevron-circle-up',
      size: 'lg',
      tabIndex: '0',
      onClick: left.onClick,
      onKeyPress: left.onClick
    })
  );
};

DualListArrows.propTypes = {
  left: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    /** Determine what happens on left/up arrow click */
    onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
    /** Set the left/up arrow aria-label */
    ariaLabel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
  }),
  right: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
    ariaLabel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
  })
};

DualListArrows.defaultProps = {
  left: {
    onClick: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
    ariaLabel: _constants__WEBPACK_IMPORTED_MODULE_4__["LEFT_ARROW_ARIA_LABEL"]
  },
  right: {
    onClick: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
    ariaLabel: _constants__WEBPACK_IMPORTED_MODULE_4__["RIGHT_ARROW_ARIA_LABEL"]
  }
};

/* harmony default export */ __webpack_exports__["default"] = (DualListArrows);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListBody.js":
/*!*******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListBody.js ***!
  \*******************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _DualListItems__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DualListItems */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListItems.js");
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../constants */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/constants.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../helpers */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/helpers.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");







var DualListBody = function DualListBody(_ref) {
  var items = _ref.items,
      filterTerm = _ref.filterTerm,
      onItemChange = _ref.onItemChange,
      side = _ref.side,
      noItemsFoundMessage = _ref.noItemsFoundMessage,
      noItemsMessage = _ref.noItemsMessage;

  var listItems = void 0;
  if (items.length > 0) {
    listItems = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_DualListItems__WEBPACK_IMPORTED_MODULE_2__["default"], { items: items, filterTerm: filterTerm, onChange: onItemChange, side: side });
    if (Object(_helpers__WEBPACK_IMPORTED_MODULE_4__["getFilterredItemsLength"])(items) === 0) {
      listItems = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'div',
        { className: 'dual-list-pf-no-items' },
        noItemsFoundMessage
      );
    }
  } else {
    listItems = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'div',
      { className: 'dual-list-pf-no-items' },
      noItemsMessage
    );
  }
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    { className: 'dual-list-pf-body' },
    listItems
  );
};

DualListBody.propTypes = {
  /** An array of items to create list items elements uppon */
  items: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string])
  })),
  /** The term which is flitering the list. */
  filterTerm: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** A function that is running when the item selected state is toggled. */
  onItemChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** The side of the selector. */
  side: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Sets the body's message when no items were found while filtering */
  noItemsFoundMessage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Sets the body's message when there are no items at all */
  noItemsMessage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};

DualListBody.defaultProps = {
  items: [],
  filterTerm: null,
  onItemChange: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"],
  side: null,
  noItemsFoundMessage: _constants__WEBPACK_IMPORTED_MODULE_3__["NO_ITEMS_FOUND"],
  noItemsMessage: _constants__WEBPACK_IMPORTED_MODULE_3__["NO_ITEMS"]
};

/* harmony default export */ __webpack_exports__["default"] = (DualListBody);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListCounter.js":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListCounter.js ***!
  \**********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helpers */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/helpers.js");




var DualListCounter = function DualListCounter(_ref) {
  var selected = _ref.selected,
      total = _ref.total,
      getCounterMessage = _ref.getCounterMessage;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'strong',
    null,
    getCounterMessage(selected, total)
  );
};

DualListCounter.propTypes = {
  /** The Amount of selected items in the selector */
  selected: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  /** The Amount of total items in the selectror */
  total: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  /** Determines the counter message in the selector's footer,
   * receives the selected and total amounts of items.
   */
  getCounterMessage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};

DualListCounter.defaultProps = {
  selected: 0,
  total: 0,
  getCounterMessage: _helpers__WEBPACK_IMPORTED_MODULE_2__["getCounterMessage"]
};

/* harmony default export */ __webpack_exports__["default"] = (DualListCounter);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListDropDown.js":
/*!***********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListDropDown.js ***!
  \***********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var uuid_v1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! uuid/v1 */ "./node_modules/uuid/v1.js");
/* harmony import */ var uuid_v1__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(uuid_v1__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");





var DualListDropDown = function DualListDropDown(_ref) {
  var id = _ref.id,
      children = _ref.children;

  var kebabID = id || 'dual-list-pf-kebab-' + uuid_v1__WEBPACK_IMPORTED_MODULE_2___default()();
  return children ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _index__WEBPACK_IMPORTED_MODULE_3__["DropdownKebab"],
    { id: kebabID, pullRight: true },
    children
  ) : null;
};

DualListDropDown.propTypes = {
  /** The menu items */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** ID for the kebab container */
  id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number])
};

DualListDropDown.defaultProps = {
  children: null,
  id: null
};

/* harmony default export */ __webpack_exports__["default"] = (DualListDropDown);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListFilter.js":
/*!*********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListFilter.js ***!
  \*********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../constants */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/constants.js");






var DualListFilter = function DualListFilter(_ref) {
  var onChange = _ref.onChange,
      side = _ref.side,
      placeHolder = _ref.placeHolder;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'span',
    { className: 'dual-list-pf-filter' },
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('input', { onChange: onChange, type: 'text', placeholder: placeHolder, autoComplete: 'off', 'data-side': side }),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Icon"], { size: 'lg', name: 'search', className: 'search-icon' })
  );
};

DualListFilter.propTypes = {
  /** The filter function that runs on the list items when the input changes. */
  onChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** The side of the selector. */
  side: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Filter's placeholder. */
  placeHolder: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};

DualListFilter.defaultProps = {
  onChange: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  side: null,
  placeHolder: _constants__WEBPACK_IMPORTED_MODULE_4__["FILTER_LABEL"]
};

/* harmony default export */ __webpack_exports__["default"] = (DualListFilter);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListFooter.js":
/*!*********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListFooter.js ***!
  \*********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _DualListCounter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DualListCounter */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListCounter.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helpers */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/helpers.js");





var DualListFooter = function DualListFooter(_ref) {
  var items = _ref.items,
      selectCount = _ref.selectCount,
      getCounterMessage = _ref.getCounterMessage;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    { className: 'dual-list-pf-footer' },
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_DualListCounter__WEBPACK_IMPORTED_MODULE_2__["default"], { selected: selectCount, total: Object(_helpers__WEBPACK_IMPORTED_MODULE_3__["getItemsLength"])(items), getCounterMessage: getCounterMessage })
  );
};

DualListFooter.propTypes = {
  /** Items array to get the length from. */
  items: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array,
  /** Amount of selected items in the selector. */
  selectCount: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  /** Determines the counter message in the selector's footer,
   * receives the selected and total amounts of items.
   */
  getCounterMessage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};

DualListFooter.defaultProps = {
  items: [],
  selectCount: 0,
  getCounterMessage: _helpers__WEBPACK_IMPORTED_MODULE_3__["getCounterMessage"]
};

/* harmony default export */ __webpack_exports__["default"] = (DualListFooter);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListHeading.js":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListHeading.js ***!
  \**********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _DualListFilter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DualListFilter */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListFilter.js");
/* harmony import */ var _DualListSort__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DualListSort */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListSort.js");
/* harmony import */ var _DualListMainCheckbox__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./DualListMainCheckbox */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListMainCheckbox.js");
/* harmony import */ var _DualListDropDown__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./DualListDropDown */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListDropDown.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../constants */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/constants.js");









var DualListHeading = function DualListHeading(_ref) {
  var isSortAsc = _ref.isSortAsc,
      onSortClick = _ref.onSortClick,
      onFilterChange = _ref.onFilterChange,
      onMainCheckboxChange = _ref.onMainCheckboxChange,
      kebabMenu = _ref.kebabMenu,
      side = _ref.side,
      sortAriaLabel = _ref.sortAriaLabel,
      isMainChecked = _ref.isMainChecked,
      kebabID = _ref.kebabID;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    { className: 'dual-list-pf-heading' },
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_DualListMainCheckbox__WEBPACK_IMPORTED_MODULE_4__["default"], { side: side, onChange: onMainCheckboxChange, isChecked: isMainChecked }),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_DualListFilter__WEBPACK_IMPORTED_MODULE_2__["default"], { side: side, onChange: onFilterChange }),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_DualListSort__WEBPACK_IMPORTED_MODULE_3__["default"], { side: side, onClick: onSortClick, isSortAsc: isSortAsc, ariaLabel: sortAriaLabel }),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _DualListDropDown__WEBPACK_IMPORTED_MODULE_5__["default"],
      { id: kebabID },
      kebabMenu
    )
  );
};

DualListHeading.propTypes = {
  /** Which type of sort is it to determine the right icon. */
  isSortAsc: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** The function which is running when sort icon is clicked. */
  onSortClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** The filter function that runs on the list items when the input changes. */
  onFilterChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** The function which is being called on checked state toggled. */
  onMainCheckboxChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** The Kebab menu items */
  kebabMenu: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Which side is the selector, passed by the onClick function. */
  side: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Sets the aria-label of the icon. */
  sortAriaLabel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** controlls the main checkbox */
  isMainChecked: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** ID for the kebab container */
  kebabID: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number])
};

DualListHeading.defaultProps = {
  isSortAsc: true,
  onSortClick: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
  onFilterChange: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
  onMainCheckboxChange: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
  kebabMenu: null,
  side: null,
  sortAriaLabel: _constants__WEBPACK_IMPORTED_MODULE_7__["SORT_ARIA_LABEL"],
  isMainChecked: false,
  kebabID: null
};

/* harmony default export */ __webpack_exports__["default"] = (DualListHeading);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListHiddenSelect.js":
/*!***************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListHiddenSelect.js ***!
  \***************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var DualListHiddenSelect = function DualListHiddenSelect(_ref) {
  var items = _ref.items,
      props = _objectWithoutProperties(_ref, ['items']);

  var selectedValues = [];
  var options = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,
    null,
    items ? items.map(function (_ref2, index) {
      var value = _ref2.value,
          children = _ref2.children,
          label = _ref2.label;

      if (children) {
        return children.map(function (_ref3, childIndex) {
          var childValue = _ref3.value,
              childLabel = _ref3.label;

          selectedValues.push(childValue);
          return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
            'option',
            { key: index + '-' + childIndex, value: childValue },
            childLabel
          );
        });
      }
      selectedValues.push(value);
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'option',
        { key: index, value: value },
        label
      );
    }) : react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('option', null)
  );
  return (
    // Added 'onChange' after the browser threw a warning of using the value attribute without it.
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'select',
      _extends({}, props, { multiple: true, hidden: true, value: selectedValues, onChange: _common_helpers__WEBPACK_IMPORTED_MODULE_2__["noop"] }),
      options
    )
  );
};

DualListHiddenSelect.propTypes = {
  /** An array of items */
  items: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,
    value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]).isRequired,
    children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
      label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
      value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string])
    }))
  }))
};

DualListHiddenSelect.defaultProps = {
  items: []
};

/* harmony default export */ __webpack_exports__["default"] = (DualListHiddenSelect);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListItem.js":
/*!*******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListItem.js ***!
  \*******************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _DualListItemTooltip__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DualListItemTooltip */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListItemTooltip.js");
/* harmony import */ var _components_TypeAheadSelect__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../components/TypeAheadSelect */ "./node_modules/patternfly-react/dist/esm/components/TypeAheadSelect/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");







var Highlighter = _components_TypeAheadSelect__WEBPACK_IMPORTED_MODULE_4__["TypeAheadSelect"].Highlighter;


var DualListItem = function DualListItem(_ref) {
  var checked = _ref.checked,
      className = _ref.className,
      position = _ref.position,
      parentPosition = _ref.parentPosition,
      value = _ref.value,
      label = _ref.label,
      filterTerm = _ref.filterTerm,
      onChange = _ref.onChange,
      side = _ref.side,
      hidden = _ref.hidden,
      hiddenByFilter = _ref.hiddenByFilter,
      disabled = _ref.disabled,
      tooltipID = _ref.tooltipID,
      tooltipText = _ref.tooltipText;

  var cx = classnames__WEBPACK_IMPORTED_MODULE_2___default()('dual-list-pf-item', className, checked && 'selected', disabled && 'disabled');
  var itemLabel = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'span',
    { className: 'dual-list-pf-item-label' },
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      Highlighter,
      { search: filterTerm },
      label
    )
  );
  var item = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'label',
    { className: cx, hidden: hiddenByFilter || hidden },
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('input', {
      type: 'checkbox',
      'data-position': position,
      'data-parent-position': parentPosition,
      onChange: onChange,
      checked: checked || false,
      value: value,
      'data-side': side,
      disabled: disabled
    }),
    itemLabel
  );
  var getTooltipID = function getTooltipID() {
    var uniqueTooltipID = 'dual-list-item-tooltip-' + side;
    if (parentPosition) {
      uniqueTooltipID += '-' + parentPosition;
    }
    uniqueTooltipID += '-' + position;
    return uniqueTooltipID;
  };
  return tooltipText ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _DualListItemTooltip__WEBPACK_IMPORTED_MODULE_3__["default"],
    { text: tooltipText, id: tooltipID || getTooltipID() },
    item
  ) : item;
};

DualListItem.propTypes = {
  /** Is the element chacked */
  checked: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Additional html class */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** The element position, used by the onChange function. */
  position: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  /** The element parent position, used by the onChange function. */
  parentPosition: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  /** The element value, used by the onChange function. */
  value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]),
  /** The element label, used by the onChange function. */
  label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** The term which is flitering the list. */
  filterTerm: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** A function that is running when the item selected state is toggled. */
  onChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** The side of the selector. */
  side: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Sets the item visibillity when filtering. */
  hiddenByFilter: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Sets the item default visibillity, can't be reverted. */
  hidden: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Disable the item to move between lists */
  disabled: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** unique tooltip ID */
  tooltipID: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number]),
  /** text to be shown on the tooltip */
  tooltipText: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};

DualListItem.defaultProps = {
  checked: false,
  className: null,
  parentPosition: null,
  position: 0,
  value: '',
  label: null,
  filterTerm: null,
  onChange: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"],
  side: null,
  hiddenByFilter: false,
  hidden: false,
  disabled: false,
  tooltipID: null,
  tooltipText: null
};

/* harmony default export */ __webpack_exports__["default"] = (DualListItem);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListItemTooltip.js":
/*!**************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListItemTooltip.js ***!
  \**************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");




var DualListItemTooltip = function DualListItemTooltip(_ref) {
  var id = _ref.id,
      text = _ref.text,
      children = _ref.children;

  var tooltip = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _index__WEBPACK_IMPORTED_MODULE_2__["Tooltip"],
    { id: id },
    text
  );
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _index__WEBPACK_IMPORTED_MODULE_2__["OverlayTrigger"],
    { overlay: tooltip, placement: 'top', trigger: ['hover', 'focus'], delayShow: 150 },
    children
  );
};

DualListItemTooltip.propTypes = {
  /** unique tooltip ID */
  id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number]),
  /** text to be shown on the tooltip */
  text: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};

DualListItemTooltip.defaultProps = {
  id: null,
  text: null,
  children: null
};

/* harmony default export */ __webpack_exports__["default"] = (DualListItemTooltip);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListItems.js":
/*!********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListItems.js ***!
  \********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _DualListItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DualListItem */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListItem.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; };






var DualListItems = function DualListItems(_ref) {
  var items = _ref.items,
      filterTerm = _ref.filterTerm,
      onChange = _ref.onChange,
      side = _ref.side;

  var menuItems = items.map(function (item, index) {
    var children = item.children;

    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,
      { key: 'fragment-' + index },
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_DualListItem__WEBPACK_IMPORTED_MODULE_2__["default"], _extends({
        className: children && 'parent'
      }, item, {
        key: 'item-' + index,
        filterTerm: filterTerm,
        onChange: onChange,
        side: side
      })),
      children && children.map(function (child, childIndex) {
        return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_DualListItem__WEBPACK_IMPORTED_MODULE_2__["default"], _extends({
          className: 'child'
        }, child, {
          key: item.label + '-child' + childIndex,
          filterTerm: filterTerm,
          onChange: onChange,
          side: side
        }));
      })
    );
  });

  return menuItems;
};

DualListItems.propTypes = {
  /** An array of items to create list items elements uppon */
  items: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,
    value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]).isRequired,
    children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
      label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
      value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string])
    }))
  })),
  /** The term which is flitering the list. */
  filterTerm: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** A function that is running when the item selected state is toggled. */
  onChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** The side of the selector. */
  side: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};

DualListItems.defaultProps = {
  items: [],
  filterTerm: null,
  onChange: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  side: null
};

/* harmony default export */ __webpack_exports__["default"] = (DualListItems);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListMainCheckbox.js":
/*!***************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListMainCheckbox.js ***!
  \***************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");




var DualListMainCheckbox = function DualListMainCheckbox(_ref) {
  var isChecked = _ref.isChecked,
      side = _ref.side,
      onChange = _ref.onChange;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('input', {
    className: 'dual-list-pf-main-checkbox',
    type: 'checkbox',
    'data-side': side,
    onChange: onChange,
    checked: isChecked
  });
};

DualListMainCheckbox.propTypes = {
  /** controlls the checkbox */
  isChecked: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** the side of the selectors, passed in the onChange function. */
  side: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** The function which is being called on checked state toggled. */
  onChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};

DualListMainCheckbox.defaultProps = {
  isChecked: false,
  side: null,
  onChange: _common_helpers__WEBPACK_IMPORTED_MODULE_2__["noop"]
};

/* harmony default export */ __webpack_exports__["default"] = (DualListMainCheckbox);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListSelector.js":
/*!***********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListSelector.js ***!
  \***********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _DualListHeading__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DualListHeading */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListHeading.js");
/* harmony import */ var _DualListBody__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DualListBody */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListBody.js");
/* harmony import */ var _DualListFooter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DualListFooter */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListFooter.js");





var DualListSelector = function DualListSelector(props) {
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    { className: 'dual-list-pf-selector' },
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_DualListHeading__WEBPACK_IMPORTED_MODULE_1__["default"], props),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_DualListBody__WEBPACK_IMPORTED_MODULE_2__["default"], props),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_DualListFooter__WEBPACK_IMPORTED_MODULE_3__["default"], props)
  );
};

/* harmony default export */ __webpack_exports__["default"] = (DualListSelector);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListSort.js":
/*!*******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListSort.js ***!
  \*******************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../.. */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../constants */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/constants.js");






var DualListSort = function DualListSort(_ref) {
  var onClick = _ref.onClick,
      side = _ref.side,
      isSortAsc = _ref.isSortAsc,
      ariaLabel = _ref.ariaLabel;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(___WEBPACK_IMPORTED_MODULE_2__["Icon"], {
    'aria-label': ariaLabel,
    className: 'dual-list-pf-sort-icon',
    type: 'pf',
    name: 'sort-common-' + (isSortAsc ? 'asc' : 'desc'),
    'data-side': side,
    tabIndex: '0',
    onClick: onClick,
    onKeyPress: onClick
  });
};

DualListSort.propTypes = {
  /** The function which is running when sort icon is clicked. */
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Which side is the selector, passed by the onClick function. */
  side: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Which type of sort is it to determine the right icon. */
  isSortAsc: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Sets the aria-label of the icon. */
  ariaLabel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};

DualListSort.defaultProps = {
  onClick: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  side: null,
  isSortAsc: true,
  ariaLabel: _constants__WEBPACK_IMPORTED_MODULE_4__["SORT_ARIA_LABEL"]
};

/* harmony default export */ __webpack_exports__["default"] = (DualListSort);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/constants.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/constants.js ***!
  \*****************************************************************************************/
/*! exports provided: NO_ITEMS_FOUND, NO_ITEMS, SORT_ARIA_LABEL, FILTER_LABEL, RIGHT_ARROW_ARIA_LABEL, LEFT_ARROW_ARIA_LABEL */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NO_ITEMS_FOUND", function() { return NO_ITEMS_FOUND; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NO_ITEMS", function() { return NO_ITEMS; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SORT_ARIA_LABEL", function() { return SORT_ARIA_LABEL; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FILTER_LABEL", function() { return FILTER_LABEL; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RIGHT_ARROW_ARIA_LABEL", function() { return RIGHT_ARROW_ARIA_LABEL; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LEFT_ARROW_ARIA_LABEL", function() { return LEFT_ARROW_ARIA_LABEL; });
var NO_ITEMS_FOUND = 'No items were found';

var NO_ITEMS = 'No items to show';

var SORT_ARIA_LABEL = 'reverse-sort-order';

var FILTER_LABEL = 'Filter';

var RIGHT_ARROW_ARIA_LABEL = 'Remove Selection';

var LEFT_ARROW_ARIA_LABEL = 'Add Selection';

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/helpers.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/helpers.js ***!
  \***************************************************************************************/
/*! exports provided: filterByHiding, makeAllHiddenFilteredItemsVisible, sortItems, shouldItemBeChecked, arrangeArray, getDefaultProps, getCheckedAmount, getCounterMessage, adjustProps, isAllChildrenChecked, getItemsLength, reverseAllItemsOrder, getItem, getUpdatedSelectCount, itemHasParent, itemHasChildren, getItemPosition, toggleAllItems, isAllItemsChecked, isItemExistOnList, getFilterredItems, getFilterredItemsLength, getSelectedFilterredItemsLength, isItemSelected, isItemHiddenByFilter, isItemDisabled */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "filterByHiding", function() { return filterByHiding; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeAllHiddenFilteredItemsVisible", function() { return makeAllHiddenFilteredItemsVisible; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sortItems", function() { return sortItems; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "shouldItemBeChecked", function() { return shouldItemBeChecked; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "arrangeArray", function() { return arrangeArray; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDefaultProps", function() { return getDefaultProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCheckedAmount", function() { return getCheckedAmount; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCounterMessage", function() { return getCounterMessage; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "adjustProps", function() { return adjustProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isAllChildrenChecked", function() { return isAllChildrenChecked; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getItemsLength", function() { return getItemsLength; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "reverseAllItemsOrder", function() { return reverseAllItemsOrder; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getItem", function() { return getItem; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getUpdatedSelectCount", function() { return getUpdatedSelectCount; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "itemHasParent", function() { return itemHasParent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "itemHasChildren", function() { return itemHasChildren; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getItemPosition", function() { return getItemPosition; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toggleAllItems", function() { return toggleAllItems; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isAllItemsChecked", function() { return isAllItemsChecked; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isItemExistOnList", function() { return isItemExistOnList; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getFilterredItems", function() { return getFilterredItems; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getFilterredItemsLength", function() { return getFilterredItemsLength; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSelectedFilterredItemsLength", function() { return getSelectedFilterredItemsLength; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isItemSelected", function() { return isItemSelected; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isItemHiddenByFilter", function() { return isItemHiddenByFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isItemDisabled", function() { return isItemDisabled; });
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; };

function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

var filterByHiding = function filterByHiding(list, value) {
  var filterValue = value.toLowerCase();
  return list.map(function (item) {
    var itemLabel = item.label.toLowerCase();
    var included = itemLabel.includes(filterValue);
    // if the item label matches the filter value.
    item.hiddenByFilter = !included;
    // if it is a parent and its label doesn't match the filter value.
    if (itemHasChildren(item)) {
      if (isItemHiddenByFilter(item)) {
        var childrenIncludedAmount = 0;
        item.children.forEach(function (childItem) {
          if (childItem.hidden) {
            return;
          }
          var childLabel = childItem.label.toLowerCase();
          var childIncluded = childLabel.includes(filterValue);
          childItem.hiddenByFilter = !childIncluded;
          childrenIncludedAmount += childIncluded ? 1 : 0;
        });
        item.hiddenByFilter = childrenIncludedAmount === 0;
      } else {
        item.children = makeAllHiddenFilteredItemsVisible(item.children);
      }
    }
    return item;
  });
};

// We don't want to touch default hidden items that the consumer set to hidden.
var makeAllHiddenFilteredItemsVisible = function makeAllHiddenFilteredItemsVisible(list) {
  return list.map(function (item) {
    item.hiddenByFilter = false;
    if (itemHasChildren(item)) {
      item.children.forEach(function (childItem) {
        childItem.hiddenByFilter = false;
      });
    }
    return item;
  });
};

var sortItems = function sortItems(items) {
  var sortFactor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'label';
  return items.sort(function (a, b) {
    return a[sortFactor].toLowerCase() > b[sortFactor].toLowerCase() ? 1 : -1;
  });
};

var shouldItemBeChecked = function shouldItemBeChecked(item, isMainChecked, resetAllSelected) {
  var checked = item.checked || false;
  var isItemEditable = !item.disabled || !item.hidden || !item.isItemHiddenByFilter;
  if (!isItemEditable) {
    return checked;
  }
  if (resetAllSelected) {
    checked = false;
  } else if (isMainChecked) {
    checked = isMainChecked;
  }
  return checked;
};

var arrangeArray = function arrangeArray(_ref) {
  var items = _ref.items,
      sortBy = _ref.sortBy,
      _ref$isSortAsc = _ref.isSortAsc,
      isSortAsc = _ref$isSortAsc === undefined ? true : _ref$isSortAsc,
      _ref$isMainChecked = _ref.isMainChecked,
      isMainChecked = _ref$isMainChecked === undefined ? false : _ref$isMainChecked,
      _ref$resetAllSelected = _ref.resetAllSelected,
      resetAllSelected = _ref$resetAllSelected === undefined ? false : _ref$resetAllSelected;

  // sort the items
  var itemsCopy = sortItems(items, sortBy).map(function (item, index) {
    // add position to the item and update if the main checkbox is initialy checked.
    var modifiedItem = _extends({}, item, {
      position: index,
      checked: shouldItemBeChecked(item, isMainChecked, resetAllSelected)
    });
    if (itemHasChildren(item)) {
      // sort the children array and add a position, parentPosition and update check state.
      modifiedItem.children = sortItems(item.children, sortBy).map(function (child, childIndex) {
        return _extends({}, child, {
          position: childIndex,
          parentPosition: index,
          checked: shouldItemBeChecked(child, isMainChecked, resetAllSelected)
        });
      });
    }
    return modifiedItem;
  });

  itemsCopy = isSortAsc ? itemsCopy : reverseAllItemsOrder(itemsCopy);

  return itemsCopy;
};

var getDefaultProps = function getDefaultProps() {
  return {
    items: [],
    options: null,
    isSortAsc: true,
    sortBy: 'label',
    filterTerm: '',
    isMainChecked: false
  };
};

var getCheckedAmount = function getCheckedAmount(items) {
  var checkedAmount = 0;
  items.forEach(function (item) {
    if (isItemSelected(item)) {
      checkedAmount += 1;
      if (itemHasChildren(item)) {
        checkedAmount += item.children.length;
      }
    } else if (itemHasChildren(item)) {
      item.children.forEach(function (child) {
        if (isItemSelected(child)) {
          checkedAmount += 1;
        }
      });
    }
  });
  return checkedAmount;
};
var getCounterMessage = function getCounterMessage(selected, total) {
  return selected + ' of ' + total + ' items selected';
};

var adjustProps = function adjustProps(_ref2) {
  var left = _ref2.left,
      right = _ref2.right,
      props = _objectWithoutProperties(_ref2, ['left', 'right']);

  var defaultProps = getDefaultProps();
  var leftItems = arrangeArray(_extends({}, left));
  var rightItems = arrangeArray(_extends({}, right));
  return _extends({}, props, {
    left: _extends({}, defaultProps, left, {
      items: leftItems,
      selectCount: getCheckedAmount(leftItems)
    }),
    right: _extends({}, defaultProps, right, {
      items: rightItems,
      selectCount: getCheckedAmount(rightItems)
    })
  });
};


var isAllChildrenChecked = function isAllChildrenChecked(_ref3) {
  var children = _ref3.children;
  return children && children.filter(function (_ref4) {
    var checked = _ref4.checked;
    return checked;
  }).length === children.length;
};

var getItemsLength = function getItemsLength(items) {
  var length = items.length;

  var hiddenItemsAmount = 0;
  if (length === 0) {
    return 0;
  }
  items.forEach(function (_ref5) {
    var hidden = _ref5.hidden,
        children = _ref5.children;

    if (hidden) {
      hiddenItemsAmount += 1;
    }
    if (children) {
      length -= 1;
      children.forEach(function (child) {
        if (!child.hidden) {
          length += 1;
        }
      });
    }
  });
  return length - hiddenItemsAmount;
};

var reverseAllItemsOrder = function reverseAllItemsOrder(items) {
  var reversedItems = [].concat(_toConsumableArray(items)).reverse();
  return reversedItems.map(function (item) {
    return item.children ? _extends({}, item, { children: item.children.reverse() }) : item;
  });
};

var getItem = function getItem(isSortAsc, items, position, parentPosition) {
  // if item is a child.
  if (parentPosition !== undefined) {
    var parent = items[getItemPosition(items, parentPosition, isSortAsc)];
    return parent.children[getItemPosition(parent.children, position, isSortAsc)];
  }
  return items[getItemPosition(items, position, isSortAsc)];
};

var getUpdatedSelectCount = function getUpdatedSelectCount(selectCount, checked) {
  var amount = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
  return selectCount + (checked ? amount : -1 * amount);
};

var itemHasParent = function itemHasParent(item) {
  return item.parentPosition !== undefined;
};

var itemHasChildren = function itemHasChildren(item) {
  return item.children !== undefined;
};

var getItemPosition = function getItemPosition(array, position, isSortAsc) {
  return isSortAsc ? position : array.length - position - 1;
};

var toggleAllItems = function toggleAllItems(list, checked) {
  var toggleCount = 0;
  list.forEach(function (item) {
    if (item.disabled || item.hidden) {
      return;
    }
    if (item.checked !== checked) {
      item.checked = checked;
      toggleCount += 1;
    }
    if (itemHasChildren(item)) {
      var childrenToggleCount = 0;
      item.children.forEach(function (childItem) {
        if (childItem.disabled || childItem.hidden) {
          return;
        }
        if (childItem.checked !== checked) {
          childItem.checked = checked;
          childrenToggleCount += 1;
        }
      });
      if (childrenToggleCount > 0) {
        toggleCount += childrenToggleCount - 1;
      }
    }
  });
  return toggleCount;
};

var isAllItemsChecked = function isAllItemsChecked(items, selectCount) {
  return selectCount > 0 && selectCount === getItemsLength(items);
};

var isItemExistOnList = function isItemExistOnList(list, itemLabel) {
  var parentIndex = null;
  // find if the parent already exist on the list.
  list.forEach(function (listItem, index) {
    if (listItem.label === itemLabel) {
      parentIndex = index;
    }
  });
  return { isParentExist: parentIndex !== null, parentIndex: parentIndex };
};

var getFilterredItems = function getFilterredItems(list) {
  var filteredItems = [];
  list.forEach(function (item) {
    if (!isItemHiddenByFilter(item)) {
      filteredItems.push(item);
    } else if (itemHasChildren(item)) {
      var filteredChildren = [];
      item.children.forEach(function (childItem) {
        if (!isItemHiddenByFilter(childItem)) {
          filteredChildren.push(childItem);
        }
      });
      if (filteredChildren.length > 0) {
        filteredItems.push(_extends({}, item, { children: filteredChildren }));
      }
    }
  });

  return filteredItems;
};

var getFilterredItemsLength = function getFilterredItemsLength(list) {
  return getItemsLength(getFilterredItems(list));
};

var getSelectedFilterredItemsLength = function getSelectedFilterredItemsLength(list) {
  var filteredItems = getFilterredItems(list);
  var selectedAmount = 0;
  filteredItems.forEach(function (item) {
    if (isItemSelected(item)) {
      selectedAmount += 1;
      if (itemHasChildren(item)) {
        var selectedChildrenAmount = 0;
        item.children.forEach(function (childItem) {
          if (isItemSelected(childItem)) {
            selectedChildrenAmount += 1;
          }
        });
        if (selectedChildrenAmount) {
          selectedAmount += selectedChildrenAmount - 1;
        }
      }
    }
  });
  return selectedAmount;
};

var isItemSelected = function isItemSelected(item) {
  return item.checked;
};

var isItemHiddenByFilter = function isItemHiddenByFilter(item) {
  return item.hiddenByFilter;
};

var isItemDisabled = function isItemDisabled(item) {
  return item.disabled;
};

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/index.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/index.js ***!
  \*************************************************************************************/
/*! exports provided: DualList, DualListArrows, DualListBody, DualListControlled, DualListCounter, DualListFilter, DualListFooter, DualListHeading, DualListHiddenSelect, DualListItem, DualListItems, DualListItemTooltip, DualListMainCheckbox, DualListSelector, DualListSort */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _DualList__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DualList */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/DualList.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualList", function() { return _DualList__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _components_DualListArrows__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/DualListArrows */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListArrows.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListArrows", function() { return _components_DualListArrows__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _components_DualListBody__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/DualListBody */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListBody.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListBody", function() { return _components_DualListBody__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _DualListControlled__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DualListControlled */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/DualListControlled.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListControlled", function() { return _DualListControlled__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _components_DualListCounter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/DualListCounter */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListCounter.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListCounter", function() { return _components_DualListCounter__WEBPACK_IMPORTED_MODULE_4__["default"]; });

/* harmony import */ var _components_DualListFilter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/DualListFilter */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListFilter.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListFilter", function() { return _components_DualListFilter__WEBPACK_IMPORTED_MODULE_5__["default"]; });

/* harmony import */ var _components_DualListFooter__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/DualListFooter */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListFooter.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListFooter", function() { return _components_DualListFooter__WEBPACK_IMPORTED_MODULE_6__["default"]; });

/* harmony import */ var _components_DualListHeading__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/DualListHeading */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListHeading.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListHeading", function() { return _components_DualListHeading__WEBPACK_IMPORTED_MODULE_7__["default"]; });

/* harmony import */ var _components_DualListHiddenSelect__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/DualListHiddenSelect */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListHiddenSelect.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListHiddenSelect", function() { return _components_DualListHiddenSelect__WEBPACK_IMPORTED_MODULE_8__["default"]; });

/* harmony import */ var _components_DualListItem__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./components/DualListItem */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListItem", function() { return _components_DualListItem__WEBPACK_IMPORTED_MODULE_9__["default"]; });

/* harmony import */ var _components_DualListItems__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./components/DualListItems */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListItems.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListItems", function() { return _components_DualListItems__WEBPACK_IMPORTED_MODULE_10__["default"]; });

/* harmony import */ var _components_DualListItemTooltip__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./components/DualListItemTooltip */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListItemTooltip.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListItemTooltip", function() { return _components_DualListItemTooltip__WEBPACK_IMPORTED_MODULE_11__["default"]; });

/* harmony import */ var _components_DualListMainCheckbox__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./components/DualListMainCheckbox */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListMainCheckbox.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListMainCheckbox", function() { return _components_DualListMainCheckbox__WEBPACK_IMPORTED_MODULE_12__["default"]; });

/* harmony import */ var _components_DualListSelector__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./components/DualListSelector */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListSelector.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListSelector", function() { return _components_DualListSelector__WEBPACK_IMPORTED_MODULE_13__["default"]; });

/* harmony import */ var _components_DualListSort__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./components/DualListSort */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListSort.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListSort", function() { return _components_DualListSort__WEBPACK_IMPORTED_MODULE_14__["default"]; });



















/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyState.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyState.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _EmptyStateIcon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./EmptyStateIcon */ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateIcon.js");
/* harmony import */ var _EmptyStateTitle__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./EmptyStateTitle */ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateTitle.js");
/* harmony import */ var _EmptyStateInfo__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./EmptyStateInfo */ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateInfo.js");
/* harmony import */ var _EmptyStateHelp__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./EmptyStateHelp */ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateHelp.js");
/* harmony import */ var _EmptyStateAction__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./EmptyStateAction */ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateAction.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }











/**
 * Empty State Component for Patternfly React
 */
var EmptyState = function EmptyState(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('blank-slate-pf', className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'div',
    _extends({ className: classes }, props),
    children
  );
};
EmptyState.propTypes = {
  /** Child nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
EmptyState.defaultProps = {
  className: ''
};

EmptyState.Title = _EmptyStateTitle__WEBPACK_IMPORTED_MODULE_4__["default"];
EmptyState.Icon = _EmptyStateIcon__WEBPACK_IMPORTED_MODULE_3__["default"];
EmptyState.Info = _EmptyStateInfo__WEBPACK_IMPORTED_MODULE_5__["default"];
EmptyState.Help = _EmptyStateHelp__WEBPACK_IMPORTED_MODULE_6__["default"];
EmptyState.Action = _EmptyStateAction__WEBPACK_IMPORTED_MODULE_7__["default"];

/* harmony default export */ __webpack_exports__["default"] = (EmptyState);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateAction.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateAction.js ***!
  \******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





/**
 * EmptyStateAction renders contents of the element
 */
var EmptyStateAction = function EmptyStateAction(_ref) {
  var children = _ref.children,
      className = _ref.className,
      secondary = _ref.secondary,
      props = _objectWithoutProperties(_ref, ['children', 'className', 'secondary']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()({
    'blank-slate-pf-main-action': !secondary,
    'blank-slate-pf-secondary-action': secondary
  }, className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'div',
    _extends({ className: classes }, props),
    children
  );
};
EmptyStateAction.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** Turn on secondary container styling */
  secondary: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
EmptyStateAction.defaultProps = {
  className: '',
  secondary: false
};
/* harmony default export */ __webpack_exports__["default"] = (EmptyStateAction);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateHelp.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateHelp.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





/**
 * EmptyStateHelp renders contents of the element
 */
var EmptyStateHelp = function EmptyStateHelp(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('blank-slate-pf-helpLink', className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'p',
    _extends({ className: classes }, props),
    children
  );
};
EmptyStateHelp.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
EmptyStateHelp.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (EmptyStateHelp);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateIcon.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateIcon.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }






/**
 * EmptyStateIcon renders element
 */
var EmptyStateIcon = function EmptyStateIcon(_ref) {
  var className = _ref.className,
      type = _ref.type,
      name = _ref.name,
      props = _objectWithoutProperties(_ref, ['className', 'type', 'name']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('blank-slate-pf-icon', className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'div',
    { className: classes },
    react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_3__["Icon"], _extends({ type: type, name: name }, props))
  );
};
EmptyStateIcon.propTypes = {
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** Icon type (pf or fa) */
  type: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** Name of the icon font */
  name: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
EmptyStateIcon.defaultProps = {
  type: 'pf',
  name: 'add-circle-o',
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (EmptyStateIcon);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateInfo.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateInfo.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





/**
 * EmptyStateInfo renders contents of the element
 */
var EmptyStateInfo = function EmptyStateInfo(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('blank-slate-pf-info', className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'p',
    _extends({ className: classes }, props),
    children
  );
};
EmptyStateInfo.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
EmptyStateInfo.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (EmptyStateInfo);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateTitle.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateTitle.js ***!
  \*****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





/**
 * EmptyStateTitle renders contents of the element
 */
var EmptyStateTitle = function EmptyStateTitle(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('h1', 'blank-slate-pf-title', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'h4',
    _extends({ className: classes }, props),
    children
  );
};
EmptyStateTitle.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
EmptyStateTitle.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (EmptyStateTitle);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/EmptyState/index.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/EmptyState/index.js ***!
  \*******************************************************************************/
/*! exports provided: EmptyState, EmptyStateIcon, EmptyStateTitle, EmptyStateInfo, EmptyStateHelp, EmptyStateAction */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _EmptyState__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EmptyState */ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyState.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmptyState", function() { return _EmptyState__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _EmptyStateIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./EmptyStateIcon */ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateIcon.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmptyStateIcon", function() { return _EmptyStateIcon__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _EmptyStateTitle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./EmptyStateTitle */ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateTitle.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmptyStateTitle", function() { return _EmptyStateTitle__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _EmptyStateInfo__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./EmptyStateInfo */ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateInfo.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmptyStateInfo", function() { return _EmptyStateInfo__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _EmptyStateHelp__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./EmptyStateHelp */ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateHelp.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmptyStateHelp", function() { return _EmptyStateHelp__WEBPACK_IMPORTED_MODULE_4__["default"]; });

/* harmony import */ var _EmptyStateAction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./EmptyStateAction */ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateAction.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmptyStateAction", function() { return _EmptyStateAction__WEBPACK_IMPORTED_MODULE_5__["default"]; });










/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ExpandCollapse/ExpandCollapse.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ExpandCollapse/ExpandCollapse.js ***!
  \********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
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; }; }();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }








var ALIGN_LEFT = 'left';
var ALIGN_CENTER = 'center';

var ALIGN_TYPES = [ALIGN_LEFT, ALIGN_CENTER];

var ExpandCollapse = function (_React$Component) {
  _inherits(ExpandCollapse, _React$Component);

  function ExpandCollapse() {
    var _ref;

    var _temp, _this, _ret;

    _classCallCheck(this, ExpandCollapse);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ExpandCollapse.__proto__ || Object.getPrototypeOf(ExpandCollapse)).call.apply(_ref, [this].concat(args))), _this), _this.state = { expanded: false, mirroredExpanded: false }, _this.onClick = function () {
      _this.setState(function (prevState) {
        return { expanded: !prevState.expanded };
      });
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  _createClass(ExpandCollapse, [{
    key: 'render',
    value: function render() {
      var _props = this.props,
          children = _props.children,
          textCollapsed = _props.textCollapsed,
          textExpanded = _props.textExpanded,
          align = _props.align,
          className = _props.className,
          bordered = _props.bordered;
      var expanded = this.state.expanded;


      var separatorClass = classnames__WEBPACK_IMPORTED_MODULE_2___default()('expand-collapse-pf-separator', { bordered: bordered });

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'div',
        { className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('expand-collapse-pf', className) },
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          'div',
          { className: 'expand-collapse-pf-link-container' },
          align === ALIGN_CENTER && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('span', { className: separatorClass }),
          react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
            _Button__WEBPACK_IMPORTED_MODULE_3__["Button"],
            { bsStyle: 'link', onClick: this.onClick },
            react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_4__["Icon"], { type: 'fa', name: expanded ? 'angle-down' : 'angle-right' }),
            expanded ? textExpanded : textCollapsed
          ),
          react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('span', { className: separatorClass })
        ),
        this.state.expanded && children
      );
    }
  }], [{
    key: 'getDerivedStateFromProps',
    value: function getDerivedStateFromProps(nextProps, prevState) {
      if (prevState.mirroredExpanded !== nextProps.expanded) {
        return {
          expanded: nextProps.expanded,
          mirroredExpanded: nextProps.expanded
        };
      }
      return null;
    }
  }]);

  return ExpandCollapse;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

ExpandCollapse.propTypes = {
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.any.isRequired,
  /** Top-level custom class */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Text for the link in collapsed state */
  textCollapsed: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Text for the link in expanded state */
  textExpanded: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Align the link to the left or center. */
  align: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(ALIGN_TYPES),
  /** Flag to show a separation border line */
  bordered: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Flag to control expansion state */
  expanded: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool // eslint-disable-line react/no-unused-prop-types
};

ExpandCollapse.defaultProps = {
  className: '',
  textCollapsed: 'Show Advanced Options',
  textExpanded: 'Hide Advanced Options',
  align: ALIGN_LEFT,
  bordered: true,
  expanded: false
};

ExpandCollapse.ALIGN_LEFT = ALIGN_LEFT;
ExpandCollapse.ALIGN_CENTER = ALIGN_CENTER;
ExpandCollapse.ALIGN_TYPES = ALIGN_TYPES;

/* harmony default export */ __webpack_exports__["default"] = (ExpandCollapse);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ExpandCollapse/index.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ExpandCollapse/index.js ***!
  \***********************************************************************************/
/*! exports provided: ExpandCollapse */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _ExpandCollapse__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ExpandCollapse */ "./node_modules/patternfly-react/dist/esm/components/ExpandCollapse/ExpandCollapse.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExpandCollapse", function() { return _ExpandCollapse__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/FieldLevelHelp/FieldLevelHelp.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/FieldLevelHelp/FieldLevelHelp.js ***!
  \********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony import */ var _Popover__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Popover */ "./node_modules/patternfly-react/dist/esm/components/Popover/index.js");
/* harmony import */ var _OverlayTrigger__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../OverlayTrigger */ "./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/index.js");
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }









/**
 * FieldLevelHelp Component for Patternfly React
 */
var FieldLevelHelp = function FieldLevelHelp(_ref) {
  var children = _ref.children,
      content = _ref.content,
      close = _ref.close,
      rootClose = _ref.rootClose,
      placement = _ref.placement,
      buttonClass = _ref.buttonClass,
      props = _objectWithoutProperties(_ref, ['children', 'content', 'close', 'rootClose', 'placement', 'buttonClass']);

  // backwards compatibility of the existing `close` prop - use that prop if it exists
  var closeProp = typeof close !== 'undefined' ? close : rootClose;
  var overlay = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _Popover__WEBPACK_IMPORTED_MODULE_5__["Popover"],
    { id: 'popover' },
    content
  );
  var buttonClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()('popover-pf-info', buttonClass);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _OverlayTrigger__WEBPACK_IMPORTED_MODULE_6__["OverlayTrigger"],
    { overlay: overlay, placement: placement, trigger: ['click'], rootClose: closeProp },
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _Button__WEBPACK_IMPORTED_MODULE_4__["Button"],
      { bsStyle: 'link', className: buttonClasses },
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_3__["Icon"], { type: 'pf', name: 'info' })
    )
  );
};

FieldLevelHelp.propTypes = {
  /** additional fieldlevelhelp classes */
  content: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** close prop */
  close: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** leave popover/tooltip open  */
  rootClose: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** overlay placement */
  placement: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** button class */
  buttonClass: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** children nodes  */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
FieldLevelHelp.defaultProps = {
  content: null,
  close: undefined,
  rootClose: true,
  placement: 'top',
  buttonClass: '',
  children: null
};

/* harmony default export */ __webpack_exports__["default"] = (FieldLevelHelp);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/FieldLevelHelp/index.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/FieldLevelHelp/index.js ***!
  \***********************************************************************************/
/*! exports provided: FieldLevelHelp */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _FieldLevelHelp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./FieldLevelHelp */ "./node_modules/patternfly-react/dist/esm/components/FieldLevelHelp/FieldLevelHelp.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FieldLevelHelp", function() { return _FieldLevelHelp__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Filter/Filter.js":
/*!****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Filter/Filter.js ***!
  \****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var recompose__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! recompose */ "./node_modules/patternfly-react/node_modules/recompose/es/Recompose.js");
/* harmony import */ var _Toolbar_ToolbarConstants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Toolbar/ToolbarConstants */ "./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarConstants.js");
/* harmony import */ var _FilterTypeSelector__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./FilterTypeSelector */ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterTypeSelector.js");
/* harmony import */ var _FilterValueSelector__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./FilterValueSelector */ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterValueSelector.js");
/* harmony import */ var _FilterCategorySelector__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./FilterCategorySelector */ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterCategorySelector.js");
/* harmony import */ var _FilterCategoryValueSelector__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./FilterCategoryValueSelector */ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterCategoryValueSelector.js");
/* harmony import */ var _FilterActiveLabel__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./FilterActiveLabel */ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterActiveLabel.js");
/* harmony import */ var _FilterList__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./FilterList */ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterList.js");
/* harmony import */ var _FilterItem__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./FilterItem */ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterItem.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }














// Disabled eslint due to `isDescendantOfToolbar` being a context property we don't want passed by consumers
// eslint-disable-next-line react/prop-types
var ContextualFilter = function ContextualFilter(_ref) {
  var children = _ref.children,
      className = _ref.className,
      isDescendantOfToolbar = _ref.isDescendantOfToolbar,
      props = _objectWithoutProperties(_ref, ['children', 'className', 'isDescendantOfToolbar']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()({
    'filter-pf form-group': true,
    'toolbar-pf-filter': isDescendantOfToolbar
  }, className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'div',
    _extends({ className: classes }, props),
    react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
      'div',
      { className: 'filter-pf-fields' },
      react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
        'div',
        { className: 'input-group' },
        children
      )
    )
  );
};

ContextualFilter.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};

ContextualFilter.defaultProps = {
  children: null,
  className: ''
};

var Filter = Object(recompose__WEBPACK_IMPORTED_MODULE_3__["getContext"])(_Toolbar_ToolbarConstants__WEBPACK_IMPORTED_MODULE_4__["toolbarContextTypes"])(ContextualFilter);

Filter.TypeSelector = _FilterTypeSelector__WEBPACK_IMPORTED_MODULE_5__["default"];
Filter.ValueSelector = _FilterValueSelector__WEBPACK_IMPORTED_MODULE_6__["default"];
Filter.CategorySelector = _FilterCategorySelector__WEBPACK_IMPORTED_MODULE_7__["default"];
Filter.CategoryValueSelector = _FilterCategoryValueSelector__WEBPACK_IMPORTED_MODULE_8__["default"];
Filter.ActiveLabel = _FilterActiveLabel__WEBPACK_IMPORTED_MODULE_9__["default"];
Filter.List = _FilterList__WEBPACK_IMPORTED_MODULE_10__["default"];
Filter.Item = _FilterItem__WEBPACK_IMPORTED_MODULE_11__["default"];

/* harmony default export */ __webpack_exports__["default"] = (Filter);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterActiveLabel.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Filter/FilterActiveLabel.js ***!
  \***************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var FilterActiveLabel = function FilterActiveLabel(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('filter-pf-active-label', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'p',
    _extends({ className: classes }, props),
    children
  );
};

FilterActiveLabel.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};

FilterActiveLabel.defaultProps = {
  children: null,
  className: ''
};

/* harmony default export */ __webpack_exports__["default"] = (FilterActiveLabel);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterCategorySelector.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Filter/FilterCategorySelector.js ***!
  \********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony import */ var _MenuItem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../MenuItem */ "./node_modules/patternfly-react/dist/esm/components/MenuItem/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }








var FilterCategorySelector = function FilterCategorySelector(_ref) {
  var children = _ref.children,
      className = _ref.className,
      id = _ref.id,
      filterCategories = _ref.filterCategories,
      currentCategory = _ref.currentCategory,
      placeholder = _ref.placeholder,
      onFilterCategorySelected = _ref.onFilterCategorySelected,
      props = _objectWithoutProperties(_ref, ['children', 'className', 'id', 'filterCategories', 'currentCategory', 'placeholder', 'onFilterCategorySelected']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('filter-pf-category-select', className);

  if (placeholder || filterCategories && filterCategories.length > 1) {
    var title = void 0;
    if (currentCategory) {
      title = currentCategory.title || currentCategory;
    } else {
      title = placeholder || filterCategories[0].title || filterCategories[0];
    }

    var menuId = 'filterCategoryMenu';
    menuId += id ? '_' + id : '';

    var dropdownClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()('filter-pf-select-dropdown', {
      'filter-selected': title !== placeholder
    });

    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'div',
      _extends({ className: classes }, props),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'div',
        { className: 'filter-pf-select' },
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          _Button__WEBPACK_IMPORTED_MODULE_3__["DropdownButton"],
          { title: title, id: menuId, className: dropdownClasses },
          filterCategories && filterCategories.map(function (item, index) {
            var menuItemClasses = {
              selected: item === currentCategory
            };
            return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
              _MenuItem__WEBPACK_IMPORTED_MODULE_4__["MenuItem"],
              {
                className: menuItemClasses,
                key: item.id || index,
                onSelect: function onSelect() {
                  return onFilterCategorySelected(item);
                }
              },
              item.title || item
            );
          })
        )
      ),
      children
    );
  }
  return null;
};

FilterCategorySelector.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** ID for the component, necessary for accessibility if there are multiple filters on a page */
  id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Array of filter categories, each can be a string or an object with a 'title' field */
  filterCategories: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array.isRequired,
  /** Current selected category */
  currentCategory: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object]),
  /** Placeholder text when no category is selected */
  placeholder: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** function(field, value) - Callback to call when a category is added */
  onFilterCategorySelected: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};

FilterCategorySelector.defaultProps = {
  children: null,
  className: '',
  id: '',
  currentCategory: '',
  placeholder: '',
  onFilterCategorySelected: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"]
};

/* harmony default export */ __webpack_exports__["default"] = (FilterCategorySelector);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterCategoryValueSelector.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Filter/FilterCategoryValueSelector.js ***!
  \*************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony import */ var _MenuItem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../MenuItem */ "./node_modules/patternfly-react/dist/esm/components/MenuItem/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }








var FilterCategoryValueSelector = function FilterCategoryValueSelector(_ref) {
  var className = _ref.className,
      id = _ref.id,
      categoryValues = _ref.categoryValues,
      currentValue = _ref.currentValue,
      placeholder = _ref.placeholder,
      onCategoryValueSelected = _ref.onCategoryValueSelected,
      props = _objectWithoutProperties(_ref, ['className', 'id', 'categoryValues', 'currentValue', 'placeholder', 'onCategoryValueSelected']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('filter-pf-select', className);

  if (placeholder || categoryValues && categoryValues.length > 1) {
    var title = void 0;
    if (currentValue) {
      title = currentValue.title || currentValue;
    } else {
      title = placeholder || categoryValues[0].title || categoryValues[0];
    }

    var menuId = 'filterCategoryMenu';
    menuId += id ? '_' + id : '';

    var dropdownClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()('filter-pf-category-select-value', 'filter-pf-select-dropdown', {
      'filter-selected': title !== placeholder
    });

    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'div',
      _extends({ className: classes }, props),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _Button__WEBPACK_IMPORTED_MODULE_3__["DropdownButton"],
        { className: dropdownClasses, title: title, id: menuId },
        categoryValues && categoryValues.map(function (item, index) {
          var menuItemClasses = {
            selected: item === currentValue
          };
          return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
            _MenuItem__WEBPACK_IMPORTED_MODULE_4__["MenuItem"],
            {
              className: menuItemClasses,
              key: item.id || index,
              onSelect: function onSelect() {
                return onCategoryValueSelected(item);
              }
            },
            item.title || item
          );
        })
      )
    );
  }
  return null;
};

FilterCategoryValueSelector.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** ID for the filter component, necessary for accessibility if there are multiple filters on a page */
  id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Array of valid values for the category to select from, each can be a string or an object with a 'title' field */
  categoryValues: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array,
  /** Currently selected category value */
  currentValue: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object]),
  /** Placeholder text when no category value is selected */
  placeholder: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** function(field, value) - Callback to call when a category value is selected */
  onCategoryValueSelected: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};

FilterCategoryValueSelector.defaultProps = {
  className: '',
  id: '',
  categoryValues: null,
  currentValue: '',
  placeholder: '',
  onCategoryValueSelected: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"]
};

/* harmony default export */ __webpack_exports__["default"] = (FilterCategoryValueSelector);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterItem.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Filter/FilterItem.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _Label__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Label */ "./node_modules/patternfly-react/dist/esm/components/Label/index.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }







var FilterItem = function FilterItem(_ref) {
  var children = _ref.children,
      className = _ref.className,
      onRemove = _ref.onRemove,
      filterData = _ref.filterData,
      props = _objectWithoutProperties(_ref, ['children', 'className', 'onRemove', 'filterData']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()(className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'li',
    _extends({ className: classes }, props),
    react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
      _Label__WEBPACK_IMPORTED_MODULE_4__["DisposableLabel"],
      { type: 'info', onRemoveClick: function onRemoveClick() {
          return onRemove(filterData);
        } },
      children
    )
  );
};

FilterItem.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
  /** additional filter item classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** callback when filter is removed  */
  onRemove: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  /** Data to pass to onRemove function */
  filterData: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object
};

FilterItem.defaultProps = {
  children: null,
  className: '',
  onRemove: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  filterData: {}
};
/* harmony default export */ __webpack_exports__["default"] = (FilterItem);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterList.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Filter/FilterList.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var FilterList = function FilterList(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  if (!children) {
    return null;
  }
  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('list-inline', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'ul',
    { className: classes },
    children
  );
};

FilterList.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};

FilterList.defaultProps = {
  children: null,
  className: ''
};

/* harmony default export */ __webpack_exports__["default"] = (FilterList);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterTypeSelector.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Filter/FilterTypeSelector.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony import */ var _MenuItem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../MenuItem */ "./node_modules/patternfly-react/dist/esm/components/MenuItem/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }








var FilterTypeSelector = function FilterTypeSelector(_ref) {
  var className = _ref.className,
      id = _ref.id,
      filterTypes = _ref.filterTypes,
      currentFilterType = _ref.currentFilterType,
      placeholder = _ref.placeholder,
      onFilterTypeSelected = _ref.onFilterTypeSelected,
      props = _objectWithoutProperties(_ref, ['className', 'id', 'filterTypes', 'currentFilterType', 'placeholder', 'onFilterTypeSelected']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('input-group-btn', className);
  if (placeholder || filterTypes && filterTypes.length > 1) {
    var title = void 0;
    if (currentFilterType) {
      title = currentFilterType.title || currentFilterType;
    } else {
      title = placeholder || filterTypes[0].title || filterTypes[0];
    }

    var menuId = 'filterFieldTypeMenu';
    menuId += id ? '_' + id : '';

    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'div',
      _extends({ className: classes }, props),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _Button__WEBPACK_IMPORTED_MODULE_3__["DropdownButton"],
        { title: title, id: menuId },
        placeholder && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          _MenuItem__WEBPACK_IMPORTED_MODULE_4__["MenuItem"],
          { title: placeholder, key: 'Placeholder', onSelect: onFilterTypeSelected },
          placeholder
        ),
        filterTypes.map(function (item, index) {
          var menuItemClasses = {
            selected: item === currentFilterType
          };
          return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
            _MenuItem__WEBPACK_IMPORTED_MODULE_4__["MenuItem"],
            { className: menuItemClasses, key: item.id || index, onSelect: function onSelect() {
                return onFilterTypeSelected(item);
              } },
            item.title || item
          );
        })
      )
    );
  }
  return null;
};

FilterTypeSelector.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** ID for the filter component, necessary for accessibility if there are multiple filters on a page */
  id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Array of filter types, can be a string or an object with a 'title' field */
  filterTypes: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array.isRequired,
  /** Current selected filter type */
  currentFilterType: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object]),
  /** Placeholder text when no filter type is selected */
  placeholder: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** function(field, value) - Callback to call when a filter type is selected */
  onFilterTypeSelected: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};

FilterTypeSelector.defaultProps = {
  className: '',
  id: '',
  currentFilterType: '',
  placeholder: '',
  onFilterTypeSelected: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"]
};

/* harmony default export */ __webpack_exports__["default"] = (FilterTypeSelector);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterValueSelector.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Filter/FilterValueSelector.js ***!
  \*****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony import */ var _MenuItem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../MenuItem */ "./node_modules/patternfly-react/dist/esm/components/MenuItem/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }








var FilterValueSelector = function FilterValueSelector(_ref) {
  var className = _ref.className,
      id = _ref.id,
      filterValues = _ref.filterValues,
      currentValue = _ref.currentValue,
      placeholder = _ref.placeholder,
      onFilterValueSelected = _ref.onFilterValueSelected,
      props = _objectWithoutProperties(_ref, ['className', 'id', 'filterValues', 'currentValue', 'placeholder', 'onFilterValueSelected']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('filter-pf-select', className);

  if (placeholder || filterValues && filterValues.length > 1) {
    var title = void 0;
    if (currentValue) {
      title = currentValue.title || currentValue;
    } else {
      title = placeholder || filterValues[0].title || filterValues[0];
    }

    var menuId = 'filterCategoryMenu';
    menuId += id ? '_' + id : '';

    var dropdownClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()('filter-pf-select-dropdown', {
      'filter-selected': title !== placeholder
    });

    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'div',
      _extends({ className: classes }, props),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _Button__WEBPACK_IMPORTED_MODULE_3__["DropdownButton"],
        { title: title, id: menuId, className: dropdownClasses },
        filterValues && filterValues.map(function (item, index) {
          var menuItemClasses = {
            selected: item === currentValue
          };
          return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
            _MenuItem__WEBPACK_IMPORTED_MODULE_4__["MenuItem"],
            {
              className: menuItemClasses,
              key: item.id || index,
              onSelect: function onSelect() {
                return onFilterValueSelected(item);
              }
            },
            item.title || item
          );
        })
      )
    );
  }
  return null;
};

FilterValueSelector.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** ID for the filter component, necessary for accessibility if there are multiple filters on a page */
  id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Array of valid values to select from, each can be a string or an object with a 'title' field */
  filterValues: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array.isRequired,
  /** Currently selected value */
  currentValue: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object]),
  /** Placeholder text when no value is selected */
  placeholder: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** function(field, value) - Callback to call when a value is selected */
  onFilterValueSelected: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};

FilterValueSelector.defaultProps = {
  className: '',
  id: '',
  currentValue: '',
  placeholder: '',
  onFilterValueSelected: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"]
};

/* harmony default export */ __webpack_exports__["default"] = (FilterValueSelector);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Filter/index.js":
/*!***************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Filter/index.js ***!
  \***************************************************************************/
/*! exports provided: Filter, FilterTypeSelector, FilterValueSelector, FilterCategorySelector, FilterCategoryValueSelector, FilterActiveLabel, FilterList, FilterItem */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Filter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Filter */ "./node_modules/patternfly-react/dist/esm/components/Filter/Filter.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Filter", function() { return _Filter__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _FilterTypeSelector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./FilterTypeSelector */ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterTypeSelector.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterTypeSelector", function() { return _FilterTypeSelector__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _FilterValueSelector__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./FilterValueSelector */ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterValueSelector.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterValueSelector", function() { return _FilterValueSelector__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _FilterCategorySelector__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./FilterCategorySelector */ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterCategorySelector.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterCategorySelector", function() { return _FilterCategorySelector__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _FilterCategoryValueSelector__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./FilterCategoryValueSelector */ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterCategoryValueSelector.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterCategoryValueSelector", function() { return _FilterCategoryValueSelector__WEBPACK_IMPORTED_MODULE_4__["default"]; });

/* harmony import */ var _FilterActiveLabel__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./FilterActiveLabel */ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterActiveLabel.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterActiveLabel", function() { return _FilterActiveLabel__WEBPACK_IMPORTED_MODULE_5__["default"]; });

/* harmony import */ var _FilterList__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./FilterList */ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterList.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterList", function() { return _FilterList__WEBPACK_IMPORTED_MODULE_6__["default"]; });

/* harmony import */ var _FilterItem__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./FilterItem */ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterItem", function() { return _FilterItem__WEBPACK_IMPORTED_MODULE_7__["default"]; });












/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Form/Checkbox.js":
/*!****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Form/Checkbox.js ***!
  \****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Checkbox__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Checkbox */ "./node_modules/react-bootstrap/es/Checkbox.js");



/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Checkbox__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Form/ControlLabel.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Form/ControlLabel.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_ControlLabel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/ControlLabel */ "./node_modules/react-bootstrap/es/ControlLabel.js");



/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_ControlLabel__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Form/Form.js":
/*!************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Form/Form.js ***!
  \************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Form__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Form */ "./node_modules/react-bootstrap/es/Form.js");
/* harmony import */ var _Checkbox__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Checkbox */ "./node_modules/patternfly-react/dist/esm/components/Form/Checkbox.js");
/* harmony import */ var _ControlLabel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ControlLabel */ "./node_modules/patternfly-react/dist/esm/components/Form/ControlLabel.js");
/* harmony import */ var _FormControl__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./FormControl */ "./node_modules/patternfly-react/dist/esm/components/Form/FormControl.js");
/* harmony import */ var _FormGroup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./FormGroup */ "./node_modules/patternfly-react/dist/esm/components/Form/FormGroup.js");
/* harmony import */ var _HelpBlock__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./HelpBlock */ "./node_modules/patternfly-react/dist/esm/components/Form/HelpBlock.js");
/* harmony import */ var _InputGroup__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./InputGroup */ "./node_modules/patternfly-react/dist/esm/components/Form/InputGroup.js");
/* harmony import */ var _Radio__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Radio */ "./node_modules/patternfly-react/dist/esm/components/Form/Radio.js");










react_bootstrap_es_Form__WEBPACK_IMPORTED_MODULE_0__["default"].Checkbox = _Checkbox__WEBPACK_IMPORTED_MODULE_1__["default"];
react_bootstrap_es_Form__WEBPACK_IMPORTED_MODULE_0__["default"].ControlLabel = _ControlLabel__WEBPACK_IMPORTED_MODULE_2__["default"];
react_bootstrap_es_Form__WEBPACK_IMPORTED_MODULE_0__["default"].FormControl = _FormControl__WEBPACK_IMPORTED_MODULE_3__["default"];
react_bootstrap_es_Form__WEBPACK_IMPORTED_MODULE_0__["default"].FormGroup = _FormGroup__WEBPACK_IMPORTED_MODULE_4__["default"];
react_bootstrap_es_Form__WEBPACK_IMPORTED_MODULE_0__["default"].HelpBlock = _HelpBlock__WEBPACK_IMPORTED_MODULE_5__["default"];
react_bootstrap_es_Form__WEBPACK_IMPORTED_MODULE_0__["default"].InputGroup = _InputGroup__WEBPACK_IMPORTED_MODULE_6__["default"];
react_bootstrap_es_Form__WEBPACK_IMPORTED_MODULE_0__["default"].Radio = _Radio__WEBPACK_IMPORTED_MODULE_7__["default"];

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Form__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Form/FormControl.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Form/FormControl.js ***!
  \*******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_FormControl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/FormControl */ "./node_modules/react-bootstrap/es/FormControl.js");



/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_FormControl__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Form/FormGroup.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Form/FormGroup.js ***!
  \*****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_FormGroup__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/FormGroup */ "./node_modules/react-bootstrap/es/FormGroup.js");



/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_FormGroup__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Form/HelpBlock.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Form/HelpBlock.js ***!
  \*****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_HelpBlock__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/HelpBlock */ "./node_modules/react-bootstrap/es/HelpBlock.js");



/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_HelpBlock__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Form/InputGroup.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Form/InputGroup.js ***!
  \******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_InputGroup__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/InputGroup */ "./node_modules/react-bootstrap/es/InputGroup.js");



/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_InputGroup__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Form/Radio.js":
/*!*************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Form/Radio.js ***!
  \*************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Radio__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Radio */ "./node_modules/react-bootstrap/es/Radio.js");



/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Radio__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Form/index.js":
/*!*************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Form/index.js ***!
  \*************************************************************************/
/*! exports provided: Checkbox, ControlLabel, Form, FormControl, FormGroup, HelpBlock, InputGroup, Radio */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Checkbox__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Checkbox */ "./node_modules/patternfly-react/dist/esm/components/Form/Checkbox.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Checkbox", function() { return _Checkbox__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _ControlLabel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ControlLabel */ "./node_modules/patternfly-react/dist/esm/components/Form/ControlLabel.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ControlLabel", function() { return _ControlLabel__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _Form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Form */ "./node_modules/patternfly-react/dist/esm/components/Form/Form.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Form", function() { return _Form__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _FormControl__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./FormControl */ "./node_modules/patternfly-react/dist/esm/components/Form/FormControl.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormControl", function() { return _FormControl__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _FormGroup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./FormGroup */ "./node_modules/patternfly-react/dist/esm/components/Form/FormGroup.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormGroup", function() { return _FormGroup__WEBPACK_IMPORTED_MODULE_4__["default"]; });

/* harmony import */ var _HelpBlock__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./HelpBlock */ "./node_modules/patternfly-react/dist/esm/components/Form/HelpBlock.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HelpBlock", function() { return _HelpBlock__WEBPACK_IMPORTED_MODULE_5__["default"]; });

/* harmony import */ var _InputGroup__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./InputGroup */ "./node_modules/patternfly-react/dist/esm/components/Form/InputGroup.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InputGroup", function() { return _InputGroup__WEBPACK_IMPORTED_MODULE_6__["default"]; });

/* harmony import */ var _Radio__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Radio */ "./node_modules/patternfly-react/dist/esm/components/Form/Radio.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Radio", function() { return _Radio__WEBPACK_IMPORTED_MODULE_7__["default"]; });












/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Grid/Clearfix.js":
/*!****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Grid/Clearfix.js ***!
  \****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Clearfix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Clearfix */ "./node_modules/react-bootstrap/es/Clearfix.js");



/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Clearfix__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Grid/Col.js":
/*!***********************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Grid/Col.js ***!
  \***********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Col__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Col */ "./node_modules/react-bootstrap/es/Col.js");



/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Col__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Grid/Grid.js":
/*!************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Grid/Grid.js ***!
  \************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Grid__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Grid */ "./node_modules/react-bootstrap/es/Grid.js");
/* harmony import */ var _Row__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Row */ "./node_modules/patternfly-react/dist/esm/components/Grid/Row.js");
/* harmony import */ var _Col__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Col */ "./node_modules/patternfly-react/dist/esm/components/Grid/Col.js");
/* harmony import */ var _Clearfix__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Clearfix */ "./node_modules/patternfly-react/dist/esm/components/Grid/Clearfix.js");






react_bootstrap_es_Grid__WEBPACK_IMPORTED_MODULE_0__["default"].Row = _Row__WEBPACK_IMPORTED_MODULE_1__["default"];
react_bootstrap_es_Grid__WEBPACK_IMPORTED_MODULE_0__["default"].Col = _Col__WEBPACK_IMPORTED_MODULE_2__["default"];
react_bootstrap_es_Grid__WEBPACK_IMPORTED_MODULE_0__["default"].Clearfix = _Clearfix__WEBPACK_IMPORTED_MODULE_3__["default"];

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Grid__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Grid/Row.js":
/*!***********************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Grid/Row.js ***!
  \***********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Row__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Row */ "./node_modules/react-bootstrap/es/Row.js");



/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Row__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Grid/index.js":
/*!*************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Grid/index.js ***!
  \*************************************************************************/
/*! exports provided: Grid, Row, Col, Clearfix */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Grid__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Grid */ "./node_modules/patternfly-react/dist/esm/components/Grid/Grid.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Grid", function() { return _Grid__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _Row__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Row */ "./node_modules/patternfly-react/dist/esm/components/Grid/Row.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Row", function() { return _Row__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _Col__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Col */ "./node_modules/patternfly-react/dist/esm/components/Grid/Col.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Col", function() { return _Col__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _Clearfix__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Clearfix */ "./node_modules/patternfly-react/dist/esm/components/Grid/Clearfix.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Clearfix", function() { return _Clearfix__WEBPACK_IMPORTED_MODULE_3__["default"]; });








/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/HintBlock/HintBlock.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/HintBlock/HintBlock.js ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }






var HintBlock = function HintBlock(_ref) {
  var className = _ref.className,
      onClose = _ref.onClose,
      title = _ref.title,
      body = _ref.body,
      buttonContent = _ref.buttonContent,
      onButtonClick = _ref.onButtonClick,
      props = _objectWithoutProperties(_ref, ['className', 'onClose', 'title', 'body', 'buttonContent', 'onButtonClick']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('hint-block-pf', className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'div',
    _extends({ className: classes }, props),
    onClose && react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
      'button',
      { type: 'button', className: 'close', 'aria-hidden': 'true', 'aria-label': 'Close', onClick: onClose },
      react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement('span', { className: 'pficon pficon-close' })
    ),
    react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
      'div',
      { className: 'hint-block-pf-title' },
      title
    ),
    react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
      'div',
      { className: 'hint-block-pf-body' },
      body
    ),
    buttonContent && react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
      'button',
      { className: 'btn btn-primary', type: 'button', onClick: onButtonClick },
      buttonContent
    )
  );
};

HintBlock.propTypes = {
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** Close callback, if not provided the block will not be closable */
  onClose: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  /** Title for the hint block */
  title: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node]).isRequired,
  /** Body of the hint block */
  body: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node]).isRequired,
  /** Optional button contents for the hint block */
  buttonContent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node]),
  /** Callback for the button if buttonContent is provided */
  onButtonClick: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func
};

HintBlock.defaultProps = {
  className: '',
  onClose: null,
  buttonContent: null,
  onButtonClick: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"]
};

/* harmony default export */ __webpack_exports__["default"] = (HintBlock);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/HintBlock/index.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/HintBlock/index.js ***!
  \******************************************************************************/
/*! exports provided: HintBlock */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _HintBlock__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./HintBlock */ "./node_modules/patternfly-react/dist/esm/components/HintBlock/HintBlock.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HintBlock", function() { return _HintBlock__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/HorizontalNav/HorizontalNav.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/HorizontalNav/HorizontalNav.js ***!
  \******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _HorizontalNavMenu__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./HorizontalNavMenu */ "./node_modules/patternfly-react/dist/esm/components/HorizontalNav/HorizontalNavMenu.js");
/* harmony import */ var _HorizontalNavMenuItem__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./HorizontalNavMenuItem */ "./node_modules/patternfly-react/dist/esm/components/HorizontalNav/HorizontalNavMenuItem.js");





var HorizontalNav = function HorizontalNav(props) {
  var children = props.children;


  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'nav',
    { className: 'navbar navbar-default navbar-pf' },
    children
  );
};

HorizontalNav.propTypes = {
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};

HorizontalNav.defaultProps = {
  children: null
};

HorizontalNav.Menu = _HorizontalNavMenu__WEBPACK_IMPORTED_MODULE_2__["default"];
HorizontalNav.MenuItem = _HorizontalNavMenuItem__WEBPACK_IMPORTED_MODULE_3__["default"];

/* harmony default export */ __webpack_exports__["default"] = (HorizontalNav);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/HorizontalNav/HorizontalNavMenu.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/HorizontalNav/HorizontalNavMenu.js ***!
  \**********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);





var HorizontalNavMenu = function HorizontalNavMenu(props) {
  var children = props.children,
      twoLevels = props.twoLevels;

  var menuClasses = classnames__WEBPACK_IMPORTED_MODULE_3___default()({
    'persistent-secondary': twoLevels
  }, 'nav navbar-nav navbar-primary');
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    { className: 'collapse navbar-collapse navbar-collapse-1' },
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _index__WEBPACK_IMPORTED_MODULE_2__["ListGroup"],
      { componentClass: 'ul', bsClass: menuClasses },
      children
    )
  );
};

HorizontalNavMenu.propTypes = {
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  twoLevels: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};

HorizontalNavMenu.defaultProps = {
  children: null,
  twoLevels: false
};

/* harmony default export */ __webpack_exports__["default"] = (HorizontalNavMenu);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/HorizontalNav/HorizontalNavMenuItem.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/HorizontalNav/HorizontalNavMenuItem.js ***!
  \**************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }






var HorizontalNavMenuItem = function HorizontalNavMenuItem(props) {
  var children = props.children,
      onItemClick = props.onItemClick,
      title = props.title,
      active = props.active,
      dropdown = props.dropdown,
      submenu = props.submenu,
      dropup = props.dropup,
      pullLeft = props.pullLeft,
      otherProps = _objectWithoutProperties(props, ['children', 'onItemClick', 'title', 'active', 'dropdown', 'submenu', 'dropup', 'pullLeft']);

  var dropdownClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()({
    'dropdown-submenu': submenu,
    'pull-left': pullLeft
  });

  return dropdown ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _index__WEBPACK_IMPORTED_MODULE_3__["Dropdown"],
    _extends({ componentClass: 'li', className: dropdownClasses }, otherProps),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _index__WEBPACK_IMPORTED_MODULE_3__["Dropdown"].Toggle,
      { useAnchor: true, noCaret: submenu },
      title
    ),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _index__WEBPACK_IMPORTED_MODULE_3__["Dropdown"].Menu,
      { className: dropup ? 'dropup' : '' },
      children
    )
  ) : react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _index__WEBPACK_IMPORTED_MODULE_3__["ListGroupItem"],
    _extends({ listItem: true, bsClass: '', active: active }, otherProps),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'a',
      { href: '#', onClick: onItemClick },
      title
    ),
    children && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _index__WEBPACK_IMPORTED_MODULE_3__["ListGroup"],
      { componentClass: 'ul', bsClass: 'nav navbar-nav navbar-persistent' },
      children
    )
  );
};

HorizontalNavMenuItem.propTypes = {
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  onItemClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  active: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  dropdown: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  submenu: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  dropup: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  pullLeft: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};

HorizontalNavMenuItem.defaultProps = {
  children: null,
  onItemClick: null,
  title: '',
  active: false,
  dropdown: false,
  submenu: false,
  dropup: false,
  pullLeft: false
};
/* harmony default export */ __webpack_exports__["default"] = (HorizontalNavMenuItem);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/HorizontalNav/index.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/HorizontalNav/index.js ***!
  \**********************************************************************************/
/*! exports provided: HorizontalNav, HorizontalNavMenu, HorizontalNavMenuItem */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _HorizontalNav__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./HorizontalNav */ "./node_modules/patternfly-react/dist/esm/components/HorizontalNav/HorizontalNav.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HorizontalNav", function() { return _HorizontalNav__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _HorizontalNavMenu__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./HorizontalNavMenu */ "./node_modules/patternfly-react/dist/esm/components/HorizontalNav/HorizontalNavMenu.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HorizontalNavMenu", function() { return _HorizontalNavMenu__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _HorizontalNavMenuItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./HorizontalNavMenuItem */ "./node_modules/patternfly-react/dist/esm/components/HorizontalNav/HorizontalNavMenuItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HorizontalNavMenuItem", function() { return _HorizontalNavMenuItem__WEBPACK_IMPORTED_MODULE_2__["default"]; });





/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Icon/Icon.js":
/*!************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Icon/Icon.js ***!
  \************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-fontawesome */ "./node_modules/react-fontawesome/lib/index.js");
/* harmony import */ var react_fontawesome__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_fontawesome__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _InnerComponents_PatternflyIcon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./InnerComponents/PatternflyIcon */ "./node_modules/patternfly-react/dist/esm/components/Icon/InnerComponents/PatternflyIcon.js");
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }






var Icon = function Icon(_ref) {
  var type = _ref.type,
      props = _objectWithoutProperties(_ref, ['type']);

  var IconComponent = type === 'fa' && react_fontawesome__WEBPACK_IMPORTED_MODULE_2___default.a || type === 'pf' && _InnerComponents_PatternflyIcon__WEBPACK_IMPORTED_MODULE_3__["default"];
  if (IconComponent) {
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(IconComponent, props);
  }
  throw new Error('Unsupported prop type=' + type);
};
Icon.propTypes = {
  /** Icon type can be 'fa' or 'pf'.
   'fa' is the default type. */
  type: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['fa', 'pf']),
  /** Icon name is the pf-name or fa-name without the prefix.
   e.g.: As for 'pf-ok' name will be 'ok' */
  name: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired
};
Icon.defaultProps = {
  type: 'fa'
};
/* harmony default export */ __webpack_exports__["default"] = (Icon);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Icon/InnerComponents/PatternflyIcon.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Icon/InnerComponents/PatternflyIcon.js ***!
  \**************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var PatternflyIcon = function PatternflyIcon(_ref) {
  var name = _ref.name,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['name', 'className']);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement('span', _extends({ 'aria-hidden': 'true', className: classnames__WEBPACK_IMPORTED_MODULE_0___default()('pficon', 'pficon-' + name, className) }, props));
};

PatternflyIcon.propTypes = {
  /** Patternfly Icon font name */
  name: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string.isRequired,
  /** additional classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};

PatternflyIcon.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (PatternflyIcon);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js":
/*!*************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Icon/index.js ***!
  \*************************************************************************/
/*! exports provided: Icon */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/Icon.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Icon", function() { return _Icon__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTip.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTip.js ***!
  \******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Dropdown */ "./node_modules/patternfly-react/dist/esm/components/Dropdown/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _InfoTipToggle__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./InfoTipToggle */ "./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTipToggle.js");
/* harmony import */ var _InfoTipMenu__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./InfoTipMenu */ "./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTipMenu.js");
/* harmony import */ var _InfoTipMenuFooter__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./InfoTipMenuFooter */ "./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTipMenuFooter.js");
/* harmony import */ var _InfoTipMenuItemIcon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./InfoTipMenuItemIcon */ "./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTipMenuItemIcon.js");
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; };

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; }; }();

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }










var InfoTip = function (_React$Component) {
  _inherits(InfoTip, _React$Component);

  function InfoTip() {
    var _ref;

    var _temp, _this, _ret;

    _classCallCheck(this, InfoTip);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = InfoTip.__proto__ || Object.getPrototypeOf(InfoTip)).call.apply(_ref, [this].concat(args))), _this), _this.state = { open: false, footerFocused: false }, _this.handleEnterKeyDown = function (event) {
      _this.setState({ open: !_this.state.open });
      event.preventDefault();
    }, _this.handleTabKeyDown = function (event) {
      if (_this.state.footerFocused) {
        _this.setState({ open: false, footerFocused: false });
      } else {
        _this.setState({ footerFocused: true });
      }
      event.stopPropagation();
      event.nativeEvent.stopImmediatePropagation();
    }, _this.handleKeyDown = function (event) {
      if (event.shiftKey && event.keyCode) {
        return _this.handleBackFocus();
      }
      switch (event.keyCode) {
        case _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEY_CODES"].ENTER_KEY:
          return _this.handleEnterKeyDown(event);
        case _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEY_CODES"].TAB_KEY:
          return _this.handleTabKeyDown(event);
        case _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEY_CODES"].ESCAPE_KEY:
          return _this.setState({ open: false });
        default:
          return null;
      }
    }, _this.handleBackFocus = function () {
      if (_this.state.open) {
        _this.setState({ open: false });
      }
    }, _this.handleClick = function (event) {
      event.preventDefault();
      _this.setState({ open: !_this.state.open });
    }, _this.handleBlur = function (event) {
      if (event && event.relatedTarget) {
        event.relatedTarget.click();
      }
      _this.setState({ open: false });
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  _createClass(InfoTip, [{
    key: 'render',
    value: function render() {
      var _props = this.props,
          children = _props.children,
          onToggle = _props.onToggle,
          props = _objectWithoutProperties(_props, ['children', 'onToggle']);

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _Dropdown__WEBPACK_IMPORTED_MODULE_2__["Dropdown"],
        _extends({
          componentClass: 'li',
          onClick: this.handleClick,
          onKeyDown: this.handleKeyDown,
          onToggle: this.handleKeyDown,
          open: this.state.open,
          onBlur: this.handleBlur
        }, props),
        children
      );
    }
  }]);

  return InfoTip;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

InfoTip.propTypes = _extends({}, _Dropdown__WEBPACK_IMPORTED_MODULE_2__["Dropdown"].propTypes, {
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node.isRequired,
  id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired
});

InfoTip.Toggle = _InfoTipToggle__WEBPACK_IMPORTED_MODULE_4__["default"];
InfoTip.Menu = _InfoTipMenu__WEBPACK_IMPORTED_MODULE_5__["default"];
InfoTip.MenuItemIcon = _InfoTipMenuItemIcon__WEBPACK_IMPORTED_MODULE_7__["default"];
InfoTip.MenuFooter = _InfoTipMenuFooter__WEBPACK_IMPORTED_MODULE_6__["default"];

/* harmony default export */ __webpack_exports__["default"] = (InfoTip);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTipMenu.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTipMenu.js ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

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; }; }();

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }





// This must be a class component react-bootstrap passes a ref to it.
// eslint-disable-next-line react/prefer-stateless-function

var InfoTipMenu = function (_React$Component) {
  _inherits(InfoTipMenu, _React$Component);

  function InfoTipMenu() {
    _classCallCheck(this, InfoTipMenu);

    return _possibleConstructorReturn(this, (InfoTipMenu.__proto__ || Object.getPrototypeOf(InfoTipMenu)).apply(this, arguments));
  }

  _createClass(InfoTipMenu, [{
    key: 'render',
    value: function render() {
      var _props = this.props,
          children = _props.children,
          className = _props.className,
          bsRole = _props.bsRole,
          rootCloseEvent = _props.rootCloseEvent,
          labelledBy = _props.labelledBy,
          pullRight = _props.pullRight,
          bsClass = _props.bsClass,
          props = _objectWithoutProperties(_props, ['children', 'className', 'bsRole', 'rootCloseEvent', 'labelledBy', 'pullRight', 'bsClass']);

      var infoTipMenuClass = classnames__WEBPACK_IMPORTED_MODULE_1___default()('dropdown-menu', 'infotip', 'bottom-right', className);

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'div',
        _extends({ className: infoTipMenuClass, style: { padding: '' } }, props),
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('div', { className: 'arrow' }),
        children
      );
    }
  }]);

  return InfoTipMenu;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

InfoTipMenu.propTypes = {
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  bsRole: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  rootCloseEvent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(['click', 'mousedown'])
};
InfoTipMenu.defaultProps = {
  bsRole: 'menu',
  className: '',
  rootCloseEvent: 'click'
};


/* harmony default export */ __webpack_exports__["default"] = (InfoTipMenu);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTipMenuFooter.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTipMenuFooter.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var InfoTipMenuFooter = function InfoTipMenuFooter(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var infoTipMenuFooterClass = classnames__WEBPACK_IMPORTED_MODULE_1___default()('footer', className);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    _extends({ className: infoTipMenuFooterClass }, props),
    children
  );
};

InfoTipMenuFooter.propTypes = {
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
InfoTipMenuFooter.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (InfoTipMenuFooter);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTipMenuItemIcon.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTipMenuItemIcon.js ***!
  \******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }






var InfoTipMenuItemIcon = function InfoTipMenuItemIcon(_ref) {
  var className = _ref.className,
      props = _objectWithoutProperties(_ref, ['className']);

  var infoTipMenuItemIconClass = classnames__WEBPACK_IMPORTED_MODULE_2___default()('i', className);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_3__["Icon"], _extends({ className: infoTipMenuItemIconClass }, props));
};

InfoTipMenuItemIcon.propTypes = {
  type: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['fa', 'pf']),
  name: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};

InfoTipMenuItemIcon.defaultProps = {
  type: 'pf',
  name: 'info',
  className: ''
};

/* harmony default export */ __webpack_exports__["default"] = (InfoTipMenuItemIcon);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTipToggle.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTipToggle.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Dropdown */ "./node_modules/patternfly-react/dist/esm/components/Dropdown/index.js");
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
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; };

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; }; }();

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }






// Must be a class component react-bootstrap passes a ref to this.
// eslint-disable-next-line react/prefer-stateless-function

var InfoTipToggle = function (_React$Component) {
  _inherits(InfoTipToggle, _React$Component);

  function InfoTipToggle() {
    _classCallCheck(this, InfoTipToggle);

    return _possibleConstructorReturn(this, (InfoTipToggle.__proto__ || Object.getPrototypeOf(InfoTipToggle)).apply(this, arguments));
  }

  _createClass(InfoTipToggle, [{
    key: 'render',
    value: function render() {
      var _props = this.props,
          bsClass = _props.bsClass,
          bsRole = _props.bsRole,
          children = _props.children,
          open = _props.open,
          props = _objectWithoutProperties(_props, ['bsClass', 'bsRole', 'children', 'open']);

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'a',
        _extends({ href: '#', 'aria-expanded': open }, props),
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_3__["Icon"], { type: 'pf', name: 'info' }),
        ' ',
        children
      );
    }
  }]);

  return InfoTipToggle;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

InfoTipToggle.propTypes = _extends({}, _Dropdown__WEBPACK_IMPORTED_MODULE_2__["Dropdown"].propTypes, {
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  open: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
});
InfoTipToggle.defaultProps = {
  bsRole: 'toggle', // eslint-disable-line react/default-props-match-prop-types
  children: null,
  open: false,
  className: ''
};


/* harmony default export */ __webpack_exports__["default"] = (InfoTipToggle);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/InfoTip/index.js":
/*!****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/InfoTip/index.js ***!
  \****************************************************************************/
/*! exports provided: InfoTip, InfoTipToggle, InfoTipMenu, InfoTipMenuItemIcon, InfoTipMenuFooter */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _InfoTip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./InfoTip */ "./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTip.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InfoTip", function() { return _InfoTip__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _InfoTipToggle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./InfoTipToggle */ "./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTipToggle.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InfoTipToggle", function() { return _InfoTipToggle__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _InfoTipMenu__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./InfoTipMenu */ "./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTipMenu.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InfoTipMenu", function() { return _InfoTipMenu__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _InfoTipMenuFooter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./InfoTipMenuFooter */ "./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTipMenuFooter.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InfoTipMenuFooter", function() { return _InfoTipMenuFooter__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _InfoTipMenuItemIcon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./InfoTipMenuItemIcon */ "./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTipMenuItemIcon.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InfoTipMenuItemIcon", function() { return _InfoTipMenuItemIcon__WEBPACK_IMPORTED_MODULE_4__["default"]; });









/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/InlineEdit/CancelButton.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/InlineEdit/CancelButton.js ***!
  \**************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
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; };





var CancelButton = function CancelButton(props) {
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _Button__WEBPACK_IMPORTED_MODULE_1__["Button"],
    props,
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_2__["Icon"], { type: 'pf', name: 'close' })
  );
};

CancelButton.propTypes = _extends({}, _Button__WEBPACK_IMPORTED_MODULE_1__["Button"].propTypes);

/* harmony default export */ __webpack_exports__["default"] = (CancelButton);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/InlineEdit/ConfirmButton.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/InlineEdit/ConfirmButton.js ***!
  \***************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
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; };





var ConfirmButton = function ConfirmButton(props) {
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _Button__WEBPACK_IMPORTED_MODULE_1__["Button"],
    props,
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_2__["Icon"], { type: 'fa', name: 'check' })
  );
};

ConfirmButton.propTypes = _extends({}, _Button__WEBPACK_IMPORTED_MODULE_1__["Button"].propTypes);

ConfirmButton.defaultProps = _extends({}, _Button__WEBPACK_IMPORTED_MODULE_1__["Button"].defaultProps, {
  bsStyle: 'primary'
});

/* harmony default export */ __webpack_exports__["default"] = (ConfirmButton);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/InlineEdit/InlineEdit.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/InlineEdit/InlineEdit.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _ConfirmButton__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ConfirmButton */ "./node_modules/patternfly-react/dist/esm/components/InlineEdit/ConfirmButton.js");
/* harmony import */ var _CancelButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CancelButton */ "./node_modules/patternfly-react/dist/esm/components/InlineEdit/CancelButton.js");




var InlineEdit = function InlineEdit(_ref) {
  var value = _ref.value,
      isEditing = _ref.isEditing,
      additionalData = _ref.additionalData,
      renderValue = _ref.renderValue,
      renderEdit = _ref.renderEdit;

  if (isEditing(additionalData)) {
    return renderEdit(value, additionalData);
  }
  return renderValue(value, additionalData);
};
InlineEdit.propTypes = {
  /** Inline edit input value */
  value: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.any,
  /** Function that determines whether value or edit component should be rendered */
  isEditing: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func,
  /** Additional data passed th the render functions */
  additionalData: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.object,
  /** Returns value component */
  renderValue: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func,
  /** Returns edit component */
  renderEdit: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func
};

InlineEdit.ConfirmButton = _ConfirmButton__WEBPACK_IMPORTED_MODULE_1__["default"];
InlineEdit.CancelButton = _CancelButton__WEBPACK_IMPORTED_MODULE_2__["default"];

/* harmony default export */ __webpack_exports__["default"] = (InlineEdit);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/InlineEdit/index.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/InlineEdit/index.js ***!
  \*******************************************************************************/
/*! exports provided: InlineEdit, ConfirmButton, CancelButton */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _InlineEdit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./InlineEdit */ "./node_modules/patternfly-react/dist/esm/components/InlineEdit/InlineEdit.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InlineEdit", function() { return _InlineEdit__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _ConfirmButton__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ConfirmButton */ "./node_modules/patternfly-react/dist/esm/components/InlineEdit/ConfirmButton.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConfirmButton", function() { return _ConfirmButton__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _CancelButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CancelButton */ "./node_modules/patternfly-react/dist/esm/components/InlineEdit/CancelButton.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CancelButton", function() { return _CancelButton__WEBPACK_IMPORTED_MODULE_2__["default"]; });





/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Label/CompoundLabel.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Label/CompoundLabel.js ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Tooltip */ "./node_modules/patternfly-react/dist/esm/components/Tooltip/index.js");
/* harmony import */ var _OverlayTrigger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../OverlayTrigger */ "./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/index.js");
/* harmony import */ var _LabelWithTooltip__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./LabelWithTooltip */ "./node_modules/patternfly-react/dist/esm/components/Label/LabelWithTooltip.js");
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; }; }();

function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }







var CompoundLabel = function (_React$Component) {
  _inherits(CompoundLabel, _React$Component);

  function CompoundLabel() {
    var _ref;

    var _temp, _this, _ret;

    _classCallCheck(this, CompoundLabel);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = CompoundLabel.__proto__ || Object.getPrototypeOf(CompoundLabel)).call.apply(_ref, [this].concat(args))), _this), _this.generateTag = function (value) {
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LabelWithTooltip__WEBPACK_IMPORTED_MODULE_4__["default"], {
        key: value.id,
        category: _this.props.category,
        value: value,
        onDeleteClick: _this.props.onDeleteClick,
        truncate: _this.props.valueTruncate,
        bsStyle: _this.props.bsStyle,
        className: _this.props.innerClassName,
        overlayPlacement: _this.props.overlayPlacement
      });
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  _createClass(CompoundLabel, [{
    key: 'render',
    value: function render() {
      var _this2 = this;

      var values = [].concat(_toConsumableArray(this.props.values));
      if (values.length === 0) return null;
      var categoryTooltip = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _Tooltip__WEBPACK_IMPORTED_MODULE_2__["Tooltip"],
        { id: 'tooltip' },
        this.props.category.label
      );
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'span',
        { className: 'label label-primary compound-label-pf' },
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          _OverlayTrigger__WEBPACK_IMPORTED_MODULE_3__["OverlayTrigger"],
          { placement: this.props.overlayPlacement, overlay: categoryTooltip },
          react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
            'span',
            { className: 'category-label-pf' },
            this.props.categoryTruncate(this.props.category.label)
          )
        ),
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          'ul',
          { className: 'list-inline ' + this.props.className },
          values.sort(function (a, b) {
            return a.label < b.label ? -1 : 1;
          }).map(function (tagValue) {
            return _this2.generateTag(tagValue);
          })
        )
      );
    }
  }]);

  return CompoundLabel;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

CompoundLabel.propTypes = {
  /** Category in CATEGORY: value(s) pair */
  /**  Parent of label, it does not get displayed in this component */
  category: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.any.isRequired,
    label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired
  }).isRequired,
  /** Array of Values in Category:VALUE(S) pair  */
  /** id uniquily identify value within its category, label is text which is displayed */
  values: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.any.isRequired,
    label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired
  }).isRequired).isRequired,
  /** Fuction callback called when X button is clicked */
  onDeleteClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func.isRequired,
  /** Function used to truncate category label */
  categoryTruncate: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Function used to truncate value label */
  valueTruncate: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Name of CSS class(es) which are set to outer label */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Bootstrap style which is set to label */
  bsStyle: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Name of CSS class(es) which are set to inner label(s) */
  innerClassName: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Placement of the overlay */
  overlayPlacement: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['top', 'right', 'bottom', 'left'])
};

CompoundLabel.defaultProps = {
  categoryTruncate: function categoryTruncate(str) {
    return str.length > 18 ? str.substring(0, 18) + '...' : str;
  },
  valueTruncate: function valueTruncate(str) {
    return str.length > 18 ? str.substring(0, 18) + '...' : str;
  },
  className: '',
  bsStyle: 'primary',
  innerClassName: '',
  overlayPlacement: 'bottom'
};

/* harmony default export */ __webpack_exports__["default"] = (CompoundLabel);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Label/DisposableLabel.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Label/DisposableLabel.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var react_bootstrap_es_Label__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-bootstrap/es/Label */ "./node_modules/react-bootstrap/es/Label.js");
/* harmony import */ var _Label__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Label */ "./node_modules/patternfly-react/dist/esm/components/Label/Label.js");
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; };








var DisposableLabel = function DisposableLabel(props) {
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Label__WEBPACK_IMPORTED_MODULE_4__["default"], props);
};

// WARNING: This should be kept consistent with Label.propTypes
DisposableLabel.propTypes = _extends({}, react_bootstrap_es_Label__WEBPACK_IMPORTED_MODULE_3__["default"].propTypes, {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Label type */
  type: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** callback when Label is removed  */
  onRemoveClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
});

// WARNING: This should be kept consistent with Label.defaultProps
DisposableLabel.defaultProps = {
  children: null,
  type: 'default',
  onRemoveClick: _common_helpers__WEBPACK_IMPORTED_MODULE_2__["noop"]
};

/* harmony default export */ __webpack_exports__["default"] = (DisposableLabel);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Label/Label.js":
/*!**************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Label/Label.js ***!
  \**************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_bootstrap_es_Label__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-bootstrap/es/Label */ "./node_modules/react-bootstrap/es/Label.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _RemoveButton__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./RemoveButton */ "./node_modules/patternfly-react/dist/esm/components/Label/RemoveButton.js");
/* harmony import */ var _DisposableLabel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./DisposableLabel */ "./node_modules/patternfly-react/dist/esm/components/Label/DisposableLabel.js");
/* harmony import */ var _CompoundLabel__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./CompoundLabel */ "./node_modules/patternfly-react/dist/esm/components/Label/CompoundLabel.js");
/* harmony import */ var _LabelWithTooltip__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./LabelWithTooltip */ "./node_modules/patternfly-react/dist/esm/components/Label/LabelWithTooltip.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }










var Label = function Label(_ref) {
  var children = _ref.children,
      onRemoveClick = _ref.onRemoveClick,
      type = _ref.type,
      props = _objectWithoutProperties(_ref, ['children', 'onRemoveClick', 'type']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    react_bootstrap_es_Label__WEBPACK_IMPORTED_MODULE_1__["default"],
    _extends({ bsStyle: type }, props),
    children,
    !!onRemoveClick && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_RemoveButton__WEBPACK_IMPORTED_MODULE_3__["default"], { onRemoveClick: onRemoveClick, title: 'Remove' })
  );
};

// WARNING: If you change propTypes you MUST also change DisposableLabel.propTypes
Label.propTypes = _extends({}, react_bootstrap_es_Label__WEBPACK_IMPORTED_MODULE_1__["default"].propTypes, {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
  /** Label type */
  type: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** callback when Label is removed  */
  onRemoveClick: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func
});

// WARNING: If you change defaultProps you MUST also change DisposableLabel.defaultProps
Label.defaultProps = {
  children: null,
  type: 'default',
  onRemoveClick: undefined
};

Label.RemoveButton = _RemoveButton__WEBPACK_IMPORTED_MODULE_3__["default"];
Label.DisposableLabel = _DisposableLabel__WEBPACK_IMPORTED_MODULE_4__["default"];
Label.CompoundLabel = _CompoundLabel__WEBPACK_IMPORTED_MODULE_5__["default"];
Label.WithTooltop = _LabelWithTooltip__WEBPACK_IMPORTED_MODULE_6__["default"];

/* harmony default export */ __webpack_exports__["default"] = (Label);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Label/LabelWithTooltip.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Label/LabelWithTooltip.js ***!
  \*************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Label__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Label */ "./node_modules/patternfly-react/dist/esm/components/Label/index.js");
/* harmony import */ var _OverlayTrigger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../OverlayTrigger */ "./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/index.js");
/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Tooltip */ "./node_modules/patternfly-react/dist/esm/components/Tooltip/index.js");






var tooltip = function tooltip(text) {
  return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](
    _Tooltip__WEBPACK_IMPORTED_MODULE_4__["Tooltip"],
    { id: 'tooltip' },
    text
  );
};

var LabelWithTooltip = function LabelWithTooltip(_ref) {
  var onDeleteClick = _ref.onDeleteClick,
      category = _ref.category,
      value = _ref.value,
      truncate = _ref.truncate,
      bsStyle = _ref.bsStyle,
      className = _ref.className,
      overlayPlacement = _ref.overlayPlacement;
  return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](
    'li',
    { key: value.id },
    react__WEBPACK_IMPORTED_MODULE_0__["createElement"](
      _OverlayTrigger__WEBPACK_IMPORTED_MODULE_3__["OverlayTrigger"],
      { placement: overlayPlacement, overlay: tooltip(value.label) },
      react__WEBPACK_IMPORTED_MODULE_0__["createElement"](
        _Label__WEBPACK_IMPORTED_MODULE_2__["Label"],
        {
          key: value.id,
          onRemoveClick: function onRemoveClick() {
            return onDeleteClick(category, value);
          },
          bsStyle: bsStyle,
          className: 'compound-label-inner-color-pf ' + className
        },
        truncate(value.label)
      )
    )
  );
};

LabelWithTooltip.propTypes = {
  /** Fuction callback called when X button is clicked */
  onDeleteClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func.isRequired,
  /** Category in CATEGORY: value(s) pair */
  /**  Parent of label, it does not get displayed in this component */
  category: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.any.isRequired,
    label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired
  }).isRequired,
  /** Individual Value in Category:VALUE(s) pair  */
  /** id uniquily identify value within its category, label is text which is displayed */
  value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.PropTypes.shape({
    id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.any.isRequired,
    label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired
  }).isRequired,
  /** Function used to truncate value label */
  truncate: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func.isRequired,
  /** Name of CSS class(es) which are set to label */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Bootstrap style which is set to label */
  bsStyle: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Placement of the overlay */
  overlayPlacement: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['top', 'right', 'bottom', 'left'])
};

LabelWithTooltip.defaultProps = {
  className: '',
  bsStyle: 'primary',
  overlayPlacement: 'bottom'
};
/* harmony default export */ __webpack_exports__["default"] = (LabelWithTooltip);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Label/RemoveButton.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Label/RemoveButton.js ***!
  \*********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }






var RemoveButton = function RemoveButton(_ref) {
  var className = _ref.className,
      title = _ref.title,
      onRemoveClick = _ref.onRemoveClick,
      props = _objectWithoutProperties(_ref, ['className', 'title', 'onRemoveClick']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('pficon pficon-close', className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'a',
    {
      href: '#',
      onClick: function onClick(e) {
        e.preventDefault();
        onRemoveClick && onRemoveClick();
      },
      className: 'pf-remove-button'
    },
    react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement('span', _extends({ className: classes }, props, { 'aria-hidden': 'true' })),
    react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
      'span',
      { className: 'sr-only' },
      title
    )
  );
};

RemoveButton.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** Reader title text */
  title: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** Callback when remove button is clicked */
  onRemoveClick: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func
};

RemoveButton.defaultProps = {
  className: '',
  title: 'Remove',
  onRemoveClick: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"]
};

/* harmony default export */ __webpack_exports__["default"] = (RemoveButton);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Label/index.js":
/*!**************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Label/index.js ***!
  \**************************************************************************/
/*! exports provided: Label, DisposableLabel, RemoveButton, CompoundLabel */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Label__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Label */ "./node_modules/patternfly-react/dist/esm/components/Label/Label.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Label", function() { return _Label__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _DisposableLabel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DisposableLabel */ "./node_modules/patternfly-react/dist/esm/components/Label/DisposableLabel.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DisposableLabel", function() { return _DisposableLabel__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _RemoveButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./RemoveButton */ "./node_modules/patternfly-react/dist/esm/components/Label/RemoveButton.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RemoveButton", function() { return _RemoveButton__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _CompoundLabel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./CompoundLabel */ "./node_modules/patternfly-react/dist/esm/components/Label/CompoundLabel.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CompoundLabel", function() { return _CompoundLabel__WEBPACK_IMPORTED_MODULE_3__["default"]; });








/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListGroup/ListGroup.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListGroup/ListGroup.js ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_ListGroup__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/ListGroup */ "./node_modules/react-bootstrap/es/ListGroup.js");
/* harmony import */ var _ListGroupItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ListGroupItem */ "./node_modules/patternfly-react/dist/esm/components/ListGroup/ListGroupItem.js");




react_bootstrap_es_ListGroup__WEBPACK_IMPORTED_MODULE_0__["default"].ListGroupItem = _ListGroupItem__WEBPACK_IMPORTED_MODULE_1__["default"];

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_ListGroup__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListGroup/ListGroupItem.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListGroup/ListGroupItem.js ***!
  \**************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_ListGroupItem__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/ListGroupItem */ "./node_modules/react-bootstrap/es/ListGroupItem.js");



/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_ListGroupItem__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListGroup/index.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListGroup/index.js ***!
  \******************************************************************************/
/*! exports provided: ListGroup, ListGroupItem */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _ListGroup__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ListGroup */ "./node_modules/patternfly-react/dist/esm/components/ListGroup/ListGroup.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListGroup", function() { return _ListGroup__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _ListGroupItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ListGroupItem */ "./node_modules/patternfly-react/dist/esm/components/ListGroup/ListGroupItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListGroupItem", function() { return _ListGroupItem__WEBPACK_IMPORTED_MODULE_1__["default"]; });




/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListView.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListView.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _ListViewActions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ListViewActions */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewActions.js");
/* harmony import */ var _ListViewAdditionalInfo__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ListViewAdditionalInfo */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewAdditionalInfo.js");
/* harmony import */ var _ListViewBody__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ListViewBody */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewBody.js");
/* harmony import */ var _ListViewCheckbox__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ListViewCheckbox */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewCheckbox.js");
/* harmony import */ var _ListViewDescription__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ListViewDescription */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewDescription.js");
/* harmony import */ var _ListViewDescriptionHeading__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ListViewDescriptionHeading */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewDescriptionHeading.js");
/* harmony import */ var _ListViewDescriptionText__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./ListViewDescriptionText */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewDescriptionText.js");
/* harmony import */ var _ListViewExpand__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./ListViewExpand */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewExpand.js");
/* harmony import */ var _ListViewGroupItem__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./ListViewGroupItem */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewGroupItem.js");
/* harmony import */ var _ListViewGroupItemContainer__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./ListViewGroupItemContainer */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewGroupItemContainer.js");
/* harmony import */ var _ListViewGroupItemHeader__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./ListViewGroupItemHeader */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewGroupItemHeader.js");
/* harmony import */ var _ListViewIcon__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./ListViewIcon */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewIcon.js");
/* harmony import */ var _ListViewInfoItem__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./ListViewInfoItem */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewInfoItem.js");
/* harmony import */ var _ListViewItem__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./ListViewItem */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewItem.js");
/* harmony import */ var _ListViewLeft__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./ListViewLeft */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewLeft.js");
/* harmony import */ var _ListViewMainInfo__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./ListViewMainInfo */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewMainInfo.js");
/* harmony import */ var _ListViewRow__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./ListViewRow */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewRow.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }






















/**
 * Components in this module are used as building blocks for ListViewItem and
 * ListViewRow. If needed, components can be used to create custom ListViewItem
 *
 * Custom ListView example:
 *
 * <ListView>
 *   <ListViewGroupItem stacked expanded>
 *     <ListViewGroupItemHeader toggleExpanded={functionToToggle}> // required only if the ListViewGroupItem is supposed to be expandable
 *       <ListViewExpand expanded />
 *       <ListViewCheckbox />
 *       <ListViewActions>
 *         // buttons, dropdowns...
 *       </ListViewActions>
 *       <ListViewMainInfo>
 *         <ListViewLeft>
 *           <ListViewIcon size="sm" name={iconName} />
 *         </ListViewLeft>
 *         <ListViewBody>
 *           <ListViewDescription>
 *             <ListViewDescriptionHeading>
 *               {name}
 *             </ListViewDescriptionHeading>
 *             <ListViewDescriptionText>
 *               {description}
 *             </ListViewDescriptionText>
 *           </ListViewDescription>
 *           <ListViewAdditionalInfo>
 *             <ListViewInfoItem>
 *               <ListViewIcon type="pf" name="flavor" />
 *               {Item1}
 *             </ListViewInfoItem>
 *             <ListViewInfoItem>
 *               <ListViewIcon type="pf" name="cpu" />
 *               {Item2}
 *             </ListViewInfoItem>
 *           </ListViewAdditionalInfo>
 *         </ListViewBody>
 *       </ListViewMainInfo>
 *     </ListViewGroupItemHeader>
 *
 *     <ListViewGroupItemContainer onClose={functionWhichClosesMe} expanded>
 *       <Row>Some content goes here</Row>
 *     </ListViewGroupItemContainer>
 *
 *   </ListViewGroupItem>
 *   ...
 * </ListView>
 */

/**
 * ListView component wraps ListViewItems
 */
var ListView = function ListView(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('list-group list-view-pf list-view-pf-view', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'div',
    _extends({ className: classes }, props),
    children
  );
};
ListView.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** Children nodes - ListViewGroupItem or ListViewItem instances */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node
};
ListView.defaultProps = {
  className: '',
  children: null
};

ListView.Actions = _ListViewActions__WEBPACK_IMPORTED_MODULE_3__["default"];
ListView.AdditionalInfo = _ListViewAdditionalInfo__WEBPACK_IMPORTED_MODULE_4__["default"];
ListView.Body = _ListViewBody__WEBPACK_IMPORTED_MODULE_5__["default"];
ListView.Checkbox = _ListViewCheckbox__WEBPACK_IMPORTED_MODULE_6__["default"];
ListView.Description = _ListViewDescription__WEBPACK_IMPORTED_MODULE_7__["default"];
ListView.DescriptionHeading = _ListViewDescriptionHeading__WEBPACK_IMPORTED_MODULE_8__["default"];
ListView.DescriptionText = _ListViewDescriptionText__WEBPACK_IMPORTED_MODULE_9__["default"];
ListView.Expand = _ListViewExpand__WEBPACK_IMPORTED_MODULE_10__["default"];
ListView.GroupItem = _ListViewGroupItem__WEBPACK_IMPORTED_MODULE_11__["default"];
ListView.GroupItemContainer = _ListViewGroupItemContainer__WEBPACK_IMPORTED_MODULE_12__["default"];
ListView.GroupItemHeader = _ListViewGroupItemHeader__WEBPACK_IMPORTED_MODULE_13__["default"];
ListView.Icon = _ListViewIcon__WEBPACK_IMPORTED_MODULE_14__["default"];
ListView.InfoItem = _ListViewInfoItem__WEBPACK_IMPORTED_MODULE_15__["default"];
ListView.Item = _ListViewItem__WEBPACK_IMPORTED_MODULE_16__["default"];
ListView.Left = _ListViewLeft__WEBPACK_IMPORTED_MODULE_17__["default"];
ListView.MainInfo = _ListViewMainInfo__WEBPACK_IMPORTED_MODULE_18__["default"];
ListView.Row = _ListViewRow__WEBPACK_IMPORTED_MODULE_19__["default"];

/* harmony default export */ __webpack_exports__["default"] = (ListView);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewActions.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewActions.js ***!
  \***************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);



/**
 * ListViewActions wraps ListViewItem actions and positions them to the right
 */
var ListViewActions = function ListViewActions(_ref) {
  var children = _ref.children;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    { className: 'list-view-pf-actions' },
    children
  );
};
ListViewActions.propTypes = {
  /** Child nodes which render individual actions - Buttons, DropdownKebab... */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
ListViewActions.defaultProps = {
  children: null
};
/* harmony default export */ __webpack_exports__["default"] = (ListViewActions);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewAdditionalInfo.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewAdditionalInfo.js ***!
  \**********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);



/**
 * ListViewAdditionalInfo defines additional info section
 */
var ListViewAdditionalInfo = function ListViewAdditionalInfo(_ref) {
  var children = _ref.children;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    { className: 'list-view-pf-additional-info' },
    children
  );
};
ListViewAdditionalInfo.propTypes = {
  /** Child nodes - an array of ListViewInfoItem instances */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node)
};
ListViewAdditionalInfo.defaultProps = {
  children: null
};

/* harmony default export */ __webpack_exports__["default"] = (ListViewAdditionalInfo);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewBody.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewBody.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);



/**
 * ListViewBody wraps the central section of ListViewItem
 */
var ListViewBody = function ListViewBody(_ref) {
  var children = _ref.children;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    { className: 'list-view-pf-body' },
    children
  );
};
ListViewBody.propTypes = {
  /** Child nodes - ListViewDescription or ListViewAdditionalInfo instances */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
ListViewBody.defaultProps = {
  children: null
};
/* harmony default export */ __webpack_exports__["default"] = (ListViewBody);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewCheckbox.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewCheckbox.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);




/**
 * ListViewCheckbox wraps the input provided as child prop. The input depends
 * on the form solution the consuming application uses (e.g. Field component
 * in case of redux-form)
 */
var ListViewCheckbox = function ListViewCheckbox(_ref) {
  var children = _ref.children,
      className = _ref.className;
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'div',
    { className: classnames__WEBPACK_IMPORTED_MODULE_0___default()('list-view-pf-checkbox', className) },
    children
  );
};

ListViewCheckbox.propTypes = {
  /** Child node - form input component */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
ListViewCheckbox.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (ListViewCheckbox);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewDescription.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewDescription.js ***!
  \*******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);



/**
 * ListViewDescription wraps Heading and Text
 */
var ListViewDescription = function ListViewDescription(_ref) {
  var children = _ref.children;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    { className: 'list-view-pf-description' },
    children
  );
};
ListViewDescription.propTypes = {
  /** Child nodes - ListViewDescriptionHeading or ListViewDescriptionText instances */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
ListViewDescription.defaultProps = {
  children: null
};
/* harmony default export */ __webpack_exports__["default"] = (ListViewDescription);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewDescriptionHeading.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewDescriptionHeading.js ***!
  \**************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);



/**
 * ListViewDescriptionHeading renders ListViewItem heading
 */
var ListViewDescriptionHeading = function ListViewDescriptionHeading(_ref) {
  var children = _ref.children;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    { className: 'list-group-item-heading' },
    children
  );
};
ListViewDescriptionHeading.propTypes = {
  /** Child node - content rendered as heading */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
ListViewDescriptionHeading.defaultProps = {
  children: null
};
/* harmony default export */ __webpack_exports__["default"] = (ListViewDescriptionHeading);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewDescriptionText.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewDescriptionText.js ***!
  \***********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);



/**
 * ListViewDescriptionText renders text content of ListViewItem
 */
var ListViewDescriptionText = function ListViewDescriptionText(_ref) {
  var children = _ref.children;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    { className: 'list-group-item-text' },
    children
  );
};
ListViewDescriptionText.propTypes = {
  /** Child node - content rendered in text section of ListViewItem */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
ListViewDescriptionText.defaultProps = {
  children: null
};
/* harmony default export */ __webpack_exports__["default"] = (ListViewDescriptionText);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewExpand.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewExpand.js ***!
  \**************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);




/**
 * ListViewExpand renders the caret which signifies that row is expandable.
 * The caret icon points to the right when it is closed and down when it is expanded.
 */
var ListViewExpand = function ListViewExpand(_ref) {
  var children = _ref.children,
      expanded = _ref.expanded,
      toggleExpanded = _ref.toggleExpanded;

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()({
    'fa fa-angle-right': true,
    'fa-angle-down': expanded
  });
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'div',
    {
      className: classnames__WEBPACK_IMPORTED_MODULE_0___default()('list-view-pf-expand', { active: expanded }),
      onClick: function onClick(e) {
        e.stopPropagation();
        toggleExpanded();
      }
    },
    react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement('span', { className: classes }),
    children
  );
};
ListViewExpand.propTypes = {
  /** Child nodes which render additional content - used in expandable ListViewInfoItem */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
  /** Expanded state toggle */
  expanded: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  /** Function to execute to trigger toggle */
  toggleExpanded: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func.isRequired
};
ListViewExpand.defaultProps = {
  children: null,
  expanded: false
};
/* harmony default export */ __webpack_exports__["default"] = (ListViewExpand);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewGroupItem.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewGroupItem.js ***!
  \*****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





/**
 * ListViewGroupItem is a root node of each ListViewItem
 */
var ListViewGroupItem = function ListViewGroupItem(_ref) {
  var children = _ref.children,
      className = _ref.className,
      stacked = _ref.stacked,
      expanded = _ref.expanded,
      props = _objectWithoutProperties(_ref, ['children', 'className', 'stacked', 'expanded']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('list-group-item', {
    'list-view-pf-expand-active': expanded,
    'list-view-pf-stacked': stacked
  }, className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'div',
    _extends({ className: classes }, props),
    children
  );
};
ListViewGroupItem.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** Toggles the item expanded */
  expanded: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  /** Toggles the item stacked */
  stacked: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
ListViewGroupItem.defaultProps = {
  children: null,
  expanded: false,
  stacked: false,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (ListViewGroupItem);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewGroupItemContainer.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewGroupItemContainer.js ***!
  \**************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");





/**
 * ListViewGroupItemContainer is used with expandable ListViewItem, wraps the
 * expanded content
 */
var ListViewGroupItemContainer = function ListViewGroupItemContainer(_ref) {
  var children = _ref.children,
      expanded = _ref.expanded,
      onClose = _ref.onClose;

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()({
    'list-group-item-container container-fluid': true,
    hidden: !expanded
  });
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'div',
    { className: classes },
    onClose !== _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"] && react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
      'div',
      { className: 'close' },
      react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement('span', { className: 'pficon pficon-close', onClick: onClose })
    ),
    expanded && children
  );
};
ListViewGroupItemContainer.propTypes = {
  /** Children nodes - the content visible in expanded state */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
  /** Boolean indicating whether expandable content is visible */
  expanded: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  /** Function to call when 'close icon' is clicked */
  onClose: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func
};
ListViewGroupItemContainer.defaultProps = {
  children: null,
  onClose: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  expanded: false
};
/* harmony default export */ __webpack_exports__["default"] = (ListViewGroupItemContainer);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewGroupItemHeader.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewGroupItemHeader.js ***!
  \***********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);



/**
 * ListViewGroupItemHeader is used with expandable ListViewItem, wraps everything
 * that is displayed in non expanded state. Handles the toggling of the expanded
 * state
 */
var ListViewGroupItemHeader = function ListViewGroupItemHeader(_ref) {
  var children = _ref.children,
      toggleExpanded = _ref.toggleExpanded;

  var handleClick = function handleClick(e) {
    // ignore selected child elements click
    if (e.target.tagName !== 'BUTTON' && e.target.tagName !== 'A' && e.target.tagName !== 'INPUT' && !e.target.classList.contains('fa-ellipsis-v')) {
      toggleExpanded();
    }
  };
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    { className: 'list-group-item-header', onClick: handleClick },
    children
  );
};
ListViewGroupItemHeader.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Function to execute to trigger toggle */
  toggleExpanded: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func.isRequired
};
ListViewGroupItemHeader.defaultProps = {
  children: null
};
/* harmony default export */ __webpack_exports__["default"] = (ListViewGroupItemHeader);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewIcon.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewIcon.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }






/**
 * ListViewIcon used as a default content for ListViewLeft
 */
var ListViewIcon = function ListViewIcon(_ref) {
  var type = _ref.type,
      name = _ref.name,
      className = _ref.className,
      size = _ref.size,
      props = _objectWithoutProperties(_ref, ['type', 'name', 'className', 'size']);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_3__["Icon"], _extends({ type: type, name: name, className: classnames__WEBPACK_IMPORTED_MODULE_0___default()('list-view-pf-icon-' + size, className) }, props));
};
ListViewIcon.propTypes = {
  /** Icon type (pf or fa) */
  type: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** Name of the icon font */
  name: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string.isRequired,
  /** additional classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** Icon size (sm, md, lg), defaults to 'sm' */
  size: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(['sm', 'md', 'lg'])
};
ListViewIcon.defaultProps = {
  type: 'fa',
  size: 'sm',
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (ListViewIcon);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewInfoItem.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewInfoItem.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





/**
 * ListViewInfoItem renders contents of individual Info item
 */
var ListViewInfoItem = function ListViewInfoItem(_ref) {
  var children = _ref.children,
      className = _ref.className,
      stacked = _ref.stacked,
      props = _objectWithoutProperties(_ref, ['children', 'className', 'stacked']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()({ 'list-view-pf-additional-info-item-stacked': stacked }, 'list-view-pf-additional-info-item', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'div',
    _extends({ className: classes, onClick: function onClick(e) {
        return e.stopPropagation();
      } }, props),
    children
  );
};
ListViewInfoItem.propTypes = {
  /** Child node - contents of the additional info item */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** Toggle the InfoItem contents stacking */
  stacked: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
ListViewInfoItem.defaultProps = {
  children: null,
  className: '',
  stacked: false
};
/* harmony default export */ __webpack_exports__["default"] = (ListViewInfoItem);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewItem.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewItem.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _ListViewExpand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ListViewExpand */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewExpand.js");
/* harmony import */ var _ListViewGroupItem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ListViewGroupItem */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewGroupItem.js");
/* harmony import */ var _ListViewGroupItemContainer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ListViewGroupItemContainer */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewGroupItemContainer.js");
/* harmony import */ var _ListViewGroupItemHeader__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ListViewGroupItemHeader */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewGroupItemHeader.js");
/* harmony import */ var _ListViewRow__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ListViewRow */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewRow.js");
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; };

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; }; }();

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }












/**
 * ListViewItem - main ListViewItem component which handles the expansion logic.
 * ListViewItem is considered expandable if it has child props. In that case it
 * renders ListViewGroupItemHeader and ListViewGroupItemContainer
 */

var ListViewItem = function (_React$Component) {
  _inherits(ListViewItem, _React$Component);

  function ListViewItem() {
    var _ref;

    var _temp, _this, _ret;

    _classCallCheck(this, ListViewItem);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ListViewItem.__proto__ || Object.getPrototypeOf(ListViewItem)).call.apply(_ref, [this].concat(args))), _this), _this.state = { expanded: _this.props.initExpanded }, _this.toggleExpanded = function () {
      var _this$props = _this.props,
          onExpand = _this$props.onExpand,
          onExpandClose = _this$props.onExpandClose;

      if (_this.state.expanded) {
        onExpandClose();
      } else {
        onExpand();
      }
      _this.setState(function (prevState) {
        return { expanded: !prevState.expanded };
      });
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  _createClass(ListViewItem, [{
    key: 'render',
    value: function render() {
      var _props = this.props,
          children = _props.children,
          stacked = _props.stacked,
          onExpand = _props.onExpand,
          onExpandClose = _props.onExpandClose,
          actions = _props.actions,
          additionalInfo = _props.additionalInfo,
          description = _props.description,
          heading = _props.heading,
          leftContent = _props.leftContent,
          checkboxInput = _props.checkboxInput,
          hideCloseIcon = _props.hideCloseIcon,
          compoundExpand = _props.compoundExpand,
          compoundExpanded = _props.compoundExpanded,
          onCloseCompoundExpand = _props.onCloseCompoundExpand,
          initExpanded = _props.initExpanded,
          other = _objectWithoutProperties(_props, ['children', 'stacked', 'onExpand', 'onExpandClose', 'actions', 'additionalInfo', 'description', 'heading', 'leftContent', 'checkboxInput', 'hideCloseIcon', 'compoundExpand', 'compoundExpanded', 'onCloseCompoundExpand', 'initExpanded']);

      var expanded = this.state.expanded;


      if (children) {
        if (compoundExpand) {
          return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
            _ListViewGroupItem__WEBPACK_IMPORTED_MODULE_4__["default"],
            _extends({ expanded: compoundExpanded, stacked: stacked }, other),
            react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ListViewRow__WEBPACK_IMPORTED_MODULE_7__["default"], {
              checkboxInput: checkboxInput,
              leftContent: leftContent,
              heading: heading,
              description: description,
              additionalInfo: additionalInfo,
              actions: actions
            }),
            react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
              _ListViewGroupItemContainer__WEBPACK_IMPORTED_MODULE_5__["default"],
              {
                expanded: compoundExpanded,
                onClose: hideCloseIcon ? undefined : onCloseCompoundExpand
              },
              children
            )
          );
        }
        return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          _ListViewGroupItem__WEBPACK_IMPORTED_MODULE_4__["default"],
          _extends({ expanded: expanded, stacked: stacked }, other),
          react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
            _ListViewGroupItemHeader__WEBPACK_IMPORTED_MODULE_6__["default"],
            { toggleExpanded: this.toggleExpanded },
            react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ListViewExpand__WEBPACK_IMPORTED_MODULE_3__["default"], { expanded: expanded, toggleExpanded: this.toggleExpanded }),
            react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ListViewRow__WEBPACK_IMPORTED_MODULE_7__["default"], {
              checkboxInput: checkboxInput,
              leftContent: leftContent,
              heading: heading,
              description: description,
              additionalInfo: additionalInfo,
              actions: actions
            })
          ),
          react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
            _ListViewGroupItemContainer__WEBPACK_IMPORTED_MODULE_5__["default"],
            { expanded: expanded, onClose: hideCloseIcon ? undefined : this.toggleExpanded },
            children
          )
        );
      }
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _ListViewGroupItem__WEBPACK_IMPORTED_MODULE_4__["default"],
        _extends({ stacked: stacked }, other),
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ListViewRow__WEBPACK_IMPORTED_MODULE_7__["default"], {
          checkboxInput: checkboxInput,
          leftContent: leftContent,
          heading: heading,
          description: description,
          additionalInfo: additionalInfo,
          actions: actions
        })
      );
    }
  }]);

  return ListViewItem;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

ListViewItem.propTypes = {
  /** Child node rendered as expanded content of the ListViewItem */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Display the ListViewItem stacked or not */
  stacked: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Function triggered when expandable content is expanded */
  onExpand: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Function triggered when expandable content is closed */
  onExpandClose: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Node which renders right-positioned actions (e.g. Buttons, DropdownKebab...) */
  actions: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** An array of ListViewInfoItem instances to render additional info items */
  additionalInfo: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node),
  /** Contents of ListViewItem description section */
  description: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Contents of ListViewItem heading */
  heading: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Contents for left section of ListViewItem (usually ListViewIcon) */
  leftContent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Checkbox form input component */
  checkboxInput: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Optionally hide the close icon in expanded content */
  hideCloseIcon: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Flag to use compound expansion contents */
  compoundExpand: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Flag to show compound expansion contents */
  compoundExpanded: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Flag to initialize expanded state */
  initExpanded: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Function triggered when compound expandable content is closed */
  onCloseCompoundExpand: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
ListViewItem.defaultProps = {
  children: null,
  actions: null,
  additionalInfo: null,
  description: null,
  heading: null,
  leftContent: null,
  checkboxInput: null,
  compoundExpand: false,
  compoundExpanded: false,
  hideCloseIcon: false,
  onExpand: _common_helpers__WEBPACK_IMPORTED_MODULE_2__["noop"],
  onExpandClose: _common_helpers__WEBPACK_IMPORTED_MODULE_2__["noop"],
  initExpanded: false,
  onCloseCompoundExpand: _common_helpers__WEBPACK_IMPORTED_MODULE_2__["noop"],
  stacked: false
};
/* harmony default export */ __webpack_exports__["default"] = (ListViewItem);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewLeft.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewLeft.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);



/**
 * ListViewLeft renders nodes positioned on the left side of ListViewItem row
 */
var ListViewLeft = function ListViewLeft(_ref) {
  var children = _ref.children;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    { className: 'list-view-pf-left' },
    children
  );
};
ListViewLeft.propTypes = {
  /** Child nodes - usually ListViewIcon instance */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
ListViewLeft.defaultProps = {
  children: null
};
/* harmony default export */ __webpack_exports__["default"] = (ListViewLeft);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewMainInfo.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewMainInfo.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);



/**
 * ListViewMainInfo wraps the informational content of the ListViewItem
 */
var ListViewMainInfo = function ListViewMainInfo(_ref) {
  var children = _ref.children;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    { className: 'list-view-pf-main-info' },
    children
  );
};
ListViewMainInfo.propTypes = {
  /** Child nodes - instances of ListViewLeft and ListViewBody */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
ListViewMainInfo.defaultProps = {
  children: null
};
/* harmony default export */ __webpack_exports__["default"] = (ListViewMainInfo);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewRow.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewRow.js ***!
  \***********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _ListViewActions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ListViewActions */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewActions.js");
/* harmony import */ var _ListViewAdditionalInfo__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ListViewAdditionalInfo */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewAdditionalInfo.js");
/* harmony import */ var _ListViewCheckbox__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ListViewCheckbox */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewCheckbox.js");
/* harmony import */ var _ListViewLeft__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ListViewLeft */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewLeft.js");
/* harmony import */ var _ListViewBody__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ListViewBody */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewBody.js");
/* harmony import */ var _ListViewDescription__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ListViewDescription */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewDescription.js");
/* harmony import */ var _ListViewDescriptionHeading__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ListViewDescriptionHeading */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewDescriptionHeading.js");
/* harmony import */ var _ListViewDescriptionText__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./ListViewDescriptionText */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewDescriptionText.js");
/* harmony import */ var _ListViewMainInfo__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./ListViewMainInfo */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewMainInfo.js");













/**
 * ListViewRow wraps the ListViewItem row, conditionally renders sections
 * based on availability of individual props, maintains the ListItem row structure
 */
var ListViewRow = function ListViewRow(_ref) {
  var actions = _ref.actions,
      additionalInfo = _ref.additionalInfo,
      checkboxInput = _ref.checkboxInput,
      leftContent = _ref.leftContent,
      heading = _ref.heading,
      description = _ref.description;

  var items = [];

  if (checkboxInput) {
    items.push(react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _ListViewCheckbox__WEBPACK_IMPORTED_MODULE_4__["default"],
      { key: 'checkbox' },
      checkboxInput
    ));
  }

  if (actions) {
    items.push(react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _ListViewActions__WEBPACK_IMPORTED_MODULE_2__["default"],
      { key: 'actions' },
      actions
    ));
  }

  items.push(react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _ListViewMainInfo__WEBPACK_IMPORTED_MODULE_10__["default"],
    { key: 'main_info' },
    leftContent && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _ListViewLeft__WEBPACK_IMPORTED_MODULE_5__["default"],
      null,
      leftContent
    ),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _ListViewBody__WEBPACK_IMPORTED_MODULE_6__["default"],
      null,
      (heading || description) && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _ListViewDescription__WEBPACK_IMPORTED_MODULE_7__["default"],
        null,
        heading && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          _ListViewDescriptionHeading__WEBPACK_IMPORTED_MODULE_8__["default"],
          null,
          heading
        ),
        description && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          _ListViewDescriptionText__WEBPACK_IMPORTED_MODULE_9__["default"],
          null,
          description
        )
      ),
      additionalInfo && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _ListViewAdditionalInfo__WEBPACK_IMPORTED_MODULE_3__["default"],
        null,
        additionalInfo
      )
    )
  ));

  return items;
};

ListViewRow.propTypes = {
  /** Node which renders right-positioned actions (e.g. Buttons, DropdownKebab...) */
  actions: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** An array of ListViewInfoItem instances to render additional info items */
  additionalInfo: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node),
  /** Contents of ListViewItem description section */
  description: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Contents of ListViewItem heading */
  heading: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Contents for left section of ListViewItem (usually ListViewIcon) */
  leftContent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Checkbox form input component */
  checkboxInput: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
/* harmony default export */ __webpack_exports__["default"] = (ListViewRow);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/index.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/index.js ***!
  \*****************************************************************************/
/*! exports provided: ListView, ListViewActions, ListViewAdditionalInfo, ListViewBody, ListViewCheckbox, ListViewDescription, ListViewDescriptionHeading, ListViewDescriptionText, ListViewExpand, ListViewGroupItem, ListViewGroupItemContainer, ListViewGroupItemHeader, ListViewIcon, ListViewInfoItem, ListViewItem, ListViewLeft, ListViewMainInfo, ListViewRow */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _ListView__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ListView */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListView.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListView", function() { return _ListView__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _ListViewActions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ListViewActions */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewActions.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewActions", function() { return _ListViewActions__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _ListViewAdditionalInfo__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ListViewAdditionalInfo */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewAdditionalInfo.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewAdditionalInfo", function() { return _ListViewAdditionalInfo__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _ListViewBody__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ListViewBody */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewBody.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewBody", function() { return _ListViewBody__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _ListViewCheckbox__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ListViewCheckbox */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewCheckbox.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewCheckbox", function() { return _ListViewCheckbox__WEBPACK_IMPORTED_MODULE_4__["default"]; });

/* harmony import */ var _ListViewDescription__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ListViewDescription */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewDescription.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewDescription", function() { return _ListViewDescription__WEBPACK_IMPORTED_MODULE_5__["default"]; });

/* harmony import */ var _ListViewDescriptionHeading__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ListViewDescriptionHeading */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewDescriptionHeading.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewDescriptionHeading", function() { return _ListViewDescriptionHeading__WEBPACK_IMPORTED_MODULE_6__["default"]; });

/* harmony import */ var _ListViewDescriptionText__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ListViewDescriptionText */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewDescriptionText.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewDescriptionText", function() { return _ListViewDescriptionText__WEBPACK_IMPORTED_MODULE_7__["default"]; });

/* harmony import */ var _ListViewExpand__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ListViewExpand */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewExpand.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewExpand", function() { return _ListViewExpand__WEBPACK_IMPORTED_MODULE_8__["default"]; });

/* harmony import */ var _ListViewGroupItem__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./ListViewGroupItem */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewGroupItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewGroupItem", function() { return _ListViewGroupItem__WEBPACK_IMPORTED_MODULE_9__["default"]; });

/* harmony import */ var _ListViewGroupItemContainer__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./ListViewGroupItemContainer */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewGroupItemContainer.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewGroupItemContainer", function() { return _ListViewGroupItemContainer__WEBPACK_IMPORTED_MODULE_10__["default"]; });

/* harmony import */ var _ListViewGroupItemHeader__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./ListViewGroupItemHeader */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewGroupItemHeader.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewGroupItemHeader", function() { return _ListViewGroupItemHeader__WEBPACK_IMPORTED_MODULE_11__["default"]; });

/* harmony import */ var _ListViewIcon__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./ListViewIcon */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewIcon.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewIcon", function() { return _ListViewIcon__WEBPACK_IMPORTED_MODULE_12__["default"]; });

/* harmony import */ var _ListViewInfoItem__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./ListViewInfoItem */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewInfoItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewInfoItem", function() { return _ListViewInfoItem__WEBPACK_IMPORTED_MODULE_13__["default"]; });

/* harmony import */ var _ListViewItem__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./ListViewItem */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewItem", function() { return _ListViewItem__WEBPACK_IMPORTED_MODULE_14__["default"]; });

/* harmony import */ var _ListViewLeft__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./ListViewLeft */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewLeft.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewLeft", function() { return _ListViewLeft__WEBPACK_IMPORTED_MODULE_15__["default"]; });

/* harmony import */ var _ListViewMainInfo__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./ListViewMainInfo */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewMainInfo.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewMainInfo", function() { return _ListViewMainInfo__WEBPACK_IMPORTED_MODULE_16__["default"]; });

/* harmony import */ var _ListViewRow__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./ListViewRow */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewRow.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewRow", function() { return _ListViewRow__WEBPACK_IMPORTED_MODULE_17__["default"]; });






















/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoadingState/LoadingState.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoadingState/LoadingState.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Spinner__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Spinner */ "./node_modules/patternfly-react/dist/esm/components/Spinner/index.js");
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; }; }();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }






var LoadingState = function (_Component) {
  _inherits(LoadingState, _Component);

  function LoadingState(props) {
    _classCallCheck(this, LoadingState);

    var _this = _possibleConstructorReturn(this, (LoadingState.__proto__ || Object.getPrototypeOf(LoadingState)).call(this, props));

    _this.state = {
      render: false
    };
    return _this;
  }

  _createClass(LoadingState, [{
    key: 'componentDidMount',
    value: function componentDidMount() {
      var _this2 = this;

      this.onTimeout = setTimeout(function () {
        _this2.setState({ render: true });
      }, this.props.timeout);
    }
  }, {
    key: 'componentWillUnmout',
    value: function componentWillUnmout() {
      clearTimeout(this.onTimeout);
    }
  }, {
    key: 'render',
    value: function render() {
      var _props = this.props,
          loading = _props.loading,
          loadingText = _props.loadingText,
          children = _props.children,
          size = _props.size,
          additionalClasses = _props.additionalClasses;


      var spinner = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'div',
        { className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('loading-state-pf', 'loading-state-pf-' + size, additionalClasses) },
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Spinner__WEBPACK_IMPORTED_MODULE_3__["Spinner"], { loading: loading, size: size }),
        loadingText
      );

      if (loading) {
        return this.state.render ? spinner : null;
      }
      return children;
    }
  }]);

  return LoadingState;
}(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

LoadingState.propTypes = {
  /** determines whether to show spinner or children */
  loading: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** text to show with spinner */
  loadingText: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** delay in showing the children */
  timeout: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  /** size of the spinner */
  size: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['lg', 'md', 'sm', 'xs']),
  /** additional css classes for LoadingState */
  additionalClasses: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};

LoadingState.defaultProps = {
  loading: false,
  loadingText: 'Loading',
  children: null,
  timeout: 300,
  size: 'lg',
  additionalClasses: ''
};

/* harmony default export */ __webpack_exports__["default"] = (LoadingState);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoadingState/index.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoadingState/index.js ***!
  \*********************************************************************************/
/*! exports provided: LoadingState */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _LoadingState__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./LoadingState */ "./node_modules/patternfly-react/dist/esm/components/LoadingState/LoadingState.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoadingState", function() { return _LoadingState__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/LoginPage.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/LoginPage.js ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _components_LoginPageComponents_LoginPageAlert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/LoginPageComponents/LoginPageAlert */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageAlert.js");
/* harmony import */ var _components_LoginPageComponents_LoginPageAlerts__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/LoginPageComponents/LoginPageAlerts */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageAlerts.js");
/* harmony import */ var _components_LoginPageComponents_LoginPageContainer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/LoginPageComponents/LoginPageContainer */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageContainer.js");
/* harmony import */ var _components_LoginPageComponents_LoginPageHeader__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/LoginPageComponents/LoginPageHeader */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageHeader.js");
/* harmony import */ var _components_LoginPageComponents_LoginPageFooter__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/LoginPageComponents/LoginPageFooter */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageFooter.js");
/* harmony import */ var _components_LoginPageComponents_LoginFooterLinks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/LoginPageComponents/LoginFooterLinks */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginFooterLinks.js");
/* harmony import */ var _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCard */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCard.js");
/* harmony import */ var _components_LoginPageComponents_LoginPageWithTranslation__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./components/LoginPageComponents/LoginPageWithTranslation */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageWithTranslation.js");
/* harmony import */ var _components_LoginPageComponents_LoginPageLink__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./components/LoginPageComponents/LoginPageLink */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageLink.js");
/* harmony import */ var _SocialLoginPage__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./SocialLoginPage */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/SocialLoginPage.js");
/* harmony import */ var _components_LoginPageComponents_SocialLoginPageContainer__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./components/LoginPageComponents/SocialLoginPageContainer */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/SocialLoginPageContainer.js");
/* harmony import */ var _components_LoginPageComponents_BasicLoginPageLayout__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./components/LoginPageComponents/BasicLoginPageLayout */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/BasicLoginPageLayout.js");
/* harmony import */ var _components_LoginCardComponents_LoginCardHeader__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardHeader */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardHeader.js");
/* harmony import */ var _components_LoginCardComponents_LoginLanguagePicker__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginLanguagePicker */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginLanguagePicker.js");
/* harmony import */ var _components_LoginCardComponents_LoginCardWithValidation__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardWithValidation */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardWithValidation.js");
/* harmony import */ var _components_LoginCardComponents_LoginCardForm__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardForm */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardForm.js");
/* harmony import */ var _components_LoginCardComponents_LoginCardSignUp__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardSignUp */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSignUp.js");
/* harmony import */ var _components_LoginCardComponents_LoginCardInput__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardInput */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardInput.js");
/* harmony import */ var _components_LoginCardComponents_LoginCardInputWarning__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardInputWarning */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardInputWarning.js");
/* harmony import */ var _components_LoginCardComponents_LoginCardSettings__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardSettings */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSettings.js");
/* harmony import */ var _components_LoginCardComponents_LoginFormError__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginFormError */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginFormError.js");
/* harmony import */ var _components_LoginCardComponents_LoginCardForgotPassword__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardForgotPassword */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardForgotPassword.js");
/* harmony import */ var _components_LoginCardComponents_LoginCardRememberMe__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardRememberMe */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardRememberMe.js");
/* harmony import */ var _components_LoginCardComponents_LoginCardSocialSection__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardSocialSection */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSocialSection.js");
/* harmony import */ var _components_LoginCardComponents_LoginCardSocialLink__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardSocialLink */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSocialLink.js");
/* harmony import */ var _components_LoginCardComponents_LoginCardSocialColumns__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardSocialColumns */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSocialColumns.js");
/* harmony import */ var _components_LoginCardComponents_SocialLoginCard__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./components/LoginCardComponents/SocialLoginCard */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/SocialLoginCard.js");
/* harmony import */ var _components_LoginCardComponents_BasicLoginCardLayout__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./components/LoginCardComponents/BasicLoginCardLayout */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/BasicLoginCardLayout.js");
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; };

function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
































var LoginPagePattern = function LoginPagePattern(_ref) {
  var container = _ref.container,
      header = _ref.header,
      footerLinks = _ref.footerLinks,
      card = _ref.card;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    LoginPage.Container,
    container,
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(LoginPage.Alerts, { alert: container.alert }),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      LoginPage.BasicLayout,
      null,
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(LoginPage.Header, header),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"].BasicLayout,
        card.layout,
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"],
          null,
          react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
            _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"].Header,
            null,
            react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"].LanguagePicker, {
              selectedLanguage: card.selectedLanguage,
              availableLanguages: card.availableLanguages,
              onLanguageChange: card.onLanguageChange
            }),
            react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
              'h1',
              null,
              card.title
            )
          ),
          react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
            _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"].WithValidation,
            card.form,
            react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"].Form, null)
          ),
          react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"].SignUp, card.signUp)
        ),
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(LoginPage.Footer, { links: footerLinks })
      )
    )
  );
};

var LoginPage = function LoginPage(props) {
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    LoginPage.WithTranslation,
    props,
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(LoginPage.Pattern, null)
  );
};

LoginPage.Container = _components_LoginPageComponents_LoginPageContainer__WEBPACK_IMPORTED_MODULE_4__["default"];
LoginPage.Header = _components_LoginPageComponents_LoginPageHeader__WEBPACK_IMPORTED_MODULE_5__["default"];
LoginPage.Footer = _components_LoginPageComponents_LoginPageFooter__WEBPACK_IMPORTED_MODULE_6__["default"];
LoginPage.Card = _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"];
LoginPage.FooterLinks = _components_LoginPageComponents_LoginFooterLinks__WEBPACK_IMPORTED_MODULE_7__["default"];
LoginPage.WithTranslation = _components_LoginPageComponents_LoginPageWithTranslation__WEBPACK_IMPORTED_MODULE_9__["default"];
LoginPage.Alerts = _components_LoginPageComponents_LoginPageAlerts__WEBPACK_IMPORTED_MODULE_3__["default"];
LoginPage.Alert = _components_LoginPageComponents_LoginPageAlert__WEBPACK_IMPORTED_MODULE_2__["default"];
LoginPage.Pattern = LoginPagePattern;
LoginPage.Social = _SocialLoginPage__WEBPACK_IMPORTED_MODULE_11__["default"];
LoginPage.SocialContainer = _components_LoginPageComponents_SocialLoginPageContainer__WEBPACK_IMPORTED_MODULE_12__["default"];
LoginPage.BasicLayout = _components_LoginPageComponents_BasicLoginPageLayout__WEBPACK_IMPORTED_MODULE_13__["default"];
LoginPage.Link = _components_LoginPageComponents_LoginPageLink__WEBPACK_IMPORTED_MODULE_10__["default"];
LoginPage.CardHeaer = _components_LoginCardComponents_LoginCardHeader__WEBPACK_IMPORTED_MODULE_14__["default"];
LoginPage.LanguagePicker = _components_LoginCardComponents_LoginLanguagePicker__WEBPACK_IMPORTED_MODULE_15__["default"];
LoginPage.CardWithValidation = _components_LoginCardComponents_LoginCardWithValidation__WEBPACK_IMPORTED_MODULE_16__["default"];
LoginPage.CardForm = _components_LoginCardComponents_LoginCardForm__WEBPACK_IMPORTED_MODULE_17__["default"];
LoginPage.CardSignUp = _components_LoginCardComponents_LoginCardSignUp__WEBPACK_IMPORTED_MODULE_18__["default"];
LoginPage.CardInput = _components_LoginCardComponents_LoginCardInput__WEBPACK_IMPORTED_MODULE_19__["default"];
LoginPage.CardInputWarning = _components_LoginCardComponents_LoginCardInputWarning__WEBPACK_IMPORTED_MODULE_20__["default"];
LoginPage.CardSettings = _components_LoginCardComponents_LoginCardSettings__WEBPACK_IMPORTED_MODULE_21__["default"];
LoginPage.FormError = _components_LoginCardComponents_LoginFormError__WEBPACK_IMPORTED_MODULE_22__["default"];
LoginPage.CardForgotPassword = _components_LoginCardComponents_LoginCardForgotPassword__WEBPACK_IMPORTED_MODULE_23__["default"];
LoginPage.CardRememberMe = _components_LoginCardComponents_LoginCardRememberMe__WEBPACK_IMPORTED_MODULE_24__["default"];
LoginPage.CardSocialSection = _components_LoginCardComponents_LoginCardSocialSection__WEBPACK_IMPORTED_MODULE_25__["default"];
LoginPage.CardSocialLink = _components_LoginCardComponents_LoginCardSocialLink__WEBPACK_IMPORTED_MODULE_26__["default"];
LoginPage.CardSocialColumns = _components_LoginCardComponents_LoginCardSocialColumns__WEBPACK_IMPORTED_MODULE_27__["default"];
LoginPage.SocialLoginCard = _components_LoginCardComponents_SocialLoginCard__WEBPACK_IMPORTED_MODULE_28__["default"];
LoginPage.BasicLoginCardLayout = _components_LoginCardComponents_BasicLoginCardLayout__WEBPACK_IMPORTED_MODULE_29__["default"];

LoginPagePattern.propTypes = {
  container: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_extends({}, LoginPage.Container.propTypes)),
  header: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_extends({}, LoginPage.Header.propTypes)),
  card: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_extends({}, _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"].LanguagePicker.propTypes, _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"].Form.propTypes, _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"].SignUp.propTypes, _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"].RememberMe.propTypes, _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"].ForgotPassword.propTypes)),
  footerLinks: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array
};

LoginPagePattern.defaultProps = {
  container: _extends({}, LoginPage.Container.defaultProps),
  header: _extends({}, LoginPage.Header.defaultProps),
  card: _extends({}, _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"].LanguagePicker.defaultProps, _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"].Form.defaultProps, _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"].SignUp.defaultProps, _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"].RememberMe.defaultProps, _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"].ForgotPassword.defaultProps),
  footerLinks: [].concat(_toConsumableArray(LoginPage.Footer.defaultProps.links))
};

LoginPage.propTypes = _extends({}, LoginPagePattern.propTypes);
LoginPage.defaultProps = _extends({}, LoginPagePattern.defaultProps);

/* harmony default export */ __webpack_exports__["default"] = (LoginPage);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/SocialLoginPage.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/SocialLoginPage.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCard */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCard.js");
/* harmony import */ var _LoginPage__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./LoginPage */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/LoginPage.js");
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; };





var SocialLoginPagePattern = function SocialLoginPagePattern(_ref) {
  var container = _ref.container,
      header = _ref.header,
      footerLinks = _ref.footerLinks,
      card = _ref.card;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _LoginPage__WEBPACK_IMPORTED_MODULE_2__["default"].SocialContainer,
    container,
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginPage__WEBPACK_IMPORTED_MODULE_2__["default"].Alerts, { alert: container.alert }),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginPage__WEBPACK_IMPORTED_MODULE_2__["default"].Header, header),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_1__["default"].Social,
      null,
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_1__["default"].Header,
        null,
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_1__["default"].LanguagePicker, {
          selectedLanguage: card.selectedLanguage,
          availableLanguages: card.availableLanguages,
          onLanguageChange: card.onLanguageChange
        }),
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          'h1',
          null,
          card.title
        )
      ),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_1__["default"].SocialSection,
        null,
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_1__["default"].WithValidation,
          card.form,
          react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_1__["default"].Form, null)
        )
      ),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_1__["default"].SocialSection,
        null,
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_1__["default"].SocialColumns, card.social)
      ),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_1__["default"].SignUp, card.signUp)
    ),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginPage__WEBPACK_IMPORTED_MODULE_2__["default"].Footer, { links: footerLinks })
  );
};

var SocialLoginPage = function SocialLoginPage(props) {
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _LoginPage__WEBPACK_IMPORTED_MODULE_2__["default"].WithTranslation,
    props,
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(SocialLoginPagePattern, null)
  );
};

var getLoginPage = function getLoginPage(props) {
  return Object(_LoginPage__WEBPACK_IMPORTED_MODULE_2__["default"])(props);
};

SocialLoginPage.Pattern = SocialLoginPagePattern;

SocialLoginPagePattern.propTypes = _extends({}, getLoginPage.propTypes);

SocialLoginPagePattern.defaultProps = _extends({}, getLoginPage.defaultProps);

/* harmony default export */ __webpack_exports__["default"] = (SocialLoginPage);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/BasicLoginCardLayout.js":
/*!****************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/BasicLoginCardLayout.js ***!
  \****************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var BasicLoginCardLayout = function BasicLoginCardLayout(_ref) {
  var children = _ref.children,
      props = _objectWithoutProperties(_ref, ['children']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _index__WEBPACK_IMPORTED_MODULE_2__["Row"],
    null,
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _index__WEBPACK_IMPORTED_MODULE_2__["Col"],
      _extends({ sm: 10, smOffset: 1, md: 8, mdOffset: 2, lg: 8, lgOffset: 2 }, props),
      children
    )
  );
};

BasicLoginCardLayout.propTypes = {
  /** Children nodes. */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};

BasicLoginCardLayout.defaultProps = {
  children: null
};

/* harmony default export */ __webpack_exports__["default"] = (BasicLoginCardLayout);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCard.js":
/*!*****************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCard.js ***!
  \*****************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Cards_Card__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../Cards/Card */ "./node_modules/patternfly-react/dist/esm/components/Cards/Card.js");
/* harmony import */ var _LoginCardHeader__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./LoginCardHeader */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardHeader.js");
/* harmony import */ var _LoginLanguagePicker__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./LoginLanguagePicker */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginLanguagePicker.js");
/* harmony import */ var _LoginCardWithValidation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./LoginCardWithValidation */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardWithValidation.js");
/* harmony import */ var _LoginCardForm__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./LoginCardForm */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardForm.js");
/* harmony import */ var _LoginCardSignUp__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./LoginCardSignUp */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSignUp.js");
/* harmony import */ var _LoginCardInput__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./LoginCardInput */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardInput.js");
/* harmony import */ var _LoginCardSettings__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./LoginCardSettings */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSettings.js");
/* harmony import */ var _LoginFormError__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./LoginFormError */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginFormError.js");
/* harmony import */ var _LoginCardForgotPassword__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./LoginCardForgotPassword */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardForgotPassword.js");
/* harmony import */ var _LoginCardRememberMe__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./LoginCardRememberMe */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardRememberMe.js");
/* harmony import */ var _LoginCardSocialLink__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./LoginCardSocialLink */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSocialLink.js");
/* harmony import */ var _LoginCardSocialSection__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./LoginCardSocialSection */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSocialSection.js");
/* harmony import */ var _LoginCardSocialColumns__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./LoginCardSocialColumns */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSocialColumns.js");
/* harmony import */ var _SocialLoginCard__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./SocialLoginCard */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/SocialLoginCard.js");
/* harmony import */ var _BasicLoginCardLayout__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./BasicLoginCardLayout */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/BasicLoginCardLayout.js");
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }




















var LoginCard = function LoginCard(_ref) {
  var children = _ref.children,
      props = _objectWithoutProperties(_ref, ['children']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _Cards_Card__WEBPACK_IMPORTED_MODULE_2__["default"],
    props,
    children
  );
};

LoginCard.propTypes = {
  /** Children nodes. */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};

LoginCard.defaultProps = {
  children: null
};

LoginCard.Header = _LoginCardHeader__WEBPACK_IMPORTED_MODULE_3__["default"];
LoginCard.LanguagePicker = _LoginLanguagePicker__WEBPACK_IMPORTED_MODULE_4__["default"];
LoginCard.WithValidation = _LoginCardWithValidation__WEBPACK_IMPORTED_MODULE_5__["default"];
LoginCard.Form = _LoginCardForm__WEBPACK_IMPORTED_MODULE_6__["default"];
LoginCard.SignUp = _LoginCardSignUp__WEBPACK_IMPORTED_MODULE_7__["default"];
LoginCard.Input = _LoginCardInput__WEBPACK_IMPORTED_MODULE_8__["default"];
LoginCard.Settings = _LoginCardSettings__WEBPACK_IMPORTED_MODULE_9__["default"];
LoginCard.FormError = _LoginFormError__WEBPACK_IMPORTED_MODULE_10__["default"];
LoginCard.ForgotPassword = _LoginCardForgotPassword__WEBPACK_IMPORTED_MODULE_11__["default"];
LoginCard.RememberMe = _LoginCardRememberMe__WEBPACK_IMPORTED_MODULE_12__["default"];
LoginCard.Social = _SocialLoginCard__WEBPACK_IMPORTED_MODULE_16__["default"];
LoginCard.SocialLink = _LoginCardSocialLink__WEBPACK_IMPORTED_MODULE_13__["default"];
LoginCard.SocialSection = _LoginCardSocialSection__WEBPACK_IMPORTED_MODULE_14__["default"];
LoginCard.SocialColumns = _LoginCardSocialColumns__WEBPACK_IMPORTED_MODULE_15__["default"];
LoginCard.BasicLayout = _BasicLoginCardLayout__WEBPACK_IMPORTED_MODULE_17__["default"];

/* harmony default export */ __webpack_exports__["default"] = (LoginCard);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardForgotPassword.js":
/*!*******************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardForgotPassword.js ***!
  \*******************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _LoginPageComponents_LoginPageLink__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../LoginPageComponents/LoginPageLink */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageLink.js");
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var LoginCardForgotPassword = function LoginCardForgotPassword(_ref) {
  var label = _ref.label,
      props = _objectWithoutProperties(_ref, ['label']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _LoginPageComponents_LoginPageLink__WEBPACK_IMPORTED_MODULE_2__["default"],
    props,
    label
  );
};

LoginCardForgotPassword.propTypes = {
  /** The forgot password label. */
  label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};

LoginCardForgotPassword.defaultProps = {
  label: 'Forgot password?'
};

/* harmony default export */ __webpack_exports__["default"] = (LoginCardForgotPassword);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardForm.js":
/*!*********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardForm.js ***!
  \*********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _LoginCardInput__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./LoginCardInput */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardInput.js");
/* harmony import */ var _LoginCardSettings__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./LoginCardSettings */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSettings.js");
/* harmony import */ var _LoginCardSubmitButton__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./LoginCardSubmitButton */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSubmitButton.js");
/* harmony import */ var _LoginFormError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./LoginFormError */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginFormError.js");
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; };










var LoginCardForm = function LoginCardForm(_ref) {
  var usernameField = _ref.usernameField,
      passwordField = _ref.passwordField,
      additionalFields = _ref.additionalFields,
      submitText = _ref.submitText,
      disableSubmit = _ref.disableSubmit,
      onSubmit = _ref.onSubmit,
      forgotPassword = _ref.forgotPassword,
      rememberMe = _ref.rememberMe,
      submitError = _ref.submitError,
      showError = _ref.showError,
      attributes = _ref.attributes,
      isSubmitting = _ref.isSubmitting,
      topErrorOnly = _ref.topErrorOnly;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _index__WEBPACK_IMPORTED_MODULE_6__["Form"],
    _extends({ onSubmit: onSubmit, noValidate: true }, attributes),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _LoginFormError__WEBPACK_IMPORTED_MODULE_5__["default"],
      { show: showError, topErrorOnly: topErrorOnly },
      submitError
    ),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginCardInput__WEBPACK_IMPORTED_MODULE_2__["default"], _extends({}, usernameField, { topErrorOnly: topErrorOnly })),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginCardInput__WEBPACK_IMPORTED_MODULE_2__["default"], _extends({}, passwordField, { topErrorOnly: topErrorOnly })),
    additionalFields,
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginCardSettings__WEBPACK_IMPORTED_MODULE_3__["default"], { rememberMe: rememberMe, forgotPassword: forgotPassword }),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _LoginCardSubmitButton__WEBPACK_IMPORTED_MODULE_4__["default"],
      { isDisabled: disableSubmit, isLoading: isSubmitting },
      submitText
    )
  );
};

LoginCardForm.propTypes = {
  /** login username input's props */
  usernameField: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_extends({}, _LoginCardInput__WEBPACK_IMPORTED_MODULE_2__["default"].propTypes)),
  /** login password input's props */
  passwordField: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_extends({}, _LoginCardInput__WEBPACK_IMPORTED_MODULE_2__["default"].propTypes)),
  /** Add additional fields under the inputs  */
  additionalFields: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** The submit button text */
  submitText: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Sets the submit button disability */
  disableSubmit: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** A callback that will be triggered when the form is submitted */
  onSubmit: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** The forgotPassowrd section props */
  forgotPassword: _LoginCardSettings__WEBPACK_IMPORTED_MODULE_3__["default"].propTypes.forgotPassword,
  /** The rememberMe section props */
  rememberMe: _LoginCardSettings__WEBPACK_IMPORTED_MODULE_3__["default"].propTypes.rememberMe,
  /** The login form error which is usually shown after the submit - a server error. */
  submitError: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node]),
  /** Controlls the form error visibility */
  showError: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Additional HTML attributes to pass to the form */
  attributes: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  /** Indicates the state of the form submit and whether to show a spinner or not */
  isSubmitting: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** when topErrorOnly is set to true,
   * the helpblock errors/warnings under each input won't appear,
   * instead we will have only the form error above.
   */
  topErrorOnly: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};

LoginCardForm.defaultProps = {
  usernameField: _extends({}, _LoginCardInput__WEBPACK_IMPORTED_MODULE_2__["default"].defaultProps, {
    id: 'card_email',
    type: 'email',
    placeholder: 'Email Address'
  }),
  passwordField: _extends({}, _LoginCardInput__WEBPACK_IMPORTED_MODULE_2__["default"].defaultProps, {
    id: 'card_password',
    type: 'password',
    placeholder: 'Password',
    minLength: 8
  }),
  additionalFields: null,
  submitText: null,
  disableSubmit: false,
  onSubmit: _common_helpers__WEBPACK_IMPORTED_MODULE_7__["noop"],
  forgotPassword: {
    label: null,
    href: '#',
    onClick: _common_helpers__WEBPACK_IMPORTED_MODULE_7__["noop"]
  },
  rememberMe: { label: null },
  submitError: null,
  showError: false,
  attributes: null,
  isSubmitting: false,
  topErrorOnly: false
};

/* harmony default export */ __webpack_exports__["default"] = (LoginCardForm);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardHeader.js":
/*!***********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardHeader.js ***!
  \***********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var LoginCardHeader = function LoginCardHeader(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'header',
    _extends({}, props, { className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('login-pf-header', className) }),
    children
  );
};

LoginCardHeader.propTypes = {
  /** Additional css classes. */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Children nodes. */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};

LoginCardHeader.defaultProps = {
  className: '',
  children: null
};

/* harmony default export */ __webpack_exports__["default"] = (LoginCardHeader);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardInput.js":
/*!**********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardInput.js ***!
  \**********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var react_bootstrap_es_Fade__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-bootstrap/es/Fade */ "./node_modules/react-bootstrap/es/Fade.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _LoginCardInputWarning__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./LoginCardInputWarning */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardInputWarning.js");
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; };










var LoginCardInput = function LoginCardInput(_ref) {
  var id = _ref.id,
      type = _ref.type,
      placeholder = _ref.placeholder,
      size = _ref.size,
      error = _ref.error,
      warning = _ref.warning,
      onChange = _ref.onChange,
      onFocus = _ref.onFocus,
      onBlur = _ref.onBlur,
      onKeyPress = _ref.onKeyPress,
      showError = _ref.showError,
      showWarning = _ref.showWarning,
      className = _ref.className,
      autoComplete = _ref.autoComplete,
      attributes = _ref.attributes,
      topErrorOnly = _ref.topErrorOnly;

  var helpBlock = !topErrorOnly ? showError && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _index__WEBPACK_IMPORTED_MODULE_5__["HelpBlock"],
    null,
    error
  ) || showWarning && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _LoginCardInputWarning__WEBPACK_IMPORTED_MODULE_4__["default"],
    null,
    warning
  ) : null;
  var validationState = null;
  if (topErrorOnly) {
    if (showWarning) {
      validationState = 'warning';
    }
  } else if (showError) {
    validationState = 'error';
  }
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _index__WEBPACK_IMPORTED_MODULE_5__["FormGroup"],
    { className: classnames__WEBPACK_IMPORTED_MODULE_3___default()('login_card_input', className), controlId: id, validationState: validationState },
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_5__["FormControl"], _extends({}, attributes, {
      type: type,
      placeholder: placeholder,
      bsSize: size,
      onChange: onChange,
      onFocus: onFocus,
      onBlur: onBlur,
      onKeyPress: onKeyPress,
      autoComplete: autoComplete
    })),
    topErrorOnly && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_5__["FormControl"].Feedback, null),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      react_bootstrap_es_Fade__WEBPACK_IMPORTED_MODULE_2__["default"],
      { 'in': showError || showWarning },
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'div',
        null,
        helpBlock
      )
    )
  );
};

LoginCardInput.propTypes = {
  /** The input's id */
  id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number]),
  /** The input's HTML type */
  type: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** The input's placeholder */
  placeholder: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** The bsSize of the input */
  size: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** The error which is presented under the input */
  error: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node]),
  /** The warning which is presented under the input */
  warning: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node]),
  /** A callback which is fired when the input changes. */
  onChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Controlls the warning visibility */
  showWarning: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** A callback which is fired when the input blurs. */
  onBlur: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** A callback which is fired when the input is focused. */
  onFocus: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** A callback which is fired on a key press. */
  onKeyPress: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** A callback which is fired when the input blurs. */
  showError: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** An additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Sets the HTML autocomplete */
  autoComplete: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Additional HTML input's attributes. */
  attributes: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  /** when topErrorOnly is set to true,
   * the helpblock errors/warnings under each input won't appear,
   * instead we will have only the form error above.
   */
  topErrorOnly: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};

LoginCardInput.defaultProps = {
  id: Math.random().toString(),
  type: 'text',
  placeholder: 'Enter Text',
  size: 'lg',
  error: null,
  warning: null,
  onChange: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
  showWarning: false,
  onBlur: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
  onFocus: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
  onKeyPress: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
  showError: false,
  className: null,
  autoComplete: '',
  attributes: null,
  topErrorOnly: false
};

/* harmony default export */ __webpack_exports__["default"] = (LoginCardInput);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardInputWarning.js":
/*!*****************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardInputWarning.js ***!
  \*****************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }






var LoginCardInputWarning = function LoginCardInputWarning(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  return children && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    _extends({}, props, { className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('login-pf-input-warning', className) }),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_3__["Icon"], { type: 'pf', name: 'warning-triangle-o' }),
    '   ',
    children
  );
};

LoginCardInputWarning.propTypes = {
  /** Children nodes. */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Additional css classes. */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};

LoginCardInputWarning.defaultProps = {
  children: null,
  className: null
};

/* harmony default export */ __webpack_exports__["default"] = (LoginCardInputWarning);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardRememberMe.js":
/*!***************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardRememberMe.js ***!
  \***************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var LoginCardRememberMe = function LoginCardRememberMe(_ref) {
  var onClick = _ref.onClick,
      label = _ref.label,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['onClick', 'label', 'className']);

  return label && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'label',
    { className: 'checkbox-label ' + className },
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('input', _extends({}, props, { type: 'checkbox', onClick: onClick })),
    ' ',
    label
  );
};

LoginCardRememberMe.propTypes = {
  /** The checkbox label. */
  label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Additional css classes. */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Callback to trigger when clicking the checkbox */
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};

LoginCardRememberMe.defaultProps = {
  label: null,
  className: '',
  onClick: _common_helpers__WEBPACK_IMPORTED_MODULE_2__["noop"]
};

/* harmony default export */ __webpack_exports__["default"] = (LoginCardRememberMe);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSettings.js":
/*!*************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSettings.js ***!
  \*************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _LoginCardRememberMe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./LoginCardRememberMe */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardRememberMe.js");
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _LoginCardForgotPassword__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./LoginCardForgotPassword */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardForgotPassword.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }








var LoginCardSettings = function LoginCardSettings(_ref) {
  var rememberMe = _ref.rememberMe,
      forgotPassword = _ref.forgotPassword,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['rememberMe', 'forgotPassword', 'className']);

  return rememberMe.label || forgotPassword.label ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _index__WEBPACK_IMPORTED_MODULE_4__["FormGroup"],
    _extends({}, props, { className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('login-pf-settings', className) }),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginCardRememberMe__WEBPACK_IMPORTED_MODULE_3__["default"], rememberMe),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginCardForgotPassword__WEBPACK_IMPORTED_MODULE_5__["default"], forgotPassword)
  ) : null;
};

LoginCardSettings.propTypes = {
  /** Additional css classes. */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** RememberMe component's props. */
  rememberMe: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_extends({}, _LoginCardRememberMe__WEBPACK_IMPORTED_MODULE_3__["default"].propTypes)),
  /** ForgotPassword component's props. */
  forgotPassword: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_extends({}, _LoginCardForgotPassword__WEBPACK_IMPORTED_MODULE_5__["default"].propTypes))
};

LoginCardSettings.defaultProps = {
  className: null,
  rememberMe: {},
  forgotPassword: {}
};

/* harmony default export */ __webpack_exports__["default"] = (LoginCardSettings);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSignUp.js":
/*!***********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSignUp.js ***!
  \***********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _LoginPageComponents_LoginPageLink__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../LoginPageComponents/LoginPageLink */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageLink.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }






var LoginCardSignUp = function LoginCardSignUp(_ref) {
  var label = _ref.label,
      link = _ref.link,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['label', 'link', 'className']);

  return label && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    _extends({}, props, { className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('login-pf-signup', className) }),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'p',
      null,
      label,
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginPageComponents_LoginPageLink__WEBPACK_IMPORTED_MODULE_3__["default"], link)
    )
  );
};

LoginCardSignUp.propTypes = {
  /** Additional css classes. */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** The sign up label. */
  label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** The sign up label. */
  link: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_extends({}, _LoginPageComponents_LoginPageLink__WEBPACK_IMPORTED_MODULE_3__["default"].propTypes))
};

LoginCardSignUp.defaultProps = {
  className: '',
  label: null,
  link: {}
};

/* harmony default export */ __webpack_exports__["default"] = (LoginCardSignUp);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSocialColumns.js":
/*!******************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSocialColumns.js ***!
  \******************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _LoginCardSocialLink__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./LoginCardSocialLink */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSocialLink.js");
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; };

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; }; }();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }







var LoginCardSocialColumns = function (_React$Component) {
  _inherits(LoginCardSocialColumns, _React$Component);

  function LoginCardSocialColumns() {
    var _ref;

    var _temp, _this, _ret;

    _classCallCheck(this, LoginCardSocialColumns);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = LoginCardSocialColumns.__proto__ || Object.getPrototypeOf(LoginCardSocialColumns)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
      expend: false,
      width: window.innerWidth
    }, _this.updateWindowWidth = function () {
      _this.setState({
        width: window.innerWidth
      });
    }, _this.getListItems = function () {
      _this.hiddenLinks = [];
      var _this$props = _this.props,
          links = _this$props.links,
          numberOfButtonsToShow = _this$props.numberOfButtonsToShow;

      return links && links.map(function (link, index) {
        if (index >= numberOfButtonsToShow) {
          _this.hiddenLinks.push(link);
          return true;
        }

        return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginCardSocialLink__WEBPACK_IMPORTED_MODULE_4__["default"], { link: link, key: link.key || index });
      });
    }, _this.getHiddenListItems = function () {
      var numberOfButtonsToShow = _this.props.numberOfButtonsToShow;

      return _this.hiddenLinks && _this.hiddenLinks.map(function (link, index) {
        return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginCardSocialLink__WEBPACK_IMPORTED_MODULE_4__["default"], { link: link, key: link.key || index + numberOfButtonsToShow });
      });
    }, _this.toggleExpend = function () {
      _this.setState({ expend: !_this.state.expend });
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  _createClass(LoginCardSocialColumns, [{
    key: 'componentDidMount',
    value: function componentDidMount() {
      window.addEventListener('resize', this.updateWindowWidth);
    }
  }, {
    key: 'componentWillUnmount',
    value: function componentWillUnmount() {
      window.removeEventListener('resize', this.updateWindowWidth);
    }
  }, {
    key: 'render',
    value: function render() {
      var _props = this.props,
          links = _props.links,
          numberOfButtonsToShow = _props.numberOfButtonsToShow;

      if (!links) {
        return null;
      }
      var _state = this.state,
          expend = _state.expend,
          width = _state.width;

      var expendButton = width > 768 && links.length > numberOfButtonsToShow && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _index__WEBPACK_IMPORTED_MODULE_3__["Button"],
        { bsStyle: 'link', bsClass: 'btn btn-link login-pf-social-toggle', onClick: this.toggleExpend },
        expend ? 'Less' : 'More',
        ' \xA0',
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_3__["Icon"], { name: 'angle-' + (expend ? 'up' : 'down') })
      );

      var doubleColumn = links.length > 4 ? 'login-pf-social-double-col' : '';
      var moreItems = expend || width < 768 ? this.getHiddenListItems() : null;
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'div',
        null,
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          'ul',
          { className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('login-pf-social list-unstyled', doubleColumn) },
          this.getListItems(),
          moreItems
        ),
        expendButton
      );
    }
  }]);

  return LoginCardSocialColumns;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

LoginCardSocialColumns.propTypes = {
  /** Array of social links to generate. */
  links: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_extends({}, _LoginCardSocialLink__WEBPACK_IMPORTED_MODULE_4__["default"].propTypes))),
  /** The amount of buttons to show. Above this number, the buttons would be hidden */
  numberOfButtonsToShow: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number
};

LoginCardSocialColumns.defaultProps = {
  links: [],
  numberOfButtonsToShow: 8
};

/* harmony default export */ __webpack_exports__["default"] = (LoginCardSocialColumns);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSocialLink.js":
/*!***************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSocialLink.js ***!
  \***************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _LoginPageComponents_LoginPageLink__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../LoginPageComponents/LoginPageLink */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageLink.js");
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; };





var LoginCardSocialLink = function LoginCardSocialLink(_ref) {
  var link = _ref.link;
  return link && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'li',
    { className: 'login-pf-social-link' },
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _LoginPageComponents_LoginPageLink__WEBPACK_IMPORTED_MODULE_2__["default"],
      { href: link.href, onClick: link.onClick },
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('img', { src: link.src, alt: link.alt }),
      link.text
    )
  );
};

LoginCardSocialLink.propTypes = {
  /** the link element props. */
  link: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_extends({}, _LoginPageComponents_LoginPageLink__WEBPACK_IMPORTED_MODULE_2__["default"].propTypes, {
    /** The image source */
    src: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,
    /** The image alt description */
    alt: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    /** The link text */
    text: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
  }))
};

LoginCardSocialLink.defaultProps = {
  link: _extends({}, _LoginPageComponents_LoginPageLink__WEBPACK_IMPORTED_MODULE_2__["default"].defaultProps, {
    src: null,
    alt: null,
    text: null
  })
};

/* harmony default export */ __webpack_exports__["default"] = (LoginCardSocialLink);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSocialSection.js":
/*!******************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSocialSection.js ***!
  \******************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var LoginCardSocialSection = function LoginCardSocialSection(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'section',
    _extends({}, props, { className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('login-pf-social-section', className) }),
    children
  );
};

LoginCardSocialSection.propTypes = {
  /** Additional css classes. */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Children nodes. */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};

LoginCardSocialSection.defaultProps = {
  className: null,
  children: null
};

/* harmony default export */ __webpack_exports__["default"] = (LoginCardSocialSection);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSubmitButton.js":
/*!*****************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSubmitButton.js ***!
  \*****************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");




var LoginCardSubmitButton = function LoginCardSubmitButton(_ref) {
  var isDisabled = _ref.isDisabled,
      children = _ref.children,
      isLoading = _ref.isLoading;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _index__WEBPACK_IMPORTED_MODULE_2__["Button"],
    { className: 'login-pf-submit-button', type: 'submit', bsStyle: 'primary', bsSize: 'large', block: true, disabled: isDisabled },
    children,
    isLoading ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'span',
      null,
      ' ',
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Spinner"], { loading: isLoading, inline: true, size: 'xs' })
    ) : null
  );
};

LoginCardSubmitButton.propTypes = {
  /** Sets the button disability  */
  isDisabled: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Sets the spinner visibility */
  isLoading: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};

LoginCardSubmitButton.defaultProps = {
  isDisabled: false,
  children: null,
  isLoading: false
};

/* harmony default export */ __webpack_exports__["default"] = (LoginCardSubmitButton);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardWithValidation.js":
/*!*******************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardWithValidation.js ***!
  \*******************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _LoginCardInput__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./LoginCardInput */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardInput.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; };

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; }; }();

function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }






var LoginCardWithValidation = function (_React$Component) {
  _inherits(LoginCardWithValidation, _React$Component);

  function LoginCardWithValidation() {
    var _ref;

    var _temp, _this, _ret;

    _classCallCheck(this, LoginCardWithValidation);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = LoginCardWithValidation.__proto__ || Object.getPrototypeOf(LoginCardWithValidation)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
      usernameField: {
        value: '',
        errorType: null,
        isFocused: false,
        showError: false
      },
      passwordField: {
        value: '',
        errorType: null,
        warningType: null,
        isFocused: false,
        showError: false
      },
      isCapsLock: false,
      form: {
        showError: _this.props.topErrorOnly ? true : _this.props.showError,
        submitError: _this.props.submitError,
        disableSubmit: true,
        isSubmitting: _this.props.isSubmitting,
        topErrorOnly: _this.props.topErrorOnly,
        errors: [_this.props.submitError]
      }
    }, _this.shouldDisableSubmit = function (inputType, updatedInputValue) {
      if (updatedInputValue.length < 1) {
        return true;
      }
      var otherInputType = inputType === 'usernameField' ? 'passwordField' : 'usernameField';
      var otherInputValue = _this.state[otherInputType].value;
      return otherInputValue.length < 1;
    }, _this.onInputChange = function (e, inputType) {
      var value = e.target.value;

      _this.props[inputType].onChange && _this.props[inputType].onChange(e);
      _this.setState(function (_ref2) {
        var _ref3;

        var form = _ref2.form;
        return _ref3 = {}, _defineProperty(_ref3, inputType, _extends({}, _this.state[inputType], {
          value: value,
          showError: false
        })), _defineProperty(_ref3, 'form', _extends({}, form, {
          disableSubmit: _this.shouldDisableSubmit(inputType, value)
        })), _ref3;
      });
    }, _this.onInputFocus = function (e, inputType) {
      _this.props[inputType].onFocus && _this.props[inputType].onFocus(e);
      _this.setState(_defineProperty({}, inputType, _extends({}, _this.state[inputType], {
        isFocused: true,
        showError: false
      })));
    }, _this.onInputBlur = function (e, inputType) {
      var _this$setState2;

      _this.props[inputType].onBlur && _this.props[inputType].onBlur(e);
      _this.setState((_this$setState2 = {}, _defineProperty(_this$setState2, inputType, _extends({}, _this.state[inputType], {
        isFocused: false,
        showError: false
      })), _defineProperty(_this$setState2, 'isCapsLock', false), _this$setState2));
    }, _this.onKeyPress = function (e, inputType) {
      _this.props[inputType].onMouseEnter && _this.props[inputType].onMouseEnter(e);
      _this.handleCapsLock(e);
    }, _this.onSubmit = function (e) {
      e.preventDefault();
      if (_this.isFormValid()) {
        _this.onSubmitStart();
        _this.props.onSubmit(e, _this.onSubmitError);
      } else {
        _this.handleOnInputErrors();
      }
    }, _this.onSubmitStart = function () {
      _this.setState(function (_ref4) {
        var form = _ref4.form;
        return {
          form: _extends({}, form, {
            disableSubmit: true,
            isSubmitting: true,
            errors: form.topErrorOnly ? [] : form.topErrorOnly,
            showError: false
          })
        };
      });
    }, _this.onSubmitError = function (submitError) {
      _this.setState(function (_ref5) {
        var form = _ref5.form;
        return {
          form: _extends({}, form, {
            showError: true,
            submitError: submitError,
            errors: [submitError],
            disableSubmit: false,
            isSubmitting: false
          })
        };
      });
    }, _this.getFormError = function () {
      var _this$state$form = _this.state.form,
          topErrorOnly = _this$state$form.topErrorOnly,
          submitError = _this$state$form.submitError,
          errors = _this$state$form.errors;

      return topErrorOnly ? errors.map(function (error, index) {
        return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          'div',
          { className: 'login-form-error', key: index },
          error
        );
      }) : submitError;
    }, _this.getModifiedProps = function () {
      var _this$state = _this.state,
          usernameField = _this$state.usernameField,
          passwordField = _this$state.passwordField,
          isCapsLock = _this$state.isCapsLock,
          form = _this$state.form;
      var warnings = _this.props.passwordField.warnings;

      var passwordFieldWarningType = _this.state.isCapsLock ? 'capsLock' : _this.state.passwordField.warningType;
      return {
        usernameField: _extends({}, _this.props.usernameField, {
          onChange: function onChange(e) {
            return _this.onInputChange(e, 'usernameField');
          },
          onFocus: function onFocus(e) {
            return _this.onInputFocus(e, 'usernameField');
          },
          onBlur: function onBlur(e) {
            return _this.onInputBlur(e, 'usernameField');
          },
          onKeyPress: function onKeyPress(e) {
            return _this.onKeyPress(e, 'usernameField');
          },
          error: usernameField.error,
          showError: usernameField.showError
        }),
        passwordField: _extends({}, _this.props.passwordField, {
          onChange: function onChange(e) {
            return _this.onInputChange(e, 'passwordField');
          },
          onFocus: function onFocus(e) {
            return _this.onInputFocus(e, 'passwordField');
          },
          onBlur: function onBlur(e) {
            return _this.onInputBlur(e, 'passwordField');
          },
          onKeyPress: function onKeyPress(e) {
            return _this.onKeyPress(e, 'passwordField');
          },
          warning: warnings && warnings[passwordFieldWarningType],
          showWarning: passwordField.isFocused && isCapsLock,
          error: passwordField.error,
          showError: passwordField.showError
        }),
        onSubmit: function onSubmit(e) {
          return _this.onSubmit(e);
        },
        showError: form.showError,
        disableSubmit: form.disableSubmit,
        isSubmitting: form.isSubmitting,
        submitError: _this.getFormError()
      };
    }, _this.handleOnInputErrors = function () {
      var _this$state2 = _this.state,
          usernameField = _this$state2.usernameField,
          passwordField = _this$state2.passwordField;
      var topErrorOnly = _this.props.topErrorOnly;


      topErrorOnly && _this.clearFormErrors();

      if (usernameField.value) {
        !_this.isUserNameValid() && _this.handleOnInvalidUsername();
      } else {
        _this.handleOnEmptyInput('usernameField');
      }

      if (passwordField.value) {
        _this.isPasswordShort() && _this.handleOnPasswordTooShort();
      } else {
        _this.handleOnEmptyInput('passwordField');
      }

      !topErrorOnly && _this.hideSubmitError();
    }, _this.isFormValid = function () {
      return !!_this.state.usernameField.value && !!_this.state.passwordField.value && !_this.isPasswordShort() && _this.isUserNameValid();
    }, _this.isPasswordShort = function () {
      var passwordMinLength = _this.props.passwordField.minLength;
      var currentPasswordLength = _this.state.passwordField.value.length;

      return passwordMinLength > 0 && currentPasswordLength < passwordMinLength;
    }, _this.hideSubmitError = function () {
      _this.setState({
        form: _extends({}, _this.state.form, {
          showError: false
        })
      });
    }, _this.clearFormErrors = function () {
      _this.setState(function (_ref6) {
        var form = _ref6.form;
        return {
          form: _extends({}, form, {
            errors: []
          })
        };
      });
    }, _this.handleOnPasswordTooShort = function () {
      var error = _this.props.passwordField.errors.short;

      _this.setState(function (_ref7) {
        var form = _ref7.form,
            passwordField = _ref7.passwordField;
        return form.topErrorOnly ? {
          form: _extends({}, form, {
            errors: [].concat(_toConsumableArray(form.errors), [error]),
            showError: true
          })
        } : {
          passwordField: _extends({}, passwordField, {
            error: error,
            showError: true
          })
        };
      });
    }, _this.handleOnInvalidUsername = function () {
      var error = _this.props.usernameField.errors.invalid;

      _this.setState(function (_ref8) {
        var form = _ref8.form,
            usernameField = _ref8.usernameField;
        return form.topErrorOnly ? {
          form: _extends({}, form, {
            errors: [].concat(_toConsumableArray(form.errors), [error]),
            showError: true
          })
        } : {
          usernameField: _extends({}, usernameField, {
            error: error,
            showError: true
          })
        };
      });
    }, _this.handleOnEmptyInput = function (inputType) {
      var error = _this.props[inputType].errors.empty;

      _this.setState(function (_ref9) {
        var form = _ref9.form;
        return form.topErrorOnly ? {
          form: _extends({}, form, {
            errors: [].concat(_toConsumableArray(form.errors), [error]),
            showError: true
          })
        } : _defineProperty({}, inputType, _extends({}, _this.state[inputType], {
          error: error,
          showError: true
        }));
      });
    }, _this.toggleCapsLock = function (e) {
      if (!_this.state.passwordField.value) {
        return;
      }
      e.key === _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEYS"].CAPSLOCK && _this.setState({
        isCapsLock: !_this.state.isCapsLock
      });
    }, _this.handleCapsLock = function (e) {
      var keyCode = e.keyCode ? e.keyCode : e.which;
      var shiftKey = e.shiftKey ? e.shiftKey : keyCode === _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEY_CODES"].SHIFT;
      var isCapsLock = keyCode >= _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEY_CODES"].A && keyCode <= _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEY_CODES"].Z && !shiftKey || keyCode >= _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEY_CODES"].NUMPAD['0'] && keyCode <= _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEY_CODES"].F11 && shiftKey;
      _this.setState({
        isCapsLock: isCapsLock
      });
    }, _this.isUserNameValid = function () {
      var userType = _this.props.usernameField.type;

      if (userType === 'email') {
        var mailAddress = _this.state.usernameField.value;
        var atPos = mailAddress.indexOf('@');
        var dotPos = mailAddress.lastIndexOf('.');
        return atPos > 1 && dotPos - atPos > 2 && atPos < dotPos;
      }
      return true;
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  _createClass(LoginCardWithValidation, [{
    key: 'componentDidMount',
    value: function componentDidMount() {
      window.addEventListener('keyup', this.toggleCapsLock);
    }
  }, {
    key: 'componentWillUnmount',
    value: function componentWillUnmount() {
      window.removeEventListener('keyup', this.toggleCapsLock);
    }

    // eslint-disable-next-line class-methods-use-this

  }, {
    key: 'render',
    value: function render() {
      var _props = this.props,
          validate = _props.validate,
          children = _props.children;

      return validate ? react__WEBPACK_IMPORTED_MODULE_0___default.a.cloneElement(children, _extends({}, this.props, this.getModifiedProps())) : react__WEBPACK_IMPORTED_MODULE_0___default.a.cloneElement(children, _extends({}, this.props));
    }
  }], [{
    key: 'getDerivedStateFromProps',
    value: function getDerivedStateFromProps(props, state) {
      // disableSubmit prop will only be used in a not validated login card
      var validate = props.validate,
          disableSubmit = props.disableSubmit;

      if (validate) return null;
      if (disableSubmit !== state.form.disableSubmit) {
        return {
          form: { disableSubmit: disableSubmit }
        };
      }
      return null;
    }
  }]);

  return LoginCardWithValidation;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

LoginCardWithValidation.propTypes = {
  validate: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node.isRequired,
  usernameField: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_extends({}, _LoginCardInput__WEBPACK_IMPORTED_MODULE_2__["default"].propTypes, {
    errors: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object
  })),
  passwordField: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_extends({}, _LoginCardInput__WEBPACK_IMPORTED_MODULE_2__["default"].propTypes, {
    errors: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
    warnings: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
    minLength: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number
  })),
  onSubmit: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  submitError: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node]),
  // eslint-disable-next-line react/no-unused-prop-types
  disableSubmit: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  isSubmitting: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  showError: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  topErrorOnly: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};

LoginCardWithValidation.defaultProps = {
  validate: true,
  usernameField: _extends({}, _LoginCardInput__WEBPACK_IMPORTED_MODULE_2__["default"].defaultProps.usernameField),
  passwordField: _extends({}, _LoginCardInput__WEBPACK_IMPORTED_MODULE_2__["default"].defaultProps.passwordField),
  onSubmit: function onSubmit(e) {
    return e.target.submit();
  },
  submitError: null,
  disableSubmit: false,
  isSubmitting: false,
  showError: false,
  topErrorOnly: false
};

/* harmony default export */ __webpack_exports__["default"] = (LoginCardWithValidation);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginFormError.js":
/*!**********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginFormError.js ***!
  \**********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var react_collapse__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-collapse */ "./node_modules/react-collapse/lib/index.js");
/* harmony import */ var react_collapse__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_collapse__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }






var LoginFormError = function LoginFormError(_ref) {
  var children = _ref.children,
      show = _ref.show,
      topErrorOnly = _ref.topErrorOnly,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'show', 'topErrorOnly', 'className']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    { className: classnames__WEBPACK_IMPORTED_MODULE_3___default()('login-form-error', className), style: topErrorOnly ? { minHeight: '20px' } : null },
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      react_collapse__WEBPACK_IMPORTED_MODULE_2___default.a,
      _extends({}, props, { isOpened: children !== null && show }),
      children
    )
  );
};

LoginFormError.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** children nodes or text */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node]),
  /** Controlls the collapse to open/close */
  show: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** if it`s a login page with topErrorOnly, add a fixed space for the form error */
  topErrorOnly: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};

LoginFormError.defaultProps = {
  className: null,
  children: null,
  show: false,
  topErrorOnly: false
};

/* harmony default export */ __webpack_exports__["default"] = (LoginFormError);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginLanguagePicker.js":
/*!***************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginLanguagePicker.js ***!
  \***************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; }; }();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }







var LoginLanguagePicker = function (_React$Component) {
  _inherits(LoginLanguagePicker, _React$Component);

  function LoginLanguagePicker(props) {
    _classCallCheck(this, LoginLanguagePicker);

    var _this = _possibleConstructorReturn(this, (LoginLanguagePicker.__proto__ || Object.getPrototypeOf(LoginLanguagePicker)).call(this, props));

    _this.handleClick = function (e) {
      var onLanguageChange = _this.props.onLanguageChange;

      onLanguageChange(e);
      _this.setState({ title: e.target.text });
    };

    var selectedLanguage = props.selectedLanguage,
        availableLanguages = props.availableLanguages;

    _this.state = {
      title: selectedLanguage || availableLanguages && availableLanguages[0].text
    };
    return _this;
  }

  _createClass(LoginLanguagePicker, [{
    key: 'componentWillReceiveProps',
    value: function componentWillReceiveProps(nextProps) {
      var selectedLanguage = nextProps.selectedLanguage,
          availableLanguages = nextProps.availableLanguages;

      var title = selectedLanguage || availableLanguages && availableLanguages[0].text;

      this.setState({ title: title });
    }
  }, {
    key: 'render',
    value: function render() {
      var _this2 = this;

      var _props = this.props,
          availableLanguages = _props.availableLanguages,
          className = _props.className,
          id = _props.id;
      var title = this.state.title;

      if (!availableLanguages) {
        return null;
      }
      var menuItems = availableLanguages.map(function (language, index) {
        return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          _index__WEBPACK_IMPORTED_MODULE_3__["MenuItem"],
          { key: index, value: language.value, active: title === language.text, onClick: _this2.handleClick },
          language.text
        );
      });

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'div',
        { className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('bootstrap-select btn-group', className) },
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          _index__WEBPACK_IMPORTED_MODULE_3__["DropdownButton"],
          { title: title, id: id },
          menuItems
        )
      );
    }
  }]);

  return LoginLanguagePicker;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

LoginLanguagePicker.propTypes = {
  /** Provided languages to pass into the dropdown menu */
  availableLanguages: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    /** the language menu item's value */
    value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]),
    /** the language menu item's text */
    text: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
  })),
  /** The default selected language */
  selectedLanguage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Callback to trigger when selecting a language */
  onLanguageChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** The dropdown's id */
  id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number])
};

LoginLanguagePicker.defaultProps = {
  selectedLanguage: null,
  availableLanguages: null,
  onLanguageChange: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  className: null,
  id: 'language-picker'
};

/* harmony default export */ __webpack_exports__["default"] = (LoginLanguagePicker);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/SocialLoginCard.js":
/*!***********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/SocialLoginCard.js ***!
  \***********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _LoginCard__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./LoginCard */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCard.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }






var SocialLoginCard = function SocialLoginCard(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _LoginCard__WEBPACK_IMPORTED_MODULE_3__["default"],
    _extends({}, props, { className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('login-pf-accounts', className) }),
    children
  );
};

SocialLoginCard.propTypes = {
  /** The children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};

SocialLoginCard.defaultProps = {
  children: null,
  className: null
};

/* harmony default export */ __webpack_exports__["default"] = (SocialLoginCard);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/BasicLoginPageLayout.js":
/*!****************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/BasicLoginPageLayout.js ***!
  \****************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var BasicLoginPageLayout = function BasicLoginPageLayout(_ref) {
  var children = _ref.children,
      layout = _ref.layout,
      props = _objectWithoutProperties(_ref, ['children', 'layout']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _index__WEBPACK_IMPORTED_MODULE_2__["Grid"],
    _extends({}, props, { fluid: true }),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _index__WEBPACK_IMPORTED_MODULE_2__["Row"],
      null,
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _index__WEBPACK_IMPORTED_MODULE_2__["Col"],
        _extends({ sm: 8, smOffset: 2, md: 6, mdOffset: 3, lg: 6, lgOffset: 3 }, layout),
        children
      )
    )
  );
};

BasicLoginPageLayout.propTypes = {
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  layout: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object
};

BasicLoginPageLayout.defaultProps = {
  children: null,
  layout: null
};

/* harmony default export */ __webpack_exports__["default"] = (BasicLoginPageLayout);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginFooterLinks.js":
/*!************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginFooterLinks.js ***!
  \************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _LoginPageComponents_LoginPageLink__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../LoginPageComponents/LoginPageLink */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageLink.js");




var LoginFooterLinks = function LoginFooterLinks(_ref) {
  var links = _ref.links;

  var listItems = links.map(function (link, index) {
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'li',
      { key: index },
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _LoginPageComponents_LoginPageLink__WEBPACK_IMPORTED_MODULE_2__["default"],
        { className: 'login-pf-page-footer-link', href: link.href, onClick: function onClick(e) {
            return link.onClick(e);
          } },
        link.children
      )
    );
  });

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'ul',
    { className: 'login-pf-page-footer-links list-unstyled' },
    listItems
  );
};

LoginFooterLinks.propTypes = {
  links: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array
};

LoginFooterLinks.defaultProps = {
  links: []
};

/* harmony default export */ __webpack_exports__["default"] = (LoginFooterLinks);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageAlert.js":
/*!**********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageAlert.js ***!
  \**********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Alert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../Alert */ "./node_modules/patternfly-react/dist/esm/components/Alert/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; }; }();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }






var LoginPageAlert = function (_React$Component) {
  _inherits(LoginPageAlert, _React$Component);

  function LoginPageAlert() {
    var _ref;

    var _temp, _this, _ret;

    _classCallCheck(this, LoginPageAlert);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = LoginPageAlert.__proto__ || Object.getPrototypeOf(LoginPageAlert)).call.apply(_ref, [this].concat(args))), _this), _this.state = { show: _this.props.show }, _this.closeAlert = function (e) {
      _this.props.onDismiss(e);
      if (!_this.state.show) {
        return;
      }
      _this.setState({ show: false });
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  _createClass(LoginPageAlert, [{
    key: 'render',
    value: function render() {
      var _this2 = this;

      var _props = this.props,
          type = _props.type,
          message = _props.message;

      return this.state.show ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _Alert__WEBPACK_IMPORTED_MODULE_2__["Alert"],
        { type: type, onDismiss: function onDismiss(e) {
            return _this2.closeAlert(e);
          } },
        message
      ) : null;
    }
  }]);

  return LoginPageAlert;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

LoginPageAlert.propTypes = {
  type: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  onDismiss: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  message: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node]),
  show: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};

LoginPageAlert.defaultProps = {
  type: 'warning',
  onDismiss: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  message: null,
  show: false
};

/* harmony default export */ __webpack_exports__["default"] = (LoginPageAlert);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageAlerts.js":
/*!***********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageAlerts.js ***!
  \***********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash */ "./node_modules/lodash/lodash.js");
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _LoginPageAlert__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./LoginPageAlert */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageAlert.js");
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; };






var LoginPageAlerts = function LoginPageAlerts(_ref) {
  var alert = _ref.alert;

  if (Object(lodash__WEBPACK_IMPORTED_MODULE_2__["isEmpty"])(alert)) {
    return null;
  }

  if (Object(lodash__WEBPACK_IMPORTED_MODULE_2__["isArray"])(alert)) {
    return alert.map(function (item, index) {
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginPageAlert__WEBPACK_IMPORTED_MODULE_3__["default"], _extends({ key: index }, item));
    });
  }

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginPageAlert__WEBPACK_IMPORTED_MODULE_3__["default"], alert);
};

LoginPageAlerts.propTypes = {
  alert: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object])
};

LoginPageAlerts.defaultProps = {
  alert: null
};

/* harmony default export */ __webpack_exports__["default"] = (LoginPageAlerts);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageContainer.js":
/*!**************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageContainer.js ***!
  \**************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);



var LoginPageContainer = function LoginPageContainer(_ref) {
  var backgroundUrl = _ref.backgroundUrl,
      className = _ref.className,
      children = _ref.children;

  var style = backgroundUrl ? { backgroundImage: 'url(' + backgroundUrl + ')' } : {};

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    { className: 'login-pf', style: style },
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'div',
      { className: 'login-pf-page ' + className },
      children
    )
  );
};

LoginPageContainer.propTypes = {
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  backgroundUrl: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};

LoginPageContainer.defaultProps = {
  children: null,
  backgroundUrl: null,
  className: ''
};

/* harmony default export */ __webpack_exports__["default"] = (LoginPageContainer);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageFooter.js":
/*!***********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageFooter.js ***!
  \***********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _LoginFooterLinks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./LoginFooterLinks */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginFooterLinks.js");




var LoginPageFooter = function LoginPageFooter(_ref) {
  var links = _ref.links;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'footer',
    { className: 'login-pf-page-footer' },
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginFooterLinks__WEBPACK_IMPORTED_MODULE_2__["default"], { links: links })
  );
};

LoginPageFooter.propTypes = {
  links: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array
};

LoginPageFooter.defaultProps = {
  links: _LoginFooterLinks__WEBPACK_IMPORTED_MODULE_2__["default"].defaultProps.links
};

/* harmony default export */ __webpack_exports__["default"] = (LoginPageFooter);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageHeader.js":
/*!***********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageHeader.js ***!
  \***********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);



var LoginPageHeader = function LoginPageHeader(_ref) {
  var logoSrc = _ref.logoSrc,
      logoTitle = _ref.logoTitle,
      caption = _ref.caption;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'header',
    { className: 'login-pf-page-header' },
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('img', { className: 'login-pf-brand', src: logoSrc, title: logoTitle, alt: 'logo' }),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'div',
      { className: 'login-pf-caption' },
      caption
    )
  );
};

LoginPageHeader.propTypes = {
  logoSrc: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  logoTitle: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  caption: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node])
};

LoginPageHeader.defaultProps = {
  logoSrc: null,
  logoTitle: null,
  caption: null
};

/* harmony default export */ __webpack_exports__["default"] = (LoginPageHeader);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageLink.js":
/*!*********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageLink.js ***!
  \*********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var LoginPageLink = function LoginPageLink(_ref) {
  var onClick = _ref.onClick,
      href = _ref.href,
      children = _ref.children,
      props = _objectWithoutProperties(_ref, ['onClick', 'href', 'children']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'a',
    _extends({ href: href, onClick: onClick }, props),
    children
  );
};

LoginPageLink.propTypes = {
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  href: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};

LoginPageLink.defaultProps = {
  children: null,
  href: '#',
  onClick: _common_helpers__WEBPACK_IMPORTED_MODULE_2__["noop"]
};

/* harmony default export */ __webpack_exports__["default"] = (LoginPageLink);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageWithTranslation.js":
/*!********************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageWithTranslation.js ***!
  \********************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../LoginCardComponents/LoginCard */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCard.js");
/* harmony import */ var _LoginCardComponents_LoginCardHeader__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../LoginCardComponents/LoginCardHeader */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardHeader.js");
/* harmony import */ var _LoginPageContainer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./LoginPageContainer */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageContainer.js");
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; };

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; }; }();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }







var LoginPageWithTranslation = function (_React$Component) {
  _inherits(LoginPageWithTranslation, _React$Component);

  function LoginPageWithTranslation(props) {
    _classCallCheck(this, LoginPageWithTranslation);

    var _this = _possibleConstructorReturn(this, (LoginPageWithTranslation.__proto__ || Object.getPrototypeOf(LoginPageWithTranslation)).call(this, props));

    _this.onLanguageChange = function (e) {
      var newLanguage = e.target.attributes.value.value;
      if (!newLanguage || _this.state.language === newLanguage) {
        return;
      }
      _this.switchToLanguage(newLanguage);
    };

    _this.onPasswordChange = function (e) {
      var card = _this.props.card;

      card.form.passwordField.onChange && card.form.passwordField.onChange(e);
      _this.setState({ passwordValue: e.target.value });
    };

    _this.onUsernameChange = function (e) {
      var card = _this.props.card;

      card.form.usernameField.onChange && card.form.usernameField.onChange(e);
      _this.setState({ usernameValue: e.target.value });
    };

    _this.getDefaultPropsToPass = function () {
      var card = _this.props.card;

      return {
        card: _extends({}, card, {
          onLanguageChange: function onLanguageChange(e) {
            return _this.onLanguageChange(e);
          },
          form: _extends({}, card.form, {
            usernameField: _extends({}, card.form.usernameField, {
              value: _this.state.usernameValue,
              onChange: function onChange(e) {
                return _this.onUsernameChange(e);
              }
            }),
            passwordField: _extends({}, card.form.passwordField, {
              value: _this.state.passwordValue,
              onChange: function onChange(e) {
                return _this.onPasswordChange(e);
              }
            })
          })
        })
      };
    };

    _this.switchToLanguage = function (language) {
      var _this$props = _this.props,
          container = _this$props.container,
          card = _this$props.card,
          header = _this$props.header;

      var languageFile = container.translations[language];
      var translatedProps = _extends({}, _this.props, {
        container: _extends({}, container, {
          alert: _extends({}, header.alert, {
            message: languageFile.header.alert
          })
        }),
        header: _extends({}, header, {
          logoTitle: languageFile.header.logo,
          caption: languageFile.header.caption
        }),
        footerLinks: languageFile.footerLinks,
        card: _extends({}, card, {
          title: languageFile.card.header.title,
          selectedLanguage: languageFile.card.header.selectedLanguage,
          availableLanguages: languageFile.card.header.availableLanguages,
          onLanguageChange: function onLanguageChange(e) {
            return _this.onLanguageChange(e);
          },
          signUp: {
            label: languageFile.card.signUp.label,
            link: _extends({}, card.signUp.link, {
              children: languageFile.card.signUp.link.label
            })
          },
          form: _extends({}, card.form, {
            submitError: languageFile.card.form.error,
            usernameField: _extends({}, card.form.usernameField, {
              onChange: function onChange(e) {
                return _this.onUsernameChange(e);
              },
              value: _this.state.usernameValue,
              placeholder: languageFile.card.usernameField.placeholder,
              errors: languageFile.card.usernameField.errors
            }),
            passwordField: _extends({}, card.form.passwordField, {
              onChange: function onChange(e) {
                return _this.onPasswordChange(e);
              },
              value: _this.state.passwordValue,
              placeholder: languageFile.card.passwordField.placeholder,
              errors: languageFile.card.passwordField.errors,
              warnings: languageFile.card.passwordField.warnings
            }),
            submitText: languageFile.card.form.submitText,
            rememberMe: _extends({}, card.rememberMe, {
              label: languageFile.card.rememberMe
            }),
            forgotPassword: _extends({}, card.forgotPassword, {
              label: languageFile.card.forgotPassword
            })
          })
        })
      });

      _this.setState({ translatedProps: translatedProps, language: language });
    };

    var _props$card = props.card,
        selectedLanguage = _props$card.selectedLanguage,
        availableLanguages = _props$card.availableLanguages;

    _this.state = {
      language: selectedLanguage && selectedLanguage.value || availableLanguages && availableLanguages[0] && availableLanguages[0].value,
      passwordValue: '',
      usernameValue: '',
      translatedProps: {}
    };
    return _this;
  }

  _createClass(LoginPageWithTranslation, [{
    key: 'render',
    value: function render() {
      var newProps = _extends({}, this.props, this.getDefaultPropsToPass(), this.state.translatedProps);

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.cloneElement(this.props.children, newProps);
    }
  }]);

  return LoginPageWithTranslation;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

LoginPageWithTranslation.propTypes = {
  card: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_extends({}, _LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_2__["default"].LanguagePicker.propTypes, _LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_2__["default"].Form.propTypes, _LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_2__["default"].SignUp.propTypes, _LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_2__["default"].RememberMe.propTypes, _LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_2__["default"].ForgotPassword.propTypes)),
  header: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_extends({}, _LoginCardComponents_LoginCardHeader__WEBPACK_IMPORTED_MODULE_3__["default"].propTypes)),
  container: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_extends({}, _LoginPageContainer__WEBPACK_IMPORTED_MODULE_4__["default"].propTypes)),
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node.isRequired
};

LoginPageWithTranslation.defaultProps = {
  card: _extends({}, _LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_2__["default"].LanguagePicker.defaultProps, _LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_2__["default"].Form.defaultProps, _LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_2__["default"].SignUp.defaultProps, _LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_2__["default"].RememberMe.defaultProps, _LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_2__["default"].ForgotPassword.defaultProps),
  header: _extends({}, _LoginCardComponents_LoginCardHeader__WEBPACK_IMPORTED_MODULE_3__["default"].defaultProps),
  container: _extends({}, _LoginPageContainer__WEBPACK_IMPORTED_MODULE_4__["default"].defaultProps)
};

/* harmony default export */ __webpack_exports__["default"] = (LoginPageWithTranslation);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/SocialLoginPageContainer.js":
/*!********************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/SocialLoginPageContainer.js ***!
  \********************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _LoginPageContainer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./LoginPageContainer */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageContainer.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var SocialLoginPageContainer = function SocialLoginPageContainer(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _LoginPageContainer__WEBPACK_IMPORTED_MODULE_2__["default"],
    _extends({}, props, { className: className + ' login-pf-page-accounts' }),
    children
  );
};

SocialLoginPageContainer.propTypes = {
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};

SocialLoginPageContainer.defaultProps = {
  children: null,
  className: ''
};

/* harmony default export */ __webpack_exports__["default"] = (SocialLoginPageContainer);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/index.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/index.js ***!
  \******************************************************************************/
/*! exports provided: LoginPage, LoginPageContainer, LoginPageHeader, LoginPageFooter, LoginFooterLinks, LoginPageLink, LoginCard, LoginPageWithTranslation, LoginPageAlert, SocialLoginPage, SocialLoginPageContainer, BasicLoginPageLayout, LoginCardHeader, LoginLanguagePicker, LoginCardWithValidation, LoginCardForm, LoginCardSignUp, LoginCardInput, LoginCardInputWarning, LoginCardSettings, LoginFormError, LoginCardForgotPassword, LoginCardRememberMe, LoginCardSocialLink, LoginCardSocialSection, LoginCardSocialColumns, SocialLoginCard, BasicLoginCardLayout */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _LoginPage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./LoginPage */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/LoginPage.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginPage", function() { return _LoginPage__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _components_LoginPageComponents_LoginPageContainer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/LoginPageComponents/LoginPageContainer */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageContainer.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginPageContainer", function() { return _components_LoginPageComponents_LoginPageContainer__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _components_LoginPageComponents_LoginPageHeader__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/LoginPageComponents/LoginPageHeader */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageHeader.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginPageHeader", function() { return _components_LoginPageComponents_LoginPageHeader__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _components_LoginPageComponents_LoginPageFooter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/LoginPageComponents/LoginPageFooter */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageFooter.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginPageFooter", function() { return _components_LoginPageComponents_LoginPageFooter__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _components_LoginPageComponents_LoginFooterLinks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/LoginPageComponents/LoginFooterLinks */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginFooterLinks.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginFooterLinks", function() { return _components_LoginPageComponents_LoginFooterLinks__WEBPACK_IMPORTED_MODULE_4__["default"]; });

/* harmony import */ var _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCard */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCard.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCard", function() { return _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_5__["default"]; });

/* harmony import */ var _components_LoginPageComponents_LoginPageWithTranslation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/LoginPageComponents/LoginPageWithTranslation */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageWithTranslation.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginPageWithTranslation", function() { return _components_LoginPageComponents_LoginPageWithTranslation__WEBPACK_IMPORTED_MODULE_6__["default"]; });

/* harmony import */ var _components_LoginPageComponents_LoginPageAlert__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/LoginPageComponents/LoginPageAlert */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageAlert.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginPageAlert", function() { return _components_LoginPageComponents_LoginPageAlert__WEBPACK_IMPORTED_MODULE_7__["default"]; });

/* harmony import */ var _components_LoginPageComponents_LoginPageLink__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/LoginPageComponents/LoginPageLink */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageLink.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginPageLink", function() { return _components_LoginPageComponents_LoginPageLink__WEBPACK_IMPORTED_MODULE_8__["default"]; });

/* harmony import */ var _SocialLoginPage__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./SocialLoginPage */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/SocialLoginPage.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SocialLoginPage", function() { return _SocialLoginPage__WEBPACK_IMPORTED_MODULE_9__["default"]; });

/* harmony import */ var _components_LoginPageComponents_SocialLoginPageContainer__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./components/LoginPageComponents/SocialLoginPageContainer */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/SocialLoginPageContainer.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SocialLoginPageContainer", function() { return _components_LoginPageComponents_SocialLoginPageContainer__WEBPACK_IMPORTED_MODULE_10__["default"]; });

/* harmony import */ var _components_LoginPageComponents_BasicLoginPageLayout__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./components/LoginPageComponents/BasicLoginPageLayout */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/BasicLoginPageLayout.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BasicLoginPageLayout", function() { return _components_LoginPageComponents_BasicLoginPageLayout__WEBPACK_IMPORTED_MODULE_11__["default"]; });

/* harmony import */ var _components_LoginCardComponents_LoginCardHeader__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardHeader */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardHeader.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardHeader", function() { return _components_LoginCardComponents_LoginCardHeader__WEBPACK_IMPORTED_MODULE_12__["default"]; });

/* harmony import */ var _components_LoginCardComponents_LoginLanguagePicker__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginLanguagePicker */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginLanguagePicker.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginLanguagePicker", function() { return _components_LoginCardComponents_LoginLanguagePicker__WEBPACK_IMPORTED_MODULE_13__["default"]; });

/* harmony import */ var _components_LoginCardComponents_LoginCardWithValidation__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardWithValidation */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardWithValidation.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardWithValidation", function() { return _components_LoginCardComponents_LoginCardWithValidation__WEBPACK_IMPORTED_MODULE_14__["default"]; });

/* harmony import */ var _components_LoginCardComponents_LoginCardForm__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardForm */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardForm.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardForm", function() { return _components_LoginCardComponents_LoginCardForm__WEBPACK_IMPORTED_MODULE_15__["default"]; });

/* harmony import */ var _components_LoginCardComponents_LoginCardSignUp__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardSignUp */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSignUp.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardSignUp", function() { return _components_LoginCardComponents_LoginCardSignUp__WEBPACK_IMPORTED_MODULE_16__["default"]; });

/* harmony import */ var _components_LoginCardComponents_LoginCardInput__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardInput */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardInput.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardInput", function() { return _components_LoginCardComponents_LoginCardInput__WEBPACK_IMPORTED_MODULE_17__["default"]; });

/* harmony import */ var _components_LoginCardComponents_LoginCardInputWarning__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardInputWarning */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardInputWarning.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardInputWarning", function() { return _components_LoginCardComponents_LoginCardInputWarning__WEBPACK_IMPORTED_MODULE_18__["default"]; });

/* harmony import */ var _components_LoginCardComponents_LoginCardSettings__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardSettings */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSettings.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardSettings", function() { return _components_LoginCardComponents_LoginCardSettings__WEBPACK_IMPORTED_MODULE_19__["default"]; });

/* harmony import */ var _components_LoginCardComponents_LoginFormError__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginFormError */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginFormError.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginFormError", function() { return _components_LoginCardComponents_LoginFormError__WEBPACK_IMPORTED_MODULE_20__["default"]; });

/* harmony import */ var _components_LoginCardComponents_LoginCardForgotPassword__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardForgotPassword */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardForgotPassword.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardForgotPassword", function() { return _components_LoginCardComponents_LoginCardForgotPassword__WEBPACK_IMPORTED_MODULE_21__["default"]; });

/* harmony import */ var _components_LoginCardComponents_LoginCardRememberMe__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardRememberMe */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardRememberMe.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardRememberMe", function() { return _components_LoginCardComponents_LoginCardRememberMe__WEBPACK_IMPORTED_MODULE_22__["default"]; });

/* harmony import */ var _components_LoginCardComponents_LoginCardSocialSection__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardSocialSection */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSocialSection.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardSocialSection", function() { return _components_LoginCardComponents_LoginCardSocialSection__WEBPACK_IMPORTED_MODULE_23__["default"]; });

/* harmony import */ var _components_LoginCardComponents_LoginCardSocialLink__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardSocialLink */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSocialLink.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardSocialLink", function() { return _components_LoginCardComponents_LoginCardSocialLink__WEBPACK_IMPORTED_MODULE_24__["default"]; });

/* harmony import */ var _components_LoginCardComponents_LoginCardSocialColumns__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardSocialColumns */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSocialColumns.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardSocialColumns", function() { return _components_LoginCardComponents_LoginCardSocialColumns__WEBPACK_IMPORTED_MODULE_25__["default"]; });

/* harmony import */ var _components_LoginCardComponents_SocialLoginCard__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./components/LoginCardComponents/SocialLoginCard */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/SocialLoginCard.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SocialLoginCard", function() { return _components_LoginCardComponents_SocialLoginCard__WEBPACK_IMPORTED_MODULE_26__["default"]; });

/* harmony import */ var _components_LoginCardComponents_BasicLoginCardLayout__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./components/LoginCardComponents/BasicLoginCardLayout */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/BasicLoginCardLayout.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BasicLoginCardLayout", function() { return _components_LoginCardComponents_BasicLoginCardLayout__WEBPACK_IMPORTED_MODULE_27__["default"]; });
































/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Masthead/InnerComponents/CustomMastheadDropdown.js":
/*!**************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Masthead/InnerComponents/CustomMastheadDropdown.js ***!
  \**************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);



/**
 * Custom Masthead Dropdown
 */
var CustomMastheadDropdown = function CustomMastheadDropdown(_ref) {
  var className = _ref.className,
      children = _ref.children;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'li',
    { className: className },
    children
  );
};

CustomMastheadDropdown.propTypes = {
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Children elements */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};

CustomMastheadDropdown.defaultProps = {
  className: '',
  children: null
};

/* harmony default export */ __webpack_exports__["default"] = (CustomMastheadDropdown);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Masthead/Masthead.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Masthead/Masthead.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _MastheadCollapse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./MastheadCollapse */ "./node_modules/patternfly-react/dist/esm/components/Masthead/MastheadCollapse.js");
/* harmony import */ var _MastheadDropdown__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./MastheadDropdown */ "./node_modules/patternfly-react/dist/esm/components/Masthead/MastheadDropdown.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }








/**
 * Masthead
 */
var Masthead = function Masthead(_ref) {
  var className = _ref.className,
      title = _ref.title,
      titleImg = _ref.titleImg,
      iconImg = _ref.iconImg,
      href = _ref.href,
      onTitleClick = _ref.onTitleClick,
      navToggle = _ref.navToggle,
      onNavToggleClick = _ref.onNavToggleClick,
      middleContent = _ref.middleContent,
      thin = _ref.thin,
      children = _ref.children,
      props = _objectWithoutProperties(_ref, ['className', 'title', 'titleImg', 'iconImg', 'href', 'onTitleClick', 'navToggle', 'onNavToggleClick', 'middleContent', 'thin', 'children']);

  var mastheadClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()({
    navbar: true,
    'navbar-default': thin,
    'navbar-pf': thin,
    'navbar-pf-vertical': !thin
  }, className);
  var handleTitleClick = function handleTitleClick(e) {
    if (onTitleClick !== _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"]) {
      if (e) {
        e.preventDefault();
      }
      onTitleClick();
    }
  };

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'nav',
    _extends({ className: mastheadClasses }, props),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'div',
      { className: 'navbar-header' },
      navToggle && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'button',
        { className: 'navbar-toggle', onClick: onNavToggleClick },
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          'span',
          { className: 'sr-only' },
          'Toggle navigation'
        ),
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('span', { 'aria-hidden': 'true', className: 'icon-bar' }),
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('span', { 'aria-hidden': 'true', className: 'icon-bar' }),
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('span', { 'aria-hidden': 'true', className: 'icon-bar' })
      ),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'a',
        { href: href, role: 'button', className: 'navbar-brand', onClick: handleTitleClick },
        iconImg && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('img', { className: 'navbar-brand-icon', src: iconImg, alt: '' }),
        titleImg && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('img', { className: 'navbar-brand-name', src: titleImg, alt: title }),
        !titleImg && title
      ),
      middleContent
    ),
    children
  );
};

Masthead.propTypes = {
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Title of the application (use either this or titleImg) */
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** URL of an image for the app's title (use either this or title) */
  titleImg: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** URL of an image for the app's icon */
  iconImg: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** URL of the application's homepage if the title should be a link */
  href: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Alternative to href, callback to call when the brand link is clicked */
  onTitleClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Option to have the nav toggle (hamburger), default is true */
  navToggle: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Option to have the fit nav, default is false */
  thin: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Callback when the nav toggle (hamburger) is clicked */
  onNavToggleClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Content for the center area of the masthead (context selector) */
  middleContent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Children (typically MastheadCollapse) */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};

Masthead.defaultProps = {
  className: '',
  title: '',
  titleImg: '',
  iconImg: '',
  href: '#',
  onTitleClick: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  navToggle: true,
  thin: false,
  onNavToggleClick: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  middleContent: null,
  children: null
};

Masthead.Collapse = _MastheadCollapse__WEBPACK_IMPORTED_MODULE_4__["default"];
Masthead.Dropdown = _MastheadDropdown__WEBPACK_IMPORTED_MODULE_5__["default"];

/* harmony default export */ __webpack_exports__["default"] = (Masthead);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Masthead/MastheadCollapse.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Masthead/MastheadCollapse.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





/**
 * Masthead
 */
var MastheadCollapse = function MastheadCollapse(_ref) {
  var className = _ref.className,
      children = _ref.children,
      props = _objectWithoutProperties(_ref, ['className', 'children']);

  var menusClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()('collapse', 'navbar-collapse', className);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'nav',
    _extends({ className: menusClasses }, props),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'ul',
      { className: 'nav navbar-nav navbar-right navbar-iconic navbar-utility' },
      children
    )
  );
};

MastheadCollapse.propTypes = {
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Children (likely MastheadDropdown's) */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};

MastheadCollapse.defaultProps = {
  className: '',
  children: null
};

/* harmony default export */ __webpack_exports__["default"] = (MastheadCollapse);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Masthead/MastheadDropdown.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Masthead/MastheadDropdown.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Dropdown */ "./node_modules/patternfly-react/dist/esm/components/Dropdown/index.js");
/* harmony import */ var _InnerComponents_CustomMastheadDropdown__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./InnerComponents/CustomMastheadDropdown */ "./node_modules/patternfly-react/dist/esm/components/Masthead/InnerComponents/CustomMastheadDropdown.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }






/**
 * Masthead
 */
var MastheadDropdown = function MastheadDropdown(_ref) {
  var className = _ref.className,
      id = _ref.id,
      title = _ref.title,
      noCaret = _ref.noCaret,
      children = _ref.children,
      props = _objectWithoutProperties(_ref, ['className', 'id', 'title', 'noCaret', 'children']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _Dropdown__WEBPACK_IMPORTED_MODULE_2__["Dropdown"],
    _extends({ id: id, componentClass: _InnerComponents_CustomMastheadDropdown__WEBPACK_IMPORTED_MODULE_3__["default"], className: className }, props),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _Dropdown__WEBPACK_IMPORTED_MODULE_2__["Dropdown"].Toggle,
      { className: 'nav-item-iconic', bsStyle: 'link', noCaret: noCaret },
      title
    ),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _Dropdown__WEBPACK_IMPORTED_MODULE_2__["Dropdown"].Menu,
      null,
      children
    )
  );
};

MastheadDropdown.propTypes = {
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** ID of dropdown */
  id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,
  /** Title of dropdown */
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Children (likely MenuItem's) */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Caret in Dropdown */
  noCaret: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};

MastheadDropdown.defaultProps = {
  className: '',
  title: null,
  children: null,
  noCaret: false
};

/* harmony default export */ __webpack_exports__["default"] = (MastheadDropdown);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Masthead/index.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Masthead/index.js ***!
  \*****************************************************************************/
/*! exports provided: Masthead, MastheadCollapse, MastheadDropdown */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Masthead__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Masthead */ "./node_modules/patternfly-react/dist/esm/components/Masthead/Masthead.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Masthead", function() { return _Masthead__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _MastheadCollapse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./MastheadCollapse */ "./node_modules/patternfly-react/dist/esm/components/Masthead/MastheadCollapse.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MastheadCollapse", function() { return _MastheadCollapse__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _MastheadDropdown__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./MastheadDropdown */ "./node_modules/patternfly-react/dist/esm/components/Masthead/MastheadDropdown.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MastheadDropdown", function() { return _MastheadDropdown__WEBPACK_IMPORTED_MODULE_2__["default"]; });







/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/MenuItem/MenuItem.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/MenuItem/MenuItem.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_MenuItem__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/MenuItem */ "./node_modules/react-bootstrap/es/MenuItem.js");



/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_MenuItem__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/MenuItem/index.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/MenuItem/index.js ***!
  \*****************************************************************************/
/*! exports provided: MenuItem */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _MenuItem__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./MenuItem */ "./node_modules/patternfly-react/dist/esm/components/MenuItem/MenuItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MenuItem", function() { return _MenuItem__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/MessageDialog/MessageDialog.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/MessageDialog/MessageDialog.js ***!
  \******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Modal */ "./node_modules/patternfly-react/dist/esm/components/Modal/index.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
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; };

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }









var MessageDialog = function MessageDialog(_ref) {
  var show = _ref.show,
      onHide = _ref.onHide,
      primaryAction = _ref.primaryAction,
      secondaryAction = _ref.secondaryAction,
      title = _ref.title,
      icon = _ref.icon,
      primaryContent = _ref.primaryContent,
      secondaryContent = _ref.secondaryContent,
      primaryActionButtonBsStyle = _ref.primaryActionButtonBsStyle,
      secondaryActionButtonBsStyle = _ref.secondaryActionButtonBsStyle,
      primaryActionButtonContent = _ref.primaryActionButtonContent,
      secondaryActionButtonContent = _ref.secondaryActionButtonContent,
      className = _ref.className,
      footer = _ref.footer,
      enforceFocus = _ref.enforceFocus,
      accessibleName = _ref.accessibleName,
      accessibleDescription = _ref.accessibleDescription,
      props = _objectWithoutProperties(_ref, ['show', 'onHide', 'primaryAction', 'secondaryAction', 'title', 'icon', 'primaryContent', 'secondaryContent', 'primaryActionButtonBsStyle', 'secondaryActionButtonBsStyle', 'primaryActionButtonContent', 'secondaryActionButtonContent', 'className', 'footer', 'enforceFocus', 'accessibleName', 'accessibleDescription']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _Modal__WEBPACK_IMPORTED_MODULE_4__["Modal"],
    _extends({
      className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('message-dialog-pf', className),
      show: show,
      onHide: onHide,
      enforceFocus: enforceFocus,
      'aria-modal': true,
      'aria-labelledby': accessibleName,
      'aria-describedby': accessibleDescription
    }, props),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _Modal__WEBPACK_IMPORTED_MODULE_4__["Modal"].Header,
      null,
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Modal__WEBPACK_IMPORTED_MODULE_4__["Modal"].CloseButton, { onClick: onHide }),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _Modal__WEBPACK_IMPORTED_MODULE_4__["Modal"].Title,
        { id: accessibleName },
        title
      )
    ),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _Modal__WEBPACK_IMPORTED_MODULE_4__["Modal"].Body,
      null,
      icon && icon,
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'div',
        { id: accessibleDescription },
        primaryContent && primaryContent,
        secondaryContent && secondaryContent
      )
    ),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _Modal__WEBPACK_IMPORTED_MODULE_4__["Modal"].Footer,
      null,
      !footer ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,
        null,
        secondaryActionButtonContent && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          _Button__WEBPACK_IMPORTED_MODULE_5__["Button"],
          { bsStyle: secondaryActionButtonBsStyle, onClick: secondaryAction },
          secondaryActionButtonContent
        ),
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          _Button__WEBPACK_IMPORTED_MODULE_5__["Button"],
          { autoFocus: true, bsStyle: primaryActionButtonBsStyle, onClick: primaryAction },
          primaryActionButtonContent
        )
      ) : footer
    )
  );
};

MessageDialog.propTypes = {
  /** additional class(es) */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** When true, the modal will show itself */
  show: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool.isRequired,
  /** A callback fired when the header closeButton or backdrop is clicked */
  onHide: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func.isRequired,
  /** callback to trigger when clicking the default footer primary action button */
  primaryAction: function primaryAction(props, propName, componentName) {
    if (props.footer) {
      return null;
    }
    return prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.checkPropTypes({ primaryAction: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func.isRequired }, _defineProperty({}, propName, props[propName]), propName, componentName);
  },

  /** callback to trigger when clicking the default footer secondary action button */
  secondaryAction: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Bootstrap button style for primary action */
  primaryActionButtonBsStyle: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Bootstrap button style for secondary action */
  secondaryActionButtonBsStyle: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** content for default footer primary action button */
  primaryActionButtonContent: function primaryActionButtonContent(props, propName, componentName) {
    if (props.footer) {
      return null;
    }
    return prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.checkPropTypes({ primaryActionButtonContent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node.isRequired }, _defineProperty({}, propName, props[propName]), propName, componentName);
  },

  /** content for default footer secondary action button */
  secondaryActionButtonContent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** modal title */
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** modal body icon */
  icon: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** modal body primary content */
  primaryContent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** modal body secondary content */
  secondaryContent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** custom footer */
  footer: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** When true the modal will prevent focus from leaving the Modal while open */
  enforceFocus: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Gives the modal an accessible name by referring to the element that provides the dialog title. Must be unique, as this sets an id */
  accessibleName: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Gives the modal an accessible description by referring to the modal content that describes the primary message or purpose of the dialog. Not used if there is no static text that describes the modal. Must be unique, as this sets an id */
  accessibleDescription: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};

MessageDialog.defaultProps = {
  className: '',
  primaryAction: null,
  secondaryAction: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  primaryActionButtonBsStyle: 'primary',
  secondaryActionButtonBsStyle: 'default',
  primaryActionButtonContent: null,
  secondaryActionButtonContent: null,
  title: '',
  icon: null,
  primaryContent: null,
  secondaryContent: null,
  footer: null,
  enforceFocus: true,
  accessibleName: '',
  accessibleDescription: ''
};

/* harmony default export */ __webpack_exports__["default"] = (MessageDialog);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/MessageDialog/index.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/MessageDialog/index.js ***!
  \**********************************************************************************/
/*! exports provided: MessageDialog */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _MessageDialog__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./MessageDialog */ "./node_modules/patternfly-react/dist/esm/components/MessageDialog/MessageDialog.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageDialog", function() { return _MessageDialog__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Modal/InnerComponents/CustomModalDialog.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Modal/InnerComponents/CustomModalDialog.js ***!
  \******************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react_bootstrap_lib_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-bootstrap/lib/utils */ "./node_modules/react-bootstrap/lib/utils/index.js");
/* harmony import */ var react_bootstrap_lib_utils__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_lib_utils__WEBPACK_IMPORTED_MODULE_3__);
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; };

var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();

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; }; }();

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

/**
 * CustomModalDialog creates custom ReactBootstrap ModalDialog
 * https://github.com/react-bootstrap/react-bootstrap/blob/master/src/ModalDialog.js
 *
 * This extends ModalDialog and adds contentClassName prop for setting
 * `modal-content` div's class
 */






var bsClass = react_bootstrap_lib_utils__WEBPACK_IMPORTED_MODULE_3__["bootstrapUtils"].bsClass;
var bsSizes = react_bootstrap_lib_utils__WEBPACK_IMPORTED_MODULE_3__["bootstrapUtils"].bsSizes;
var getClassSet = react_bootstrap_lib_utils__WEBPACK_IMPORTED_MODULE_3__["bootstrapUtils"].getClassSet;
var prefix = react_bootstrap_lib_utils__WEBPACK_IMPORTED_MODULE_3__["bootstrapUtils"].prefix;
var splitBsProps = react_bootstrap_lib_utils__WEBPACK_IMPORTED_MODULE_3__["bootstrapUtils"].splitBsProps;

// React Bootstrap utils/StyleConfig Size is currently not exported

var Size = {
  LARGE: 'large',
  SMALL: 'small'
};

// eslint-disable-next-line react/prefer-stateless-function

var CustomModalDialog = function (_React$Component) {
  _inherits(CustomModalDialog, _React$Component);

  function CustomModalDialog() {
    _classCallCheck(this, CustomModalDialog);

    return _possibleConstructorReturn(this, (CustomModalDialog.__proto__ || Object.getPrototypeOf(CustomModalDialog)).apply(this, arguments));
  }

  _createClass(CustomModalDialog, [{
    key: 'render',
    value: function render() {
      var _extends2;

      var _props = this.props,
          dialogClassName = _props.dialogClassName,
          contentClassName = _props.contentClassName,
          className = _props.className,
          style = _props.style,
          children = _props.children,
          props = _objectWithoutProperties(_props, ['dialogClassName', 'contentClassName', 'className', 'style', 'children']);

      var _splitBsProps = splitBsProps(props),
          _splitBsProps2 = _slicedToArray(_splitBsProps, 2),
          bsProps = _splitBsProps2[0],
          elementProps = _splitBsProps2[1];

      var bsClassName = prefix(bsProps);

      var modalStyle = _extends({ display: 'block' }, style);

      var dialogClasses = _extends({}, getClassSet(bsProps), (_extends2 = {}, _defineProperty(_extends2, bsClassName, false), _defineProperty(_extends2, prefix(bsProps, 'dialog'), true), _extends2));

      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
        'div',
        _extends({}, elementProps, {
          tabIndex: '-1',
          role: 'dialog',
          style: modalStyle,
          className: classnames__WEBPACK_IMPORTED_MODULE_0___default()(className, bsClassName)
        }),
        react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
          'div',
          { className: classnames__WEBPACK_IMPORTED_MODULE_0___default()(dialogClassName, dialogClasses) },
          react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
            'div',
            { className: classnames__WEBPACK_IMPORTED_MODULE_0___default()(prefix(bsProps, 'content'), contentClassName), role: 'document' },
            children
          )
        )
      );
    }
  }]);

  return CustomModalDialog;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

CustomModalDialog.propTypes = {
  /** A css class to apply to the Modal dialog DOM node. */
  dialogClassName: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** custom modal-content class added to the content DOM node */
  contentClassName: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** base modal class name */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** additional modal styles */
  style: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object,
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node
};

CustomModalDialog.defaultProps = {
  dialogClassName: '',
  contentClassName: '',
  className: '',
  style: {},
  children: null
};

/* harmony default export */ __webpack_exports__["default"] = (bsClass('modal', bsSizes([Size.LARGE, Size.SMALL], CustomModalDialog)));

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Modal/Modal.js":
/*!**************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Modal/Modal.js ***!
  \**************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Modal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Modal */ "./node_modules/react-bootstrap/es/Modal.js");
/* harmony import */ var _InnerComponents_CustomModalDialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./InnerComponents/CustomModalDialog */ "./node_modules/patternfly-react/dist/esm/components/Modal/InnerComponents/CustomModalDialog.js");
/* harmony import */ var _ModalCloseButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ModalCloseButton */ "./node_modules/patternfly-react/dist/esm/components/Modal/ModalCloseButton.js");
/* harmony import */ var _Patterns_ModalPattern__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Patterns/ModalPattern */ "./node_modules/patternfly-react/dist/esm/components/Modal/Patterns/ModalPattern.js");
/* harmony import */ var _Patterns_StatefulModalPattern__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Patterns/StatefulModalPattern */ "./node_modules/patternfly-react/dist/esm/components/Modal/Patterns/StatefulModalPattern.js");
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; };

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 _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }









/**
 * Modal Component for Patternfly React
 */

var Modal = function (_BsModal) {
  _inherits(Modal, _BsModal);

  function Modal() {
    _classCallCheck(this, Modal);

    return _possibleConstructorReturn(this, (Modal.__proto__ || Object.getPrototypeOf(Modal)).apply(this, arguments));
  }

  _createClass(Modal, [{
    key: 'render',
    value: function render() {
      return _get(Modal.prototype.__proto__ || Object.getPrototypeOf(Modal.prototype), 'render', this).call(this);
    }
  }]);

  return Modal;
}(react_bootstrap_es_Modal__WEBPACK_IMPORTED_MODULE_0__["default"]);

Modal.propTypes = _extends({}, react_bootstrap_es_Modal__WEBPACK_IMPORTED_MODULE_0__["default"].propTypes);

Modal.defaultProps = _extends({}, react_bootstrap_es_Modal__WEBPACK_IMPORTED_MODULE_0__["default"].defaultProps, {
  dialogComponentClass: _InnerComponents_CustomModalDialog__WEBPACK_IMPORTED_MODULE_1__["default"]
});

Modal.CloseButton = _ModalCloseButton__WEBPACK_IMPORTED_MODULE_2__["default"];

Modal.Pattern = _Patterns_ModalPattern__WEBPACK_IMPORTED_MODULE_3__["default"];
Modal.Pattern.Stateful = _Patterns_StatefulModalPattern__WEBPACK_IMPORTED_MODULE_4__["default"];

/* harmony default export */ __webpack_exports__["default"] = (Modal);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Modal/ModalCloseButton.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Modal/ModalCloseButton.js ***!
  \*************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }






var ModalCloseButton = function ModalCloseButton(_ref) {
  var className = _ref.className,
      closeText = _ref.closeText,
      props = _objectWithoutProperties(_ref, ['className', 'closeText']);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'button',
    _extends({ className: classnames__WEBPACK_IMPORTED_MODULE_0___default()('close', className) }, props),
    react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_3__["Icon"], { type: 'pf', name: 'close', 'aria-hidden': 'true', title: closeText }),
    react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
      'span',
      { className: 'sr-only' },
      closeText
    )
  );
};

ModalCloseButton.defaultProps = {
  className: '',
  closeText: 'Close'
};

ModalCloseButton.propTypes = {
  /** additional classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** Alternate text for close button for screen readers (default 'Close') */
  closeText: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};

/* harmony default export */ __webpack_exports__["default"] = (ModalCloseButton);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Modal/Patterns/ModalPattern.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Modal/Patterns/ModalPattern.js ***!
  \******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Modal */ "./node_modules/patternfly-react/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _InnerComponents_CustomModalDialog__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../InnerComponents/CustomModalDialog */ "./node_modules/patternfly-react/dist/esm/components/Modal/InnerComponents/CustomModalDialog.js");
/* harmony import */ var react_bootstrap_es_Modal__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-bootstrap/es/Modal */ "./node_modules/react-bootstrap/es/Modal.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }








/**
 * Modal Pattern component.
 */

var ModalPattern = function ModalPattern(_ref) {
  var show = _ref.show,
      title = _ref.title,
      onClose = _ref.onClose,
      footer = _ref.footer,
      children = _ref.children,
      rest = _objectWithoutProperties(_ref, ['show', 'title', 'onClose', 'footer', 'children']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _Modal__WEBPACK_IMPORTED_MODULE_3__["default"],
    _extends({ show: show }, rest),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _Modal__WEBPACK_IMPORTED_MODULE_3__["default"].Header,
      null,
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Modal__WEBPACK_IMPORTED_MODULE_3__["default"].CloseButton, { onClick: onClose }),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _Modal__WEBPACK_IMPORTED_MODULE_3__["default"].Title,
        null,
        title
      )
    ),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _Modal__WEBPACK_IMPORTED_MODULE_3__["default"].Body,
      null,
      children
    ),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _Modal__WEBPACK_IMPORTED_MODULE_3__["default"].Footer,
      null,
      footer
    )
  );
};

ModalPattern.propTypes = _extends({}, react_bootstrap_es_Modal__WEBPACK_IMPORTED_MODULE_5__["default"].propTypes, {
  show: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node]),
  onClose: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  footer: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
});

ModalPattern.defaultProps = _extends({}, react_bootstrap_es_Modal__WEBPACK_IMPORTED_MODULE_5__["default"].defaultProps, {
  dialogComponentClass: _InnerComponents_CustomModalDialog__WEBPACK_IMPORTED_MODULE_4__["default"],
  show: false,
  title: '',
  onClose: _index__WEBPACK_IMPORTED_MODULE_2__["noop"],
  footer: null,
  children: null
});

ModalPattern.displayName = 'ModalPattern';

/* harmony default export */ __webpack_exports__["default"] = (ModalPattern);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Modal/Patterns/StatefulModalPattern.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Modal/Patterns/StatefulModalPattern.js ***!
  \**************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _ModalPattern__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ModalPattern */ "./node_modules/patternfly-react/dist/esm/components/Modal/Patterns/ModalPattern.js");
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
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; };

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; }; }();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }





/**
 * Stateful Modal Pattern component.
 */

var StatefulModalPattern = function (_React$Component) {
  _inherits(StatefulModalPattern, _React$Component);

  _createClass(StatefulModalPattern, null, [{
    key: 'getDerivedStateFromProps',
    value: function getDerivedStateFromProps(nextProps, prevState) {
      return {
        show: Object(_index__WEBPACK_IMPORTED_MODULE_2__["propOrState"])(nextProps, prevState, 'show')
      };
    }
  }]);

  function StatefulModalPattern(props) {
    _classCallCheck(this, StatefulModalPattern);

    var _this = _possibleConstructorReturn(this, (StatefulModalPattern.__proto__ || Object.getPrototypeOf(StatefulModalPattern)).call(this, props));

    _this.open = function () {
      _this.setState({ show: true });
    };

    _this.close = function () {
      _this.setState({ show: false });
    };

    _this.getModalPatternProps = function () {
      return _this.props;
    };

    _this.state = { show: false };
    return _this;
  }

  _createClass(StatefulModalPattern, [{
    key: 'render',
    value: function render() {
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ModalPattern__WEBPACK_IMPORTED_MODULE_1__["default"], _extends({}, this.getModalPatternProps(), { show: this.state.show, onClose: this.close }));
    }
  }]);

  return StatefulModalPattern;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

StatefulModalPattern.propTypes = _extends({}, Object(_index__WEBPACK_IMPORTED_MODULE_2__["excludeKeys"])(_ModalPattern__WEBPACK_IMPORTED_MODULE_1__["default"].propTypes, ['onClose']));

StatefulModalPattern.defaultProps = _extends({}, Object(_index__WEBPACK_IMPORTED_MODULE_2__["excludeKeys"])(_ModalPattern__WEBPACK_IMPORTED_MODULE_1__["default"].defaultProps, ['onClose', 'show']));

StatefulModalPattern.displayName = 'StatefulModalPattern';

/* harmony default export */ __webpack_exports__["default"] = (StatefulModalPattern);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Modal/index.js":
/*!**************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Modal/index.js ***!
  \**************************************************************************/
/*! exports provided: Modal, ModalCloseButton, ModalPattern, StatefulModalPattern */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Modal */ "./node_modules/patternfly-react/dist/esm/components/Modal/Modal.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Modal", function() { return _Modal__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _ModalCloseButton__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ModalCloseButton */ "./node_modules/patternfly-react/dist/esm/components/Modal/ModalCloseButton.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ModalCloseButton", function() { return _ModalCloseButton__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _Patterns_ModalPattern__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Patterns/ModalPattern */ "./node_modules/patternfly-react/dist/esm/components/Modal/Patterns/ModalPattern.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ModalPattern", function() { return _Patterns_ModalPattern__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _Patterns_StatefulModalPattern__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Patterns/StatefulModalPattern */ "./node_modules/patternfly-react/dist/esm/components/Modal/Patterns/StatefulModalPattern.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StatefulModalPattern", function() { return _Patterns_StatefulModalPattern__WEBPACK_IMPORTED_MODULE_3__["default"]; });









/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ModelessOverlay/ModelessOverlay.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ModelessOverlay/ModelessOverlay.js ***!
  \**********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _common_Timer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/Timer */ "./node_modules/patternfly-react/dist/esm/common/Timer.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; };

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; }; }();

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }







var ModelessOverlay = function (_React$Component) {
  _inherits(ModelessOverlay, _React$Component);

  function ModelessOverlay(props) {
    _classCallCheck(this, ModelessOverlay);

    var _this = _possibleConstructorReturn(this, (ModelessOverlay.__proto__ || Object.getPrototypeOf(ModelessOverlay)).call(this, props));

    _this.updateForTransitions = function () {
      _this.setState({ isIn: _this.props.show });
    };

    _this.state = { isIn: false };
    _this.inTimer = new _common_Timer__WEBPACK_IMPORTED_MODULE_3__["default"](_this.updateForTransitions, 150);
    return _this;
  }

  _createClass(ModelessOverlay, [{
    key: 'componentWillUnmount',
    value: function componentWillUnmount() {
      this.inTimer.clearTimer();
    }
  }, {
    key: 'render',
    value: function render() {
      var _props = this.props,
          children = _props.children,
          className = _props.className,
          bsSize = _props.bsSize,
          show = _props.show,
          otherProps = _objectWithoutProperties(_props, ['children', 'className', 'bsSize', 'show']);

      var isIn = this.state.isIn;


      var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('modal modeless-pf fade right-side-modal-pf', { shown: show || isIn, in: show && isIn }, className);

      if (isIn !== show) {
        this.inTimer.clearTimer();
        this.inTimer.startTimer();
      }

      var dialogClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()('modal-dialog', {
        'modal-sm': bsSize === 'sm' || bsSize === 'small',
        'modal-lg': bsSize === 'lg' || bsSize === 'large'
      });
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'div',
        _extends({ role: 'dialog', tabIndex: -1, className: classes }, Object(_common_helpers__WEBPACK_IMPORTED_MODULE_4__["excludeKeys"])(otherProps, ['show'])),
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          'div',
          { className: dialogClasses },
          react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
            'div',
            { className: 'modal-content' },
            children
          )
        )
      );
    }
  }]);

  return ModelessOverlay;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

ModelessOverlay.propTypes = {
  /** Children */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** When true, the dialog is shown */
  show: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Component size variations (effects dialog width). */
  bsSize: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['lg', 'large', 'sm', 'small', 'default'])
};

ModelessOverlay.defaultProps = {
  children: null,
  className: '',
  show: false,
  bsSize: 'default'
};

/* harmony default export */ __webpack_exports__["default"] = (ModelessOverlay);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ModelessOverlay/index.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ModelessOverlay/index.js ***!
  \************************************************************************************/
/*! exports provided: ModelessOverlay */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _ModelessOverlay__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ModelessOverlay */ "./node_modules/patternfly-react/dist/esm/components/ModelessOverlay/ModelessOverlay.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ModelessOverlay", function() { return _ModelessOverlay__WEBPACK_IMPORTED_MODULE_0__["default"]; });





/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Nav/Nav.js":
/*!**********************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Nav/Nav.js ***!
  \**********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Nav__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Nav */ "./node_modules/react-bootstrap/es/Nav.js");
/* harmony import */ var _NavItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./NavItem */ "./node_modules/patternfly-react/dist/esm/components/Nav/NavItem.js");




react_bootstrap_es_Nav__WEBPACK_IMPORTED_MODULE_0__["default"].Item = _NavItem__WEBPACK_IMPORTED_MODULE_1__["default"];

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Nav__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Nav/NavItem.js":
/*!**************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Nav/NavItem.js ***!
  \**************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_NavItem__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/NavItem */ "./node_modules/react-bootstrap/es/NavItem.js");



/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_NavItem__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Nav/index.js":
/*!************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Nav/index.js ***!
  \************************************************************************/
/*! exports provided: Nav, NavItem */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Nav__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Nav */ "./node_modules/patternfly-react/dist/esm/components/Nav/Nav.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Nav", function() { return _Nav__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _NavItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./NavItem */ "./node_modules/patternfly-react/dist/esm/components/Nav/NavItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NavItem", function() { return _NavItem__WEBPACK_IMPORTED_MODULE_1__["default"]; });




/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Navbar/Navbar.js":
/*!****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Navbar/Navbar.js ***!
  \****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Navbar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Navbar */ "./node_modules/react-bootstrap/es/Navbar.js");



/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Navbar__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Navbar/index.js":
/*!***************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Navbar/index.js ***!
  \***************************************************************************/
/*! exports provided: Navbar */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Navbar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Navbar */ "./node_modules/patternfly-react/dist/esm/components/Navbar/Navbar.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Navbar", function() { return _Navbar__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/Notification.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/Notification.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Spinner_Spinner__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Spinner/Spinner */ "./node_modules/patternfly-react/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _NotificationContent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NotificationContent */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationContent.js");
/* harmony import */ var _NotificationInfo__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./NotificationInfo */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationInfo.js");
/* harmony import */ var _NotificationMessage__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./NotificationMessage */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationMessage.js");
/* harmony import */ var _NotificationInfoRight__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./NotificationInfoRight */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationInfoRight.js");
/* harmony import */ var _NotificationInfoLeft__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./NotificationInfoLeft */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationInfoLeft.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }











var Notification = function Notification(_ref) {
  var type = _ref.type,
      children = _ref.children,
      seen = _ref.seen,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['type', 'children', 'seen', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()({
    'drawer-pf-notification': type === 'notification',
    'drawer-pf-loading text-center': type === 'loading'
  }, { unread: !seen }, className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'div',
    _extends({ className: classes }, props),
    type === 'loading' ? [react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Spinner_Spinner__WEBPACK_IMPORTED_MODULE_3__["default"], { key: 'notification_spinner', inline: true, loading: true, size: 'xs' }), ' Loading More'] : children
  );
};
Notification.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** seen Notification Bool */
  seen: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  /** show Loading Notification */
  type: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
Notification.defaultProps = {
  children: null,
  className: '',
  seen: false,
  type: 'notification'
};

Notification.Content = _NotificationContent__WEBPACK_IMPORTED_MODULE_4__["default"];
Notification.Info = _NotificationInfo__WEBPACK_IMPORTED_MODULE_5__["default"];
Notification.InfoRight = _NotificationInfoRight__WEBPACK_IMPORTED_MODULE_7__["default"];
Notification.InfoLeft = _NotificationInfoLeft__WEBPACK_IMPORTED_MODULE_8__["default"];
Notification.Message = _NotificationMessage__WEBPACK_IMPORTED_MODULE_6__["default"];

/* harmony default export */ __webpack_exports__["default"] = (Notification);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationContent.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationContent.js ***!
  \***********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var NotificationContent = function NotificationContent(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('drawer-pf-notification-content', className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'div',
    _extends({ className: classes }, props),
    children
  );
};
NotificationContent.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
NotificationContent.defaultProps = {
  className: ''
};

/* harmony default export */ __webpack_exports__["default"] = (NotificationContent);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawer.js":
/*!*****************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawer.js ***!
  \*****************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var NotificationDrawer = function NotificationDrawer(_ref) {
  var hide = _ref.hide,
      expanded = _ref.expanded,
      children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['hide', 'expanded', 'children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('drawer-pf drawer-alt-pf drawer-pf-notifications', { 'drawer-pf-expanded': expanded }, { hide: hide }, className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'div',
    _extends({ className: classes }, props),
    children
  );
};
NotificationDrawer.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** Expanded bool */
  expanded: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  /** Hide Bool */
  hide: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
NotificationDrawer.defaultProps = {
  className: '',
  expanded: false,
  hide: false
};

/* harmony default export */ __webpack_exports__["default"] = (NotificationDrawer);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerAccordion.js":
/*!******************************************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerAccordion.js ***!
  \******************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var NotificationDrawerAccordion = function NotificationDrawerAccordion(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('panel-group', className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'div',
    _extends({ className: classes, id: 'notification-drawer-accordion' }, props),
    children
  );
};
NotificationDrawerAccordion.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
NotificationDrawerAccordion.defaultProps = {
  className: ''
};

/* harmony default export */ __webpack_exports__["default"] = (NotificationDrawerAccordion);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerDropDown.js":
/*!*****************************************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerDropDown.js ***!
  \*****************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Dropdown */ "./node_modules/patternfly-react/dist/esm/components/Dropdown/index.js");
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }







var NotificationDrawerDropDown = function NotificationDrawerDropDown(_ref) {
  var id = _ref.id,
      children = _ref.children,
      className = _ref.className,
      pullRight = _ref.pullRight,
      props = _objectWithoutProperties(_ref, ['id', 'children', 'className', 'pullRight']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('dropdown', { 'pull-right': pullRight }, 'dropdown-kebab-pf', className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    _Dropdown__WEBPACK_IMPORTED_MODULE_3__["Dropdown"],
    { className: classes, id: id },
    react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
      _Dropdown__WEBPACK_IMPORTED_MODULE_3__["Dropdown"].Toggle,
      { bsStyle: 'link', noCaret: true },
      react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_4__["Icon"], { name: 'ellipsis-v' })
    ),
    react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
      _Dropdown__WEBPACK_IMPORTED_MODULE_3__["Dropdown"].Menu,
      { className: 'dropdown-menu-right' },
      children
    )
  );
};
NotificationDrawerDropDown.propTypes = {
  /** dropdown button id */
  id: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number]),
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** menu right aligned */
  pullRight: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
NotificationDrawerDropDown.defaultProps = {
  pullRight: true,
  id: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (NotificationDrawerDropDown);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanel.js":
/*!**************************************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanel.js ***!
  \**************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var NotificationDrawerPanel = function NotificationDrawerPanel(_ref) {
  var children = _ref.children,
      expanded = _ref.expanded,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'expanded', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('panel panel-default', { expanded: expanded }, className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'div',
    _extends({ className: classes }, props),
    children
  );
};
NotificationDrawerPanel.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** isExpanded bool */
  expanded: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
NotificationDrawerPanel.defaultProps = {
  className: '',
  expanded: false
};

/* harmony default export */ __webpack_exports__["default"] = (NotificationDrawerPanel);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelAction.js":
/*!********************************************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelAction.js ***!
  \********************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var NotificationDrawerPanelAction = function NotificationDrawerPanelAction(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('drawer-pf-action', className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'div',
    _extends({ className: classes }, props),
    children
  );
};
NotificationDrawerPanelAction.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
NotificationDrawerPanelAction.defaultProps = {
  className: ''
};

/* harmony default export */ __webpack_exports__["default"] = (NotificationDrawerPanelAction);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelActionLink.js":
/*!************************************************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelActionLink.js ***!
  \************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var NotificationDrawerPanelActionLink = function NotificationDrawerPanelActionLink(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('drawer-pf-action-link', className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'div',
    _extends({ className: classes }, props),
    children
  );
};
NotificationDrawerPanelActionLink.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
NotificationDrawerPanelActionLink.defaultProps = {
  className: ''
};

/* harmony default export */ __webpack_exports__["default"] = (NotificationDrawerPanelActionLink);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelBody.js":
/*!******************************************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelBody.js ***!
  \******************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var NotificationDrawerPanelBody = function NotificationDrawerPanelBody(_ref) {
  var maxHeight = _ref.maxHeight,
      children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['maxHeight', 'children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('panel-body', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'div',
    _extends({ className: classes, style: { maxHeight: maxHeight } }, props),
    children
  );
};
NotificationDrawerPanelBody.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** Custom Height for Panel */
  maxHeight: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number
};
NotificationDrawerPanelBody.defaultProps = {
  className: '',
  maxHeight: null
};

/* harmony default export */ __webpack_exports__["default"] = (NotificationDrawerPanelBody);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelCollapse.js":
/*!**********************************************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelCollapse.js ***!
  \**********************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var NotificationDrawerPanelCollapse = function NotificationDrawerPanelCollapse(_ref) {
  var children = _ref.children,
      collapseIn = _ref.collapseIn,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'collapseIn', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('panel-collapse', { 'collapse in': collapseIn }, className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'div',
    _extends({ className: classes }, props),
    children
  );
};
NotificationDrawerPanelCollapse.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** collapse in bool */
  collapseIn: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
NotificationDrawerPanelCollapse.defaultProps = {
  className: '',
  collapseIn: false
};

/* harmony default export */ __webpack_exports__["default"] = (NotificationDrawerPanelCollapse);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelCounter.js":
/*!*********************************************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelCounter.js ***!
  \*********************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var NotificationDrawerPanelCounter = function NotificationDrawerPanelCounter(_ref) {
  var text = _ref.text,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['text', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('panel-counter', className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'span',
    _extends({ className: classes }, props),
    text
  );
};
NotificationDrawerPanelCounter.propTypes = {
  /** Text prop for the Panel Counter */
  text: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
NotificationDrawerPanelCounter.defaultProps = {
  className: '',
  text: ''
};

/* harmony default export */ __webpack_exports__["default"] = (NotificationDrawerPanelCounter);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelHeading.js":
/*!*********************************************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelHeading.js ***!
  \*********************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var NotificationDrawerPanelHeading = function NotificationDrawerPanelHeading(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('panel-heading', className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'div',
    _extends({ className: classes }, props),
    children
  );
};
NotificationDrawerPanelHeading.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
NotificationDrawerPanelHeading.defaultProps = {
  className: ''
};

/* harmony default export */ __webpack_exports__["default"] = (NotificationDrawerPanelHeading);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelTitle.js":
/*!*******************************************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelTitle.js ***!
  \*******************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var NotificationDrawerPanelTitle = function NotificationDrawerPanelTitle(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('panel-title', className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'h4',
    _extends({ className: classes }, props),
    children
  );
};
NotificationDrawerPanelTitle.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
NotificationDrawerPanelTitle.defaultProps = {
  className: '',
  children: null
};

/* harmony default export */ __webpack_exports__["default"] = (NotificationDrawerPanelTitle);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerEmptyState.js":
/*!***************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerEmptyState.js ***!
  \***************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _EmptyState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../EmptyState */ "./node_modules/patternfly-react/dist/esm/components/EmptyState/index.js");
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var NotificationDrawerEmptyState = function NotificationDrawerEmptyState(_ref) {
  var title = _ref.title,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['title', 'className']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _EmptyState__WEBPACK_IMPORTED_MODULE_2__["EmptyState"],
    null,
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_EmptyState__WEBPACK_IMPORTED_MODULE_2__["EmptyStateIcon"], { name: 'info' }),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _EmptyState__WEBPACK_IMPORTED_MODULE_2__["EmptyStateTitle"],
      null,
      title
    )
  );
};
NotificationDrawerEmptyState.propTypes = {
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Title */
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
NotificationDrawerEmptyState.defaultProps = {
  className: '',
  title: 'No Notifications Available'
};

/* harmony default export */ __webpack_exports__["default"] = (NotificationDrawerEmptyState);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerTitle.js":
/*!**********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerTitle.js ***!
  \**********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }






var NotificationDrawerTitle = function NotificationDrawerTitle(_ref) {
  var expandable = _ref.expandable,
      onCloseClick = _ref.onCloseClick,
      onExpandClick = _ref.onExpandClick,
      title = _ref.title,
      children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['expandable', 'onCloseClick', 'onExpandClick', 'title', 'children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('drawer-pf-title', className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'div',
    _extends({ className: classes }, props),
    expandable && react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement('a', { className: 'drawer-pf-toggle-expand', onClick: onExpandClick }),
    react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
      'a',
      { className: 'drawer-pf-close', onClick: onCloseClick },
      react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_3__["Icon"], { name: 'close' })
    ),
    react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
      'h3',
      { className: 'text-center' },
      title
    ),
    children
  );
};

NotificationDrawerTitle.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** Title prop */
  title: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** Close/Expand Functions */
  onCloseClick: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  onExpandClick: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  /** is the Drawer expandable prop */
  expandable: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
NotificationDrawerTitle.defaultProps = {
  className: '',
  title: 'Notifications',
  onCloseClick: null,
  onExpandClick: null,
  children: null,
  expandable: true
};

/* harmony default export */ __webpack_exports__["default"] = (NotificationDrawerTitle);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerToggle.js":
/*!***********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerToggle.js ***!
  \***********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _OverlayTrigger__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../OverlayTrigger */ "./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/index.js");
/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Tooltip */ "./node_modules/patternfly-react/dist/esm/components/Tooltip/index.js");
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");







var NotificationDrawerToggle = function NotificationDrawerToggle(_ref) {
  var hasUnreadMessages = _ref.hasUnreadMessages,
      onClick = _ref.onClick;

  var iconName = hasUnreadMessages ? 'bell' : 'bell-o';
  var tooltip = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _Tooltip__WEBPACK_IMPORTED_MODULE_3__["Tooltip"],
    { id: 'tooltip' },
    'Notifications'
  );

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _OverlayTrigger__WEBPACK_IMPORTED_MODULE_2__["OverlayTrigger"],
    { placement: 'bottom', id: 'notifications-toggle-icon', overlay: tooltip },
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _Button__WEBPACK_IMPORTED_MODULE_5__["Button"],
      { onClick: onClick, bsStyle: 'link', className: 'nav-item-iconic' },
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_4__["Icon"], { name: iconName, 'aria-describedby': 'tooltip' })
    )
  );
};
NotificationDrawerToggle.propTypes = {
  /** has Unread Messages Bool */
  hasUnreadMessages: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** onClick func */
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
NotificationDrawerToggle.defaultProps = {
  hasUnreadMessages: true,
  onClick: null
};

/* harmony default export */ __webpack_exports__["default"] = (NotificationDrawerToggle);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/index.js":
/*!****************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/index.js ***!
  \****************************************************************************************************/
/*! exports provided: NotificationDrawer, NotificationDrawerWrapper, NotificationDrawerPanelWrapper, StatefulNotificationDrawerWrapper, StatefulToggleNotificationDrawerWrapper */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _NotificationDrawer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./NotificationDrawer */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawer.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationDrawer", function() { return _NotificationDrawer__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _NotificationDrawerTitle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./NotificationDrawerTitle */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerTitle.js");
/* harmony import */ var _NotificationDrawerAccordion_NotificationDrawerAccordion__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./NotificationDrawerAccordion/NotificationDrawerAccordion */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerAccordion.js");
/* harmony import */ var _NotificationDrawerAccordion_NotificationDrawerPanel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./NotificationDrawerAccordion/NotificationDrawerPanel */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanel.js");
/* harmony import */ var _NotificationDrawerAccordion_NotificationDrawerPanelAction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NotificationDrawerAccordion/NotificationDrawerPanelAction */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelAction.js");
/* harmony import */ var _NotificationDrawerAccordion_NotificationDrawerPanelActionLink__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./NotificationDrawerAccordion/NotificationDrawerPanelActionLink */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelActionLink.js");
/* harmony import */ var _NotificationDrawerAccordion_NotificationDrawerPanelBody__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./NotificationDrawerAccordion/NotificationDrawerPanelBody */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelBody.js");
/* harmony import */ var _NotificationDrawerAccordion_NotificationDrawerPanelCollapse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./NotificationDrawerAccordion/NotificationDrawerPanelCollapse */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelCollapse.js");
/* harmony import */ var _NotificationDrawerAccordion_NotificationDrawerPanelCounter__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./NotificationDrawerAccordion/NotificationDrawerPanelCounter */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelCounter.js");
/* harmony import */ var _NotificationDrawerAccordion_NotificationDrawerPanelHeading__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./NotificationDrawerAccordion/NotificationDrawerPanelHeading */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelHeading.js");
/* harmony import */ var _NotificationDrawerAccordion_NotificationDrawerPanelTitle__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./NotificationDrawerAccordion/NotificationDrawerPanelTitle */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelTitle.js");
/* harmony import */ var _NotificationDrawerAccordion_NotificationDrawerDropDown__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./NotificationDrawerAccordion/NotificationDrawerDropDown */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerDropDown.js");
/* harmony import */ var _NotificationDrawerToggle__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./NotificationDrawerToggle */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerToggle.js");
/* harmony import */ var _NotificationDrawerEmptyState__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./NotificationDrawerEmptyState */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerEmptyState.js");
/* harmony import */ var _Wrappers_NotificationDrawerWrapper__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../Wrappers/NotificationDrawerWrapper */ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/NotificationDrawerWrapper.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationDrawerWrapper", function() { return _Wrappers_NotificationDrawerWrapper__WEBPACK_IMPORTED_MODULE_14__["default"]; });

/* harmony import */ var _Wrappers_NotificationDrawerPanelWrapper__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../Wrappers/NotificationDrawerPanelWrapper */ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/NotificationDrawerPanelWrapper.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationDrawerPanelWrapper", function() { return _Wrappers_NotificationDrawerPanelWrapper__WEBPACK_IMPORTED_MODULE_15__["default"]; });

/* harmony import */ var _Wrappers_StatefulNotificationDrawerWrapper__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../Wrappers/StatefulNotificationDrawerWrapper */ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/StatefulNotificationDrawerWrapper.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StatefulNotificationDrawerWrapper", function() { return _Wrappers_StatefulNotificationDrawerWrapper__WEBPACK_IMPORTED_MODULE_16__["default"]; });

/* harmony import */ var _Wrappers_StatefulToggleNotificationDrawerWrapper__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../Wrappers/StatefulToggleNotificationDrawerWrapper */ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/StatefulToggleNotificationDrawerWrapper.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StatefulToggleNotificationDrawerWrapper", function() { return _Wrappers_StatefulToggleNotificationDrawerWrapper__WEBPACK_IMPORTED_MODULE_17__["default"]; });





















_NotificationDrawer__WEBPACK_IMPORTED_MODULE_0__["default"].Accordion = _NotificationDrawerAccordion_NotificationDrawerAccordion__WEBPACK_IMPORTED_MODULE_2__["default"];
_NotificationDrawer__WEBPACK_IMPORTED_MODULE_0__["default"].Panel = _NotificationDrawerAccordion_NotificationDrawerPanel__WEBPACK_IMPORTED_MODULE_3__["default"];
_NotificationDrawer__WEBPACK_IMPORTED_MODULE_0__["default"].PanelAction = _NotificationDrawerAccordion_NotificationDrawerPanelAction__WEBPACK_IMPORTED_MODULE_4__["default"];
_NotificationDrawer__WEBPACK_IMPORTED_MODULE_0__["default"].PanelActionLink = _NotificationDrawerAccordion_NotificationDrawerPanelActionLink__WEBPACK_IMPORTED_MODULE_5__["default"];
_NotificationDrawer__WEBPACK_IMPORTED_MODULE_0__["default"].PanelBody = _NotificationDrawerAccordion_NotificationDrawerPanelBody__WEBPACK_IMPORTED_MODULE_6__["default"];
_NotificationDrawer__WEBPACK_IMPORTED_MODULE_0__["default"].PanelCollapse = _NotificationDrawerAccordion_NotificationDrawerPanelCollapse__WEBPACK_IMPORTED_MODULE_7__["default"];
_NotificationDrawer__WEBPACK_IMPORTED_MODULE_0__["default"].PanelCounter = _NotificationDrawerAccordion_NotificationDrawerPanelCounter__WEBPACK_IMPORTED_MODULE_8__["default"];
_NotificationDrawer__WEBPACK_IMPORTED_MODULE_0__["default"].PanelHeading = _NotificationDrawerAccordion_NotificationDrawerPanelHeading__WEBPACK_IMPORTED_MODULE_9__["default"];
_NotificationDrawer__WEBPACK_IMPORTED_MODULE_0__["default"].PanelTitle = _NotificationDrawerAccordion_NotificationDrawerPanelTitle__WEBPACK_IMPORTED_MODULE_10__["default"];
_NotificationDrawer__WEBPACK_IMPORTED_MODULE_0__["default"].Title = _NotificationDrawerTitle__WEBPACK_IMPORTED_MODULE_1__["default"];
_NotificationDrawer__WEBPACK_IMPORTED_MODULE_0__["default"].Dropdown = _NotificationDrawerAccordion_NotificationDrawerDropDown__WEBPACK_IMPORTED_MODULE_11__["default"];
_NotificationDrawer__WEBPACK_IMPORTED_MODULE_0__["default"].Toggle = _NotificationDrawerToggle__WEBPACK_IMPORTED_MODULE_12__["default"];
_NotificationDrawer__WEBPACK_IMPORTED_MODULE_0__["default"].EmptyState = _NotificationDrawerEmptyState__WEBPACK_IMPORTED_MODULE_13__["default"];



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationInfo.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationInfo.js ***!
  \********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _NotificationInfoRight__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./NotificationInfoRight */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationInfoRight.js");
/* harmony import */ var _NotificationInfoLeft__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NotificationInfoLeft */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationInfoLeft.js");
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }







var NotificationInfo = function NotificationInfo(_ref) {
  var rightText = _ref.rightText,
      leftText = _ref.leftText,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['rightText', 'leftText', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('drawer-pf-notification-info', className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'div',
    { className: classes },
    react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_NotificationInfoLeft__WEBPACK_IMPORTED_MODULE_4__["default"], { text: leftText }),
    react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_NotificationInfoRight__WEBPACK_IMPORTED_MODULE_3__["default"], { text: rightText })
  );
};
NotificationInfo.propTypes = {
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** leftText and rightText Strings */
  leftText: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  rightText: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
NotificationInfo.defaultProps = {
  className: '',
  leftText: '',
  rightText: ''
};

/* harmony default export */ __webpack_exports__["default"] = (NotificationInfo);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationInfoLeft.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationInfoLeft.js ***!
  \************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);



var NotificationInfoLeft = function NotificationInfoLeft(_ref) {
  var text = _ref.text;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'span',
    { className: 'date' },
    text
  );
};

NotificationInfoLeft.propTypes = {
  /** Text */
  text: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired
};

/* harmony default export */ __webpack_exports__["default"] = (NotificationInfoLeft);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationInfoRight.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationInfoRight.js ***!
  \*************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);



var NotificationInfoRight = function NotificationInfoRight(_ref) {
  var text = _ref.text;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'span',
    { className: 'time' },
    text
  );
};

NotificationInfoRight.propTypes = {
  /** Text */
  text: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired
};

/* harmony default export */ __webpack_exports__["default"] = (NotificationInfoRight);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationMessage.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationMessage.js ***!
  \***********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var NotificationMessage = function NotificationMessage(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('drawer-pf-notification-message', className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'span',
    _extends({ className: classes }, props),
    children
  );
};
NotificationMessage.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
NotificationMessage.defaultProps = {
  className: ''
};

/* harmony default export */ __webpack_exports__["default"] = (NotificationMessage);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/Icon.consts.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/Icon.consts.js ***!
  \************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* eslint-disable no-throw-literal */
/* eslint-disable no-throw-literal */
var okIcon = 'ok';
var infoIcon = 'info';
var warningIcon = 'warning-triangle-o';
var errorIcon = 'error-circle-o';
var closeIcon = 'close';
var questionSign = 'glyphicon glyphicon-question-sign';

/* harmony default export */ __webpack_exports__["default"] = (function (type) {
  switch (type) {
    case 'ok':
    case 'notice':
    case 'success':
      return okIcon;
    case 'info':
      return infoIcon;
    case 'warning':
      return warningIcon;
    case 'danger':
    case 'error':
      return errorIcon;
    case 'close':
      return closeIcon;
    case 'question-sign':
      return questionSign;
    default:
      throw { error: 'unknown icon type ' + type };
  }
});

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/NotificationDrawerPanelWrapper.js":
/*!*******************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/NotificationDrawerPanelWrapper.js ***!
  \*******************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var react_bootstrap_es_Collapse__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-bootstrap/es/Collapse */ "./node_modules/react-bootstrap/es/Collapse.js");
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../index */ "./node_modules/patternfly-react/dist/esm/components/Notification/index.js");
/* harmony import */ var _NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../NotificationDrawer/index */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/index.js");
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony import */ var _MenuItem__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../MenuItem */ "./node_modules/patternfly-react/dist/esm/components/MenuItem/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _Icon_consts__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Icon.consts */ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/Icon.consts.js");












var NotificationDrawerPanelWrapper = function NotificationDrawerPanelWrapper(_ref) {
  var panelkey = _ref.panelkey,
      panelName = _ref.panelName,
      className = _ref.className,
      notifications = _ref.notifications,
      isExpanded = _ref.isExpanded,
      togglePanel = _ref.togglePanel,
      onNotificationClick = _ref.onNotificationClick,
      onNotificationAsRead = _ref.onNotificationAsRead,
      onNotificationHide = _ref.onNotificationHide,
      onMarkPanelAsRead = _ref.onMarkPanelAsRead,
      onClickedLink = _ref.onClickedLink,
      onMarkPanelAsClear = _ref.onMarkPanelAsClear,
      showLoading = _ref.showLoading,
      translations = _ref.translations;

  var unreadCount = notifications.filter(function (notification) {
    return !notification.seen;
  }).length;

  var getUnread = function getUnread() {
    if (unreadCount !== 1) return unreadCount + ' ' + translations.unreadEvents;
    return '1 ' + translations.unreadEvent;
  };

  var notificationClickHandler = function notificationClickHandler(panel, notification, seen) {
    onNotificationClick(panel, notification);

    if (!seen) {
      onNotificationAsRead(panel, notification);
    }
  };

  var notificationsMap = notifications.map(function (notification, i) {
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _index__WEBPACK_IMPORTED_MODULE_3__["Notification"],
      {
        key: i,
        seen: notification.seen,
        onClick: function onClick() {
          return notificationClickHandler(panelkey, notification.id, notification.seen);
        }
      },
      notification.actions ? Object.keys(notification.actions).length > 0 && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_4__["NotificationDrawer"].Dropdown,
        { pullRight: true, id: i },
        notification.actions.links.map(function (link, j) {
          return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
            _MenuItem__WEBPACK_IMPORTED_MODULE_7__["MenuItem"],
            { key: j, id: 'notification-kebab-' + j, onClick: function onClick() {
                return onClickedLink(link);
              } },
            link.title
          );
        }),
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_MenuItem__WEBPACK_IMPORTED_MODULE_7__["MenuItem"], { divider: true }),
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          _MenuItem__WEBPACK_IMPORTED_MODULE_7__["MenuItem"],
          { id: 'notification-kebab-hide', onClick: function onClick() {
              return onNotificationHide(panelkey, notification.id);
            } },
          translations.deleteNotification
        )
      ) : null,
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_5__["Icon"], { className: 'pull-left', type: 'pf', name: Object(_Icon_consts__WEBPACK_IMPORTED_MODULE_9__["default"])(notification.level) }),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _index__WEBPACK_IMPORTED_MODULE_3__["Notification"].Content,
        null,
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          _index__WEBPACK_IMPORTED_MODULE_3__["Notification"].Message,
          null,
          notification.text
        ),
        notification.created_at && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_3__["Notification"].Info, {
          leftText: new Date(notification.created_at).toLocaleDateString(),
          rightText: new Date(notification.created_at).toLocaleTimeString()
        })
      )
    );
  });

  var renderNotifications = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_4__["NotificationDrawer"].PanelBody,
    { key: 'containsNotifications' },
    showLoading ? [notificationsMap, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_3__["Notification"], { key: 'loading', type: 'loading' })] : notificationsMap
  );

  var renderClearReadButtons = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_4__["NotificationDrawer"].PanelAction,
    { key: panelkey },
    unreadCount > 0 && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_4__["NotificationDrawer"].PanelActionLink,
      { className: 'drawer-pf-action-link', 'data-toggle': 'mark-all-read' },
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _Button__WEBPACK_IMPORTED_MODULE_6__["Button"],
        { bsStyle: 'link', onClick: function onClick() {
            return onMarkPanelAsRead(panelkey);
          } },
        translations.readAll
      )
    ),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_4__["NotificationDrawer"].PanelActionLink,
      { 'data-toggle': 'clear-all' },
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _Button__WEBPACK_IMPORTED_MODULE_6__["Button"],
        { bsStyle: 'link', onClick: function onClick() {
            return onMarkPanelAsClear(panelkey);
          } },
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_5__["Icon"], { type: 'pf', name: 'close' }),
        translations.clearAll
      )
    )
  );

  var noNotificationsMessage = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_4__["NotificationDrawer"].EmptyState, { title: translations.emptyState });

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_4__["NotificationDrawer"].Panel,
    { className: className, expanded: isExpanded },
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_4__["NotificationDrawer"].PanelHeading,
      { onClick: function onClick() {
          return togglePanel(panelkey);
        } },
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_4__["NotificationDrawer"].PanelTitle,
        null,
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          'a',
          { className: isExpanded ? '' : 'collapsed' },
          panelName
        )
      ),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_4__["NotificationDrawer"].PanelCounter, { text: getUnread() })
    ),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      react_bootstrap_es_Collapse__WEBPACK_IMPORTED_MODULE_2__["default"],
      { 'in': isExpanded },
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_4__["NotificationDrawer"].PanelCollapse,
        { id: panelkey },
        notifications.length > 0 ? [renderNotifications, renderClearReadButtons] : noNotificationsMessage
      )
    )
  );
};

NotificationDrawerPanelWrapper.propTypes = {
  /** Panel Key,Name */
  panelkey: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  panelName: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Notification Panels Array */
  notifications: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array,
  /** is Expanded Bool */
  isExpanded: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** function(panelkey, notificationkey) on Notification Click */
  onNotificationClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** function(panelkey, notificationkey) on Notification Mark as Read Click */
  onNotificationAsRead: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** on function(panelkey) Panel Read All Click */
  onMarkPanelAsRead: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** function(url) on Dropdown Link Click */
  onClickedLink: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** function(panelkey, notificationkey) on Notification Hide Click */
  onNotificationHide: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** function(panelkey) Panel Clear All Click */
  onMarkPanelAsClear: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** function() togglePanel Click */
  togglePanel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** show Loading notification Bool */
  showLoading: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** translations for Title, EmptyState, Read/Clear */
  translations: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    unreadEvent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    unreadEvents: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    emptyState: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    readAll: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    clearAll: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    deleteNotification: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
  })
};
NotificationDrawerPanelWrapper.defaultProps = {
  panelkey: '1',
  notifications: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array,
  isExpanded: false,
  className: null,
  panelName: null,
  onNotificationClick: _common_helpers__WEBPACK_IMPORTED_MODULE_8__["noop"],
  onNotificationAsRead: _common_helpers__WEBPACK_IMPORTED_MODULE_8__["noop"],
  onMarkPanelAsRead: _common_helpers__WEBPACK_IMPORTED_MODULE_8__["noop"],
  onClickedLink: _common_helpers__WEBPACK_IMPORTED_MODULE_8__["noop"],
  onNotificationHide: _common_helpers__WEBPACK_IMPORTED_MODULE_8__["noop"],
  onMarkPanelAsClear: _common_helpers__WEBPACK_IMPORTED_MODULE_8__["noop"],
  togglePanel: _common_helpers__WEBPACK_IMPORTED_MODULE_8__["noop"],
  showLoading: false,
  translations: {
    title: 'Notifications',
    unreadEvent: 'Unread Event',
    unreadEvents: 'Unread Events',
    emptyState: 'No Notifications Available',
    readAll: 'Mark All Read',
    clearAll: 'Clear All',
    deleteNotification: 'Hide this notification'
  }
};

/* harmony default export */ __webpack_exports__["default"] = (NotificationDrawerPanelWrapper);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/NotificationDrawerWrapper.js":
/*!**************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/NotificationDrawerWrapper.js ***!
  \**************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../NotificationDrawer/index */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/index.js");
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./index */ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; };







var NotificationDrawerWrapper = function NotificationDrawerWrapper(_ref) {
  var panels = _ref.panels,
      translations = _ref.translations,
      toggleDrawerHide = _ref.toggleDrawerHide,
      toggleDrawerExpand = _ref.toggleDrawerExpand,
      isExpandable = _ref.isExpandable,
      isExpanded = _ref.isExpanded,
      expandedPanel = _ref.expandedPanel,
      togglePanel = _ref.togglePanel,
      onNotificationClick = _ref.onNotificationClick,
      onNotificationAsRead = _ref.onNotificationAsRead,
      onNotificationHide = _ref.onNotificationHide,
      onMarkPanelAsRead = _ref.onMarkPanelAsRead,
      onMarkPanelAsClear = _ref.onMarkPanelAsClear,
      onClickedLink = _ref.onClickedLink;

  var translationsWrapper = _extends({}, _index__WEBPACK_IMPORTED_MODULE_3__["NotificationDrawerPanelWrapper"].defaultProps.translations, translations);

  var notificationPanels = panels.map(function (panel, i) {
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_3__["NotificationDrawerPanelWrapper"], {
      key: i,
      panelName: panel.panelName,
      panelkey: panel.panelkey,
      onClickedLink: onClickedLink,
      notifications: panel.notifications,
      togglePanel: togglePanel,
      isExpanded: expandedPanel === panel.panelkey,
      onNotificationClick: onNotificationClick,
      onNotificationAsRead: onNotificationAsRead,
      onNotificationHide: onNotificationHide,
      onMarkPanelAsRead: onMarkPanelAsRead,
      onMarkPanelAsClear: onMarkPanelAsClear,
      showLoading: panel.showLoading,
      translations: translationsWrapper
    });
  });
  var noNotificationsMessage = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_2__["NotificationDrawer"].EmptyState, { title: translations.emptyState });

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_2__["NotificationDrawer"],
    { expanded: isExpanded },
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_2__["NotificationDrawer"].Title, {
      title: translations.title,
      onCloseClick: function onCloseClick() {
        return toggleDrawerHide();
      },
      expandable: isExpandable,
      onExpandClick: toggleDrawerExpand
    }),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_2__["NotificationDrawer"].Accordion,
      null,
      notificationPanels.length === 0 ? noNotificationsMessage : notificationPanels
    )
  );
};

NotificationDrawerWrapper.propTypes = {
  /** toggleDrawer Hide/Expand func */
  toggleDrawerExpand: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  toggleDrawerHide: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Notification Panels Array */
  panels: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array,
  /** is Expanded Bool */
  isExpanded: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** function(panelkey, notificationkey) on Notification Click */
  onNotificationClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** function(panelkey, notificationkey) on Notification Mark as Read Click */
  onNotificationAsRead: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** on function(panelkey) Panel Read All Click */
  onMarkPanelAsRead: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** function(url) on Dropdown Link Click */
  onClickedLink: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** function(panelkey, notificationkey) on Notification Hide Click */
  onNotificationHide: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** function(panelkey) Panel Clear All Click */
  onMarkPanelAsClear: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** function() togglePanel Click */
  togglePanel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** show Loading notification Bool */
  isExpandable: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** expanded Panel */
  expandedPanel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** translations for Title, EmptyState, Read/Clear */
  translations: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    unreadEvent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    unreadEvents: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    emptyState: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    readAll: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    clearAll: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    deleteNotification: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
  })
};

NotificationDrawerWrapper.defaultProps = {
  panels: null,
  toggleDrawerHide: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  toggleDrawerExpand: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  togglePanel: null,
  isExpanded: false,
  onNotificationClick: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  onNotificationAsRead: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  onMarkPanelAsRead: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  onClickedLink: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  onNotificationHide: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  onMarkPanelAsClear: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  isExpandable: true,
  expandedPanel: null,
  translations: {}
};

/* harmony default export */ __webpack_exports__["default"] = (NotificationDrawerWrapper);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/StatefulNotificationDrawerWrapper.js":
/*!**********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/StatefulNotificationDrawerWrapper.js ***!
  \**********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./index */ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/index.js");
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; }; }();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }





var StatefulNotificationDrawerWrapper = function (_React$Component) {
  _inherits(StatefulNotificationDrawerWrapper, _React$Component);

  function StatefulNotificationDrawerWrapper(props) {
    _classCallCheck(this, StatefulNotificationDrawerWrapper);

    var _this = _possibleConstructorReturn(this, (StatefulNotificationDrawerWrapper.__proto__ || Object.getPrototypeOf(StatefulNotificationDrawerWrapper)).call(this, props));

    _this.onClickLink = function (url) {
      window.open(url.href);
    };

    _this.onMarkPanelAsRead = function (panelkey) {
      var panels = _this.state.panels.map(function (panel) {
        if (panel.panelkey === panelkey) {
          panel.notifications.map(function (notification) {
            notification.seen = true;
            return notification;
          });
        }
        return panel;
      });
      _this.setState({ panels: panels });
      _this.updateUnreadCount();
    };

    _this.onMarkPanelAsClear = function (key) {
      var panels = _this.state.panels.map(function (panel) {
        if (panel.panelkey === key) panel.notifications = [];
        return panel;
      });
      _this.setState({ panels: panels });
      _this.updateUnreadCount();
    };

    _this.onNotificationAsRead = function (panelkey, nkey) {
      var panels = _this.state.panels.map(function (panel) {
        if (panel.panelkey === panelkey) {
          panel.notifications.map(function (notification) {
            if (notification.id === nkey) notification.seen = true;
            return notification;
          });
        }
        return panel;
      });
      _this.setState({ panels: panels });
      _this.updateUnreadCount();
    };

    _this.onNotificationClick = function () {
      // On Click
    };

    _this.onNotificationHide = function (panelkey, nkey) {
      var panels = _this.state.panels.map(function (panel) {
        if (panel.panelkey === panelkey) {
          for (var i = 0; i < panel.notifications.length; i++) {
            if (nkey === panel.notifications[i].id) {
              panel.notifications.splice(i, 1);
            }
          }
        }
        return panel;
      });
      _this.setState({ panels: panels });
      _this.updateUnreadCount();
    };

    _this.togglePanel = function (key) {
      if (_this.state.expandedPanel === key) _this.setState({ expandedPanel: '-1' });else _this.setState({ expandedPanel: key });
    };

    _this.toggleDrawerExpand = function () {
      _this.setState(function (prevState) {
        return {
          isExpanded: !prevState.isExpanded
        };
      });
    };

    _this.updateUnreadCount = function () {
      var hasunread = false;
      for (var i = 0; i < _this.state.panels.length; i++) {
        for (var j = 0; j < _this.state.panels[i].notifications.length; j++) {
          if (_this.state.panels[i].notifications[j].seen === false) {
            hasunread = true;
          }
        }
      }
      _this.props.updateUnreadCount(hasunread);
    };

    _this.state = {
      panels: props.panels,
      isExpanded: props.isExpanded,
      expandedPanel: props.expandedPanel
    };
    return _this;
  }

  _createClass(StatefulNotificationDrawerWrapper, [{
    key: 'render',
    value: function render() {
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["NotificationDrawerWrapper"], {
        panels: this.state.panels,
        togglePanel: this.togglePanel,
        toggleDrawerExpand: this.toggleDrawerExpand,
        isExpanded: this.state.isExpanded,
        isExpandable: this.props.isExpandable,
        expandedPanel: this.state.expandedPanel,
        toggleDrawerHide: this.props.toggleDrawer,
        onNotificationClick: this.onNotificationClick,
        onNotificationAsRead: this.onNotificationAsRead,
        onNotificationHide: this.onNotificationHide,
        onMarkPanelAsClear: this.onMarkPanelAsClear,
        onMarkPanelAsRead: this.onMarkPanelAsRead,
        onClickedLink: this.onClickLink
      });
    }
  }]);

  return StatefulNotificationDrawerWrapper;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

StatefulNotificationDrawerWrapper.propTypes = {
  /** Notification Panels Array */
  panels: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array,
  /** is Expanded Bool */
  isExpanded: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** updateUnreadCount Func */
  updateUnreadCount: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** toggleDrawer Func */
  toggleDrawer: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** is Drawer Expandable prop */
  isExpandable: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** expanded Panel */
  expandedPanel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
StatefulNotificationDrawerWrapper.defaultProps = {
  panels: null,
  isExpanded: false,
  updateUnreadCount: null,
  toggleDrawer: null,
  isExpandable: true,
  expandedPanel: null
};

/* harmony default export */ __webpack_exports__["default"] = (StatefulNotificationDrawerWrapper);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/StatefulToggleNotificationDrawerWrapper.js":
/*!****************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/StatefulToggleNotificationDrawerWrapper.js ***!
  \****************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../NotificationDrawer/index */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/index.js");
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./index */ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/index.js");
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; }; }();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }






var StatefulToggleNotificationDrawerWrapper = function (_React$Component) {
  _inherits(StatefulToggleNotificationDrawerWrapper, _React$Component);

  function StatefulToggleNotificationDrawerWrapper(props) {
    _classCallCheck(this, StatefulToggleNotificationDrawerWrapper);

    var _this = _possibleConstructorReturn(this, (StatefulToggleNotificationDrawerWrapper.__proto__ || Object.getPrototypeOf(StatefulToggleNotificationDrawerWrapper)).call(this, props));

    _this.toggleDrawer = function () {
      _this.setState(function (prevState) {
        return {
          isDrawerOpen: !prevState.isDrawerOpen
        };
      });
    };

    _this.updateUnreadCount = function (bool) {
      if (bool) _this.setState({ hasUnreadMessages: true });else _this.setState({ hasUnreadMessages: false });
    };

    _this.state = {
      panels: props.panels,
      isDrawerOpen: props.isDrawerOpen,
      hasUnreadMessages: props.hasUnreadMessages
    };
    return _this;
  }

  _createClass(StatefulToggleNotificationDrawerWrapper, [{
    key: 'render',
    value: function render() {
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'ul',
        { className: 'nav navbar-nav navbar-right navbar-iconic' },
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_2__["NotificationDrawer"].Toggle, { hasUnreadMessages: this.state.hasUnreadMessages, onClick: this.toggleDrawer }),
        this.state.isDrawerOpen && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_3__["StatefulNotificationDrawerWrapper"], {
          panels: this.state.panels,
          maxPanelHeight: this.props.maxPanelHeight,
          isDrawerOpen: true,
          isExpandable: this.props.isExpandable,
          hasUnreadMessages: true,
          updateUnreadCount: this.updateUnreadCount,
          toggleDrawer: this.toggleDrawer
        })
      );
    }
  }]);

  return StatefulToggleNotificationDrawerWrapper;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

StatefulToggleNotificationDrawerWrapper.propTypes = {
  /** Notification Panels Array */
  panels: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array,
  /** Is Drawer Open Bool */
  isDrawerOpen: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** has Unread Messages Bool */
  hasUnreadMessages: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** is Drawer Expandable */
  isExpandable: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Max Panel Height */
  maxPanelHeight: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
StatefulToggleNotificationDrawerWrapper.defaultProps = {
  panels: null,
  isDrawerOpen: false,
  hasUnreadMessages: false,
  isExpandable: true,
  maxPanelHeight: null
};

/* harmony default export */ __webpack_exports__["default"] = (StatefulToggleNotificationDrawerWrapper);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/index.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/index.js ***!
  \******************************************************************************************/
/*! exports provided: NotificationDrawerWrapper, NotificationDrawerPanelWrapper, StatefulNotificationDrawerWrapper, StatefulToggleNotificationDrawerWrapper */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _NotificationDrawerWrapper__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./NotificationDrawerWrapper */ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/NotificationDrawerWrapper.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationDrawerWrapper", function() { return _NotificationDrawerWrapper__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _NotificationDrawerPanelWrapper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./NotificationDrawerPanelWrapper */ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/NotificationDrawerPanelWrapper.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationDrawerPanelWrapper", function() { return _NotificationDrawerPanelWrapper__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _StatefulNotificationDrawerWrapper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./StatefulNotificationDrawerWrapper */ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/StatefulNotificationDrawerWrapper.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StatefulNotificationDrawerWrapper", function() { return _StatefulNotificationDrawerWrapper__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _StatefulToggleNotificationDrawerWrapper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./StatefulToggleNotificationDrawerWrapper */ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/StatefulToggleNotificationDrawerWrapper.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StatefulToggleNotificationDrawerWrapper", function() { return _StatefulToggleNotificationDrawerWrapper__WEBPACK_IMPORTED_MODULE_3__["default"]; });






/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/index.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/index.js ***!
  \*********************************************************************************/
/*! exports provided: Notification, NotificationContent, NotificationInfo, NotificationMessage, NotificationInfoRight, NotificationInfoLeft */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Notification__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Notification */ "./node_modules/patternfly-react/dist/esm/components/Notification/Notification.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Notification", function() { return _Notification__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _NotificationContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./NotificationContent */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationContent.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationContent", function() { return _NotificationContent__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _NotificationInfo__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./NotificationInfo */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationInfo.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationInfo", function() { return _NotificationInfo__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _NotificationMessage__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./NotificationMessage */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationMessage.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationMessage", function() { return _NotificationMessage__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _NotificationInfoRight__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NotificationInfoRight */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationInfoRight.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationInfoRight", function() { return _NotificationInfoRight__WEBPACK_IMPORTED_MODULE_4__["default"]; });

/* harmony import */ var _NotificationInfoLeft__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./NotificationInfoLeft */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationInfoLeft.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationInfoLeft", function() { return _NotificationInfoLeft__WEBPACK_IMPORTED_MODULE_5__["default"]; });










/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Overlay/Overlay.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Overlay/Overlay.js ***!
  \******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Overlay__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Overlay */ "./node_modules/react-bootstrap/es/Overlay.js");



/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Overlay__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Overlay/index.js":
/*!****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Overlay/index.js ***!
  \****************************************************************************/
/*! exports provided: Overlay */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Overlay */ "./node_modules/patternfly-react/dist/esm/components/Overlay/Overlay.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Overlay", function() { return _Overlay__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/OverlayTrigger.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/OverlayTrigger.js ***!
  \********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_OverlayTrigger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/OverlayTrigger */ "./node_modules/react-bootstrap/es/OverlayTrigger.js");



/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_OverlayTrigger__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/index.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/index.js ***!
  \***********************************************************************************/
/*! exports provided: OverlayTrigger */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _OverlayTrigger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./OverlayTrigger */ "./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/OverlayTrigger.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OverlayTrigger", function() { return _OverlayTrigger__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Pagination/Pager.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Pagination/Pager.js ***!
  \*******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");






/**
 * Pager component for Patternfly React
 */
var Pager = function Pager(_ref) {
  var baseClassName = _ref.baseClassName,
      className = _ref.className,
      messages = _ref.messages,
      disableNext = _ref.disableNext,
      onNextPage = _ref.onNextPage,
      disablePrevious = _ref.disablePrevious,
      onPreviousPage = _ref.onPreviousPage;

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('pager', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'ul',
    { className: classes },
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'li',
      { className: classnames__WEBPACK_IMPORTED_MODULE_2___default()({ disabled: disablePrevious }, 'previous') },
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'a',
        {
          href: '#',
          className: classnames__WEBPACK_IMPORTED_MODULE_2___default()({ disabled: disablePrevious }),
          onClick: function onClick(e) {
            e.preventDefault();
            if (!disablePrevious) {
              onPreviousPage(e);
            }
          }
        },
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_3__["Icon"], { className: 'i', name: 'angle-left' }),
        messages.previousPage
      )
    ),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'li',
      { className: classnames__WEBPACK_IMPORTED_MODULE_2___default()({ disabled: disableNext }, 'next') },
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'a',
        {
          href: '#',
          className: classnames__WEBPACK_IMPORTED_MODULE_2___default()({ disabled: disableNext }),
          onClick: function onClick(e) {
            e.preventDefault();
            if (!disableNext) {
              onNextPage(e);
            }
          }
        },
        messages.nextPage,
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_3__["Icon"], { className: 'i', name: 'angle-right' })
      )
    )
  );
};
Pager.propTypes = {
  /** Base css class */
  baseClassName: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** message text inputs for i18n */
  messages: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    nextPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    previousPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
  }),
  /** next button disabled */
  disableNext: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** next page callback */
  onNextPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** previous button disabled */
  disablePrevious: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** previous page callback */
  onPreviousPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
Pager.defaultProps = {
  baseClassName: 'content-view-pf-pagination',
  className: '',
  messages: {
    nextPage: 'Next',
    previousPage: 'Previous'
  },
  disableNext: false,
  onNextPage: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  disablePrevious: false,
  onPreviousPage: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (Pager);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationConstants.js":
/*!*********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationConstants.js ***!
  \*********************************************************************************************/
/*! exports provided: PAGINATION_VIEW, PAGINATION_VIEW_TYPES */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PAGINATION_VIEW", function() { return PAGINATION_VIEW; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PAGINATION_VIEW_TYPES", function() { return PAGINATION_VIEW_TYPES; });
var PAGINATION_VIEW = {
  LIST: 'list',
  CARD: 'card',
  TABLE: 'table'
};

var PAGINATION_VIEW_TYPES = [PAGINATION_VIEW.LIST, PAGINATION_VIEW.CARD, PAGINATION_VIEW.TABLE];

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRow.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRow.js ***!
  \***************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _PaginationRowAmountOfPages__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./PaginationRowAmountOfPages */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowAmountOfPages.js");
/* harmony import */ var _PaginationRowButtonGroup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./PaginationRowButtonGroup */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowButtonGroup.js");
/* harmony import */ var _PaginationRowItems__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./PaginationRowItems */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowItems.js");
/* harmony import */ var _PaginationRowBack__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./PaginationRowBack */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowBack.js");
/* harmony import */ var _PaginationRowForward__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./PaginationRowForward */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowForward.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _PaginationConstants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./PaginationConstants */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationConstants.js");
/* harmony import */ var _Form__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Form */ "./node_modules/patternfly-react/dist/esm/components/Form/index.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony import */ var _MenuItem__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../MenuItem */ "./node_modules/patternfly-react/dist/esm/components/MenuItem/index.js");
/* harmony import */ var _PaginationRowArrowIcon__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./PaginationRowArrowIcon */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowArrowIcon.js");















/**
 * PaginationRow component for Patternfly React
 */
var PaginationRow = function PaginationRow(_ref) {
  var baseClassName = _ref.baseClassName,
      className = _ref.className,
      viewType = _ref.viewType,
      pagination = _ref.pagination,
      pageSizeDropUp = _ref.pageSizeDropUp,
      pageInputValue = _ref.pageInputValue,
      amountOfPages = _ref.amountOfPages,
      itemCount = _ref.itemCount,
      itemsStart = _ref.itemsStart,
      itemsEnd = _ref.itemsEnd,
      messages = _ref.messages,
      dropdownButtonId = _ref.dropdownButtonId,
      _onSubmit = _ref.onSubmit,
      onPerPageSelect = _ref.onPerPageSelect,
      onFirstPage = _ref.onFirstPage,
      onPreviousPage = _ref.onPreviousPage,
      onPageInput = _ref.onPageInput,
      onNextPage = _ref.onNextPage,
      onLastPage = _ref.onLastPage,
      disableNext = _ref.disableNext,
      disablePrev = _ref.disablePrev;
  var page = pagination.page,
      perPage = pagination.perPage,
      _pagination$perPageOp = pagination.perPageOptions,
      perPageOptions = _pagination$perPageOp === undefined ? [] : _pagination$perPageOp;

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()(baseClassName, className, {
    'list-view-pf-pagination': viewType === _PaginationConstants__WEBPACK_IMPORTED_MODULE_9__["PAGINATION_VIEW"].LIST,
    'card-view-pf-pagination': viewType === _PaginationConstants__WEBPACK_IMPORTED_MODULE_9__["PAGINATION_VIEW"].CARD,
    'table-view-pf-pagination': viewType === _PaginationConstants__WEBPACK_IMPORTED_MODULE_9__["PAGINATION_VIEW"].TABLE,
    clearfix: true
  });
  var pageValue = pageInputValue !== undefined ? pageInputValue : page;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _Form__WEBPACK_IMPORTED_MODULE_10__["Form"],
    {
      className: classes,
      onSubmit: function onSubmit(e) {
        e.preventDefault();
        _onSubmit(e);
      }
    },
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _Form__WEBPACK_IMPORTED_MODULE_10__["FormGroup"],
      null,
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _Button__WEBPACK_IMPORTED_MODULE_11__["DropdownButton"],
        {
          title: perPage,
          dropup: pageSizeDropUp,
          componentClass: _PaginationRowButtonGroup__WEBPACK_IMPORTED_MODULE_4__["default"],
          onSelect: onPerPageSelect,
          id: dropdownButtonId
        },
        perPageOptions.map(function (option, i) {
          return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
            _MenuItem__WEBPACK_IMPORTED_MODULE_12__["MenuItem"],
            { eventKey: option, active: option === perPage, key: i },
            option
          );
        })
      ),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'span',
        null,
        messages.perPage
      )
    ),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _Form__WEBPACK_IMPORTED_MODULE_10__["FormGroup"],
      null,
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_PaginationRowItems__WEBPACK_IMPORTED_MODULE_5__["default"], {
        itemCount: itemCount,
        itemsStart: itemsStart,
        itemsEnd: itemsEnd,
        messagesOf: messages.of
      }),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_PaginationRowBack__WEBPACK_IMPORTED_MODULE_6__["default"], {
        page: page,
        messagesFirstPage: messages.firstPage,
        messagesPreviousPage: messages.previousPage,
        onFirstPage: onFirstPage,
        onPreviousPage: onPreviousPage,
        disable: disablePrev
      }),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _Form__WEBPACK_IMPORTED_MODULE_10__["ControlLabel"],
        { className: 'sr-only' },
        messages.currentPage
      ),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Form__WEBPACK_IMPORTED_MODULE_10__["FormControl"], { className: 'pagination-pf-page', type: 'text', value: pageValue, onChange: onPageInput }),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_PaginationRowAmountOfPages__WEBPACK_IMPORTED_MODULE_3__["default"], { messagesOf: messages.of, amountOfPages: amountOfPages }),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_PaginationRowForward__WEBPACK_IMPORTED_MODULE_7__["default"], {
        page: page,
        amountOfPages: amountOfPages,
        messagesNextPage: messages.nextPage,
        messagesLastPage: messages.lastPage,
        onNextPage: onNextPage,
        onLastPage: onLastPage,
        disable: disableNext
      })
    )
  );
};
PaginationRow.propTypes = {
  /** Base css class */
  baseClassName: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** pagination row view type */
  viewType: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(_PaginationConstants__WEBPACK_IMPORTED_MODULE_9__["PAGINATION_VIEW_TYPES"]).isRequired,
  /** user pagination settings */
  pagination: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    /** the current page */
    page: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
    /** the current per page setting */
    perPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
    /** per page options */
    perPageOptions: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array
  }).isRequired,
  /** Page size button drops up */
  pageSizeDropUp: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** page input (optional override for page input) */
  pageInputValue: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number]),
  /** calculated amount of pages */
  amountOfPages: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  /** calculated number of rows */
  itemCount: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  /** calculated items start */
  itemsStart: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  /** calculated items end */
  itemsEnd: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  /** message text inputs for i18n */
  messages: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    firstPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    previousPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    nextPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    lastPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    perPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    of: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
  }),
  /** dropdown button id */
  dropdownButtonId: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** onSubmit callback */
  onSubmit: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** per page selection callback */
  onPerPageSelect: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** first page callback */
  onFirstPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** previous page selection callback */
  onPreviousPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** user page input callback */
  onPageInput: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** next page callback */
  onNextPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** last page callback */
  onLastPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** disable next page */
  disableNext: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** disable previous page */
  disablePrev: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};
PaginationRow.defaultProps = {
  baseClassName: 'content-view-pf-pagination',
  className: '',
  messages: {
    firstPage: 'First Page',
    previousPage: 'Previous Page',
    currentPage: 'Current Page',
    nextPage: 'Next Page',
    lastPage: 'Last Page',
    perPage: 'per page',
    of: 'of'
  },
  pageInputValue: '',
  pageSizeDropUp: true,
  onSubmit: _common_helpers__WEBPACK_IMPORTED_MODULE_8__["noop"],
  onPerPageSelect: _common_helpers__WEBPACK_IMPORTED_MODULE_8__["noop"],
  onFirstPage: _common_helpers__WEBPACK_IMPORTED_MODULE_8__["noop"],
  onPreviousPage: _common_helpers__WEBPACK_IMPORTED_MODULE_8__["noop"],
  onPageInput: _common_helpers__WEBPACK_IMPORTED_MODULE_8__["noop"],
  onNextPage: _common_helpers__WEBPACK_IMPORTED_MODULE_8__["noop"],
  onLastPage: _common_helpers__WEBPACK_IMPORTED_MODULE_8__["noop"],
  dropdownButtonId: 'pagination-row-dropdown',
  disableNext: false,
  disablePrev: false
};

PaginationRow.AmountOfPages = _PaginationRowAmountOfPages__WEBPACK_IMPORTED_MODULE_3__["default"];
PaginationRow.ArrowIcon = _PaginationRowArrowIcon__WEBPACK_IMPORTED_MODULE_13__["default"];
PaginationRow.Back = _PaginationRowBack__WEBPACK_IMPORTED_MODULE_6__["default"];
PaginationRow.ButtonGroup = _PaginationRowButtonGroup__WEBPACK_IMPORTED_MODULE_4__["default"];
PaginationRow.Forward = _PaginationRowForward__WEBPACK_IMPORTED_MODULE_7__["default"];
PaginationRow.Items = _PaginationRowItems__WEBPACK_IMPORTED_MODULE_5__["default"];
PaginationRow.PAGINATION_VIEW = _PaginationConstants__WEBPACK_IMPORTED_MODULE_9__["PAGINATION_VIEW"];
PaginationRow.PAGINATION_VIEW_TYPES = _PaginationConstants__WEBPACK_IMPORTED_MODULE_9__["PAGINATION_VIEW_TYPES"];

/* harmony default export */ __webpack_exports__["default"] = (PaginationRow);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowAmountOfPages.js":
/*!****************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowAmountOfPages.js ***!
  \****************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }




/**
 * PaginationRowAmountOfPages component for Patternfly React
 */
var PaginationRowAmountOfPages = function PaginationRowAmountOfPages(_ref) {
  var messagesOf = _ref.messagesOf,
      amountOfPages = _ref.amountOfPages,
      props = _objectWithoutProperties(_ref, ['messagesOf', 'amountOfPages']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'span',
    props,
    '\xA0',
    messagesOf,
    '\xA0',
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'span',
      { className: 'pagination-pf-pages' },
      amountOfPages
    )
  );
};
PaginationRowAmountOfPages.propTypes = {
  /** messages of */
  messagesOf: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,
  /** calculated amount of pages */
  amountOfPages: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired
};
/* harmony default export */ __webpack_exports__["default"] = (PaginationRowAmountOfPages);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowArrowIcon.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowArrowIcon.js ***!
  \************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





/**
 * PaginationRowArrowIcon component for Patternfly React
 */
var PaginationRowArrowIcon = function PaginationRowArrowIcon(_ref) {
  var name = _ref.name,
      props = _objectWithoutProperties(_ref, ['name']);

  var iconName = 'angle-' + name;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_2__["Icon"], { type: 'fa', name: iconName, className: 'i' });
};
PaginationRowArrowIcon.propTypes = {
  /** icon name */
  name: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['left', 'double-left', 'right', 'double-right']).isRequired
};
/* harmony default export */ __webpack_exports__["default"] = (PaginationRowArrowIcon);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowBack.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowBack.js ***!
  \*******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _PaginationRowArrowIcon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./PaginationRowArrowIcon */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowArrowIcon.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }







/**
 * PaginationRowBack component for Patternfly React
 */
var PaginationRowBack = function PaginationRowBack(_ref) {
  var className = _ref.className,
      page = _ref.page,
      messagesFirstPage = _ref.messagesFirstPage,
      messagesPreviousPage = _ref.messagesPreviousPage,
      onFirstPage = _ref.onFirstPage,
      onPreviousPage = _ref.onPreviousPage,
      disable = _ref.disable,
      props = _objectWithoutProperties(_ref, ['className', 'page', 'messagesFirstPage', 'messagesPreviousPage', 'onFirstPage', 'onPreviousPage', 'disable']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('pagination', 'pagination-pf-back', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'ul',
    _extends({ className: classes }, props),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'li',
      { className: page === 1 || disable ? 'disabled' : '' },
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'a',
        {
          href: '#',
          title: messagesFirstPage,
          onClick: function onClick(e) {
            e.preventDefault();
            if (page !== 1) {
              onFirstPage(e);
            }
          }
        },
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_PaginationRowArrowIcon__WEBPACK_IMPORTED_MODULE_3__["default"], { name: 'double-left' })
      )
    ),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'li',
      { className: page === 1 || disable ? 'disabled' : '' },
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'a',
        {
          href: '#',
          title: messagesPreviousPage,
          onClick: function onClick(e) {
            e.preventDefault();
            if (page !== 1) {
              onPreviousPage(e);
            }
          }
        },
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_PaginationRowArrowIcon__WEBPACK_IMPORTED_MODULE_3__["default"], { name: 'left' })
      )
    )
  );
};
PaginationRowBack.propTypes = {
  /** additional class names */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** pagination page */
  page: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  /** messages firstPage */
  messagesFirstPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,
  /** messages previousPage */
  messagesPreviousPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,
  /** first page callback */
  onFirstPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** previous page selection callback */
  onPreviousPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** disable back button */
  disable: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};
PaginationRowBack.defaultProps = {
  className: '',
  onFirstPage: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  onPreviousPage: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  disable: false
};
/* harmony default export */ __webpack_exports__["default"] = (PaginationRowBack);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowButtonGroup.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowButtonGroup.js ***!
  \**************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }






var PaginationRowButtonGroup = function PaginationRowButtonGroup(_ref) {
  var className = _ref.className,
      props = _objectWithoutProperties(_ref, ['className']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_3__["ButtonGroup"], _extends({}, props, { className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, 'pagination-pf-pagesize') }));
};
PaginationRowButtonGroup.propTypes = {
  /** additional classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
PaginationRowButtonGroup.defaultProps = {
  className: ''
};

/* harmony default export */ __webpack_exports__["default"] = (PaginationRowButtonGroup);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowForward.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowForward.js ***!
  \**********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _PaginationRowArrowIcon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./PaginationRowArrowIcon */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowArrowIcon.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }







/**
 * PaginationRowForward component for Patternfly React
 */
var PaginationRowForward = function PaginationRowForward(_ref) {
  var className = _ref.className,
      page = _ref.page,
      amountOfPages = _ref.amountOfPages,
      messagesNextPage = _ref.messagesNextPage,
      messagesLastPage = _ref.messagesLastPage,
      onNextPage = _ref.onNextPage,
      onLastPage = _ref.onLastPage,
      disable = _ref.disable,
      props = _objectWithoutProperties(_ref, ['className', 'page', 'amountOfPages', 'messagesNextPage', 'messagesLastPage', 'onNextPage', 'onLastPage', 'disable']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('pagination', 'pagination-pf-forward', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'ul',
    { className: classes },
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'li',
      { className: page === amountOfPages || disable ? 'disabled' : '' },
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'a',
        {
          href: '#',
          title: messagesNextPage,
          onClick: function onClick(e) {
            e.preventDefault();
            if (page !== amountOfPages) {
              onNextPage(e);
            }
          }
        },
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_PaginationRowArrowIcon__WEBPACK_IMPORTED_MODULE_3__["default"], { name: 'right' })
      )
    ),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'li',
      { className: page === amountOfPages || disable ? 'disabled' : '' },
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'a',
        {
          href: '#',
          title: messagesLastPage,
          onClick: function onClick(e) {
            e.preventDefault();
            if (page !== amountOfPages) {
              onLastPage(e);
            }
          }
        },
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_PaginationRowArrowIcon__WEBPACK_IMPORTED_MODULE_3__["default"], { name: 'double-right' })
      )
    )
  );
};
PaginationRowForward.propTypes = {
  /** additional class names */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** pagination page */
  page: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  /** calculated amount of pages */
  amountOfPages: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  /** messages next page */
  messagesNextPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,
  /** messages last page */
  messagesLastPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,
  /** next page callback */
  onNextPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** last page callback */
  onLastPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** disable next button  */
  disable: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};
PaginationRowForward.defaultProps = {
  className: '',
  onNextPage: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  onLastPage: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  disable: false
};
/* harmony default export */ __webpack_exports__["default"] = (PaginationRowForward);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowItems.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowItems.js ***!
  \********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }




/**
 * PaginationRowItems component for Patternfly React
 */
var PaginationRowItems = function PaginationRowItems(_ref) {
  var itemCount = _ref.itemCount,
      itemsStart = _ref.itemsStart,
      itemsEnd = _ref.itemsEnd,
      messagesOf = _ref.messagesOf,
      props = _objectWithoutProperties(_ref, ['itemCount', 'itemsStart', 'itemsEnd', 'messagesOf']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'span',
    props,
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'span',
      { className: 'pagination-pf-items-current' },
      itemsStart,
      '-',
      itemsEnd
    ),
    '\xA0',
    messagesOf,
    '\xA0',
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'span',
      { className: 'pagination-pf-items-total' },
      itemCount
    )
  );
};
PaginationRowItems.propTypes = {
  /** calculated number of rows */
  itemCount: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  /** calculated items start */
  itemsStart: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  /** calculated items end */
  itemsEnd: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  /** messages Of */
  messagesOf: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired
};
/* harmony default export */ __webpack_exports__["default"] = (PaginationRowItems);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Pagination/Paginator.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Pagination/Paginator.js ***!
  \***********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _PaginationRow__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PaginationRow */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRow.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _PaginationConstants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./PaginationConstants */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationConstants.js");
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; }; }();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }







var Paginator = function (_React$Component) {
  _inherits(Paginator, _React$Component);

  function Paginator(props) {
    _classCallCheck(this, Paginator);

    var _this = _possibleConstructorReturn(this, (Paginator.__proto__ || Object.getPrototypeOf(Paginator)).call(this, props));

    _this.handleFormSubmit = function (e) {
      _this.setPage(_this.state.pageChangeValue);
    };

    _this.initPagination(props);

    _this.state = {
      pageChangeValue: props.pagination.page
    };
    return _this;
  }

  _createClass(Paginator, [{
    key: 'componentWillReceiveProps',
    value: function componentWillReceiveProps(nextProps) {
      var pagination = nextProps.pagination;

      if (this.state.pageChangeValue !== pagination.page) {
        this.setState({
          pageChangeValue: Number(pagination.page)
        });
      }

      this.initPagination(nextProps);
    }
  }, {
    key: 'setPage',
    value: function setPage(value) {
      var page = Number(value);
      if (!Number.isNaN(value) && value !== '' && page > 0 && page <= this.totalPages()) {
        this.props.onPageSet(page);
      }
    }
  }, {
    key: 'setPageRelative',
    value: function setPageRelative(diff) {
      var pagination = this.props.pagination;

      var page = Number(pagination.page) + diff;
      this.setPage(page);
    }
  }, {
    key: 'handlePageChange',
    value: function handlePageChange(e) {
      this.setState({ pageChangeValue: e.target.value });
    }
  }, {
    key: 'initPagination',
    value: function initPagination(props) {
      var pagination = props.pagination;

      this.perPage = Number(pagination.perPage);
      this.currentPage = Number(pagination.page);
      this.itemCount = Number(props.itemCount);
    }
  }, {
    key: 'totalPages',
    value: function totalPages() {
      return Math.ceil(this.props.itemCount / this.perPage);
    }
  }, {
    key: 'render',
    value: function render() {
      var _this2 = this;

      var pageChangeValue = this.state.pageChangeValue;
      var _props = this.props,
          className = _props.className,
          viewType = _props.viewType,
          itemCount = _props.itemCount,
          messages = _props.messages,
          dropdownButtonId = _props.dropdownButtonId,
          onPerPageSelect = _props.onPerPageSelect,
          pagination = _props.pagination,
          disableNext = _props.disableNext,
          disablePrev = _props.disablePrev;


      var itemsStart = (this.currentPage - 1) * this.perPage + 1;
      var itemsEnd = Math.min(itemsStart + this.perPage - 1, this.itemCount);
      var totalPages = this.totalPages();

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_PaginationRow__WEBPACK_IMPORTED_MODULE_2__["default"], {
        className: className,
        onSubmit: this.handleFormSubmit,
        viewType: viewType,
        pagination: pagination,
        pageInputValue: pageChangeValue,
        amountOfPages: this.totalPages(),
        itemCount: itemCount,
        itemsStart: itemsStart,
        itemsEnd: itemsEnd,
        messages: messages,
        dropdownButtonId: dropdownButtonId,
        onPerPageSelect: onPerPageSelect,
        onFirstPage: function onFirstPage() {
          return _this2.setPage(1);
        },
        onPreviousPage: function onPreviousPage() {
          return _this2.setPageRelative(-1);
        },
        onPageInput: function onPageInput(e) {
          return _this2.handlePageChange(e);
        },
        onNextPage: function onNextPage() {
          return _this2.setPageRelative(1);
        },
        onLastPage: function onLastPage() {
          return _this2.setPage(totalPages);
        },
        disableNext: disableNext,
        disablePrev: disablePrev
      });
    }
  }]);

  return Paginator;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

Paginator.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** pagination row view type */
  viewType: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(_PaginationConstants__WEBPACK_IMPORTED_MODULE_4__["PAGINATION_VIEW_TYPES"]).isRequired,
  /** user pagination settings */
  pagination: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    /** the current page */
    page: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
    /** the current per page setting */
    perPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
    /** per page options */
    perPageOptions: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array
  }).isRequired,
  /** calculated number of rows */
  itemCount: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  /** message text inputs for i18n */
  messages: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    firstPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    previousPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    nextPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    lastPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    perPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    of: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
  }),
  /** dropdown button id */
  dropdownButtonId: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** A callback triggered when a page is switched */
  onPageSet: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** per page selection callback */
  onPerPageSelect: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** disable next page */
  disableNext: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** disable previous page */
  disablePrev: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};
Paginator.defaultProps = {
  className: '',
  messages: {
    firstPage: 'First Page',
    previousPage: 'Previous Page',
    currentPage: 'Current Page',
    nextPage: 'Next Page',
    lastPage: 'Last Page',
    perPage: 'per page',
    of: 'of'
  },
  dropdownButtonId: 'pagination-row-dropdown',
  onPerPageSelect: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  onPageSet: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  disableNext: false,
  disablePrev: false
};

/* harmony default export */ __webpack_exports__["default"] = (Paginator);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Pagination/index.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Pagination/index.js ***!
  \*******************************************************************************/
/*! exports provided: paginate, Pager, Paginator, PAGINATION_VIEW, PAGINATION_VIEW_TYPES, PaginationRow, PaginationRowAmountOfPages, PaginationRowArrowIcon, PaginationRowBack, PaginationRowButtonGroup, PaginationRowForward, PaginationRowItems */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _paginate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./paginate */ "./node_modules/patternfly-react/dist/esm/components/Pagination/paginate.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "paginate", function() { return _paginate__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _PaginationConstants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PaginationConstants */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationConstants.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PAGINATION_VIEW", function() { return _PaginationConstants__WEBPACK_IMPORTED_MODULE_1__["PAGINATION_VIEW"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PAGINATION_VIEW_TYPES", function() { return _PaginationConstants__WEBPACK_IMPORTED_MODULE_1__["PAGINATION_VIEW_TYPES"]; });

/* harmony import */ var _Pager__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Pager */ "./node_modules/patternfly-react/dist/esm/components/Pagination/Pager.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Pager", function() { return _Pager__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _Paginator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Paginator */ "./node_modules/patternfly-react/dist/esm/components/Pagination/Paginator.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Paginator", function() { return _Paginator__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _PaginationRow__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./PaginationRow */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRow.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationRow", function() { return _PaginationRow__WEBPACK_IMPORTED_MODULE_4__["default"]; });

/* harmony import */ var _PaginationRowAmountOfPages__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./PaginationRowAmountOfPages */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowAmountOfPages.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationRowAmountOfPages", function() { return _PaginationRowAmountOfPages__WEBPACK_IMPORTED_MODULE_5__["default"]; });

/* harmony import */ var _PaginationRowArrowIcon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./PaginationRowArrowIcon */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowArrowIcon.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationRowArrowIcon", function() { return _PaginationRowArrowIcon__WEBPACK_IMPORTED_MODULE_6__["default"]; });

/* harmony import */ var _PaginationRowBack__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./PaginationRowBack */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowBack.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationRowBack", function() { return _PaginationRowBack__WEBPACK_IMPORTED_MODULE_7__["default"]; });

/* harmony import */ var _PaginationRowButtonGroup__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./PaginationRowButtonGroup */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowButtonGroup.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationRowButtonGroup", function() { return _PaginationRowButtonGroup__WEBPACK_IMPORTED_MODULE_8__["default"]; });

/* harmony import */ var _PaginationRowForward__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./PaginationRowForward */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowForward.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationRowForward", function() { return _PaginationRowForward__WEBPACK_IMPORTED_MODULE_9__["default"]; });

/* harmony import */ var _PaginationRowItems__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./PaginationRowItems */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowItems.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationRowItems", function() { return _PaginationRowItems__WEBPACK_IMPORTED_MODULE_10__["default"]; });















/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Pagination/paginate.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Pagination/paginate.js ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return paginate; });
/**
 * Client Side Pagination helper which returns amountOfPages, itemCount,
 * itemsStart, itemsEnd, and paginated rows
 */
function paginate(_ref) {
  var page = _ref.page,
      perPage = _ref.perPage;

  return function () {
    var rows = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];

    // adapt to zero indexed logic
    var p = page - 1 || 0;
    var amountOfPages = Math.ceil(rows.length / perPage);
    var startPage = p < amountOfPages ? p : 0;
    var endOfPage = startPage * perPage + perPage;
    return {
      amountOfPages: amountOfPages,
      itemCount: rows.length,
      itemsStart: startPage * perPage + 1,
      itemsEnd: endOfPage > rows.length ? rows.length : endOfPage,
      rows: rows.slice(startPage * perPage, endOfPage)
    };
  };
}

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Popover/Popover.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Popover/Popover.js ***!
  \******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Popover__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Popover */ "./node_modules/react-bootstrap/es/Popover.js");



/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Popover__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Popover/index.js":
/*!****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Popover/index.js ***!
  \****************************************************************************/
/*! exports provided: Popover */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Popover__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Popover */ "./node_modules/patternfly-react/dist/esm/components/Popover/Popover.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Popover", function() { return _Popover__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ProgressBar/ProgressBar.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ProgressBar/ProgressBar.js ***!
  \**************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_ProgressBar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/ProgressBar */ "./node_modules/react-bootstrap/es/ProgressBar.js");



/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_ProgressBar__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ProgressBar/index.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ProgressBar/index.js ***!
  \********************************************************************************/
/*! exports provided: ProgressBar */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _ProgressBar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ProgressBar */ "./node_modules/patternfly-react/dist/esm/components/ProgressBar/ProgressBar.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProgressBar", function() { return _ProgressBar__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/SessionTimeout/CountDownSessionTimeout.js":
/*!*****************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/SessionTimeout/CountDownSessionTimeout.js ***!
  \*****************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _common_Timer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../common/Timer */ "./node_modules/patternfly-react/dist/esm/common/Timer.js");
/* harmony import */ var _SessionTimeout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SessionTimeout */ "./node_modules/patternfly-react/dist/esm/components/SessionTimeout/SessionTimeout.js");
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; }; }();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }






var msTimes = {
  seconds: 1000,
  minutes: 60 * 1000,
  hours: 60 * 60 * 1000
};

var CountDownSessionTimeout = function (_React$Component) {
  _inherits(CountDownSessionTimeout, _React$Component);

  function CountDownSessionTimeout(props) {
    _classCallCheck(this, CountDownSessionTimeout);

    var _this = _possibleConstructorReturn(this, (CountDownSessionTimeout.__proto__ || Object.getPrototypeOf(CountDownSessionTimeout)).call(this, props));

    _this.timer = new _common_Timer__WEBPACK_IMPORTED_MODULE_2__["default"](function () {}, -1);
    _this.state = { timeLeft: 0 };
    return _this;
  }

  _createClass(CountDownSessionTimeout, [{
    key: 'componentDidMount',
    value: function componentDidMount() {
      if (this.props.timeLeft < this.props.displayBefore) {
        this.setTimeout('dialog');
      } else {
        this.setTimeout('init');
      }
    }
  }, {
    key: 'componentWillUnount',
    value: function componentWillUnount() {
      this.timer.clearTimer();
    }
  }, {
    key: 'setTimeout',
    value: function setTimeout(mode) {
      var _this2 = this;

      var _props = this.props,
          sessionTime = _props.sessionTime,
          timeLeft = _props.timeLeft,
          displayBefore = _props.displayBefore,
          units = _props.units;

      switch (mode) {
        case 'logout':
          {
            this.setState(function () {
              return { timeLeft: 0 };
            });
            this.timer.clearTimer();
            break;
          }
        case 'continue':
          {
            this.setState(function () {
              return { timeLeft: sessionTime };
            });
            this.timer.startTimer(function () {
              return _this2.setTimeout('dialog');
            }, (sessionTime - displayBefore) * msTimes[units]);
            break;
          }
        case 'dialog':
          {
            var leftNow = timeLeft < displayBefore ? timeLeft : displayBefore;
            this.setState(function () {
              return { timeLeft: leftNow };
            });
            this.timer.startTimer(function () {
              return _this2.setTimeout('logout');
            }, leftNow * msTimes[units]);
            break;
          }
        case 'init':
          {
            this.setState(function () {
              return { timeLeft: timeLeft };
            });
            this.timer.startTimer(function () {
              return _this2.setTimeout('dialog');
            }, (timeLeft - displayBefore) * msTimes[units]);
            break;
          }
        default:
          {
            break;
          }
      }
    }
  }, {
    key: 'render',
    value: function render() {
      var _this3 = this;

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_SessionTimeout__WEBPACK_IMPORTED_MODULE_3__["default"], {
        logoutFnc: function logoutFnc() {
          return _this3.setTimeout('logout');
        },
        continueFnc: function continueFnc() {
          return _this3.setTimeout('continue');
        },
        displayBefore: this.props.displayBefore,
        timeLeft: this.state.timeLeft,
        secondaryContent: this.props.secondaryContent
      });
    }
  }]);

  return CountDownSessionTimeout;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

CountDownSessionTimeout.propTypes = {
  timeLeft: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  sessionTime: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  displayBefore: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  units: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(Object.keys(msTimes)),
  secondaryContent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};

CountDownSessionTimeout.defaultProps = {
  displayBefore: 10,
  units: 'seconds',
  secondaryContent: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'p',
    null,
    'You will be logged out in 10 seconds.'
  )
};

/* harmony default export */ __webpack_exports__["default"] = (CountDownSessionTimeout);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/SessionTimeout/SessionTimeout.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/SessionTimeout/SessionTimeout.js ***!
  \********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _CountDownSessionTimeout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./CountDownSessionTimeout */ "./node_modules/patternfly-react/dist/esm/components/SessionTimeout/CountDownSessionTimeout.js");





var SessionTimeout = function SessionTimeout(props) {
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["MessageDialog"], {
    show: props.timeLeft > 0 && props.timeLeft <= props.displayBefore,
    primaryActionButtonContent: props.continueContent,
    primaryAction: props.continueFnc,
    secondaryActionButtonContent: props.logoutContent,
    secondaryAction: props.logoutFnc,
    primaryContent: props.primaryContent,
    secondaryContent: props.secondaryContent,
    onHide: props.logoutFnc,
    icon: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Icon"], { type: 'pf', name: 'warning-triangle-o' })
  });
};

SessionTimeout.propTypes = {
  timeLeft: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  displayBefore: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  continueContent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  continueFnc: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func.isRequired,
  logoutContent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  logoutFnc: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func.isRequired,
  primaryContent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  secondaryContent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};

SessionTimeout.defaultProps = {
  displayBefore: 10,
  continueContent: 'Continue Session',
  logoutContent: 'Log Out',
  primaryContent: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'p',
    { className: 'lead' },
    'Your session is about to expire'
  ),
  secondaryContent: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,
    null,
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'p',
      null,
      'You will be logged out in a few seconds.'
    ),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'p',
      null,
      'To continue your session click on the Continue Session button.'
    )
  )
};

SessionTimeout.CountDown = _CountDownSessionTimeout__WEBPACK_IMPORTED_MODULE_3__["default"];

/* harmony default export */ __webpack_exports__["default"] = (SessionTimeout);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/SessionTimeout/index.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/SessionTimeout/index.js ***!
  \***********************************************************************************/
/*! exports provided: SessionTimeout, CountDownSessionTimeout */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _SessionTimeout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SessionTimeout */ "./node_modules/patternfly-react/dist/esm/components/SessionTimeout/SessionTimeout.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SessionTimeout", function() { return _SessionTimeout__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _CountDownSessionTimeout__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CountDownSessionTimeout */ "./node_modules/patternfly-react/dist/esm/components/SessionTimeout/CountDownSessionTimeout.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CountDownSessionTimeout", function() { return _CountDownSessionTimeout__WEBPACK_IMPORTED_MODULE_1__["default"]; });






/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Slider/BootstrapSlider.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Slider/BootstrapSlider.js ***!
  \*************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var bootstrap_slider_without_jquery__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! bootstrap-slider-without-jquery */ "./node_modules/bootstrap-slider-without-jquery/dist/bootstrap-slider.js");
/* harmony import */ var bootstrap_slider_without_jquery__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(bootstrap_slider_without_jquery__WEBPACK_IMPORTED_MODULE_2__);
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; };

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; }; }();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }





var orientation = {
  horizontal: 'horizontal',
  vertical: 'vertical'
};

var BootstrapSlider = function (_React$Component) {
  _inherits(BootstrapSlider, _React$Component);

  function BootstrapSlider() {
    _classCallCheck(this, BootstrapSlider);

    return _possibleConstructorReturn(this, (BootstrapSlider.__proto__ || Object.getPrototypeOf(BootstrapSlider)).apply(this, arguments));
  }

  _createClass(BootstrapSlider, [{
    key: 'componentDidMount',
    value: function componentDidMount() {
      var _this2 = this;

      this.slider = new bootstrap_slider_without_jquery__WEBPACK_IMPORTED_MODULE_2___default.a(this.sliderDiv, _extends({}, this.props));

      var onSlide = function onSlide(value) {
        _this2.props.onSlide(value);
        _this2.slider.setValue(value);
      };

      this.slider.on('slide', onSlide);
      this.slider.on('slideStop', onSlide);
    }

    // Instead of rendering the slider element again and again,
    // we took advantage of the bootstrap-slider library
    // and only update the new value or format when new props arrive.

  }, {
    key: 'componentWillReceiveProps',
    value: function componentWillReceiveProps(nextProps) {
      this.slider.setValue(nextProps.value);
      // Sets the tooltip format.
      this.slider.setAttribute('formatter', nextProps.formatter);
      // Adjust the tooltip to "sit" ontop of the slider's handle. #LibraryBug
      // check
      if (this.props.orientation === orientation.horizontal) {
        this.slider.tooltip.style.marginLeft = '-' + this.slider.tooltip.offsetWidth / 2 + 'px';
        if (this.props.ticks_labels && this.slider.tickLabelContainer) {
          this.slider.tickLabelContainer.style.marginTop = '0px';
        }
      } else {
        this.slider.tooltip.style.marginTop = '-' + this.slider.tooltip.offsetHeight / 2 + 'px';
      }
    }
  }, {
    key: 'render',
    value: function render() {
      var _this3 = this;

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('input', {
        className: 'slider-pf',
        type: 'range',
        ref: function ref(input) {
          _this3.sliderDiv = input;
        }
      });
    }
  }]);

  return BootstrapSlider;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

BootstrapSlider.propTypes = {
  value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number]).isRequired,
  formatter: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  onSlide: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  orientation: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  ticks_labels: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array
};

BootstrapSlider.defaultProps = {
  formatter: function formatter(v) {
    return v;
  },
  onSlide: function onSlide(event) {
    return event;
  },
  orientation: 'horizontal',
  ticks_labels: []
};

/* harmony default export */ __webpack_exports__["default"] = (BootstrapSlider);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Slider/Boundaries.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Slider/Boundaries.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);



var Boundaries = function Boundaries(props) {
  var children = props.children,
      min = props.min,
      max = props.max,
      reversed = props.reversed,
      showBoundaries = props.showBoundaries,
      slider = props.slider;

  var minElement = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'b',
    null,
    min
  );
  var maxElement = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'b',
    null,
    max
  );
  var leftBoundary = null;
  var rightBoundary = null;
  if (showBoundaries) {
    if (reversed) {
      leftBoundary = maxElement;
      rightBoundary = minElement;
    } else {
      leftBoundary = minElement;
      rightBoundary = maxElement;
    }
  }

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    { className: 'slider-pf' },
    leftBoundary,
    slider,
    rightBoundary,
    children
  );
};

Boundaries.propTypes = {
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array,
  min: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  max: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  reversed: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  showBoundaries: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  slider: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object.isRequired
};

Boundaries.defaultProps = {
  children: [],
  min: 0,
  max: 100,
  reversed: false,
  showBoundaries: false
};

/* harmony default export */ __webpack_exports__["default"] = (Boundaries);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Slider/DropdownMenu.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Slider/DropdownMenu.js ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Dropdown */ "./node_modules/patternfly-react/dist/esm/components/Dropdown/index.js");
/* harmony import */ var _MenuItem__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../MenuItem */ "./node_modules/patternfly-react/dist/esm/components/MenuItem/index.js");





var DropdownMenu = function DropdownMenu(props) {
  var dropup = props.dropup,
      dropdownList = props.dropdownList,
      onFormatChange = props.onFormatChange,
      title = props.title;

  var menuItems = dropdownList.map(function (item, index) {
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _MenuItem__WEBPACK_IMPORTED_MODULE_3__["MenuItem"],
      { bsClass: 'slider_menuitem', onClick: function onClick(event) {
          return onFormatChange(event.target.text);
        }, key: index, value: item },
      item
    );
  });

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _Dropdown__WEBPACK_IMPORTED_MODULE_2__["Dropdown"],
    { id: 'slider_dropdown', dropup: dropup, pullRight: true },
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _Dropdown__WEBPACK_IMPORTED_MODULE_2__["Dropdown"].Toggle,
      null,
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'span',
        null,
        title || dropdownList[0]
      )
    ),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _Dropdown__WEBPACK_IMPORTED_MODULE_2__["Dropdown"].Menu,
      null,
      menuItems
    )
  );
};

DropdownMenu.propTypes = {
  dropup: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  dropdownList: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array,
  onFormatChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};

DropdownMenu.defaultProps = {
  dropup: false,
  dropdownList: null,
  onFormatChange: null,
  title: null
};

/* harmony default export */ __webpack_exports__["default"] = (DropdownMenu);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Slider/Slider.js":
/*!****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Slider/Slider.js ***!
  \****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _BootstrapSlider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BootstrapSlider */ "./node_modules/patternfly-react/dist/esm/components/Slider/BootstrapSlider.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
/* harmony import */ var _Form__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Form */ "./node_modules/patternfly-react/dist/esm/components/Form/index.js");
/* harmony import */ var _Boundaries__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Boundaries */ "./node_modules/patternfly-react/dist/esm/components/Slider/Boundaries.js");
/* harmony import */ var _DropdownMenu__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./DropdownMenu */ "./node_modules/patternfly-react/dist/esm/components/Slider/DropdownMenu.js");
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; };

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; }; }();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }










var Slider = function (_React$Component) {
  _inherits(Slider, _React$Component);

  function Slider(props) {
    _classCallCheck(this, Slider);

    var _this = _possibleConstructorReturn(this, (Slider.__proto__ || Object.getPrototypeOf(Slider)).call(this, props));

    _this.onSlide = function (value) {
      _this.setState({ value: value }, function () {
        return _this.props.onSlide(value);
      });
    };

    _this.onInputChange = function (event) {
      var newValue = parseInt(event.target.value || 0, 10);
      _this.setState({ value: newValue }, function () {
        return _this.props.onSlide(newValue);
      });
    };

    _this.onFormatChange = function (format) {
      _this.setState({ tooltipFormat: format });
    };

    _this.formatter = function (value) {
      return value + ' ' + _this.state.tooltipFormat;
    };

    _this.state = {
      value: _this.props.value,
      tooltipFormat: _this.props.dropdownList && _this.props.dropdownList[0] || _this.props.inputFormat
    };
    return _this;
  }

  _createClass(Slider, [{
    key: 'componentDidUpdate',
    value: function componentDidUpdate(prevProps) {
      if (prevProps.value !== this.props.value) {
        this.onSlide(this.props.value);
      }
    }
  }, {
    key: 'render',
    value: function render() {
      var label = null;
      var sliderClass = 'col-xs-12 col-sm-12 col-md-12';
      var labelClass = 'col-xs-2 col-sm-2 col-md-2';
      if (this.props.label || this.props.icon) {
        sliderClass = 'col-xs-10 col-sm-10 col-md-10';
        label = this.props.icon ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_4__["Icon"], _extends({ className: labelClass }, this.props.icon)) : react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          _Form__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
          { htmlFor: this.props.id, bsClass: labelClass },
          this.props.label
        );
      }

      var formatElement = void 0;

      if (this.props.inputFormat) {
        formatElement = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          'span',
          null,
          this.props.inputFormat
        );
      }

      if (this.props.dropdownList) {
        formatElement = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_DropdownMenu__WEBPACK_IMPORTED_MODULE_7__["default"], _extends({}, this.props, { onFormatChange: this.onFormatChange, title: this.state.tooltipFormat }));
      }

      var inputElement = this.props.input && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Form__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
        bsClass: 'slider-input-pf',
        type: 'number',
        value: this.state.value,
        min: this.props.min,
        max: this.props.max,
        onChange: this.onInputChange
      });

      var BSSlider = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_BootstrapSlider__WEBPACK_IMPORTED_MODULE_2__["default"], _extends({}, this.props, { formatter: this.formatter, value: this.state.value, onSlide: this.onSlide }));

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'div',
        null,
        label,
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          'div',
          { className: sliderClass },
          react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
            _Boundaries__WEBPACK_IMPORTED_MODULE_6__["default"],
            _extends({ slider: BSSlider }, this.props),
            inputElement,
            formatElement
          )
        )
      );
    }
  }]);

  return Slider;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

Slider.propTypes = {
  id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  orientation: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  min: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  max: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  step: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number]),
  toolTip: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  onSlide: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  labelClass: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  icon: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  input: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  sliderClass: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  dropdownList: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array,
  inputFormat: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};

Slider.defaultProps = {
  id: null,
  orientation: 'horizontal',
  min: 0,
  max: 100,
  value: 0,
  step: 1,
  toolTip: false,
  onSlide: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  label: null,
  labelClass: null,
  input: false,
  sliderClass: null,
  icon: null,
  dropdownList: null,
  inputFormat: ''
};

/* harmony default export */ __webpack_exports__["default"] = (Slider);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Slider/index.js":
/*!***************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Slider/index.js ***!
  \***************************************************************************/
/*! exports provided: Slider */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Slider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Slider */ "./node_modules/patternfly-react/dist/esm/components/Slider/Slider.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Slider", function() { return _Slider__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Sort/Sort.js":
/*!************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Sort/Sort.js ***!
  \************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _SortTypeSelector__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SortTypeSelector */ "./node_modules/patternfly-react/dist/esm/components/Sort/SortTypeSelector.js");
/* harmony import */ var _SortDirectionSelector__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./SortDirectionSelector */ "./node_modules/patternfly-react/dist/esm/components/Sort/SortDirectionSelector.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }







/**
 * Sort Component for PatternFly React
 */
var Sort = function Sort(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('form-group', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'div',
    _extends({ className: classes }, props),
    children
  );
};

Sort.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};

Sort.defaultProps = {
  children: null,
  className: ''
};

Sort.TypeSelector = _SortTypeSelector__WEBPACK_IMPORTED_MODULE_3__["default"];
Sort.DirectionSelector = _SortDirectionSelector__WEBPACK_IMPORTED_MODULE_4__["default"];

/* harmony default export */ __webpack_exports__["default"] = (Sort);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Sort/SortDirectionSelector.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Sort/SortDirectionSelector.js ***!
  \*****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }






var SortDirectionSelector = function SortDirectionSelector(_ref) {
  var className = _ref.className,
      isNumeric = _ref.isNumeric,
      isAscending = _ref.isAscending,
      props = _objectWithoutProperties(_ref, ['className', 'isNumeric', 'isAscending']);

  var directionName = void 0;
  if (isNumeric) {
    directionName = isAscending ? 'sort-numeric-asc' : 'sort-numeric-desc';
  } else {
    directionName = isAscending ? 'sort-alpha-asc' : 'sort-alpha-desc';
  }

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _Button__WEBPACK_IMPORTED_MODULE_2__["Button"],
    _extends({ bsStyle: 'link', className: className }, props),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_3__["Icon"], { type: 'fa', className: 'sort-direction', name: directionName })
  );
};

SortDirectionSelector.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Boolean if current sort type is numeric */
  isNumeric: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Boolean if current sort direction is ascending */
  isAscending: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};

SortDirectionSelector.defaultProps = {
  className: '',
  isNumeric: true,
  isAscending: true
};
/* harmony default export */ __webpack_exports__["default"] = (SortDirectionSelector);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Sort/SortTypeSelector.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Sort/SortTypeSelector.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony import */ var _MenuItem__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../MenuItem */ "./node_modules/patternfly-react/dist/esm/components/MenuItem/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }







var SortTypeSelector = function SortTypeSelector(_ref) {
  var className = _ref.className,
      id = _ref.id,
      sortTypes = _ref.sortTypes,
      currentSortType = _ref.currentSortType,
      onSortTypeSelected = _ref.onSortTypeSelected,
      props = _objectWithoutProperties(_ref, ['className', 'id', 'sortTypes', 'currentSortType', 'onSortTypeSelected']);

  var menuId = 'sortTypeMenu';
  menuId += id ? '_' + id : '';
  if (sortTypes && sortTypes.length > 1) {
    var title = void 0;
    if (currentSortType) {
      title = currentSortType.title || currentSortType;
    } else {
      title = sortTypes[0].title || sortTypes[0];
    }

    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _Button__WEBPACK_IMPORTED_MODULE_2__["DropdownButton"],
      _extends({ className: className, title: title, id: menuId }, props),
      sortTypes.map(function (item, index) {
        var classes = {
          selected: item === currentSortType
        };
        return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          _MenuItem__WEBPACK_IMPORTED_MODULE_3__["MenuItem"],
          {
            className: classes,
            key: item.id || index,
            onSelect: function onSelect() {
              return onSortTypeSelected && onSortTypeSelected(item);
            }
          },
          item.title || item
        );
      })
    );
  }
  return null;
};

SortTypeSelector.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** ID for the sort component, necessary for accessibility if there are sort filters on a page */
  id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Array of sort types, can be a string or an object with a 'title' field */
  sortTypes: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array.isRequired,
  /** Current selected sort type */
  currentSortType: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object]),
  /** function(field, value) - Callback to call when a sort type is selected */
  onSortTypeSelected: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};

SortTypeSelector.defaultProps = {
  className: '',
  id: '',
  currentSortType: null,
  onSortTypeSelected: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"]
};

/* harmony default export */ __webpack_exports__["default"] = (SortTypeSelector);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Sort/index.js":
/*!*************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Sort/index.js ***!
  \*************************************************************************/
/*! exports provided: Sort, SortTypeSelector, SortDirectionSelector */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Sort__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Sort */ "./node_modules/patternfly-react/dist/esm/components/Sort/Sort.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Sort", function() { return _Sort__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _SortTypeSelector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SortTypeSelector */ "./node_modules/patternfly-react/dist/esm/components/Sort/SortTypeSelector.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SortTypeSelector", function() { return _SortTypeSelector__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _SortDirectionSelector__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SortDirectionSelector */ "./node_modules/patternfly-react/dist/esm/components/Sort/SortDirectionSelector.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SortDirectionSelector", function() { return _SortDirectionSelector__WEBPACK_IMPORTED_MODULE_2__["default"]; });







/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Spinner/Spinner.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Spinner/Spinner.js ***!
  \******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var Spinner = function Spinner(_ref) {
  var loading = _ref.loading,
      size = _ref.size,
      inline = _ref.inline,
      children = _ref.children,
      inverse = _ref.inverse,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['loading', 'size', 'inline', 'children', 'inverse', 'className']);

  if (loading) {
    var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, 'spinner', 'spinner-' + size, {
      'spinner-inline': inline,
      'spinner-inverse': inverse
    });

    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('div', _extends({ className: classes }, props));
  }

  return children || null;
};

Spinner.propTypes = {
  loading: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  inline: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  inverse: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  size: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['lg', 'md', 'sm', 'xs']),
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};

Spinner.defaultProps = {
  loading: false,
  size: 'md',
  inline: false,
  inverse: false,
  children: null,
  className: ''
};

/* harmony default export */ __webpack_exports__["default"] = (Spinner);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Spinner/index.js":
/*!****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Spinner/index.js ***!
  \****************************************************************************/
/*! exports provided: Spinner */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Spinner__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Spinner */ "./node_modules/patternfly-react/dist/esm/components/Spinner/Spinner.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Spinner", function() { return _Spinner__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Switch/Switch.js":
/*!****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Switch/Switch.js ***!
  \****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_switch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap-switch */ "./node_modules/react-bootstrap-switch/dist/js/index.js");
/* harmony import */ var react_bootstrap_switch__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_switch__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _SwitchConstants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SwitchConstants */ "./node_modules/patternfly-react/dist/esm/components/Switch/SwitchConstants.js");




react_bootstrap_switch__WEBPACK_IMPORTED_MODULE_0___default.a.SWITCH_BS_SIZES = _SwitchConstants__WEBPACK_IMPORTED_MODULE_1__["SWITCH_BS_SIZES"];
react_bootstrap_switch__WEBPACK_IMPORTED_MODULE_0___default.a.SWITCH_COLORS = _SwitchConstants__WEBPACK_IMPORTED_MODULE_1__["SWITCH_COLORS"];

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_switch__WEBPACK_IMPORTED_MODULE_0___default.a);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Switch/SwitchConstants.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Switch/SwitchConstants.js ***!
  \*************************************************************************************/
/*! exports provided: SWITCH_BS_SIZES, SWITCH_COLORS */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SWITCH_BS_SIZES", function() { return SWITCH_BS_SIZES; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SWITCH_COLORS", function() { return SWITCH_COLORS; });
var SWITCH_BS_SIZES = ['mini', 'small', 'normal', 'large'];
var SWITCH_COLORS = ['primary', 'info', 'success', 'warning', 'danger', 'default'];

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Switch/index.js":
/*!***************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Switch/index.js ***!
  \***************************************************************************/
/*! exports provided: Switch */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Switch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Switch */ "./node_modules/patternfly-react/dist/esm/components/Switch/Switch.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Switch", function() { return _Switch__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/actionHeaderCellFormatter.js":
/*!*********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/Formatters/actionHeaderCellFormatter.js ***!
  \*********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _TableHeading__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../TableHeading */ "./node_modules/patternfly-react/dist/esm/components/Table/TableHeading.js");
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; };





var actionHeaderCellFormatter = function actionHeaderCellFormatter(value, _ref) {
  var column = _ref.column;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _TableHeading__WEBPACK_IMPORTED_MODULE_2__["default"],
    _extends({ 'aria-label': column.header.label }, column.header.props),
    column.header.label
  );
};
actionHeaderCellFormatter.propTypes = {
  /** cell value */
  value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** column definition */
  column: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object
};
actionHeaderCellFormatter.defaultProps = {
  value: null,
  column: {}
};
/* harmony default export */ __webpack_exports__["default"] = (actionHeaderCellFormatter);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/customHeaderFormattersDefinition.js":
/*!****************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/Formatters/customHeaderFormattersDefinition.js ***!
  \****************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");



// wraps the default header definitions and adds support for `customFormatters`
var customHeaderFormattersDefinition = function customHeaderFormattersDefinition(_ref) {
  var cellProps = _ref.cellProps,
      columns = _ref.columns,
      sortingColumns = _ref.sortingColumns,
      rows = _ref.rows,
      onSelectAllRows = _ref.onSelectAllRows,
      onSort = _ref.onSort;
  var index = cellProps.index;

  var column = columns[index];
  var customFormatters = column.header.customFormatters;


  if (customFormatters) {
    return customFormatters.reduce(function (params, formatter) {
      return {
        value: formatter(params)
      };
    }, { cellProps: cellProps, column: column, sortingColumns: sortingColumns, rows: rows, onSelectAllRows: onSelectAllRows, onSort: onSort }).value;
  }
  return cellProps.children;
};
customHeaderFormattersDefinition.propTypes = {
  /** column header cell props */
  cellProps: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.object,
  /** column definitions */
  columns: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.array,
  /** sorting object definition */
  sortingColumns: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.object,
  /** current table rows */
  rows: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.array,
  /** on select all rows callback */
  onSelectAllRows: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func,
  /** onSort callback */
  onSort: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func
};
customHeaderFormattersDefinition.defaultProps = {
  cellProps: {},
  columns: [],
  sortingColumns: {},
  onSort: _common_helpers__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (customHeaderFormattersDefinition);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/inlineEditFormatterFactory.js":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/Formatters/inlineEditFormatterFactory.js ***!
  \**********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _InlineEdit___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../InlineEdit/ */ "./node_modules/patternfly-react/dist/esm/components/InlineEdit/index.js");



/*
Creates a reactabular formatter:

(<value>, {
  rowData: <object>,
  property: <string>,
  column: <column>,
  columnIndex: <number>,
  rowIndex: <number> }) => <string|React element>
*/
var inlineEditFormatterFactory = function inlineEditFormatterFactory() {
  var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
      isEditing = _ref.isEditing,
      renderValue = _ref.renderValue,
      renderEdit = _ref.renderEdit;

  return function (value, additionalData) {
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_InlineEdit___WEBPACK_IMPORTED_MODULE_1__["InlineEdit"], {
      value: value,
      additionalData: additionalData,
      isEditing: isEditing,
      renderValue: renderValue,
      renderEdit: renderEdit
    });
  };
};

/* harmony default export */ __webpack_exports__["default"] = (inlineEditFormatterFactory);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/selectionCellFormatter.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/Formatters/selectionCellFormatter.js ***!
  \******************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _TableSelectionCell__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../TableSelectionCell */ "./node_modules/patternfly-react/dist/esm/components/Table/TableSelectionCell.js");
/* harmony import */ var _TableCheckbox__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../TableCheckbox */ "./node_modules/patternfly-react/dist/esm/components/Table/TableCheckbox.js");






var selectionCellFormatter = function selectionCellFormatter(_ref, onSelectRow, id, label) {
  var rowData = _ref.rowData,
      rowIndex = _ref.rowIndex;

  var checkboxId = id || 'select' + rowIndex;
  var checkboxLabel = label || 'Select row ' + rowIndex;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _TableSelectionCell__WEBPACK_IMPORTED_MODULE_3__["default"],
    null,
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_TableCheckbox__WEBPACK_IMPORTED_MODULE_4__["default"], {
      id: checkboxId,
      label: checkboxLabel,
      checked: rowData.selected,
      onChange: function onChange(e) {
        onSelectRow(e, rowData);
      }
    })
  );
};
selectionCellFormatter.propTypes = {
  /** rowData for this row */
  rowData: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  /** rowIndex for this row */
  rowIndex: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  /** row selected callback */
  onSelectRow: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func, // eslint-disable-line react/no-unused-prop-types
  /** checkbox id override */
  id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, // eslint-disable-line react/no-unused-prop-types
  /** checkbox label override */
  label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string // eslint-disable-line react/no-unused-prop-types
};
selectionCellFormatter.defaultProps = {
  rowData: {},
  onSelectRow: _common_helpers__WEBPACK_IMPORTED_MODULE_2__["noop"],
  id: '',
  label: ''
};
/* harmony default export */ __webpack_exports__["default"] = (selectionCellFormatter);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/selectionHeaderCellFormatter.js":
/*!************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/Formatters/selectionHeaderCellFormatter.js ***!
  \************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _TableSelectionHeading__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../TableSelectionHeading */ "./node_modules/patternfly-react/dist/esm/components/Table/TableSelectionHeading.js");
/* harmony import */ var _TableCheckbox__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../TableCheckbox */ "./node_modules/patternfly-react/dist/esm/components/Table/TableCheckbox.js");
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; };







var selectionHeaderCellFormatter = function selectionHeaderCellFormatter(_ref) {
  var cellProps = _ref.cellProps,
      column = _ref.column,
      rows = _ref.rows,
      onSelectAllRows = _ref.onSelectAllRows;

  var unselectedRows = rows.filter(function (r) {
    return !r.selected;
  }).length > 0;
  var id = cellProps.id || 'selectAll';
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _TableSelectionHeading__WEBPACK_IMPORTED_MODULE_3__["default"],
    _extends({ 'aria-label': column.header.label }, cellProps),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_TableCheckbox__WEBPACK_IMPORTED_MODULE_4__["default"], { id: id, label: column.header.label, checked: !unselectedRows, onChange: onSelectAllRows })
  );
};
selectionHeaderCellFormatter.propTypes = {
  /** column header cell props */
  cellProps: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  /** column definition */
  column: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  /** current table rows */
  rows: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array,
  /** on select all rows callback */
  onSelectAllRows: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
selectionHeaderCellFormatter.defaultProps = {
  cellProps: {},
  column: {},
  rows: [],
  onSelectAllRows: _common_helpers__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (selectionHeaderCellFormatter);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/sortableHeaderCellFormatter.js":
/*!***********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/Formatters/sortableHeaderCellFormatter.js ***!
  \***********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _TableHeading__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../TableHeading */ "./node_modules/patternfly-react/dist/esm/components/Table/TableHeading.js");
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; };






var sortableHeaderCellFormatter = function sortableHeaderCellFormatter(_ref) {
  var cellProps = _ref.cellProps,
      column = _ref.column,
      sortingColumns = _ref.sortingColumns,
      onSort = _ref.onSort;

  var sortDirection = sortingColumns[column.property] && sortingColumns[column.property].direction;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _TableHeading__WEBPACK_IMPORTED_MODULE_3__["default"],
    _extends({
      onClick: function onClick(e) {
        onSort(e, column, sortDirection);
      },
      sort: true,
      sortDirection: sortDirection,
      'aria-label': column.header.label
    }, cellProps),
    column.header.label
  );
};
sortableHeaderCellFormatter.propTypes = {
  /** column header cell props */
  cellProps: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  /** column definition */
  column: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  /** sorting object definition */
  sortingColumns: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  /** onSort callback */
  onSort: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
sortableHeaderCellFormatter.defaultProps = {
  cellProps: {},
  column: {},
  sortingColumns: {},
  onSort: _common_helpers__WEBPACK_IMPORTED_MODULE_2__["noop"]
};

/* harmony default export */ __webpack_exports__["default"] = (sortableHeaderCellFormatter);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/tableCellFormatter.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/Formatters/tableCellFormatter.js ***!
  \**************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _TableCell__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../TableCell */ "./node_modules/patternfly-react/dist/esm/components/Table/TableCell.js");




var tableCellFormatter = function tableCellFormatter(value) {
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _TableCell__WEBPACK_IMPORTED_MODULE_2__["default"],
    null,
    value
  );
};

tableCellFormatter.propTypes = {
  /** cell value */
  value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node // eslint-disable-line react/no-unused-prop-types
};
tableCellFormatter.defaultProps = {
  value: null
};
/* harmony default export */ __webpack_exports__["default"] = (tableCellFormatter);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/Table.js":
/*!**************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/Table.js ***!
  \**************************************************************************/
/*! exports provided: Table */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var reactabular_table__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! reactabular-table */ "./node_modules/reactabular-table/dist/index.js");
/* harmony import */ var reactabular_table__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(reactabular_table__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "Table", function() { return reactabular_table__WEBPACK_IMPORTED_MODULE_0__; });
/* harmony import */ var _Formatters_actionHeaderCellFormatter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Formatters/actionHeaderCellFormatter */ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/actionHeaderCellFormatter.js");
/* harmony import */ var _Formatters_customHeaderFormattersDefinition__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Formatters/customHeaderFormattersDefinition */ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/customHeaderFormattersDefinition.js");
/* harmony import */ var _Formatters_selectionCellFormatter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Formatters/selectionCellFormatter */ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/selectionCellFormatter.js");
/* harmony import */ var _Formatters_selectionHeaderCellFormatter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Formatters/selectionHeaderCellFormatter */ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/selectionHeaderCellFormatter.js");
/* harmony import */ var _Formatters_sortableHeaderCellFormatter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Formatters/sortableHeaderCellFormatter */ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/sortableHeaderCellFormatter.js");
/* harmony import */ var _Formatters_tableCellFormatter__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Formatters/tableCellFormatter */ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/tableCellFormatter.js");
/* harmony import */ var _Formatters_inlineEditFormatterFactory__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Formatters/inlineEditFormatterFactory */ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/inlineEditFormatterFactory.js");
/* harmony import */ var _TableConstants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./TableConstants */ "./node_modules/patternfly-react/dist/esm/components/Table/TableConstants.js");
/* harmony import */ var _TableActions__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./TableActions */ "./node_modules/patternfly-react/dist/esm/components/Table/TableActions.js");
/* harmony import */ var _TableButton__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./TableButton */ "./node_modules/patternfly-react/dist/esm/components/Table/TableButton.js");
/* harmony import */ var _TableCell__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./TableCell */ "./node_modules/patternfly-react/dist/esm/components/Table/TableCell.js");
/* harmony import */ var _TableCheckbox__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./TableCheckbox */ "./node_modules/patternfly-react/dist/esm/components/Table/TableCheckbox.js");
/* harmony import */ var _TableDropdownKebab__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./TableDropdownKebab */ "./node_modules/patternfly-react/dist/esm/components/Table/TableDropdownKebab.js");
/* harmony import */ var _TableHeading__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./TableHeading */ "./node_modules/patternfly-react/dist/esm/components/Table/TableHeading.js");
/* harmony import */ var _TableInlineEditRow__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./TableInlineEditRow */ "./node_modules/patternfly-react/dist/esm/components/Table/TableInlineEditRow.js");
/* harmony import */ var _TableInlineEditHeaderRow__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./TableInlineEditHeaderRow */ "./node_modules/patternfly-react/dist/esm/components/Table/TableInlineEditHeaderRow.js");
/* harmony import */ var _TablePfProvider__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./TablePfProvider */ "./node_modules/patternfly-react/dist/esm/components/Table/TablePfProvider.js");
/* harmony import */ var _TableSelectionCell__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./TableSelectionCell */ "./node_modules/patternfly-react/dist/esm/components/Table/TableSelectionCell.js");
/* harmony import */ var _TableSelectionHeading__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./TableSelectionHeading */ "./node_modules/patternfly-react/dist/esm/components/Table/TableSelectionHeading.js");























reactabular_table__WEBPACK_IMPORTED_MODULE_0__["actionHeaderCellFormatter"] = _Formatters_actionHeaderCellFormatter__WEBPACK_IMPORTED_MODULE_1__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["customHeaderFormattersDefinition"] = _Formatters_customHeaderFormattersDefinition__WEBPACK_IMPORTED_MODULE_2__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["defaultSortingOrder"] = _TableConstants__WEBPACK_IMPORTED_MODULE_8__["defaultSortingOrder"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["selectionCellFormatter"] = _Formatters_selectionCellFormatter__WEBPACK_IMPORTED_MODULE_3__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["selectionHeaderCellFormatter"] = _Formatters_selectionHeaderCellFormatter__WEBPACK_IMPORTED_MODULE_4__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["sortableHeaderCellFormatter"] = _Formatters_sortableHeaderCellFormatter__WEBPACK_IMPORTED_MODULE_5__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["tableCellFormatter"] = _Formatters_tableCellFormatter__WEBPACK_IMPORTED_MODULE_6__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["inlineEditFormatterFactory"] = _Formatters_inlineEditFormatterFactory__WEBPACK_IMPORTED_MODULE_7__["default"];

reactabular_table__WEBPACK_IMPORTED_MODULE_0__["Actions"] = _TableActions__WEBPACK_IMPORTED_MODULE_9__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["Button"] = _TableButton__WEBPACK_IMPORTED_MODULE_10__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["Cell"] = _TableCell__WEBPACK_IMPORTED_MODULE_11__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["Checkbox"] = _TableCheckbox__WEBPACK_IMPORTED_MODULE_12__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["DropdownKebab"] = _TableDropdownKebab__WEBPACK_IMPORTED_MODULE_13__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["Heading"] = _TableHeading__WEBPACK_IMPORTED_MODULE_14__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["PfProvider"] = _TablePfProvider__WEBPACK_IMPORTED_MODULE_17__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["InlineEditRow"] = _TableInlineEditRow__WEBPACK_IMPORTED_MODULE_15__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["TableInlineEditHeaderRow"] = _TableInlineEditHeaderRow__WEBPACK_IMPORTED_MODULE_16__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["SelectionCell"] = _TableSelectionCell__WEBPACK_IMPORTED_MODULE_18__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["SelectionHeading"] = _TableSelectionHeading__WEBPACK_IMPORTED_MODULE_19__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["TABLE_ALIGN"] = _TableConstants__WEBPACK_IMPORTED_MODULE_8__["TABLE_ALIGN"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["TABLE_ALIGNMENT_TYPES"] = _TableConstants__WEBPACK_IMPORTED_MODULE_8__["TABLE_ALIGNMENT_TYPES"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["TABLE_SORT_DIRECTION"] = _TableConstants__WEBPACK_IMPORTED_MODULE_8__["TABLE_SORT_DIRECTION"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["TABLE_SORT_DIRECTIONS"] = _TableConstants__WEBPACK_IMPORTED_MODULE_8__["TABLE_SORT_DIRECTIONS"];



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/TableActions.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/TableActions.js ***!
  \*********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





/**
 * TableActions component for Patternfly React
 */
var TableActions = function TableActions(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('table-view-pf-actions', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'td',
    _extends({ className: classes }, props),
    children
  );
};
TableActions.propTypes = {
  /** Children nodes  */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
TableActions.defaultProps = {
  children: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (TableActions);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/TableButton.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/TableButton.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony import */ var _Button_ButtonConstants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Button/ButtonConstants */ "./node_modules/patternfly-react/dist/esm/components/Button/ButtonConstants.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }








/**
 * TableButton component for Patternfly React
 */
var TableButton = function TableButton(_ref) {
  var children = _ref.children,
      className = _ref.className,
      onClick = _ref.onClick,
      props = _objectWithoutProperties(_ref, ['children', 'className', 'onClick']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('table-view-pf-btn', className);

  var bsStyle = props.bsStyle,
      otherProps = _objectWithoutProperties(props, ['bsStyle']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    _extends({ className: classes }, otherProps),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _Button__WEBPACK_IMPORTED_MODULE_3__["Button"],
      { onClick: onClick, bsStyle: bsStyle },
      children
    )
  );
};
TableButton.propTypes = {
  /** Children nodes  */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** onClick callback for button */
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  bsStyle: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(_Button_ButtonConstants__WEBPACK_IMPORTED_MODULE_4__["BUTTON_BS_STYLES"])
};
TableButton.defaultProps = {
  children: null,
  className: '',
  onClick: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"],
  bsStyle: 'default'
};
TableButton.BUTTON_BS_STYLES = _Button_ButtonConstants__WEBPACK_IMPORTED_MODULE_4__["BUTTON_BS_STYLES"];

/* harmony default export */ __webpack_exports__["default"] = (TableButton);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/TableCell.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/TableCell.js ***!
  \******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _TableConstants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TableConstants */ "./node_modules/patternfly-react/dist/esm/components/Table/TableConstants.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





/**
 * TableCell component for Patternfly React
 */
var TableCell = function TableCell(_ref) {
  var children = _ref.children,
      className = _ref.className,
      align = _ref.align,
      props = _objectWithoutProperties(_ref, ['children', 'className', 'align']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()({
    'text-right': align === _TableConstants__WEBPACK_IMPORTED_MODULE_3__["TABLE_ALIGN"].RIGHT,
    'text-center': align === _TableConstants__WEBPACK_IMPORTED_MODULE_3__["TABLE_ALIGN"].CENTER
  }, className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'td',
    _extends({ className: classes }, props),
    children
  );
};
TableCell.propTypes = {
  /** Children nodes  */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Cell alignment */
  align: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(_TableConstants__WEBPACK_IMPORTED_MODULE_3__["TABLE_ALIGNMENT_TYPES"])
};
TableCell.defaultProps = {
  children: null,
  className: '',
  align: _TableConstants__WEBPACK_IMPORTED_MODULE_3__["TABLE_ALIGN"].DEFAULT
};
/* harmony default export */ __webpack_exports__["default"] = (TableCell);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/TableCheckbox.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/TableCheckbox.js ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Form */ "./node_modules/patternfly-react/dist/esm/components/Form/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }






/**
 * TableCheckbox component for Patternfly React
 */
var TableCheckbox = function TableCheckbox(_ref) {
  var id = _ref.id,
      label = _ref.label,
      checked = _ref.checked,
      onChange = _ref.onChange,
      props = _objectWithoutProperties(_ref, ['id', 'label', 'checked', 'onChange']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,
    null,
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _Form__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
      { srOnly: true, htmlFor: id },
      label
    ),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('input', _extends({ type: 'checkbox', id: id, checked: checked, onChange: onChange }, props))
  );
};
TableCheckbox.propTypes = {
  /** checkbox id */
  id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** checkbox label */
  label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** checkbox is checked */
  checked: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** onChange callback */
  onChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
TableCheckbox.defaultProps = {
  id: '',
  label: '',
  checked: false,
  onChange: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (TableCheckbox);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/TableConfirmButtonsRow.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/TableConfirmButtonsRow.js ***!
  \*******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _InlineEdit__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../InlineEdit */ "./node_modules/patternfly-react/dist/esm/components/InlineEdit/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _common_closestPolyfill__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../common/closestPolyfill */ "./node_modules/patternfly-react/dist/esm/common/closestPolyfill.js");
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; }; }();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }








var TableConfirmButtonsRow = function (_React$Component) {
  _inherits(TableConfirmButtonsRow, _React$Component);

  function TableConfirmButtonsRow(props) {
    _classCallCheck(this, TableConfirmButtonsRow);

    var _this = _possibleConstructorReturn(this, (TableConfirmButtonsRow.__proto__ || Object.getPrototypeOf(TableConfirmButtonsRow)).call(this, props));

    _this.saveRowDimensions = function (element) {
      if (element) {
        _this.element = element;
      }
      if (_this.element) {
        _this.setState({
          rowDimensions: _this.element.getBoundingClientRect()
        });
      }
    };

    _this.handleScroll = function (event) {
      _this.saveRowDimensions();
    };

    _this.handleResize = function (event) {
      _this.fetchClientDimensions();
      _this.saveRowDimensions();
    };

    _this.state = {};

    _this.handleScroll = Object(_common_helpers__WEBPACK_IMPORTED_MODULE_4__["debounce"])(_this.handleScroll, 100);
    _this.handleResize = Object(_common_helpers__WEBPACK_IMPORTED_MODULE_4__["debounce"])(_this.handleResize, 100);
    return _this;
  }

  _createClass(TableConfirmButtonsRow, [{
    key: 'componentDidMount',
    value: function componentDidMount() {
      this.fetchClientDimensions();
      window.addEventListener('scroll', this.handleScroll);
      window.addEventListener('resize', this.handleResize);
    }
  }, {
    key: 'componentWillUnmount',
    value: function componentWillUnmount() {
      window.removeEventListener('scroll', this.handleScroll);
      window.removeEventListener('resize', this.handleResize);
    }
  }, {
    key: 'fetchClientDimensions',
    value: function fetchClientDimensions() {
      this.setState({
        window: {
          width: document.documentElement.clientWidth,
          height: document.documentElement.clientHeight
        }
      });
    }
  }, {
    key: 'renderConfirmButtons',
    value: function renderConfirmButtons() {
      var _this2 = this;

      var divStyle = this.state.rowDimensions ? this.props.buttonsPosition(this.state.window, this.element.getBoundingClientRect()) : {};

      var buttonsClass = 'inline-edit-buttons ' + this.props.buttonsClassName;
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'div',
        { style: divStyle, className: buttonsClass, key: 'confirmButtons' },
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_InlineEdit__WEBPACK_IMPORTED_MODULE_3__["ConfirmButton"], {
          bsStyle: 'primary',
          key: 'confirm',
          'aria-label': this.props.messages.confirmButtonLabel,
          onMouseUp: function onMouseUp() {
            return _this2.props.onConfirm();
          }
        }),
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_InlineEdit__WEBPACK_IMPORTED_MODULE_3__["CancelButton"], {
          bsStyle: 'default',
          key: 'cancel',
          'aria-label': this.props.messages.cancelButtonLabel,
          onMouseUp: function onMouseUp() {
            return _this2.props.onCancel();
          }
        })
      );
    }
  }, {
    key: 'render',
    value: function render() {
      var editing = this.props.isEditing();
      var rowClass = editing ? 'editing' : '';

      var elements = [react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'tr',
        { ref: this.saveRowDimensions, className: rowClass, key: 'tableRow' },
        this.props.children
      )];

      if (editing && (this.element || this.props.buttonsMountpoint)) {
        elements.push(
        // mount the confirm buttons below the table
        Object(react_dom__WEBPACK_IMPORTED_MODULE_2__["createPortal"])(this.renderConfirmButtons(), this.props.buttonsMountpoint || this.element.closest('table').parentNode));
      }

      return elements;
    }
  }]);

  return TableConfirmButtonsRow;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

TableConfirmButtonsRow.shouldComponentUpdate = true;

TableConfirmButtonsRow.defaultProps = {
  isEditing: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  onConfirm: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  onCancel: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  buttonsPosition: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  buttonsClassName: '',
  children: [],
  messages: {
    confirmButtonLabel: 'Save',
    cancelButtonLabel: 'Cancel'
  },
  buttonsMountpoint: undefined
};

TableConfirmButtonsRow.propTypes = {
  /** Function that determines whether values or edit components should be rendered */
  isEditing: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Confirm edit callback */
  onConfirm: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Cancel edit callback */
  onCancel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Inject confirm buttons positions */
  buttonsPosition: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Additional confirm buttons classes */
  buttonsClassName: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Row cells */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node), prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node]),
  /** Message text inputs for i18n */
  messages: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    confirmButtonLabel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    cancelButtonLabel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
  }),
  buttonsMountpoint: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.any
};

/* harmony default export */ __webpack_exports__["default"] = (TableConfirmButtonsRow);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/TableConstants.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/TableConstants.js ***!
  \***********************************************************************************/
/*! exports provided: TABLE_ALIGN, TABLE_ALIGNMENT_TYPES, TABLE_SORT_DIRECTION, TABLE_SORT_DIRECTIONS, defaultSortingOrder */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TABLE_ALIGN", function() { return TABLE_ALIGN; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TABLE_ALIGNMENT_TYPES", function() { return TABLE_ALIGNMENT_TYPES; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TABLE_SORT_DIRECTION", function() { return TABLE_SORT_DIRECTION; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TABLE_SORT_DIRECTIONS", function() { return TABLE_SORT_DIRECTIONS; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultSortingOrder", function() { return defaultSortingOrder; });
var TABLE_ALIGN = {
  CENTER: 'center',
  RIGHT: 'right',
  DEFAULT: ''
};

var TABLE_ALIGNMENT_TYPES = [TABLE_ALIGN.CENTER, TABLE_ALIGN.RIGHT, TABLE_ALIGN.DEFAULT];

var TABLE_SORT_DIRECTION = {
  ASC: 'asc',
  DESC: 'desc',
  DEFAULT: ''
};

var TABLE_SORT_DIRECTIONS = [TABLE_SORT_DIRECTION.ASC, TABLE_SORT_DIRECTION.DESC, TABLE_SORT_DIRECTION.DEFAULT];

// Reactabular sorting order allows you to specifiy sort asc/desc only and removes
// the unsorted state. This is consistent with current PF Data Table but should
// be better spelled out in our design docs.
// https://github.com/patternfly/patternfly-design/issues/516
// https://reactabular.js.org/#/data/sorting?a=customizing-sorting-order
var defaultSortingOrder = {
  FIRST: 'asc',
  asc: 'desc',
  desc: 'asc'
};

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/TableDropdownKebab.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/TableDropdownKebab.js ***!
  \***************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony import */ var _DropdownKebab__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../DropdownKebab */ "./node_modules/patternfly-react/dist/esm/components/DropdownKebab/index.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }






/**
 * TableDropdownKebab component for Patternfly React
 */
var TableDropdownKebab = function TableDropdownKebab(_ref) {
  var children = _ref.children,
      props = _objectWithoutProperties(_ref, ['children']);

  var CustomButtonGroup = function CustomButtonGroup(buttonProps) {
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_2__["ButtonGroup"], _extends({}, buttonProps, { bsClass: ' ' }));
  };

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _DropdownKebab__WEBPACK_IMPORTED_MODULE_3__["DropdownKebab"],
    _extends({ componentClass: CustomButtonGroup, toggleStyle: 'default' }, props),
    children
  );
};
TableDropdownKebab.propTypes = {
  /** children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
TableDropdownKebab.defaultProps = {
  children: null
};

/* harmony default export */ __webpack_exports__["default"] = (TableDropdownKebab);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/TableHeading.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/TableHeading.js ***!
  \*********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _TableConstants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TableConstants */ "./node_modules/patternfly-react/dist/esm/components/Table/TableConstants.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }






/**
 * TableHeading component for Patternfly React
 */
var TableHeading = function TableHeading(_ref) {
  var children = _ref.children,
      className = _ref.className,
      align = _ref.align,
      sort = _ref.sort,
      sortDirection = _ref.sortDirection,
      props = _objectWithoutProperties(_ref, ['children', 'className', 'align', 'sort', 'sortDirection']);

  var sortingClass = classnames__WEBPACK_IMPORTED_MODULE_2___default()({
    sorting_asc: sortDirection === _TableConstants__WEBPACK_IMPORTED_MODULE_3__["TABLE_SORT_DIRECTION"].ASC,
    sorting_desc: sortDirection === _TableConstants__WEBPACK_IMPORTED_MODULE_3__["TABLE_SORT_DIRECTION"].DESC
  });
  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()({
    'text-right': align === _TableConstants__WEBPACK_IMPORTED_MODULE_3__["TABLE_ALIGN"].RIGHT,
    'text-center': align === _TableConstants__WEBPACK_IMPORTED_MODULE_3__["TABLE_ALIGN"].CENTER
  }, sort ? sortingClass || 'sorting' : '', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'th',
    _extends({ className: classes }, props),
    children
  );
};
TableHeading.propTypes = {
  /** Children nodes  */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Heading alignment */
  align: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(_TableConstants__WEBPACK_IMPORTED_MODULE_3__["TABLE_ALIGNMENT_TYPES"]),
  /** sortable heading */
  sort: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** sort direction */
  sortDirection: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(_TableConstants__WEBPACK_IMPORTED_MODULE_3__["TABLE_SORT_DIRECTIONS"])
};
TableHeading.defaultProps = {
  children: null,
  className: '',
  sort: false,
  align: _TableConstants__WEBPACK_IMPORTED_MODULE_3__["TABLE_ALIGN"].DEFAULT,
  sortDirection: _TableConstants__WEBPACK_IMPORTED_MODULE_3__["TABLE_SORT_DIRECTION"].DEFAULT
};
/* harmony default export */ __webpack_exports__["default"] = (TableHeading);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/TableInlineEditHeaderRow.js":
/*!*********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/TableInlineEditHeaderRow.js ***!
  \*********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _TableConfirmButtonsRow__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TableConfirmButtonsRow */ "./node_modules/patternfly-react/dist/esm/components/Table/TableConfirmButtonsRow.js");
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; };





var TableInlineEditHeaderRow = function TableInlineEditHeaderRow(props) {
  var buttonsPosition = function buttonsPosition(window, rowDimensions) {
    var position = {};

    position.bottom = window.height - rowDimensions.bottom - 3;
    position.right = window.width - rowDimensions.right + 10;
    return position;
  };

  var buttonsClassName = 'top bold';

  var rowProps = _extends({}, props, {
    buttonsPosition: buttonsPosition,
    buttonsClassName: buttonsClassName
  });

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_TableConfirmButtonsRow__WEBPACK_IMPORTED_MODULE_2__["default"], rowProps);
};

TableInlineEditHeaderRow.shouldComponentUpdate = true;

TableInlineEditHeaderRow.defaultProps = _extends({}, _TableConfirmButtonsRow__WEBPACK_IMPORTED_MODULE_2__["default"].defaultProps);

TableInlineEditHeaderRow.propTypes = {
  /** Function that determines whether values or edit components should be rendered */
  isEditing: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Confirm edit callback */
  onConfirm: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Cancel edit callback */
  onCancel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Row cells */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node), prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node]),
  /** Message text inputs for i18n */
  messages: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    confirmButtonLabel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    cancelButtonLabel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
  })
};

/* harmony default export */ __webpack_exports__["default"] = (TableInlineEditHeaderRow);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/TableInlineEditRow.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/TableInlineEditRow.js ***!
  \***************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _TableConfirmButtonsRow__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TableConfirmButtonsRow */ "./node_modules/patternfly-react/dist/esm/components/Table/TableConfirmButtonsRow.js");
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; };





var TableInlineEditRow = function TableInlineEditRow(props) {
  var buttonsPosition = function buttonsPosition(window, rowDimensions) {
    var position = {};

    if (props.last) {
      position.bottom = window.height - rowDimensions.top - 1;
    } else {
      position.top = rowDimensions.bottom - 1;
    }
    position.right = window.width - rowDimensions.right + 10;
    return position;
  };

  var buttonsClassName = props.last ? 'top' : 'bottom';

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_TableConfirmButtonsRow__WEBPACK_IMPORTED_MODULE_2__["default"], _extends({}, props, { buttonsPosition: buttonsPosition, buttonsClassName: buttonsClassName }));
};

TableInlineEditRow.shouldComponentUpdate = true;

TableInlineEditRow.defaultProps = _extends({}, _TableConfirmButtonsRow__WEBPACK_IMPORTED_MODULE_2__["default"].defaultProps, {
  last: false
});

TableInlineEditRow.propTypes = {
  /** Function that determines whether values or edit components should be rendered */
  isEditing: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Confirm edit callback */
  onConfirm: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Cancel edit callback */
  onCancel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Flag to indicate last row */
  last: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Row cells */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node), prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node]),
  /** Message text inputs for i18n */
  messages: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    confirmButtonLabel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    cancelButtonLabel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
  })
};

/* harmony default export */ __webpack_exports__["default"] = (TableInlineEditRow);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/TablePfProvider.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/TablePfProvider.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Table__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Table */ "./node_modules/patternfly-react/dist/esm/components/Table/Table.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





/**
 * TablePfProvider component for Patternfly React
 */
var TablePfProvider = function TablePfProvider(_ref) {
  var children = _ref.children,
      className = _ref.className,
      dataTable = _ref.dataTable,
      striped = _ref.striped,
      bordered = _ref.bordered,
      inlineEdit = _ref.inlineEdit,
      hover = _ref.hover,
      condensed = _ref.condensed,
      components = _ref.components,
      props = _objectWithoutProperties(_ref, ['children', 'className', 'dataTable', 'striped', 'bordered', 'inlineEdit', 'hover', 'condensed', 'components']);

  var headerCell = function headerCell(cellProps) {
    return cellProps.children;
  };
  var tableCell = function tableCell(cellProps) {
    return cellProps.children;
  };
  var tableRow = function tableRow(rowProps) {
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'tr',
      rowProps,
      rowProps.children
    );
  };
  tableRow.shouldComponentUpdate = true;

  components.header = _extends({ cell: headerCell }, components.header || {});
  components.body = _extends({ cell: tableCell, row: tableRow }, components.body || {});

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()({
    table: true,
    dataTable: dataTable,
    'table-striped': striped,
    'table-bordered': bordered,
    'table-hover': hover,
    'table-condensed': condensed,
    'pf-table-inline-edit': inlineEdit
  }, className);
  var attributes = {};
  if (dataTable) {
    attributes.role = 'grid';
  }

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _Table__WEBPACK_IMPORTED_MODULE_3__["Table"].Provider,
    _extends({ className: classes, renderers: components }, props, attributes),
    children
  );
};
TablePfProvider.propTypes = {
  /** Children nodes  */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** apply dataTable class */
  dataTable: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** apply Striped class */
  striped: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** apply Bordered class */
  bordered: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** apply Hover class */
  hover: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** apply Condensed class */
  condensed: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** apply pf-table-inline-edit class */
  inlineEdit: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** reactabular components override */
  components: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object
};
TablePfProvider.defaultProps = {
  children: null,
  className: '',
  dataTable: false,
  striped: false,
  bordered: false,
  hover: false,
  condensed: false,
  inlineEdit: false,
  components: {}
};
/* harmony default export */ __webpack_exports__["default"] = (TablePfProvider);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/TableSelectionCell.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/TableSelectionCell.js ***!
  \***************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





/**
 * TableSelectionCell component for Patternfly React
 */
var TableSelectionCell = function TableSelectionCell(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('table-view-pf-select', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'td',
    _extends({ className: classes }, props),
    children
  );
};
TableSelectionCell.propTypes = {
  /** Children nodes  */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
TableSelectionCell.defaultProps = {
  children: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (TableSelectionCell);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/TableSelectionHeading.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/TableSelectionHeading.js ***!
  \******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





/**
 * TableSelectionHeading component for Patternfly React
 */
var TableSelectionHeading = function TableSelectionHeading(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('table-view-pf-select', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'th',
    _extends({ className: classes }, props),
    children
  );
};
TableSelectionHeading.propTypes = {
  /** Children nodes  */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
TableSelectionHeading.defaultProps = {
  children: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (TableSelectionHeading);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/index.js":
/*!**************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/index.js ***!
  \**************************************************************************/
/*! exports provided: actionHeaderCellFormatter, customHeaderFormattersDefinition, defaultSortingOrder, selectionCellFormatter, selectionHeaderCellFormatter, sortableHeaderCellFormatter, tableCellFormatter, inlineEditFormatterFactory, Table, TableActions, TableButton, TableCell, TableCheckbox, TableDropdownKebab, TableHeading, TablePfProvider, TableInlineEditRow, TableInlineEditHeaderRow, TableSelectionCell, TableSelectionHeading, TABLE_ALIGN, TABLE_ALIGNMENT_TYPES, TABLE_SORT_DIRECTION, TABLE_SORT_DIRECTIONS */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Formatters_actionHeaderCellFormatter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Formatters/actionHeaderCellFormatter */ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/actionHeaderCellFormatter.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "actionHeaderCellFormatter", function() { return _Formatters_actionHeaderCellFormatter__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _Formatters_customHeaderFormattersDefinition__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Formatters/customHeaderFormattersDefinition */ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/customHeaderFormattersDefinition.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "customHeaderFormattersDefinition", function() { return _Formatters_customHeaderFormattersDefinition__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _Formatters_selectionCellFormatter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Formatters/selectionCellFormatter */ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/selectionCellFormatter.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selectionCellFormatter", function() { return _Formatters_selectionCellFormatter__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _Formatters_selectionHeaderCellFormatter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Formatters/selectionHeaderCellFormatter */ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/selectionHeaderCellFormatter.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selectionHeaderCellFormatter", function() { return _Formatters_selectionHeaderCellFormatter__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _Formatters_sortableHeaderCellFormatter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Formatters/sortableHeaderCellFormatter */ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/sortableHeaderCellFormatter.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sortableHeaderCellFormatter", function() { return _Formatters_sortableHeaderCellFormatter__WEBPACK_IMPORTED_MODULE_4__["default"]; });

/* harmony import */ var _Formatters_tableCellFormatter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Formatters/tableCellFormatter */ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/tableCellFormatter.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tableCellFormatter", function() { return _Formatters_tableCellFormatter__WEBPACK_IMPORTED_MODULE_5__["default"]; });

/* harmony import */ var _Formatters_inlineEditFormatterFactory__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Formatters/inlineEditFormatterFactory */ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/inlineEditFormatterFactory.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "inlineEditFormatterFactory", function() { return _Formatters_inlineEditFormatterFactory__WEBPACK_IMPORTED_MODULE_6__["default"]; });

/* harmony import */ var _Table__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Table */ "./node_modules/patternfly-react/dist/esm/components/Table/Table.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Table", function() { return _Table__WEBPACK_IMPORTED_MODULE_7__["Table"]; });

/* harmony import */ var _TableConstants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./TableConstants */ "./node_modules/patternfly-react/dist/esm/components/Table/TableConstants.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultSortingOrder", function() { return _TableConstants__WEBPACK_IMPORTED_MODULE_8__["defaultSortingOrder"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TABLE_ALIGN", function() { return _TableConstants__WEBPACK_IMPORTED_MODULE_8__["TABLE_ALIGN"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TABLE_ALIGNMENT_TYPES", function() { return _TableConstants__WEBPACK_IMPORTED_MODULE_8__["TABLE_ALIGNMENT_TYPES"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TABLE_SORT_DIRECTION", function() { return _TableConstants__WEBPACK_IMPORTED_MODULE_8__["TABLE_SORT_DIRECTION"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TABLE_SORT_DIRECTIONS", function() { return _TableConstants__WEBPACK_IMPORTED_MODULE_8__["TABLE_SORT_DIRECTIONS"]; });

/* harmony import */ var _TableActions__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./TableActions */ "./node_modules/patternfly-react/dist/esm/components/Table/TableActions.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableActions", function() { return _TableActions__WEBPACK_IMPORTED_MODULE_9__["default"]; });

/* harmony import */ var _TableButton__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./TableButton */ "./node_modules/patternfly-react/dist/esm/components/Table/TableButton.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableButton", function() { return _TableButton__WEBPACK_IMPORTED_MODULE_10__["default"]; });

/* harmony import */ var _TableCell__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./TableCell */ "./node_modules/patternfly-react/dist/esm/components/Table/TableCell.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableCell", function() { return _TableCell__WEBPACK_IMPORTED_MODULE_11__["default"]; });

/* harmony import */ var _TableCheckbox__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./TableCheckbox */ "./node_modules/patternfly-react/dist/esm/components/Table/TableCheckbox.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableCheckbox", function() { return _TableCheckbox__WEBPACK_IMPORTED_MODULE_12__["default"]; });

/* harmony import */ var _TableDropdownKebab__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./TableDropdownKebab */ "./node_modules/patternfly-react/dist/esm/components/Table/TableDropdownKebab.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableDropdownKebab", function() { return _TableDropdownKebab__WEBPACK_IMPORTED_MODULE_13__["default"]; });

/* harmony import */ var _TableHeading__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./TableHeading */ "./node_modules/patternfly-react/dist/esm/components/Table/TableHeading.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableHeading", function() { return _TableHeading__WEBPACK_IMPORTED_MODULE_14__["default"]; });

/* harmony import */ var _TableInlineEditRow__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./TableInlineEditRow */ "./node_modules/patternfly-react/dist/esm/components/Table/TableInlineEditRow.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableInlineEditRow", function() { return _TableInlineEditRow__WEBPACK_IMPORTED_MODULE_15__["default"]; });

/* harmony import */ var _TableInlineEditHeaderRow__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./TableInlineEditHeaderRow */ "./node_modules/patternfly-react/dist/esm/components/Table/TableInlineEditHeaderRow.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableInlineEditHeaderRow", function() { return _TableInlineEditHeaderRow__WEBPACK_IMPORTED_MODULE_16__["default"]; });

/* harmony import */ var _TablePfProvider__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./TablePfProvider */ "./node_modules/patternfly-react/dist/esm/components/Table/TablePfProvider.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TablePfProvider", function() { return _TablePfProvider__WEBPACK_IMPORTED_MODULE_17__["default"]; });

/* harmony import */ var _TableSelectionCell__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./TableSelectionCell */ "./node_modules/patternfly-react/dist/esm/components/Table/TableSelectionCell.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableSelectionCell", function() { return _TableSelectionCell__WEBPACK_IMPORTED_MODULE_18__["default"]; });

/* harmony import */ var _TableSelectionHeading__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./TableSelectionHeading */ "./node_modules/patternfly-react/dist/esm/components/Table/TableSelectionHeading.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableSelectionHeading", function() { return _TableSelectionHeading__WEBPACK_IMPORTED_MODULE_19__["default"]; });

























/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Tabs/Tab.js":
/*!***********************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Tabs/Tab.js ***!
  \***********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Tab__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Tab */ "./node_modules/react-bootstrap/es/Tab.js");



/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Tab__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Tabs/TabContainer.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Tabs/TabContainer.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_TabContainer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/TabContainer */ "./node_modules/react-bootstrap/es/TabContainer.js");



/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_TabContainer__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Tabs/TabContent.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Tabs/TabContent.js ***!
  \******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_TabContent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/TabContent */ "./node_modules/react-bootstrap/es/TabContent.js");



/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_TabContent__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Tabs/TabPane.js":
/*!***************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Tabs/TabPane.js ***!
  \***************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_TabPane__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/TabPane */ "./node_modules/react-bootstrap/es/TabPane.js");



/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_TabPane__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Tabs/Tabs.js":
/*!************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Tabs/Tabs.js ***!
  \************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Tabs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Tabs */ "./node_modules/react-bootstrap/es/Tabs.js");
/* harmony import */ var _TabContainer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TabContainer */ "./node_modules/patternfly-react/dist/esm/components/Tabs/TabContainer.js");
/* harmony import */ var _TabContent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TabContent */ "./node_modules/patternfly-react/dist/esm/components/Tabs/TabContent.js");
/* harmony import */ var _TabPane__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TabPane */ "./node_modules/patternfly-react/dist/esm/components/Tabs/TabPane.js");
/* harmony import */ var _Tab__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Tab */ "./node_modules/patternfly-react/dist/esm/components/Tabs/Tab.js");







react_bootstrap_es_Tabs__WEBPACK_IMPORTED_MODULE_0__["default"].Tab = _Tab__WEBPACK_IMPORTED_MODULE_4__["default"];
react_bootstrap_es_Tabs__WEBPACK_IMPORTED_MODULE_0__["default"].TabContainer = _TabContainer__WEBPACK_IMPORTED_MODULE_1__["default"];
react_bootstrap_es_Tabs__WEBPACK_IMPORTED_MODULE_0__["default"].TabContent = _TabContent__WEBPACK_IMPORTED_MODULE_2__["default"];
react_bootstrap_es_Tabs__WEBPACK_IMPORTED_MODULE_0__["default"].TabPane = _TabPane__WEBPACK_IMPORTED_MODULE_3__["default"];

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Tabs__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Tabs/index.js":
/*!*************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Tabs/index.js ***!
  \*************************************************************************/
/*! exports provided: TabContainer, TabContent, TabPane, Tabs, Tab */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _TabContainer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TabContainer */ "./node_modules/patternfly-react/dist/esm/components/Tabs/TabContainer.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabContainer", function() { return _TabContainer__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _TabContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TabContent */ "./node_modules/patternfly-react/dist/esm/components/Tabs/TabContent.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabContent", function() { return _TabContent__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _TabPane__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TabPane */ "./node_modules/patternfly-react/dist/esm/components/Tabs/TabPane.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabPane", function() { return _TabPane__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _Tabs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Tabs */ "./node_modules/patternfly-react/dist/esm/components/Tabs/Tabs.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tabs", function() { return _Tabs__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _Tab__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Tab */ "./node_modules/patternfly-react/dist/esm/components/Tabs/Tab.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tab", function() { return _Tab__WEBPACK_IMPORTED_MODULE_4__["default"]; });







/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ToastNotification/TimedToastNotification.js":
/*!*******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ToastNotification/TimedToastNotification.js ***!
  \*******************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _common_Timer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../common/Timer */ "./node_modules/patternfly-react/dist/esm/common/Timer.js");
/* harmony import */ var _ToastNotification__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ToastNotification */ "./node_modules/patternfly-react/dist/esm/components/ToastNotification/ToastNotification.js");
/* harmony import */ var _Alert__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Alert */ "./node_modules/patternfly-react/dist/esm/components/Alert/index.js");
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; };

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; }; }();

function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }







/**
 * TimedToastNotification Component for Patternfly React
 */

var TimedToastNotification = function (_React$Component) {
  _inherits(TimedToastNotification, _React$Component);

  function TimedToastNotification() {
    var _ref;

    var _temp, _this, _ret;

    _classCallCheck(this, TimedToastNotification);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = TimedToastNotification.__proto__ || Object.getPrototypeOf(TimedToastNotification)).call.apply(_ref, [this].concat(args))), _this), _this.onMouseEnter = function () {
      var onMouseEnter = _this.props.onMouseEnter;

      onMouseEnter && onMouseEnter();
    }, _this.onMouseLeave = function () {
      var onMouseLeave = _this.props.onMouseLeave;

      onMouseLeave && onMouseLeave();
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  _createClass(TimedToastNotification, [{
    key: 'componentDidMount',
    value: function componentDidMount() {
      var _props = this.props,
          paused = _props.paused,
          persistent = _props.persistent,
          onDismiss = _props.onDismiss,
          timerdelay = _props.timerdelay;


      if (!persistent) {
        this.timer = new _common_Timer__WEBPACK_IMPORTED_MODULE_2__["default"](onDismiss, timerdelay);
        this.timer.startTimer();
      }

      /** if we are paused on mount, then clear the timer
       * after having initialized with the correct delay */
      if (paused) {
        this.timer && this.timer.clearTimer();
      }
    }
  }, {
    key: 'componentWillReceiveProps',
    value: function componentWillReceiveProps(nextProps) {
      /**
       * If paused prop changes, update our timer
       */
      if (nextProps.paused !== this.props.paused) {
        if (nextProps.paused) {
          this.timer && this.timer.clearTimer();
        } else {
          this.timer && this.timer.startTimer();
        }
      }
    }
  }, {
    key: 'componentWillUnmount',
    value: function componentWillUnmount() {
      this.timer && this.timer.clearTimer();
    }
  }, {
    key: 'render',
    value: function render() {
      var _props2 = this.props,
          children = _props2.children,
          className = _props2.className,
          type = _props2.type,
          onDismiss = _props2.onDismiss;
      var onMouseEnter = this.onMouseEnter,
          onMouseLeave = this.onMouseLeave;


      var toastProps = {
        className: className,
        type: type,
        onDismiss: onDismiss,
        onMouseEnter: onMouseEnter,
        onMouseLeave: onMouseLeave
      };

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _ToastNotification__WEBPACK_IMPORTED_MODULE_3__["default"],
        toastProps,
        children
      );
    }
  }]);

  return TimedToastNotification;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

// WARNING: This should be kept consistent with ToastNotification.propTypes


TimedToastNotification.propTypes = _extends({}, _Alert__WEBPACK_IMPORTED_MODULE_4__["Alert"].propTypes, {
  /** pauses notification from dismissing */
  paused: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** persistent keeps the notification up endlessly until closed */
  persistent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** timer delay until dismiss */
  timerdelay: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  /** onMouseEnter callback */
  onMouseEnter: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** onMouseLeave callback */
  onMouseLeave: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
});
// WARNING: This should be kept consistent with ToastNotification.defaultProps
TimedToastNotification.defaultProps = _extends({}, _Alert__WEBPACK_IMPORTED_MODULE_4__["Alert"].defaultProps, {
  paused: false,
  timerdelay: 8000
});

TimedToastNotification.TOAST_NOTIFICATION_TYPES = [].concat(_toConsumableArray(_Alert__WEBPACK_IMPORTED_MODULE_4__["Alert"].ALERT_TYPES));

TimedToastNotification.displayName = 'TimedToastNotification';

/* harmony default export */ __webpack_exports__["default"] = (TimedToastNotification);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ToastNotification/ToastNotification.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ToastNotification/ToastNotification.js ***!
  \**************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Alert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Alert */ "./node_modules/patternfly-react/dist/esm/components/Alert/index.js");
/* harmony import */ var _TimedToastNotification__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TimedToastNotification */ "./node_modules/patternfly-react/dist/esm/components/ToastNotification/TimedToastNotification.js");
/* harmony import */ var _ToastNotificationList__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ToastNotificationList */ "./node_modules/patternfly-react/dist/esm/components/ToastNotification/ToastNotificationList.js");
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; };

function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }







/**
 * ToastNotification Component for Patternfly React
 */
var ToastNotification = function ToastNotification(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var notificationClasses = classnames__WEBPACK_IMPORTED_MODULE_0___default()('toast-pf', className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    _Alert__WEBPACK_IMPORTED_MODULE_2__["Alert"],
    _extends({ className: notificationClasses }, props),
    children
  );
};

// WARNING: If you change propTypes OR defaultProps  you MUST also change TimedToastNotification
ToastNotification.propTypes = _extends({}, _Alert__WEBPACK_IMPORTED_MODULE_2__["Alert"].propTypes);
ToastNotification.defaultProps = _extends({}, _Alert__WEBPACK_IMPORTED_MODULE_2__["Alert"].defaultProps);

// WARNING: If you change TOAST_NOTIFICATION_TYPES you MUST also change TimedToastNotification
ToastNotification.TOAST_NOTIFICATION_TYPES = [].concat(_toConsumableArray(_Alert__WEBPACK_IMPORTED_MODULE_2__["Alert"].ALERT_TYPES));
ToastNotification.Timed = _TimedToastNotification__WEBPACK_IMPORTED_MODULE_3__["default"];
ToastNotification.List = _ToastNotificationList__WEBPACK_IMPORTED_MODULE_4__["default"];

/* harmony default export */ __webpack_exports__["default"] = (ToastNotification);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ToastNotification/ToastNotificationList.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ToastNotification/ToastNotificationList.js ***!
  \******************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _TimedToastNotification__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TimedToastNotification */ "./node_modules/patternfly-react/dist/esm/components/ToastNotification/TimedToastNotification.js");
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; }; }();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }







/**
 * ToastNotificationList Component for Patternfly React
 */

var ToastNotificationList = function (_React$Component) {
  _inherits(ToastNotificationList, _React$Component);

  function ToastNotificationList() {
    var _ref;

    var _temp, _this, _ret;

    _classCallCheck(this, ToastNotificationList);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ToastNotificationList.__proto__ || Object.getPrototypeOf(ToastNotificationList)).call.apply(_ref, [this].concat(args))), _this), _this.state = { paused: false }, _this.onMouseEnter = function () {
      _this.setState({ paused: true });
      var onMouseEnter = _this.props.onMouseEnter;

      onMouseEnter();
    }, _this.onMouseLeave = function () {
      _this.setState({ paused: false });
      var onMouseLeave = _this.props.onMouseLeave;

      onMouseLeave();
    }, _this.onMouseOver = function () {
      _this.setState({ paused: true });
      var onMouseOver = _this.props.onMouseOver;

      onMouseOver();
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  _createClass(ToastNotificationList, [{
    key: 'componentWillReceiveProps',
    value: function componentWillReceiveProps() {
      this.setState({ paused: false });
    }
  }, {
    key: 'renderChildren',
    value: function renderChildren() {
      var paused = this.state.paused;

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.map(this.props.children, function (child) {
        if (Object(_common_helpers__WEBPACK_IMPORTED_MODULE_3__["hasDisplayName"])(child, _TimedToastNotification__WEBPACK_IMPORTED_MODULE_4__["default"].displayName)) {
          /**
           * If any of the notifications are hovered, pause
           * all child notifications from dismissing
           */
          return react__WEBPACK_IMPORTED_MODULE_0___default.a.cloneElement(child, {
            paused: paused
          });
        }
        return child;
      });
    }
  }, {
    key: 'render',
    value: function render() {
      var className = this.props.className;

      var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('toast-notifications-list-pf', className);

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'div',
        {
          onMouseEnter: this.onMouseEnter,
          onMouseLeave: this.onMouseLeave,
          onMouseOver: this.onMouseOver,
          onFocus: this.onMouseOver,
          className: classes
        },
        this.renderChildren()
      );
    }
  }]);

  return ToastNotificationList;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

ToastNotificationList.propTypes = {
  /** additional notification list classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** onMouseEnter callback */
  onMouseEnter: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** onMouseLeave callback */
  onMouseLeave: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** onMouseOver callback */
  onMouseOver: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** children nodes  */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
ToastNotificationList.defaultProps = {
  className: '',
  onMouseEnter: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  onMouseLeave: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  onMouseOver: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  children: null
};
/* harmony default export */ __webpack_exports__["default"] = (ToastNotificationList);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ToastNotification/index.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ToastNotification/index.js ***!
  \**************************************************************************************/
/*! exports provided: ToastNotification, TimedToastNotification, ToastNotificationList */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _ToastNotification__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ToastNotification */ "./node_modules/patternfly-react/dist/esm/components/ToastNotification/ToastNotification.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToastNotification", function() { return _ToastNotification__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _TimedToastNotification__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TimedToastNotification */ "./node_modules/patternfly-react/dist/esm/components/ToastNotification/TimedToastNotification.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TimedToastNotification", function() { return _TimedToastNotification__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _ToastNotificationList__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ToastNotificationList */ "./node_modules/patternfly-react/dist/esm/components/ToastNotification/ToastNotificationList.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToastNotificationList", function() { return _ToastNotificationList__WEBPACK_IMPORTED_MODULE_2__["default"]; });





/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Toolbar/Toolbar.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Toolbar/Toolbar.js ***!
  \******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var recompose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! recompose */ "./node_modules/patternfly-react/node_modules/recompose/es/Recompose.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _Grid__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Grid */ "./node_modules/patternfly-react/dist/esm/components/Grid/index.js");
/* harmony import */ var _ToolbarResults__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ToolbarResults */ "./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarResults.js");
/* harmony import */ var _ToolbarRightContent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ToolbarRightContent */ "./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarRightContent.js");
/* harmony import */ var _ToolbarFind__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ToolbarFind */ "./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarFind.js");
/* harmony import */ var _ToolbarViewSelector__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ToolbarViewSelector */ "./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarViewSelector.js");
/* harmony import */ var _ToolbarConstants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./ToolbarConstants */ "./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarConstants.js");
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }













var ContextualToolbar = function ContextualToolbar(_ref) {
  var children = _ref.children,
      className = _ref.className,
      preventSubmit = _ref.preventSubmit,
      props = _objectWithoutProperties(_ref, ['children', 'className', 'preventSubmit']);

  var toolbarChildren = Object(_common_helpers__WEBPACK_IMPORTED_MODULE_3__["filterChildren"])(children, function (child) {
    return !Object(_common_helpers__WEBPACK_IMPORTED_MODULE_3__["hasDisplayName"])(child, _ToolbarResults__WEBPACK_IMPORTED_MODULE_5__["default"].displayName);
  });
  var resultsChildren = Object(_common_helpers__WEBPACK_IMPORTED_MODULE_3__["filterChildren"])(children, function (child) {
    return Object(_common_helpers__WEBPACK_IMPORTED_MODULE_3__["hasDisplayName"])(child, _ToolbarResults__WEBPACK_IMPORTED_MODULE_5__["default"].displayName);
  });

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _ToolbarConstants__WEBPACK_IMPORTED_MODULE_9__["ToolbarContextProvider"],
    { isDescendantOfToolbar: true },
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _Grid__WEBPACK_IMPORTED_MODULE_4__["Grid"],
      { fluid: true, className: className },
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _Grid__WEBPACK_IMPORTED_MODULE_4__["Grid"].Row,
        { className: 'toolbar-pf' },
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          _Grid__WEBPACK_IMPORTED_MODULE_4__["Grid"].Col,
          { sm: 12 },
          react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
            'form',
            {
              className: 'toolbar-pf-actions',
              onSubmit: function onSubmit(e) {
                if (preventSubmit) {
                  e.preventDefault();
                }
              }
            },
            toolbarChildren
          ),
          resultsChildren
        )
      )
    )
  );
};

ContextualToolbar.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Prevent submission of toolbar children internal form */
  preventSubmit: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};

ContextualToolbar.defaultProps = {
  children: null,
  className: '',
  preventSubmit: false
};

var Toolbar = Object(recompose__WEBPACK_IMPORTED_MODULE_2__["withContext"])(_ToolbarConstants__WEBPACK_IMPORTED_MODULE_9__["toolbarContextTypes"], _ToolbarConstants__WEBPACK_IMPORTED_MODULE_9__["getToolbarContext"])(ContextualToolbar);

Toolbar.Results = _ToolbarResults__WEBPACK_IMPORTED_MODULE_5__["default"];
Toolbar.RightContent = _ToolbarRightContent__WEBPACK_IMPORTED_MODULE_6__["default"];
Toolbar.Find = _ToolbarFind__WEBPACK_IMPORTED_MODULE_7__["default"];
Toolbar.ViewSelector = _ToolbarViewSelector__WEBPACK_IMPORTED_MODULE_8__["default"];

/* harmony default export */ __webpack_exports__["default"] = (Toolbar);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarConstants.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarConstants.js ***!
  \***************************************************************************************/
/*! exports provided: toolbarContextTypes, getToolbarContext, ToolbarContextProvider */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toolbarContextTypes", function() { return toolbarContextTypes; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getToolbarContext", function() { return getToolbarContext; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ToolbarContextProvider", function() { return ToolbarContextProvider; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var recompose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! recompose */ "./node_modules/patternfly-react/node_modules/recompose/es/Recompose.js");




var toolbarContextTypes = { isDescendantOfToolbar: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool };

var getToolbarContext = function getToolbarContext(props) {
  return {
    isDescendantOfToolbar: props.isDescendantOfToolbar
  };
};

var provideToolbarContext = Object(recompose__WEBPACK_IMPORTED_MODULE_2__["withContext"])(toolbarContextTypes, getToolbarContext);

var ToolbarContextProvider = provideToolbarContext(function (props) {
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,
    null,
    props.children
  );
});



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarFind.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarFind.js ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
/* harmony import */ var _Form__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Form */ "./node_modules/patternfly-react/dist/esm/components/Form/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; }; }();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }









var ToolbarFind = function (_React$Component) {
  _inherits(ToolbarFind, _React$Component);

  function ToolbarFind() {
    var _ref;

    var _temp, _this, _ret;

    _classCallCheck(this, ToolbarFind);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ToolbarFind.__proto__ || Object.getPrototypeOf(ToolbarFind)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
      dropdownShown: false,
      currentValue: ''
    }, _this.onValueKeyPress = function (keyEvent) {
      var onEnter = _this.props.onEnter;
      var currentValue = _this.state.currentValue;


      if (keyEvent.key === 'Enter' && onEnter) {
        onEnter(currentValue);
      }
    }, _this.handleFindNext = function () {
      var currentValue = _this.state.currentValue;
      var onFindNext = _this.props.onFindNext;


      if (onFindNext) {
        onFindNext(currentValue);
      }
    }, _this.handleFindPrevious = function () {
      var currentValue = _this.state.currentValue;
      var onFindPrevious = _this.props.onFindPrevious;


      if (onFindPrevious) {
        onFindPrevious(currentValue);
      }
    }, _this.handleValueChange = function (event) {
      var onChange = _this.props.onChange;


      _this.setState({ currentValue: event.target.value });

      if (onChange) {
        onChange(event.target.value);
      }
    }, _this.hideDropdown = function () {
      _this.setState({ dropdownShown: false });
    }, _this.toggleDropdownShown = function () {
      _this.setState(function (prevState) {
        return { dropdownShown: !prevState.dropdownShown };
      });
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  _createClass(ToolbarFind, [{
    key: 'renderCounts',
    value: function renderCounts() {
      var currentValue = this.state.currentValue;
      var _props = this.props,
          currentIndex = _props.currentIndex,
          totalCount = _props.totalCount;


      if (currentValue && currentValue !== '') {
        return [react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          'span',
          { className: 'find-pf-nums', key: 'findCountText' },
          currentIndex || 0,
          ' of ',
          totalCount
        ), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          _Button__WEBPACK_IMPORTED_MODULE_3__["Button"],
          { bsStyle: 'link', key: 'findPrevious', onClick: this.handleFindPrevious },
          react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_4__["Icon"], { type: 'fa', name: 'angle-up' })
        ), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          _Button__WEBPACK_IMPORTED_MODULE_3__["Button"],
          { bsStyle: 'link', key: 'findNext', onClick: this.handleFindNext },
          react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_4__["Icon"], { type: 'fa', name: 'angle-down' })
        )];
      }
      return null;
    }
  }, {
    key: 'render',
    value: function render() {
      var _this2 = this;

      var _state = this.state,
          dropdownShown = _state.dropdownShown,
          currentValue = _state.currentValue;
      var _props2 = this.props,
          className = _props2.className,
          placeholder = _props2.placeholder;


      var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('form-group toolbar-pf-find', className);

      var dropdownClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()('find-pf-dropdown-container', {
        show: dropdownShown
      });

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'div',
        { className: classes },
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          _Button__WEBPACK_IMPORTED_MODULE_3__["Button"],
          { bsStyle: 'link', className: 'btn-find', onClick: this.toggleDropdownShown },
          react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_4__["Icon"], { type: 'fa', name: 'search' })
        ),
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          'div',
          { className: dropdownClasses },
          react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Form__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
            type: 'text',
            id: 'find',
            value: currentValue,
            placeholder: placeholder,
            onKeyPress: function onKeyPress(e) {
              return _this2.onValueKeyPress(e);
            },
            onChange: this.handleValueChange
          }),
          react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
            'div',
            { className: 'find-pf-buttons' },
            this.renderCounts(),
            react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
              _Button__WEBPACK_IMPORTED_MODULE_3__["Button"],
              { bsStyle: 'link', className: 'btn-find-close', onClick: this.hideDropdown },
              react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_4__["Icon"], { type: 'pf', name: 'close' })
            )
          )
        )
      );
    }
  }]);

  return ToolbarFind;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

ToolbarFind.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** index of current item */
  currentIndex: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  /** total number of items */
  totalCount: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  /** Placeholder text when empty */
  placeholder: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Callback function when user hits the enter key */
  onEnter: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Callback function when the find value changes */
  onChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Callback function when the find next is selected */
  onFindNext: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Callback function when the find previous is selected */
  onFindPrevious: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};

ToolbarFind.defaultProps = {
  className: '',
  currentIndex: 0,
  placeholder: '',
  onEnter: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
  onChange: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
  onFindNext: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
  onFindPrevious: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"]
};

/* harmony default export */ __webpack_exports__["default"] = (ToolbarFind);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarResults.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarResults.js ***!
  \*************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Grid__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Grid */ "./node_modules/patternfly-react/dist/esm/components/Grid/index.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }






var ToolbarResults = function ToolbarResults(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('toolbar-pf-results', className);
  if (!children) {
    return null;
  }
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    _Grid__WEBPACK_IMPORTED_MODULE_3__["Row"],
    _extends({ className: classes }, props),
    react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
      _Grid__WEBPACK_IMPORTED_MODULE_3__["Col"],
      { sm: 12 },
      children
    )
  );
};

ToolbarResults.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};

ToolbarResults.defaultProps = {
  children: null,
  className: ''
};

ToolbarResults.displayName = 'ToolbarResults';

/* harmony default export */ __webpack_exports__["default"] = (ToolbarResults);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarRightContent.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarRightContent.js ***!
  \******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var ToolbarRightContent = function ToolbarRightContent(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('toolbar-pf-action-right', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    _extends({ className: classes }, props),
    children
  );
};

ToolbarRightContent.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
ToolbarRightContent.defaultProps = {
  children: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (ToolbarRightContent);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarViewSelector.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarViewSelector.js ***!
  \******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var ToolbarViewSelector = function ToolbarViewSelector(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('form-group toolbar-pf-view-selector', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    _extends({ className: classes }, props),
    children
  );
};

ToolbarViewSelector.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};

ToolbarViewSelector.defaultProps = {
  children: null,
  className: ''
};

/* harmony default export */ __webpack_exports__["default"] = (ToolbarViewSelector);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Toolbar/index.js":
/*!****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Toolbar/index.js ***!
  \****************************************************************************/
/*! exports provided: Toolbar, ToolbarResults, ToolbarRightContent, ToolbarFind, ToolbarViewSelector */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Toolbar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Toolbar */ "./node_modules/patternfly-react/dist/esm/components/Toolbar/Toolbar.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Toolbar", function() { return _Toolbar__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _ToolbarResults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ToolbarResults */ "./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarResults.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToolbarResults", function() { return _ToolbarResults__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _ToolbarRightContent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ToolbarRightContent */ "./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarRightContent.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToolbarRightContent", function() { return _ToolbarRightContent__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _ToolbarFind__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ToolbarFind */ "./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarFind.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToolbarFind", function() { return _ToolbarFind__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _ToolbarViewSelector__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ToolbarViewSelector */ "./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarViewSelector.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToolbarViewSelector", function() { return _ToolbarViewSelector__WEBPACK_IMPORTED_MODULE_4__["default"]; });









/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Tooltip/Tooltip.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Tooltip/Tooltip.js ***!
  \******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Tooltip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Tooltip */ "./node_modules/react-bootstrap/es/Tooltip.js");



/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Tooltip__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Tooltip/index.js":
/*!****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Tooltip/index.js ***!
  \****************************************************************************/
/*! exports provided: Tooltip */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Tooltip */ "./node_modules/patternfly-react/dist/esm/components/Tooltip/Tooltip.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tooltip", function() { return _Tooltip__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeView.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/TreeView/TreeView.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _TreeViewNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TreeViewNode */ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewNode.js");
/* harmony import */ var _TreeViewExpand__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./TreeViewExpand */ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewExpand.js");
/* harmony import */ var _TreeViewIcon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./TreeViewIcon */ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewIcon.js");
/* harmony import */ var _TreeViewIndents__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./TreeViewIndents */ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewIndents.js");
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();

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; }; }();

function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }











var TreeView = function (_React$Component) {
  _inherits(TreeView, _React$Component);

  function TreeView() {
    var _ref;

    var _temp, _this, _ret;

    _classCallCheck(this, TreeView);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = TreeView.__proto__ || Object.getPrototypeOf(TreeView)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
      focusedNodeId: '',
      expandSiblings: ''
    }, _this.onFocus = function (node) {
      _this.setState(function () {
        return { focusedNodeId: node.dataset.id };
      });
    }, _this.onKeyDown = function (event) {
      var nodes = _this.getVisibleNodes([].concat(_toConsumableArray(_this.treeRef.current.getElementsByTagName('li'))));
      var currentNodePosition = nodes.findIndex(function (element) {
        return element.dataset.id === _this.state.focusedNodeId;
      });

      if (event.key === _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEYS"].ARROW_DOWN && currentNodePosition !== nodes.length - 1) {
        nodes[currentNodePosition + 1].focus();
      } else if (event.key === _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEYS"].ARROW_UP && currentNodePosition !== 0) {
        nodes[currentNodePosition - 1].focus();
      } else if (event.key === _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEYS"].HOME) {
        var _nodes = _slicedToArray(nodes, 1),
            firstNode = _nodes[0];

        firstNode.focus();
      } else if (event.key === _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEYS"].END) {
        var _nodes$slice = nodes.slice(-1),
            _nodes$slice2 = _slicedToArray(_nodes$slice, 1),
            lastVisibleNode = _nodes$slice2[0];

        lastVisibleNode.focus();
      }
    }, _this.onKeyPress = function (event) {
      var nodes = _this.getVisibleNodes([].concat(_toConsumableArray(_this.treeRef.current.getElementsByTagName('li'))));
      var currentNodePosition = nodes.findIndex(function (element) {
        return element.dataset.id === _this.state.focusedNodeId;
      });
      var key = event.key;


      if (/[a-zA-Z]{1}/.test(key) && key.length === 1) {
        var searchableNodes = nodes.slice(currentNodePosition + 1);
        var firstMatchingNode = searchableNodes.find(function (node) {
          var nodeText = node.querySelector('.treeitem-row').textContent;

          var _nodeText = _slicedToArray(nodeText, 1),
              firstLetter = _nodeText[0];

          return firstLetter === key;
        });
        if (firstMatchingNode) {
          firstMatchingNode.focus();
        } else {
          var _nodes2 = _slicedToArray(nodes, 1),
              firstNode = _nodes2[0];

          firstNode.focus();
        }
      }

      if (key === '*') {
        _this.setState(function (prevState) {
          return { expandSiblings: prevState.focusedNodeId };
        });
      }
    }, _this.getVisibleNodes = function (nodes) {
      return nodes.filter(function (node) {
        return !node.className.match(/node-hidden/);
      });
    }, _this.clearExpandSiblings = function () {
      _this.setState(function () {
        return { expandSiblings: '' };
      });
    }, _this.treeRef = react__WEBPACK_IMPORTED_MODULE_0___default.a.createRef(), _temp), _possibleConstructorReturn(_this, _ret);
  }

  _createClass(TreeView, [{
    key: 'render',
    value: function render() {
      var _this2 = this;

      var _props = this.props,
          nodes = _props.nodes,
          selectNode = _props.selectNode,
          highlightOnHover = _props.highlightOnHover,
          highlightOnSelect = _props.highlightOnSelect,
          accessibleName = _props.accessibleName;
      var _state = this.state,
          focusedNodeId = _state.focusedNodeId,
          expandSiblings = _state.expandSiblings;

      var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('list-group', {
        'treeview-select': highlightOnSelect,
        'treeview-hover': highlightOnHover
      });

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'div',
        { className: 'treeview' },
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          'ul',
          {
            className: classes,
            ref: this.treeRef,
            onKeyDown: this.onKeyDown,
            onKeyPress: this.onKeyPress,
            role: 'tree',
            'aria-label': accessibleName
          },
          nodes && nodes.map(function (node, index) {
            return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_TreeViewNode__WEBPACK_IMPORTED_MODULE_4__["default"], {
              node: node,
              key: index,
              index: index,
              nodeId: String(index),
              level: 1,
              selectNode: selectNode,
              onFocus: _this2.onFocus,
              focusedNodeId: focusedNodeId,
              setSize: nodes.length,
              expandSiblings: expandSiblings,
              clearExpandSiblings: _this2.clearExpandSiblings
            });
          })
        )
      );
    }
  }]);

  return TreeView;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

TreeView.propTypes = {
  /** Array of node objects */
  nodes: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array,
  /** Function that will be triggered when a selectable node is clicked */
  selectNode: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Highlight node row on hover */
  highlightOnHover: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Highlight node row when clicked */
  highlightOnSelect: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Identification for assistive devices */
  accessibleName: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};

TreeView.defaultProps = {
  highlightOnHover: false,
  highlightOnSelect: false,
  nodes: [],
  selectNode: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  accessibleName: ''
};

TreeView.Node = _TreeViewNode__WEBPACK_IMPORTED_MODULE_4__["default"];
TreeView.Expand = _TreeViewExpand__WEBPACK_IMPORTED_MODULE_5__["default"];
TreeView.Icon = _TreeViewIcon__WEBPACK_IMPORTED_MODULE_6__["default"];
TreeView.Indents = _TreeViewIndents__WEBPACK_IMPORTED_MODULE_7__["default"];

/* harmony default export */ __webpack_exports__["default"] = (TreeView);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewExpand.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewExpand.js ***!
  \**************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");





var TreeViewExpand = function TreeViewExpand(_ref) {
  var nodes = _ref.nodes,
      expanded = _ref.expanded,
      toggleExpand = _ref.toggleExpand;

  var hasChildren = nodes.length > 0;
  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('icon indent', { 'expand-icon fa fa-angle-right': hasChildren && !expanded }, { 'expand-icon fa fa-angle-down': hasChildren && expanded }, { glyphicon: !hasChildren });

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('span', { onClick: toggleExpand, className: classes, 'aria-hidden': true });
};

TreeViewExpand.propTypes = {
  nodes: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array,
  expanded: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  toggleExpand: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};

TreeViewExpand.defaultProps = {
  nodes: [],
  expanded: false,
  toggleExpand: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"]
};

/* harmony default export */ __webpack_exports__["default"] = (TreeViewExpand);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewIcon.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewIcon.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);




var TreeViewIcon = function TreeViewIcon(_ref) {
  var icon = _ref.icon;

  var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('icon node-icon indent', icon);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('span', { className: classes, 'aria-hidden': true });
};

TreeViewIcon.propTypes = {
  icon: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};

TreeViewIcon.defaultProps = {
  icon: 'fa fa-folder'
};

/* harmony default export */ __webpack_exports__["default"] = (TreeViewIcon);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewIndents.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewIndents.js ***!
  \***************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);



var TreeViewIndents = function TreeViewIndents(_ref) {
  var level = _ref.level;

  var indents = [];

  if (level === 1) {
    return null;
  }
  for (var i = 1; i <= (level - 1) * 4; i++) {
    indents.push(react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('span', { className: 'indent', key: i }));
  }

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,
    null,
    indents
  );
};

TreeViewIndents.propTypes = {
  level: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired
};

/* harmony default export */ __webpack_exports__["default"] = (TreeViewIndents);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewNode.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewNode.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _TreeViewExpand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TreeViewExpand */ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewExpand.js");
/* harmony import */ var _TreeViewIcon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./TreeViewIcon */ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewIcon.js");
/* harmony import */ var _TreeViewIndents__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./TreeViewIndents */ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewIndents.js");
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; }; }();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }









var TreeViewNode = function (_Component) {
  _inherits(TreeViewNode, _Component);

  function TreeViewNode() {
    var _ref;

    var _temp, _this, _ret;

    _classCallCheck(this, TreeViewNode);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = TreeViewNode.__proto__ || Object.getPrototypeOf(TreeViewNode)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
      expanded: _this.props.node.hasOwnProperty('state') && _this.props.node.state.expanded || false,
      focused: false,
      tabIndex: -1,
      nodeId: _this.props.nodeId
    }, _this.onKeyDown = function (e) {
      var nodeId = _this.state.nodeId;
      var _this$props = _this.props,
          node = _this$props.node,
          focusedNodeId = _this$props.focusedNodeId;
      var key = e.key;


      if (node.nodes && focusedNodeId === nodeId && (key === _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEYS"].ARROW_RIGHT || key === _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEYS"].ARROW_LEFT)) {
        e.stopPropagation();
        if (key === _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEYS"].ARROW_RIGHT) {
          _this.setState(function () {
            return { expanded: true };
          });
        } else {
          _this.setState(function () {
            return { expanded: false };
          });
        }
      }

      if (key === _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEYS"].SPACE || key === _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEYS"].ENTER) {
        e.stopPropagation();
        _this.handleSelect(e);
      }
    }, _this.onFocus = function (e) {
      e.stopPropagation();
      _this.props.onFocus(_this.nodeRef.current);
      _this.setState(function () {
        return { focused: true };
      });
    }, _this.onBlur = function () {
      _this.setState(function () {
        return { focused: false };
      });
    }, _this.handleSelect = function (e) {
      var _this$props2 = _this.props,
          node = _this$props2.node,
          selectNode = _this$props2.selectNode;


      e.stopPropagation();

      if (node.selectable) {
        _this.nodeRef.current.focus();
        selectNode(node);
      }
    }, _this.toggleExpand = function (e) {
      e.stopPropagation();
      _this.toggleExpandedState();
    }, _this.toggleExpandedState = function () {
      _this.setState(function (prevState) {
        return { expanded: !prevState.expanded };
      });
    }, _this.nodeRef = react__WEBPACK_IMPORTED_MODULE_0___default.a.createRef(), _temp), _possibleConstructorReturn(_this, _ret);
  }

  _createClass(TreeViewNode, [{
    key: 'render',
    value: function render() {
      var _props = this.props,
          node = _props.node,
          level = _props.level,
          visible = _props.visible,
          selectNode = _props.selectNode,
          index = _props.index,
          onFocus = _props.onFocus,
          focusedNodeId = _props.focusedNodeId,
          setSize = _props.setSize,
          expandSiblings = _props.expandSiblings,
          clearExpandSiblings = _props.clearExpandSiblings;
      var _state = this.state,
          expanded = _state.expanded,
          focused = _state.focused,
          tabIndex = _state.tabIndex,
          nodeId = _state.nodeId;

      var treeitemClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()('list-group-item', {
        'node-hidden': level > 1 ? !visible : false,
        'node-selected': node.selected
      });
      var treeitemRowClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()('treeitem-row', {
        focus: focused
      });

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'li',
        {
          className: treeitemClasses,
          onClick: this.handleSelect,
          onFocus: this.onFocus,
          onBlur: this.onBlur,
          onKeyDown: this.onKeyDown,
          ref: this.nodeRef,
          tabIndex: tabIndex,
          'data-id': nodeId,
          role: 'treeitem',
          'aria-expanded': node.nodes && expanded,
          'aria-level': level,
          'aria-posinset': index + 1,
          'aria-setsize': setSize
        },
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          'span',
          { className: treeitemRowClasses },
          react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_TreeViewIndents__WEBPACK_IMPORTED_MODULE_6__["default"], { level: level }),
          react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_TreeViewExpand__WEBPACK_IMPORTED_MODULE_4__["default"], { nodes: node.nodes, expanded: expanded, toggleExpand: this.toggleExpand }),
          react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_TreeViewIcon__WEBPACK_IMPORTED_MODULE_5__["default"], { icon: node.icon }),
          node.text
        ),
        node.nodes && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          'ul',
          { className: 'list-group', role: 'group' },
          node.nodes.map(function (childNode, idx) {
            return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(TreeViewNode, {
              node: childNode,
              key: idx,
              index: idx,
              level: level + 1,
              visible: expanded,
              selectNode: selectNode,
              onFocus: onFocus,
              focusedNodeId: focusedNodeId,
              setSize: node.nodes.length,
              expandSiblings: expandSiblings,
              clearExpandSiblings: clearExpandSiblings,
              nodeId: nodeId + '-' + idx
            });
          })
        )
      );
    }
  }], [{
    key: 'getDerivedStateFromProps',
    value: function getDerivedStateFromProps(nextProps, prevState) {
      // Collapse the current node if any of its parents is collapsed. This should
      // only fire for nodes that are level 2 or greater
      if (!nextProps.visible && nextProps.level > 1) {
        return { expanded: false };
      }

      // Roving tab index
      // When a treeview is first rendered and not interacted with, the first
      // node should have a tabindex of 0, while the rest of the nodes have a
      // tabindex of -1. Subsequently, the tabindex "roves" to whatever node has
      // gained focus
      var tabIndex = nextProps.focusedNodeId === prevState.nodeId || !nextProps.focusedNodeId && prevState.nodeId === '0' ? 0 : -1;

      if (tabIndex !== prevState.tabIndex) {
        return { tabIndex: tabIndex };
      }

      // * keyboard action
      if (nextProps.expandSiblings) {
        var siblingsLevel = nextProps.expandSiblings.split('-').length;
        if (parseInt(siblingsLevel, 10) === nextProps.level) {
          nextProps.clearExpandSiblings();
          return { expanded: true };
        }
      }

      return null;
    }

    // A node can be set to be expanded by default

  }]);

  return TreeViewNode;
}(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

TreeViewNode.propTypes = {
  node: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  level: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  visible: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  selectNode: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  index: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  onFocus: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  focusedNodeId: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,
  setSize: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  expandSiblings: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  clearExpandSiblings: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  nodeId: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};

TreeViewNode.defaultProps = {
  node: {},
  visible: false,
  selectNode: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  onFocus: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  expandSiblings: '',
  clearExpandSiblings: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  nodeId: ''
};

/* harmony default export */ __webpack_exports__["default"] = (TreeViewNode);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/TreeView/index.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/TreeView/index.js ***!
  \*****************************************************************************/
/*! exports provided: TreeView, TreeViewNode, TreeViewExpand, TreeViewIcon, TreeViewIndents */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _TreeView__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TreeView */ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeView.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeView", function() { return _TreeView__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _TreeViewNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TreeViewNode */ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewNode.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeViewNode", function() { return _TreeViewNode__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _TreeViewExpand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TreeViewExpand */ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewExpand.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeViewExpand", function() { return _TreeViewExpand__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _TreeViewIcon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TreeViewIcon */ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewIcon.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeViewIcon", function() { return _TreeViewIcon__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _TreeViewIndents__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TreeViewIndents */ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewIndents.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeViewIndents", function() { return _TreeViewIndents__WEBPACK_IMPORTED_MODULE_4__["default"]; });







/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/TypeAheadSelect/AsyncTypeAheadSelect.js":
/*!***************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/TypeAheadSelect/AsyncTypeAheadSelect.js ***!
  \***************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }





var AsyncTypeAheadSelect = function (_React$Component) {
  _inherits(AsyncTypeAheadSelect, _React$Component);

  function AsyncTypeAheadSelect() {
    var _ref;

    var _temp, _this, _ret;

    _classCallCheck(this, AsyncTypeAheadSelect);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = AsyncTypeAheadSelect.__proto__ || Object.getPrototypeOf(AsyncTypeAheadSelect)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
      options: _this.props.options,
      isLoading: _this.props.isLoading
    }, _this.onSearchStart = function () {
      return _this.setState({ isLoading: true });
    }, _this.onSearchEnd = function (options) {
      return _this.setState({ options: options, isLoading: false });
    }, _this.handleSearch = function (query) {
      _this.onSearchStart();
      Promise.resolve(_this.props.onSearch(query)).then(function (options) {
        return _this.onSearchEnd(options);
      });
    }, _this.render = function () {
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_1__["AsyncTypeahead"], _extends({}, _this.props, {
        onSearch: _this.handleSearch,
        options: _this.state.options,
        isLoading: _this.state.isLoading
      }));
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  // query is the text string entered by the user.


  return AsyncTypeAheadSelect;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

AsyncTypeAheadSelect.propTypes = {
  onSearch: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func.isRequired,
  options: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array,
  isLoading: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};

AsyncTypeAheadSelect.defaultProps = {
  options: [],
  isLoading: false
};

/* harmony default export */ __webpack_exports__["default"] = (AsyncTypeAheadSelect);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/TypeAheadSelect/TypeAheadSelect.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/TypeAheadSelect/TypeAheadSelect.js ***!
  \**********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _AsyncTypeAheadSelect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AsyncTypeAheadSelect */ "./node_modules/patternfly-react/dist/esm/components/TypeAheadSelect/AsyncTypeAheadSelect.js");



react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["Typeahead"].Highlighter = react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["Highlighter"];
react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["Typeahead"].Menu = react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["Menu"];
react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["Typeahead"].MenuItem = react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["MenuItem"];
react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["Typeahead"].Token = react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["Token"];
react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["Typeahead"].TypeaheadMenu = react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["TypeaheadMenu"];
react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["Typeahead"].asyncContainer = react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["asyncContainer"];
react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["Typeahead"].menuItemContainer = react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["menuItemContainer"];
react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["Typeahead"].tokenContainer = react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["tokenContainer"];

react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["Typeahead"].Async = _AsyncTypeAheadSelect__WEBPACK_IMPORTED_MODULE_1__["default"];

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["Typeahead"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/TypeAheadSelect/index.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/TypeAheadSelect/index.js ***!
  \************************************************************************************/
/*! exports provided: TypeAheadSelect, AsyncTypeAheadSelect */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _TypeAheadSelect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TypeAheadSelect */ "./node_modules/patternfly-react/dist/esm/components/TypeAheadSelect/TypeAheadSelect.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TypeAheadSelect", function() { return _TypeAheadSelect__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _AsyncTypeAheadSelect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AsyncTypeAheadSelect */ "./node_modules/patternfly-react/dist/esm/components/TypeAheadSelect/AsyncTypeAheadSelect.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AsyncTypeAheadSelect", function() { return _AsyncTypeAheadSelect__WEBPACK_IMPORTED_MODULE_1__["default"]; });






/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/UtilizationBar/UtilizationBar.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/UtilizationBar/UtilizationBar.js ***!
  \********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _ProgressBar__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../ProgressBar */ "./node_modules/patternfly-react/dist/esm/components/ProgressBar/index.js");
/* harmony import */ var _OverlayTrigger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../OverlayTrigger */ "./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/index.js");
/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Tooltip */ "./node_modules/patternfly-react/dist/esm/components/Tooltip/index.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./helpers */ "./node_modules/patternfly-react/dist/esm/components/UtilizationBar/helpers.js");







var randomId = function randomId() {
  return Date.now();
};

var AvailableTooltipFunction = function AvailableTooltipFunction(max, now) {
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _Tooltip__WEBPACK_IMPORTED_MODULE_4__["Tooltip"],
    { id: randomId() },
    'Available ',
    max - now,
    ' %'
  );
};

var UsedTooltipFunction = function UsedTooltipFunction(max, now) {
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _Tooltip__WEBPACK_IMPORTED_MODULE_4__["Tooltip"],
    { id: randomId() },
    'Used ',
    now,
    ' %'
  );
};

var UtilizationBar = function UtilizationBar(_ref) {
  var min = _ref.min,
      max = _ref.max,
      now = _ref.now,
      availableTooltipFunction = _ref.availableTooltipFunction,
      usedTooltipFunction = _ref.usedTooltipFunction,
      descriptionPlacementTop = _ref.descriptionPlacementTop,
      description = _ref.description,
      thresholdWarning = _ref.thresholdWarning,
      thresholdError = _ref.thresholdError,
      label = _ref.label,
      className = _ref.className;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    { className: Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["mainDivClasses"])(!descriptionPlacementTop, className, description, label) },
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'div',
      { className: descriptionPlacementTop ? null : 'progress-bar' },
      label && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'span',
        { className: Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["labelClasses"])(descriptionPlacementTop) },
        label
      ),
      description && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'div',
        { className: 'progress-description label-text' },
        description
      )
    ),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'div',
      { className: 'progress' },
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _OverlayTrigger__WEBPACK_IMPORTED_MODULE_3__["OverlayTrigger"],
        {
          overlay: usedTooltipFunction(max, now),
          placement: 'top',
          trigger: ['hover', 'focus'],
          rootClose: false
        },
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ProgressBar__WEBPACK_IMPORTED_MODULE_2__["ProgressBar"], {
          bsStyle: Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["barStyle"])(thresholdWarning, thresholdError, now),
          min: min,
          max: max,
          now: now,
          key: 1,
          isChild: true
        })
      ),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _OverlayTrigger__WEBPACK_IMPORTED_MODULE_3__["OverlayTrigger"],
        {
          overlay: availableTooltipFunction(max, now),
          placement: 'top',
          trigger: ['hover', 'focus'],
          rootClose: false
        },
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ProgressBar__WEBPACK_IMPORTED_MODULE_2__["ProgressBar"], {
          min: min,
          max: max,
          now: max - now,
          key: 2,
          bsClass: 'progress-bar progress-bar-remaining',
          isChild: true
        })
      )
    )
  );
};

UtilizationBar.propTypes = {
  /** Minimal value */
  min: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  /** Maximal value */
  max: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  /** Current value */
  now: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  /** Threshold value. Bar will change value to orange if it's surpassed. */
  thresholdWarning: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  /** Threshold value. Bar will change value to red if it's surpassed.  */
  thresholdError: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  /** Function that renders tooltip for available part of bar. Takes params max and now. */
  availableTooltipFunction: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Function that renders tooltip for used part of bar. Takes params max and now. */
  usedTooltipFunction: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Description that is displayed on the right side */
  description: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Units */
  label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** If set labels will be placed above utilization bar */
  descriptionPlacementTop: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** User's custom classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};

UtilizationBar.defaultProps = {
  min: 0,
  max: 100,
  availableTooltipFunction: AvailableTooltipFunction,
  usedTooltipFunction: UsedTooltipFunction,
  descriptionPlacementTop: false,
  thresholdWarning: null,
  thresholdError: null,
  description: null,
  label: null,
  className: null
};

/* harmony default export */ __webpack_exports__["default"] = (UtilizationBar);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/UtilizationBar/helpers.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/UtilizationBar/helpers.js ***!
  \*************************************************************************************/
/*! exports provided: labelClasses, mainDivClasses, barStyle */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "labelClasses", function() { return labelClasses; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mainDivClasses", function() { return mainDivClasses; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "barStyle", function() { return barStyle; });
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);


var labelClasses = function labelClasses(top) {
  return classnames__WEBPACK_IMPORTED_MODULE_0___default()({ 'progress-label-top-right': top, 'progress-label-right': !top }, 'pull-right', 'display-inline-block');
};

var mainDivClasses = function mainDivClasses(onSide, userClasses, description, label) {
  return classnames__WEBPACK_IMPORTED_MODULE_0___default()({
    'progress-container': onSide && description,
    'progress-description-left': onSide && description,
    'progress-label-right': onSide && label
  }, userClasses, 'utilization-bar-pf');
};

var barStyle = function barStyle(thresholdWarning, thresholdError, now) {
  if (thresholdWarning && thresholdError) {
    var style = 'success';
    if (thresholdWarning <= now) {
      style = 'warning';
    }
    if (thresholdError <= now) {
      style = 'danger';
    }
    return style;
  }
  return null;
};

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/UtilizationBar/index.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/UtilizationBar/index.js ***!
  \***********************************************************************************/
/*! exports provided: UtilizationBar */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _UtilizationBar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./UtilizationBar */ "./node_modules/patternfly-react/dist/esm/components/UtilizationBar/UtilizationBar.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationBar", function() { return _UtilizationBar__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNav.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNav.js ***!
  \**************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _ListGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ListGroup */ "./node_modules/patternfly-react/dist/esm/components/ListGroup/index.js");
/* harmony import */ var _VerticalNavItem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./VerticalNavItem */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavItem.js");
/* harmony import */ var _VerticalNavMasthead__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./VerticalNavMasthead */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavMasthead.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _common_Timer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../common/Timer */ "./node_modules/patternfly-react/dist/esm/common/Timer.js");
/* harmony import */ var _common_controlled__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../common/controlled */ "./node_modules/patternfly-react/dist/esm/common/controlled.js");
/* harmony import */ var _common_patternfly__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../common/patternfly */ "./node_modules/patternfly-react/dist/esm/common/patternfly.js");
/* harmony import */ var _VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./VerticalNavConstants */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavConstants.js");
/* harmony import */ var _VerticalNavSecondaryItem__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./VerticalNavSecondaryItem */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavSecondaryItem.js");
/* harmony import */ var _VerticalNavTertiaryItem__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./VerticalNavTertiaryItem */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavTertiaryItem.js");
/* harmony import */ var _VerticalNavBrand__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./VerticalNavBrand */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavBrand.js");
/* harmony import */ var _VerticalNavIconBar__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./VerticalNavIconBar */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavIconBar.js");
/* harmony import */ var _VerticalNavBadge__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./VerticalNavBadge */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavBadge.js");
/* harmony import */ var _VerticalNavDividerItem__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./VerticalNavDividerItem */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavDividerItem.js");
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; };

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; }; }();

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }



















/**
 * VerticalNav - The Vertical Navigation pattern
 * http://www.patternfly.org/pattern-library/navigation/vertical-navigation/
 */

var BaseVerticalNav = function (_React$Component) {
  _inherits(BaseVerticalNav, _React$Component);

  function BaseVerticalNav() {
    var _ref;

    var _temp, _this, _ret;

    _classCallCheck(this, BaseVerticalNav);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = BaseVerticalNav.__proto__ || Object.getPrototypeOf(BaseVerticalNav)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
      forceHidden: false, // eslint-disable-line react/no-unused-state
      controlledActivePath: false,
      controlledHoverPath: false,
      controlledMobilePath: false,
      controlledPinnedPath: false
    }, _this.onLayoutChange = function (newLayout) {
      var _this$props = _this.props,
          onLayoutChange = _this$props.onLayoutChange,
          setControlledState = _this$props.setControlledState;

      setControlledState({ isMobile: newLayout === 'mobile' });
      onLayoutChange && onLayoutChange(newLayout);
    }, _this.setActivePath = function (activePath) {
      if (!_this.state.controlledActivePath) {
        _this.props.setControlledState({ activePath: activePath });
      }
    }, _this.setControlledActivePath = function (controlledActivePath) {
      _this.setState({ controlledActivePath: controlledActivePath });
    }, _this.setControlledHoverPath = function (controlledHoverPath) {
      _this.setState({ controlledHoverPath: controlledHoverPath });
    }, _this.setControlledMobilePath = function (controlledMobilePath) {
      _this.setState({ controlledMobilePath: controlledMobilePath });
    }, _this.setControlledPinnedPath = function (controlledPinnedPath) {
      _this.setState({ controlledPinnedPath: controlledPinnedPath });
    }, _this.setHoverPath = function (hoverPath) {
      if (!_this.state.controlledHoverPath) {
        _this.props.setControlledState(_extends({
          hoverPath: hoverPath
        }, hoverPath === null ? { showMobileNav: false } : {}));
      }
    }, _this.setMobilePath = function (mobilePath) {
      if (!_this.state.controlledMobilePath) {
        _this.props.setControlledState({ mobilePath: mobilePath });
      }
    }, _this.setPinnedPath = function (pinnedPath) {
      if (!_this.state.controlledPinnedPath) {
        _this.props.setControlledState({ pinnedPath: pinnedPath });
      }
    }, _this.hoverTimer = new _common_Timer__WEBPACK_IMPORTED_MODULE_7__["default"](), _this.clearBodyClasses = function () {
      if (_this.props.dynamicBodyClasses) {
        Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["setBodyClassIf"])(false, 'collapsed-nav');
        Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["setBodyClassIf"])(false, 'hidden-nav');
      }
    }, _this.collapseMenu = function () {
      var _this$props2 = _this.props,
          onCollapse = _this$props2.onCollapse,
          setControlledState = _this$props2.setControlledState;

      setControlledState({ navCollapsed: true });
      onCollapse && onCollapse();
    }, _this.expandMenu = function () {
      var _this$props3 = _this.props,
          onExpand = _this$props3.onExpand,
          setControlledState = _this$props3.setControlledState;

      setControlledState({ navCollapsed: false });
      onExpand && onExpand();
    }, _this.forceHideSecondaryMenu = function () {
      _this.setState({ forceHidden: true }); // eslint-disable-line react/no-unused-state
      setTimeout(function () {
        _this.setState({ forceHidden: false }); // eslint-disable-line react/no-unused-state
      }, 500);
    }, _this.handleBodyClick = function () {
      // Clear hover state on body click. Helps especially when using blurDisabled prop.
      _this.setHoverPath(null);
    }, _this.navigateToItem = function (item) {
      var onNavigate = _this.props.onNavigate;

      onNavigate(item);
      // Note: This should become router-aware later on.
    }, _this.updateBodyClasses = function () {
      // Note: Updating the body element classes from here like this is a hacky, non-react-y pattern.
      // It's only here for consistency. See comments on getBodyContentElement in ./constants.js.
      var _this$props4 = _this.props,
          dynamicBodyClasses = _this$props4.dynamicBodyClasses,
          navCollapsed = _this$props4.navCollapsed,
          pinnedPath = _this$props4.pinnedPath,
          isMobile = _this$props4.isMobile;

      var collapsed = navCollapsed && pinnedPath === null;
      if (dynamicBodyClasses) {
        Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["setBodyClassIf"])(!isMobile && collapsed, 'collapsed-nav');
        Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["setBodyClassIf"])(isMobile, 'hidden-nav');
      }
    }, _this.updateNavOnItemBlur = function (primary, secondary, tertiary, idPath, parentPath, noDelay, callback) {
      var _this$props5 = _this.props,
          hoverPath = _this$props5.hoverPath,
          blurDelay = _this$props5.blurDelay,
          blurDisabled = _this$props5.blurDisabled,
          setControlledState = _this$props5.setControlledState;

      var item = Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["deepestOf"])(primary, secondary, tertiary);
      var hovered = hoverPath && hoverPath.startsWith(idPath);
      _this.hoverTimer.clearTimer();
      if (hovered) {
        var doBlur = function doBlur() {
          if (!blurDisabled) {
            // IMPORTANT: We reference this.props below for the hoverPath value when the timeout fires.
            // If we just use the hoverPath in scope from above, it is from when the timeout was set.
            if (idPath === _this.props.hoverPath) {
              // Only bump up the hover path if it's still set to the item we're blurring
              setControlledState({ hoverPath: parentPath });
            }
            callback && callback(primary, secondary, tertiary);
          }
        };
        if (item.subItems && item.subItems.length > 0) {
          if (noDelay) {
            doBlur();
          } else {
            _this.hoverTimer.startTimer(doBlur, blurDelay);
          }
        }
      }
    }, _this.updateNavOnItemClick = function (primary, secondary, tertiary, idPath, parentPath) {
      var _this$props6 = _this.props,
          onItemClick = _this$props6.onItemClick,
          hoverPath = _this$props6.hoverPath,
          hoverDisabled = _this$props6.hoverDisabled,
          isMobile = _this$props6.isMobile;

      _this.hoverTimer.skipTimer();
      var item = Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["deepestOf"])(primary, secondary, tertiary);
      var isLeafItem = !item.subItems || item.subItems.length === 0;
      if (isMobile) {
        _this.setMobilePath(null);
      }
      if (isLeafItem) {
        _this.setHoverPath(null);
      } else if (hoverDisabled && hoverPath === idPath) {
        // Clicking the currently-"hovered" item in hoverDisabled un-"hovers" it.
        _this.setHoverPath(parentPath);
      }
      if (isLeafItem || !isMobile) {
        _this.navigateToItem(item);
      }
      onItemClick && onItemClick(primary, secondary, tertiary);
    }, _this.updateNavOnItemHover = function (primary, secondary, tertiary, idPath, parentPath, callback) {
      var _this$props7 = _this.props,
          onItemHover = _this$props7.onItemHover,
          hoverPath = _this$props7.hoverPath,
          hoverDelay = _this$props7.hoverDelay,
          hoverDisabled = _this$props7.hoverDisabled,
          isMobile = _this$props7.isMobile;

      var item = Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["deepestOf"])(primary, secondary, tertiary);
      var hovered = hoverPath && hoverPath.startsWith(idPath);
      var targetPath = item.subItems && item.subItems.length > 0 ? idPath : parentPath;
      var that = _this;
      if (!isMobile) {
        _this.hoverTimer.clearTimer();
        if (!hovered) {
          _this.hoverTimer.startTimer(function (skipped) {
            if (skipped || !hoverDisabled) {
              that.setHoverPath(targetPath);
              callback && callback(primary, secondary, tertiary);
              onItemHover && onItemHover(primary, secondary, tertiary);
            }
          }, hoverDelay);
        }
      }
    }, _this.updateNavOnMenuToggleClick = function () {
      var _this$props8 = _this.props,
          onMenuToggleClick = _this$props8.onMenuToggleClick,
          isMobile = _this$props8.isMobile,
          showMobileNav = _this$props8.showMobileNav,
          navCollapsed = _this$props8.navCollapsed,
          setControlledState = _this$props8.setControlledState;

      if (isMobile) {
        if (showMobileNav) {
          setControlledState({ showMobileNav: false });
        } else {
          _this.setMobilePath(null);
          setControlledState({ showMobileNav: true });
        }
      } else if (navCollapsed) {
        _this.expandMenu();
      } else {
        _this.collapseMenu();
      }
      onMenuToggleClick && onMenuToggleClick();
    }, _this.updateNavOnMobileSelection = function (primary, secondary, tertiary) {
      var onMobileSelection = _this.props.onMobileSelection;
      // All the behavior here is handled by mobilePath and setMobilePath,
      // but we still make a callback available here.

      onMobileSelection && onMobileSelection(primary, secondary, tertiary);
    }, _this.updateNavOnPin = function (item, depth, pinned) {
      var _this$props9 = _this.props,
          onItemPin = _this$props9.onItemPin,
          isMobile = _this$props9.isMobile;

      if (!isMobile) {
        onItemPin && onItemPin(item, depth, pinned);
      }
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }
  // More state is defined in controlledStateTypes.
  // These ones just don't need to be able to be controlled by props.


  _createClass(BaseVerticalNav, [{
    key: 'componentDidMount',
    value: function componentDidMount() {
      this.updateBodyClasses();
      _common_patternfly__WEBPACK_IMPORTED_MODULE_9__["layout"].addChangeListener(this.onLayoutChange);
      Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["addBodyEventListener"])('mousedown', this.handleBodyClick);
    }
  }, {
    key: 'componentDidUpdate',
    value: function componentDidUpdate(oldProps) {
      var bodyClassProps = ['navCollapsed', 'pinnedPath', 'showMobileNav', 'isMobile'];
      if (Object(_common_helpers__WEBPACK_IMPORTED_MODULE_6__["propsChanged"])(bodyClassProps, oldProps, this.props)) {
        this.updateBodyClasses();
      }
    }
  }, {
    key: 'componentWillUnmount',
    value: function componentWillUnmount() {
      // Clear any timers so they don't trigger while the component is unmounted.
      this.hoverTimer.clearTimer();
      this.clearBodyClasses();
      _common_patternfly__WEBPACK_IMPORTED_MODULE_9__["layout"].removeChangeListener(this.onLayoutChange);
      Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["removeBodyEventListener"])('mousedown', this.handleBodyClick);
    }
  }, {
    key: 'render',
    value: function render() {
      var _props = this.props,
          items = _props.items,
          children = _props.children;
      // Nav items may be passed either as nested VerticalNavItem children, or as nested items in a prop.
      // The items prop will take priority, if present, and must be an array of item objects (not React components).
      // If the items prop is not present, items must be expressed as VerticalNavItem children instead.

      var itemsFromChildren = Object(_common_helpers__WEBPACK_IMPORTED_MODULE_6__["filterChildren"])(children, function (child) {
        return Object(_common_helpers__WEBPACK_IMPORTED_MODULE_6__["hasDisplayName"])(child, _VerticalNavItem__WEBPACK_IMPORTED_MODULE_4__["default"].displayName);
      });
      var itemsFromProps = items && items.length > 0 && items.map(function (primaryItem, i) {
        return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          _VerticalNavItem__WEBPACK_IMPORTED_MODULE_4__["default"],
          { item: primaryItem, key: 'primary_' + primaryItem.title },
          primaryItem.subItems && primaryItem.subItems.map(function (secondaryItem) {
            return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
              _VerticalNavSecondaryItem__WEBPACK_IMPORTED_MODULE_11__["default"],
              {
                id: secondaryItem.id,
                dataID: secondaryItem.dataID,
                isDivider: secondaryItem.isDivider,
                preventHref: secondaryItem.preventHref,
                item: secondaryItem,
                key: 'secondary_' + secondaryItem.title
              },
              secondaryItem.subItems && secondaryItem.subItems.map(function (tertiaryItem) {
                return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_VerticalNavTertiaryItem__WEBPACK_IMPORTED_MODULE_12__["default"], { item: tertiaryItem, key: 'tertiary_' + tertiaryItem.title });
              })
            );
          })
        );
      });
      var itemComponents = itemsFromProps || itemsFromChildren || [];

      var _props2 = this.props,
          hiddenIcons = _props2.hiddenIcons,
          pinnableMenus = _props2.pinnableMenus,
          showBadges = _props2.showBadges,
          forceHidden = _props2.forceHidden,
          hideMasthead = _props2.hideMasthead,
          persistentSecondary = _props2.persistentSecondary,
          hoverDelay = _props2.hoverDelay,
          blurDelay = _props2.blurDelay,
          isMobile = _props2.isMobile,
          showMobileNav = _props2.showMobileNav,
          masthead = _props2.masthead,
          navCollapsed = _props2.navCollapsed,
          activePath = _props2.activePath,
          hoverPath = _props2.hoverPath,
          mobilePath = _props2.mobilePath,
          pinnedPath = _props2.pinnedPath;


      var mastheadElem = masthead || react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'nav',
        { className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('navbar navbar-pf-vertical') },
        Object(_common_helpers__WEBPACK_IMPORTED_MODULE_6__["findChild"])(children, function (child) {
          return Object(_common_helpers__WEBPACK_IMPORTED_MODULE_6__["hasDisplayName"])(child, _VerticalNavMasthead__WEBPACK_IMPORTED_MODULE_5__["default"].displayName);
        })
      );

      var getPathDepth = function getPathDepth(path) {
        return path && path.split('/').filter(function (s) {
          return s !== '';
        }).length;
      };
      var mobileDepth = getPathDepth(mobilePath);
      var hoverDepth = getPathDepth(hoverPath);
      var pinnedDepth = getPathDepth(pinnedPath);
      var showMobileSecondary = isMobile && mobileDepth >= 1;
      var showMobileTertiary = isMobile && mobileDepth >= 2;
      var hoverSecondaryNav = hoverDepth >= 1;
      var hoverTertiaryNav = hoverDepth >= 2;
      var pinnedSecondaryNav = pinnedDepth >= 1;
      var pinnedTertiaryNav = pinnedDepth >= 2;

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["NavContextProvider"],
        {
          idPath: '/',
          updateNavOnMenuToggleClick: this.updateNavOnMenuToggleClick,
          updateNavOnItemHover: this.updateNavOnItemHover,
          updateNavOnItemBlur: this.updateNavOnItemBlur,
          updateNavOnItemClick: this.updateNavOnItemClick,
          updateNavOnMobileSelection: this.updateNavOnMobileSelection,
          setActivePath: this.setActivePath,
          setHoverPath: this.setHoverPath,
          setMobilePath: this.setMobilePath,
          setPinnedPath: this.setPinnedPath,
          setControlledActivePath: this.setControlledActivePath,
          setControlledHoverPath: this.setControlledHoverPath,
          setControlledMobilePath: this.setControlledMobilePath,
          setControlledPinnedPath: this.setControlledPinnedPath,
          activePath: activePath,
          hoverPath: hoverPath,
          mobilePath: mobilePath,
          pinnedPath: pinnedPath,
          hiddenIcons: hiddenIcons,
          pinnableMenus: pinnableMenus,
          isMobile: isMobile,
          showMobileSecondary: showMobileSecondary,
          showMobileTertiary: showMobileTertiary,
          showBadges: showBadges,
          navCollapsed: navCollapsed,
          updateNavOnPin: this.updateNavOnPin,
          forceHideSecondaryMenu: this.forceHideSecondaryMenu,
          hoverDelay: hoverDelay,
          blurDelay: blurDelay
        },
        !hideMasthead && mastheadElem,
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          'div',
          {
            className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('nav-pf-vertical nav-pf-vertical-with-sub-menus', {
              'nav-pf-vertical-collapsible-menus': pinnableMenus,
              'hidden-icons-pf': hiddenIcons,
              'nav-pf-vertical-with-badges': showBadges,
              'nav-pf-persistent-secondary': persistentSecondary,
              'show-mobile-secondary': showMobileSecondary,
              'show-mobile-tertiary': showMobileTertiary,
              'hover-secondary-nav-pf': hoverSecondaryNav,
              'hover-tertiary-nav-pf': hoverTertiaryNav,
              'collapsed-secondary-nav-pf': pinnableMenus && pinnedSecondaryNav,
              'collapsed-tertiary-nav-pf': pinnableMenus && pinnedTertiaryNav,
              hidden: isMobile,
              collapsed: !isMobile && navCollapsed,
              'force-hide-secondary-nav-pf': forceHidden,
              'show-mobile-nav': showMobileNav
            })
          },
          react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
            _ListGroup__WEBPACK_IMPORTED_MODULE_3__["ListGroup"],
            { componentClass: 'ul' },
            itemComponents
          )
        )
      );
    }
  }]);

  return BaseVerticalNav;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var controlledState = {
  // NOTE: If you use any of these props, be sure to also use the corresponding callbacks/handlers.
  // These props override values of the same name set by setControlledState().
  types: {
    /** Use the mobile layout of the component. Corresponds to onLayoutChange callback. */
    isMobile: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
    /** Display the nav in mobile mode */
    showMobileNav: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
    /** Collapse the nav. Corresponds to onMenuToggleClick or onCollapse and onExpand callbacks. */
    navCollapsed: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
    /** The idPath matching the currently active item. Corresponds to onItemClick callback. */
    activePath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    /** The idPath matching the currently hovered item. Corresponds to onItemHover and onItemBlur callbacks. */
    hoverPath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    /** The idPath matching the currently selected item on mobile. Corresponds to onMobileSelection callback. */
    mobilePath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    /** The idPath matching the currently pinned item. Corresponds to onItemPin callback. */
    pinnedPath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
  },
  defaults: {
    isMobile: _common_patternfly__WEBPACK_IMPORTED_MODULE_9__["layout"].is('mobile'),
    showMobileNav: null,
    navCollapsed: null,
    activePath: null,
    hoverPath: null,
    mobilePath: null,
    pinnedPath: null
  }
};

BaseVerticalNav.propTypes = _extends({}, controlledState.types, {
  /** Navigation items, passed as an array of objects (as opposed to JSX children w/ props) */
  items: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["itemObjectTypes"])),
  /** Enables the pin buttons on the active submenu. */
  pinnableMenus: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Automatically applies classes to the body element when the layout changes. */
  dynamicBodyClasses: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Hide all icons */
  hiddenIcons: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Show badges in nav items */
  showBadges: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Don't show items on hover, require a click */
  hoverDisabled: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Don't hide items on blur, require a click elsewhere */
  blurDisabled: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Force the nav to be hidden temporarily. */
  forceHidden: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Hide the masthead and notification drawer areas. */
  hideMasthead: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Persist the secondary nav */
  persistentSecondary: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Delay between mouse hover and menu show in ms */
  hoverDelay: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  /** Delay between mouse blur and menu hide in ms */
  blurDelay: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  /**  */
  masthead: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Optional callback for updating isMobile prop */
  onLayoutChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func, // eslint-disable-line react/require-default-props
  /** Optional callback for updating navCollapsed and showMobileNav props (option 1) */
  onMenuToggleClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Optional callback for updating navCollapsed and showMobileNav props (option 2) */
  onCollapse: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Optional callback for updating navCollapsed and showMobileNav props (option 2) */
  onExpand: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Optional callback for updating active props on items or activePath prop. Only called on leaf item click. */
  onNavigate: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Optional callback for updating active props on items or activePath prop. Called on any item click. */
  onItemClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Optional callback for updating hovered prop on items */
  onItemHover: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Optional callback for updating hovered prop on items */
  onItemBlur: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func, // eslint-disable-line react/no-unused-prop-types
  /** Optional callback for updating pinned props on items or pinnedPath prop. */
  onItemPin: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Optional callback for updating mobilePath prop */
  onMobileSelection: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func, // *
  /** Navigation items, passed as Item, SecondaryItem and TertiaryItem children. */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Helper injected by `controlled()` to manage controlledStateTypes values */
  setControlledState: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func // eslint-disable-line react/require-default-props
});

BaseVerticalNav.defaultProps = {
  items: null,
  pinnableMenus: false,
  dynamicBodyClasses: true,
  hiddenIcons: false,
  showBadges: false,
  hoverDisabled: false,
  blurDisabled: false,
  forceHidden: false,
  hideMasthead: false,
  persistentSecondary: true,
  hoverDelay: 500,
  blurDelay: 700,
  masthead: null,
  onMenuToggleClick: null,
  onCollapse: null,
  onExpand: null,
  onItemClick: null,
  onItemHover: null,
  onItemBlur: null,
  onItemPin: null,
  onMobileSelection: null,
  onNavigate: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
  children: null
};

var NoPersist = Object(_common_controlled__WEBPACK_IMPORTED_MODULE_8__["default"])(controlledState)(BaseVerticalNav);
var WithPersist = Object(_common_controlled__WEBPACK_IMPORTED_MODULE_8__["default"])(_extends({}, controlledState, {
  persist: ['navCollapsed', 'pinnedPath']
}))(BaseVerticalNav);

var VerticalNav = function VerticalNav(_ref2) {
  var persist = _ref2.persist,
      props = _objectWithoutProperties(_ref2, ['persist']);

  return persist ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(WithPersist, props) : react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(NoPersist, props);
};

VerticalNav.propTypes = _extends({}, BaseVerticalNav.propTypes, {
  persist: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
});

VerticalNav.defaultProps = _extends({}, BaseVerticalNav.defaultProps, {
  persist: true
});

VerticalNav.displayName = 'VerticalNav';

VerticalNav.NoPersist = NoPersist;
VerticalNav.WithPersist = WithPersist;

VerticalNav.Masthead = _VerticalNavMasthead__WEBPACK_IMPORTED_MODULE_5__["default"];
VerticalNav.Item = _VerticalNavItem__WEBPACK_IMPORTED_MODULE_4__["default"];
VerticalNav.SecondaryItem = _VerticalNavSecondaryItem__WEBPACK_IMPORTED_MODULE_11__["default"];
VerticalNav.TertiaryItem = _VerticalNavTertiaryItem__WEBPACK_IMPORTED_MODULE_12__["default"];
VerticalNav.Brand = _VerticalNavBrand__WEBPACK_IMPORTED_MODULE_13__["default"];
VerticalNav.IconBar = _VerticalNavIconBar__WEBPACK_IMPORTED_MODULE_14__["default"];
VerticalNav.Badge = _VerticalNavBadge__WEBPACK_IMPORTED_MODULE_15__["default"];
VerticalNav.Divider = _VerticalNavDividerItem__WEBPACK_IMPORTED_MODULE_16__["default"];

/* harmony default export */ __webpack_exports__["default"] = (VerticalNav);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavBadge.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavBadge.js ***!
  \*******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _OverlayTrigger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../OverlayTrigger */ "./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/index.js");
/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Tooltip */ "./node_modules/patternfly-react/dist/esm/components/Tooltip/index.js");






var VerticalNavBadge = function VerticalNavBadge(props) {
  var badgeClass = props.badgeClass,
      iconClass = props.iconClass,
      tooltip = props.tooltip,
      count = props.count;

  var key = badgeClass || iconClass || count;
  var badgeDiv = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    { className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('badge', badgeClass) },
    count && iconClass && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('span', { className: iconClass }),
    count && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'span',
      null,
      count
    )
  );
  return !tooltip ? badgeDiv : react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _OverlayTrigger__WEBPACK_IMPORTED_MODULE_3__["OverlayTrigger"],
    { key: key, placement: 'right', overlay: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _Tooltip__WEBPACK_IMPORTED_MODULE_4__["Tooltip"],
        { id: key },
        tooltip
      ) },
    badgeDiv
  );
};

VerticalNavBadge.propTypes = {
  badgeClass: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  iconClass: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  tooltip: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  count: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number
};
VerticalNavBadge.defaultProps = {
  badgeClass: '',
  iconClass: '',
  tooltip: '',
  count: undefined
};

VerticalNavBadge.displayName = 'VerticalNav.Badge';

/* harmony default export */ __webpack_exports__["default"] = (VerticalNavBadge);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavBrand.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavBrand.js ***!
  \*******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);



var VerticalNavBrand = function VerticalNavBrand(props) {
  var title = props.title,
      href = props.href,
      onClick = props.onClick,
      iconImg = props.iconImg,
      children = props.children;
  // The img prop is just a shorthand for the titleImg prop.
  // When also using iconImg, it is less confusing to pass titleImg instead of img.

  var titleImg = props.titleImg || props.img;

  var brandChildren = children || react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'span',
    null,
    iconImg && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('img', { className: 'navbar-brand-icon', src: iconImg, alt: title }),
    titleImg && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('img', { className: 'navbar-brand-name', src: titleImg, alt: title }),
    !titleImg && title && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'span',
      { className: 'navbar-brand-txt' },
      title
    )
  );
  return href || onClick ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'a',
    { href: href, onClick: onClick, className: 'navbar-brand' },
    brandChildren
  ) : react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'span',
    { className: 'navbar-brand' },
    brandChildren
  );
};

VerticalNavBrand.propTypes = {
  /** Title of the application (use either this or titleImg) */
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** URL of an image for the app's title (use either this or title) */
  titleImg: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Alias for titleImg */
  img: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** URL of an image for the app's icon */
  iconImg: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** URL of the application's homepage if the title should be a link */
  href: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Alternative to href, callback to call when the brand link is clicked */
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Custom children components to render instead. If passed, above props are ignored. */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
VerticalNavBrand.defaultProps = {
  title: '',
  titleImg: '',
  img: '',
  iconImg: '',
  href: '',
  onClick: null, // noop should not be used b/c onClick differentiates render
  children: null
};
VerticalNavBrand.displayName = 'VerticalNav.Brand';

/* harmony default export */ __webpack_exports__["default"] = (VerticalNavBrand);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavConstants.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavConstants.js ***!
  \***********************************************************************************************/
/*! exports provided: getNextDepth, deepestOf, componentForDepth, wrongDepth, correctDepth, isNavItem, getItemProps, itemObjectTypes, navContextTypes, NavContextProvider, setBodyClassIf, addBodyEventListener, removeBodyEventListener */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNextDepth", function() { return getNextDepth; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deepestOf", function() { return deepestOf; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "componentForDepth", function() { return componentForDepth; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrongDepth", function() { return wrongDepth; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "correctDepth", function() { return correctDepth; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isNavItem", function() { return isNavItem; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getItemProps", function() { return getItemProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "itemObjectTypes", function() { return itemObjectTypes; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "navContextTypes", function() { return navContextTypes; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NavContextProvider", function() { return NavContextProvider; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setBodyClassIf", function() { return setBodyClassIf; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addBodyEventListener", function() { return addBodyEventListener; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeBodyEventListener", function() { return removeBodyEventListener; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var recompose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! recompose */ "./node_modules/patternfly-react/node_modules/recompose/es/Recompose.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./index */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/index.js");
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; };







// Properties of the nav item object, which can also be passed as
// props directly to Item, SecondaryItem and TertiaryItem components.
var itemObjectTypes = {
  /** Title of the nav item */
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Class applied to the item for icons */
  iconClass: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Badges rendered on the item */
  badges: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    badgeClass: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    tooltip: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    count: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
    iconClass: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
  })),
  /** Sub-items, either can be passed as objects here or as JSX children */
  subItems: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array,
  /** Is this the current active item? (used only if tracking this in app) */
  active: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Is this the current hovered item? (used only if tracking this in app) */
  hovered: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Is this the last item we tapped on mobile? (used only if tracking this in app) */
  selectedOnMobile: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Is this item pinned? (used only if tracking this in app) */
  pinned: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Set the activePath to this item initially, but allow that state to change. */
  initialActive: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** If this item is a link, what URL it should go to. */
  href: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Optional callback for updating hovered prop */
  onHover: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Optional callback for updating hovered prop */
  onBlur: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Optional callback for updating active prop */
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Optional additional className(s) to be applied to the item */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};

// Props that can be passed to a NavContextProvider
var navContextTypes = {
  /** The path down the item tree so far (made up of each item's idPath() joined by '/') */
  idPath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** The depth down the item tree so far. Assume 'primary' if undefined. */
  depth: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['primary', 'secondary', 'tertiary']),
  /** The nav item object of the ancestor at primary depth, for secondary and tertiary items. */
  primaryItem: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(itemObjectTypes), // *
  /** The nav item object of the ancestor at secondary depth, for tertiary items. */
  secondaryItem: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(itemObjectTypes), // *
  /** See VerticalNav.propTypes */
  activePath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** See VerticalNav.propTypes */
  hoverPath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** See VerticalNav.propTypes */
  mobilePath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** See VerticalNav.propTypes */
  pinnedPath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** See VerticalNav.propTypes */
  hiddenIcons: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** See VerticalNav.propTypes */
  pinnableMenus: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** See VerticalNav.propTypes */
  isMobile: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** See VerticalNav.propTypes */
  navCollapsed: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** See VerticalNav.propTypes */
  hoverDelay: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  /** See VerticalNav.propTypes */
  blurDelay: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  /** See VerticalNav.propTypes */
  showBadges: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** Reference to method of the same name in the VerticalNav container. */
  updateNavOnMenuToggleClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Reference to method of the same name in the VerticalNav container. */
  updateNavOnItemHover: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Reference to method of the same name in the VerticalNav container. */
  updateNavOnItemBlur: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Reference to method of the same name in the VerticalNav container. */
  updateNavOnItemClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Reference to method of the same name in the VerticalNav container. */
  updateNavOnPin: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Reference to method of the same name in the VerticalNav container. */
  updateNavOnMobileSelection: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Reference to method of the same name in the VerticalNav container. */
  setActivePath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Reference to method of the same name in the VerticalNav container. */
  setHoverPath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Reference to method of the same name in the VerticalNav container. */
  setMobilePath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Reference to method of the same name in the VerticalNav container. */
  setPinnedPath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Notifies the main component that an item has used the active prop. */
  setControlledActivePath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Notifies the main component that an item has used the hovered prop. */
  setControlledHoverPath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Notifies the main component that an item has used the selectedOnMobile prop. */
  setControlledMobilePath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Notifies the main component that an item has used the selectedOnMobile prop. */
  setControlledPinnedPath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Reference to method of the same name in the VerticalNav container. */
  forceHideSecondaryMenu: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** (Internal helper value) */
  showMobileSecondary: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** (Internal helper value) */
  showMobileTertiary: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};

var getNextDepth = function getNextDepth(depth) {
  return depth === 'primary' && 'secondary' || depth === 'secondary' && 'tertiary' || 'primary';
};

var deepestOf = function deepestOf(pri, sec, ter) {
  return pri && sec && ter || pri && sec || pri;
};

var componentForDepth = function componentForDepth(depth) {
  if (depth === 'primary') return _index__WEBPACK_IMPORTED_MODULE_4__["VerticalNavItem"];
  if (depth === 'secondary') return _index__WEBPACK_IMPORTED_MODULE_4__["VerticalNavSecondaryItem"];
  if (depth === 'tertiary') return _index__WEBPACK_IMPORTED_MODULE_4__["VerticalNavTertiaryItem"];
  return null;
};

var wrongDepth = function wrongDepth(props, expectedDepth) {
  if (props.depth !== expectedDepth) {
    var componentUsed = componentForDepth(expectedDepth).displayName;
    // eslint-disable-next-line no-console
    console.warn('Warning: ' + componentUsed + ' was used at ' + props.depth + ' depth, but it is for ' + expectedDepth + ' items.');
  }
};

var correctDepth = function correctDepth(props) {
  var Component = componentForDepth(props.depth);
  // eslint-disable-next-line no-console
  console.warn('Rendering with ' + Component.displayName + ' instead.');
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(Component, props);
};
correctDepth.propTypes = { depth: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string };
correctDepth.defaultProps = {
  depth: 'primary'
};

var isNavItem = function isNavItem(node) {
  return node && node.type && node.type.displayName && node.type.displayName.includes('VerticalNav') && node.type.displayName.includes('Item');
};

var getItemProps = function getItemProps(props) {
  var itemChildren = Object(_common_helpers__WEBPACK_IMPORTED_MODULE_3__["filterChildren"])(props.children, isNavItem);
  return _extends({}, Object(_common_helpers__WEBPACK_IMPORTED_MODULE_3__["selectKeys"])(props, Object.keys(itemObjectTypes)), {
    subItems: itemChildren && itemChildren.map(function (child) {
      return getItemProps(child.props);
    })
  });
};

var NavContextProvider = Object(recompose__WEBPACK_IMPORTED_MODULE_2__["withContext"])(navContextTypes, function (providerProps) {
  // The item prop doesn't get included in context, but must be passed to the provider
  // In order to properly include primaryItem and secondaryItem in context.
  var item = providerProps.item,
      primaryItem = providerProps.primaryItem,
      secondaryItem = providerProps.secondaryItem;

  var nextDepth = getNextDepth(providerProps.depth);
  return _extends({}, Object(_common_helpers__WEBPACK_IMPORTED_MODULE_3__["selectKeys"])(providerProps, Object.keys(navContextTypes)), {
    depth: nextDepth,
    primaryItem: nextDepth === 'secondary' ? item : primaryItem,
    secondaryItem: nextDepth === 'tertiary' ? item : secondaryItem
    // We don't need a tertiaryItem in context (see VerticalNavItem.getContextNavItems)
  });
})(function (props) {
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,
    null,
    props.children
  );
});

// WARNING: HACK! HAAAACK HACK HACK HACK WARNING THIS IS A HACK.
// We only use this to apply magic body classes when the prop `dynamicBodyClasses` is used.
// And only for consistency-- the better solution is to manage these classes yourself in the application.
var getBodyContentElement = function getBodyContentElement() {
  return document.querySelector('.container-pf-nav-pf-vertical');
};

var setBodyClassIf = function setBodyClassIf(condition, className) {
  var body = getBodyContentElement();
  if (condition) {
    body && body.classList.add(className);
  } else {
    body && body.classList.remove(className);
  }
};

var addBodyEventListener = function addBodyEventListener(eventName, handler) {
  var body = getBodyContentElement();
  body && body.addEventListener(eventName, handler);
};

var removeBodyEventListener = function removeBodyEventListener(eventName, handler) {
  var body = getBodyContentElement();
  body && body.removeEventListener(eventName, handler);
};



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavDividerItem.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavDividerItem.js ***!
  \*************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





var VerticalNavDividerItem = function VerticalNavDividerItem(_ref) {
  var title = _ref.title,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['title', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('vertical-sub-header-pf', className);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(
    'span',
    _extends({ className: classes }, props),
    title
  );
};
VerticalNavDividerItem.propTypes = {
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  /** Title of divider */
  title: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
VerticalNavDividerItem.defaultProps = {
  className: '',
  title: ''
};
/* harmony default export */ __webpack_exports__["default"] = (VerticalNavDividerItem);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavIconBar.js":
/*!*********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavIconBar.js ***!
  \*********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Nav__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Nav */ "./node_modules/patternfly-react/dist/esm/components/Nav/index.js");




var VerticalNavIconBar = function VerticalNavIconBar(props) {
  var iconBar = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _Nav__WEBPACK_IMPORTED_MODULE_2__["Nav"],
    { navbar: true, pullRight: true, className: 'navbar-iconic' },
    props.children
  );
  return props.collapse ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'nav',
    { className: 'collapse navbar-collapse' },
    iconBar
  ) : iconBar;
};

VerticalNavIconBar.propTypes = {
  /** Children to render inside .navbar-right */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Whether to also wrap the children in a .navbar-collapse */
  collapse: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};

VerticalNavIconBar.defaultProps = {
  collapse: true,
  children: null
};

VerticalNavIconBar.displayName = 'VerticalNav.IconBar';

/* harmony default export */ __webpack_exports__["default"] = (VerticalNavIconBar);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavItem.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavItem.js ***!
  \******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var recompose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! recompose */ "./node_modules/patternfly-react/node_modules/recompose/es/Recompose.js");
/* harmony import */ var _VerticalNavConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./VerticalNavConstants */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavConstants.js");
/* harmony import */ var _VerticalNavItemHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./VerticalNavItemHelper */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavItemHelper.js");
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; };






/**
 * VerticalNav.Item - a child component for primary nav items under VerticalNav
 * This is a thin wrapper for VerticalNavItemHelper, to expose the warnings and the explicit-depth API.
 * In the future, we could lift some of the primary-specific code from Helper into this file.
 */
var BaseVerticalNavItem = function BaseVerticalNavItem(props) {
  if (Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_2__["wrongDepth"])(props, 'primary')) return Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_2__["correctDepth"])(props);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_VerticalNavItemHelper__WEBPACK_IMPORTED_MODULE_3__["default"], props);
};

BaseVerticalNavItem.propTypes = _extends({}, _VerticalNavItemHelper__WEBPACK_IMPORTED_MODULE_3__["default"].propTypes);

var VerticalNavItem = Object(recompose__WEBPACK_IMPORTED_MODULE_1__["getContext"])(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_2__["navContextTypes"])(BaseVerticalNavItem);

VerticalNavItem.propTypes = _extends({}, BaseVerticalNavItem.propTypes);
VerticalNavItem.displayName = 'VerticalNav.Item';

/* harmony default export */ __webpack_exports__["default"] = (VerticalNavItem);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavItemHelper.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavItemHelper.js ***!
  \************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var recompose__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! recompose */ "./node_modules/patternfly-react/node_modules/recompose/es/Recompose.js");
/* harmony import */ var _ListGroup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../ListGroup */ "./node_modules/patternfly-react/dist/esm/components/ListGroup/index.js");
/* harmony import */ var _OverlayTrigger__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../OverlayTrigger */ "./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/index.js");
/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Tooltip */ "./node_modules/patternfly-react/dist/esm/components/Tooltip/index.js");
/* harmony import */ var _VerticalNavBadge__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./VerticalNavBadge */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavBadge.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _VerticalNavDividerItem__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./VerticalNavDividerItem */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavDividerItem.js");
/* harmony import */ var _VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./VerticalNavConstants */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavConstants.js");
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; };

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; }; }();

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }













var BaseVerticalNavItemHelper = function (_React$Component) {
  _inherits(BaseVerticalNavItemHelper, _React$Component);

  function BaseVerticalNavItemHelper() {
    var _ref;

    var _temp, _this, _ret;

    _classCallCheck(this, BaseVerticalNavItemHelper);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = BaseVerticalNavItemHelper.__proto__ || Object.getPrototypeOf(BaseVerticalNavItemHelper)).call.apply(_ref, [this].concat(args))), _this), _this.onItemBlur = function (noDelay) {
      var _this$getContextNavIt = _this.getContextNavItems(),
          primary = _this$getContextNavIt.primary,
          secondary = _this$getContextNavIt.secondary,
          tertiary = _this$getContextNavIt.tertiary;

      var _this$props = _this.props,
          updateNavOnItemBlur = _this$props.updateNavOnItemBlur,
          idPath = _this$props.idPath,
          onBlur = _this$props.onBlur;

      updateNavOnItemBlur(primary, secondary, tertiary, _this.idPath(), idPath, noDelay, onBlur);
    }, _this.onItemClick = function (event) {
      var _this$getContextNavIt2 = _this.getContextNavItems(),
          primary = _this$getContextNavIt2.primary,
          secondary = _this$getContextNavIt2.secondary,
          tertiary = _this$getContextNavIt2.tertiary;

      var _this$props2 = _this.props,
          isMobile = _this$props2.isMobile,
          preventHref = _this$props2.preventHref,
          updateNavOnItemClick = _this$props2.updateNavOnItemClick,
          idPath = _this$props2.idPath;

      var _this$navItem = _this.navItem(),
          onClick = _this$navItem.onClick;

      if (preventHref && !!onClick) {
        event.preventDefault();
      }

      updateNavOnItemClick(primary, secondary, tertiary, _this.idPath(), idPath); // Clears all mobile selections
      if (isMobile) {
        _this.onMobileSelection(primary, secondary, tertiary); // Applies new mobile selection here
      }
      _this.setActive();
      onClick && onClick(primary, secondary, tertiary);
    }, _this.onItemHover = function () {
      var _this$getContextNavIt3 = _this.getContextNavItems(),
          primary = _this$getContextNavIt3.primary,
          secondary = _this$getContextNavIt3.secondary,
          tertiary = _this$getContextNavIt3.tertiary;

      var _this$props3 = _this.props,
          updateNavOnItemHover = _this$props3.updateNavOnItemHover,
          idPath = _this$props3.idPath,
          onHover = _this$props3.onHover;

      updateNavOnItemHover(primary, secondary, tertiary, _this.idPath(), idPath, onHover);
    }, _this.onMobileSelection = function (primary, secondary, tertiary) {
      var _this$props4 = _this.props,
          setMobilePath = _this$props4.setMobilePath,
          updateNavOnMobileSelection = _this$props4.updateNavOnMobileSelection;

      setMobilePath(_this.idPath());
      updateNavOnMobileSelection(primary, secondary, tertiary);
    }, _this.getContextNavItems = function () {
      // We have primary, secondary, and tertiary items as props if they are part of the parent context,
      // but we also want to include the current item when calling handlers.
      var _this$props5 = _this.props,
          depth = _this$props5.depth,
          primaryItem = _this$props5.primaryItem,
          secondaryItem = _this$props5.secondaryItem,
          tertiaryItem = _this$props5.tertiaryItem;

      var navItem = _this.navItem();
      return {
        primary: depth === 'primary' ? navItem : primaryItem,
        secondary: depth === 'secondary' ? navItem : secondaryItem,
        tertiary: depth === 'tertiary' ? navItem : tertiaryItem
      };
    }, _this.setActive = function () {
      _this.props.setActivePath(_this.idPath());
    }, _this.id = function () {
      var _this$navItem2 = _this.navItem(null, true),
          id = _this$navItem2.id,
          title = _this$navItem2.title; // Need to ignorePath here so we don't get an infinite call stack...


      return id || title || _this.props.index;
    }, _this.idPath = function () {
      return '' + _this.props.idPath + _this.id() + '/';
    }, _this.navItem = function (oldProps, ignorePath) {
      var props = oldProps || _this.props;
      // Properties of the item object take priority over individual item props
      var item = _extends({}, Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["getItemProps"])(props), props.item);
      // Automatically set the active, hovered, and selectedOnMobile properties based on current path...
      // ...But don't call idPath() when called from inside id(), or there will be an infinite loop.
      var valOrOnPath = function valOrOnPath(val, path) {
        return val || (ignorePath ? null : path && path.startsWith(_this.idPath()));
      };
      return _extends({}, item, {
        active: valOrOnPath(item.active, props.activePath),
        hovered: valOrOnPath(item.hovered, props.hoverPath),
        selectedOnMobile: valOrOnPath(item.selectedOnMobile, props.mobilePath),
        pinned: valOrOnPath(item.pinned, props.pinnedPath)
      });
    }, _this.pinNextDepth = function () {
      var _this$props6 = _this.props,
          isMobile = _this$props6.isMobile,
          depth = _this$props6.depth,
          setMobilePath = _this$props6.setMobilePath,
          forceHideSecondaryMenu = _this$props6.forceHideSecondaryMenu,
          setPinnedPath = _this$props6.setPinnedPath,
          updateNavOnPin = _this$props6.updateNavOnPin,
          idPath = _this$props6.idPath,
          pinnedPath = _this$props6.pinnedPath;

      var nextDepth = Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["getNextDepth"])(depth);
      if (isMobile) {
        // On mobile, the pin buttons act as back buttons instead.
        if (depth === 'primary') {
          // Going back to primary nav clears all selection.
          setMobilePath(null);
        } else if (depth === 'secondary') {
          // Going back to secondary nav de-selects this item and re-selects the parent.
          setMobilePath(idPath); // idPath prop, which is parent's path, not this.idPath().
        }
      } else {
        setPinnedPath(!pinnedPath ? _this.idPath() : null);
        if (pinnedPath) {
          forceHideSecondaryMenu();
          _this.onItemBlur(true);
        }
      }
      updateNavOnPin(_this.navItem(), nextDepth, !pinnedPath);
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  _createClass(BaseVerticalNavItemHelper, [{
    key: 'componentDidMount',
    value: function componentDidMount() {
      if (this.props.active) {
        this.props.setControlledActivePath(true);
      }
      if (this.props.hovered) {
        this.props.setControlledHoverPath(true);
      }
      if (this.props.selectedOnMobile) {
        this.props.setControlledMobilePath(true);
      }
      if (this.props.pinned) {
        this.props.setControlledPinnedPath(true);
      }
      if (this.navItem().initialActive) {
        this.setActive();
      }
    }
  }, {
    key: 'componentWillReceiveProps',
    value: function componentWillReceiveProps(newProps) {
      var _props = this.props,
          setControlledActivePath = _props.setControlledActivePath,
          setControlledHoverPath = _props.setControlledHoverPath,
          setControlledMobilePath = _props.setControlledMobilePath,
          setControlledPinnedPath = _props.setControlledPinnedPath;

      if (!this.props.active && newProps.active) {
        // If the active prop is being added, make sure the activePath is in sync.
        if (newProps.activePath !== this.idPath()) {
          this.setActive();
        }
        setControlledActivePath(true);
      }
      if (!this.props.hovered && newProps.hovered) {
        // If the hovered prop is being added, make sure the hoverPath is in sync.
        if (newProps.hoverPath !== this.idPath()) {
          this.setHovered();
        }
        setControlledHoverPath(true);
      }
      if (!this.props.selectedOnMobile && newProps.selectedOnMobile) {
        // If the selectedOnMobile prop is being added, make sure the mobilePath is in sync.
        if (newProps.mobilePath !== this.idPath()) {
          this.setMobilePath(this.idPath());
        }
        setControlledMobilePath(true);
      }
      if (!this.props.pinned && newProps.pinned) {
        // If the pinned prop is being added, make sure the pinnedPath is in sync.
        if (newProps.pinnedPath !== this.idPath()) {
          this.setPinnedPath(this.idPath());
        }
        setControlledPinnedPath(true);
      }
    }
  }, {
    key: 'setHovered',
    value: function setHovered() {
      this.props.setHoverPath(this.idPath());
    }
  }, {
    key: 'render',
    value: function render() {
      var _classNames,
          _this2 = this;

      var _props2 = this.props,
          pinnableMenus = _props2.pinnableMenus,
          hiddenIcons = _props2.hiddenIcons,
          isDivider = _props2.isDivider,
          navCollapsed = _props2.navCollapsed,
          showMobileSecondary = _props2.showMobileSecondary,
          showMobileTertiary = _props2.showMobileTertiary,
          showBadges = _props2.showBadges,
          children = _props2.children,
          isMobile = _props2.isMobile,
          pinnedPath = _props2.pinnedPath,
          id = _props2.id,
          dataID = _props2.dataID;

      // The nav item can either be passed directly as one item object prop, or as individual props.

      var navItem = this.navItem();
      var active = navItem.active,
          hovered = navItem.hovered,
          selectedOnMobile = navItem.selectedOnMobile,
          pinned = navItem.pinned,
          title = navItem.title,
          iconClass = navItem.iconClass,
          badges = navItem.badges,
          subItems = navItem.subItems,
          href = navItem.href,
          onClick = navItem.onClick,
          className = navItem.className;


      var depth = this.props.depth || 'primary';
      var nextDepth = Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["getNextDepth"])(depth);
      var NextDepthItem = Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["componentForDepth"])(nextDepth);

      var childItemComponents = Object(_common_helpers__WEBPACK_IMPORTED_MODULE_8__["filterChildren"])(children, _VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["isNavItem"]) || subItems && subItems.length > 0 && subItems.map(function (childItem) {
        return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(NextDepthItem, { item: childItem, key: childItem.title });
      });

      if (!childItemComponents && !href && !onClick) {
        // eslint-disable-next-line
        console.warn('Warning: Non-navigable item at', this.idPath(), '\nNav items should have one or more of: subItems, href, onClick.');
      }

      var childBadgeComponents = Object(_common_helpers__WEBPACK_IMPORTED_MODULE_8__["filterChildren"])(children, function (child) {
        return Object(_common_helpers__WEBPACK_IMPORTED_MODULE_8__["hasDisplayName"])(child, _VerticalNavBadge__WEBPACK_IMPORTED_MODULE_7__["default"].displayName);
      }) || badges && badges.length > 0 && badges.map(function (badge) {
        var badgeKey = badge.badgeClass || badge.iconClass || badge.tooltip || badge.count;
        return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_VerticalNavBadge__WEBPACK_IMPORTED_MODULE_7__["default"], _extends({}, badge, { key: badgeKey }));
      });

      var onPinnedPath = pinnedPath && pinnedPath.startsWith(this.idPath());

      var icon = iconClass && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('span', { className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(iconClass, { hidden: hiddenIcons }), title: title });

      var item = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _ListGroup__WEBPACK_IMPORTED_MODULE_4__["ListGroupItem"],
        {
          listItem: true // Renders as <li>. Other props can change this, see logic in react-bootstrap's ListGroupItem.
          , className: classnames__WEBPACK_IMPORTED_MODULE_2___default()((_classNames = {}, _defineProperty(_classNames, nextDepth + '-nav-item-pf', depth !== 'tertiary' && childItemComponents && childItemComponents.length > 0), _defineProperty(_classNames, 'active', active || pinned && pinnableMenus), _defineProperty(_classNames, 'is-hover', pinnableMenus && onPinnedPath || depth !== 'tertiary' && hovered), _defineProperty(_classNames, 'mobile-nav-item-pf', selectedOnMobile && (depth === 'primary' && showMobileSecondary || depth === 'secondary')), _defineProperty(_classNames, 'mobile-secondary-item-pf', selectedOnMobile && depth === 'primary' && showMobileTertiary), _classNames), className),
          onMouseEnter: this.onItemHover
          // NOTE onItemBlur takes a boolean, we want to prevent it being passed a truthy event.
          , onMouseLeave: function onMouseLeave(e) {
            return _this2.onItemBlur(false);
          }
        },
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          'a',
          { id: id, 'data-id': dataID, href: href || '#', onClick: this.onItemClick },
          depth === 'primary' && icon && (!isMobile && navCollapsed ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
            _OverlayTrigger__WEBPACK_IMPORTED_MODULE_5__["OverlayTrigger"],
            { placement: 'bottom', overlay: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
                _Tooltip__WEBPACK_IMPORTED_MODULE_6__["Tooltip"],
                { id: title },
                title
              ) },
            icon
          ) : icon),
          react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
            'span',
            { className: 'list-group-item-value' },
            title
          ),
          showBadges && childBadgeComponents && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
            'div',
            { className: 'badge-container-pf' },
            childBadgeComponents
          )
        ),
        childItemComponents && childItemComponents.length > 0 && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          'div',
          { className: 'nav-pf-' + nextDepth + '-nav' },
          react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
            'div',
            { className: 'nav-item-pf-header' },
            (pinnableMenus || isMobile) && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('a', {
              className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(nextDepth + '-collapse-toggle-pf', {
                collapsed: onPinnedPath
              }),
              onClick: this.pinNextDepth
            }),
            react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
              'span',
              null,
              title
            )
          ),
          react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
            _VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["NavContextProvider"],
            _extends({}, this.props, { idPath: this.idPath(), item: navItem }),
            react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
              _ListGroup__WEBPACK_IMPORTED_MODULE_4__["ListGroup"],
              { componentClass: 'ul' },
              childItemComponents
            )
          )
        )
      );

      var divider = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _ListGroup__WEBPACK_IMPORTED_MODULE_4__["ListGroupItem"],
        { listItem: true },
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_VerticalNavDividerItem__WEBPACK_IMPORTED_MODULE_9__["default"], { title: title })
      );

      return isDivider ? divider : item;
    }
  }]);

  return BaseVerticalNavItemHelper;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

BaseVerticalNavItemHelper.propTypes = _extends({}, _VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["itemObjectTypes"], _VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["navContextTypes"], {
  /** Properties of the nav item, as an object. Can alternatively be passed as individual props. */
  item: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["itemObjectTypes"]),
  /**
   * Sub-items, passed as JSX children (SecondaryItem, TertiaryItem).
   * Can alternatively pass subItems array as part of item or as its own prop.
   */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Divider bool */
  isDivider: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** should Prevent Href */
  preventHref: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** anchor id */
  id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** anchor data-id */
  dataID: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
});

BaseVerticalNavItemHelper.defaultProps = {
  item: {},
  children: null,
  title: '',
  isDivider: false,
  preventHref: true,
  id: null,
  dataID: null
};

var VerticalNavItemHelper = Object(recompose__WEBPACK_IMPORTED_MODULE_3__["getContext"])(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["navContextTypes"])(BaseVerticalNavItemHelper);

VerticalNavItemHelper.displayName = 'VerticalNavItemHelper';
VerticalNavItemHelper.propTypes = _extends({}, BaseVerticalNavItemHelper.propTypes);

/* harmony default export */ __webpack_exports__["default"] = (VerticalNavItemHelper);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavMasthead.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavMasthead.js ***!
  \**********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var recompose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! recompose */ "./node_modules/patternfly-react/node_modules/recompose/es/Recompose.js");
/* harmony import */ var react_bootstrap_es_Navbar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-bootstrap/es/Navbar */ "./node_modules/react-bootstrap/es/Navbar.js");
/* harmony import */ var _VerticalNavBrand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./VerticalNavBrand */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavBrand.js");
/* harmony import */ var _VerticalNavConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./VerticalNavConstants */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavConstants.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; };










/**
 * VerticalNavMasthead - the first child of a VerticalNav component
 */
var BaseVerticalNavMasthead = function BaseVerticalNavMasthead(props) {
  var children = props.children,
      href = props.href,
      iconImg = props.iconImg,
      titleImg = props.titleImg,
      title = props.title;


  var brandChildren = Object(_common_helpers__WEBPACK_IMPORTED_MODULE_6__["filterChildren"])(children, function (child) {
    return Object(_common_helpers__WEBPACK_IMPORTED_MODULE_6__["hasDisplayName"])(child, _VerticalNavBrand__WEBPACK_IMPORTED_MODULE_4__["default"].displayName);
  });
  var otherChildren = Object(_common_helpers__WEBPACK_IMPORTED_MODULE_6__["filterChildren"])(children, function (child) {
    return !Object(_common_helpers__WEBPACK_IMPORTED_MODULE_6__["hasDisplayName"])(child, _VerticalNavBrand__WEBPACK_IMPORTED_MODULE_4__["default"].displayName);
  });

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,
    null,
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      react_bootstrap_es_Navbar__WEBPACK_IMPORTED_MODULE_3__["default"].Header,
      null,
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        react_bootstrap_es_Navbar__WEBPACK_IMPORTED_MODULE_3__["default"].Toggle,
        { onClick: props.updateNavOnMenuToggleClick },
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          'span',
          { className: 'sr-only' },
          'Toggle navigation'
        ),
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('span', { className: 'icon-bar' }),
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('span', { className: 'icon-bar' }),
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement('span', { className: 'icon-bar' })
      ),
      brandChildren && brandChildren.length > 0 ? brandChildren : react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_VerticalNavBrand__WEBPACK_IMPORTED_MODULE_4__["default"], { title: title, titleImg: titleImg, iconImg: iconImg, href: href })
    ),
    otherChildren
  );
};

BaseVerticalNavMasthead.propTypes = _extends({}, _VerticalNavConstants__WEBPACK_IMPORTED_MODULE_5__["navContextTypes"], {
  /** See VerticalNavBrand.propTypes */
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** See VerticalNavBrand.propTypes */
  titleImg: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** See VerticalNavBrand.propTypes */
  iconImg: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** See VerticalNavBrand.propTypes */
  href: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** See VerticalNavBrand.propTypes */
  updateNavOnMenuToggleClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** If any non-Brand children are passed, they will be rendered after the .navbar-header */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
});
BaseVerticalNavMasthead.defaultProps = {
  title: '',
  titleImg: '',
  iconImg: '',
  href: '',
  updateNavOnMenuToggleClick: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
  children: null
};

var VerticalNavMasthead = Object(recompose__WEBPACK_IMPORTED_MODULE_2__["getContext"])(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_5__["navContextTypes"])(BaseVerticalNavMasthead);

VerticalNavMasthead.propTypes = _extends({}, BaseVerticalNavMasthead.propTypes);

VerticalNavMasthead.displayName = 'VerticalNav.Masthead';

/* harmony default export */ __webpack_exports__["default"] = (VerticalNavMasthead);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavSecondaryItem.js":
/*!***************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavSecondaryItem.js ***!
  \***************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var recompose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! recompose */ "./node_modules/patternfly-react/node_modules/recompose/es/Recompose.js");
/* harmony import */ var _VerticalNavConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./VerticalNavConstants */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavConstants.js");
/* harmony import */ var _VerticalNavItemHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./VerticalNavItemHelper */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavItemHelper.js");
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; };






/**
 * VerticalNav.SecondaryItem - a child component for secondary nav items under VerticalNav
 * This is a thin wrapper for VerticalNavItemHelper, to expose the warnings and the explicit-depth API.
 * In the future, we could lift some of the secondary-specific code from Helper into this file.
 */
var BaseVerticalNavSecondaryItem = function BaseVerticalNavSecondaryItem(props) {
  if (Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_2__["wrongDepth"])(props, 'secondary')) return Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_2__["correctDepth"])(props);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_VerticalNavItemHelper__WEBPACK_IMPORTED_MODULE_3__["default"], props);
};

BaseVerticalNavSecondaryItem.propTypes = _extends({}, _VerticalNavItemHelper__WEBPACK_IMPORTED_MODULE_3__["default"].propTypes);

var VerticalNavSecondaryItem = Object(recompose__WEBPACK_IMPORTED_MODULE_1__["getContext"])(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_2__["navContextTypes"])(BaseVerticalNavSecondaryItem);

VerticalNavSecondaryItem.propTypes = _extends({}, BaseVerticalNavSecondaryItem.propTypes);
VerticalNavSecondaryItem.displayName = 'VerticalNav.SecondaryItem';

/* harmony default export */ __webpack_exports__["default"] = (VerticalNavSecondaryItem);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavTertiaryItem.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavTertiaryItem.js ***!
  \**************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var recompose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! recompose */ "./node_modules/patternfly-react/node_modules/recompose/es/Recompose.js");
/* harmony import */ var _VerticalNavConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./VerticalNavConstants */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavConstants.js");
/* harmony import */ var _VerticalNavItemHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./VerticalNavItemHelper */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavItemHelper.js");
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; };






/**
 * VerticalNav.TertiaryItem - a child component for tertiary nav items under VerticalNav
 * This is a thin wrapper for VerticalNavItemHelper, to expose the warnings and the explicit-depth API.
 * In the future, we could lift some of the tertiary-specific code from Helper into this file.
 */
var BaseVerticalNavTertiaryItem = function BaseVerticalNavTertiaryItem(props) {
  if (Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_2__["wrongDepth"])(props, 'tertiary')) return Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_2__["correctDepth"])(props);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_VerticalNavItemHelper__WEBPACK_IMPORTED_MODULE_3__["default"], props);
};

BaseVerticalNavTertiaryItem.propTypes = _extends({}, _VerticalNavItemHelper__WEBPACK_IMPORTED_MODULE_3__["default"].propTypes);

var VerticalNavTertiaryItem = Object(recompose__WEBPACK_IMPORTED_MODULE_1__["getContext"])(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_2__["navContextTypes"])(BaseVerticalNavTertiaryItem);

VerticalNavTertiaryItem.propTypes = _extends({}, BaseVerticalNavTertiaryItem.propTypes);
VerticalNavTertiaryItem.displayName = 'VerticalNav.TertiaryItem';

/* harmony default export */ __webpack_exports__["default"] = (VerticalNavTertiaryItem);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/index.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/VerticalNav/index.js ***!
  \********************************************************************************/
/*! exports provided: VerticalNav, VerticalNavMasthead, VerticalNavItem, VerticalNavSecondaryItem, VerticalNavTertiaryItem, VerticalNavBrand, VerticalNavIconBar, VerticalNavBadge, VerticalNavDividerItem */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _VerticalNav__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VerticalNav */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNav.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNav", function() { return _VerticalNav__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _VerticalNavMasthead__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VerticalNavMasthead */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavMasthead.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNavMasthead", function() { return _VerticalNavMasthead__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _VerticalNavItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./VerticalNavItem */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNavItem", function() { return _VerticalNavItem__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _VerticalNavSecondaryItem__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./VerticalNavSecondaryItem */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavSecondaryItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNavSecondaryItem", function() { return _VerticalNavSecondaryItem__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _VerticalNavTertiaryItem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./VerticalNavTertiaryItem */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavTertiaryItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNavTertiaryItem", function() { return _VerticalNavTertiaryItem__WEBPACK_IMPORTED_MODULE_4__["default"]; });

/* harmony import */ var _VerticalNavBrand__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./VerticalNavBrand */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavBrand.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNavBrand", function() { return _VerticalNavBrand__WEBPACK_IMPORTED_MODULE_5__["default"]; });

/* harmony import */ var _VerticalNavIconBar__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./VerticalNavIconBar */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavIconBar.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNavIconBar", function() { return _VerticalNavIconBar__WEBPACK_IMPORTED_MODULE_6__["default"]; });

/* harmony import */ var _VerticalNavBadge__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./VerticalNavBadge */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavBadge.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNavBadge", function() { return _VerticalNavBadge__WEBPACK_IMPORTED_MODULE_7__["default"]; });

/* harmony import */ var _VerticalNavDividerItem__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./VerticalNavDividerItem */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavDividerItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNavDividerItem", function() { return _VerticalNavDividerItem__WEBPACK_IMPORTED_MODULE_8__["default"]; });













/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/StatefulWizardPattern.js":
/*!****************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/StatefulWizardPattern.js ***!
  \****************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _WizardPattern__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./WizardPattern */ "./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/WizardPattern.js");
/* harmony import */ var _WizardPatternConstants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./WizardPatternConstants */ "./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/WizardPatternConstants.js");
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
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; };

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; }; }();

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }








/**
 * StatefulWizardPattern - the Stateful Wizard Pattern component.
 */

var StatefulWizardPattern = function (_React$Component) {
  _inherits(StatefulWizardPattern, _React$Component);

  _createClass(StatefulWizardPattern, null, [{
    key: 'getDerivedStateFromProps',
    value: function getDerivedStateFromProps(nextProps, prevState) {
      return {
        activeStepIndex: Object(_index__WEBPACK_IMPORTED_MODULE_4__["propOrState"])(nextProps, prevState, 'activeStepIndex')
      };
    }
  }]);

  function StatefulWizardPattern(props) {
    _classCallCheck(this, StatefulWizardPattern);

    var _this = _possibleConstructorReturn(this, (StatefulWizardPattern.__proto__ || Object.getPrototypeOf(StatefulWizardPattern)).call(this, props));

    _this.onStepChanged = function (newStepIndex) {
      var _this$props = _this.props,
          shouldPreventStepChange = _this$props.shouldPreventStepChange,
          steps = _this$props.steps;
      var activeStepIndex = _this.state.activeStepIndex;
      var shouldPreventExit = steps[activeStepIndex].shouldPreventExit;
      var shouldPreventEnter = steps[newStepIndex].shouldPreventEnter;

      if (shouldPreventStepChange(activeStepIndex, newStepIndex) || shouldPreventExit && shouldPreventExit(newStepIndex) || shouldPreventEnter && shouldPreventEnter(activeStepIndex)) {
        return;
      }
      _this.setState({ activeStepIndex: newStepIndex });
    };

    _this.state = { activeStepIndex: 0 };
    return _this;
  }

  _createClass(StatefulWizardPattern, [{
    key: 'render',
    value: function render() {
      var _props = this.props,
          shouldDisableNextStep = _props.shouldDisableNextStep,
          shouldDisablePreviousStep = _props.shouldDisablePreviousStep,
          shouldDisableCancelButton = _props.shouldDisableCancelButton,
          otherProps = _objectWithoutProperties(_props, ['shouldDisableNextStep', 'shouldDisablePreviousStep', 'shouldDisableCancelButton']);

      var activeStepIndex = this.state.activeStepIndex;
      // NOTE: the steps array is passed down with ...otherProps, including any shouldPreventEnter or shouldPreventExit functions inside it.
      // These functions are for StatefulWizardPattern only and should not be used in WizardPattern despite being passed down here.

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_WizardPattern__WEBPACK_IMPORTED_MODULE_2__["default"], _extends({
        nextStepDisabled: shouldDisableNextStep(activeStepIndex),
        previousStepDisabled: shouldDisablePreviousStep(activeStepIndex),
        cancelButtonDisabled: shouldDisableCancelButton(activeStepIndex)
      }, Object(_index__WEBPACK_IMPORTED_MODULE_4__["excludeKeys"])(otherProps, ['shouldPreventStepChange']), {
        activeStepIndex: activeStepIndex // Value from state, as set by getDerivedStateFromProps
        , onStepChanged: this.onStepChanged
      }));
    }
  }]);

  return StatefulWizardPattern;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

StatefulWizardPattern.propTypes = _extends({}, Object(_index__WEBPACK_IMPORTED_MODULE_4__["excludeKeys"])(_WizardPattern__WEBPACK_IMPORTED_MODULE_2__["default"].propTypes, ['activeStepIndex', 'nextStepDisabled', 'previousStepDisabled', 'cancelButtonDisabled']), {
  steps: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_extends({}, _WizardPatternConstants__WEBPACK_IMPORTED_MODULE_3__["wizardStepShape"], {
    shouldPreventEnter: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
    shouldPreventExit: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
  }))),
  shouldDisableNextStep: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  shouldDisablePreviousStep: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  shouldDisableCancelButton: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  shouldPreventStepChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
});

StatefulWizardPattern.defaultProps = _extends({}, Object(_index__WEBPACK_IMPORTED_MODULE_4__["excludeKeys"])(_WizardPattern__WEBPACK_IMPORTED_MODULE_2__["default"].defaultProps, ['activeStepIndex', 'nextStepDisabled', 'previousStepDisabled', 'cancelButtonDisabled']), {
  shouldDisableNextStep: _index__WEBPACK_IMPORTED_MODULE_4__["noop"],
  shouldDisablePreviousStep: _index__WEBPACK_IMPORTED_MODULE_4__["noop"],
  shouldDisableCancelButton: _index__WEBPACK_IMPORTED_MODULE_4__["noop"],
  shouldPreventStepChange: _index__WEBPACK_IMPORTED_MODULE_4__["noop"]
});

StatefulWizardPattern.displayName = 'StatefulWizardPattern';

/* harmony default export */ __webpack_exports__["default"] = (StatefulWizardPattern);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/WizardPattern.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/WizardPattern.js ***!
  \********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _WizardPatternBody__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./WizardPatternBody */ "./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/WizardPatternBody.js");
/* harmony import */ var _WizardPatternConstants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./WizardPatternConstants */ "./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/WizardPatternConstants.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }







/**
 * WizardPattern - the Wizard Pattern component.
 */
var WizardPattern = function WizardPattern(_ref) {
  var steps = _ref.steps,
      activeStepIndex = _ref.activeStepIndex,
      onStepChanged = _ref.onStepChanged,
      onNext = _ref.onNext,
      onBack = _ref.onBack,
      nextStepDisabled = _ref.nextStepDisabled,
      previousStepDisabled = _ref.previousStepDisabled,
      cancelButtonDisabled = _ref.cancelButtonDisabled,
      title = _ref.title,
      loadingTitle = _ref.loadingTitle,
      loadingMessage = _ref.loadingMessage,
      show = _ref.show,
      onHide = _ref.onHide,
      onExited = _ref.onExited,
      stepButtonsDisabled = _ref.stepButtonsDisabled,
      cancelText = _ref.cancelText,
      backText = _ref.backText,
      nextText = _ref.nextText,
      closeText = _ref.closeText,
      loading = _ref.loading,
      nextButtonRef = _ref.nextButtonRef,
      bodyHeader = _ref.bodyHeader,
      children = _ref.children,
      props = _objectWithoutProperties(_ref, ['steps', 'activeStepIndex', 'onStepChanged', 'onNext', 'onBack', 'nextStepDisabled', 'previousStepDisabled', 'cancelButtonDisabled', 'title', 'loadingTitle', 'loadingMessage', 'show', 'onHide', 'onExited', 'stepButtonsDisabled', 'cancelText', 'backText', 'nextText', 'closeText', 'loading', 'nextButtonRef', 'bodyHeader', 'children']);

  var onFirstStep = activeStepIndex === 0;
  var onFinalStep = activeStepIndex === steps.length - 1;

  var onHideClick = function onHideClick() {
    onHide(onFinalStep);
  };

  var onBackClick = function onBackClick() {
    goToStep(Math.max(activeStepIndex - 1, 0));
  };

  var onNextClick = function onNextClick() {
    goToStep(Math.min(activeStepIndex + 1, steps.length - 1));
  };

  var getStep = function getStep() {
    var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : activeStepIndex;
    return steps[index];
  };

  var getPrevStep = function getPrevStep() {
    var relativeToIndex = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : activeStepIndex;
    return relativeToIndex > 0 && steps[relativeToIndex - 1];
  };

  var getNextStep = function getNextStep() {
    var relativeToIndex = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : activeStepIndex;
    return relativeToIndex < steps.length - 1 && steps[relativeToIndex + 1];
  };

  var activeStep = getStep();

  var goToStep = function goToStep(newStepIndex) {
    if (shouldPreventGoToStep(newStepIndex)) return;
    if (newStepIndex === activeStepIndex + 1) {
      var stepOnNextResult = activeStep.onNext && activeStep.onNext();
      var propOnNextResult = onNext(newStepIndex);
      var stepFailed = stepOnNextResult === false || propOnNextResult === false;
      if (stepFailed) return;
    }
    if (newStepIndex === activeStepIndex - 1) {
      var _stepFailed = onBack(newStepIndex) === false;
      if (_stepFailed) return;
    }
    if (onStepChanged) onStepChanged(newStepIndex);
  };

  var shouldPreventGoToStep = function shouldPreventGoToStep(newStepIndex) {
    var targetStep = getStep(newStepIndex);
    var stepBeforeTarget = getPrevStep(newStepIndex);

    var preventExitActive = activeStep.preventExit;
    var preventEnterTarget = targetStep.preventEnter || stepBeforeTarget && stepBeforeTarget.isInvalid;
    var nextStepClicked = newStepIndex > activeStepIndex;

    return preventExitActive || preventEnterTarget || nextStepClicked ? nextStepDisabled : previousStepDisabled;
  };

  var activeStepStr = (activeStepIndex + 1).toString();

  var prevStepUnreachable = previousStepDisabled || onFirstStep || activeStep.preventExit || getPrevStep().preventEnter;
  // nextStepUnreachable is still true onFinalStep, because the Next button turns into a Close button
  var nextStepUnreachable = nextStepDisabled || activeStep.isInvalid || activeStep.preventExit || getNextStep().preventEnter;

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _index__WEBPACK_IMPORTED_MODULE_2__["Wizard"],
    _extends({ show: show, onHide: onHideClick, onExited: onExited }, props),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Wizard"].Header, { onClose: onHideClick, title: title }),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _index__WEBPACK_IMPORTED_MODULE_2__["Wizard"].Body,
      null,
      bodyHeader,
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_WizardPatternBody__WEBPACK_IMPORTED_MODULE_3__["default"], {
        loadingTitle: loadingTitle,
        loadingMessage: loadingMessage,
        loading: loading,
        steps: steps,
        activeStepIndex: activeStepIndex,
        activeStepStr: activeStepStr,
        goToStep: goToStep,
        nextStepDisabled: nextStepDisabled,
        stepButtonsDisabled: stepButtonsDisabled
      })
    ),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _index__WEBPACK_IMPORTED_MODULE_2__["Wizard"].Footer,
      null,
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _index__WEBPACK_IMPORTED_MODULE_2__["Button"],
        { bsStyle: 'default', className: 'btn-cancel', disabled: cancelButtonDisabled, onClick: onHideClick },
        cancelText
      ),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _index__WEBPACK_IMPORTED_MODULE_2__["Button"],
        { bsStyle: 'default', onClick: onBackClick, disabled: prevStepUnreachable },
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Icon"], { type: 'fa', name: 'angle-left' }),
        backText
      ),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _index__WEBPACK_IMPORTED_MODULE_2__["Button"],
        {
          bsStyle: 'primary',
          onClick: onFinalStep ? onHideClick : onNextClick,
          disabled: nextStepUnreachable,
          ref: nextButtonRef
        },
        onFinalStep ? closeText : react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,
          null,
          nextText,
          react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Icon"], { type: 'fa', name: 'angle-right' })
        )
      )
    ),
    children
  );
};

WizardPattern.propTypes = {
  activeStepIndex: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  show: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node]),
  onHide: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  onExited: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  onBack: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  onNext: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  onStepChanged: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  loadingTitle: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  loadingMessage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  loading: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  cancelText: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  backText: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  nextText: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  closeText: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  steps: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_WizardPatternConstants__WEBPACK_IMPORTED_MODULE_4__["wizardStepShape"])),
  nextStepDisabled: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  previousStepDisabled: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  stepButtonsDisabled: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  cancelButtonDisabled: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  nextButtonRef: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  bodyHeader: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};

WizardPattern.defaultProps = {
  show: false,
  title: '',
  onHide: _index__WEBPACK_IMPORTED_MODULE_2__["noop"],
  onExited: _index__WEBPACK_IMPORTED_MODULE_2__["noop"],
  onBack: _index__WEBPACK_IMPORTED_MODULE_2__["noop"],
  onNext: _index__WEBPACK_IMPORTED_MODULE_2__["noop"],
  onStepChanged: _index__WEBPACK_IMPORTED_MODULE_2__["noop"],
  loadingTitle: 'Loading Wizard...',
  loadingMessage: 'Loading...',
  loading: false,
  cancelText: 'Cancel',
  backText: 'Back',
  nextText: 'Next',
  closeText: 'Close',
  steps: [],
  nextStepDisabled: false,
  previousStepDisabled: false,
  stepButtonsDisabled: false,
  cancelButtonDisabled: false,
  nextButtonRef: _index__WEBPACK_IMPORTED_MODULE_2__["noop"],
  bodyHeader: null,
  children: null
};

WizardPattern.displayName = 'WizardPattern';

/* harmony default export */ __webpack_exports__["default"] = (WizardPattern);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/WizardPatternBody.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/WizardPatternBody.js ***!
  \************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _WizardPatternConstants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./WizardPatternConstants */ "./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/WizardPatternConstants.js");
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; };






/**
 * WizardPatternBody - the Wizard Pattern Body component.
 */
var WizardPatternBody = function WizardPatternBody(_ref) {
  var loading = _ref.loading,
      steps = _ref.steps,
      activeStepIndex = _ref.activeStepIndex,
      goToStep = _ref.goToStep,
      loadingTitle = _ref.loadingTitle,
      loadingMessage = _ref.loadingMessage,
      activeStepStr = _ref.activeStepStr;

  if (loading) {
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _index__WEBPACK_IMPORTED_MODULE_2__["Wizard"].Row,
      null,
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _index__WEBPACK_IMPORTED_MODULE_2__["Wizard"].Main,
        null,
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          _index__WEBPACK_IMPORTED_MODULE_2__["EmptyState"],
          null,
          react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Spinner"], { size: 'lg', className: 'blank-slate-pf-icon', loading: true }),
          react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
            _index__WEBPACK_IMPORTED_MODULE_2__["EmptyState"].Action,
            null,
            react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
              'h3',
              null,
              loadingTitle
            )
          ),
          react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
            _index__WEBPACK_IMPORTED_MODULE_2__["EmptyState"].Action,
            { secondary: true },
            react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
              'p',
              null,
              loadingMessage
            )
          )
        )
      )
    );
  }

  var stepProps = function stepProps(stepIndex, title) {
    var label = (stepIndex + 1).toString();
    return {
      key: 'wizard-step-' + title,
      stepIndex: stepIndex,
      label: label,
      step: label,
      title: title,
      activeStep: activeStepStr
    };
  };

  if (steps && steps.length) {
    var step = steps[activeStepIndex];

    var renderedStep = step && step.render && step.render(activeStepIndex, step.title);

    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,
      null,
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Wizard"].Steps, {
        steps: steps.map(function (stepObj, index) {
          return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Wizard"].Step, _extends({}, stepProps(index, stepObj.title), { onClick: function onClick() {
              return goToStep(index);
            } }));
        })
      }),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        _index__WEBPACK_IMPORTED_MODULE_2__["Wizard"].Row,
        null,
        react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
          _index__WEBPACK_IMPORTED_MODULE_2__["Wizard"].Main,
          null,
          react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
            _index__WEBPACK_IMPORTED_MODULE_2__["Wizard"].Contents,
            { stepIndex: activeStepIndex, activeStepIndex: activeStepIndex },
            renderedStep
          )
        )
      )
    );
  }
  return null;
};

WizardPatternBody.propTypes = {
  loadingTitle: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  loadingMessage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  loading: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  steps: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_WizardPatternConstants__WEBPACK_IMPORTED_MODULE_3__["wizardStepShape"])),
  activeStepIndex: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  activeStepStr: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  goToStep: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};

WizardPatternBody.defaultProps = {
  loadingTitle: 'Loading Wizard...',
  loadingMessage: 'Loading...',
  loading: false,
  steps: [],
  activeStepIndex: 0,
  activeStepStr: '1',
  goToStep: _index__WEBPACK_IMPORTED_MODULE_2__["noop"]
};

/* harmony default export */ __webpack_exports__["default"] = (WizardPatternBody);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/WizardPatternConstants.js":
/*!*****************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/WizardPatternConstants.js ***!
  \*****************************************************************************************************/
/*! exports provided: wizardStepShape */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wizardStepShape", function() { return wizardStepShape; });
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);


var wizardStepShape = {
  title: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string,
  render: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func,
  onNext: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func,
  isInvalid: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.bool,
  preventEnter: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.bool,
  preventExit: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.bool
};



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/Wizard.js":
/*!****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/Wizard.js ***!
  \****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Modal */ "./node_modules/patternfly-react/dist/esm/components/Modal/index.js");
/* harmony import */ var _WizardBody__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./WizardBody */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardBody.js");
/* harmony import */ var _WizardContents__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./WizardContents */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardContents.js");
/* harmony import */ var _WizardFooter__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./WizardFooter */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardFooter.js");
/* harmony import */ var _WizardHeader__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./WizardHeader */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardHeader.js");
/* harmony import */ var _WizardMain__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./WizardMain */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardMain.js");
/* harmony import */ var _WizardReviewContent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./WizardReviewContent */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewContent.js");
/* harmony import */ var _WizardReviewItem__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./WizardReviewItem */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewItem.js");
/* harmony import */ var _WizardReviewStep__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./WizardReviewStep */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewStep.js");
/* harmony import */ var _WizardReviewSteps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./WizardReviewSteps */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewSteps.js");
/* harmony import */ var _WizardReviewSubStep__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./WizardReviewSubStep */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewSubStep.js");
/* harmony import */ var _WizardReviewSubSteps__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./WizardReviewSubSteps */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewSubSteps.js");
/* harmony import */ var _WizardRow__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./WizardRow */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardRow.js");
/* harmony import */ var _WizardSidebar__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./WizardSidebar */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSidebar.js");
/* harmony import */ var _WizardSidebarGroup__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./WizardSidebarGroup */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSidebarGroup.js");
/* harmony import */ var _WizardSidebarGroupItem__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./WizardSidebarGroupItem */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSidebarGroupItem.js");
/* harmony import */ var _WizardStep__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./WizardStep */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardStep.js");
/* harmony import */ var _WizardSteps__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./WizardSteps */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSteps.js");
/* harmony import */ var _WizardSubStep__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./WizardSubStep */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSubStep.js");
/* harmony import */ var _Patterns_WizardPattern__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./Patterns/WizardPattern */ "./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/WizardPattern.js");
/* harmony import */ var _Patterns_WizardPatternBody__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./Patterns/WizardPatternBody */ "./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/WizardPatternBody.js");
/* harmony import */ var _Patterns_StatefulWizardPattern__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./Patterns/StatefulWizardPattern */ "./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/StatefulWizardPattern.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }




























/**
 * Wizard - main Wizard component.
 */
var Wizard = function Wizard(_ref) {
  var children = _ref.children,
      className = _ref.className,
      dialogClassName = _ref.dialogClassName,
      show = _ref.show,
      onClose = _ref.onClose,
      onExited = _ref.onExited,
      rest = _objectWithoutProperties(_ref, ['children', 'className', 'dialogClassName', 'show', 'onClose', 'onExited']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _Modal__WEBPACK_IMPORTED_MODULE_3__["Modal"],
    _extends({
      show: show,
      onHide: onClose,
      onExited: onExited,
      dialogClassName: dialogClassName || 'modal-lg wizard-pf'
    }, rest),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'div',
      { className: className },
      children
    )
  );
};
Wizard.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Wizard dialog class */
  dialogClassName: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** show modal */
  show: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  /** on close callback */
  onClose: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** on exited callback */
  onExited: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
Wizard.defaultProps = {
  children: null,
  className: '',
  dialogClassName: '',
  show: false,
  onClose: _common_helpers__WEBPACK_IMPORTED_MODULE_2__["noop"],
  onExited: _common_helpers__WEBPACK_IMPORTED_MODULE_2__["noop"]
};

Wizard.Body = _WizardBody__WEBPACK_IMPORTED_MODULE_4__["default"];
Wizard.Contents = _WizardContents__WEBPACK_IMPORTED_MODULE_5__["default"];
Wizard.Footer = _WizardFooter__WEBPACK_IMPORTED_MODULE_6__["default"];
Wizard.Header = _WizardHeader__WEBPACK_IMPORTED_MODULE_7__["default"];
Wizard.Main = _WizardMain__WEBPACK_IMPORTED_MODULE_8__["default"];
Wizard.ReviewContent = _WizardReviewContent__WEBPACK_IMPORTED_MODULE_9__["default"];
Wizard.ReviewItem = _WizardReviewItem__WEBPACK_IMPORTED_MODULE_10__["default"];
Wizard.ReviewStep = _WizardReviewStep__WEBPACK_IMPORTED_MODULE_11__["default"];
Wizard.ReviewSteps = _WizardReviewSteps__WEBPACK_IMPORTED_MODULE_12__["default"];
Wizard.ReviewSubStep = _WizardReviewSubStep__WEBPACK_IMPORTED_MODULE_13__["default"];
Wizard.ReviewSubSteps = _WizardReviewSubSteps__WEBPACK_IMPORTED_MODULE_14__["default"];
Wizard.Row = _WizardRow__WEBPACK_IMPORTED_MODULE_15__["default"];
Wizard.Sidebar = _WizardSidebar__WEBPACK_IMPORTED_MODULE_16__["default"];
Wizard.SidebarGroup = _WizardSidebarGroup__WEBPACK_IMPORTED_MODULE_17__["default"];
Wizard.SidebarGroupItem = _WizardSidebarGroupItem__WEBPACK_IMPORTED_MODULE_18__["default"];
Wizard.Step = _WizardStep__WEBPACK_IMPORTED_MODULE_19__["default"];
Wizard.Steps = _WizardSteps__WEBPACK_IMPORTED_MODULE_20__["default"];
Wizard.SubStep = _WizardSubStep__WEBPACK_IMPORTED_MODULE_21__["default"];

Wizard.Pattern = _Patterns_WizardPattern__WEBPACK_IMPORTED_MODULE_22__["default"];
Wizard.Pattern.Body = _Patterns_WizardPatternBody__WEBPACK_IMPORTED_MODULE_23__["default"];
Wizard.Pattern.Stateful = _Patterns_StatefulWizardPattern__WEBPACK_IMPORTED_MODULE_24__["default"];

/* harmony default export */ __webpack_exports__["default"] = (Wizard);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardBody.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardBody.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Modal */ "./node_modules/patternfly-react/dist/esm/components/Modal/index.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }






/**
 * WizardBody component for Patternfly React
 */
var WizardBody = function WizardBody(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('wizard-pf-body', 'clearfix', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _Modal__WEBPACK_IMPORTED_MODULE_3__["Modal"].Body,
    _extends({ className: classes }, props),
    children
  );
};
WizardBody.propTypes = {
  /** Children nodes  */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
WizardBody.defaultProps = {
  children: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (WizardBody);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardContents.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardContents.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





/**
 * WizardContents component for Patternfly React
 */
var WizardContents = function WizardContents(_ref) {
  var children = _ref.children,
      className = _ref.className,
      stepIndex = _ref.stepIndex,
      subStepIndex = _ref.subStepIndex,
      activeStepIndex = _ref.activeStepIndex,
      activeSubStepIndex = _ref.activeSubStepIndex,
      props = _objectWithoutProperties(_ref, ['children', 'className', 'stepIndex', 'subStepIndex', 'activeStepIndex', 'activeSubStepIndex']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('wizard-pf-contents', {
    // hide contents if the step is not active
    // OR if we have sub steps and this sub step is not active
    hidden: activeStepIndex !== stepIndex || activeSubStepIndex !== null && activeSubStepIndex !== subStepIndex
  }, className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    _extends({ className: classes }, props),
    children
  );
};
WizardContents.propTypes = {
  /** WizardStep nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** The wizard step index for these contents */
  stepIndex: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  /** The wizard sub step index for these contents */
  subStepIndex: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  /** The active wizard step index */
  activeStepIndex: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  /** The active wizard sub step index */
  activeSubStepIndex: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number
};
WizardContents.defaultProps = {
  children: null,
  className: '',
  subStepIndex: null,
  activeSubStepIndex: null
};
/* harmony default export */ __webpack_exports__["default"] = (WizardContents);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardFooter.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardFooter.js ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Modal */ "./node_modules/patternfly-react/dist/esm/components/Modal/index.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }






/**
 * WizardFooter component for Patternfly React
 */
var WizardFooter = function WizardFooter(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('wizard-pf-footer', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _Modal__WEBPACK_IMPORTED_MODULE_3__["Modal"].Footer,
    _extends({ className: classes }, props),
    children
  );
};
WizardFooter.propTypes = {
  /** Children nodes  */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
WizardFooter.defaultProps = {
  children: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (WizardFooter);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardHeader.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardHeader.js ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
/* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Modal */ "./node_modules/patternfly-react/dist/esm/components/Modal/index.js");
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }






/**
 * WizardHeader component for Patternfly React
 */
var WizardHeader = function WizardHeader(_ref) {
  var onClose = _ref.onClose,
      title = _ref.title,
      props = _objectWithoutProperties(_ref, ['onClose', 'title']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _Modal__WEBPACK_IMPORTED_MODULE_3__["Modal"].Header,
    props,
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'button',
      { className: 'close', onClick: onClose, 'aria-hidden': 'true', 'aria-label': 'Close' },
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_2__["Icon"], { type: 'pf', name: 'close' })
    ),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _Modal__WEBPACK_IMPORTED_MODULE_3__["Modal"].Title,
      null,
      title
    )
  );
};
WizardHeader.propTypes = {
  /** onClose callback */
  onClose: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func.isRequired,
  /** The wizard title */
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
WizardHeader.defaultProps = {
  title: null
};
/* harmony default export */ __webpack_exports__["default"] = (WizardHeader);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardMain.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardMain.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





/**
 * WizardMain component for Patternfly React
 */
var WizardMain = function WizardMain(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('wizard-pf-main', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    _extends({ className: classes }, props),
    children
  );
};
WizardMain.propTypes = {
  /** WizardStep nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
WizardMain.defaultProps = {
  children: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (WizardMain);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewContent.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewContent.js ***!
  \*****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





/**
 * WizardReviewContent component for Patternfly React
 */
var WizardReviewContent = function WizardReviewContent(_ref) {
  var children = _ref.children,
      className = _ref.className,
      collapsed = _ref.collapsed,
      props = _objectWithoutProperties(_ref, ['children', 'className', 'collapsed']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('wizard-pf-review-content', { collapse: collapsed }, className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    _extends({ className: classes }, props),
    children
  );
};
WizardReviewContent.propTypes = {
  /** Children nodes  */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Step collapsed */
  collapsed: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};
WizardReviewContent.defaultProps = {
  children: null,
  className: '',
  collapsed: false
};
/* harmony default export */ __webpack_exports__["default"] = (WizardReviewContent);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewItem.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewItem.js ***!
  \**************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





/**
 * WizardReviewItem component for Patternfly React
 */
var WizardReviewItem = function WizardReviewItem(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('wizard-pf-review-item', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    _extends({ className: classes }, props),
    children
  );
};
WizardReviewItem.propTypes = {
  /** Children nodes  */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
WizardReviewItem.defaultProps = {
  children: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (WizardReviewItem);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewStep.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewStep.js ***!
  \**************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _ListGroup__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../ListGroup */ "./node_modules/patternfly-react/dist/esm/components/ListGroup/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }






/**
 * WizardReviewStep component for Patternfly React
 */
var WizardReviewStep = function WizardReviewStep(_ref) {
  var children = _ref.children,
      onClick = _ref.onClick,
      title = _ref.title,
      collapsed = _ref.collapsed,
      props = _objectWithoutProperties(_ref, ['children', 'onClick', 'title', 'collapsed']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _ListGroup__WEBPACK_IMPORTED_MODULE_2__["ListGroupItem"],
    _extends({ listItem: true }, props),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'a',
      { href: '#', onClick: onClick, className: collapsed ? 'collapsed' : '' },
      title
    ),
    children
  );
};
WizardReviewStep.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Click handler */
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Step title */
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Step collapsed */
  collapsed: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};
WizardReviewStep.defaultProps = {
  children: null,
  onClick: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  title: '',
  collapsed: false
};
/* harmony default export */ __webpack_exports__["default"] = (WizardReviewStep);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewSteps.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewSteps.js ***!
  \***************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _ListGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ListGroup */ "./node_modules/patternfly-react/dist/esm/components/ListGroup/index.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }






/**
 * WizardReviewSteps component for Patternfly React
 */
var WizardReviewSteps = function WizardReviewSteps(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('wizard-pf-review-steps', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    _extends({ className: classes }, props),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _ListGroup__WEBPACK_IMPORTED_MODULE_3__["ListGroup"],
      { componentClass: 'ul' },
      children
    )
  );
};
WizardReviewSteps.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
WizardReviewSteps.defaultProps = {
  children: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (WizardReviewSteps);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewSubStep.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewSubStep.js ***!
  \*****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _ListGroup__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../ListGroup */ "./node_modules/patternfly-react/dist/esm/components/ListGroup/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }






/**
 * WizardReviewSubStep component for Patternfly React
 */
var WizardReviewSubStep = function WizardReviewSubStep(_ref) {
  var children = _ref.children,
      onClick = _ref.onClick,
      label = _ref.label,
      title = _ref.title,
      collapsed = _ref.collapsed,
      props = _objectWithoutProperties(_ref, ['children', 'onClick', 'label', 'title', 'collapsed']);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _ListGroup__WEBPACK_IMPORTED_MODULE_2__["ListGroupItem"],
    _extends({ listItem: true }, props),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'a',
      { href: '#', onClick: onClick, className: collapsed ? 'collapsed' : '' },
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'span',
        { className: 'wizard-pf-substep-number' },
        label
      ),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'span',
        { className: 'wizard-pf-substep-title' },
        title
      )
    ),
    children
  );
};
WizardReviewSubStep.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Click handler */
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  /** Review step label */
  label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Review step title */
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Step collapsed */
  collapsed: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};
WizardReviewSubStep.defaultProps = {
  children: null,
  onClick: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  label: '',
  title: '',
  collapsed: false
};
/* harmony default export */ __webpack_exports__["default"] = (WizardReviewSubStep);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewSubSteps.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewSubSteps.js ***!
  \******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _ListGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ListGroup */ "./node_modules/patternfly-react/dist/esm/components/ListGroup/index.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }






/**
 * WizardReviewSubSteps component for Patternfly React
 */
var WizardReviewSubSteps = function WizardReviewSubSteps(_ref) {
  var children = _ref.children,
      className = _ref.className,
      collapsed = _ref.collapsed,
      props = _objectWithoutProperties(_ref, ['children', 'className', 'collapsed']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('wizard-pf-review-substeps', { collapse: collapsed }, className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    _extends({ className: classes }, props),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      _ListGroup__WEBPACK_IMPORTED_MODULE_3__["ListGroup"],
      { componentClass: 'ul' },
      children
    )
  );
};
WizardReviewSubSteps.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** Step collapsed */
  collapsed: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};
WizardReviewSubSteps.defaultProps = {
  children: null,
  className: '',
  collapsed: false
};
/* harmony default export */ __webpack_exports__["default"] = (WizardReviewSubSteps);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardRow.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardRow.js ***!
  \*******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





/**
 * WizardRow component for Patternfly React
 */
var WizardRow = function WizardRow(_ref) {
  var children = _ref.children,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['children', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('wizard-pf-row', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'section',
    _extends({ className: classes }, props),
    children
  );
};
WizardRow.propTypes = {
  /** Children nodes  */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
WizardRow.defaultProps = {
  children: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (WizardRow);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSidebar.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSidebar.js ***!
  \***********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





/**
 * WizardSidebar component for Patternfly React
 */
var WizardSidebar = function WizardSidebar(_ref) {
  var items = _ref.items,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['items', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('wizard-pf-sidebar', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    _extends({ className: classes }, props),
    items
  );
};
WizardSidebar.propTypes = {
  /** Wizard sidebar items */
  items: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
WizardSidebar.defaultProps = {
  items: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (WizardSidebar);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSidebarGroup.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSidebarGroup.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _ListGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ListGroup */ "./node_modules/patternfly-react/dist/esm/components/ListGroup/index.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }






/**
 * WizardSidebarGroup component for Patternfly React
 */
var WizardSidebarGroup = function WizardSidebarGroup(_ref) {
  var children = _ref.children,
      className = _ref.className,
      step = _ref.step,
      activeStep = _ref.activeStep,
      props = _objectWithoutProperties(_ref, ['children', 'className', 'step', 'activeStep']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()({ hidden: '' + step !== '' + activeStep }, className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _ListGroup__WEBPACK_IMPORTED_MODULE_3__["ListGroup"],
    _extends({ componentClass: 'ul', className: classes }, props),
    children
  );
};
WizardSidebarGroup.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** The wizard step number for this step */
  step: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number]),
  /** The active step */
  activeStep: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number])
};
WizardSidebarGroup.defaultProps = {
  children: null,
  className: '',
  step: '',
  activeStep: ''
};
/* harmony default export */ __webpack_exports__["default"] = (WizardSidebarGroup);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSidebarGroupItem.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSidebarGroupItem.js ***!
  \********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _ListGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ListGroup */ "./node_modules/patternfly-react/dist/esm/components/ListGroup/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }







/**
 * WizardSidebarGroupItem component for Patternfly React
 */
var WizardSidebarGroupItem = function WizardSidebarGroupItem(_ref) {
  var stepIndex = _ref.stepIndex,
      subStepIndex = _ref.subStepIndex,
      className = _ref.className,
      subStep = _ref.subStep,
      label = _ref.label,
      title = _ref.title,
      activeSubStep = _ref.activeSubStep,
      _onClick = _ref.onClick,
      props = _objectWithoutProperties(_ref, ['stepIndex', 'subStepIndex', 'className', 'subStep', 'label', 'title', 'activeSubStep', 'onClick']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()({ active: '' + subStep === '' + activeSubStep }, className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    _ListGroup__WEBPACK_IMPORTED_MODULE_3__["ListGroupItem"],
    _extends({ className: classes, listItem: true }, props),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'a',
      {
        href: '#',
        onClick: function onClick(e) {
          e.preventDefault();
          _onClick(stepIndex, subStepIndex);
        }
      },
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'span',
        { className: 'wizard-pf-substep-number' },
        label
      ),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'span',
        { className: 'wizard-pf-substep-title' },
        title
      )
    )
  );
};
WizardSidebarGroupItem.propTypes = {
  /** The wizard parent step index */
  stepIndex: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  /** The wizard sub step index */
  subStepIndex: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** This wizard sub step name */
  subStep: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number]),
  /** This wizard sub step label */
  label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** This wizard sub step title */
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** The currently active wizard substep */
  activeSubStep: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number]),
  /** Sidebar group item click handler */
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
WizardSidebarGroupItem.defaultProps = {
  className: '',
  subStep: '',
  label: '',
  title: '',
  activeSubStep: '',
  onClick: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (WizardSidebarGroupItem);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardStep.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardStep.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }






/**
 * WizardStep component for Patternfly React
 */
var WizardStep = function WizardStep(_ref) {
  var children = _ref.children,
      className = _ref.className,
      stepIndex = _ref.stepIndex,
      step = _ref.step,
      label = _ref.label,
      title = _ref.title,
      activeStep = _ref.activeStep,
      _onClick = _ref.onClick,
      props = _objectWithoutProperties(_ref, ['children', 'className', 'stepIndex', 'step', 'label', 'title', 'activeStep', 'onClick']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('wizard-pf-step', { active: '' + step === '' + activeStep }, className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'li',
    _extends({ className: classes }, props),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'a',
      {
        href: '#',
        onClick: function onClick(e) {
          e.preventDefault();
          _onClick(stepIndex);
        }
      },
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'span',
        { className: 'wizard-pf-step-number' },
        label
      ),
      react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
        'span',
        { className: 'wizard-pf-step-title' },
        title
      ),
      children
    )
  );
};
WizardStep.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** The wizard step index */
  stepIndex: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  /** The wizard step for this step */
  step: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number]),
  /** The wizard step number label */
  label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** The wizard step title */
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** The active step */
  activeStep: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number]),
  /** Step click handler */
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
WizardStep.defaultProps = {
  children: null,
  className: '',
  step: '',
  label: '',
  title: '',
  activeStep: '',
  onClick: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (WizardStep);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSteps.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSteps.js ***!
  \*********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





/**
 * WizardSteps component for Patternfly React
 */
var WizardSteps = function WizardSteps(_ref) {
  var steps = _ref.steps,
      className = _ref.className,
      props = _objectWithoutProperties(_ref, ['steps', 'className']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('wizard-pf-steps', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'div',
    _extends({ className: classes }, props),
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
      'ul',
      { className: 'wizard-pf-steps-indicator' },
      steps
    )
  );
};
WizardSteps.propTypes = {
  /** WizardStep nodes */
  steps: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
WizardSteps.defaultProps = {
  steps: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (WizardSteps);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSubStep.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSubStep.js ***!
  \***********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
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; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }





/**
 * WizardSubStep component for Patternfly React
 */
var WizardSubStep = function WizardSubStep(_ref) {
  var className = _ref.className,
      subStep = _ref.subStep,
      title = _ref.title,
      activeSubStep = _ref.activeSubStep,
      props = _objectWithoutProperties(_ref, ['className', 'subStep', 'title', 'activeSubStep']);

  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('wizard-pf-step-title-substep', { active: '' + subStep === '' + activeSubStep }, className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
    'span',
    _extends({ className: classes }, props),
    title
  );
};
WizardSubStep.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** The wizard sub step for this step */
  subStep: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number]),
  /** The wizard sub step title */
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  /** The active step */
  activeSubStep: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number])
};
WizardSubStep.defaultProps = {
  className: '',
  subStep: '',
  title: '',
  activeSubStep: ''
};
/* harmony default export */ __webpack_exports__["default"] = (WizardSubStep);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/index.js":
/*!***************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/index.js ***!
  \***************************************************************************/
/*! exports provided: Wizard, WizardBody, WizardContents, WizardFooter, WizardHeader, WizardMain, WizardReviewContent, WizardReviewItem, WizardReviewStep, WizardReviewSteps, WizardReviewSubStep, WizardReviewSubSteps, WizardRow, WizardSidebar, WizardSidebarGroup, WizardSidebarGroupItem, WizardStep, WizardSteps, WizardSubStep, WizardPattern, WizardPatternBody, StatefulWizardPattern */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Wizard__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Wizard */ "./node_modules/patternfly-react/dist/esm/components/Wizard/Wizard.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Wizard", function() { return _Wizard__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _WizardBody__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./WizardBody */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardBody.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardBody", function() { return _WizardBody__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _WizardContents__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./WizardContents */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardContents.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardContents", function() { return _WizardContents__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _WizardFooter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./WizardFooter */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardFooter.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardFooter", function() { return _WizardFooter__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _WizardHeader__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./WizardHeader */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardHeader.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardHeader", function() { return _WizardHeader__WEBPACK_IMPORTED_MODULE_4__["default"]; });

/* harmony import */ var _WizardMain__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./WizardMain */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardMain.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardMain", function() { return _WizardMain__WEBPACK_IMPORTED_MODULE_5__["default"]; });

/* harmony import */ var _WizardReviewContent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./WizardReviewContent */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewContent.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardReviewContent", function() { return _WizardReviewContent__WEBPACK_IMPORTED_MODULE_6__["default"]; });

/* harmony import */ var _WizardReviewItem__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./WizardReviewItem */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardReviewItem", function() { return _WizardReviewItem__WEBPACK_IMPORTED_MODULE_7__["default"]; });

/* harmony import */ var _WizardReviewStep__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./WizardReviewStep */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewStep.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardReviewStep", function() { return _WizardReviewStep__WEBPACK_IMPORTED_MODULE_8__["default"]; });

/* harmony import */ var _WizardReviewSteps__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./WizardReviewSteps */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewSteps.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardReviewSteps", function() { return _WizardReviewSteps__WEBPACK_IMPORTED_MODULE_9__["default"]; });

/* harmony import */ var _WizardReviewSubStep__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./WizardReviewSubStep */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewSubStep.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardReviewSubStep", function() { return _WizardReviewSubStep__WEBPACK_IMPORTED_MODULE_10__["default"]; });

/* harmony import */ var _WizardReviewSubSteps__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./WizardReviewSubSteps */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewSubSteps.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardReviewSubSteps", function() { return _WizardReviewSubSteps__WEBPACK_IMPORTED_MODULE_11__["default"]; });

/* harmony import */ var _WizardRow__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./WizardRow */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardRow.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardRow", function() { return _WizardRow__WEBPACK_IMPORTED_MODULE_12__["default"]; });

/* harmony import */ var _WizardSidebar__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./WizardSidebar */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSidebar.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardSidebar", function() { return _WizardSidebar__WEBPACK_IMPORTED_MODULE_13__["default"]; });

/* harmony import */ var _WizardSidebarGroup__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./WizardSidebarGroup */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSidebarGroup.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardSidebarGroup", function() { return _WizardSidebarGroup__WEBPACK_IMPORTED_MODULE_14__["default"]; });

/* harmony import */ var _WizardSidebarGroupItem__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./WizardSidebarGroupItem */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSidebarGroupItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardSidebarGroupItem", function() { return _WizardSidebarGroupItem__WEBPACK_IMPORTED_MODULE_15__["default"]; });

/* harmony import */ var _WizardStep__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./WizardStep */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardStep.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardStep", function() { return _WizardStep__WEBPACK_IMPORTED_MODULE_16__["default"]; });

/* harmony import */ var _WizardSteps__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./WizardSteps */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSteps.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardSteps", function() { return _WizardSteps__WEBPACK_IMPORTED_MODULE_17__["default"]; });

/* harmony import */ var _WizardSubStep__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./WizardSubStep */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSubStep.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardSubStep", function() { return _WizardSubStep__WEBPACK_IMPORTED_MODULE_18__["default"]; });

/* harmony import */ var _Patterns_WizardPattern__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./Patterns/WizardPattern */ "./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/WizardPattern.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardPattern", function() { return _Patterns_WizardPattern__WEBPACK_IMPORTED_MODULE_19__["default"]; });

/* harmony import */ var _Patterns_WizardPatternBody__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./Patterns/WizardPatternBody */ "./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/WizardPatternBody.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardPatternBody", function() { return _Patterns_WizardPatternBody__WEBPACK_IMPORTED_MODULE_20__["default"]; });

/* harmony import */ var _Patterns_StatefulWizardPattern__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./Patterns/StatefulWizardPattern */ "./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/StatefulWizardPattern.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StatefulWizardPattern", function() { return _Patterns_StatefulWizardPattern__WEBPACK_IMPORTED_MODULE_21__["default"]; });



























/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/index.js":
/*!*********************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/index.js ***!
  \*********************************************************/
/*! exports provided: controlled, patternfly, layout, bindMethods, debounce, propExists, propOrState, selectKeys, filterKeys, excludeKeys, childrenToArray, filterChildren, findChild, propsChanged, hasDisplayName, nullValues, noop, KEY_CODES, KEYS, helpers, Alert, AboutModal, AboutModalVersions, AboutModalVersionItem, ApplicationLauncher, ApplicationLauncherItem, ApplicationLauncherToggle, Badge, Breadcrumb, Button, ButtonGroup, DropdownButton, SplitButton, Card, CardTitle, CardBody, CardGrid, CardHeading, CardFooter, CardLink, CardDropdownButton, CardHeightMatching, AggregateStatusCount, AggregateStatusNotifications, AggregateStatusNotification, UtilizationCard, UtilizationCardDetails, UtilizationCardDetailsCount, UtilizationCardDetailsDesc, UtilizationCardDetailsLine1, UtilizationCardDetailsLine2, AreaChart, BarChart, DonutChart, GroupedBarChart, LineChart, PieChart, SingleAreaChart, SingleLineChart, SparklineChart, StackedBarChart, Dropdown, NavDropdown, DropdownKebab, DualList, DualListArrows, DualListBody, DualListControlled, DualListCounter, DualListFilter, DualListFooter, DualListHeading, DualListHiddenSelect, DualListItem, DualListItems, DualListItemTooltip, DualListMainCheckbox, DualListSelector, DualListSort, EmptyState, EmptyStateIcon, EmptyStateTitle, EmptyStateInfo, EmptyStateHelp, EmptyStateAction, FieldLevelHelp, Filter, FilterTypeSelector, FilterValueSelector, FilterCategorySelector, FilterCategoryValueSelector, FilterActiveLabel, FilterList, FilterItem, Checkbox, ControlLabel, Form, FormControl, FormGroup, HelpBlock, InputGroup, Radio, Grid, Row, Col, Clearfix, HintBlock, HorizontalNav, HorizontalNavMenu, HorizontalNavMenuItem, Icon, InfoTip, InfoTipToggle, InfoTipMenu, InfoTipMenuItemIcon, InfoTipMenuFooter, InlineEdit, ConfirmButton, CancelButton, Label, DisposableLabel, RemoveButton, CompoundLabel, ListGroup, ListGroupItem, ListView, ListViewActions, ListViewAdditionalInfo, ListViewBody, ListViewCheckbox, ListViewDescription, ListViewDescriptionHeading, ListViewDescriptionText, ListViewExpand, ListViewGroupItem, ListViewGroupItemContainer, ListViewGroupItemHeader, ListViewIcon, ListViewInfoItem, ListViewItem, ListViewLeft, ListViewMainInfo, ListViewRow, LoadingState, LoginPage, LoginPageContainer, LoginPageHeader, LoginPageFooter, LoginFooterLinks, LoginPageLink, LoginCard, LoginPageWithTranslation, LoginPageAlert, SocialLoginPage, SocialLoginPageContainer, BasicLoginPageLayout, LoginCardHeader, LoginLanguagePicker, LoginCardWithValidation, LoginCardForm, LoginCardSignUp, LoginCardInput, LoginCardInputWarning, LoginCardSettings, LoginFormError, LoginCardForgotPassword, LoginCardRememberMe, LoginCardSocialLink, LoginCardSocialSection, LoginCardSocialColumns, SocialLoginCard, BasicLoginCardLayout, Masthead, MastheadCollapse, MastheadDropdown, MenuItem, MessageDialog, Modal, ModalCloseButton, ModalPattern, StatefulModalPattern, ModelessOverlay, Nav, NavItem, Navbar, Notification, NotificationContent, NotificationInfo, NotificationMessage, NotificationInfoRight, NotificationInfoLeft, NotificationDrawer, NotificationDrawerWrapper, NotificationDrawerPanelWrapper, StatefulNotificationDrawerWrapper, StatefulToggleNotificationDrawerWrapper, OverlayTrigger, paginate, Pager, Paginator, PAGINATION_VIEW, PAGINATION_VIEW_TYPES, PaginationRow, PaginationRowAmountOfPages, PaginationRowArrowIcon, PaginationRowBack, PaginationRowButtonGroup, PaginationRowForward, PaginationRowItems, Popover, ProgressBar, SessionTimeout, CountDownSessionTimeout, Slider, Sort, SortTypeSelector, SortDirectionSelector, Spinner, Switch, actionHeaderCellFormatter, customHeaderFormattersDefinition, defaultSortingOrder, selectionCellFormatter, selectionHeaderCellFormatter, sortableHeaderCellFormatter, tableCellFormatter, inlineEditFormatterFactory, Table, TableActions, TableButton, TableCell, TableCheckbox, TableDropdownKebab, TableHeading, TablePfProvider, TableInlineEditRow, TableInlineEditHeaderRow, TableSelectionCell, TableSelectionHeading, TABLE_ALIGN, TABLE_ALIGNMENT_TYPES, TABLE_SORT_DIRECTION, TABLE_SORT_DIRECTIONS, TabContainer, TabContent, TabPane, Tabs, Tab, ToastNotification, TimedToastNotification, ToastNotificationList, Toolbar, ToolbarResults, ToolbarRightContent, ToolbarFind, ToolbarViewSelector, Tooltip, TreeView, TreeViewNode, TreeViewExpand, TreeViewIcon, TreeViewIndents, TypeAheadSelect, AsyncTypeAheadSelect, UtilizationBar, VerticalNav, VerticalNavMasthead, VerticalNavItem, VerticalNavSecondaryItem, VerticalNavTertiaryItem, VerticalNavBrand, VerticalNavIconBar, VerticalNavBadge, VerticalNavDividerItem, Wizard, WizardBody, WizardContents, WizardFooter, WizardHeader, WizardMain, WizardReviewContent, WizardReviewItem, WizardReviewStep, WizardReviewSteps, WizardReviewSubStep, WizardReviewSubSteps, WizardRow, WizardSidebar, WizardSidebarGroup, WizardSidebarGroupItem, WizardStep, WizardSteps, WizardSubStep, WizardPattern, WizardPatternBody, StatefulWizardPattern, ExpandCollapse, Overlay, BulletChart, BulletChartTitle, BulletChartValue, BulletChartRange, BulletChartAxis, BulletChartAxisTic, BulletChartLegend, BulletChartLegendItem, BulletChartThreshold */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _common_controlled__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./common/controlled */ "./node_modules/patternfly-react/dist/esm/common/controlled.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "controlled", function() { return _common_controlled__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bindMethods", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["bindMethods"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "debounce", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["debounce"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "propExists", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["propExists"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "propOrState", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["propOrState"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selectKeys", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["selectKeys"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "filterKeys", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["filterKeys"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "excludeKeys", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["excludeKeys"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "childrenToArray", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["childrenToArray"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "filterChildren", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["filterChildren"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "findChild", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["findChild"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "propsChanged", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["propsChanged"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hasDisplayName", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["hasDisplayName"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "nullValues", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["nullValues"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "noop", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["noop"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KEY_CODES", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["KEY_CODES"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KEYS", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["KEYS"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "helpers", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["helpers"]; });

/* harmony import */ var _components_Alert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/Alert */ "./node_modules/patternfly-react/dist/esm/components/Alert/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Alert", function() { return _components_Alert__WEBPACK_IMPORTED_MODULE_2__["Alert"]; });

/* harmony import */ var _components_AboutModal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/AboutModal */ "./node_modules/patternfly-react/dist/esm/components/AboutModal/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AboutModal", function() { return _components_AboutModal__WEBPACK_IMPORTED_MODULE_3__["AboutModal"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AboutModalVersions", function() { return _components_AboutModal__WEBPACK_IMPORTED_MODULE_3__["AboutModalVersions"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AboutModalVersionItem", function() { return _components_AboutModal__WEBPACK_IMPORTED_MODULE_3__["AboutModalVersionItem"]; });

/* harmony import */ var _components_ApplicationLauncher__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/ApplicationLauncher */ "./node_modules/patternfly-react/dist/esm/components/ApplicationLauncher/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApplicationLauncher", function() { return _components_ApplicationLauncher__WEBPACK_IMPORTED_MODULE_4__["ApplicationLauncher"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApplicationLauncherItem", function() { return _components_ApplicationLauncher__WEBPACK_IMPORTED_MODULE_4__["ApplicationLauncherItem"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApplicationLauncherToggle", function() { return _components_ApplicationLauncher__WEBPACK_IMPORTED_MODULE_4__["ApplicationLauncherToggle"]; });

/* harmony import */ var _components_Badge__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/Badge */ "./node_modules/patternfly-react/dist/esm/components/Badge/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Badge", function() { return _components_Badge__WEBPACK_IMPORTED_MODULE_5__["Badge"]; });

/* harmony import */ var _components_Breadcrumb__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/Breadcrumb */ "./node_modules/patternfly-react/dist/esm/components/Breadcrumb/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Breadcrumb", function() { return _components_Breadcrumb__WEBPACK_IMPORTED_MODULE_6__["Breadcrumb"]; });

/* harmony import */ var _components_Button__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Button", function() { return _components_Button__WEBPACK_IMPORTED_MODULE_7__["Button"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ButtonGroup", function() { return _components_Button__WEBPACK_IMPORTED_MODULE_7__["ButtonGroup"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownButton", function() { return _components_Button__WEBPACK_IMPORTED_MODULE_7__["DropdownButton"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SplitButton", function() { return _components_Button__WEBPACK_IMPORTED_MODULE_7__["SplitButton"]; });

/* harmony import */ var _components_Cards__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/Cards */ "./node_modules/patternfly-react/dist/esm/components/Cards/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Card", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["Card"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardTitle", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["CardTitle"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardBody", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["CardBody"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardGrid", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["CardGrid"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardHeading", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["CardHeading"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardFooter", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["CardFooter"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardLink", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["CardLink"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardDropdownButton", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["CardDropdownButton"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardHeightMatching", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["CardHeightMatching"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AggregateStatusCount", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["AggregateStatusCount"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AggregateStatusNotifications", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["AggregateStatusNotifications"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AggregateStatusNotification", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["AggregateStatusNotification"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCard", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["UtilizationCard"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCardDetails", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["UtilizationCardDetails"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCardDetailsCount", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["UtilizationCardDetailsCount"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCardDetailsDesc", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["UtilizationCardDetailsDesc"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCardDetailsLine1", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["UtilizationCardDetailsLine1"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCardDetailsLine2", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["UtilizationCardDetailsLine2"]; });

/* harmony import */ var _components_Chart__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./components/Chart */ "./node_modules/patternfly-react/dist/esm/components/Chart/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AreaChart", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["AreaChart"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BarChart", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["BarChart"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DonutChart", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["DonutChart"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GroupedBarChart", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["GroupedBarChart"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LineChart", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["LineChart"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PieChart", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["PieChart"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SingleAreaChart", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["SingleAreaChart"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SingleLineChart", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["SingleLineChart"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SparklineChart", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["SparklineChart"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StackedBarChart", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["StackedBarChart"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChart", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["BulletChart"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartTitle", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["BulletChartTitle"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartValue", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["BulletChartValue"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartRange", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["BulletChartRange"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartAxis", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["BulletChartAxis"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartAxisTic", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["BulletChartAxisTic"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartLegend", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["BulletChartLegend"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartLegendItem", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["BulletChartLegendItem"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartThreshold", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["BulletChartThreshold"]; });

/* harmony import */ var _components_Dropdown__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./components/Dropdown */ "./node_modules/patternfly-react/dist/esm/components/Dropdown/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Dropdown", function() { return _components_Dropdown__WEBPACK_IMPORTED_MODULE_10__["Dropdown"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NavDropdown", function() { return _components_Dropdown__WEBPACK_IMPORTED_MODULE_10__["NavDropdown"]; });

/* harmony import */ var _components_DropdownKebab__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./components/DropdownKebab */ "./node_modules/patternfly-react/dist/esm/components/DropdownKebab/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownKebab", function() { return _components_DropdownKebab__WEBPACK_IMPORTED_MODULE_11__["DropdownKebab"]; });

/* harmony import */ var _components_DualListSelector__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./components/DualListSelector */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualList", function() { return _components_DualListSelector__WEBPACK_IMPORTED_MODULE_12__["DualList"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListArrows", function() { return _components_DualListSelector__WEBPACK_IMPORTED_MODULE_12__["DualListArrows"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListBody", function() { return _components_DualListSelector__WEBPACK_IMPORTED_MODULE_12__["DualListBody"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListControlled", function() { return _components_DualListSelector__WEBPACK_IMPORTED_MODULE_12__["DualListControlled"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListCounter", function() { return _components_DualListSelector__WEBPACK_IMPORTED_MODULE_12__["DualListCounter"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListFilter", function() { return _components_DualListSelector__WEBPACK_IMPORTED_MODULE_12__["DualListFilter"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListFooter", function() { return _components_DualListSelector__WEBPACK_IMPORTED_MODULE_12__["DualListFooter"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListHeading", function() { return _components_DualListSelector__WEBPACK_IMPORTED_MODULE_12__["DualListHeading"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListHiddenSelect", function() { return _components_DualListSelector__WEBPACK_IMPORTED_MODULE_12__["DualListHiddenSelect"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListItem", function() { return _components_DualListSelector__WEBPACK_IMPORTED_MODULE_12__["DualListItem"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListItems", function() { return _components_DualListSelector__WEBPACK_IMPORTED_MODULE_12__["DualListItems"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListItemTooltip", function() { return _components_DualListSelector__WEBPACK_IMPORTED_MODULE_12__["DualListItemTooltip"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListMainCheckbox", function() { return _components_DualListSelector__WEBPACK_IMPORTED_MODULE_12__["DualListMainCheckbox"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListSelector", function() { return _components_DualListSelector__WEBPACK_IMPORTED_MODULE_12__["DualListSelector"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListSort", function() { return _components_DualListSelector__WEBPACK_IMPORTED_MODULE_12__["DualListSort"]; });

/* harmony import */ var _components_EmptyState__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./components/EmptyState */ "./node_modules/patternfly-react/dist/esm/components/EmptyState/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmptyState", function() { return _components_EmptyState__WEBPACK_IMPORTED_MODULE_13__["EmptyState"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmptyStateIcon", function() { return _components_EmptyState__WEBPACK_IMPORTED_MODULE_13__["EmptyStateIcon"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmptyStateTitle", function() { return _components_EmptyState__WEBPACK_IMPORTED_MODULE_13__["EmptyStateTitle"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmptyStateInfo", function() { return _components_EmptyState__WEBPACK_IMPORTED_MODULE_13__["EmptyStateInfo"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmptyStateHelp", function() { return _components_EmptyState__WEBPACK_IMPORTED_MODULE_13__["EmptyStateHelp"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmptyStateAction", function() { return _components_EmptyState__WEBPACK_IMPORTED_MODULE_13__["EmptyStateAction"]; });

/* harmony import */ var _components_FieldLevelHelp__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./components/FieldLevelHelp */ "./node_modules/patternfly-react/dist/esm/components/FieldLevelHelp/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FieldLevelHelp", function() { return _components_FieldLevelHelp__WEBPACK_IMPORTED_MODULE_14__["FieldLevelHelp"]; });

/* harmony import */ var _components_Filter__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./components/Filter */ "./node_modules/patternfly-react/dist/esm/components/Filter/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Filter", function() { return _components_Filter__WEBPACK_IMPORTED_MODULE_15__["Filter"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterTypeSelector", function() { return _components_Filter__WEBPACK_IMPORTED_MODULE_15__["FilterTypeSelector"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterValueSelector", function() { return _components_Filter__WEBPACK_IMPORTED_MODULE_15__["FilterValueSelector"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterCategorySelector", function() { return _components_Filter__WEBPACK_IMPORTED_MODULE_15__["FilterCategorySelector"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterCategoryValueSelector", function() { return _components_Filter__WEBPACK_IMPORTED_MODULE_15__["FilterCategoryValueSelector"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterActiveLabel", function() { return _components_Filter__WEBPACK_IMPORTED_MODULE_15__["FilterActiveLabel"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterList", function() { return _components_Filter__WEBPACK_IMPORTED_MODULE_15__["FilterList"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterItem", function() { return _components_Filter__WEBPACK_IMPORTED_MODULE_15__["FilterItem"]; });

/* harmony import */ var _components_Form__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./components/Form */ "./node_modules/patternfly-react/dist/esm/components/Form/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Checkbox", function() { return _components_Form__WEBPACK_IMPORTED_MODULE_16__["Checkbox"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ControlLabel", function() { return _components_Form__WEBPACK_IMPORTED_MODULE_16__["ControlLabel"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Form", function() { return _components_Form__WEBPACK_IMPORTED_MODULE_16__["Form"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormControl", function() { return _components_Form__WEBPACK_IMPORTED_MODULE_16__["FormControl"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormGroup", function() { return _components_Form__WEBPACK_IMPORTED_MODULE_16__["FormGroup"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HelpBlock", function() { return _components_Form__WEBPACK_IMPORTED_MODULE_16__["HelpBlock"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InputGroup", function() { return _components_Form__WEBPACK_IMPORTED_MODULE_16__["InputGroup"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Radio", function() { return _components_Form__WEBPACK_IMPORTED_MODULE_16__["Radio"]; });

/* harmony import */ var _components_Grid__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./components/Grid */ "./node_modules/patternfly-react/dist/esm/components/Grid/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Grid", function() { return _components_Grid__WEBPACK_IMPORTED_MODULE_17__["Grid"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Row", function() { return _components_Grid__WEBPACK_IMPORTED_MODULE_17__["Row"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Col", function() { return _components_Grid__WEBPACK_IMPORTED_MODULE_17__["Col"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Clearfix", function() { return _components_Grid__WEBPACK_IMPORTED_MODULE_17__["Clearfix"]; });

/* harmony import */ var _components_HintBlock__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./components/HintBlock */ "./node_modules/patternfly-react/dist/esm/components/HintBlock/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HintBlock", function() { return _components_HintBlock__WEBPACK_IMPORTED_MODULE_18__["HintBlock"]; });

/* harmony import */ var _components_HorizontalNav__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./components/HorizontalNav */ "./node_modules/patternfly-react/dist/esm/components/HorizontalNav/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HorizontalNav", function() { return _components_HorizontalNav__WEBPACK_IMPORTED_MODULE_19__["HorizontalNav"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HorizontalNavMenu", function() { return _components_HorizontalNav__WEBPACK_IMPORTED_MODULE_19__["HorizontalNavMenu"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HorizontalNavMenuItem", function() { return _components_HorizontalNav__WEBPACK_IMPORTED_MODULE_19__["HorizontalNavMenuItem"]; });

/* harmony import */ var _components_Icon__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./components/Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Icon", function() { return _components_Icon__WEBPACK_IMPORTED_MODULE_20__["Icon"]; });

/* harmony import */ var _components_InfoTip__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./components/InfoTip */ "./node_modules/patternfly-react/dist/esm/components/InfoTip/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InfoTip", function() { return _components_InfoTip__WEBPACK_IMPORTED_MODULE_21__["InfoTip"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InfoTipToggle", function() { return _components_InfoTip__WEBPACK_IMPORTED_MODULE_21__["InfoTipToggle"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InfoTipMenu", function() { return _components_InfoTip__WEBPACK_IMPORTED_MODULE_21__["InfoTipMenu"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InfoTipMenuItemIcon", function() { return _components_InfoTip__WEBPACK_IMPORTED_MODULE_21__["InfoTipMenuItemIcon"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InfoTipMenuFooter", function() { return _components_InfoTip__WEBPACK_IMPORTED_MODULE_21__["InfoTipMenuFooter"]; });

/* harmony import */ var _components_InlineEdit__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./components/InlineEdit */ "./node_modules/patternfly-react/dist/esm/components/InlineEdit/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InlineEdit", function() { return _components_InlineEdit__WEBPACK_IMPORTED_MODULE_22__["InlineEdit"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConfirmButton", function() { return _components_InlineEdit__WEBPACK_IMPORTED_MODULE_22__["ConfirmButton"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CancelButton", function() { return _components_InlineEdit__WEBPACK_IMPORTED_MODULE_22__["CancelButton"]; });

/* harmony import */ var _components_Label__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./components/Label */ "./node_modules/patternfly-react/dist/esm/components/Label/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Label", function() { return _components_Label__WEBPACK_IMPORTED_MODULE_23__["Label"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DisposableLabel", function() { return _components_Label__WEBPACK_IMPORTED_MODULE_23__["DisposableLabel"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RemoveButton", function() { return _components_Label__WEBPACK_IMPORTED_MODULE_23__["RemoveButton"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CompoundLabel", function() { return _components_Label__WEBPACK_IMPORTED_MODULE_23__["CompoundLabel"]; });

/* harmony import */ var _components_ListGroup__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./components/ListGroup */ "./node_modules/patternfly-react/dist/esm/components/ListGroup/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListGroup", function() { return _components_ListGroup__WEBPACK_IMPORTED_MODULE_24__["ListGroup"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListGroupItem", function() { return _components_ListGroup__WEBPACK_IMPORTED_MODULE_24__["ListGroupItem"]; });

/* harmony import */ var _components_ListView__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./components/ListView */ "./node_modules/patternfly-react/dist/esm/components/ListView/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListView", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListView"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewActions", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewActions"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewAdditionalInfo", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewAdditionalInfo"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewBody", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewBody"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewCheckbox", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewCheckbox"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewDescription", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewDescription"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewDescriptionHeading", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewDescriptionHeading"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewDescriptionText", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewDescriptionText"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewExpand", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewExpand"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewGroupItem", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewGroupItem"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewGroupItemContainer", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewGroupItemContainer"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewGroupItemHeader", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewGroupItemHeader"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewIcon", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewIcon"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewInfoItem", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewInfoItem"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewItem", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewItem"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewLeft", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewLeft"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewMainInfo", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewMainInfo"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewRow", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewRow"]; });

/* harmony import */ var _components_LoadingState__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./components/LoadingState */ "./node_modules/patternfly-react/dist/esm/components/LoadingState/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoadingState", function() { return _components_LoadingState__WEBPACK_IMPORTED_MODULE_26__["LoadingState"]; });

/* harmony import */ var _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./components/LoginPage */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginPage", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginPage"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginPageContainer", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginPageContainer"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginPageHeader", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginPageHeader"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginPageFooter", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginPageFooter"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginFooterLinks", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginFooterLinks"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginPageLink", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginPageLink"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCard", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginCard"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginPageWithTranslation", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginPageWithTranslation"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginPageAlert", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginPageAlert"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SocialLoginPage", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["SocialLoginPage"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SocialLoginPageContainer", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["SocialLoginPageContainer"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BasicLoginPageLayout", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["BasicLoginPageLayout"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardHeader", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginCardHeader"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginLanguagePicker", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginLanguagePicker"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardWithValidation", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginCardWithValidation"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardForm", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginCardForm"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardSignUp", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginCardSignUp"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardInput", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginCardInput"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardInputWarning", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginCardInputWarning"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardSettings", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginCardSettings"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginFormError", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginFormError"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardForgotPassword", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginCardForgotPassword"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardRememberMe", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginCardRememberMe"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardSocialLink", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginCardSocialLink"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardSocialSection", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginCardSocialSection"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardSocialColumns", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginCardSocialColumns"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SocialLoginCard", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["SocialLoginCard"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BasicLoginCardLayout", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["BasicLoginCardLayout"]; });

/* harmony import */ var _components_Masthead__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./components/Masthead */ "./node_modules/patternfly-react/dist/esm/components/Masthead/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Masthead", function() { return _components_Masthead__WEBPACK_IMPORTED_MODULE_28__["Masthead"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MastheadCollapse", function() { return _components_Masthead__WEBPACK_IMPORTED_MODULE_28__["MastheadCollapse"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MastheadDropdown", function() { return _components_Masthead__WEBPACK_IMPORTED_MODULE_28__["MastheadDropdown"]; });

/* harmony import */ var _components_MenuItem__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./components/MenuItem */ "./node_modules/patternfly-react/dist/esm/components/MenuItem/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MenuItem", function() { return _components_MenuItem__WEBPACK_IMPORTED_MODULE_29__["MenuItem"]; });

/* harmony import */ var _components_MessageDialog__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./components/MessageDialog */ "./node_modules/patternfly-react/dist/esm/components/MessageDialog/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageDialog", function() { return _components_MessageDialog__WEBPACK_IMPORTED_MODULE_30__["MessageDialog"]; });

/* harmony import */ var _components_Modal__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./components/Modal */ "./node_modules/patternfly-react/dist/esm/components/Modal/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Modal", function() { return _components_Modal__WEBPACK_IMPORTED_MODULE_31__["Modal"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ModalCloseButton", function() { return _components_Modal__WEBPACK_IMPORTED_MODULE_31__["ModalCloseButton"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ModalPattern", function() { return _components_Modal__WEBPACK_IMPORTED_MODULE_31__["ModalPattern"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StatefulModalPattern", function() { return _components_Modal__WEBPACK_IMPORTED_MODULE_31__["StatefulModalPattern"]; });

/* harmony import */ var _components_ModelessOverlay__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./components/ModelessOverlay */ "./node_modules/patternfly-react/dist/esm/components/ModelessOverlay/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ModelessOverlay", function() { return _components_ModelessOverlay__WEBPACK_IMPORTED_MODULE_32__["ModelessOverlay"]; });

/* harmony import */ var _components_Nav__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./components/Nav */ "./node_modules/patternfly-react/dist/esm/components/Nav/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Nav", function() { return _components_Nav__WEBPACK_IMPORTED_MODULE_33__["Nav"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NavItem", function() { return _components_Nav__WEBPACK_IMPORTED_MODULE_33__["NavItem"]; });

/* harmony import */ var _components_Navbar__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./components/Navbar */ "./node_modules/patternfly-react/dist/esm/components/Navbar/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Navbar", function() { return _components_Navbar__WEBPACK_IMPORTED_MODULE_34__["Navbar"]; });

/* harmony import */ var _components_Notification__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./components/Notification */ "./node_modules/patternfly-react/dist/esm/components/Notification/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Notification", function() { return _components_Notification__WEBPACK_IMPORTED_MODULE_35__["Notification"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationContent", function() { return _components_Notification__WEBPACK_IMPORTED_MODULE_35__["NotificationContent"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationInfo", function() { return _components_Notification__WEBPACK_IMPORTED_MODULE_35__["NotificationInfo"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationMessage", function() { return _components_Notification__WEBPACK_IMPORTED_MODULE_35__["NotificationMessage"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationInfoRight", function() { return _components_Notification__WEBPACK_IMPORTED_MODULE_35__["NotificationInfoRight"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationInfoLeft", function() { return _components_Notification__WEBPACK_IMPORTED_MODULE_35__["NotificationInfoLeft"]; });

/* harmony import */ var _components_Notification_NotificationDrawer__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./components/Notification/NotificationDrawer */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationDrawer", function() { return _components_Notification_NotificationDrawer__WEBPACK_IMPORTED_MODULE_36__["NotificationDrawer"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationDrawerWrapper", function() { return _components_Notification_NotificationDrawer__WEBPACK_IMPORTED_MODULE_36__["NotificationDrawerWrapper"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationDrawerPanelWrapper", function() { return _components_Notification_NotificationDrawer__WEBPACK_IMPORTED_MODULE_36__["NotificationDrawerPanelWrapper"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StatefulNotificationDrawerWrapper", function() { return _components_Notification_NotificationDrawer__WEBPACK_IMPORTED_MODULE_36__["StatefulNotificationDrawerWrapper"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StatefulToggleNotificationDrawerWrapper", function() { return _components_Notification_NotificationDrawer__WEBPACK_IMPORTED_MODULE_36__["StatefulToggleNotificationDrawerWrapper"]; });

/* harmony import */ var _components_OverlayTrigger__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./components/OverlayTrigger */ "./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OverlayTrigger", function() { return _components_OverlayTrigger__WEBPACK_IMPORTED_MODULE_37__["OverlayTrigger"]; });

/* harmony import */ var _components_Pagination__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./components/Pagination */ "./node_modules/patternfly-react/dist/esm/components/Pagination/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "paginate", function() { return _components_Pagination__WEBPACK_IMPORTED_MODULE_38__["paginate"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Pager", function() { return _components_Pagination__WEBPACK_IMPORTED_MODULE_38__["Pager"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Paginator", function() { return _components_Pagination__WEBPACK_IMPORTED_MODULE_38__["Paginator"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PAGINATION_VIEW", function() { return _components_Pagination__WEBPACK_IMPORTED_MODULE_38__["PAGINATION_VIEW"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PAGINATION_VIEW_TYPES", function() { return _components_Pagination__WEBPACK_IMPORTED_MODULE_38__["PAGINATION_VIEW_TYPES"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationRow", function() { return _components_Pagination__WEBPACK_IMPORTED_MODULE_38__["PaginationRow"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationRowAmountOfPages", function() { return _components_Pagination__WEBPACK_IMPORTED_MODULE_38__["PaginationRowAmountOfPages"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationRowArrowIcon", function() { return _components_Pagination__WEBPACK_IMPORTED_MODULE_38__["PaginationRowArrowIcon"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationRowBack", function() { return _components_Pagination__WEBPACK_IMPORTED_MODULE_38__["PaginationRowBack"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationRowButtonGroup", function() { return _components_Pagination__WEBPACK_IMPORTED_MODULE_38__["PaginationRowButtonGroup"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationRowForward", function() { return _components_Pagination__WEBPACK_IMPORTED_MODULE_38__["PaginationRowForward"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationRowItems", function() { return _components_Pagination__WEBPACK_IMPORTED_MODULE_38__["PaginationRowItems"]; });

/* harmony import */ var _components_Popover__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./components/Popover */ "./node_modules/patternfly-react/dist/esm/components/Popover/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Popover", function() { return _components_Popover__WEBPACK_IMPORTED_MODULE_39__["Popover"]; });

/* harmony import */ var _components_ProgressBar__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./components/ProgressBar */ "./node_modules/patternfly-react/dist/esm/components/ProgressBar/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProgressBar", function() { return _components_ProgressBar__WEBPACK_IMPORTED_MODULE_40__["ProgressBar"]; });

/* harmony import */ var _components_SessionTimeout__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./components/SessionTimeout */ "./node_modules/patternfly-react/dist/esm/components/SessionTimeout/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SessionTimeout", function() { return _components_SessionTimeout__WEBPACK_IMPORTED_MODULE_41__["SessionTimeout"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CountDownSessionTimeout", function() { return _components_SessionTimeout__WEBPACK_IMPORTED_MODULE_41__["CountDownSessionTimeout"]; });

/* harmony import */ var _components_Slider__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./components/Slider */ "./node_modules/patternfly-react/dist/esm/components/Slider/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Slider", function() { return _components_Slider__WEBPACK_IMPORTED_MODULE_42__["Slider"]; });

/* harmony import */ var _components_Sort__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./components/Sort */ "./node_modules/patternfly-react/dist/esm/components/Sort/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Sort", function() { return _components_Sort__WEBPACK_IMPORTED_MODULE_43__["Sort"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SortTypeSelector", function() { return _components_Sort__WEBPACK_IMPORTED_MODULE_43__["SortTypeSelector"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SortDirectionSelector", function() { return _components_Sort__WEBPACK_IMPORTED_MODULE_43__["SortDirectionSelector"]; });

/* harmony import */ var _components_Spinner__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./components/Spinner */ "./node_modules/patternfly-react/dist/esm/components/Spinner/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Spinner", function() { return _components_Spinner__WEBPACK_IMPORTED_MODULE_44__["Spinner"]; });

/* harmony import */ var _components_Switch__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./components/Switch */ "./node_modules/patternfly-react/dist/esm/components/Switch/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Switch", function() { return _components_Switch__WEBPACK_IMPORTED_MODULE_45__["Switch"]; });

/* harmony import */ var _components_Table__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./components/Table */ "./node_modules/patternfly-react/dist/esm/components/Table/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "actionHeaderCellFormatter", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["actionHeaderCellFormatter"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "customHeaderFormattersDefinition", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["customHeaderFormattersDefinition"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultSortingOrder", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["defaultSortingOrder"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selectionCellFormatter", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["selectionCellFormatter"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selectionHeaderCellFormatter", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["selectionHeaderCellFormatter"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sortableHeaderCellFormatter", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["sortableHeaderCellFormatter"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tableCellFormatter", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["tableCellFormatter"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "inlineEditFormatterFactory", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["inlineEditFormatterFactory"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Table", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["Table"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableActions", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["TableActions"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableButton", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["TableButton"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableCell", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["TableCell"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableCheckbox", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["TableCheckbox"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableDropdownKebab", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["TableDropdownKebab"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableHeading", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["TableHeading"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TablePfProvider", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["TablePfProvider"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableInlineEditRow", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["TableInlineEditRow"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableInlineEditHeaderRow", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["TableInlineEditHeaderRow"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableSelectionCell", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["TableSelectionCell"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableSelectionHeading", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["TableSelectionHeading"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TABLE_ALIGN", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["TABLE_ALIGN"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TABLE_ALIGNMENT_TYPES", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["TABLE_ALIGNMENT_TYPES"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TABLE_SORT_DIRECTION", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["TABLE_SORT_DIRECTION"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TABLE_SORT_DIRECTIONS", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["TABLE_SORT_DIRECTIONS"]; });

/* harmony import */ var _components_Tabs__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./components/Tabs */ "./node_modules/patternfly-react/dist/esm/components/Tabs/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabContainer", function() { return _components_Tabs__WEBPACK_IMPORTED_MODULE_47__["TabContainer"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabContent", function() { return _components_Tabs__WEBPACK_IMPORTED_MODULE_47__["TabContent"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabPane", function() { return _components_Tabs__WEBPACK_IMPORTED_MODULE_47__["TabPane"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tabs", function() { return _components_Tabs__WEBPACK_IMPORTED_MODULE_47__["Tabs"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tab", function() { return _components_Tabs__WEBPACK_IMPORTED_MODULE_47__["Tab"]; });

/* harmony import */ var _components_ToastNotification__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./components/ToastNotification */ "./node_modules/patternfly-react/dist/esm/components/ToastNotification/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToastNotification", function() { return _components_ToastNotification__WEBPACK_IMPORTED_MODULE_48__["ToastNotification"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TimedToastNotification", function() { return _components_ToastNotification__WEBPACK_IMPORTED_MODULE_48__["TimedToastNotification"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToastNotificationList", function() { return _components_ToastNotification__WEBPACK_IMPORTED_MODULE_48__["ToastNotificationList"]; });

/* harmony import */ var _components_Toolbar__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./components/Toolbar */ "./node_modules/patternfly-react/dist/esm/components/Toolbar/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Toolbar", function() { return _components_Toolbar__WEBPACK_IMPORTED_MODULE_49__["Toolbar"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToolbarResults", function() { return _components_Toolbar__WEBPACK_IMPORTED_MODULE_49__["ToolbarResults"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToolbarRightContent", function() { return _components_Toolbar__WEBPACK_IMPORTED_MODULE_49__["ToolbarRightContent"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToolbarFind", function() { return _components_Toolbar__WEBPACK_IMPORTED_MODULE_49__["ToolbarFind"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToolbarViewSelector", function() { return _components_Toolbar__WEBPACK_IMPORTED_MODULE_49__["ToolbarViewSelector"]; });

/* harmony import */ var _components_Tooltip__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./components/Tooltip */ "./node_modules/patternfly-react/dist/esm/components/Tooltip/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tooltip", function() { return _components_Tooltip__WEBPACK_IMPORTED_MODULE_50__["Tooltip"]; });

/* harmony import */ var _components_TreeView__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./components/TreeView */ "./node_modules/patternfly-react/dist/esm/components/TreeView/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeView", function() { return _components_TreeView__WEBPACK_IMPORTED_MODULE_51__["TreeView"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeViewNode", function() { return _components_TreeView__WEBPACK_IMPORTED_MODULE_51__["TreeViewNode"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeViewExpand", function() { return _components_TreeView__WEBPACK_IMPORTED_MODULE_51__["TreeViewExpand"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeViewIcon", function() { return _components_TreeView__WEBPACK_IMPORTED_MODULE_51__["TreeViewIcon"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeViewIndents", function() { return _components_TreeView__WEBPACK_IMPORTED_MODULE_51__["TreeViewIndents"]; });

/* harmony import */ var _components_TypeAheadSelect__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./components/TypeAheadSelect */ "./node_modules/patternfly-react/dist/esm/components/TypeAheadSelect/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TypeAheadSelect", function() { return _components_TypeAheadSelect__WEBPACK_IMPORTED_MODULE_52__["TypeAheadSelect"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AsyncTypeAheadSelect", function() { return _components_TypeAheadSelect__WEBPACK_IMPORTED_MODULE_52__["AsyncTypeAheadSelect"]; });

/* harmony import */ var _components_UtilizationBar__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./components/UtilizationBar */ "./node_modules/patternfly-react/dist/esm/components/UtilizationBar/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationBar", function() { return _components_UtilizationBar__WEBPACK_IMPORTED_MODULE_53__["UtilizationBar"]; });

/* harmony import */ var _components_VerticalNav__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./components/VerticalNav */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNav", function() { return _components_VerticalNav__WEBPACK_IMPORTED_MODULE_54__["VerticalNav"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNavMasthead", function() { return _components_VerticalNav__WEBPACK_IMPORTED_MODULE_54__["VerticalNavMasthead"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNavItem", function() { return _components_VerticalNav__WEBPACK_IMPORTED_MODULE_54__["VerticalNavItem"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNavSecondaryItem", function() { return _components_VerticalNav__WEBPACK_IMPORTED_MODULE_54__["VerticalNavSecondaryItem"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNavTertiaryItem", function() { return _components_VerticalNav__WEBPACK_IMPORTED_MODULE_54__["VerticalNavTertiaryItem"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNavBrand", function() { return _components_VerticalNav__WEBPACK_IMPORTED_MODULE_54__["VerticalNavBrand"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNavIconBar", function() { return _components_VerticalNav__WEBPACK_IMPORTED_MODULE_54__["VerticalNavIconBar"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNavBadge", function() { return _components_VerticalNav__WEBPACK_IMPORTED_MODULE_54__["VerticalNavBadge"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNavDividerItem", function() { return _components_VerticalNav__WEBPACK_IMPORTED_MODULE_54__["VerticalNavDividerItem"]; });

/* harmony import */ var _components_Wizard__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./components/Wizard */ "./node_modules/patternfly-react/dist/esm/components/Wizard/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Wizard", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["Wizard"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardBody", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardBody"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardContents", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardContents"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardFooter", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardFooter"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardHeader", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardHeader"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardMain", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardMain"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardReviewContent", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardReviewContent"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardReviewItem", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardReviewItem"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardReviewStep", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardReviewStep"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardReviewSteps", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardReviewSteps"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardReviewSubStep", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardReviewSubStep"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardReviewSubSteps", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardReviewSubSteps"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardRow", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardRow"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardSidebar", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardSidebar"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardSidebarGroup", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardSidebarGroup"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardSidebarGroupItem", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardSidebarGroupItem"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardStep", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardStep"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardSteps", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardSteps"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardSubStep", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardSubStep"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardPattern", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardPattern"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardPatternBody", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardPatternBody"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StatefulWizardPattern", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["StatefulWizardPattern"]; });

/* harmony import */ var _common_patternfly__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./common/patternfly */ "./node_modules/patternfly-react/dist/esm/common/patternfly.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "patternfly", function() { return _common_patternfly__WEBPACK_IMPORTED_MODULE_56__["patternfly"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "layout", function() { return _common_patternfly__WEBPACK_IMPORTED_MODULE_56__["layout"]; });

/* harmony import */ var _components_ExpandCollapse__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./components/ExpandCollapse */ "./node_modules/patternfly-react/dist/esm/components/ExpandCollapse/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExpandCollapse", function() { return _components_ExpandCollapse__WEBPACK_IMPORTED_MODULE_57__["ExpandCollapse"]; });

/* harmony import */ var _components_Overlay__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./components/Overlay */ "./node_modules/patternfly-react/dist/esm/components/Overlay/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Overlay", function() { return _components_Overlay__WEBPACK_IMPORTED_MODULE_58__["Overlay"]; });





























































/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/AsyncTypeahead.react.js":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/AsyncTypeahead.react.js ***!
  \**********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _asyncContainer = _interopRequireDefault(__webpack_require__(/*! ./containers/asyncContainer */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/asyncContainer.js"));

var _Typeahead = _interopRequireDefault(__webpack_require__(/*! ./Typeahead.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Typeahead.react.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var _default = (0, _asyncContainer.default)(_Typeahead.default);

exports.default = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/AutosizeInput.react.js":
/*!*********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/AutosizeInput.react.js ***!
  \*********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _extends() { _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; }; return _extends.apply(this, arguments); }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var SIZER_STYLE = {
  height: 0,
  left: 0,
  overflow: 'scroll',
  position: 'absolute',
  top: 0,
  visibility: 'hidden',
  whiteSpace: 'pre'
};
var INPUT_PROPS_BLACKLIST = ['inputClassName', 'inputRef', 'inputStyle'];
var MIN_WIDTH = 1;

var cleanInputProps = function cleanInputProps(inputProps) {
  var cleanProps = {};
  Object.keys(inputProps).forEach(function (key) {
    if (INPUT_PROPS_BLACKLIST.indexOf(key) === -1) {
      cleanProps[key] = inputProps[key];
    }
  });
  return cleanProps;
};

var copyStyles = function copyStyles(styles, node) {
  /* eslint-disable no-param-reassign */
  node.style.fontSize = styles.fontSize;
  node.style.fontFamily = styles.fontFamily;
  node.style.fontWeight = styles.fontWeight;
  node.style.fontStyle = styles.fontStyle;
  node.style.letterSpacing = styles.letterSpacing;
  node.style.textTransform = styles.textTransform;
  /* eslint-enable no-param-reassign */
};

var AutosizeInput =
/*#__PURE__*/
function (_React$Component) {
  _inherits(AutosizeInput, _React$Component);

  function AutosizeInput() {
    var _getPrototypeOf2;

    var _this;

    _classCallCheck(this, AutosizeInput);

    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(AutosizeInput)).call.apply(_getPrototypeOf2, [this].concat(args)));

    _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", {
      inputWidth: MIN_WIDTH
    });

    _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_copyInputStyles", function () {
      var inputStyles = _this._input && window.getComputedStyle && window.getComputedStyle(_this._input);

      if (!inputStyles) {
        return;
      }

      copyStyles(inputStyles, _this._sizer);

      if (_this._placeHolderSizer) {
        copyStyles(inputStyles, _this._placeHolderSizer);
      }
    });

    _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_updateInputWidth", function () {
      if (!_this._sizer || _this._sizer.scrollWidth === undefined) {
        return;
      }

      _this._copyInputStyles();

      var placeholderWidth = _this._placeHolderSizer && _this._placeHolderSizer.scrollWidth || MIN_WIDTH;
      var inputWidth = Math.max(_this._sizer.scrollWidth, placeholderWidth) + 2;

      if (inputWidth !== _this.state.inputWidth) {
        _this.setState({
          inputWidth: inputWidth
        });
      }
    });

    return _this;
  }

  _createClass(AutosizeInput, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this._updateInputWidth();
    }
  }, {
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps, prevState) {
      this._updateInputWidth();
    }
  }, {
    key: "render",
    value: function render() {
      var _this2 = this;

      var _this$props = this.props,
          className = _this$props.className,
          defaultValue = _this$props.defaultValue,
          placeholder = _this$props.placeholder,
          value = _this$props.value;

      var wrapperStyle = _objectSpread({}, this.props.style);

      if (!wrapperStyle.display) {
        wrapperStyle.display = 'inline-block';
      }

      var inputProps = cleanInputProps(_objectSpread({}, this.props, {
        className: this.props.inputClassName,
        style: _objectSpread({}, this.props.inputStyle, {
          boxSizing: 'content-box',
          width: "".concat(this.state.inputWidth, "px")
        })
      }));
      return _react.default.createElement("div", {
        className: className,
        style: wrapperStyle
      }, _react.default.createElement("input", _extends({}, inputProps, {
        ref: function ref(el) {
          _this2._input = el;

          if (typeof _this2.props.inputRef === 'function') {
            _this2.props.inputRef(el);
          }
        }
      })), _react.default.createElement("div", {
        ref: function ref(el) {
          return _this2._sizer = el;
        },
        style: SIZER_STYLE
      }, defaultValue || value || ''), placeholder ? _react.default.createElement("div", {
        ref: function ref(el) {
          return _this2._placeHolderSizer = el;
        },
        style: SIZER_STYLE
      }, placeholder) : null);
    }
  }]);

  return AutosizeInput;
}(_react.default.Component);

AutosizeInput.propTypes = {
  /**
   * ClassName for the input element.
   */
  inputClassName: _propTypes.default.string,

  /**
   * Ref callback for the input element.
   */
  inputRef: _propTypes.default.func,

  /**
   * CSS styles for the input element.
   */

  /* eslint-disable-next-line react/forbid-prop-types */
  inputStyle: _propTypes.default.object
};
var _default = AutosizeInput;
exports.default = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/ClearButton.react.js":
/*!*******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/ClearButton.react.js ***!
  \*******************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _extends() { _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; }; return _extends.apply(this, arguments); }

function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }

function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }

/**
 * ClearButton
 *
 * http://getbootstrap.com/css/#helper-classes-close
 */
var ClearButton = function ClearButton(_ref) {
  var bsSize = _ref.bsSize,
      className = _ref.className,
      label = _ref.label,
      _onClick = _ref.onClick,
      props = _objectWithoutProperties(_ref, ["bsSize", "className", "label", "onClick"]);

  return _react.default.createElement("button", _extends({}, props, {
    "aria-label": label,
    className: (0, _classnames.default)('close', 'rbt-close', {
      'rbt-close-lg': bsSize === 'large' || bsSize === 'lg'
    }, className),
    onClick: function onClick(e) {
      e.stopPropagation();

      _onClick(e);
    },
    type: "button"
  }), _react.default.createElement("span", {
    "aria-hidden": "true"
  }, "\xD7"), _react.default.createElement("span", {
    className: "sr-only"
  }, label));
};

ClearButton.propTypes = {
  bsSize: _propTypes.default.oneOf(['large', 'lg', 'small', 'sm']),
  label: _propTypes.default.string,
  onClick: _propTypes.default.func.isRequired
};
ClearButton.defaultProps = {
  label: 'Clear'
};
var _default = ClearButton;
exports.default = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Highlighter.react.js":
/*!*******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Highlighter.react.js ***!
  \*******************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _utils = __webpack_require__(/*! ./utils */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/index.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

/**
 * Stripped-down version of https://github.com/helior/react-highlighter
 *
 * Results are already filtered by the time the component is used internally so
 * we can safely ignore case and diacritical marks for the purposes of matching.
 */
var Highlighter =
/*#__PURE__*/
function (_React$Component) {
  _inherits(Highlighter, _React$Component);

  function Highlighter() {
    var _getPrototypeOf2;

    var _this;

    _classCallCheck(this, Highlighter);

    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Highlighter)).call.apply(_getPrototypeOf2, [this].concat(args)));

    _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_count", 0);

    return _this;
  }

  _createClass(Highlighter, [{
    key: "render",
    value: function render() {
      var children = this.props.search ? this._renderHighlightedChildren() : this.props.children;
      return _react.default.createElement("span", null, children);
    }
  }, {
    key: "_renderHighlightedChildren",
    value: function _renderHighlightedChildren() {
      var children = [];
      var remaining = this.props.children;

      while (remaining) {
        var bounds = (0, _utils.getMatchBounds)(remaining, this.props.search);

        if (!bounds) {
          this._count += 1;
          children.push(_react.default.createElement("span", {
            key: this._count
          }, remaining));
          return children;
        } // Capture the string that leads up to a match...


        var nonMatch = remaining.slice(0, bounds.start);

        if (nonMatch) {
          this._count += 1;
          children.push(_react.default.createElement("span", {
            key: this._count
          }, nonMatch));
        } // Now, capture the matching string...


        var match = remaining.slice(bounds.start, bounds.end);

        if (match) {
          this._count += 1;
          children.push(_react.default.createElement("mark", {
            className: "rbt-highlight-text",
            key: this._count
          }, match));
        } // And if there's anything left over, continue the loop.


        remaining = remaining.slice(bounds.end);
      }

      return children;
    }
  }]);

  return Highlighter;
}(_react.default.Component);

Highlighter.propTypes = {
  children: _propTypes.default.string.isRequired,
  search: _propTypes.default.string.isRequired
};
var _default = Highlighter;
exports.default = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Loader.react.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Loader.react.js ***!
  \**************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var Loader = function Loader(_ref) {
  var bsSize = _ref.bsSize;
  return _react.default.createElement("div", {
    className: (0, _classnames.default)('rbt-loader', {
      'rbt-loader-lg': bsSize === 'large' || bsSize === 'lg',
      'rbt-loader-sm': bsSize === 'small' || bsSize === 'sm'
    })
  });
};

Loader.propTypes = {
  bsSize: _propTypes.default.oneOf(['large', 'lg', 'small', 'sm'])
};
var _default = Loader;
exports.default = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Menu.react.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Menu.react.js ***!
  \************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

var _isRequiredForA11y = _interopRequireDefault(__webpack_require__(/*! prop-types-extra/lib/isRequiredForA11y */ "./node_modules/prop-types-extra/lib/isRequiredForA11y.js"));

var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _MenuItem = __webpack_require__(/*! ./MenuItem.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/MenuItem.react.js");

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _extends() { _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; }; return _extends.apply(this, arguments); }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

/**
 * Menu component that handles empty state when passed a set of results.
 */
var Menu =
/*#__PURE__*/
function (_React$Component) {
  _inherits(Menu, _React$Component);

  function Menu() {
    _classCallCheck(this, Menu);

    return _possibleConstructorReturn(this, _getPrototypeOf(Menu).apply(this, arguments));
  }

  _createClass(Menu, [{
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps, prevState) {
      var _this$props = this.props,
          inputHeight = _this$props.inputHeight,
          scheduleUpdate = _this$props.scheduleUpdate; // Update the menu position if the height of the input changes.

      if (inputHeight !== prevProps.inputHeight) {
        scheduleUpdate();
      }
    }
  }, {
    key: "render",
    value: function render() {
      var _this$props2 = this.props,
          children = _this$props2.children,
          className = _this$props2.className,
          emptyLabel = _this$props2.emptyLabel,
          id = _this$props2.id,
          innerRef = _this$props2.innerRef,
          maxHeight = _this$props2.maxHeight,
          style = _this$props2.style,
          text = _this$props2.text;
      var contents = _react.Children.count(children) === 0 ? _react.default.createElement(_MenuItem.BaseMenuItem, {
        disabled: true
      }, emptyLabel) : children;
      return _react.default.createElement("ul", {
        className: (0, _classnames.default)('rbt-menu', 'dropdown-menu', 'show', className),
        id: id,
        key: // Force a re-render if the text changes to ensure that menu
        // positioning updates correctly.
        text,
        ref: innerRef,
        role: "listbox",
        style: _objectSpread({}, style, {
          display: 'block',
          maxHeight: maxHeight,
          overflow: 'auto'
        })
      }, contents);
    }
  }]);

  return Menu;
}(_react.default.Component);

Menu.propTypes = {
  /**
   * Needed for accessibility.
   */
  id: (0, _isRequiredForA11y.default)(_propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string])),

  /**
   * Maximum height of the dropdown menu.
   */
  maxHeight: _propTypes.default.string
};
Menu.defaultProps = {
  maxHeight: '300px'
};

Menu.Divider = function (props) {
  return _react.default.createElement("li", {
    className: "divider dropdown-divider",
    role: "separator"
  });
};

Menu.Header = function (props) {
  return _react.default.createElement("li", _extends({}, props, {
    className: "dropdown-header"
  }));
};

var _default = Menu;
exports.default = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/MenuItem.react.js":
/*!****************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/MenuItem.react.js ***!
  \****************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = exports.BaseMenuItem = void 0;

var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));

var _noop = _interopRequireDefault(__webpack_require__(/*! lodash/noop */ "./node_modules/lodash/noop.js"));

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _menuItemContainer = _interopRequireDefault(__webpack_require__(/*! ./containers/menuItemContainer */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/menuItemContainer.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _extends() { _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; }; return _extends.apply(this, arguments); }

function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }

function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var BaseMenuItem =
/*#__PURE__*/
function (_React$Component) {
  _inherits(BaseMenuItem, _React$Component);

  function BaseMenuItem() {
    var _getPrototypeOf2;

    var _this;

    _classCallCheck(this, BaseMenuItem);

    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(BaseMenuItem)).call.apply(_getPrototypeOf2, [this].concat(args)));

    _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_handleClick", function (e) {
      var _this$props = _this.props,
          disabled = _this$props.disabled,
          onClick = _this$props.onClick;
      e.preventDefault();
      !disabled && onClick(e);
    });

    return _this;
  }

  _createClass(BaseMenuItem, [{
    key: "render",
    value: function render() {
      var _this$props2 = this.props,
          active = _this$props2.active,
          children = _this$props2.children,
          className = _this$props2.className,
          disabled = _this$props2.disabled,
          onClick = _this$props2.onClick,
          onMouseDown = _this$props2.onMouseDown,
          props = _objectWithoutProperties(_this$props2, ["active", "children", "className", "disabled", "onClick", "onMouseDown"]);

      var conditionalClassNames = {
        active: active,
        disabled: disabled
      };
      return (
        /* eslint-disable jsx-a11y/anchor-is-valid */
        _react.default.createElement("li", _extends({}, props, {
          className: (0, _classnames.default)(conditionalClassNames, className)
        }), _react.default.createElement("a", {
          className: (0, _classnames.default)('dropdown-item', conditionalClassNames),
          href: "#",
          onClick: this._handleClick,
          onMouseDown: onMouseDown
        }, children))
        /* eslint-enable jsx-a11y/anchor-is-valid */

      );
    }
  }]);

  return BaseMenuItem;
}(_react.default.Component);

exports.BaseMenuItem = BaseMenuItem;
BaseMenuItem.defaultProps = {
  onClick: _noop.default
};

var _default = (0, _menuItemContainer.default)(BaseMenuItem);

exports.default = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Overlay.react.js":
/*!***************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Overlay.react.js ***!
  \***************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _noop = _interopRequireDefault(__webpack_require__(/*! lodash/noop */ "./node_modules/lodash/noop.js"));

var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

var _componentOrElement = _interopRequireDefault(__webpack_require__(/*! prop-types-extra/lib/componentOrElement */ "./node_modules/prop-types-extra/lib/componentOrElement.js"));

var _Portal = _interopRequireDefault(__webpack_require__(/*! react-overlays/lib/Portal */ "./node_modules/react-overlays/lib/Portal.js"));

var _Popper = _interopRequireDefault(__webpack_require__(/*! react-popper/lib/cjs/Popper */ "./node_modules/react-popper/lib/cjs/Popper.js"));

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }

function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var BODY_CLASS = 'rbt-body-container';

function getModifiers(_ref) {
  var align = _ref.align,
      flip = _ref.flip;
  return {
    computeStyles: {
      enabled: true,
      fn: function fn(data) {
        // Use the following condition instead of `align === 'justify'` since
        // it allows the component to fall back to justifying the menu width
        // even when `align` is undefined.
        if (align !== 'right' && align !== 'left') {
          // Set the popper width to match the target width.

          /* eslint-disable-next-line no-param-reassign */
          data.styles.width = data.offsets.reference.width;
        }

        return data;
      }
    },
    flip: {
      enabled: flip
    },
    preventOverflow: {
      escapeWithReference: true
    }
  };
}

function isBody(container) {
  return container === document.body;
}
/**
 * Custom `Overlay` component, since the version in `react-overlays` doesn't
 * work for our needs. Specifically, the `Position` component doesn't provide
 * the customized placement we need.
 */


var Overlay =
/*#__PURE__*/
function (_React$Component) {
  _inherits(Overlay, _React$Component);

  function Overlay() {
    var _getPrototypeOf2;

    var _this;

    _classCallCheck(this, Overlay);

    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Overlay)).call.apply(_getPrototypeOf2, [this].concat(args)));

    _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_update", function () {
      var _container$classList;

      var _this$props = _this.props,
          className = _this$props.className,
          container = _this$props.container,
          show = _this$props.show;

      if (!(show && isBody(container))) {
        return;
      } // Set a classname on the body for scoping purposes.


      container.classList.add(BODY_CLASS);
      !!className && (_container$classList = container.classList).add.apply(_container$classList, _toConsumableArray(className.split(' ')));
    });

    return _this;
  }

  _createClass(Overlay, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this._update();
    }
  }, {
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps, prevState) {
      var _this$props2 = this.props,
          onMenuHide = _this$props2.onMenuHide,
          onMenuShow = _this$props2.onMenuShow,
          onMenuToggle = _this$props2.onMenuToggle,
          show = _this$props2.show;

      if (show !== prevProps.show) {
        show ? onMenuShow() : onMenuHide();
        onMenuToggle(show);
      } // Remove scoping classes if menu isn't being appended to document body.


      var className = prevProps.className,
          container = prevProps.container;

      if (isBody(container) && !isBody(this.props.container)) {
        var _container$classList2;

        container.classList.remove(BODY_CLASS);
        !!className && (_container$classList2 = container.classList).remove.apply(_container$classList2, _toConsumableArray(className.split(' ')));
      }

      this._update();
    }
  }, {
    key: "render",
    value: function render() {
      var _this$props3 = this.props,
          align = _this$props3.align,
          children = _this$props3.children,
          container = _this$props3.container,
          dropup = _this$props3.dropup,
          referenceElement = _this$props3.referenceElement,
          show = _this$props3.show;

      if (!(show && _react.Children.count(children))) {
        return null;
      }

      var child = _react.Children.only(children);

      var xPlacement = align === 'right' ? 'end' : 'start';
      var yPlacement = dropup ? 'top' : 'bottom';
      return _react.default.createElement(_Portal.default, {
        container: container
      }, _react.default.createElement(_Popper.default, {
        modifiers: getModifiers(this.props),
        placement: "".concat(yPlacement, "-").concat(xPlacement),
        referenceElement: referenceElement
      }, function (_ref2) {
        var ref = _ref2.ref,
            props = _objectWithoutProperties(_ref2, ["ref"]);

        return (0, _react.cloneElement)(child, _objectSpread({}, child.props, props, {
          innerRef: ref,
          inputHeight: referenceElement ? referenceElement.offsetHeight : 0
        }));
      }));
    }
  }]);

  return Overlay;
}(_react.default.Component);

Overlay.propTypes = {
  children: _propTypes.default.element,
  container: _componentOrElement.default.isRequired,
  onMenuHide: _propTypes.default.func,
  onMenuShow: _propTypes.default.func,
  onMenuToggle: _propTypes.default.func,
  referenceElement: _componentOrElement.default,
  show: _propTypes.default.bool
};
Overlay.defaultProps = {
  onMenuHide: _noop.default,
  onMenuShow: _noop.default,
  onMenuToggle: _noop.default,
  show: false
};
var _default = Overlay;
exports.default = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Token.react.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Token.react.js ***!
  \*************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

var _ClearButton = _interopRequireDefault(__webpack_require__(/*! ./ClearButton.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/ClearButton.react.js"));

var _tokenContainer = _interopRequireDefault(__webpack_require__(/*! ./containers/tokenContainer */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/tokenContainer.js"));

var _constants = __webpack_require__(/*! ./constants */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/constants.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _extends() { _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; }; return _extends.apply(this, arguments); }

function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }

function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

/**
 * Token
 *
 * Individual token component, generally displayed within the TokenizerInput
 * component, but can also be rendered on its own.
 */
var Token =
/*#__PURE__*/
function (_React$Component) {
  _inherits(Token, _React$Component);

  function Token() {
    var _getPrototypeOf2;

    var _this;

    _classCallCheck(this, Token);

    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Token)).call.apply(_getPrototypeOf2, [this].concat(args)));

    _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_renderRemoveableToken", function () {
      var _this$props = _this.props,
          active = _this$props.active,
          children = _this$props.children,
          className = _this$props.className,
          onRemove = _this$props.onRemove,
          props = _objectWithoutProperties(_this$props, ["active", "children", "className", "onRemove"]);

      return _react.default.createElement("div", _extends({}, props, {
        className: (0, _classnames.default)('rbt-token', 'rbt-token-removeable', {
          'rbt-token-active': active
        }, className)
      }), children, _react.default.createElement(_ClearButton.default, {
        className: "rbt-token-remove-button",
        label: "Remove",
        onClick: onRemove,
        onKeyDown: _this._handleRemoveButtonKeydown,
        tabIndex: -1
      }));
    });

    _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_renderToken", function () {
      var _this$props2 = _this.props,
          children = _this$props2.children,
          className = _this$props2.className,
          disabled = _this$props2.disabled,
          href = _this$props2.href;
      var classnames = (0, _classnames.default)('rbt-token', {
        'rbt-token-disabled': disabled
      }, className);

      if (href) {
        return _react.default.createElement("a", {
          className: classnames,
          href: href
        }, children);
      }

      return _react.default.createElement("div", {
        className: classnames
      }, children);
    });

    _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_handleRemoveButtonKeydown", function (e) {
      switch (e.keyCode) {
        case _constants.RETURN:
          _this.props.onRemove();

          break;

        default:
          break;
      }
    });

    return _this;
  }

  _createClass(Token, [{
    key: "render",
    value: function render() {
      return this.props.onRemove && !this.props.disabled ? this._renderRemoveableToken() : this._renderToken();
    }
  }]);

  return Token;
}(_react.default.Component);

Token.propTypes = {
  active: _propTypes.default.bool,

  /**
   * Handler for removing/deleting the token. If not defined, the token will
   * be rendered in a read-only state.
   */
  onRemove: _propTypes.default.func,
  tabIndex: _propTypes.default.number
};
Token.defaultProps = {
  active: false,
  tabIndex: 0
};

var _default = (0, _tokenContainer.default)(Token);

exports.default = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Typeahead.react.js":
/*!*****************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Typeahead.react.js ***!
  \*****************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));

var _pick = _interopRequireDefault(__webpack_require__(/*! lodash/pick */ "./node_modules/lodash/pick.js"));

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

var _ClearButton = _interopRequireDefault(__webpack_require__(/*! ./ClearButton.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/ClearButton.react.js"));

var _Loader = _interopRequireDefault(__webpack_require__(/*! ./Loader.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Loader.react.js"));

var _Overlay = _interopRequireDefault(__webpack_require__(/*! ./Overlay.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Overlay.react.js"));

var _TypeaheadInputMulti = _interopRequireDefault(__webpack_require__(/*! ./TypeaheadInputMulti.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/TypeaheadInputMulti.react.js"));

var _TypeaheadInputSingle = _interopRequireDefault(__webpack_require__(/*! ./TypeaheadInputSingle.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/TypeaheadInputSingle.react.js"));

var _TypeaheadMenu = _interopRequireDefault(__webpack_require__(/*! ./TypeaheadMenu.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/TypeaheadMenu.react.js"));

var _typeaheadContainer = _interopRequireDefault(__webpack_require__(/*! ./containers/typeaheadContainer */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/typeaheadContainer.js"));

var _utils = __webpack_require__(/*! ./utils */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/index.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _extends() { _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; }; return _extends.apply(this, arguments); }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var Typeahead =
/*#__PURE__*/
function (_React$Component) {
  _inherits(Typeahead, _React$Component);

  function Typeahead() {
    var _getPrototypeOf2;

    var _this;

    _classCallCheck(this, Typeahead);

    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Typeahead)).call.apply(_getPrototypeOf2, [this].concat(args)));

    _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_renderInput", function (inputProps) {
      var Input = inputProps.multiple ? _TypeaheadInputMulti.default : _TypeaheadInputSingle.default;
      return _react.default.createElement(Input, inputProps);
    });

    _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_renderAux", function () {
      var _this$props = _this.props,
          bsSize = _this$props.bsSize,
          clearButton = _this$props.clearButton,
          disabled = _this$props.disabled,
          isLoading = _this$props.isLoading,
          onClear = _this$props.onClear,
          selected = _this$props.selected;
      var content;

      if (isLoading) {
        content = _react.default.createElement(_Loader.default, {
          bsSize: bsSize
        });
      } else if (clearButton && !disabled && selected.length) {
        content = _react.default.createElement(_ClearButton.default, {
          bsSize: bsSize,
          onClick: onClear,
          onFocus: function onFocus(e) {
            // Prevent the main input from auto-focusing again.
            e.stopPropagation();
          },
          onMouseDown: _utils.preventInputBlur
        });
      }

      return content ? _react.default.createElement("div", {
        className: (0, _classnames.default)('rbt-aux', {
          'rbt-aux-lg': bsSize === 'large' || bsSize === 'lg'
        })
      }, content) : null;
    });

    return _this;
  }

  _createClass(Typeahead, [{
    key: "render",
    value: function render() {
      var _this2 = this;

      var _this$props2 = this.props,
          bodyContainer = _this$props2.bodyContainer,
          children = _this$props2.children,
          className = _this$props2.className,
          isMenuShown = _this$props2.isMenuShown,
          menuId = _this$props2.menuId,
          renderMenu = _this$props2.renderMenu,
          results = _this$props2.results;
      var inputProps = (0, _pick.default)(this.props, ['activeIndex', 'activeItem', 'bsSize', 'disabled', 'inputProps', 'inputRef', 'isFocused', 'isInvalid', 'isMenuShown', 'isValid', 'labelKey', 'menuId', 'multiple', 'onBlur', 'onChange', 'onFocus', 'onKeyDown', 'onRemove', 'placeholder', 'renderToken', 'selected', 'text']);
      var overlayProps = (0, _pick.default)(this.props, ['align', 'className', 'dropup', 'flip', 'onMenuHide', 'onMenuShow', 'onMenuToggle']);
      var menuProps = (0, _pick.default)(this.props, ['emptyLabel', 'labelKey', 'maxHeight', 'newSelectionPrefix', 'renderMenuItemChildren', 'text']);

      var auxContent = this._renderAux();

      return _react.default.createElement("div", {
        className: (0, _classnames.default)('rbt', 'clearfix', 'open', {
          'has-aux': !!auxContent
        }, className),
        style: {
          position: 'relative'
        },
        tabIndex: -1
      }, this._renderInput(_objectSpread({}, inputProps, {
        // Use `findDOMNode` here since it's easier and less fragile than
        // forwarding refs down to the input's container.
        // TODO: Consider using `forwardRef` when React 16.3 usage is higher.

        /* eslint-disable-next-line react/no-find-dom-node */
        ref: function ref(node) {
          return _this2._inputContainer = (0, _reactDom.findDOMNode)(node);
        }
      })), typeof children === 'function' ? children(this.props) : children, auxContent, _react.default.createElement(_Overlay.default, _extends({}, overlayProps, {
        container: bodyContainer ? document.body : this,
        referenceElement: this._inputContainer,
        show: isMenuShown
      }), renderMenu(results, _objectSpread({}, menuProps, {
        id: menuId
      }))), _react.default.createElement("div", {
        "aria-atomic": true,
        "aria-live": "polite",
        className: "sr-only rbt-sr-status",
        role: "status"
      }, (0, _utils.getAccessibilityStatus)(this.props)));
    }
  }]);

  return Typeahead;
}(_react.default.Component);

Typeahead.propTypes = {
  renderMenu: _propTypes.default.func
};
Typeahead.defaultProps = {
  renderMenu: function renderMenu(results, menuProps) {
    return _react.default.createElement(_TypeaheadMenu.default, _extends({}, menuProps, {
      options: results
    }));
  }
};

var _default = (0, _typeaheadContainer.default)(Typeahead);

exports.default = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/TypeaheadContext.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/TypeaheadContext.js ***!
  \******************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = exports.withContext = void 0;

var _noop = _interopRequireDefault(__webpack_require__(/*! lodash/noop */ "./node_modules/lodash/noop.js"));

var _pick = _interopRequireDefault(__webpack_require__(/*! lodash/pick */ "./node_modules/lodash/pick.js"));

var _createReactContext = _interopRequireDefault(__webpack_require__(/*! create-react-context */ "./node_modules/create-react-context/lib/index.js"));

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _extends() { _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; }; return _extends.apply(this, arguments); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

var TypeaheadContext = (0, _createReactContext.default)({
  activeIndex: -1,
  hintText: '',
  initialItem: null,
  isOnlyResult: false,
  onActiveItemChange: _noop.default,
  onAdd: _noop.default,
  onInitialItemChange: _noop.default,
  onMenuItemClick: _noop.default,
  selectHintOnEnter: false
});

var withContext = function withContext(Component, values) {
  // Note: Use a class instead of function component to support refs.

  /* eslint-disable-next-line react/prefer-stateless-function */
  return (
    /*#__PURE__*/
    function (_React$Component) {
      _inherits(_class, _React$Component);

      function _class() {
        _classCallCheck(this, _class);

        return _possibleConstructorReturn(this, _getPrototypeOf(_class).apply(this, arguments));
      }

      _createClass(_class, [{
        key: "render",
        value: function render() {
          var _this = this;

          return _react.default.createElement(TypeaheadContext.Consumer, null, function (context) {
            return _react.default.createElement(Component, _extends({}, _this.props, (0, _pick.default)(context, values)));
          });
        }
      }]);

      return _class;
    }(_react.default.Component)
  );
};

exports.withContext = withContext;
var _default = TypeaheadContext;
exports.default = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/TypeaheadInputMulti.react.js":
/*!***************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/TypeaheadInputMulti.react.js ***!
  \***************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _AutosizeInput = _interopRequireDefault(__webpack_require__(/*! ./AutosizeInput.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/AutosizeInput.react.js"));

var _Token = _interopRequireDefault(__webpack_require__(/*! ./Token.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Token.react.js"));

var _utils = __webpack_require__(/*! ./utils */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/index.js");

var _hintContainer = _interopRequireDefault(__webpack_require__(/*! ./containers/hintContainer */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/hintContainer.js"));

var _inputContainer = _interopRequireDefault(__webpack_require__(/*! ./containers/inputContainer */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/inputContainer.js"));

var _constants = __webpack_require__(/*! ./constants */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/constants.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _extends() { _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; }; return _extends.apply(this, arguments); }

function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }

function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var HintedAutosizeInput = (0, _hintContainer.default)(_AutosizeInput.default);

var TypeaheadInputMulti =
/*#__PURE__*/
function (_React$Component) {
  _inherits(TypeaheadInputMulti, _React$Component);

  function TypeaheadInputMulti() {
    var _getPrototypeOf2;

    var _this;

    _classCallCheck(this, TypeaheadInputMulti);

    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(TypeaheadInputMulti)).call.apply(_getPrototypeOf2, [this].concat(args)));

    _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_renderToken", function (option, idx) {
      var _this$props = _this.props,
          _onRemove = _this$props.onRemove,
          renderToken = _this$props.renderToken;

      var props = _objectSpread({}, _this.props, {
        onRemove: function onRemove() {
          return _onRemove(option);
        }
      });

      return renderToken(option, props, idx);
    });

    _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_handleContainerClickOrFocus", function (e) {
      // Don't focus the input if it's disabled.
      if (_this.props.disabled) {
        e.target.blur();
        return;
      } // Move cursor to the end if the user clicks outside the actual input.


      var inputNode = _this._input;

      if (e.target !== inputNode && (0, _utils.isSelectable)(inputNode)) {
        inputNode.selectionStart = inputNode.value.length;
      }

      inputNode.focus();
    });

    _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_handleKeyDown", function (e) {
      var _this$props2 = _this.props,
          onKeyDown = _this$props2.onKeyDown,
          selected = _this$props2.selected,
          value = _this$props2.value;

      switch (e.keyCode) {
        case _constants.BACKSPACE:
          if (e.target === _this._input && selected.length && !value) {
            // If the input is selected and there is no text, focus the last
            // token when the user hits backspace.
            var children = _this._wrapper.children;
            var lastToken = children[children.length - 2];
            lastToken && lastToken.focus();
          }

          break;

        default:
          break;
      }

      onKeyDown(e);
    });

    return _this;
  }

  _createClass(TypeaheadInputMulti, [{
    key: "render",
    value: function render() {
      var _this2 = this;

      var _this$props3 = this.props,
          className = _this$props3.className,
          inputClassName = _this$props3.inputClassName,
          labelKey = _this$props3.labelKey,
          onRemove = _this$props3.onRemove,
          renderToken = _this$props3.renderToken,
          selected = _this$props3.selected,
          props = _objectWithoutProperties(_this$props3, ["className", "inputClassName", "labelKey", "onRemove", "renderToken", "selected"]);

      return (
        /* eslint-disable jsx-a11y/no-static-element-interactions */

        /* eslint-disable jsx-a11y/click-events-have-key-events */
        _react.default.createElement("div", {
          className: (0, _classnames.default)('form-control', 'rbt-input-multi', className),
          disabled: props.disabled,
          onClick: this._handleContainerClickOrFocus,
          onFocus: this._handleContainerClickOrFocus,
          tabIndex: -1
        }, _react.default.createElement("div", {
          className: "rbt-input-wrapper",
          ref: function ref(el) {
            return _this2._wrapper = el;
          }
        }, selected.map(this._renderToken), _react.default.createElement(HintedAutosizeInput, _extends({}, props, {
          inputClassName: (0, _classnames.default)('rbt-input-main', inputClassName),
          inputRef: function inputRef(input) {
            _this2._input = input;

            _this2.props.inputRef(input);
          },
          inputStyle: {
            backgroundColor: 'transparent',
            border: 0,
            boxShadow: 'none',
            cursor: 'inherit',
            outline: 'none',
            padding: 0
          },
          onKeyDown: this._handleKeyDown,
          style: {
            position: 'relative',
            zIndex: 1
          }
        }))))
        /* eslint-enable jsx-a11y/no-static-element-interactions */

        /* eslint-enable jsx-a11y/click-events-have-key-events */

      );
    }
  }]);

  return TypeaheadInputMulti;
}(_react.default.Component);

TypeaheadInputMulti.propTypes = {
  /**
   * Provides a hook for customized rendering of tokens when multiple
   * selections are enabled.
   */
  renderToken: _propTypes.default.func
};
TypeaheadInputMulti.defaultProps = {
  renderToken: function renderToken(option, props, idx) {
    return _react.default.createElement(_Token.default, {
      disabled: props.disabled,
      key: idx,
      onRemove: props.onRemove,
      tabIndex: props.tabIndex
    }, (0, _utils.getOptionLabel)(option, props.labelKey));
  }
};

var _default = (0, _inputContainer.default)(TypeaheadInputMulti);

exports.default = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/TypeaheadInputSingle.react.js":
/*!****************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/TypeaheadInputSingle.react.js ***!
  \****************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _hintContainer = _interopRequireDefault(__webpack_require__(/*! ./containers/hintContainer */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/hintContainer.js"));

var _inputContainer = _interopRequireDefault(__webpack_require__(/*! ./containers/inputContainer */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/inputContainer.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _extends() { _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; }; return _extends.apply(this, arguments); }

function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }

function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

var TypeaheadInputSingle =
/*#__PURE__*/
function (_React$Component) {
  _inherits(TypeaheadInputSingle, _React$Component);

  function TypeaheadInputSingle() {
    _classCallCheck(this, TypeaheadInputSingle);

    return _possibleConstructorReturn(this, _getPrototypeOf(TypeaheadInputSingle).apply(this, arguments));
  }

  _createClass(TypeaheadInputSingle, [{
    key: "render",
    value: function render() {
      var _this$props = this.props,
          className = _this$props.className,
          inputRef = _this$props.inputRef,
          props = _objectWithoutProperties(_this$props, ["className", "inputRef"]);

      return _react.default.createElement("input", _extends({}, props, {
        className: (0, _classnames.default)('rbt-input-main', 'form-control', className),
        ref: inputRef
      }));
    }
  }]);

  return TypeaheadInputSingle;
}(_react.default.Component);

var _default = (0, _inputContainer.default)((0, _hintContainer.default)(TypeaheadInputSingle));

exports.default = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/TypeaheadMenu.react.js":
/*!*********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/TypeaheadMenu.react.js ***!
  \*********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

var _Highlighter = _interopRequireDefault(__webpack_require__(/*! ./Highlighter.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Highlighter.react.js"));

var _Menu = _interopRequireDefault(__webpack_require__(/*! ./Menu.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Menu.react.js"));

var _MenuItem = _interopRequireDefault(__webpack_require__(/*! ./MenuItem.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/MenuItem.react.js"));

var _utils = __webpack_require__(/*! ./utils */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/index.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }

function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }

function _extends() { _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; }; return _extends.apply(this, arguments); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var TypeaheadMenu =
/*#__PURE__*/
function (_React$Component) {
  _inherits(TypeaheadMenu, _React$Component);

  function TypeaheadMenu() {
    var _getPrototypeOf2;

    var _this;

    _classCallCheck(this, TypeaheadMenu);

    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(TypeaheadMenu)).call.apply(_getPrototypeOf2, [this].concat(args)));

    _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_renderMenuItem", function (option, idx) {
      var _this$props = _this.props,
          labelKey = _this$props.labelKey,
          newSelectionPrefix = _this$props.newSelectionPrefix,
          renderMenuItemChildren = _this$props.renderMenuItemChildren,
          text = _this$props.text;
      var label = (0, _utils.getOptionLabel)(option, labelKey);
      var menuItemProps = {
        disabled: option.disabled,
        key: idx,
        label: label,
        option: option,
        position: idx
      };

      if (option.customOption) {
        return _react.default.createElement(_MenuItem.default, _extends({}, menuItemProps, {
          className: "rbt-menu-custom-option",
          label: newSelectionPrefix + label
        }), newSelectionPrefix, _react.default.createElement(_Highlighter.default, {
          search: text
        }, label));
      }

      if (option.paginationOption) {
        return [_react.default.createElement(_Menu.default.Divider, {
          key: "pagination-item-divider"
        }), _react.default.createElement(_MenuItem.default, _extends({}, menuItemProps, {
          className: "rbt-menu-pagination-option",
          key: "pagination-item"
        }), label)];
      }

      return _react.default.createElement(_MenuItem.default, menuItemProps, renderMenuItemChildren(option, _this.props, idx));
    });

    return _this;
  }

  _createClass(TypeaheadMenu, [{
    key: "render",
    value: function render() {
      var _this$props2 = this.props,
          labelKey = _this$props2.labelKey,
          newSelectionPrefix = _this$props2.newSelectionPrefix,
          options = _this$props2.options,
          renderMenuItemChildren = _this$props2.renderMenuItemChildren,
          menuProps = _objectWithoutProperties(_this$props2, ["labelKey", "newSelectionPrefix", "options", "renderMenuItemChildren"]);

      return _react.default.createElement(_Menu.default, menuProps, options.map(this._renderMenuItem));
    }
  }]);

  return TypeaheadMenu;
}(_react.default.Component);

TypeaheadMenu.propTypes = {
  /**
   * Provides the ability to specify a prefix before the user-entered text to
   * indicate that the selection will be new. No-op unless `allowNew={true}`.
   */
  newSelectionPrefix: _propTypes.default.string,

  /**
   * Provides a hook for customized rendering of menu item contents.
   */
  renderMenuItemChildren: _propTypes.default.func
};
TypeaheadMenu.defaultProps = {
  newSelectionPrefix: 'New selection: ',
  renderMenuItemChildren: function renderMenuItemChildren(option, props, idx) {
    return _react.default.createElement(_Highlighter.default, {
      search: props.text
    }, (0, _utils.getOptionLabel)(option, props.labelKey));
  }
};
var _default = TypeaheadMenu;
exports.default = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/constants.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/constants.js ***!
  \***********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.DEFAULT_LABELKEY = exports.DOWN = exports.RIGHT = exports.UP = exports.LEFT = exports.SPACE = exports.ESC = exports.RETURN = exports.TAB = exports.BACKSPACE = void 0;

/**
 * Common (non-printable) keycodes for `keydown` and `keyup` events. Note that
 * `keypress` handles things differently and may not return the same values.
 */
var BACKSPACE = 8;
exports.BACKSPACE = BACKSPACE;
var TAB = 9;
exports.TAB = TAB;
var RETURN = 13;
exports.RETURN = RETURN;
var ESC = 27;
exports.ESC = ESC;
var SPACE = 32;
exports.SPACE = SPACE;
var LEFT = 37;
exports.LEFT = LEFT;
var UP = 38;
exports.UP = UP;
var RIGHT = 39;
exports.RIGHT = RIGHT;
var DOWN = 40;
exports.DOWN = DOWN;
var DEFAULT_LABELKEY = 'label';
exports.DEFAULT_LABELKEY = DEFAULT_LABELKEY;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/asyncContainer.js":
/*!***************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/asyncContainer.js ***!
  \***************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _debounce = _interopRequireDefault(__webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js"));

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _propTypes2 = __webpack_require__(/*! ../propTypes */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/index.js");

var _utils = __webpack_require__(/*! ../utils */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/index.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _extends() { _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; }; return _extends.apply(this, arguments); }

function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }

function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var DEFAULT_DELAY_MS = 200;
/**
 * HoC that encapsulates common behavior and functionality for doing
 * asynchronous searches, including:
 *
 *  - Debouncing user input
 *  - Optional query caching
 *  - Search prompt and empty results behaviors
 */

var asyncContainer = function asyncContainer(Typeahead) {
  var WrappedTypeahead =
  /*#__PURE__*/
  function (_React$Component) {
    _inherits(WrappedTypeahead, _React$Component);

    function WrappedTypeahead() {
      var _getPrototypeOf2;

      var _this;

      _classCallCheck(this, WrappedTypeahead);

      for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(WrappedTypeahead)).call.apply(_getPrototypeOf2, [this].concat(args)));

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_cache", {});

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_query", '');

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_getEmptyLabel", function () {
        var _this$props = _this.props,
            emptyLabel = _this$props.emptyLabel,
            isLoading = _this$props.isLoading,
            promptText = _this$props.promptText,
            searchText = _this$props.searchText;

        if (!_this._query.length) {
          return promptText;
        }

        if (isLoading) {
          return searchText;
        }

        return emptyLabel;
      });

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_handleInputChange", function (query, e) {
        _this.props.onInputChange && _this.props.onInputChange(query, e);

        _this._handleSearchDebounced(query);
      });

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_handleSearch", function (query) {
        _this._query = query;
        var _this$props2 = _this.props,
            minLength = _this$props2.minLength,
            onSearch = _this$props2.onSearch,
            useCache = _this$props2.useCache;

        if (!query || minLength && query.length < minLength) {
          return;
        } // Use cached results, if applicable.


        if (useCache && _this._cache[query]) {
          // Re-render the component with the cached results.
          _this.forceUpdate();

          return;
        } // Perform the search.


        onSearch(query);
      });

      return _this;
    }

    _createClass(WrappedTypeahead, [{
      key: "componentDidMount",
      value: function componentDidMount() {
        this._handleSearchDebounced = (0, _debounce.default)(this._handleSearch, this.props.delay);
      }
    }, {
      key: "componentDidUpdate",
      value: function componentDidUpdate(prevProps, prevState) {
        if (prevProps.isLoading && this.props.useCache) {
          this._cache[this._query] = this.props.options;
        }
      }
    }, {
      key: "componentWillUnmount",
      value: function componentWillUnmount() {
        this._cache = {};
        this._query = '';

        this._handleSearchDebounced.cancel();
      }
    }, {
      key: "render",
      value: function render() {
        var _this2 = this;

        var _this$props3 = this.props,
            options = _this$props3.options,
            useCache = _this$props3.useCache,
            props = _objectWithoutProperties(_this$props3, ["options", "useCache"]);

        var cachedQuery = this._cache[this._query]; // Disable custom selections during a search unless `allowNew` is a
        // function.

        var allowNew = typeof props.allowNew === 'function' ? props.allowNew : props.allowNew && !props.isLoading;
        return _react.default.createElement(Typeahead, _extends({}, props, {
          allowNew: allowNew,
          emptyLabel: this._getEmptyLabel(),
          onInputChange: this._handleInputChange,
          options: useCache && cachedQuery ? cachedQuery : options,
          ref: function ref(instance) {
            return _this2._instance = instance;
          }
        }));
      }
      /**
       * Make the component instance available.
       */

    }, {
      key: "getInstance",
      value: function getInstance() {
        return this._instance;
      }
    }]);

    return WrappedTypeahead;
  }(_react.default.Component);

  WrappedTypeahead.displayName = "AsyncContainer(".concat((0, _utils.getDisplayName)(Typeahead), ")");
  WrappedTypeahead.propTypes = {
    /**
     * Delay, in milliseconds, before performing search.
     */
    delay: _propTypes.default.number,

    /**
     * Whether or not a request is currently pending. Necessary for the
     * container to know when new results are available.
     */
    isLoading: _propTypes.default.bool.isRequired,

    /**
     * Number of input characters that must be entered before showing results.
     */
    minLength: _propTypes.default.number,

    /**
     * Callback to perform when the search is executed.
     */
    onSearch: _propTypes.default.func.isRequired,

    /**
     * Options to be passed to the typeahead. Will typically be the query
     * results, but can also be initial default options.
     */
    options: _propTypes2.optionType,

    /**
     * Message displayed in the menu when there is no user input.
     */
    promptText: _propTypes.default.node,

    /**
     * Message displayed in the menu while the request is pending.
     */
    searchText: _propTypes.default.node,

    /**
     * Whether or not the component should cache query results.
     */
    useCache: _propTypes.default.bool
  };
  WrappedTypeahead.defaultProps = {
    delay: DEFAULT_DELAY_MS,
    minLength: 2,
    options: [],
    promptText: 'Type to search...',
    searchText: 'Searching...',
    useCache: true
  };
  return WrappedTypeahead;
};

var _default = asyncContainer;
exports.default = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/contextContainer.js":
/*!*****************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/contextContainer.js ***!
  \*****************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _pick = _interopRequireDefault(__webpack_require__(/*! lodash/pick */ "./node_modules/lodash/pick.js"));

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _TypeaheadContext = _interopRequireDefault(__webpack_require__(/*! ../TypeaheadContext */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/TypeaheadContext.js"));

var _utils = __webpack_require__(/*! ../utils */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/index.js");

var _constants = __webpack_require__(/*! ../constants */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/constants.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _extends() { _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; }; return _extends.apply(this, arguments); }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function contextContainer(Typeahead) {
  var WrappedTypeahead =
  /*#__PURE__*/
  function (_React$Component) {
    _inherits(WrappedTypeahead, _React$Component);

    function WrappedTypeahead() {
      var _getPrototypeOf2;

      var _this;

      _classCallCheck(this, WrappedTypeahead);

      for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(WrappedTypeahead)).call.apply(_getPrototypeOf2, [this].concat(args)));

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_handleKeyDown", function (e) {
        var _this$props = _this.props,
            initialItem = _this$props.initialItem,
            onKeyDown = _this$props.onKeyDown,
            onAdd = _this$props.onAdd;

        switch (e.keyCode) {
          case _constants.RETURN:
            if ((0, _utils.getIsOnlyResult)(_this.props)) {
              onAdd(initialItem);
            }

            break;

          default:
            break;
        }

        onKeyDown(e);
      });

      return _this;
    }

    _createClass(WrappedTypeahead, [{
      key: "componentDidUpdate",
      value: function componentDidUpdate(prevProps, prevState) {
        var _this$props2 = this.props,
            allowNew = _this$props2.allowNew,
            onInitialItemChange = _this$props2.onInitialItemChange,
            results = _this$props2.results; // Clear the initial item when there are no results.

        if (!(allowNew || results.length)) {
          onInitialItemChange(null);
        }
      }
    }, {
      key: "render",
      value: function render() {
        var contextValues = (0, _pick.default)(this.props, ['activeIndex', 'initialItem', 'onActiveItemChange', 'onAdd', 'onInitialItemChange', 'onMenuItemClick', 'selectHintOnEnter']);
        return _react.default.createElement(_TypeaheadContext.default.Provider, {
          value: _objectSpread({}, contextValues, {
            hintText: (0, _utils.getHintText)(this.props),
            isOnlyResult: (0, _utils.getIsOnlyResult)(this.props)
          })
        }, _react.default.createElement(Typeahead, _extends({}, this.props, {
          onKeyDown: this._handleKeyDown
        })));
      }
    }]);

    return WrappedTypeahead;
  }(_react.default.Component);

  return WrappedTypeahead;
}

var _default = contextContainer;
exports.default = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/hintContainer.js":
/*!**************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/hintContainer.js ***!
  \**************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _AutosizeInput = _interopRequireDefault(__webpack_require__(/*! ../AutosizeInput.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/AutosizeInput.react.js"));

var _TypeaheadContext = __webpack_require__(/*! ../TypeaheadContext */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/TypeaheadContext.js");

var _utils = __webpack_require__(/*! ../utils */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/index.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _extends() { _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; }; return _extends.apply(this, arguments); }

function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }

function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

// IE doesn't seem to get the composite computed value (eg: 'padding',
// 'borderStyle', etc.), so generate these from the individual values.
function interpolateStyle(styles, attr) {
  var subattr = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';

  // Title-case the sub-attribute.
  if (subattr) {
    /* eslint-disable-next-line no-param-reassign */
    subattr = subattr.replace(subattr[0], subattr[0].toUpperCase());
  }

  return ['Top', 'Right', 'Bottom', 'Left'].map(function (dir) {
    return styles[attr + dir + subattr];
  }).join(' ');
}

function copyStyles(inputNode, hintNode) {
  var inputStyle = window.getComputedStyle(inputNode);
  /* eslint-disable no-param-reassign */

  hintNode.style.borderStyle = interpolateStyle(inputStyle, 'border', 'style');
  hintNode.style.borderWidth = interpolateStyle(inputStyle, 'border', 'width');
  hintNode.style.fontSize = inputStyle.fontSize;
  hintNode.style.lineHeight = inputStyle.lineHeight;
  hintNode.style.margin = interpolateStyle(inputStyle, 'margin');
  hintNode.style.padding = interpolateStyle(inputStyle, 'padding');
  /* eslint-enable no-param-reassign */
}

function hintContainer(Input) {
  var HintedInput =
  /*#__PURE__*/
  function (_React$Component) {
    _inherits(HintedInput, _React$Component);

    function HintedInput() {
      var _getPrototypeOf2;

      var _this;

      _classCallCheck(this, HintedInput);

      for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(HintedInput)).call.apply(_getPrototypeOf2, [this].concat(args)));

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_handleKeyDown", function (e) {
        var _this$props = _this.props,
            initialItem = _this$props.initialItem,
            onAdd = _this$props.onAdd,
            onKeyDown = _this$props.onKeyDown;

        if ((0, _utils.shouldSelectHint)(e, _this.props)) {
          e.preventDefault(); // Prevent input from blurring on TAB.

          onAdd(initialItem);
        }

        onKeyDown(e);
      });

      return _this;
    }

    _createClass(HintedInput, [{
      key: "componentDidMount",
      value: function componentDidMount() {
        copyStyles(this._input, this._hint);
      }
    }, {
      key: "componentDidUpdate",
      value: function componentDidUpdate() {
        copyStyles(this._input, this._hint);
      }
    }, {
      key: "render",
      value: function render() {
        var _this2 = this;

        var _this$props2 = this.props,
            hintText = _this$props2.hintText,
            initialItem = _this$props2.initialItem,
            _inputRef = _this$props2.inputRef,
            onAdd = _this$props2.onAdd,
            selectHintOnEnter = _this$props2.selectHintOnEnter,
            props = _objectWithoutProperties(_this$props2, ["hintText", "initialItem", "inputRef", "onAdd", "selectHintOnEnter"]);

        return _react.default.createElement("div", {
          className: "rbt-input-hint-container",
          style: {
            position: 'relative'
          }
        }, _react.default.createElement(Input, _extends({}, props, {
          inputRef: function inputRef(input) {
            _this2._input = input;

            _inputRef(input);
          },
          onKeyDown: this._handleKeyDown
        })), _react.default.createElement(_AutosizeInput.default, {
          "aria-hidden": true,
          inputClassName: "rbt-input-hint",
          inputRef: function inputRef(hint) {
            return _this2._hint = hint;
          },
          inputStyle: {
            backgroundColor: 'transparent',
            borderColor: 'transparent',
            boxShadow: 'none',
            color: 'rgba(0, 0, 0, 0.35)'
          },
          readOnly: true,
          style: {
            left: 0,
            pointerEvents: 'none',
            position: 'absolute',
            top: 0
          },
          tabIndex: -1,
          value: hintText
        }));
      }
    }]);

    return HintedInput;
  }(_react.default.Component);

  _defineProperty(HintedInput, "displayName", "HintContainer(".concat((0, _utils.getDisplayName)(Input), ")"));

  return (0, _TypeaheadContext.withContext)(HintedInput, ['hintText', 'initialItem', 'onAdd', 'selectHintOnEnter']);
}

var _default = hintContainer;
exports.default = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/inputContainer.js":
/*!***************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/inputContainer.js ***!
  \***************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _utils = __webpack_require__(/*! ../utils */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/index.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _extends() { _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; }; return _extends.apply(this, arguments); }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function inputContainer(Input) {
  var WrappedInput =
  /*#__PURE__*/
  function (_React$Component) {
    _inherits(WrappedInput, _React$Component);

    function WrappedInput() {
      _classCallCheck(this, WrappedInput);

      return _possibleConstructorReturn(this, _getPrototypeOf(WrappedInput).apply(this, arguments));
    }

    _createClass(WrappedInput, [{
      key: "render",
      value: function render() {
        var _cx;

        var _this$props = this.props,
            activeIndex = _this$props.activeIndex,
            bsSize = _this$props.bsSize,
            disabled = _this$props.disabled,
            inputRef = _this$props.inputRef,
            isFocused = _this$props.isFocused,
            isInvalid = _this$props.isInvalid,
            isMenuShown = _this$props.isMenuShown,
            isValid = _this$props.isValid,
            labelKey = _this$props.labelKey,
            menuId = _this$props.menuId,
            multiple = _this$props.multiple,
            onBlur = _this$props.onBlur,
            onChange = _this$props.onChange,
            onFocus = _this$props.onFocus,
            onKeyDown = _this$props.onKeyDown,
            onRemove = _this$props.onRemove,
            placeholder = _this$props.placeholder,
            renderToken = _this$props.renderToken,
            selected = _this$props.selected;
        var _this$props$inputProp = this.props.inputProps,
            autoComplete = _this$props$inputProp.autoComplete,
            type = _this$props$inputProp.type; // Add a11y-related props.

        var inputProps = _objectSpread({}, this.props.inputProps, {
          'aria-activedescendant': activeIndex >= 0 ? (0, _utils.getMenuItemId)(activeIndex) : undefined,
          'aria-autocomplete': multiple ? 'list' : 'both',
          'aria-expanded': isMenuShown,
          'aria-haspopup': 'listbox',
          'aria-owns': isMenuShown ? menuId : undefined,
          autoComplete: autoComplete || 'nope',
          disabled: disabled,
          inputRef: inputRef,
          onBlur: onBlur,
          onChange: onChange,
          // Re-open the menu, eg: if it's closed via ESC.
          onClick: onFocus,
          onFocus: onFocus,
          onKeyDown: onKeyDown,
          placeholder: selected.length ? null : placeholder,
          // Comboboxes are single-select by definition:
          // https://www.w3.org/TR/wai-aria-practices-1.1/#combobox
          role: 'combobox',
          type: type || 'text',
          value: (0, _utils.getInputText)(this.props)
        });

        var className = inputProps.className || '';

        if (multiple) {
          inputProps = _objectSpread({}, inputProps, {
            'aria-expanded': undefined,
            inputClassName: className,
            labelKey: labelKey,
            onRemove: onRemove,
            renderToken: renderToken,
            role: undefined,
            selected: selected
          });
        }

        return _react.default.createElement(Input, _extends({}, inputProps, {
          className: (0, _classnames.default)('rbt-input', (_cx = {}, _defineProperty(_cx, className, !multiple), _defineProperty(_cx, "focus", isFocused), _defineProperty(_cx, 'input-lg form-control-lg', bsSize === 'large' || bsSize === 'lg'), _defineProperty(_cx, 'input-sm form-control-sm', bsSize === 'small' || bsSize === 'sm'), _defineProperty(_cx, 'is-invalid', isInvalid), _defineProperty(_cx, 'is-valid', isValid), _cx))
        }));
      }
    }]);

    return WrappedInput;
  }(_react.default.Component);

  _defineProperty(WrappedInput, "displayName", "InputContainer(".concat((0, _utils.getDisplayName)(Input), ")"));

  return WrappedInput;
}

var _default = inputContainer;
exports.default = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/menuItemContainer.js":
/*!******************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/menuItemContainer.js ***!
  \******************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

var _TypeaheadContext = __webpack_require__(/*! ../TypeaheadContext */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/TypeaheadContext.js");

var _utils = __webpack_require__(/*! ../utils */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/index.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _extends() { _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; }; return _extends.apply(this, arguments); }

function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }

function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var menuItemContainer = function menuItemContainer(Component) {
  var WrappedMenuItem =
  /*#__PURE__*/
  function (_React$Component) {
    _inherits(WrappedMenuItem, _React$Component);

    function WrappedMenuItem() {
      var _getPrototypeOf2;

      var _this;

      _classCallCheck(this, WrappedMenuItem);

      for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(WrappedMenuItem)).call.apply(_getPrototypeOf2, [this].concat(args)));

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_handleClick", function (e) {
        var _this$props = _this.props,
            onMenuItemClick = _this$props.onMenuItemClick,
            option = _this$props.option,
            onClick = _this$props.onClick;
        onMenuItemClick(option, e);
        onClick && onClick(e);
      });

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_maybeUpdateItem", function () {
        var _this$props2 = _this.props,
            activeIndex = _this$props2.activeIndex,
            onActiveItemChange = _this$props2.onActiveItemChange,
            onInitialItemChange = _this$props2.onInitialItemChange,
            option = _this$props2.option,
            position = _this$props2.position;

        if (position === 0) {
          onInitialItemChange(option);
        }

        if (position === activeIndex) {
          // Ensures that if the menu items exceed the bounds of the menu, the
          // menu will scroll up or down as the user hits the arrow keys.

          /* eslint-disable-next-line react/no-find-dom-node */
          (0, _utils.scrollIntoViewIfNeeded)((0, _reactDom.findDOMNode)(_assertThisInitialized(_assertThisInitialized(_this))));
          onActiveItemChange(option);
        }
      });

      return _this;
    }

    _createClass(WrappedMenuItem, [{
      key: "componentDidMount",
      value: function componentDidMount() {
        this._maybeUpdateItem();
      }
    }, {
      key: "componentDidUpdate",
      value: function componentDidUpdate(prevProps, prevState) {
        this._maybeUpdateItem();
      }
    }, {
      key: "render",
      value: function render() {
        var _this$props3 = this.props,
            activeIndex = _this$props3.activeIndex,
            isOnlyResult = _this$props3.isOnlyResult,
            label = _this$props3.label,
            onActiveItemChange = _this$props3.onActiveItemChange,
            onInitialItemChange = _this$props3.onInitialItemChange,
            onMenuItemClick = _this$props3.onMenuItemClick,
            option = _this$props3.option,
            position = _this$props3.position,
            props = _objectWithoutProperties(_this$props3, ["activeIndex", "isOnlyResult", "label", "onActiveItemChange", "onInitialItemChange", "onMenuItemClick", "option", "position"]);

        var active = isOnlyResult || activeIndex === position;
        return _react.default.createElement(Component, _extends({}, props, {
          active: active,
          "aria-label": label,
          "aria-selected": active,
          id: (0, _utils.getMenuItemId)(position),
          onClick: this._handleClick,
          onMouseDown: _utils.preventInputBlur,
          role: "option"
        }));
      }
    }]);

    return WrappedMenuItem;
  }(_react.default.Component);

  _defineProperty(WrappedMenuItem, "displayName", "MenuItemContainer(".concat((0, _utils.getDisplayName)(Component), ")"));

  WrappedMenuItem.propTypes = {
    option: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.string]).isRequired,
    position: _propTypes.default.number
  };
  return (0, _TypeaheadContext.withContext)(WrappedMenuItem, ['activeIndex', 'isOnlyResult', 'onActiveItemChange', 'onInitialItemChange', 'onMenuItemClick']);
};

var _default = menuItemContainer;
exports.default = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/tokenContainer.js":
/*!***************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/tokenContainer.js ***!
  \***************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _RootCloseWrapper = _interopRequireDefault(__webpack_require__(/*! react-overlays/lib/RootCloseWrapper */ "./node_modules/react-overlays/lib/RootCloseWrapper.js"));

var _utils = __webpack_require__(/*! ../utils */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/index.js");

var _constants = __webpack_require__(/*! ../constants */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/constants.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _extends() { _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; }; return _extends.apply(this, arguments); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

/**
 * Higher-order component that encapsulates Token behaviors, allowing them to
 * be easily re-used.
 */
var tokenContainer = function tokenContainer(Component) {
  var WrappedComponent =
  /*#__PURE__*/
  function (_React$Component) {
    _inherits(WrappedComponent, _React$Component);

    function WrappedComponent() {
      var _getPrototypeOf2;

      var _this;

      _classCallCheck(this, WrappedComponent);

      for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(WrappedComponent)).call.apply(_getPrototypeOf2, [this].concat(args)));

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", {
        active: false
      });

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_handleBlur", function (e) {
        _this.setState({
          active: false
        });
      });

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_handleKeyDown", function (e) {
        switch (e.keyCode) {
          case _constants.BACKSPACE:
            if (_this.state.active) {
              // Prevent backspace keypress from triggering the browser "back"
              // action.
              e.preventDefault();

              _this.props.onRemove();
            }

            break;

          default:
            break;
        }
      });

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_handleActive", function (e) {
        e.stopPropagation();

        _this.setState({
          active: true
        });
      });

      return _this;
    }

    _createClass(WrappedComponent, [{
      key: "render",
      value: function render() {
        return _react.default.createElement(_RootCloseWrapper.default, {
          onRootClose: this._handleBlur
        }, _react.default.createElement(Component, _extends({}, this.props, this.state, {
          onBlur: this._handleBlur,
          onClick: this._handleActive,
          onFocus: this._handleActive,
          onKeyDown: this._handleKeyDown
        })));
      }
    }]);

    return WrappedComponent;
  }(_react.default.Component);

  WrappedComponent.displayName = "TokenContainer(".concat((0, _utils.getDisplayName)(Component), ")");
  return WrappedComponent;
};

var _default = tokenContainer;
exports.default = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/typeaheadContainer.js":
/*!*******************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/typeaheadContainer.js ***!
  \*******************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _head = _interopRequireDefault(__webpack_require__(/*! lodash/head */ "./node_modules/lodash/head.js"));

var _isEqual = _interopRequireDefault(__webpack_require__(/*! lodash/isEqual */ "./node_modules/lodash/isEqual.js"));

var _noop = _interopRequireDefault(__webpack_require__(/*! lodash/noop */ "./node_modules/lodash/noop.js"));

var _uniqueId = _interopRequireDefault(__webpack_require__(/*! lodash/uniqueId */ "./node_modules/lodash/uniqueId.js"));

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

var _deprecated = _interopRequireDefault(__webpack_require__(/*! prop-types-extra/lib/deprecated */ "./node_modules/prop-types-extra/lib/deprecated.js"));

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _RootCloseWrapper = _interopRequireDefault(__webpack_require__(/*! react-overlays/lib/RootCloseWrapper */ "./node_modules/react-overlays/lib/RootCloseWrapper.js"));

var _contextContainer = _interopRequireDefault(__webpack_require__(/*! ./contextContainer */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/contextContainer.js"));

var _propTypes2 = __webpack_require__(/*! ../propTypes */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/index.js");

var _utils = __webpack_require__(/*! ../utils */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/index.js");

var _constants = __webpack_require__(/*! ../constants */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/constants.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _extends() { _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; }; return _extends.apply(this, arguments); }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function genId() {
  var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  return prefix + Math.random().toString(36).substr(2, 12);
}

function getInitialState(props) {
  var defaultInputValue = props.defaultInputValue,
      defaultOpen = props.defaultOpen,
      defaultSelected = props.defaultSelected,
      maxResults = props.maxResults,
      multiple = props.multiple;
  var selected = props.selected ? props.selected.slice() : defaultSelected.slice();
  var text = defaultInputValue;

  if (!multiple && selected.length) {
    // Set the text if an initial selection is passed in.
    text = (0, _utils.getOptionLabel)((0, _head.default)(selected), props.labelKey);

    if (selected.length > 1) {
      // Limit to 1 selection in single-select mode.
      selected = selected.slice(0, 1);
    }
  }

  return {
    activeIndex: -1,
    activeItem: null,
    initialItem: null,
    isFocused: false,
    selected: selected,
    showMenu: defaultOpen,
    shownResults: maxResults,
    text: text
  };
}

function skipDisabledOptions(results, activeIndex, keyCode) {
  var newActiveIndex = activeIndex;

  while (results[newActiveIndex] && results[newActiveIndex].disabled) {
    newActiveIndex += keyCode === _constants.UP ? -1 : 1;
  }

  return newActiveIndex;
}

function typeaheadContainer(Component) {
  var Typeahead = (0, _contextContainer.default)(Component);

  var WrappedTypeahead =
  /*#__PURE__*/
  function (_React$Component) {
    _inherits(WrappedTypeahead, _React$Component);

    function WrappedTypeahead() {
      var _getPrototypeOf2;

      var _this;

      _classCallCheck(this, WrappedTypeahead);

      for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(WrappedTypeahead)).call.apply(_getPrototypeOf2, [this].concat(args)));

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", getInitialState(_this.props));

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_menuId", genId('rbt-menu-'));

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "blur", function () {
        _this.getInput().blur();

        _this._hideMenu();
      });

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "clear", function () {
        _this.setState(function (state, props) {
          return _objectSpread({}, getInitialState(props), {
            isFocused: state.isFocused,
            selected: [],
            text: ''
          });
        });
      });

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "focus", function () {
        _this.getInput().focus();
      });

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getInput", function () {
        return _this._input;
      });

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getInstance", function () {
        return _assertThisInitialized(_assertThisInitialized(_this));
      });

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_handleActiveIndexChange", function (activeIndex) {
        var newState = {
          activeIndex: activeIndex
        };

        if (activeIndex === -1) {
          // Reset the active item if there is no active index.
          newState.activeItem = null;
        }

        _this.setState(newState);
      });

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_handleActiveItemChange", function (activeItem) {
        // Don't update the active item if it hasn't changed.
        if (!(0, _utils.areEqual)(activeItem, _this.state.activeItem, _this.props.labelKey)) {
          _this.setState({
            activeItem: activeItem
          });
        }
      });

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_handleBlur", function (e) {
        e.persist();

        _this.setState({
          isFocused: false
        }, function () {
          return _this.props.onBlur(e);
        });
      });

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_handleClear", function () {
        _this.clear();

        _this._updateSelected([]);
      });

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_handleFocus", function (e) {
        e.persist();

        _this.setState({
          isFocused: true,
          showMenu: true
        }, function () {
          return _this.props.onFocus(e);
        });
      });

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_handleInitialItemChange", function (initialItem) {
        // Don't update the initial item if it hasn't changed.
        if (!(0, _utils.areEqual)(initialItem, _this.state.initialItem, _this.props.labelKey)) {
          _this.setState({
            initialItem: initialItem
          });
        }
      });

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_handleInputChange", function (e) {
        e.persist();
        var text = e.target.value;

        var _getInitialState = getInitialState(_this.props),
            activeIndex = _getInitialState.activeIndex,
            activeItem = _getInitialState.activeItem,
            shownResults = _getInitialState.shownResults;

        var _this$props = _this.props,
            multiple = _this$props.multiple,
            onInputChange = _this$props.onInputChange;

        _this.setState({
          activeIndex: activeIndex,
          activeItem: activeItem,
          showMenu: true,
          shownResults: shownResults,
          text: text
        }, function () {
          return onInputChange(text, e);
        }); // Clear any selections if text is entered in single-select mode.


        if (_this.state.selected.length && !multiple) {
          _this._updateSelected([]);
        }
      });

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_handleKeyDown", function (e, results, isMenuShown) {
        var activeItem = _this.state.activeItem;
        var activeIndex = _this.state.activeIndex;

        switch (e.keyCode) {
          case _constants.UP:
          case _constants.DOWN:
            if (!isMenuShown) {
              _this._showMenu();

              break;
            } // Prevents input cursor from going to the beginning when pressing up.


            e.preventDefault(); // Increment or decrement index based on user keystroke.

            activeIndex += e.keyCode === _constants.UP ? -1 : 1; // Skip over any disabled options.

            activeIndex = skipDisabledOptions(results, activeIndex, e.keyCode); // If we've reached the end, go back to the beginning or vice-versa.

            if (activeIndex === results.length) {
              activeIndex = -1;
            } else if (activeIndex === -2) {
              activeIndex = results.length - 1; // Skip over any disabled options.

              activeIndex = skipDisabledOptions(results, activeIndex, e.keyCode);
            }

            _this._handleActiveIndexChange(activeIndex);

            break;

          case _constants.ESC:
            isMenuShown && _this._hideMenu();
            break;

          case _constants.RETURN:
            if (!isMenuShown) {
              break;
            } // Prevent form submission while menu is open.


            e.preventDefault();
            activeItem && _this._handleMenuItemSelect(activeItem, e);
            break;

          case _constants.RIGHT:
          case _constants.TAB:
            if (!isMenuShown) {
              break;
            }

            if (activeItem && !activeItem.paginationOption) {
              // Prevent blurring when selecting the active item.
              e.keyCode === _constants.TAB && e.preventDefault();

              _this._handleSelectionAdd(activeItem);

              break;
            }

            if (e.keyCode === _constants.TAB) {
              _this._hideMenu();
            }

            break;

          default:
            break;
        }

        _this.props.onKeyDown(e);
      });

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_handleMenuItemSelect", function (option, e) {
        if (option.paginationOption) {
          _this._handlePaginate(e);
        } else {
          _this._handleSelectionAdd(option);
        }
      });

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_handlePaginate", function (e) {
        e.persist();

        _this.setState(function (_ref, _ref2) {
          var shownResults = _ref.shownResults;
          var maxResults = _ref2.maxResults;
          return {
            shownResults: shownResults + maxResults
          };
        }, function () {
          return _this.props.onPaginate(e, _this.state.shownResults);
        });
      });

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_handleSelectionAdd", function (selection) {
        var _this$props2 = _this.props,
            multiple = _this$props2.multiple,
            labelKey = _this$props2.labelKey;
        var selected;
        var text;

        if (multiple) {
          // If multiple selections are allowed, add the new selection to the
          // existing selections.
          selected = _this.state.selected.concat(selection);
          text = '';
        } else {
          // If only a single selection is allowed, replace the existing selection
          // with the new one.
          selected = [selection];
          text = (0, _utils.getOptionLabel)(selection, labelKey);
        }

        _this._hideMenu();

        _this.setState({
          initialItem: selection,
          text: text
        }); // Text must be updated before the selection to fix #211.
        // TODO: Find a more robust way of solving the issue.


        _this._updateSelected(selected);
      });

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_handleSelectionRemove", function (selection) {
        var selected = _this.state.selected.filter(function (option) {
          return !(0, _isEqual.default)(option, selection);
        }); // Make sure the input stays focused after the item is removed.


        _this.focus();

        _this._hideMenu();

        _this._updateSelected(selected);
      });

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_handleRootClose", function (e) {
        // Don't register clicks on the menu when it is appended to
        // `document.body`.
        var isBodyMenuClick = (_this.props.bodyContainer || _this.props.positionFixed) && e.path.some(function (_ref3) {
          var className = _ref3.className;
          return className && className.indexOf('rbt-menu') > -1;
        });

        if (isBodyMenuClick || !_this.state.showMenu) {
          return;
        }

        _this._hideMenu();
      });

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_hideMenu", function () {
        var _getInitialState2 = getInitialState(_this.props),
            activeIndex = _getInitialState2.activeIndex,
            activeItem = _getInitialState2.activeItem,
            shownResults = _getInitialState2.shownResults;

        _this.setState({
          activeIndex: activeIndex,
          activeItem: activeItem,
          showMenu: false,
          shownResults: shownResults
        });
      });

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_showMenu", function () {
        _this.setState({
          showMenu: true
        });
      });

      _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_updateSelected", function (selected) {
        _this.setState({
          selected: selected
        }, function () {
          _this.props.onChange && _this.props.onChange(selected);
        });
      });

      return _this;
    }

    _createClass(WrappedTypeahead, [{
      key: "componentDidMount",
      value: function componentDidMount() {
        this.props.autoFocus && this.focus();
      }
    }, {
      key: "componentWillReceiveProps",
      value: function componentWillReceiveProps(nextProps) {
        var labelKey = nextProps.labelKey,
            multiple = nextProps.multiple,
            selected = nextProps.selected; // If new selections are passed via props, treat as a controlled input.

        if (selected && !(0, _isEqual.default)(selected, this.state.selected)) {
          this.setState({
            selected: selected
          });

          if (multiple) {
            return;
          }

          this.setState({
            text: selected.length ? (0, _utils.getOptionLabel)((0, _head.default)(selected), labelKey) : ''
          });
        } // Truncate selections when in single-select mode.


        var newSelected = selected || this.state.selected;

        if (!multiple && newSelected.length > 1) {
          newSelected = newSelected.slice(0, 1);
          this.setState({
            selected: newSelected,
            text: (0, _utils.getOptionLabel)((0, _head.default)(newSelected), labelKey)
          });
          return;
        }

        if (multiple !== this.props.multiple) {
          this.setState({
            text: ''
          });
        }
      }
    }, {
      key: "render",
      value: function render() {
        var _this2 = this;

        var mergedPropsAndState = _objectSpread({}, this.props, this.state);

        var filterBy = mergedPropsAndState.filterBy,
            labelKey = mergedPropsAndState.labelKey,
            minLength = mergedPropsAndState.minLength,
            options = mergedPropsAndState.options,
            paginate = mergedPropsAndState.paginate,
            paginationText = mergedPropsAndState.paginationText,
            shownResults = mergedPropsAndState.shownResults,
            text = mergedPropsAndState.text;
        var results = [];

        if (text.length >= minLength) {
          var cb = Array.isArray(filterBy) ? _utils.defaultFilterBy : filterBy;
          results = options.filter(function (option) {
            return cb(option, mergedPropsAndState);
          });
        } // This must come before results are truncated.


        var shouldPaginate = paginate && results.length > shownResults; // Truncate results if necessary.

        results = (0, _utils.getTruncatedOptions)(results, shownResults); // Add the custom option if necessary.

        if ((0, _utils.addCustomOption)(results, mergedPropsAndState)) {
          results.push(_defineProperty({
            customOption: true,
            id: (0, _uniqueId.default)('new-id-')
          }, (0, _utils.getStringLabelKey)(labelKey), text));
        } // Add the pagination item if necessary.


        if (shouldPaginate) {
          var _results$push2;

          results.push((_results$push2 = {}, _defineProperty(_results$push2, (0, _utils.getStringLabelKey)(labelKey), paginationText), _defineProperty(_results$push2, "paginationOption", true), _results$push2));
        } // This must come after checks for the custom option and pagination.


        var isMenuShown = (0, _utils.isShown)(results, mergedPropsAndState);
        return _react.default.createElement(_RootCloseWrapper.default, {
          disabled: this.props.open,
          onRootClose: this._handleRootClose
        }, _react.default.createElement(Typeahead, _extends({}, mergedPropsAndState, {
          bodyContainer: this.props.positionFixed || this.props.bodyContainer,
          inputRef: function inputRef(input) {
            return _this2._input = input;
          },
          isMenuShown: isMenuShown,
          menuId: this.props.id || this.props.menuId || this._menuId,
          onActiveItemChange: this._handleActiveItemChange,
          onAdd: this._handleSelectionAdd,
          onBlur: this._handleBlur,
          onChange: this._handleInputChange,
          onClear: this._handleClear,
          onFocus: this._handleFocus,
          onInitialItemChange: this._handleInitialItemChange,
          onKeyDown: function onKeyDown(e) {
            return _this2._handleKeyDown(e, results, isMenuShown);
          },
          onMenuItemClick: this._handleMenuItemSelect,
          onRemove: this._handleSelectionRemove,
          results: results
        })));
      }
    }]);

    return WrappedTypeahead;
  }(_react.default.Component);

  WrappedTypeahead.displayName = "TypeaheadContainer(".concat((0, _utils.getDisplayName)(Typeahead), ")");
  WrappedTypeahead.propTypes = {
    /**
     * For localized accessibility: Should return a string indicating the number
     * of results for screen readers. Receives the current results.
     */
    a11yNumResults: _propTypes.default.func,

    /**
     * For localized accessibility: Should return a string indicating the number
     * of selections for screen readers. Receives the current selections.
     */
    a11yNumSelected: _propTypes.default.func,

    /**
     * Specify menu alignment. The default value is `justify`, which makes the
     * menu as wide as the input and truncates long values. Specifying `left`
     * or `right` will align the menu to that side and the width will be
     * determined by the length of menu item values.
     */
    align: _propTypes.default.oneOf(['justify', 'left', 'right']),

    /**
     * Allows the creation of new selections on the fly. Note that any new items
     * will be added to the list of selections, but not the list of original
     * options unless handled as such by `Typeahead`'s parent.
     *
     * If a function is specified, it will be used to determine whether a custom
     * option should be included. The return value should be true or false.
     */
    allowNew: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.func]),

    /**
     * Autofocus the input when the component initially mounts.
     */
    autoFocus: _propTypes.default.bool,

    /**
     * Whether to render the menu inline or attach to `document.body`.
     */
    bodyContainer: (0, _deprecated.default)(_propTypes.default.bool, 'Use `positionFixed` instead'),

    /**
     * Whether or not filtering should be case-sensitive.
     */
    caseSensitive: (0, _propTypes2.checkPropType)(_propTypes.default.bool, _propTypes2.caseSensitiveType),

    /**
     * Displays a button to clear the input when there are selections.
     */
    clearButton: _propTypes.default.bool,

    /**
     * The initial value displayed in the text input.
     */
    defaultInputValue: (0, _propTypes2.checkPropType)(_propTypes.default.string, _propTypes2.defaultInputValueType),

    /**
     * Whether or not the menu is displayed upon initial render.
     */
    defaultOpen: _propTypes.default.bool,

    /**
     * Specify any pre-selected options. Use only if you want the component to
     * be uncontrolled.
     */
    defaultSelected: _propTypes2.optionType,

    /**
     * Whether to disable the component.
     */
    disabled: _propTypes.default.bool,

    /**
     * Specify whether the menu should appear above the input.
     */
    dropup: _propTypes.default.bool,

    /**
     * Message to display in the menu if there are no valid results.
     */
    emptyLabel: (0, _propTypes2.checkPropType)(_propTypes.default.node, _propTypes2.emptyLabelType),

    /**
     * Either an array of fields in `option` to search, or a custom filtering
     * callback.
     */
    filterBy: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]),

    /**
     * Whether or not to automatically adjust the position of the menu when it
     * reaches the viewport boundaries.
     */
    flip: _propTypes.default.bool,

    /**
     * Highlights the menu item if there is only one result and allows selecting
     * that item by hitting enter. Does not work with `allowNew`.
     */
    highlightOnlyResult: (0, _propTypes2.checkPropType)(_propTypes.default.bool, _propTypes2.highlightOnlyResultType),

    /**
     * An html id attribute, required for assistive technologies such as screen
     * readers.
     */
    id: (0, _propTypes2.checkPropType)(_propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]), _propTypes2.idType),

    /**
     * Whether the filter should ignore accents and other diacritical marks.
     */
    ignoreDiacritics: (0, _propTypes2.checkPropType)(_propTypes.default.bool, _propTypes2.ignoreDiacriticsType),

    /**
     * Props to be applied directly to the input. `onBlur`, `onChange`,
     * `onFocus`, and `onKeyDown` are ignored.
     */
    inputProps: (0, _propTypes2.checkPropType)(_propTypes.default.object, _propTypes2.inputPropsType),

    /**
     * Bootstrap 4 only. Adds the `is-invalid` classname to the `form-control`.
     */
    isInvalid: _propTypes.default.bool,

    /**
     * Indicate whether an asynchronous data fetch is happening.
     */
    isLoading: _propTypes.default.bool,

    /**
     * Bootstrap 4 only. Adds the `is-valid` classname to the `form-control`.
     */
    isValid: _propTypes.default.bool,

    /**
     * Specify the option key to use for display or a function returning the
     * display string. By default, the selector will use the `label` key.
     */
    labelKey: (0, _propTypes2.checkPropType)(_propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.func]), _propTypes2.labelKeyType),

    /**
     * Maximum number of results to display by default. Mostly done for
     * performance reasons so as not to render too many DOM nodes in the case of
     * large data sets.
     */
    maxResults: _propTypes.default.number,

    /**
     * Id applied to the top-level menu element. Required for accessibility.
     */
    menuId: (0, _propTypes2.checkPropType)(_propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]), _propTypes2.idType),

    /**
     * Number of input characters that must be entered before showing results.
     */
    minLength: _propTypes.default.number,

    /**
     * Whether or not multiple selections are allowed.
     */
    multiple: _propTypes.default.bool,

    /**
     * Invoked when the input is blurred. Receives an event.
     */
    onBlur: _propTypes.default.func,

    /**
     * Invoked whenever items are added or removed. Receives an array of the
     * selected options.
     */
    onChange: _propTypes.default.func,

    /**
     * Invoked when the input is focused. Receives an event.
     */
    onFocus: _propTypes.default.func,

    /**
     * Invoked when the input value changes. Receives the string value of the
     * input.
     */
    onInputChange: _propTypes.default.func,

    /**
     * Invoked when a key is pressed. Receives an event.
     */
    onKeyDown: _propTypes.default.func,

    /**
     * Invoked when the menu is hidden.
     */
    onMenuHide: (0, _deprecated.default)(_propTypes.default.func, 'Use `onMenuToggle` instead'),

    /**
     * Invoked when the menu is shown.
     */
    onMenuShow: (0, _deprecated.default)(_propTypes.default.func, 'Use `onMenuToggle` instead'),

    /**
     * Invoked when menu visibility changes.
     */
    onMenuToggle: _propTypes.default.func,

    /**
     * Invoked when the pagination menu item is clicked. Receives an event.
     */
    onPaginate: _propTypes.default.func,

    /**
     * Whether or not the menu should be displayed. `undefined` allows the
     * component to control visibility, while `true` and `false` show and hide
     * the menu, respectively.
     */
    open: _propTypes.default.bool,

    /**
     * Full set of options, including pre-selected options. Must either be an
     * array of objects (recommended) or strings.
     */
    options: _propTypes2.optionType.isRequired,

    /**
     * Give user the ability to display additional results if the number of
     * results exceeds `maxResults`.
     */
    paginate: _propTypes.default.bool,

    /**
     * Prompt displayed when large data sets are paginated.
     */
    paginationText: _propTypes.default.string,

    /**
     * Placeholder text for the input.
     */
    placeholder: _propTypes.default.string,

    /**
     * Callback for custom menu rendering.
     */
    renderMenu: _propTypes.default.func,

    /**
     * The selected option(s) displayed in the input. Use this prop if you want
     * to control the component via its parent.
     */
    selected: (0, _propTypes2.checkPropType)(_propTypes2.optionType, _propTypes2.selectedType),

    /**
     * Allows selecting the hinted result by pressing enter.
     */
    selectHintOnEnter: _propTypes.default.bool
  };
  WrappedTypeahead.defaultProps = {
    a11yNumResults: function a11yNumResults(results) {
      var resultString = (0, _utils.pluralize)('result', results.length);
      return "".concat(resultString, ". Use up and down arrow keys to navigate.");
    },
    a11yNumSelected: function a11yNumSelected(selected) {
      return (0, _utils.pluralize)('selection', selected.length);
    },
    align: 'justify',
    allowNew: false,
    autoFocus: false,
    caseSensitive: false,
    clearButton: false,
    defaultInputValue: '',
    defaultOpen: false,
    defaultSelected: [],
    disabled: false,
    dropup: false,
    emptyLabel: 'No matches found.',
    filterBy: [],
    flip: false,
    highlightOnlyResult: false,
    ignoreDiacritics: true,
    inputProps: {},
    isInvalid: false,
    isLoading: false,
    isValid: false,
    labelKey: _constants.DEFAULT_LABELKEY,
    maxResults: 100,
    minLength: 0,
    multiple: false,
    onBlur: _noop.default,
    onFocus: _noop.default,
    onInputChange: _noop.default,
    onKeyDown: _noop.default,
    onPaginate: _noop.default,
    paginate: true,
    paginationText: 'Display additional results...',
    placeholder: '',
    selectHintOnEnter: false
  };
  return WrappedTypeahead;
}

var _default = typeaheadContainer;
exports.default = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/index.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/index.js ***!
  \*******************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
Object.defineProperty(exports, "AsyncTypeahead", {
  enumerable: true,
  get: function get() {
    return _AsyncTypeahead2.default;
  }
});
Object.defineProperty(exports, "Highlighter", {
  enumerable: true,
  get: function get() {
    return _Highlighter2.default;
  }
});
Object.defineProperty(exports, "Menu", {
  enumerable: true,
  get: function get() {
    return _Menu2.default;
  }
});
Object.defineProperty(exports, "MenuItem", {
  enumerable: true,
  get: function get() {
    return _MenuItem2.default;
  }
});
Object.defineProperty(exports, "Token", {
  enumerable: true,
  get: function get() {
    return _Token2.default;
  }
});
Object.defineProperty(exports, "Typeahead", {
  enumerable: true,
  get: function get() {
    return _Typeahead2.default;
  }
});
Object.defineProperty(exports, "TypeaheadMenu", {
  enumerable: true,
  get: function get() {
    return _TypeaheadMenu2.default;
  }
});
Object.defineProperty(exports, "asyncContainer", {
  enumerable: true,
  get: function get() {
    return _asyncContainer2.default;
  }
});
Object.defineProperty(exports, "menuItemContainer", {
  enumerable: true,
  get: function get() {
    return _menuItemContainer2.default;
  }
});
Object.defineProperty(exports, "tokenContainer", {
  enumerable: true,
  get: function get() {
    return _tokenContainer2.default;
  }
});

var _AsyncTypeahead2 = _interopRequireDefault(__webpack_require__(/*! ./AsyncTypeahead.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/AsyncTypeahead.react.js"));

var _Highlighter2 = _interopRequireDefault(__webpack_require__(/*! ./Highlighter.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Highlighter.react.js"));

var _Menu2 = _interopRequireDefault(__webpack_require__(/*! ./Menu.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Menu.react.js"));

var _MenuItem2 = _interopRequireDefault(__webpack_require__(/*! ./MenuItem.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/MenuItem.react.js"));

var _Token2 = _interopRequireDefault(__webpack_require__(/*! ./Token.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Token.react.js"));

var _Typeahead2 = _interopRequireDefault(__webpack_require__(/*! ./Typeahead.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Typeahead.react.js"));

var _TypeaheadMenu2 = _interopRequireDefault(__webpack_require__(/*! ./TypeaheadMenu.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/TypeaheadMenu.react.js"));

var _asyncContainer2 = _interopRequireDefault(__webpack_require__(/*! ./containers/asyncContainer */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/asyncContainer.js"));

var _menuItemContainer2 = _interopRequireDefault(__webpack_require__(/*! ./containers/menuItemContainer */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/menuItemContainer.js"));

var _tokenContainer2 = _interopRequireDefault(__webpack_require__(/*! ./containers/tokenContainer */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/tokenContainer.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/caseSensitiveType.js":
/*!*****************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/caseSensitiveType.js ***!
  \*****************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = caseSensitiveType;

var _warn = _interopRequireDefault(__webpack_require__(/*! ../utils/warn */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/warn.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function caseSensitiveType(props, propName, componentName) {
  var caseSensitive = props.caseSensitive,
      filterBy = props.filterBy;
  (0, _warn.default)(!caseSensitive || typeof filterBy !== 'function', 'Your `filterBy` function will override the `caseSensitive` prop.');
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/checkPropType.js":
/*!*************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/checkPropType.js ***!
  \*************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = checkPropType;

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

/**
 * Allows additional warnings or messaging related to prop validation.
 */
function checkPropType(validator, callback) {
  return function (props, propName, componentName) {
    _propTypes.default.checkPropTypes(_defineProperty({}, propName, validator), props, 'prop', componentName);

    typeof callback === 'function' && callback(props, propName, componentName);
  };
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/defaultInputValueType.js":
/*!*********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/defaultInputValueType.js ***!
  \*********************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = defaultInputValueType;

var _warn = _interopRequireDefault(__webpack_require__(/*! ../utils/warn */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/warn.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function defaultInputValueType(props, propName, componentName) {
  var defaultInputValue = props.defaultInputValue,
      defaultSelected = props.defaultSelected,
      multiple = props.multiple,
      selected = props.selected;
  var name = defaultSelected.length ? 'defaultSelected' : 'selected';
  (0, _warn.default)(!(!multiple && defaultInputValue && (defaultSelected.length || selected && selected.length)), "`defaultInputValue` will be overridden by the value from `".concat(name, "`."));
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/emptyLabelType.js":
/*!**************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/emptyLabelType.js ***!
  \**************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = emptyLabelType;

var _warn = _interopRequireDefault(__webpack_require__(/*! ../utils/warn */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/warn.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function emptyLabelType(props, propName, componentName) {
  var emptyLabel = props.emptyLabel;
  (0, _warn.default)(!!emptyLabel, 'Passing a falsy `emptyLabel` value to hide the menu when the result set ' + 'is empty is deprecated. Use `renderMenu` to return `null` instead.');
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/highlightOnlyResultType.js":
/*!***********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/highlightOnlyResultType.js ***!
  \***********************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = highlightOnlyResultType;

var _warn = _interopRequireDefault(__webpack_require__(/*! ../utils/warn */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/warn.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function highlightOnlyResultType(props, propName, componentName) {
  var allowNew = props.allowNew,
      highlightOnlyResult = props.highlightOnlyResult;
  (0, _warn.default)(!(highlightOnlyResult && allowNew), '`highlightOnlyResult` will not work with `allowNew`.');
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/idType.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/idType.js ***!
  \******************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = idType;

var _warn = _interopRequireDefault(__webpack_require__(/*! ../utils/warn */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/warn.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function idType(props, propName, componentName) {
  var id = props.id,
      menuId = props.menuId;
  (0, _warn.default)(menuId == null, 'The `menuId` prop is deprecated. Use `id` instead.');
  (0, _warn.default)(id != null, 'The `id` prop will be required in future versions to make the component ' + 'accessible for users of assistive technologies such as screen readers.');
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/ignoreDiacriticsType.js":
/*!********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/ignoreDiacriticsType.js ***!
  \********************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = ignoreDiacriticsType;

var _warn = _interopRequireDefault(__webpack_require__(/*! ../utils/warn */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/warn.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function ignoreDiacriticsType(props, propName, componentName) {
  var filterBy = props.filterBy,
      ignoreDiacritics = props.ignoreDiacritics;
  (0, _warn.default)(ignoreDiacritics || typeof filterBy !== 'function', 'Your `filterBy` function will override the `ignoreDiacritics` prop.');
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/index.js":
/*!*****************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/index.js ***!
  \*****************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
Object.defineProperty(exports, "caseSensitiveType", {
  enumerable: true,
  get: function get() {
    return _caseSensitiveType2.default;
  }
});
Object.defineProperty(exports, "checkPropType", {
  enumerable: true,
  get: function get() {
    return _checkPropType2.default;
  }
});
Object.defineProperty(exports, "defaultInputValueType", {
  enumerable: true,
  get: function get() {
    return _defaultInputValueType2.default;
  }
});
Object.defineProperty(exports, "emptyLabelType", {
  enumerable: true,
  get: function get() {
    return _emptyLabelType2.default;
  }
});
Object.defineProperty(exports, "highlightOnlyResultType", {
  enumerable: true,
  get: function get() {
    return _highlightOnlyResultType2.default;
  }
});
Object.defineProperty(exports, "idType", {
  enumerable: true,
  get: function get() {
    return _idType2.default;
  }
});
Object.defineProperty(exports, "ignoreDiacriticsType", {
  enumerable: true,
  get: function get() {
    return _ignoreDiacriticsType2.default;
  }
});
Object.defineProperty(exports, "inputPropsType", {
  enumerable: true,
  get: function get() {
    return _inputPropsType2.default;
  }
});
Object.defineProperty(exports, "labelKeyType", {
  enumerable: true,
  get: function get() {
    return _labelKeyType2.default;
  }
});
Object.defineProperty(exports, "optionType", {
  enumerable: true,
  get: function get() {
    return _optionType2.default;
  }
});
Object.defineProperty(exports, "selectedType", {
  enumerable: true,
  get: function get() {
    return _selectedType2.default;
  }
});

var _caseSensitiveType2 = _interopRequireDefault(__webpack_require__(/*! ./caseSensitiveType */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/caseSensitiveType.js"));

var _checkPropType2 = _interopRequireDefault(__webpack_require__(/*! ./checkPropType */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/checkPropType.js"));

var _defaultInputValueType2 = _interopRequireDefault(__webpack_require__(/*! ./defaultInputValueType */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/defaultInputValueType.js"));

var _emptyLabelType2 = _interopRequireDefault(__webpack_require__(/*! ./emptyLabelType */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/emptyLabelType.js"));

var _highlightOnlyResultType2 = _interopRequireDefault(__webpack_require__(/*! ./highlightOnlyResultType */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/highlightOnlyResultType.js"));

var _idType2 = _interopRequireDefault(__webpack_require__(/*! ./idType */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/idType.js"));

var _ignoreDiacriticsType2 = _interopRequireDefault(__webpack_require__(/*! ./ignoreDiacriticsType */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/ignoreDiacriticsType.js"));

var _inputPropsType2 = _interopRequireDefault(__webpack_require__(/*! ./inputPropsType */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/inputPropsType.js"));

var _labelKeyType2 = _interopRequireDefault(__webpack_require__(/*! ./labelKeyType */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/labelKeyType.js"));

var _optionType2 = _interopRequireDefault(__webpack_require__(/*! ./optionType */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/optionType.js"));

var _selectedType2 = _interopRequireDefault(__webpack_require__(/*! ./selectedType */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/selectedType.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/inputPropsType.js":
/*!**************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/inputPropsType.js ***!
  \**************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = inputPropsType;

var _isPlainObject = _interopRequireDefault(__webpack_require__(/*! lodash/isPlainObject */ "./node_modules/lodash/isPlainObject.js"));

var _warn = _interopRequireDefault(__webpack_require__(/*! ../utils/warn */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/warn.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var BLACKLIST = [{
  alt: 'onBlur',
  prop: 'onBlur'
}, {
  alt: 'onInputChange',
  prop: 'onChange'
}, {
  alt: 'onFocus',
  prop: 'onFocus'
}, {
  alt: 'onKeyDown',
  prop: 'onKeyDown'
}];

function inputPropsType(props, propName, componentName) {
  var inputProps = props.inputProps;

  if (!(inputProps && (0, _isPlainObject.default)(inputProps))) {
    return;
  } // Blacklisted properties.


  BLACKLIST.forEach(function (_ref) {
    var alt = _ref.alt,
        prop = _ref.prop;
    var msg = alt ? " Use the top-level `".concat(alt, "` prop instead.") : null;
    (0, _warn.default)(!inputProps[prop], "The `".concat(prop, "` property of `inputProps` will be ignored.").concat(msg));
  });
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/labelKeyType.js":
/*!************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/labelKeyType.js ***!
  \************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = labelKeyType;

var _warn = _interopRequireDefault(__webpack_require__(/*! ../utils/warn */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/warn.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function labelKeyType(props, propName, componentName) {
  var allowNew = props.allowNew,
      labelKey = props.labelKey;
  (0, _warn.default)(!(typeof labelKey === 'function' && allowNew), '`labelKey` must be a string when `allowNew={true}`.');
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/optionType.js":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/optionType.js ***!
  \**********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var _default = _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.object.isRequired), _propTypes.default.arrayOf(_propTypes.default.string.isRequired)]);

exports.default = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/selectedType.js":
/*!************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/selectedType.js ***!
  \************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = selectedType;

var _warn = _interopRequireDefault(__webpack_require__(/*! ../utils/warn */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/warn.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function selectedType(props, propName, componentName) {
  var onChange = props.onChange,
      selected = props.selected;
  (0, _warn.default)(!selected || selected && typeof onChange === 'function', 'You provided a `selected` prop without an `onChange` handler. If you ' + 'want the typeahead to be uncontrolled, use `defaultSelected`. ' + 'Otherwise, set `onChange`.');
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/addCustomOption.js":
/*!***********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/addCustomOption.js ***!
  \***********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _getOptionLabel = _interopRequireDefault(__webpack_require__(/*! ./getOptionLabel */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getOptionLabel.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function addCustomOption(results, props) {
  var allowNew = props.allowNew,
      labelKey = props.labelKey,
      text = props.text;

  if (!allowNew || !text.trim()) {
    return false;
  } // If the consumer has provided a callback, use that to determine whether or
  // not to add the custom option.


  if (typeof allowNew === 'function') {
    return allowNew(results, props);
  } // By default, don't add the custom option if there is an exact text match
  // with an existing option.


  return !results.some(function (o) {
    return (0, _getOptionLabel.default)(o, labelKey) === text;
  });
}

var _default = addCustomOption;
exports.default = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/areEqual.js":
/*!****************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/areEqual.js ***!
  \****************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = areEqual;

var _isEqual = _interopRequireDefault(__webpack_require__(/*! lodash/isEqual */ "./node_modules/lodash/isEqual.js"));

var _getStringLabelKey = _interopRequireDefault(__webpack_require__(/*! ./getStringLabelKey */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getStringLabelKey.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/**
 * Compare whether items are the same. For custom items, compare the
 * `labelKey` values since a unique id is generated each time, causing the
 * comparison to fail.
 */
function areEqual(newItem, existingItem, labelKey) {
  var stringLabelKey = (0, _getStringLabelKey.default)(labelKey);

  if (newItem && newItem.customOption && existingItem && existingItem.customOption) {
    return newItem[stringLabelKey] === existingItem[stringLabelKey];
  }

  return (0, _isEqual.default)(newItem, existingItem);
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/defaultFilterBy.js":
/*!***********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/defaultFilterBy.js ***!
  \***********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = defaultFilterBy;

var _isEqual = _interopRequireDefault(__webpack_require__(/*! lodash/isEqual */ "./node_modules/lodash/isEqual.js"));

var _isFunction = _interopRequireDefault(__webpack_require__(/*! lodash/isFunction */ "./node_modules/lodash/isFunction.js"));

var _isString = _interopRequireDefault(__webpack_require__(/*! lodash/isString */ "./node_modules/lodash/isString.js"));

var _some = _interopRequireDefault(__webpack_require__(/*! lodash/some */ "./node_modules/lodash/some.js"));

var _stripDiacritics = _interopRequireDefault(__webpack_require__(/*! ./stripDiacritics */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/stripDiacritics.js"));

var _warn = _interopRequireDefault(__webpack_require__(/*! ./warn */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/warn.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function isMatch(input, string, props) {
  var searchStr = input;
  var str = string;

  if (!props.caseSensitive) {
    searchStr = searchStr.toLowerCase();
    str = str.toLowerCase();
  }

  if (props.ignoreDiacritics) {
    searchStr = (0, _stripDiacritics.default)(searchStr);
    str = (0, _stripDiacritics.default)(str);
  }

  return str.indexOf(searchStr) !== -1;
}
/**
 * Default algorithm for filtering results.
 */


function defaultFilterBy(option, props) {
  var filterBy = props.filterBy,
      labelKey = props.labelKey,
      multiple = props.multiple,
      selected = props.selected,
      text = props.text; // Don't show selected options in the menu for the multi-select case.

  if (multiple && selected.some(function (o) {
    return (0, _isEqual.default)(o, option);
  })) {
    return false;
  }

  var fields = filterBy.slice();

  if ((0, _isFunction.default)(labelKey) && isMatch(text, labelKey(option), props)) {
    return true;
  }

  if ((0, _isString.default)(labelKey)) {
    // Add the `labelKey` field to the list of fields if it isn't already there.
    if (fields.indexOf(labelKey) === -1) {
      fields.unshift(labelKey);
    }
  }

  if ((0, _isString.default)(option)) {
    (0, _warn.default)(fields.length <= 1, 'You cannot filter by properties when `option` is a string.');
    return isMatch(text, option, props);
  }

  return (0, _some.default)(fields, function (field) {
    var value = option[field];

    if (!(0, _isString.default)(value)) {
      (0, _warn.default)(false, 'Fields passed to `filterBy` should have string values. Value will ' + 'be converted to a string; results may be unexpected.'); // Coerce to string since `toString` isn't null-safe.

      value = "".concat(value);
    }

    return isMatch(text, value, props);
  });
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getAccessibilityStatus.js":
/*!******************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getAccessibilityStatus.js ***!
  \******************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

function getAccessibilityStatus(props) {
  var a11yNumResults = props.a11yNumResults,
      a11yNumSelected = props.a11yNumSelected,
      emptyLabel = props.emptyLabel,
      isMenuShown = props.isMenuShown,
      results = props.results,
      selected = props.selected; // If the menu is hidden, display info about the number of selections.

  if (!isMenuShown) {
    return a11yNumSelected(selected);
  } // Display info about the number of matches.


  if (results.length === 0) {
    return emptyLabel;
  }

  return a11yNumResults(results);
}

var _default = getAccessibilityStatus;
exports.default = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getDisplayName.js":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getDisplayName.js ***!
  \**********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = getDisplayName;

function getDisplayName(WrappedComponent) {
  return WrappedComponent.displayName || WrappedComponent.name || 'Component';
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getHintText.js":
/*!*******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getHintText.js ***!
  \*******************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _getMatchBounds = _interopRequireDefault(__webpack_require__(/*! ./getMatchBounds */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getMatchBounds.js"));

var _getOptionLabel = _interopRequireDefault(__webpack_require__(/*! ./getOptionLabel */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getOptionLabel.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function getHintText(_ref) {
  var activeItem = _ref.activeItem,
      initialItem = _ref.initialItem,
      isFocused = _ref.isFocused,
      isMenuShown = _ref.isMenuShown,
      labelKey = _ref.labelKey,
      multiple = _ref.multiple,
      selected = _ref.selected,
      text = _ref.text;

  // Don't display a hint under the following conditions:
  if ( // No text entered.
  !text || // The input is not focused.
  !isFocused || // The menu is hidden.
  !isMenuShown || // No item in the menu.
  !initialItem || // The initial item is a custom option.
  initialItem.customOption || // One of the menu items is active.
  activeItem || // There's already a selection in single-select mode.
  !!selected.length && !multiple) {
    return '';
  }

  var initialItemStr = (0, _getOptionLabel.default)(initialItem, labelKey);
  var bounds = (0, _getMatchBounds.default)(initialItemStr.toLowerCase(), text.toLowerCase());

  if (!(bounds && bounds.start === 0)) {
    return '';
  } // Text matching is case- and accent-insensitive, so to display the hint
  // correctly, splice the input string with the hint string.


  return text + initialItemStr.slice(bounds.end, initialItemStr.length);
}

var _default = getHintText;
exports.default = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getInputText.js":
/*!********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getInputText.js ***!
  \********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _head = _interopRequireDefault(__webpack_require__(/*! lodash/head */ "./node_modules/lodash/head.js"));

var _getOptionLabel = _interopRequireDefault(__webpack_require__(/*! ./getOptionLabel */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getOptionLabel.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function getInputText(_ref) {
  var activeItem = _ref.activeItem,
      labelKey = _ref.labelKey,
      multiple = _ref.multiple,
      selected = _ref.selected,
      text = _ref.text;

  if (activeItem) {
    // Display the input value if the pagination item is active.
    return activeItem.paginationOption ? text : (0, _getOptionLabel.default)(activeItem, labelKey);
  }

  var selectedItem = !multiple && !!selected.length && (0, _head.default)(selected);

  if (selectedItem) {
    return (0, _getOptionLabel.default)(selectedItem, labelKey);
  }

  return text;
}

var _default = getInputText;
exports.default = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getIsOnlyResult.js":
/*!***********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getIsOnlyResult.js ***!
  \***********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _head = _interopRequireDefault(__webpack_require__(/*! lodash/head */ "./node_modules/lodash/head.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function getIsOnlyResult(_ref) {
  var allowNew = _ref.allowNew,
      highlightOnlyResult = _ref.highlightOnlyResult,
      results = _ref.results;

  if (!highlightOnlyResult || allowNew) {
    return false;
  }

  return results.length === 1 && !(0, _head.default)(results).disabled;
}

var _default = getIsOnlyResult;
exports.default = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getMatchBounds.js":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getMatchBounds.js ***!
  \**********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = getMatchBounds;

var _escapeStringRegexp = _interopRequireDefault(__webpack_require__(/*! escape-string-regexp */ "./node_modules/escape-string-regexp/index.js"));

var _stripDiacritics = _interopRequireDefault(__webpack_require__(/*! ./stripDiacritics */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/stripDiacritics.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var CASE_INSENSITIVE = 'i';
var COMBINING_MARKS = /[\u0300-\u036F]/;

function getMatchBounds(subject, str) {
  var search = new RegExp((0, _escapeStringRegexp.default)((0, _stripDiacritics.default)(str)), CASE_INSENSITIVE);
  var matches = search.exec((0, _stripDiacritics.default)(subject));

  if (!matches) {
    return null;
  }

  var start = matches.index;
  var matchLength = matches[0].length; // Account for combining marks, which changes the indices.

  if (COMBINING_MARKS.test(subject)) {
    // Starting at the beginning of the subject string, check for the number of
    // combining marks and increment the start index whenever one is found.
    for (var ii = 0; ii <= start; ii++) {
      if (COMBINING_MARKS.test(subject[ii])) {
        start += 1;
      }
    } // Similarly, increment the length of the match string if it contains a
    // combining mark.


    for (var _ii = start; _ii <= start + matchLength; _ii++) {
      if (COMBINING_MARKS.test(subject[_ii])) {
        matchLength += 1;
      }
    }
  }

  return {
    end: start + matchLength,
    start: start
  };
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getMenuItemId.js":
/*!*********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getMenuItemId.js ***!
  \*********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = getMenuItemId;

function getMenuItemId(position) {
  return "rbt-menu-item-".concat(position);
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getOptionLabel.js":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getOptionLabel.js ***!
  \**********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _invariant = _interopRequireDefault(__webpack_require__(/*! invariant */ "./node_modules/invariant/browser.js"));

var _isPlainObject = _interopRequireDefault(__webpack_require__(/*! lodash/isPlainObject */ "./node_modules/lodash/isPlainObject.js"));

var _getStringLabelKey = _interopRequireDefault(__webpack_require__(/*! ./getStringLabelKey */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getStringLabelKey.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/**
 * Retrieves the display string from an option. Options can be the string
 * themselves, or an object with a defined display string. Anything else throws
 * an error.
 */
function getOptionLabel(option, labelKey) {
  if (option.paginationOption || option.customOption) {
    return option[(0, _getStringLabelKey.default)(labelKey)];
  }

  var optionLabel;

  if (typeof option === 'string') {
    optionLabel = option;
  }

  if (typeof labelKey === 'function') {
    // This overwrites string options, but we assume the consumer wants to do
    // something custom if `labelKey` is a function.
    optionLabel = labelKey(option);
  } else if (typeof labelKey === 'string' && (0, _isPlainObject.default)(option)) {
    optionLabel = option[labelKey];
  }

  !(typeof optionLabel === 'string') ?  true ? (0, _invariant.default)(false, 'One or more options does not have a valid label string. Check the ' + '`labelKey` prop to ensure that it matches the correct option key and ' + 'provides a string for filtering and display.') : undefined : void 0;
  return optionLabel;
}

var _default = getOptionLabel;
exports.default = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getStringLabelKey.js":
/*!*************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getStringLabelKey.js ***!
  \*************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = getStringLabelKey;

var _constants = __webpack_require__(/*! ../constants */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/constants.js");

function getStringLabelKey(labelKey) {
  return typeof labelKey === 'string' ? labelKey : _constants.DEFAULT_LABELKEY;
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getTruncatedOptions.js":
/*!***************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getTruncatedOptions.js ***!
  \***************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

/**
 * Truncates the result set based on `maxResults` and returns the new set.
 */
function getTruncatedOptions(options, maxResults) {
  if (!maxResults || maxResults >= options.length) {
    return options;
  }

  return options.slice(0, maxResults);
}

var _default = getTruncatedOptions;
exports.default = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/index.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/index.js ***!
  \*************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
Object.defineProperty(exports, "addCustomOption", {
  enumerable: true,
  get: function get() {
    return _addCustomOption2.default;
  }
});
Object.defineProperty(exports, "areEqual", {
  enumerable: true,
  get: function get() {
    return _areEqual2.default;
  }
});
Object.defineProperty(exports, "defaultFilterBy", {
  enumerable: true,
  get: function get() {
    return _defaultFilterBy2.default;
  }
});
Object.defineProperty(exports, "getAccessibilityStatus", {
  enumerable: true,
  get: function get() {
    return _getAccessibilityStatus2.default;
  }
});
Object.defineProperty(exports, "getDisplayName", {
  enumerable: true,
  get: function get() {
    return _getDisplayName2.default;
  }
});
Object.defineProperty(exports, "getHintText", {
  enumerable: true,
  get: function get() {
    return _getHintText2.default;
  }
});
Object.defineProperty(exports, "getInputText", {
  enumerable: true,
  get: function get() {
    return _getInputText2.default;
  }
});
Object.defineProperty(exports, "getIsOnlyResult", {
  enumerable: true,
  get: function get() {
    return _getIsOnlyResult2.default;
  }
});
Object.defineProperty(exports, "getMatchBounds", {
  enumerable: true,
  get: function get() {
    return _getMatchBounds2.default;
  }
});
Object.defineProperty(exports, "getMenuItemId", {
  enumerable: true,
  get: function get() {
    return _getMenuItemId2.default;
  }
});
Object.defineProperty(exports, "getOptionLabel", {
  enumerable: true,
  get: function get() {
    return _getOptionLabel2.default;
  }
});
Object.defineProperty(exports, "getStringLabelKey", {
  enumerable: true,
  get: function get() {
    return _getStringLabelKey2.default;
  }
});
Object.defineProperty(exports, "getTruncatedOptions", {
  enumerable: true,
  get: function get() {
    return _getTruncatedOptions2.default;
  }
});
Object.defineProperty(exports, "isSelectable", {
  enumerable: true,
  get: function get() {
    return _isSelectable2.default;
  }
});
Object.defineProperty(exports, "isShown", {
  enumerable: true,
  get: function get() {
    return _isShown2.default;
  }
});
Object.defineProperty(exports, "pluralize", {
  enumerable: true,
  get: function get() {
    return _pluralize2.default;
  }
});
Object.defineProperty(exports, "preventInputBlur", {
  enumerable: true,
  get: function get() {
    return _preventInputBlur2.default;
  }
});
Object.defineProperty(exports, "scrollIntoViewIfNeeded", {
  enumerable: true,
  get: function get() {
    return _scrollIntoViewIfNeeded2.default;
  }
});
Object.defineProperty(exports, "shouldSelectHint", {
  enumerable: true,
  get: function get() {
    return _shouldSelectHint2.default;
  }
});
Object.defineProperty(exports, "stripDiacritics", {
  enumerable: true,
  get: function get() {
    return _stripDiacritics2.default;
  }
});
Object.defineProperty(exports, "warn", {
  enumerable: true,
  get: function get() {
    return _warn2.default;
  }
});

var _addCustomOption2 = _interopRequireDefault(__webpack_require__(/*! ./addCustomOption */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/addCustomOption.js"));

var _areEqual2 = _interopRequireDefault(__webpack_require__(/*! ./areEqual */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/areEqual.js"));

var _defaultFilterBy2 = _interopRequireDefault(__webpack_require__(/*! ./defaultFilterBy */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/defaultFilterBy.js"));

var _getAccessibilityStatus2 = _interopRequireDefault(__webpack_require__(/*! ./getAccessibilityStatus */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getAccessibilityStatus.js"));

var _getDisplayName2 = _interopRequireDefault(__webpack_require__(/*! ./getDisplayName */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getDisplayName.js"));

var _getHintText2 = _interopRequireDefault(__webpack_require__(/*! ./getHintText */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getHintText.js"));

var _getInputText2 = _interopRequireDefault(__webpack_require__(/*! ./getInputText */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getInputText.js"));

var _getIsOnlyResult2 = _interopRequireDefault(__webpack_require__(/*! ./getIsOnlyResult */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getIsOnlyResult.js"));

var _getMatchBounds2 = _interopRequireDefault(__webpack_require__(/*! ./getMatchBounds */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getMatchBounds.js"));

var _getMenuItemId2 = _interopRequireDefault(__webpack_require__(/*! ./getMenuItemId */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getMenuItemId.js"));

var _getOptionLabel2 = _interopRequireDefault(__webpack_require__(/*! ./getOptionLabel */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getOptionLabel.js"));

var _getStringLabelKey2 = _interopRequireDefault(__webpack_require__(/*! ./getStringLabelKey */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getStringLabelKey.js"));

var _getTruncatedOptions2 = _interopRequireDefault(__webpack_require__(/*! ./getTruncatedOptions */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getTruncatedOptions.js"));

var _isSelectable2 = _interopRequireDefault(__webpack_require__(/*! ./isSelectable */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/isSelectable.js"));

var _isShown2 = _interopRequireDefault(__webpack_require__(/*! ./isShown */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/isShown.js"));

var _pluralize2 = _interopRequireDefault(__webpack_require__(/*! ./pluralize */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/pluralize.js"));

var _preventInputBlur2 = _interopRequireDefault(__webpack_require__(/*! ./preventInputBlur */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/preventInputBlur.js"));

var _scrollIntoViewIfNeeded2 = _interopRequireDefault(__webpack_require__(/*! ./scrollIntoViewIfNeeded */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/scrollIntoViewIfNeeded.js"));

var _shouldSelectHint2 = _interopRequireDefault(__webpack_require__(/*! ./shouldSelectHint */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/shouldSelectHint.js"));

var _stripDiacritics2 = _interopRequireDefault(__webpack_require__(/*! ./stripDiacritics */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/stripDiacritics.js"));

var _warn2 = _interopRequireDefault(__webpack_require__(/*! ./warn */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/warn.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/isSelectable.js":
/*!********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/isSelectable.js ***!
  \********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = isSelectable;

/**
 * Check if an input type is selectable, based on WHATWG spec.
 *
 * See:
 *  - https://stackoverflow.com/questions/21177489/selectionstart-selectionend-on-input-type-number-no-longer-allowed-in-chrome/24175357
 *  - https://html.spec.whatwg.org/multipage/input.html#do-not-apply
 */
function isSelectable(inputNode) {
  return inputNode.selectionStart != null;
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/isShown.js":
/*!***************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/isShown.js ***!
  \***************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = isShown;

function isShown(results, props) {
  var emptyLabel = props.emptyLabel,
      open = props.open,
      minLength = props.minLength,
      showMenu = props.showMenu,
      text = props.text; // If menu visibility is controlled via props, that value takes precedence.

  if (open || open === false) {
    return open;
  }

  if (!showMenu) {
    return false;
  }

  if (text.length < minLength) {
    return false;
  }

  return !!(results.length || emptyLabel);
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/pluralize.js":
/*!*****************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/pluralize.js ***!
  \*****************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = pluralize;

/**
 * Basic util for pluralizing words. By default, simply adds an 's' to the word.
 * Also allows for a custom plural version.
 */
function pluralize(text, count, plural) {
  var pluralText = plural || "".concat(text, "s");
  return "".concat(count, " ").concat(count === 1 ? text : pluralText);
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/preventInputBlur.js":
/*!************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/preventInputBlur.js ***!
  \************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = preventInputBlur;

/**
 * Prevent the main input from blurring when a menu item or the clear button is
 * clicked. (#226 & #310)
 */
function preventInputBlur(e) {
  e.preventDefault();
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/scrollIntoViewIfNeeded.js":
/*!******************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/scrollIntoViewIfNeeded.js ***!
  \******************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

/**
 * Partial polyfill for webkit `scrollIntoViewIfNeeded()` method. Addresses
 * vertical scrolling only.
 *
 * Inspired by https://gist.github.com/hsablonniere/2581101, but uses
 * `getBoundingClientRect`.
 */
function scrollIntoViewIfNeeded(node) {
  // Webkit browsers
  if (Element.prototype.scrollIntoViewIfNeeded) {
    node.scrollIntoViewIfNeeded();
    return;
  } // FF, IE, etc.


  var rect = node.getBoundingClientRect();
  var parent = node.parentNode;
  var parentRect = parent.getBoundingClientRect();
  var parentComputedStyle = window.getComputedStyle(parent, null);
  var parentBorderTopWidth = parseInt(parentComputedStyle.getPropertyValue('border-top-width'), 10);

  if (rect.top < parentRect.top || rect.bottom > parentRect.bottom) {
    parent.scrollTop = node.offsetTop - parent.offsetTop - parent.clientHeight / 2 - parentBorderTopWidth + node.clientHeight / 2;
  }
}

var _default = scrollIntoViewIfNeeded;
exports.default = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/shouldSelectHint.js":
/*!************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/shouldSelectHint.js ***!
  \************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = shouldSelectHint;

var _isSelectable = _interopRequireDefault(__webpack_require__(/*! ./isSelectable */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/isSelectable.js"));

var _constants = __webpack_require__(/*! ../constants */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/constants.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function shouldSelectHint(e, props) {
  var hintText = props.hintText,
      selectHintOnEnter = props.selectHintOnEnter,
      value = props.value;

  if (!hintText) {
    return false;
  }

  if (e.keyCode === _constants.RIGHT) {
    // For selectable input types ("text", "search"), only select the hint if
    // it's at the end of the input value. For non-selectable types ("email",
    // "number"), always select the hint.
    return (0, _isSelectable.default)(e.target) ? e.target.selectionStart === value.length : true;
  }

  if (e.keyCode === _constants.TAB) {
    return true;
  }

  if (e.keyCode === _constants.RETURN && selectHintOnEnter) {
    return true;
  }

  return false;
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/stripDiacritics.js":
/*!***********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/stripDiacritics.js ***!
  \***********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = stripDiacritics;

/**
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Taken from: http://stackoverflow.com/questions/990904/remove-accents-diacritics-in-a-string-in-javascript/18391901#18391901
 */

/* eslint-disable max-len */
var map = [{
  base: 'A',
  letters: "A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F"
}, {
  base: 'AA',
  letters: "\uA732"
}, {
  base: 'AE',
  letters: "\xC6\u01FC\u01E2"
}, {
  base: 'AO',
  letters: "\uA734"
}, {
  base: 'AU',
  letters: "\uA736"
}, {
  base: 'AV',
  letters: "\uA738\uA73A"
}, {
  base: 'AY',
  letters: "\uA73C"
}, {
  base: 'B',
  letters: "B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181"
}, {
  base: 'C',
  letters: "C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E"
}, {
  base: 'D',
  letters: "D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779\xD0"
}, {
  base: 'DZ',
  letters: "\u01F1\u01C4"
}, {
  base: 'Dz',
  letters: "\u01F2\u01C5"
}, {
  base: 'E',
  letters: "E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E"
}, {
  base: 'F',
  letters: "F\u24BB\uFF26\u1E1E\u0191\uA77B"
}, {
  base: 'G',
  letters: "G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E"
}, {
  base: 'H',
  letters: "H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D"
}, {
  base: 'I',
  letters: "I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197"
}, {
  base: 'J',
  letters: "J\u24BF\uFF2A\u0134\u0248"
}, {
  base: 'K',
  letters: "K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2"
}, {
  base: 'L',
  letters: "L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780"
}, {
  base: 'LJ',
  letters: "\u01C7"
}, {
  base: 'Lj',
  letters: "\u01C8"
}, {
  base: 'M',
  letters: "M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C"
}, {
  base: 'N',
  letters: "N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4"
}, {
  base: 'NJ',
  letters: "\u01CA"
}, {
  base: 'Nj',
  letters: "\u01CB"
}, {
  base: 'O',
  letters: "O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C"
}, {
  base: 'OI',
  letters: "\u01A2"
}, {
  base: 'OO',
  letters: "\uA74E"
}, {
  base: 'OU',
  letters: "\u0222"
}, {
  base: 'OE',
  letters: "\x8C\u0152"
}, {
  base: 'oe',
  letters: "\x9C\u0153"
}, {
  base: 'P',
  letters: "P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754"
}, {
  base: 'Q',
  letters: "Q\u24C6\uFF31\uA756\uA758\u024A"
}, {
  base: 'R',
  letters: "R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782"
}, {
  base: 'S',
  letters: "S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784"
}, {
  base: 'T',
  letters: "T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786"
}, {
  base: 'TZ',
  letters: "\uA728"
}, {
  base: 'U',
  letters: "U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244"
}, {
  base: 'V',
  letters: "V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245"
}, {
  base: 'VY',
  letters: "\uA760"
}, {
  base: 'W',
  letters: "W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72"
}, {
  base: 'X',
  letters: "X\u24CD\uFF38\u1E8A\u1E8C"
}, {
  base: 'Y',
  letters: "Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE"
}, {
  base: 'Z',
  letters: "Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762"
}, {
  base: 'a',
  letters: "a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250"
}, {
  base: 'aa',
  letters: "\uA733"
}, {
  base: 'ae',
  letters: "\xE6\u01FD\u01E3"
}, {
  base: 'ao',
  letters: "\uA735"
}, {
  base: 'au',
  letters: "\uA737"
}, {
  base: 'av',
  letters: "\uA739\uA73B"
}, {
  base: 'ay',
  letters: "\uA73D"
}, {
  base: 'b',
  letters: "b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253"
}, {
  base: 'c',
  letters: "c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184"
}, {
  base: 'd',
  letters: "d\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A"
}, {
  base: 'dz',
  letters: "\u01F3\u01C6"
}, {
  base: 'e',
  letters: "e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD"
}, {
  base: 'f',
  letters: "f\u24D5\uFF46\u1E1F\u0192\uA77C"
}, {
  base: 'g',
  letters: "g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F"
}, {
  base: 'h',
  letters: "h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265"
}, {
  base: 'hv',
  letters: "\u0195"
}, {
  base: 'i',
  letters: "i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131"
}, {
  base: 'j',
  letters: "j\u24D9\uFF4A\u0135\u01F0\u0249"
}, {
  base: 'k',
  letters: "k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3"
}, {
  base: 'l',
  letters: "l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747"
}, {
  base: 'lj',
  letters: "\u01C9"
}, {
  base: 'm',
  letters: "m\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F"
}, {
  base: 'n',
  letters: "n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5"
}, {
  base: 'nj',
  letters: "\u01CC"
}, {
  base: 'o',
  letters: "o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275"
}, {
  base: 'oi',
  letters: "\u01A3"
}, {
  base: 'ou',
  letters: "\u0223"
}, {
  base: 'oo',
  letters: "\uA74F"
}, {
  base: 'p',
  letters: "p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755"
}, {
  base: 'q',
  letters: "q\u24E0\uFF51\u024B\uA757\uA759"
}, {
  base: 'r',
  letters: "r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783"
}, {
  base: 's',
  letters: "s\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B"
}, {
  base: 't',
  letters: "t\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787"
}, {
  base: 'tz',
  letters: "\uA729"
}, {
  base: 'u',
  letters: "u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289"
}, {
  base: 'v',
  letters: "v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C"
}, {
  base: 'vy',
  letters: "\uA761"
}, {
  base: 'w',
  letters: "w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73"
}, {
  base: 'x',
  letters: "x\u24E7\uFF58\u1E8B\u1E8D"
}, {
  base: 'y',
  letters: "y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF"
}, {
  base: 'z',
  letters: "z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763"
}];
/* eslint-enable max-len */

var diacriticsMap = {};

for (var ii = 0; ii < map.length; ii++) {
  var letters = map[ii].letters;

  for (var jj = 0; jj < letters.length; jj++) {
    diacriticsMap[letters[jj]] = map[ii].base;
  }
} // "what?" version ... http://jsperf.com/diacritics/12


function stripDiacritics(str) {
  return str.replace(/[\u0300-\u036F]/g, '') // Remove combining diacritics

  /* eslint-disable-next-line no-control-regex */
  .replace(/[^\u0000-\u007E]/g, function (a) {
    return diacriticsMap[a] || a;
  });
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/warn.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/warn.js ***!
  \************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = warn;
exports.resetWarned = resetWarned;

var _warning = _interopRequireDefault(__webpack_require__(/*! warning */ "./node_modules/patternfly-react/node_modules/warning/warning.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/**
 * This code is copied from: https://github.com/ReactTraining/react-router/blob/master/modules/routerWarning.js
 */
var warned = {};

function warn(falseToWarn, message) {
  // Only issue deprecation warnings once.
  if (!falseToWarn && message.indexOf('deprecated') !== -1) {
    if (warned[message]) {
      return;
    }

    warned[message] = true;
  }

  for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
    args[_key - 2] = arguments[_key];
  }

  _warning.default.apply(void 0, [falseToWarn, "[react-bootstrap-typeahead] ".concat(message)].concat(args));
}

function resetWarned() {
  warned = {};
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/recompose/es/Recompose.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/recompose/es/Recompose.js ***!
  \******************************************************************************/
/*! exports provided: mapProps, withProps, withPropsOnChange, withHandlers, defaultProps, renameProp, renameProps, flattenProp, withState, withStateHandlers, withReducer, branch, renderComponent, renderNothing, shouldUpdate, pure, onlyUpdateForKeys, onlyUpdateForPropTypes, withContext, getContext, lifecycle, toClass, setStatic, setPropTypes, setDisplayName, compose, getDisplayName, wrapDisplayName, shallowEqual, isClassComponent, createSink, componentFromProp, nest, hoistStatics, componentFromStream, componentFromStreamWithConfig, mapPropsStream, mapPropsStreamWithConfig, createEventHandler, createEventHandlerWithConfig, setObservableConfig */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mapProps", function() { return mapProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withProps", function() { return withProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withPropsOnChange", function() { return withPropsOnChange; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withHandlers", function() { return withHandlers; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultProps", function() { return defaultProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "renameProp", function() { return renameProp; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "renameProps", function() { return renameProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "flattenProp", function() { return flattenProp; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withState", function() { return withState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withStateHandlers", function() { return withStateHandlers; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withReducer", function() { return withReducer; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "branch", function() { return branch; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "renderComponent", function() { return renderComponent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "renderNothing", function() { return renderNothing; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "shouldUpdate", function() { return shouldUpdate; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pure", function() { return pure; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "onlyUpdateForKeys", function() { return onlyUpdateForKeys; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "onlyUpdateForPropTypes", function() { return onlyUpdateForPropTypes; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withContext", function() { return withContext; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getContext", function() { return getContext; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lifecycle", function() { return lifecycle; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toClass", function() { return toClass; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setStatic", function() { return setStatic; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setPropTypes", function() { return setPropTypes; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setDisplayName", function() { return setDisplayName; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "compose", function() { return compose; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDisplayName", function() { return getDisplayName; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrapDisplayName", function() { return wrapDisplayName; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isClassComponent", function() { return isClassComponent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createSink", function() { return createSink; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "componentFromProp", function() { return componentFromProp; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nest", function() { return nest; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hoistStatics", function() { return hoistStatics; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "componentFromStream", function() { return componentFromStream; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "componentFromStreamWithConfig", function() { return componentFromStreamWithConfig; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mapPropsStream", function() { return mapPropsStream; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mapPropsStreamWithConfig", function() { return mapPropsStreamWithConfig; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createEventHandler", function() { return createEventHandler; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createEventHandlerWithConfig", function() { return createEventHandlerWithConfig; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setObservableConfig", function() { return configureObservable; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var fbjs_lib_shallowEqual__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fbjs/lib/shallowEqual */ "./node_modules/fbjs/lib/shallowEqual.js");
/* harmony import */ var fbjs_lib_shallowEqual__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(fbjs_lib_shallowEqual__WEBPACK_IMPORTED_MODULE_1__);
/* harmony reexport (default from non-harmony) */ __webpack_require__.d(__webpack_exports__, "shallowEqual", function() { return fbjs_lib_shallowEqual__WEBPACK_IMPORTED_MODULE_1___default.a; });
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! hoist-non-react-statics */ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js");
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var change_emitter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! change-emitter */ "./node_modules/change-emitter/lib/index.js");
/* harmony import */ var change_emitter__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(change_emitter__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var symbol_observable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! symbol-observable */ "./node_modules/symbol-observable/es/index.js");






var setStatic = function setStatic(key, value) {
  return function (BaseComponent) {
    /* eslint-disable no-param-reassign */
    BaseComponent[key] = value;
    /* eslint-enable no-param-reassign */
    return BaseComponent;
  };
};

var setDisplayName = function setDisplayName(displayName) {
  return setStatic('displayName', displayName);
};

var getDisplayName = function getDisplayName(Component$$1) {
  if (typeof Component$$1 === 'string') {
    return Component$$1;
  }

  if (!Component$$1) {
    return undefined;
  }

  return Component$$1.displayName || Component$$1.name || 'Component';
};

var wrapDisplayName = function wrapDisplayName(BaseComponent, hocName) {
  return hocName + '(' + getDisplayName(BaseComponent) + ')';
};

var mapProps = function mapProps(propsMapper) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);
    var MapProps = function MapProps(props) {
      return factory(propsMapper(props));
    };
    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'mapProps'))(MapProps);
    }
    return MapProps;
  };
};

var classCallCheck = function (instance, Constructor) {
  if (!(instance instanceof Constructor)) {
    throw new TypeError("Cannot call a class as a function");
  }
};









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;
};



var inherits = function (subClass, superClass) {
  if (typeof superClass !== "function" && superClass !== null) {
    throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
  }

  subClass.prototype = Object.create(superClass && superClass.prototype, {
    constructor: {
      value: subClass,
      enumerable: false,
      writable: true,
      configurable: true
    }
  });
  if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
};









var objectWithoutProperties = function (obj, keys) {
  var target = {};

  for (var i in obj) {
    if (keys.indexOf(i) >= 0) continue;
    if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
    target[i] = obj[i];
  }

  return target;
};

var possibleConstructorReturn = function (self, call) {
  if (!self) {
    throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  }

  return call && (typeof call === "object" || typeof call === "function") ? call : self;
};

var withProps = function withProps(input) {
  var hoc = mapProps(function (props) {
    return _extends({}, props, typeof input === 'function' ? input(props) : input);
  });
  if (true) {
    return function (BaseComponent) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'withProps'))(hoc(BaseComponent));
    };
  }
  return hoc;
};

var pick = function pick(obj, keys) {
  var result = {};
  for (var i = 0; i < keys.length; i++) {
    var key = keys[i];
    if (obj.hasOwnProperty(key)) {
      result[key] = obj[key];
    }
  }
  return result;
};

var withPropsOnChange = function withPropsOnChange(shouldMapOrKeys, propsMapper) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);
    var shouldMap = typeof shouldMapOrKeys === 'function' ? shouldMapOrKeys : function (props, nextProps) {
      return !fbjs_lib_shallowEqual__WEBPACK_IMPORTED_MODULE_1___default()(pick(props, shouldMapOrKeys), pick(nextProps, shouldMapOrKeys));
    };

    var WithPropsOnChange = function (_Component) {
      inherits(WithPropsOnChange, _Component);

      function WithPropsOnChange() {
        var _temp, _this, _ret;

        classCallCheck(this, WithPropsOnChange);

        for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
          args[_key] = arguments[_key];
        }

        return _ret = (_temp = (_this = possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.computedProps = propsMapper(_this.props), _temp), possibleConstructorReturn(_this, _ret);
      }

      WithPropsOnChange.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
        if (shouldMap(this.props, nextProps)) {
          this.computedProps = propsMapper(nextProps);
        }
      };

      WithPropsOnChange.prototype.render = function render() {
        return factory(_extends({}, this.props, this.computedProps));
      };

      return WithPropsOnChange;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'withPropsOnChange'))(WithPropsOnChange);
    }
    return WithPropsOnChange;
  };
};

var mapValues = function mapValues(obj, func) {
  var result = {};
  /* eslint-disable no-restricted-syntax */
  for (var key in obj) {
    if (obj.hasOwnProperty(key)) {
      result[key] = func(obj[key], key);
    }
  }
  /* eslint-enable no-restricted-syntax */
  return result;
};

/* eslint-disable no-console */
var withHandlers = function withHandlers(handlers) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    var WithHandlers = function (_Component) {
      inherits(WithHandlers, _Component);

      function WithHandlers() {
        var _temp, _this, _ret;

        classCallCheck(this, WithHandlers);

        for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
          args[_key] = arguments[_key];
        }

        return _ret = (_temp = (_this = possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _initialiseProps.call(_this), _temp), possibleConstructorReturn(_this, _ret);
      }

      WithHandlers.prototype.componentWillReceiveProps = function componentWillReceiveProps() {
        this.cachedHandlers = {};
      };

      WithHandlers.prototype.render = function render() {
        return factory(_extends({}, this.props, this.handlers));
      };

      return WithHandlers;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

    var _initialiseProps = function _initialiseProps() {
      var _this2 = this;

      this.cachedHandlers = {};
      this.handlers = mapValues(typeof handlers === 'function' ? handlers(this.props) : handlers, function (createHandler, handlerName) {
        return function () {
          var cachedHandler = _this2.cachedHandlers[handlerName];
          if (cachedHandler) {
            return cachedHandler.apply(undefined, arguments);
          }

          var handler = createHandler(_this2.props);
          _this2.cachedHandlers[handlerName] = handler;

          if (true && typeof handler !== 'function') {
            console.error(
            // eslint-disable-line no-console
            'withHandlers(): Expected a map of higher-order functions. ' + 'Refer to the docs for more info.');
          }

          return handler.apply(undefined, arguments);
        };
      });
    };

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'withHandlers'))(WithHandlers);
    }
    return WithHandlers;
  };
};

var defaultProps = function defaultProps(props) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);
    var DefaultProps = function DefaultProps(ownerProps) {
      return factory(ownerProps);
    };
    DefaultProps.defaultProps = props;
    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'defaultProps'))(DefaultProps);
    }
    return DefaultProps;
  };
};

var omit = function omit(obj, keys) {
  var rest = objectWithoutProperties(obj, []);

  for (var i = 0; i < keys.length; i++) {
    var key = keys[i];
    if (rest.hasOwnProperty(key)) {
      delete rest[key];
    }
  }
  return rest;
};

var renameProp = function renameProp(oldName, newName) {
  var hoc = mapProps(function (props) {
    var _babelHelpers$extends;

    return _extends({}, omit(props, [oldName]), (_babelHelpers$extends = {}, _babelHelpers$extends[newName] = props[oldName], _babelHelpers$extends));
  });
  if (true) {
    return function (BaseComponent) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'renameProp'))(hoc(BaseComponent));
    };
  }
  return hoc;
};

var keys = Object.keys;


var mapKeys = function mapKeys(obj, func) {
  return keys(obj).reduce(function (result, key) {
    var val = obj[key];
    /* eslint-disable no-param-reassign */
    result[func(val, key)] = val;
    /* eslint-enable no-param-reassign */
    return result;
  }, {});
};

var renameProps = function renameProps(nameMap) {
  var hoc = mapProps(function (props) {
    return _extends({}, omit(props, keys(nameMap)), mapKeys(pick(props, keys(nameMap)), function (_, oldName) {
      return nameMap[oldName];
    }));
  });
  if (true) {
    return function (BaseComponent) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'renameProps'))(hoc(BaseComponent));
    };
  }
  return hoc;
};

var flattenProp = function flattenProp(propName) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);
    var FlattenProp = function FlattenProp(props) {
      return factory(_extends({}, props, props[propName]));
    };

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'flattenProp'))(FlattenProp);
    }
    return FlattenProp;
  };
};

var withState = function withState(stateName, stateUpdaterName, initialState) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    var WithState = function (_Component) {
      inherits(WithState, _Component);

      function WithState() {
        var _temp, _this, _ret;

        classCallCheck(this, WithState);

        for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
          args[_key] = arguments[_key];
        }

        return _ret = (_temp = (_this = possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.state = {
          stateValue: typeof initialState === 'function' ? initialState(_this.props) : initialState
        }, _this.updateStateValue = function (updateFn, callback) {
          return _this.setState(function (_ref) {
            var stateValue = _ref.stateValue;
            return {
              stateValue: typeof updateFn === 'function' ? updateFn(stateValue) : updateFn
            };
          }, callback);
        }, _temp), possibleConstructorReturn(_this, _ret);
      }

      WithState.prototype.render = function render() {
        var _babelHelpers$extends;

        return factory(_extends({}, this.props, (_babelHelpers$extends = {}, _babelHelpers$extends[stateName] = this.state.stateValue, _babelHelpers$extends[stateUpdaterName] = this.updateStateValue, _babelHelpers$extends)));
      };

      return WithState;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'withState'))(WithState);
    }
    return WithState;
  };
};

var withStateHandlers = function withStateHandlers(initialState, stateUpdaters) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    var WithStateHandlers = function (_Component) {
      inherits(WithStateHandlers, _Component);

      function WithStateHandlers() {
        var _temp, _this, _ret;

        classCallCheck(this, WithStateHandlers);

        for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
          args[_key] = arguments[_key];
        }

        return _ret = (_temp = (_this = possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _initialiseProps.call(_this), _temp), possibleConstructorReturn(_this, _ret);
      }

      WithStateHandlers.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {
        var propsChanged = nextProps !== this.props;
        // the idea is to skip render if stateUpdater handler return undefined
        // this allows to create no state update handlers with access to state and props
        var stateChanged = !fbjs_lib_shallowEqual__WEBPACK_IMPORTED_MODULE_1___default()(nextState, this.state);
        return propsChanged || stateChanged;
      };

      WithStateHandlers.prototype.render = function render() {
        return factory(_extends({}, this.props, this.state, this.stateUpdaters));
      };

      return WithStateHandlers;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

    var _initialiseProps = function _initialiseProps() {
      var _this2 = this;

      this.state = typeof initialState === 'function' ? initialState(this.props) : initialState;
      this.stateUpdaters = mapValues(stateUpdaters, function (handler) {
        return function (mayBeEvent) {
          for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
            args[_key2 - 1] = arguments[_key2];
          }

          // Having that functional form of setState can be called async
          // we need to persist SyntheticEvent
          if (mayBeEvent && typeof mayBeEvent.persist === 'function') {
            mayBeEvent.persist();
          }

          _this2.setState(function (state, props) {
            return handler(state, props).apply(undefined, [mayBeEvent].concat(args));
          });
        };
      });
    };

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'withStateHandlers'))(WithStateHandlers);
    }
    return WithStateHandlers;
  };
};

var withReducer = function withReducer(stateName, dispatchName, reducer, initialState) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    var WithReducer = function (_Component) {
      inherits(WithReducer, _Component);

      function WithReducer() {
        var _temp, _this, _ret;

        classCallCheck(this, WithReducer);

        for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
          args[_key] = arguments[_key];
        }

        return _ret = (_temp = (_this = possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.state = {
          stateValue: _this.initializeStateValue()
        }, _this.dispatch = function (action) {
          return _this.setState(function (_ref) {
            var stateValue = _ref.stateValue;
            return {
              stateValue: reducer(stateValue, action)
            };
          });
        }, _temp), possibleConstructorReturn(_this, _ret);
      }

      WithReducer.prototype.initializeStateValue = function initializeStateValue() {
        if (initialState !== undefined) {
          return typeof initialState === 'function' ? initialState(this.props) : initialState;
        }
        return reducer(undefined, { type: '@@recompose/INIT' });
      };

      WithReducer.prototype.render = function render() {
        var _babelHelpers$extends;

        return factory(_extends({}, this.props, (_babelHelpers$extends = {}, _babelHelpers$extends[stateName] = this.state.stateValue, _babelHelpers$extends[dispatchName] = this.dispatch, _babelHelpers$extends)));
      };

      return WithReducer;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'withReducer'))(WithReducer);
    }
    return WithReducer;
  };
};

var identity = function identity(Component$$1) {
  return Component$$1;
};

var branch = function branch(test, left) {
  var right = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : identity;
  return function (BaseComponent) {
    var leftFactory = void 0;
    var rightFactory = void 0;
    var Branch = function Branch(props) {
      if (test(props)) {
        leftFactory = leftFactory || Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(left(BaseComponent));
        return leftFactory(props);
      }
      rightFactory = rightFactory || Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(right(BaseComponent));
      return rightFactory(props);
    };

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'branch'))(Branch);
    }
    return Branch;
  };
};

var renderComponent = function renderComponent(Component$$1) {
  return function (_) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(Component$$1);
    var RenderComponent = function RenderComponent(props) {
      return factory(props);
    };
    if (true) {
      RenderComponent.displayName = wrapDisplayName(Component$$1, 'renderComponent');
    }
    return RenderComponent;
  };
};

var Nothing = function (_Component) {
  inherits(Nothing, _Component);

  function Nothing() {
    classCallCheck(this, Nothing);
    return possibleConstructorReturn(this, _Component.apply(this, arguments));
  }

  Nothing.prototype.render = function render() {
    return null;
  };

  return Nothing;
}(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

var renderNothing = function renderNothing(_) {
  return Nothing;
};

var shouldUpdate = function shouldUpdate(test) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    var ShouldUpdate = function (_Component) {
      inherits(ShouldUpdate, _Component);

      function ShouldUpdate() {
        classCallCheck(this, ShouldUpdate);
        return possibleConstructorReturn(this, _Component.apply(this, arguments));
      }

      ShouldUpdate.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {
        return test(this.props, nextProps);
      };

      ShouldUpdate.prototype.render = function render() {
        return factory(this.props);
      };

      return ShouldUpdate;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'shouldUpdate'))(ShouldUpdate);
    }
    return ShouldUpdate;
  };
};

var pure = function pure(BaseComponent) {
  var hoc = shouldUpdate(function (props, nextProps) {
    return !fbjs_lib_shallowEqual__WEBPACK_IMPORTED_MODULE_1___default()(props, nextProps);
  });

  if (true) {
    return setDisplayName(wrapDisplayName(BaseComponent, 'pure'))(hoc(BaseComponent));
  }

  return hoc(BaseComponent);
};

var onlyUpdateForKeys = function onlyUpdateForKeys(propKeys) {
  var hoc = shouldUpdate(function (props, nextProps) {
    return !fbjs_lib_shallowEqual__WEBPACK_IMPORTED_MODULE_1___default()(pick(nextProps, propKeys), pick(props, propKeys));
  });

  if (true) {
    return function (BaseComponent) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'onlyUpdateForKeys'))(hoc(BaseComponent));
    };
  }
  return hoc;
};

var onlyUpdateForPropTypes = function onlyUpdateForPropTypes(BaseComponent) {
  var propTypes = BaseComponent.propTypes;

  if (true) {
    if (!propTypes) {
      /* eslint-disable */
      console.error('A component without any `propTypes` was passed to ' + '`onlyUpdateForPropTypes()`. Check the implementation of the ' + ('component with display name "' + getDisplayName(BaseComponent) + '".'));
      /* eslint-enable */
    }
  }

  var propKeys = Object.keys(propTypes || {});
  var OnlyUpdateForPropTypes = onlyUpdateForKeys(propKeys)(BaseComponent);

  if (true) {
    return setDisplayName(wrapDisplayName(BaseComponent, 'onlyUpdateForPropTypes'))(OnlyUpdateForPropTypes);
  }
  return OnlyUpdateForPropTypes;
};

var withContext = function withContext(childContextTypes, getChildContext) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    var WithContext = function (_Component) {
      inherits(WithContext, _Component);

      function WithContext() {
        var _temp, _this, _ret;

        classCallCheck(this, WithContext);

        for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
          args[_key] = arguments[_key];
        }

        return _ret = (_temp = (_this = possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.getChildContext = function () {
          return getChildContext(_this.props);
        }, _temp), possibleConstructorReturn(_this, _ret);
      }

      WithContext.prototype.render = function render() {
        return factory(this.props);
      };

      return WithContext;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

    WithContext.childContextTypes = childContextTypes;

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'withContext'))(WithContext);
    }
    return WithContext;
  };
};

var getContext = function getContext(contextTypes) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);
    var GetContext = function GetContext(ownerProps, context) {
      return factory(_extends({}, ownerProps, context));
    };

    GetContext.contextTypes = contextTypes;

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'getContext'))(GetContext);
    }
    return GetContext;
  };
};

/* eslint-disable no-console */
var lifecycle = function lifecycle(spec) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    if (true && spec.hasOwnProperty('render')) {
      console.error('lifecycle() does not support the render method; its behavior is to ' + 'pass all props and state to the base component.');
    }

    var Lifecycle = function (_Component) {
      inherits(Lifecycle, _Component);

      function Lifecycle() {
        classCallCheck(this, Lifecycle);
        return possibleConstructorReturn(this, _Component.apply(this, arguments));
      }

      Lifecycle.prototype.render = function render() {
        return factory(_extends({}, this.props, this.state));
      };

      return Lifecycle;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

    Object.keys(spec).forEach(function (hook) {
      return Lifecycle.prototype[hook] = spec[hook];
    });

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'lifecycle'))(Lifecycle);
    }
    return Lifecycle;
  };
};

var isClassComponent = function isClassComponent(Component$$1) {
  return Boolean(Component$$1 && Component$$1.prototype && typeof Component$$1.prototype.render === 'function');
};

var toClass = function toClass(baseComponent) {
  if (isClassComponent(baseComponent)) {
    return baseComponent;
  }

  var ToClass = function (_Component) {
    inherits(ToClass, _Component);

    function ToClass() {
      classCallCheck(this, ToClass);
      return possibleConstructorReturn(this, _Component.apply(this, arguments));
    }

    ToClass.prototype.render = function render() {
      if (typeof baseComponent === 'string') {
        return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(baseComponent, this.props);
      }
      return baseComponent(this.props, this.context);
    };

    return ToClass;
  }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

  ToClass.displayName = getDisplayName(baseComponent);
  ToClass.propTypes = baseComponent.propTypes;
  ToClass.contextTypes = baseComponent.contextTypes;
  ToClass.defaultProps = baseComponent.defaultProps;

  return ToClass;
};

var setPropTypes = function setPropTypes(propTypes) {
  return setStatic('propTypes', propTypes);
};

function compose() {
  for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {
    funcs[_key] = arguments[_key];
  }

  if (funcs.length === 0) {
    return function (arg) {
      return arg;
    };
  }

  if (funcs.length === 1) {
    return funcs[0];
  }

  return funcs.reduce(function (a, b) {
    return function () {
      return a(b.apply(undefined, arguments));
    };
  });
}

var createSink = function createSink(callback) {
  return function (_Component) {
    inherits(Sink, _Component);

    function Sink() {
      classCallCheck(this, Sink);
      return possibleConstructorReturn(this, _Component.apply(this, arguments));
    }

    Sink.prototype.componentWillMount = function componentWillMount() {
      callback(this.props);
    };

    Sink.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
      callback(nextProps);
    };

    Sink.prototype.render = function render() {
      return null;
    };

    return Sink;
  }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);
};

var componentFromProp = function componentFromProp(propName) {
  var Component$$1 = function Component$$1(props) {
    return Object(react__WEBPACK_IMPORTED_MODULE_0__["createElement"])(props[propName], omit(props, [propName]));
  };
  Component$$1.displayName = 'componentFromProp(' + propName + ')';
  return Component$$1;
};

var nest = function nest() {
  for (var _len = arguments.length, Components = Array(_len), _key = 0; _key < _len; _key++) {
    Components[_key] = arguments[_key];
  }

  var factories = Components.map(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"]);
  var Nest = function Nest(_ref) {
    var props = objectWithoutProperties(_ref, []),
        children = _ref.children;
    return factories.reduceRight(function (child, factory) {
      return factory(props, child);
    }, children);
  };

  if (true) {
    var displayNames = Components.map(getDisplayName);
    Nest.displayName = 'nest(' + displayNames.join(', ') + ')';
  }

  return Nest;
};

var hoistStatics = function hoistStatics(higherOrderComponent) {
  return function (BaseComponent) {
    var NewComponent = higherOrderComponent(BaseComponent);
    hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_2___default()(NewComponent, BaseComponent);
    return NewComponent;
  };
};

var _config = {
  fromESObservable: null,
  toESObservable: null
};

var configureObservable = function configureObservable(c) {
  _config = c;
};

var config = {
  fromESObservable: function fromESObservable(observable) {
    return typeof _config.fromESObservable === 'function' ? _config.fromESObservable(observable) : observable;
  },
  toESObservable: function toESObservable(stream) {
    return typeof _config.toESObservable === 'function' ? _config.toESObservable(stream) : stream;
  }
};

var componentFromStreamWithConfig = function componentFromStreamWithConfig(config$$1) {
  return function (propsToVdom) {
    return function (_Component) {
      inherits(ComponentFromStream, _Component);

      function ComponentFromStream() {
        var _config$fromESObserva;

        var _temp, _this, _ret;

        classCallCheck(this, ComponentFromStream);

        for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
          args[_key] = arguments[_key];
        }

        return _ret = (_temp = (_this = possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.state = { vdom: null }, _this.propsEmitter = Object(change_emitter__WEBPACK_IMPORTED_MODULE_3__["createChangeEmitter"])(), _this.props$ = config$$1.fromESObservable((_config$fromESObserva = {
          subscribe: function subscribe(observer) {
            var unsubscribe = _this.propsEmitter.listen(function (props) {
              if (props) {
                observer.next(props);
              } else {
                observer.complete();
              }
            });
            return { unsubscribe: unsubscribe };
          }
        }, _config$fromESObserva[symbol_observable__WEBPACK_IMPORTED_MODULE_4__["default"]] = function () {
          return this;
        }, _config$fromESObserva)), _this.vdom$ = config$$1.toESObservable(propsToVdom(_this.props$)), _temp), possibleConstructorReturn(_this, _ret);
      }

      // Stream of props


      // Stream of vdom


      ComponentFromStream.prototype.componentWillMount = function componentWillMount() {
        var _this2 = this;

        // Subscribe to child prop changes so we know when to re-render
        this.subscription = this.vdom$.subscribe({
          next: function next(vdom) {
            _this2.setState({ vdom: vdom });
          }
        });
        this.propsEmitter.emit(this.props);
      };

      ComponentFromStream.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
        // Receive new props from the owner
        this.propsEmitter.emit(nextProps);
      };

      ComponentFromStream.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {
        return nextState.vdom !== this.state.vdom;
      };

      ComponentFromStream.prototype.componentWillUnmount = function componentWillUnmount() {
        // Call without arguments to complete stream
        this.propsEmitter.emit();

        // Clean-up subscription before un-mounting
        this.subscription.unsubscribe();
      };

      ComponentFromStream.prototype.render = function render() {
        return this.state.vdom;
      };

      return ComponentFromStream;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);
  };
};

var componentFromStream = function componentFromStream(propsToVdom) {
  return componentFromStreamWithConfig(config)(propsToVdom);
};

var identity$1 = function identity(t) {
  return t;
};

var mapPropsStreamWithConfig = function mapPropsStreamWithConfig(config$$1) {
  var componentFromStream = componentFromStreamWithConfig({
    fromESObservable: identity$1,
    toESObservable: identity$1
  });
  return function (transform) {
    return function (BaseComponent) {
      var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);
      var fromESObservable = config$$1.fromESObservable,
          toESObservable = config$$1.toESObservable;

      return componentFromStream(function (props$) {
        var _ref;

        return _ref = {
          subscribe: function subscribe(observer) {
            var subscription = toESObservable(transform(fromESObservable(props$))).subscribe({
              next: function next(childProps) {
                return observer.next(factory(childProps));
              }
            });
            return {
              unsubscribe: function unsubscribe() {
                return subscription.unsubscribe();
              }
            };
          }
        }, _ref[symbol_observable__WEBPACK_IMPORTED_MODULE_4__["default"]] = function () {
          return this;
        }, _ref;
      });
    };
  };
};

var mapPropsStream = function mapPropsStream(transform) {
  var hoc = mapPropsStreamWithConfig(config)(transform);

  if (true) {
    return function (BaseComponent) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'mapPropsStream'))(hoc(BaseComponent));
    };
  }
  return hoc;
};

var createEventHandlerWithConfig = function createEventHandlerWithConfig(config$$1) {
  return function () {
    var _config$fromESObserva;

    var emitter = Object(change_emitter__WEBPACK_IMPORTED_MODULE_3__["createChangeEmitter"])();
    var stream = config$$1.fromESObservable((_config$fromESObserva = {
      subscribe: function subscribe(observer) {
        var unsubscribe = emitter.listen(function (value) {
          return observer.next(value);
        });
        return { unsubscribe: unsubscribe };
      }
    }, _config$fromESObserva[symbol_observable__WEBPACK_IMPORTED_MODULE_4__["default"]] = function () {
      return this;
    }, _config$fromESObserva));
    return {
      handler: emitter.emit,
      stream: stream
    };
  };
};

var createEventHandler = createEventHandlerWithConfig(config);

// Higher-order component helpers




/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/warning/warning.js":
/*!***********************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/warning/warning.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/**
 * Copyright (c) 2014-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */



/**
 * Similar to invariant but only logs a warning if the condition is not met.
 * This can be used to log issues in development environments in critical
 * paths. Removing the logging code for production environments will keep the
 * same logic and follow the same code paths.
 */

var __DEV__ = "development" !== 'production';

var warning = function() {};

if (__DEV__) {
  var printWarning = function printWarning(format, args) {
    var len = arguments.length;
    args = new Array(len > 1 ? len - 1 : 0);
    for (var key = 1; key < len; key++) {
      args[key - 1] = arguments[key];
    }
    var argIndex = 0;
    var message = 'Warning: ' +
      format.replace(/%s/g, function() {
        return args[argIndex++];
      });
    if (typeof console !== 'undefined') {
      console.error(message);
    }
    try {
      // --- Welcome to debugging React ---
      // This error was thrown as a convenience so that you can use this stack
      // to find the callsite that caused this warning to fire.
      throw new Error(message);
    } catch (x) {}
  }

  warning = function(condition, format, args) {
    var len = arguments.length;
    args = new Array(len > 2 ? len - 2 : 0);
    for (var key = 2; key < len; key++) {
      args[key - 2] = arguments[key];
    }
    if (format === undefined) {
      throw new Error(
          '`warning(condition, format, ...args)` requires a warning ' +
          'message argument'
      );
    }
    if (!condition) {
      printWarning.apply(null, [format].concat(args));
    }
  };
}

module.exports = warning;


/***/ }),

/***/ "./node_modules/patternfly/dist/js/patternfly-settings-charts.js":
/*!***********************************************************************!*\
  !*** ./node_modules/patternfly/dist/js/patternfly-settings-charts.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(global) {(function (window) {
  'use strict';

  // Ensure we are assigning these to the patternfly property of the window argument, and not the implicit global patternfly
  var patternfly = window.patternfly;

  // Util: PatternFly C3 Chart Defaults
  patternfly.pfSetDonutChartTitle = function (selector, primary, secondary) {
    var donutChartRightTitle = window.d3.select(selector).select('text.c3-chart-arcs-title');
    donutChartRightTitle.text("");
    donutChartRightTitle.insert('tspan').text(primary).classed('donut-title-big-pf', true).attr('y', 0).attr('x', 0);
    donutChartRightTitle.insert('tspan').text(secondary).classed('donut-title-small-pf', true).attr('y', 20).attr('x', 0);
  };

  patternfly.pfDonutTooltipContents = function (d, defaultTitleFormat, defaultValueFormat, color) {
    return '<table class="c3-tooltip">' +
      '  <tr>' +
      '    <td><span style="background-color:' + color(d[0].id) + '"></span>' + '<strong>' + d[0].value + '</strong> ' + d[0].name + '</td>' +
      '    <td>' + (Math.round(d[0].ratio * 1000) / 10) + '%</td>' +
      '  </tr>' +
      '</table>';
  };

  patternfly.pfGetUtilizationDonutTooltipContentsFn = function (units) {
    return function (d) {
      return '<span class="donut-tooltip-pf" style="white-space: nowrap;">' +
        (Math.round(d[0].ratio * 1000) / 10) + '%' + ' ' + units + ' ' + d[0].name +
        '</span>';
    };
  };

  patternfly.pfGetBarChartTooltipContentsFn = function (categories) {
    return function (d) {
      var name = categories ? categories[d[0].index] : d[0].index;
      return '<table class="c3-tooltip">' +
        '  <tr>' +
        '    <td><strong>' + name + ':</td>' +
        '    <td>' + d[0].value + '</td>' +
        '  </tr>' +
        '</table>';
    };
  };

  patternfly.pfSingleLineChartTooltipContentsFn = function (categories) {
    return function (d) {
      var name = categories ? categories[d[0].index] : d[0].index;
      return '<table class="c3-tooltip">' +
        '  <tr>' +
        '    <td><strong>' + name + ':</td>' +
        '    <td>' + d[0].value + '</td>' +
        '  </tr>' +
        '</table>';
    };
  };

  patternfly.pfPieTooltipContents = function (d, defaultTitleFormat, defaultValueFormat, color) {
    return patternfly.pfDonutTooltipContents(d, defaultTitleFormat, defaultValueFormat, color);
  };

  patternfly.c3ChartDefaults = function () {
    var
      getDefaultColors = function () {
        return {
          pattern: [
            patternfly.pfPaletteColors.blue,
            patternfly.pfPaletteColors.blue300,
            patternfly.pfPaletteColors.green,
            patternfly.pfPaletteColors.orange,
            patternfly.pfPaletteColors.red
          ]
        };
      },
      getDefaultBarGrid = function () {
        return {
          y: {
            show: true
          }
        };
      },
      getDefaultBarTooltip = function (categories) {
        return {
          contents: patternfly.pfGetBarChartTooltipContentsFn(categories)
        };
      },
      getDefaultBarLegend = function () {
        return {
          show: false
        };
      },
      getDefaultBarConfig = function (categories) {
        return {
          color: this.getDefaultColors(),
          grid: this.getDefaultBarGrid(),
          tooltip: this.getDefaultBarTooltip(categories),
          legend: this.getDefaultBarLegend()
        };
      },
      getDefaultGroupedBarGrid = function () {
        return {
          y: {
            show: true
          }
        };
      },
      getDefaultGroupedBarLegend = function () {
        return {
          show: true,
          position: 'bottom'
        };
      },
      getDefaultGroupedBarConfig = function () {
        return {
          color: this.getDefaultColors(),
          grid: this.getDefaultGroupedBarGrid(),
          legend: this.getDefaultGroupedBarLegend()
        };
      },
      getDefaultStackedBarGrid = function () {
        return {
          y: {
            show: true
          }
        };
      },
      getDefaultStackedBarLegend = function () {
        return {
          show: true,
          position: 'bottom'
        };
      },
      getDefaultStackedBarConfig = function () {
        return {
          color: this.getDefaultColors(),
          grid: this.getDefaultStackedBarGrid(),
          legend: this.getDefaultStackedBarLegend()
        };
      },
      getDefaultDonut = function (title) {
        return {
          title: title,
          label: {
            show: false
          },
          width: 11
        };
      },
      getDefaultDonutSize = function () {
        return {
          height: 171 // produces a diameter of 150 and a centered chart when there is no legend
          // Don't set a width here, the default is to center horizontally in the parent container
        };
      },
      getDefaultDonutColors = function () {
        return {
          pattern: [
            patternfly.pfPaletteColors.blue,
            patternfly.pfPaletteColors.black300
          ]
        };
      },
      getDefaultRelationshipDonutColors = function () {
        return {
          pattern: [
            patternfly.pfPaletteColors.blue,
            patternfly.pfPaletteColors.red100,
            patternfly.pfPaletteColors.orange400,
            patternfly.pfPaletteColors.green400,
            patternfly.pfPaletteColors.cyan500,
            patternfly.pfPaletteColors.gold200,
          ]
        };
      },
      getDefaultDonutTooltip = function () {
        return {
          show: false
        };
      },
      getDefaultDonutLegend = function () {
        return {
          show: false
        };
      },
      getDefaultDonutConfig = function (title) {
        return {
          donut: this.getDefaultDonut(title),
          size: this.getDefaultDonutSize(),
          legend: this.getDefaultDonutLegend(),
          color: this.getDefaultDonutColors(),
          tooltip: this.getDefaultDonutTooltip()
        };
      },
      getDefaultRelationshipDonutConfig = function (title) {
        return {
          donut: this.getDefaultDonut(title),
          size: this.getDefaultDonutSize(),
          legend: this.getDefaultDonutLegend(),
          color: this.getDefaultRelationshipDonutColors(),
          tooltip: this.getDefaultDonutTooltip()
        };
      },
      getDefaultPie = function () {
        return {
          expand: true,
          label: {
            show: false
          }
        };
      },
      getDefaultPieSize = function () {
        return {
          height: 171 // produces a diameter of 150 and a centered chart when there is no legend
          // Don't set a width here, default is to center horizontally in the parent container
        };
      },
      getDefaultPieColors = function () {
        return {
          pattern: [
            patternfly.pfPaletteColors.blue,
            patternfly.pfPaletteColors.black300
          ]
        };
      },
      getDefaultPieTooltip = function () {
        return {
          contents: patternfly.pfPieTooltipContents
        };
      },
      getDefaultPieLegend = function () {
        return {
          show: false
        };
      },
      getDefaultPieConfig = function () {
        return {
          pie: this.getDefaultPie(),
          size: this.getDefaultPieSize(),
          legend: this.getDefaultPieLegend(),
          color: this.getDefaultPieColors(),
          tooltip: this.getDefaultPieTooltip()
        };
      },
      getDefaultSparklineArea = function () {
        return {
          zerobased: true
        };
      },
      getDefaultSparklineSize = function () {
        return {
          height: 60
        };
      },
      getDefaultSparklineAxis = function () {
        return {
          x: {
            show: false
          },
          y: {
            show: false
          }
        };
      },
      getDefaultSparklineLegend = function () {
        return {
          show: false
        };
      },
      getDefaultSparklinePoint = function () {
        return {
          r: 1,
          focus: {
            expand: {
              r: 4
            }
          }
        };
      },
      getDefaultSparklineTooltip = function () {
        return {
          // because a sparkline should only contain a single data column,
          // the tooltip will only work for a single data column
          contents: function (d) {
            return '<span class="c3-tooltip-sparkline">' + d[0].value + ' ' + d[0].name + '</span>';
          }
        };
      },
      getDefaultSparklineConfig = function () {
        return {
          area: getDefaultSparklineArea(),
          size: getDefaultSparklineSize(),
          axis: getDefaultSparklineAxis(),
          color: getDefaultColors(),
          legend: getDefaultSparklineLegend(),
          point: getDefaultSparklinePoint(),
          tooltip: getDefaultSparklineTooltip()
        };
      },
      getDefaultLineAxis = function () {
        return {
          x: {
            show: true
          },
          y: {
            show: true
          }
        };
      },
      getDefaultLineGrid = function () {
        return {
          x: {
            show: false
          },
          y: {
            show: true
          }
        };
      },
      getDefaultLineLegend = function () {
        return {
          show: true
        };
      },
      getDefaultLinePoint = function () {
        return {
          r: 3,
          focus: {
            expand: {
              r: 5
            }
          }
        };
      },
      getDefaultLineConfig = function () {
        return {
          axis: getDefaultLineAxis(),
          grid: getDefaultLineGrid(),
          color: getDefaultColors(),
          legend: getDefaultLineLegend(),
          point: getDefaultLinePoint()
        };
      },
      getDefaultSingleLineTooltip = function () {
        return {
          contents: patternfly.pfGetBarChartTooltipContentsFn()
        };
      },
      getDefaultSingleLineLegend = function () {
        return {
          show: false
        };
      },
      getDefaultSingleLineConfig = function () {
        return {
          axis: getDefaultLineAxis(),
          grid: getDefaultLineGrid(),
          color: getDefaultColors(),
          legend: getDefaultSingleLineLegend(),
          point: getDefaultLinePoint(),
          tooltip: getDefaultSingleLineTooltip()
        };
      },
      getDefaultAreaAxis = function () {
        return getDefaultLineAxis();
      },
      getDefaultAreaGrid = function () {
        return getDefaultLineGrid();
      },
      getDefaultAreaLegend = function () {
        return getDefaultLineLegend();
      },
      getDefaultAreaPoint = function () {
        return getDefaultLinePoint();
      },
      getDefaultAreaConfig = function () {
        return {
          axis: getDefaultAreaAxis(),
          grid: getDefaultAreaGrid(),
          color: getDefaultColors(),
          legend: getDefaultAreaLegend(),
          point: getDefaultAreaPoint()
        };
      },
      getDefaultSingleAreaTooltip = function () {
        return {
          contents: patternfly.pfGetBarChartTooltipContentsFn()
        };
      },
      getDefaultSingleAreaLegend = function () {
        return getDefaultSingleLineLegend();
      },
      getDefaultSingleAreaConfig = function () {
        return {
          axis: getDefaultAreaAxis(),
          grid: getDefaultAreaGrid(),
          color: getDefaultColors(),
          legend: getDefaultSingleAreaLegend(),
          point: getDefaultAreaPoint(),
          tooltip: getDefaultSingleAreaTooltip()
        };
      };
    return {
      getDefaultColors: getDefaultColors,
      getDefaultBarGrid: getDefaultBarGrid,
      getDefaultBarTooltip: getDefaultBarTooltip,
      getDefaultBarLegend: getDefaultBarLegend,
      getDefaultBarConfig: getDefaultBarConfig,
      getDefaultGroupedBarGrid: getDefaultGroupedBarGrid,
      getDefaultGroupedBarLegend: getDefaultGroupedBarLegend,
      getDefaultGroupedBarConfig: getDefaultGroupedBarConfig,
      getDefaultStackedBarGrid: getDefaultStackedBarGrid,
      getDefaultStackedBarLegend: getDefaultStackedBarLegend,
      getDefaultStackedBarConfig: getDefaultStackedBarConfig,
      getDefaultDonut: getDefaultDonut,
      getDefaultDonutSize: getDefaultDonutSize,
      getDefaultDonutColors: getDefaultDonutColors,
      getDefaultDonutTooltip: getDefaultDonutTooltip,
      getDefaultDonutLegend: getDefaultDonutLegend,
      getDefaultDonutConfig: getDefaultDonutConfig,
      getDefaultRelationshipDonutConfig: getDefaultRelationshipDonutConfig,
      getDefaultPie: getDefaultPie,
      getDefaultPieSize: getDefaultPieSize,
      getDefaultPieColors: getDefaultPieColors,
      getDefaultRelationshipDonutColors: getDefaultRelationshipDonutColors,
      getDefaultPieTooltip: getDefaultPieTooltip,
      getDefaultPieLegend: getDefaultPieLegend,
      getDefaultPieConfig: getDefaultPieConfig,
      getDefaultSparklineArea: getDefaultSparklineArea,
      getDefaultSparklineSize: getDefaultSparklineSize,
      getDefaultSparklineAxis: getDefaultSparklineAxis,
      getDefaultSparklineLegend: getDefaultSparklineLegend,
      getDefaultSparklinePoint: getDefaultSparklinePoint,
      getDefaultSparklineTooltip: getDefaultSparklineTooltip,
      getDefaultSparklineConfig: getDefaultSparklineConfig,
      getDefaultLineAxis: getDefaultLineAxis,
      getDefaultLineGrid: getDefaultLineGrid,
      getDefaultLineLegend: getDefaultLineLegend,
      getDefaultLinePoint: getDefaultLinePoint,
      getDefaultLineConfig: getDefaultLineConfig,
      getDefaultSingleLineTooltip: getDefaultSingleLineTooltip,
      getDefaultSingleLineConfig: getDefaultSingleLineConfig,
      getDefaultAreaAxis: getDefaultAreaAxis,
      getDefaultAreaGrid: getDefaultAreaGrid,
      getDefaultAreaLegend: getDefaultAreaLegend,
      getDefaultAreaPoint: getDefaultAreaPoint,
      getDefaultAreaConfig: getDefaultAreaConfig,
      getDefaultSingleAreaTooltip: getDefaultSingleAreaTooltip,
      getDefaultSingleAreaConfig: getDefaultSingleAreaConfig
    };
  };
})(typeof window !== 'undefined' ? window : global);

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))

/***/ }),

/***/ "./node_modules/patternfly/dist/js/patternfly-settings.js":
/*!****************************************************************!*\
  !*** ./node_modules/patternfly/dist/js/patternfly-settings.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(global) {(function (window) {
  'use strict';

  var patternfly = {
    version: "3.59.2"
  };

  // definition of breakpoint sizes for tablet and desktop modes
  patternfly.pfBreakpoints = {
    'tablet': 768,
    'desktop': 1200
  };

  window.patternfly = patternfly;

})(typeof window !== 'undefined' ? window : global);

(function (window) {
  'use strict';

  // Ensure we are assigning these to the patternfly property of the window argument, and not the implicit global patternfly
  var patternfly = window.patternfly;

  // Util: PatternFly Palette colors
  patternfly.pfPaletteColors = {
    black:         '#030303',
    black100:      '#fafafa',
    black200:      '#ededed',
    black300:      '#d1d1d1',
    black400:      '#bbbbbb',
    black500:      '#8b8d8f',
    black600:      '#72767b',
    black700:      '#4d5258',
    black800:      '#393f44',
    black900:      '#292e34',
    blue:          '#0088ce',
    blue100:       '#bee1f4',
    blue200:       '#7dc3e8',
    blue300:       '#39a5dc',
    blue400:       '#0088ce',
    blue500:       '#00659c',
    blue600:       '#004368',
    blue700:       '#002235',
    gold:          '#f0ab00',
    gold100:       '#fbeabc',
    gold200:       '#f9d67a',
    gold300:       '#f5c12e',
    gold400:       '#f0ab00',
    gold500:       '#b58100',
    gold600:       '#795600',
    gold700:       '#3d2c00',
    orange:        '#ec7a08',
    orange100:     '#fbdebf',
    orange200:     '#f7bd7f',
    orange300:     '#f39d3c',
    orange400:     '#ec7a08',
    orange500:     '#b35c00',
    orange600:     '#773d00',
    orange700:     '#3b1f00',
    lightBlue:     '#00b9e4',
    lightBlue100:  '#beedf9',
    lightBlue200:  '#7cdbf3',
    lightBlue300:  '#35caed',
    lightBlue400:  '#00b9e4',
    lightBlue500:  '#008bad',
    lightBlue600:  '#005c73',
    lightBlue700:  '#002d39',
    green:         '#3f9c35',
    green100:      '#cfe7cd',
    green200:      '#9ecf99',
    green300:      '#6ec664',
    green400:      '#3f9c35',
    green500:      '#2d7623',
    green600:      '#1e4f18',
    green700:      '#0f280d',
    lightGreen:    '#92d400',
    lightGreen100: '#e4f5bc',
    lightGreen200: '#c8eb79',
    lightGreen300: '#ace12e',
    lightGreen400: '#92d400',
    lightGreen500: '#6ca100',
    lightGreen600: '#486b00',
    lightGreen700: '#253600',
    cyan:          '#007a87',
    cyan100:       '#bedee1',
    cyan200:       '#7dbdc3',
    cyan300:       '#3a9ca6',
    cyan400:       '#007a87',
    cyan500:       '#005c66',
    cyan600:       '#003d44',
    cyan700:       '#001f22',
    purple:        '#703fec',
    purple100:     '#c7bfff',
    purple200:     '#a18fff',
    purple300:     '#8461f7',
    purple400:     '#703fec',
    purple500:     '#582fc0',
    purple600:     '#40199a',
    purple700:     '#1f0066',
    red:           '#cc0000',
    red100:        '#cc0000',
    red200:        '#a30000',
    red300:        '#8b0000',
    red400:        '#470000',
    red500:        '#2c0000'
  };
})(typeof window !== 'undefined' ? window : global);


(function (window) {
  'use strict';

  // Ensure we are assigning these to the patternfly property of the window argument, and not the implicit global patternfly
  var patternfly = window.patternfly;

  // Util: PatternFly C3 Chart Defaults
  patternfly.pfSetDonutChartTitle = function (selector, primary, secondary) {
    var donutChartRightTitle = window.d3.select(selector).select('text.c3-chart-arcs-title');
    donutChartRightTitle.text("");
    donutChartRightTitle.insert('tspan').text(primary).classed('donut-title-big-pf', true).attr('y', 0).attr('x', 0);
    donutChartRightTitle.insert('tspan').text(secondary).classed('donut-title-small-pf', true).attr('y', 20).attr('x', 0);
  };

  patternfly.pfDonutTooltipContents = function (d, defaultTitleFormat, defaultValueFormat, color) {
    return '<table class="c3-tooltip">' +
      '  <tr>' +
      '    <td><span style="background-color:' + color(d[0].id) + '"></span>' + '<strong>' + d[0].value + '</strong> ' + d[0].name + '</td>' +
      '    <td>' + (Math.round(d[0].ratio * 1000) / 10) + '%</td>' +
      '  </tr>' +
      '</table>';
  };

  patternfly.pfGetUtilizationDonutTooltipContentsFn = function (units) {
    return function (d) {
      return '<span class="donut-tooltip-pf" style="white-space: nowrap;">' +
        (Math.round(d[0].ratio * 1000) / 10) + '%' + ' ' + units + ' ' + d[0].name +
        '</span>';
    };
  };

  patternfly.pfGetBarChartTooltipContentsFn = function (categories) {
    return function (d) {
      var name = categories ? categories[d[0].index] : d[0].index;
      return '<table class="c3-tooltip">' +
        '  <tr>' +
        '    <td><strong>' + name + ':</td>' +
        '    <td>' + d[0].value + '</td>' +
        '  </tr>' +
        '</table>';
    };
  };

  patternfly.pfSingleLineChartTooltipContentsFn = function (categories) {
    return function (d) {
      var name = categories ? categories[d[0].index] : d[0].index;
      return '<table class="c3-tooltip">' +
        '  <tr>' +
        '    <td><strong>' + name + ':</td>' +
        '    <td>' + d[0].value + '</td>' +
        '  </tr>' +
        '</table>';
    };
  };

  patternfly.pfPieTooltipContents = function (d, defaultTitleFormat, defaultValueFormat, color) {
    return patternfly.pfDonutTooltipContents(d, defaultTitleFormat, defaultValueFormat, color);
  };

  patternfly.c3ChartDefaults = function () {
    var
      getDefaultColors = function () {
        return {
          pattern: [
            patternfly.pfPaletteColors.blue,
            patternfly.pfPaletteColors.blue300,
            patternfly.pfPaletteColors.green,
            patternfly.pfPaletteColors.orange,
            patternfly.pfPaletteColors.red
          ]
        };
      },
      getDefaultBarGrid = function () {
        return {
          y: {
            show: true
          }
        };
      },
      getDefaultBarTooltip = function (categories) {
        return {
          contents: patternfly.pfGetBarChartTooltipContentsFn(categories)
        };
      },
      getDefaultBarLegend = function () {
        return {
          show: false
        };
      },
      getDefaultBarConfig = function (categories) {
        return {
          color: this.getDefaultColors(),
          grid: this.getDefaultBarGrid(),
          tooltip: this.getDefaultBarTooltip(categories),
          legend: this.getDefaultBarLegend()
        };
      },
      getDefaultGroupedBarGrid = function () {
        return {
          y: {
            show: true
          }
        };
      },
      getDefaultGroupedBarLegend = function () {
        return {
          show: true,
          position: 'bottom'
        };
      },
      getDefaultGroupedBarConfig = function () {
        return {
          color: this.getDefaultColors(),
          grid: this.getDefaultGroupedBarGrid(),
          legend: this.getDefaultGroupedBarLegend()
        };
      },
      getDefaultStackedBarGrid = function () {
        return {
          y: {
            show: true
          }
        };
      },
      getDefaultStackedBarLegend = function () {
        return {
          show: true,
          position: 'bottom'
        };
      },
      getDefaultStackedBarConfig = function () {
        return {
          color: this.getDefaultColors(),
          grid: this.getDefaultStackedBarGrid(),
          legend: this.getDefaultStackedBarLegend()
        };
      },
      getDefaultDonut = function (title) {
        return {
          title: title,
          label: {
            show: false
          },
          width: 11
        };
      },
      getDefaultDonutSize = function () {
        return {
          height: 171 // produces a diameter of 150 and a centered chart when there is no legend
          // Don't set a width here, the default is to center horizontally in the parent container
        };
      },
      getDefaultDonutColors = function () {
        return {
          pattern: [
            patternfly.pfPaletteColors.blue,
            patternfly.pfPaletteColors.black300
          ]
        };
      },
      getDefaultRelationshipDonutColors = function () {
        return {
          pattern: [
            patternfly.pfPaletteColors.blue,
            patternfly.pfPaletteColors.red100,
            patternfly.pfPaletteColors.orange400,
            patternfly.pfPaletteColors.green400,
            patternfly.pfPaletteColors.cyan500,
            patternfly.pfPaletteColors.gold200,
          ]
        };
      },
      getDefaultDonutTooltip = function () {
        return {
          show: false
        };
      },
      getDefaultDonutLegend = function () {
        return {
          show: false
        };
      },
      getDefaultDonutConfig = function (title) {
        return {
          donut: this.getDefaultDonut(title),
          size: this.getDefaultDonutSize(),
          legend: this.getDefaultDonutLegend(),
          color: this.getDefaultDonutColors(),
          tooltip: this.getDefaultDonutTooltip()
        };
      },
      getDefaultRelationshipDonutConfig = function (title) {
        return {
          donut: this.getDefaultDonut(title),
          size: this.getDefaultDonutSize(),
          legend: this.getDefaultDonutLegend(),
          color: this.getDefaultRelationshipDonutColors(),
          tooltip: this.getDefaultDonutTooltip()
        };
      },
      getDefaultPie = function () {
        return {
          expand: true,
          label: {
            show: false
          }
        };
      },
      getDefaultPieSize = function () {
        return {
          height: 171 // produces a diameter of 150 and a centered chart when there is no legend
          // Don't set a width here, default is to center horizontally in the parent container
        };
      },
      getDefaultPieColors = function () {
        return {
          pattern: [
            patternfly.pfPaletteColors.blue,
            patternfly.pfPaletteColors.black300
          ]
        };
      },
      getDefaultPieTooltip = function () {
        return {
          contents: patternfly.pfPieTooltipContents
        };
      },
      getDefaultPieLegend = function () {
        return {
          show: false
        };
      },
      getDefaultPieConfig = function () {
        return {
          pie: this.getDefaultPie(),
          size: this.getDefaultPieSize(),
          legend: this.getDefaultPieLegend(),
          color: this.getDefaultPieColors(),
          tooltip: this.getDefaultPieTooltip()
        };
      },
      getDefaultSparklineArea = function () {
        return {
          zerobased: true
        };
      },
      getDefaultSparklineSize = function () {
        return {
          height: 60
        };
      },
      getDefaultSparklineAxis = function () {
        return {
          x: {
            show: false
          },
          y: {
            show: false
          }
        };
      },
      getDefaultSparklineLegend = function () {
        return {
          show: false
        };
      },
      getDefaultSparklinePoint = function () {
        return {
          r: 1,
          focus: {
            expand: {
              r: 4
            }
          }
        };
      },
      getDefaultSparklineTooltip = function () {
        return {
          // because a sparkline should only contain a single data column,
          // the tooltip will only work for a single data column
          contents: function (d) {
            return '<span class="c3-tooltip-sparkline">' + d[0].value + ' ' + d[0].name + '</span>';
          }
        };
      },
      getDefaultSparklineConfig = function () {
        return {
          area: getDefaultSparklineArea(),
          size: getDefaultSparklineSize(),
          axis: getDefaultSparklineAxis(),
          color: getDefaultColors(),
          legend: getDefaultSparklineLegend(),
          point: getDefaultSparklinePoint(),
          tooltip: getDefaultSparklineTooltip()
        };
      },
      getDefaultLineAxis = function () {
        return {
          x: {
            show: true
          },
          y: {
            show: true
          }
        };
      },
      getDefaultLineGrid = function () {
        return {
          x: {
            show: false
          },
          y: {
            show: true
          }
        };
      },
      getDefaultLineLegend = function () {
        return {
          show: true
        };
      },
      getDefaultLinePoint = function () {
        return {
          r: 3,
          focus: {
            expand: {
              r: 5
            }
          }
        };
      },
      getDefaultLineConfig = function () {
        return {
          axis: getDefaultLineAxis(),
          grid: getDefaultLineGrid(),
          color: getDefaultColors(),
          legend: getDefaultLineLegend(),
          point: getDefaultLinePoint()
        };
      },
      getDefaultSingleLineTooltip = function () {
        return {
          contents: patternfly.pfGetBarChartTooltipContentsFn()
        };
      },
      getDefaultSingleLineLegend = function () {
        return {
          show: false
        };
      },
      getDefaultSingleLineConfig = function () {
        return {
          axis: getDefaultLineAxis(),
          grid: getDefaultLineGrid(),
          color: getDefaultColors(),
          legend: getDefaultSingleLineLegend(),
          point: getDefaultLinePoint(),
          tooltip: getDefaultSingleLineTooltip()
        };
      },
      getDefaultAreaAxis = function () {
        return getDefaultLineAxis();
      },
      getDefaultAreaGrid = function () {
        return getDefaultLineGrid();
      },
      getDefaultAreaLegend = function () {
        return getDefaultLineLegend();
      },
      getDefaultAreaPoint = function () {
        return getDefaultLinePoint();
      },
      getDefaultAreaConfig = function () {
        return {
          axis: getDefaultAreaAxis(),
          grid: getDefaultAreaGrid(),
          color: getDefaultColors(),
          legend: getDefaultAreaLegend(),
          point: getDefaultAreaPoint()
        };
      },
      getDefaultSingleAreaTooltip = function () {
        return {
          contents: patternfly.pfGetBarChartTooltipContentsFn()
        };
      },
      getDefaultSingleAreaLegend = function () {
        return getDefaultSingleLineLegend();
      },
      getDefaultSingleAreaConfig = function () {
        return {
          axis: getDefaultAreaAxis(),
          grid: getDefaultAreaGrid(),
          color: getDefaultColors(),
          legend: getDefaultSingleAreaLegend(),
          point: getDefaultAreaPoint(),
          tooltip: getDefaultSingleAreaTooltip()
        };
      };
    return {
      getDefaultColors: getDefaultColors,
      getDefaultBarGrid: getDefaultBarGrid,
      getDefaultBarTooltip: getDefaultBarTooltip,
      getDefaultBarLegend: getDefaultBarLegend,
      getDefaultBarConfig: getDefaultBarConfig,
      getDefaultGroupedBarGrid: getDefaultGroupedBarGrid,
      getDefaultGroupedBarLegend: getDefaultGroupedBarLegend,
      getDefaultGroupedBarConfig: getDefaultGroupedBarConfig,
      getDefaultStackedBarGrid: getDefaultStackedBarGrid,
      getDefaultStackedBarLegend: getDefaultStackedBarLegend,
      getDefaultStackedBarConfig: getDefaultStackedBarConfig,
      getDefaultDonut: getDefaultDonut,
      getDefaultDonutSize: getDefaultDonutSize,
      getDefaultDonutColors: getDefaultDonutColors,
      getDefaultDonutTooltip: getDefaultDonutTooltip,
      getDefaultDonutLegend: getDefaultDonutLegend,
      getDefaultDonutConfig: getDefaultDonutConfig,
      getDefaultRelationshipDonutConfig: getDefaultRelationshipDonutConfig,
      getDefaultPie: getDefaultPie,
      getDefaultPieSize: getDefaultPieSize,
      getDefaultPieColors: getDefaultPieColors,
      getDefaultRelationshipDonutColors: getDefaultRelationshipDonutColors,
      getDefaultPieTooltip: getDefaultPieTooltip,
      getDefaultPieLegend: getDefaultPieLegend,
      getDefaultPieConfig: getDefaultPieConfig,
      getDefaultSparklineArea: getDefaultSparklineArea,
      getDefaultSparklineSize: getDefaultSparklineSize,
      getDefaultSparklineAxis: getDefaultSparklineAxis,
      getDefaultSparklineLegend: getDefaultSparklineLegend,
      getDefaultSparklinePoint: getDefaultSparklinePoint,
      getDefaultSparklineTooltip: getDefaultSparklineTooltip,
      getDefaultSparklineConfig: getDefaultSparklineConfig,
      getDefaultLineAxis: getDefaultLineAxis,
      getDefaultLineGrid: getDefaultLineGrid,
      getDefaultLineLegend: getDefaultLineLegend,
      getDefaultLinePoint: getDefaultLinePoint,
      getDefaultLineConfig: getDefaultLineConfig,
      getDefaultSingleLineTooltip: getDefaultSingleLineTooltip,
      getDefaultSingleLineConfig: getDefaultSingleLineConfig,
      getDefaultAreaAxis: getDefaultAreaAxis,
      getDefaultAreaGrid: getDefaultAreaGrid,
      getDefaultAreaLegend: getDefaultAreaLegend,
      getDefaultAreaPoint: getDefaultAreaPoint,
      getDefaultAreaConfig: getDefaultAreaConfig,
      getDefaultSingleAreaTooltip: getDefaultSingleAreaTooltip,
      getDefaultSingleAreaConfig: getDefaultSingleAreaConfig
    };
  };
})(typeof window !== 'undefined' ? window : global);

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))

/***/ }),

/***/ "./node_modules/performance-now/lib/performance-now.js":
/*!*************************************************************!*\
  !*** ./node_modules/performance-now/lib/performance-now.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(process) {// Generated by CoffeeScript 1.7.1
(function() {
  var getNanoSeconds, hrtime, loadTime;

  if ((typeof performance !== "undefined" && performance !== null) && performance.now) {
    module.exports = function() {
      return performance.now();
    };
  } else if ((typeof process !== "undefined" && process !== null) && process.hrtime) {
    module.exports = function() {
      return (getNanoSeconds() - loadTime) / 1e6;
    };
    hrtime = process.hrtime;
    getNanoSeconds = function() {
      var hr;
      hr = hrtime();
      return hr[0] * 1e9 + hr[1];
    };
    loadTime = getNanoSeconds();
  } else if (Date.now) {
    module.exports = function() {
      return Date.now() - loadTime;
    };
    loadTime = Date.now();
  } else {
    module.exports = function() {
      return new Date().getTime() - loadTime;
    };
    loadTime = new Date().getTime();
  }

}).call(this);

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ "./node_modules/process/browser.js")))

/***/ }),

/***/ "./node_modules/popper.js/dist/esm/popper.js":
/*!***************************************************!*\
  !*** ./node_modules/popper.js/dist/esm/popper.js ***!
  \***************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* WEBPACK VAR INJECTION */(function(global) {/**!
 * @fileOverview Kickass library to create and place poppers near their reference elements.
 * @version 1.15.0
 * @license
 * Copyright (c) 2016 Federico Zivolo and contributors
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined';

var longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox'];
var timeoutDuration = 0;
for (var i = 0; i < longerTimeoutBrowsers.length; i += 1) {
  if (isBrowser && navigator.userAgent.indexOf(longerTimeoutBrowsers[i]) >= 0) {
    timeoutDuration = 1;
    break;
  }
}

function microtaskDebounce(fn) {
  var called = false;
  return function () {
    if (called) {
      return;
    }
    called = true;
    window.Promise.resolve().then(function () {
      called = false;
      fn();
    });
  };
}

function taskDebounce(fn) {
  var scheduled = false;
  return function () {
    if (!scheduled) {
      scheduled = true;
      setTimeout(function () {
        scheduled = false;
        fn();
      }, timeoutDuration);
    }
  };
}

var supportsMicroTasks = isBrowser && window.Promise;

/**
* Create a debounced version of a method, that's asynchronously deferred
* but called in the minimum time possible.
*
* @method
* @memberof Popper.Utils
* @argument {Function} fn
* @returns {Function}
*/
var debounce = supportsMicroTasks ? microtaskDebounce : taskDebounce;

/**
 * Check if the given variable is a function
 * @method
 * @memberof Popper.Utils
 * @argument {Any} functionToCheck - variable to check
 * @returns {Boolean} answer to: is a function?
 */
function isFunction(functionToCheck) {
  var getType = {};
  return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
}

/**
 * Get CSS computed property of the given element
 * @method
 * @memberof Popper.Utils
 * @argument {Eement} element
 * @argument {String} property
 */
function getStyleComputedProperty(element, property) {
  if (element.nodeType !== 1) {
    return [];
  }
  // NOTE: 1 DOM access here
  var window = element.ownerDocument.defaultView;
  var css = window.getComputedStyle(element, null);
  return property ? css[property] : css;
}

/**
 * Returns the parentNode or the host of the element
 * @method
 * @memberof Popper.Utils
 * @argument {Element} element
 * @returns {Element} parent
 */
function getParentNode(element) {
  if (element.nodeName === 'HTML') {
    return element;
  }
  return element.parentNode || element.host;
}

/**
 * Returns the scrolling parent of the given element
 * @method
 * @memberof Popper.Utils
 * @argument {Element} element
 * @returns {Element} scroll parent
 */
function getScrollParent(element) {
  // Return body, `getScroll` will take care to get the correct `scrollTop` from it
  if (!element) {
    return document.body;
  }

  switch (element.nodeName) {
    case 'HTML':
    case 'BODY':
      return element.ownerDocument.body;
    case '#document':
      return element.body;
  }

  // Firefox want us to check `-x` and `-y` variations as well

  var _getStyleComputedProp = getStyleComputedProperty(element),
      overflow = _getStyleComputedProp.overflow,
      overflowX = _getStyleComputedProp.overflowX,
      overflowY = _getStyleComputedProp.overflowY;

  if (/(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)) {
    return element;
  }

  return getScrollParent(getParentNode(element));
}

var isIE11 = isBrowser && !!(window.MSInputMethodContext && document.documentMode);
var isIE10 = isBrowser && /MSIE 10/.test(navigator.userAgent);

/**
 * Determines if the browser is Internet Explorer
 * @method
 * @memberof Popper.Utils
 * @param {Number} version to check
 * @returns {Boolean} isIE
 */
function isIE(version) {
  if (version === 11) {
    return isIE11;
  }
  if (version === 10) {
    return isIE10;
  }
  return isIE11 || isIE10;
}

/**
 * Returns the offset parent of the given element
 * @method
 * @memberof Popper.Utils
 * @argument {Element} element
 * @returns {Element} offset parent
 */
function getOffsetParent(element) {
  if (!element) {
    return document.documentElement;
  }

  var noOffsetParent = isIE(10) ? document.body : null;

  // NOTE: 1 DOM access here
  var offsetParent = element.offsetParent || null;
  // Skip hidden elements which don't have an offsetParent
  while (offsetParent === noOffsetParent && element.nextElementSibling) {
    offsetParent = (element = element.nextElementSibling).offsetParent;
  }

  var nodeName = offsetParent && offsetParent.nodeName;

  if (!nodeName || nodeName === 'BODY' || nodeName === 'HTML') {
    return element ? element.ownerDocument.documentElement : document.documentElement;
  }

  // .offsetParent will return the closest TH, TD or TABLE in case
  // no offsetParent is present, I hate this job...
  if (['TH', 'TD', 'TABLE'].indexOf(offsetParent.nodeName) !== -1 && getStyleComputedProperty(offsetParent, 'position') === 'static') {
    return getOffsetParent(offsetParent);
  }

  return offsetParent;
}

function isOffsetContainer(element) {
  var nodeName = element.nodeName;

  if (nodeName === 'BODY') {
    return false;
  }
  return nodeName === 'HTML' || getOffsetParent(element.firstElementChild) === element;
}

/**
 * Finds the root node (document, shadowDOM root) of the given element
 * @method
 * @memberof Popper.Utils
 * @argument {Element} node
 * @returns {Element} root node
 */
function getRoot(node) {
  if (node.parentNode !== null) {
    return getRoot(node.parentNode);
  }

  return node;
}

/**
 * Finds the offset parent common to the two provided nodes
 * @method
 * @memberof Popper.Utils
 * @argument {Element} element1
 * @argument {Element} element2
 * @returns {Element} common offset parent
 */
function findCommonOffsetParent(element1, element2) {
  // This check is needed to avoid errors in case one of the elements isn't defined for any reason
  if (!element1 || !element1.nodeType || !element2 || !element2.nodeType) {
    return document.documentElement;
  }

  // Here we make sure to give as "start" the element that comes first in the DOM
  var order = element1.compareDocumentPosition(element2) & Node.DOCUMENT_POSITION_FOLLOWING;
  var start = order ? element1 : element2;
  var end = order ? element2 : element1;

  // Get common ancestor container
  var range = document.createRange();
  range.setStart(start, 0);
  range.setEnd(end, 0);
  var commonAncestorContainer = range.commonAncestorContainer;

  // Both nodes are inside #document

  if (element1 !== commonAncestorContainer && element2 !== commonAncestorContainer || start.contains(end)) {
    if (isOffsetContainer(commonAncestorContainer)) {
      return commonAncestorContainer;
    }

    return getOffsetParent(commonAncestorContainer);
  }

  // one of the nodes is inside shadowDOM, find which one
  var element1root = getRoot(element1);
  if (element1root.host) {
    return findCommonOffsetParent(element1root.host, element2);
  } else {
    return findCommonOffsetParent(element1, getRoot(element2).host);
  }
}

/**
 * Gets the scroll value of the given element in the given side (top and left)
 * @method
 * @memberof Popper.Utils
 * @argument {Element} element
 * @argument {String} side `top` or `left`
 * @returns {number} amount of scrolled pixels
 */
function getScroll(element) {
  var side = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'top';

  var upperSide = side === 'top' ? 'scrollTop' : 'scrollLeft';
  var nodeName = element.nodeName;

  if (nodeName === 'BODY' || nodeName === 'HTML') {
    var html = element.ownerDocument.documentElement;
    var scrollingElement = element.ownerDocument.scrollingElement || html;
    return scrollingElement[upperSide];
  }

  return element[upperSide];
}

/*
 * Sum or subtract the element scroll values (left and top) from a given rect object
 * @method
 * @memberof Popper.Utils
 * @param {Object} rect - Rect object you want to change
 * @param {HTMLElement} element - The element from the function reads the scroll values
 * @param {Boolean} subtract - set to true if you want to subtract the scroll values
 * @return {Object} rect - The modifier rect object
 */
function includeScroll(rect, element) {
  var subtract = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;

  var scrollTop = getScroll(element, 'top');
  var scrollLeft = getScroll(element, 'left');
  var modifier = subtract ? -1 : 1;
  rect.top += scrollTop * modifier;
  rect.bottom += scrollTop * modifier;
  rect.left += scrollLeft * modifier;
  rect.right += scrollLeft * modifier;
  return rect;
}

/*
 * Helper to detect borders of a given element
 * @method
 * @memberof Popper.Utils
 * @param {CSSStyleDeclaration} styles
 * Result of `getStyleComputedProperty` on the given element
 * @param {String} axis - `x` or `y`
 * @return {number} borders - The borders size of the given axis
 */

function getBordersSize(styles, axis) {
  var sideA = axis === 'x' ? 'Left' : 'Top';
  var sideB = sideA === 'Left' ? 'Right' : 'Bottom';

  return parseFloat(styles['border' + sideA + 'Width'], 10) + parseFloat(styles['border' + sideB + 'Width'], 10);
}

function getSize(axis, body, html, computedStyle) {
  return Math.max(body['offset' + axis], body['scroll' + axis], html['client' + axis], html['offset' + axis], html['scroll' + axis], isIE(10) ? parseInt(html['offset' + axis]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Top' : 'Left')]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Bottom' : 'Right')]) : 0);
}

function getWindowSizes(document) {
  var body = document.body;
  var html = document.documentElement;
  var computedStyle = isIE(10) && getComputedStyle(html);

  return {
    height: getSize('Height', body, html, computedStyle),
    width: getSize('Width', body, html, computedStyle)
  };
}

var classCallCheck = function (instance, Constructor) {
  if (!(instance instanceof Constructor)) {
    throw new TypeError("Cannot call a class as a function");
  }
};

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 defineProperty = function (obj, key, value) {
  if (key in obj) {
    Object.defineProperty(obj, key, {
      value: value,
      enumerable: true,
      configurable: true,
      writable: true
    });
  } else {
    obj[key] = value;
  }

  return obj;
};

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;
};

/**
 * Given element offsets, generate an output similar to getBoundingClientRect
 * @method
 * @memberof Popper.Utils
 * @argument {Object} offsets
 * @returns {Object} ClientRect like output
 */
function getClientRect(offsets) {
  return _extends({}, offsets, {
    right: offsets.left + offsets.width,
    bottom: offsets.top + offsets.height
  });
}

/**
 * Get bounding client rect of given element
 * @method
 * @memberof Popper.Utils
 * @param {HTMLElement} element
 * @return {Object} client rect
 */
function getBoundingClientRect(element) {
  var rect = {};

  // IE10 10 FIX: Please, don't ask, the element isn't
  // considered in DOM in some circumstances...
  // This isn't reproducible in IE10 compatibility mode of IE11
  try {
    if (isIE(10)) {
      rect = element.getBoundingClientRect();
      var scrollTop = getScroll(element, 'top');
      var scrollLeft = getScroll(element, 'left');
      rect.top += scrollTop;
      rect.left += scrollLeft;
      rect.bottom += scrollTop;
      rect.right += scrollLeft;
    } else {
      rect = element.getBoundingClientRect();
    }
  } catch (e) {}

  var result = {
    left: rect.left,
    top: rect.top,
    width: rect.right - rect.left,
    height: rect.bottom - rect.top
  };

  // subtract scrollbar size from sizes
  var sizes = element.nodeName === 'HTML' ? getWindowSizes(element.ownerDocument) : {};
  var width = sizes.width || element.clientWidth || result.right - result.left;
  var height = sizes.height || element.clientHeight || result.bottom - result.top;

  var horizScrollbar = element.offsetWidth - width;
  var vertScrollbar = element.offsetHeight - height;

  // if an hypothetical scrollbar is detected, we must be sure it's not a `border`
  // we make this check conditional for performance reasons
  if (horizScrollbar || vertScrollbar) {
    var styles = getStyleComputedProperty(element);
    horizScrollbar -= getBordersSize(styles, 'x');
    vertScrollbar -= getBordersSize(styles, 'y');

    result.width -= horizScrollbar;
    result.height -= vertScrollbar;
  }

  return getClientRect(result);
}

function getOffsetRectRelativeToArbitraryNode(children, parent) {
  var fixedPosition = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;

  var isIE10 = isIE(10);
  var isHTML = parent.nodeName === 'HTML';
  var childrenRect = getBoundingClientRect(children);
  var parentRect = getBoundingClientRect(parent);
  var scrollParent = getScrollParent(children);

  var styles = getStyleComputedProperty(parent);
  var borderTopWidth = parseFloat(styles.borderTopWidth, 10);
  var borderLeftWidth = parseFloat(styles.borderLeftWidth, 10);

  // In cases where the parent is fixed, we must ignore negative scroll in offset calc
  if (fixedPosition && isHTML) {
    parentRect.top = Math.max(parentRect.top, 0);
    parentRect.left = Math.max(parentRect.left, 0);
  }
  var offsets = getClientRect({
    top: childrenRect.top - parentRect.top - borderTopWidth,
    left: childrenRect.left - parentRect.left - borderLeftWidth,
    width: childrenRect.width,
    height: childrenRect.height
  });
  offsets.marginTop = 0;
  offsets.marginLeft = 0;

  // Subtract margins of documentElement in case it's being used as parent
  // we do this only on HTML because it's the only element that behaves
  // differently when margins are applied to it. The margins are included in
  // the box of the documentElement, in the other cases not.
  if (!isIE10 && isHTML) {
    var marginTop = parseFloat(styles.marginTop, 10);
    var marginLeft = parseFloat(styles.marginLeft, 10);

    offsets.top -= borderTopWidth - marginTop;
    offsets.bottom -= borderTopWidth - marginTop;
    offsets.left -= borderLeftWidth - marginLeft;
    offsets.right -= borderLeftWidth - marginLeft;

    // Attach marginTop and marginLeft because in some circumstances we may need them
    offsets.marginTop = marginTop;
    offsets.marginLeft = marginLeft;
  }

  if (isIE10 && !fixedPosition ? parent.contains(scrollParent) : parent === scrollParent && scrollParent.nodeName !== 'BODY') {
    offsets = includeScroll(offsets, parent);
  }

  return offsets;
}

function getViewportOffsetRectRelativeToArtbitraryNode(element) {
  var excludeScroll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;

  var html = element.ownerDocument.documentElement;
  var relativeOffset = getOffsetRectRelativeToArbitraryNode(element, html);
  var width = Math.max(html.clientWidth, window.innerWidth || 0);
  var height = Math.max(html.clientHeight, window.innerHeight || 0);

  var scrollTop = !excludeScroll ? getScroll(html) : 0;
  var scrollLeft = !excludeScroll ? getScroll(html, 'left') : 0;

  var offset = {
    top: scrollTop - relativeOffset.top + relativeOffset.marginTop,
    left: scrollLeft - relativeOffset.left + relativeOffset.marginLeft,
    width: width,
    height: height
  };

  return getClientRect(offset);
}

/**
 * Check if the given element is fixed or is inside a fixed parent
 * @method
 * @memberof Popper.Utils
 * @argument {Element} element
 * @argument {Element} customContainer
 * @returns {Boolean} answer to "isFixed?"
 */
function isFixed(element) {
  var nodeName = element.nodeName;
  if (nodeName === 'BODY' || nodeName === 'HTML') {
    return false;
  }
  if (getStyleComputedProperty(element, 'position') === 'fixed') {
    return true;
  }
  var parentNode = getParentNode(element);
  if (!parentNode) {
    return false;
  }
  return isFixed(parentNode);
}

/**
 * Finds the first parent of an element that has a transformed property defined
 * @method
 * @memberof Popper.Utils
 * @argument {Element} element
 * @returns {Element} first transformed parent or documentElement
 */

function getFixedPositionOffsetParent(element) {
  // This check is needed to avoid errors in case one of the elements isn't defined for any reason
  if (!element || !element.parentElement || isIE()) {
    return document.documentElement;
  }
  var el = element.parentElement;
  while (el && getStyleComputedProperty(el, 'transform') === 'none') {
    el = el.parentElement;
  }
  return el || document.documentElement;
}

/**
 * Computed the boundaries limits and return them
 * @method
 * @memberof Popper.Utils
 * @param {HTMLElement} popper
 * @param {HTMLElement} reference
 * @param {number} padding
 * @param {HTMLElement} boundariesElement - Element used to define the boundaries
 * @param {Boolean} fixedPosition - Is in fixed position mode
 * @returns {Object} Coordinates of the boundaries
 */
function getBoundaries(popper, reference, padding, boundariesElement) {
  var fixedPosition = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;

  // NOTE: 1 DOM access here

  var boundaries = { top: 0, left: 0 };
  var offsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, reference);

  // Handle viewport case
  if (boundariesElement === 'viewport') {
    boundaries = getViewportOffsetRectRelativeToArtbitraryNode(offsetParent, fixedPosition);
  } else {
    // Handle other cases based on DOM element used as boundaries
    var boundariesNode = void 0;
    if (boundariesElement === 'scrollParent') {
      boundariesNode = getScrollParent(getParentNode(reference));
      if (boundariesNode.nodeName === 'BODY') {
        boundariesNode = popper.ownerDocument.documentElement;
      }
    } else if (boundariesElement === 'window') {
      boundariesNode = popper.ownerDocument.documentElement;
    } else {
      boundariesNode = boundariesElement;
    }

    var offsets = getOffsetRectRelativeToArbitraryNode(boundariesNode, offsetParent, fixedPosition);

    // In case of HTML, we need a different computation
    if (boundariesNode.nodeName === 'HTML' && !isFixed(offsetParent)) {
      var _getWindowSizes = getWindowSizes(popper.ownerDocument),
          height = _getWindowSizes.height,
          width = _getWindowSizes.width;

      boundaries.top += offsets.top - offsets.marginTop;
      boundaries.bottom = height + offsets.top;
      boundaries.left += offsets.left - offsets.marginLeft;
      boundaries.right = width + offsets.left;
    } else {
      // for all the other DOM elements, this one is good
      boundaries = offsets;
    }
  }

  // Add paddings
  padding = padding || 0;
  var isPaddingNumber = typeof padding === 'number';
  boundaries.left += isPaddingNumber ? padding : padding.left || 0;
  boundaries.top += isPaddingNumber ? padding : padding.top || 0;
  boundaries.right -= isPaddingNumber ? padding : padding.right || 0;
  boundaries.bottom -= isPaddingNumber ? padding : padding.bottom || 0;

  return boundaries;
}

function getArea(_ref) {
  var width = _ref.width,
      height = _ref.height;

  return width * height;
}

/**
 * Utility used to transform the `auto` placement to the placement with more
 * available space.
 * @method
 * @memberof Popper.Utils
 * @argument {Object} data - The data object generated by update method
 * @argument {Object} options - Modifiers configuration and options
 * @returns {Object} The data object, properly modified
 */
function computeAutoPlacement(placement, refRect, popper, reference, boundariesElement) {
  var padding = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0;

  if (placement.indexOf('auto') === -1) {
    return placement;
  }

  var boundaries = getBoundaries(popper, reference, padding, boundariesElement);

  var rects = {
    top: {
      width: boundaries.width,
      height: refRect.top - boundaries.top
    },
    right: {
      width: boundaries.right - refRect.right,
      height: boundaries.height
    },
    bottom: {
      width: boundaries.width,
      height: boundaries.bottom - refRect.bottom
    },
    left: {
      width: refRect.left - boundaries.left,
      height: boundaries.height
    }
  };

  var sortedAreas = Object.keys(rects).map(function (key) {
    return _extends({
      key: key
    }, rects[key], {
      area: getArea(rects[key])
    });
  }).sort(function (a, b) {
    return b.area - a.area;
  });

  var filteredAreas = sortedAreas.filter(function (_ref2) {
    var width = _ref2.width,
        height = _ref2.height;
    return width >= popper.clientWidth && height >= popper.clientHeight;
  });

  var computedPlacement = filteredAreas.length > 0 ? filteredAreas[0].key : sortedAreas[0].key;

  var variation = placement.split('-')[1];

  return computedPlacement + (variation ? '-' + variation : '');
}

/**
 * Get offsets to the reference element
 * @method
 * @memberof Popper.Utils
 * @param {Object} state
 * @param {Element} popper - the popper element
 * @param {Element} reference - the reference element (the popper will be relative to this)
 * @param {Element} fixedPosition - is in fixed position mode
 * @returns {Object} An object containing the offsets which will be applied to the popper
 */
function getReferenceOffsets(state, popper, reference) {
  var fixedPosition = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;

  var commonOffsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, reference);
  return getOffsetRectRelativeToArbitraryNode(reference, commonOffsetParent, fixedPosition);
}

/**
 * Get the outer sizes of the given element (offset size + margins)
 * @method
 * @memberof Popper.Utils
 * @argument {Element} element
 * @returns {Object} object containing width and height properties
 */
function getOuterSizes(element) {
  var window = element.ownerDocument.defaultView;
  var styles = window.getComputedStyle(element);
  var x = parseFloat(styles.marginTop || 0) + parseFloat(styles.marginBottom || 0);
  var y = parseFloat(styles.marginLeft || 0) + parseFloat(styles.marginRight || 0);
  var result = {
    width: element.offsetWidth + y,
    height: element.offsetHeight + x
  };
  return result;
}

/**
 * Get the opposite placement of the given one
 * @method
 * @memberof Popper.Utils
 * @argument {String} placement
 * @returns {String} flipped placement
 */
function getOppositePlacement(placement) {
  var hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' };
  return placement.replace(/left|right|bottom|top/g, function (matched) {
    return hash[matched];
  });
}

/**
 * Get offsets to the popper
 * @method
 * @memberof Popper.Utils
 * @param {Object} position - CSS position the Popper will get applied
 * @param {HTMLElement} popper - the popper element
 * @param {Object} referenceOffsets - the reference offsets (the popper will be relative to this)
 * @param {String} placement - one of the valid placement options
 * @returns {Object} popperOffsets - An object containing the offsets which will be applied to the popper
 */
function getPopperOffsets(popper, referenceOffsets, placement) {
  placement = placement.split('-')[0];

  // Get popper node sizes
  var popperRect = getOuterSizes(popper);

  // Add position, width and height to our offsets object
  var popperOffsets = {
    width: popperRect.width,
    height: popperRect.height
  };

  // depending by the popper placement we have to compute its offsets slightly differently
  var isHoriz = ['right', 'left'].indexOf(placement) !== -1;
  var mainSide = isHoriz ? 'top' : 'left';
  var secondarySide = isHoriz ? 'left' : 'top';
  var measurement = isHoriz ? 'height' : 'width';
  var secondaryMeasurement = !isHoriz ? 'height' : 'width';

  popperOffsets[mainSide] = referenceOffsets[mainSide] + referenceOffsets[measurement] / 2 - popperRect[measurement] / 2;
  if (placement === secondarySide) {
    popperOffsets[secondarySide] = referenceOffsets[secondarySide] - popperRect[secondaryMeasurement];
  } else {
    popperOffsets[secondarySide] = referenceOffsets[getOppositePlacement(secondarySide)];
  }

  return popperOffsets;
}

/**
 * Mimics the `find` method of Array
 * @method
 * @memberof Popper.Utils
 * @argument {Array} arr
 * @argument prop
 * @argument value
 * @returns index or -1
 */
function find(arr, check) {
  // use native find if supported
  if (Array.prototype.find) {
    return arr.find(check);
  }

  // use `filter` to obtain the same behavior of `find`
  return arr.filter(check)[0];
}

/**
 * Return the index of the matching object
 * @method
 * @memberof Popper.Utils
 * @argument {Array} arr
 * @argument prop
 * @argument value
 * @returns index or -1
 */
function findIndex(arr, prop, value) {
  // use native findIndex if supported
  if (Array.prototype.findIndex) {
    return arr.findIndex(function (cur) {
      return cur[prop] === value;
    });
  }

  // use `find` + `indexOf` if `findIndex` isn't supported
  var match = find(arr, function (obj) {
    return obj[prop] === value;
  });
  return arr.indexOf(match);
}

/**
 * Loop trough the list of modifiers and run them in order,
 * each of them will then edit the data object.
 * @method
 * @memberof Popper.Utils
 * @param {dataObject} data
 * @param {Array} modifiers
 * @param {String} ends - Optional modifier name used as stopper
 * @returns {dataObject}
 */
function runModifiers(modifiers, data, ends) {
  var modifiersToRun = ends === undefined ? modifiers : modifiers.slice(0, findIndex(modifiers, 'name', ends));

  modifiersToRun.forEach(function (modifier) {
    if (modifier['function']) {
      // eslint-disable-line dot-notation
      console.warn('`modifier.function` is deprecated, use `modifier.fn`!');
    }
    var fn = modifier['function'] || modifier.fn; // eslint-disable-line dot-notation
    if (modifier.enabled && isFunction(fn)) {
      // Add properties to offsets to make them a complete clientRect object
      // we do this before each modifier to make sure the previous one doesn't
      // mess with these values
      data.offsets.popper = getClientRect(data.offsets.popper);
      data.offsets.reference = getClientRect(data.offsets.reference);

      data = fn(data, modifier);
    }
  });

  return data;
}

/**
 * Updates the position of the popper, computing the new offsets and applying
 * the new style.<br />
 * Prefer `scheduleUpdate` over `update` because of performance reasons.
 * @method
 * @memberof Popper
 */
function update() {
  // if popper is destroyed, don't perform any further update
  if (this.state.isDestroyed) {
    return;
  }

  var data = {
    instance: this,
    styles: {},
    arrowStyles: {},
    attributes: {},
    flipped: false,
    offsets: {}
  };

  // compute reference element offsets
  data.offsets.reference = getReferenceOffsets(this.state, this.popper, this.reference, this.options.positionFixed);

  // compute auto placement, store placement inside the data object,
  // modifiers will be able to edit `placement` if needed
  // and refer to originalPlacement to know the original value
  data.placement = computeAutoPlacement(this.options.placement, data.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding);

  // store the computed placement inside `originalPlacement`
  data.originalPlacement = data.placement;

  data.positionFixed = this.options.positionFixed;

  // compute the popper offsets
  data.offsets.popper = getPopperOffsets(this.popper, data.offsets.reference, data.placement);

  data.offsets.popper.position = this.options.positionFixed ? 'fixed' : 'absolute';

  // run the modifiers
  data = runModifiers(this.modifiers, data);

  // the first `update` will call `onCreate` callback
  // the other ones will call `onUpdate` callback
  if (!this.state.isCreated) {
    this.state.isCreated = true;
    this.options.onCreate(data);
  } else {
    this.options.onUpdate(data);
  }
}

/**
 * Helper used to know if the given modifier is enabled.
 * @method
 * @memberof Popper.Utils
 * @returns {Boolean}
 */
function isModifierEnabled(modifiers, modifierName) {
  return modifiers.some(function (_ref) {
    var name = _ref.name,
        enabled = _ref.enabled;
    return enabled && name === modifierName;
  });
}

/**
 * Get the prefixed supported property name
 * @method
 * @memberof Popper.Utils
 * @argument {String} property (camelCase)
 * @returns {String} prefixed property (camelCase or PascalCase, depending on the vendor prefix)
 */
function getSupportedPropertyName(property) {
  var prefixes = [false, 'ms', 'Webkit', 'Moz', 'O'];
  var upperProp = property.charAt(0).toUpperCase() + property.slice(1);

  for (var i = 0; i < prefixes.length; i++) {
    var prefix = prefixes[i];
    var toCheck = prefix ? '' + prefix + upperProp : property;
    if (typeof document.body.style[toCheck] !== 'undefined') {
      return toCheck;
    }
  }
  return null;
}

/**
 * Destroys the popper.
 * @method
 * @memberof Popper
 */
function destroy() {
  this.state.isDestroyed = true;

  // touch DOM only if `applyStyle` modifier is enabled
  if (isModifierEnabled(this.modifiers, 'applyStyle')) {
    this.popper.removeAttribute('x-placement');
    this.popper.style.position = '';
    this.popper.style.top = '';
    this.popper.style.left = '';
    this.popper.style.right = '';
    this.popper.style.bottom = '';
    this.popper.style.willChange = '';
    this.popper.style[getSupportedPropertyName('transform')] = '';
  }

  this.disableEventListeners();

  // remove the popper if user explicity asked for the deletion on destroy
  // do not use `remove` because IE11 doesn't support it
  if (this.options.removeOnDestroy) {
    this.popper.parentNode.removeChild(this.popper);
  }
  return this;
}

/**
 * Get the window associated with the element
 * @argument {Element} element
 * @returns {Window}
 */
function getWindow(element) {
  var ownerDocument = element.ownerDocument;
  return ownerDocument ? ownerDocument.defaultView : window;
}

function attachToScrollParents(scrollParent, event, callback, scrollParents) {
  var isBody = scrollParent.nodeName === 'BODY';
  var target = isBody ? scrollParent.ownerDocument.defaultView : scrollParent;
  target.addEventListener(event, callback, { passive: true });

  if (!isBody) {
    attachToScrollParents(getScrollParent(target.parentNode), event, callback, scrollParents);
  }
  scrollParents.push(target);
}

/**
 * Setup needed event listeners used to update the popper position
 * @method
 * @memberof Popper.Utils
 * @private
 */
function setupEventListeners(reference, options, state, updateBound) {
  // Resize event listener on window
  state.updateBound = updateBound;
  getWindow(reference).addEventListener('resize', state.updateBound, { passive: true });

  // Scroll event listener on scroll parents
  var scrollElement = getScrollParent(reference);
  attachToScrollParents(scrollElement, 'scroll', state.updateBound, state.scrollParents);
  state.scrollElement = scrollElement;
  state.eventsEnabled = true;

  return state;
}

/**
 * It will add resize/scroll events and start recalculating
 * position of the popper element when they are triggered.
 * @method
 * @memberof Popper
 */
function enableEventListeners() {
  if (!this.state.eventsEnabled) {
    this.state = setupEventListeners(this.reference, this.options, this.state, this.scheduleUpdate);
  }
}

/**
 * Remove event listeners used to update the popper position
 * @method
 * @memberof Popper.Utils
 * @private
 */
function removeEventListeners(reference, state) {
  // Remove resize event listener on window
  getWindow(reference).removeEventListener('resize', state.updateBound);

  // Remove scroll event listener on scroll parents
  state.scrollParents.forEach(function (target) {
    target.removeEventListener('scroll', state.updateBound);
  });

  // Reset state
  state.updateBound = null;
  state.scrollParents = [];
  state.scrollElement = null;
  state.eventsEnabled = false;
  return state;
}

/**
 * It will remove resize/scroll events and won't recalculate popper position
 * when they are triggered. It also won't trigger `onUpdate` callback anymore,
 * unless you call `update` method manually.
 * @method
 * @memberof Popper
 */
function disableEventListeners() {
  if (this.state.eventsEnabled) {
    cancelAnimationFrame(this.scheduleUpdate);
    this.state = removeEventListeners(this.reference, this.state);
  }
}

/**
 * Tells if a given input is a number
 * @method
 * @memberof Popper.Utils
 * @param {*} input to check
 * @return {Boolean}
 */
function isNumeric(n) {
  return n !== '' && !isNaN(parseFloat(n)) && isFinite(n);
}

/**
 * Set the style to the given popper
 * @method
 * @memberof Popper.Utils
 * @argument {Element} element - Element to apply the style to
 * @argument {Object} styles
 * Object with a list of properties and values which will be applied to the element
 */
function setStyles(element, styles) {
  Object.keys(styles).forEach(function (prop) {
    var unit = '';
    // add unit if the value is numeric and is one of the following
    if (['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(prop) !== -1 && isNumeric(styles[prop])) {
      unit = 'px';
    }
    element.style[prop] = styles[prop] + unit;
  });
}

/**
 * Set the attributes to the given popper
 * @method
 * @memberof Popper.Utils
 * @argument {Element} element - Element to apply the attributes to
 * @argument {Object} styles
 * Object with a list of properties and values which will be applied to the element
 */
function setAttributes(element, attributes) {
  Object.keys(attributes).forEach(function (prop) {
    var value = attributes[prop];
    if (value !== false) {
      element.setAttribute(prop, attributes[prop]);
    } else {
      element.removeAttribute(prop);
    }
  });
}

/**
 * @function
 * @memberof Modifiers
 * @argument {Object} data - The data object generated by `update` method
 * @argument {Object} data.styles - List of style properties - values to apply to popper element
 * @argument {Object} data.attributes - List of attribute properties - values to apply to popper element
 * @argument {Object} options - Modifiers configuration and options
 * @returns {Object} The same data object
 */
function applyStyle(data) {
  // any property present in `data.styles` will be applied to the popper,
  // in this way we can make the 3rd party modifiers add custom styles to it
  // Be aware, modifiers could override the properties defined in the previous
  // lines of this modifier!
  setStyles(data.instance.popper, data.styles);

  // any property present in `data.attributes` will be applied to the popper,
  // they will be set as HTML attributes of the element
  setAttributes(data.instance.popper, data.attributes);

  // if arrowElement is defined and arrowStyles has some properties
  if (data.arrowElement && Object.keys(data.arrowStyles).length) {
    setStyles(data.arrowElement, data.arrowStyles);
  }

  return data;
}

/**
 * Set the x-placement attribute before everything else because it could be used
 * to add margins to the popper margins needs to be calculated to get the
 * correct popper offsets.
 * @method
 * @memberof Popper.modifiers
 * @param {HTMLElement} reference - The reference element used to position the popper
 * @param {HTMLElement} popper - The HTML element used as popper
 * @param {Object} options - Popper.js options
 */
function applyStyleOnLoad(reference, popper, options, modifierOptions, state) {
  // compute reference element offsets
  var referenceOffsets = getReferenceOffsets(state, popper, reference, options.positionFixed);

  // compute auto placement, store placement inside the data object,
  // modifiers will be able to edit `placement` if needed
  // and refer to originalPlacement to know the original value
  var placement = computeAutoPlacement(options.placement, referenceOffsets, popper, reference, options.modifiers.flip.boundariesElement, options.modifiers.flip.padding);

  popper.setAttribute('x-placement', placement);

  // Apply `position` to popper before anything else because
  // without the position applied we can't guarantee correct computations
  setStyles(popper, { position: options.positionFixed ? 'fixed' : 'absolute' });

  return options;
}

/**
 * @function
 * @memberof Popper.Utils
 * @argument {Object} data - The data object generated by `update` method
 * @argument {Boolean} shouldRound - If the offsets should be rounded at all
 * @returns {Object} The popper's position offsets rounded
 *
 * The tale of pixel-perfect positioning. It's still not 100% perfect, but as
 * good as it can be within reason.
 * Discussion here: https://github.com/FezVrasta/popper.js/pull/715
 *
 * Low DPI screens cause a popper to be blurry if not using full pixels (Safari
 * as well on High DPI screens).
 *
 * Firefox prefers no rounding for positioning and does not have blurriness on
 * high DPI screens.
 *
 * Only horizontal placement and left/right values need to be considered.
 */
function getRoundedOffsets(data, shouldRound) {
  var _data$offsets = data.offsets,
      popper = _data$offsets.popper,
      reference = _data$offsets.reference;
  var round = Math.round,
      floor = Math.floor;

  var noRound = function noRound(v) {
    return v;
  };

  var referenceWidth = round(reference.width);
  var popperWidth = round(popper.width);

  var isVertical = ['left', 'right'].indexOf(data.placement) !== -1;
  var isVariation = data.placement.indexOf('-') !== -1;
  var sameWidthParity = referenceWidth % 2 === popperWidth % 2;
  var bothOddWidth = referenceWidth % 2 === 1 && popperWidth % 2 === 1;

  var horizontalToInteger = !shouldRound ? noRound : isVertical || isVariation || sameWidthParity ? round : floor;
  var verticalToInteger = !shouldRound ? noRound : round;

  return {
    left: horizontalToInteger(bothOddWidth && !isVariation && shouldRound ? popper.left - 1 : popper.left),
    top: verticalToInteger(popper.top),
    bottom: verticalToInteger(popper.bottom),
    right: horizontalToInteger(popper.right)
  };
}

var isFirefox = isBrowser && /Firefox/i.test(navigator.userAgent);

/**
 * @function
 * @memberof Modifiers
 * @argument {Object} data - The data object generated by `update` method
 * @argument {Object} options - Modifiers configuration and options
 * @returns {Object} The data object, properly modified
 */
function computeStyle(data, options) {
  var x = options.x,
      y = options.y;
  var popper = data.offsets.popper;

  // Remove this legacy support in Popper.js v2

  var legacyGpuAccelerationOption = find(data.instance.modifiers, function (modifier) {
    return modifier.name === 'applyStyle';
  }).gpuAcceleration;
  if (legacyGpuAccelerationOption !== undefined) {
    console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');
  }
  var gpuAcceleration = legacyGpuAccelerationOption !== undefined ? legacyGpuAccelerationOption : options.gpuAcceleration;

  var offsetParent = getOffsetParent(data.instance.popper);
  var offsetParentRect = getBoundingClientRect(offsetParent);

  // Styles
  var styles = {
    position: popper.position
  };

  var offsets = getRoundedOffsets(data, window.devicePixelRatio < 2 || !isFirefox);

  var sideA = x === 'bottom' ? 'top' : 'bottom';
  var sideB = y === 'right' ? 'left' : 'right';

  // if gpuAcceleration is set to `true` and transform is supported,
  //  we use `translate3d` to apply the position to the popper we
  // automatically use the supported prefixed version if needed
  var prefixedProperty = getSupportedPropertyName('transform');

  // now, let's make a step back and look at this code closely (wtf?)
  // If the content of the popper grows once it's been positioned, it
  // may happen that the popper gets misplaced because of the new content
  // overflowing its reference element
  // To avoid this problem, we provide two options (x and y), which allow
  // the consumer to define the offset origin.
  // If we position a popper on top of a reference element, we can set
  // `x` to `top` to make the popper grow towards its top instead of
  // its bottom.
  var left = void 0,
      top = void 0;
  if (sideA === 'bottom') {
    // when offsetParent is <html> the positioning is relative to the bottom of the screen (excluding the scrollbar)
    // and not the bottom of the html element
    if (offsetParent.nodeName === 'HTML') {
      top = -offsetParent.clientHeight + offsets.bottom;
    } else {
      top = -offsetParentRect.height + offsets.bottom;
    }
  } else {
    top = offsets.top;
  }
  if (sideB === 'right') {
    if (offsetParent.nodeName === 'HTML') {
      left = -offsetParent.clientWidth + offsets.right;
    } else {
      left = -offsetParentRect.width + offsets.right;
    }
  } else {
    left = offsets.left;
  }
  if (gpuAcceleration && prefixedProperty) {
    styles[prefixedProperty] = 'translate3d(' + left + 'px, ' + top + 'px, 0)';
    styles[sideA] = 0;
    styles[sideB] = 0;
    styles.willChange = 'transform';
  } else {
    // othwerise, we use the standard `top`, `left`, `bottom` and `right` properties
    var invertTop = sideA === 'bottom' ? -1 : 1;
    var invertLeft = sideB === 'right' ? -1 : 1;
    styles[sideA] = top * invertTop;
    styles[sideB] = left * invertLeft;
    styles.willChange = sideA + ', ' + sideB;
  }

  // Attributes
  var attributes = {
    'x-placement': data.placement
  };

  // Update `data` attributes, styles and arrowStyles
  data.attributes = _extends({}, attributes, data.attributes);
  data.styles = _extends({}, styles, data.styles);
  data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles);

  return data;
}

/**
 * Helper used to know if the given modifier depends from another one.<br />
 * It checks if the needed modifier is listed and enabled.
 * @method
 * @memberof Popper.Utils
 * @param {Array} modifiers - list of modifiers
 * @param {String} requestingName - name of requesting modifier
 * @param {String} requestedName - name of requested modifier
 * @returns {Boolean}
 */
function isModifierRequired(modifiers, requestingName, requestedName) {
  var requesting = find(modifiers, function (_ref) {
    var name = _ref.name;
    return name === requestingName;
  });

  var isRequired = !!requesting && modifiers.some(function (modifier) {
    return modifier.name === requestedName && modifier.enabled && modifier.order < requesting.order;
  });

  if (!isRequired) {
    var _requesting = '`' + requestingName + '`';
    var requested = '`' + requestedName + '`';
    console.warn(requested + ' modifier is required by ' + _requesting + ' modifier in order to work, be sure to include it before ' + _requesting + '!');
  }
  return isRequired;
}

/**
 * @function
 * @memberof Modifiers
 * @argument {Object} data - The data object generated by update method
 * @argument {Object} options - Modifiers configuration and options
 * @returns {Object} The data object, properly modified
 */
function arrow(data, options) {
  var _data$offsets$arrow;

  // arrow depends on keepTogether in order to work
  if (!isModifierRequired(data.instance.modifiers, 'arrow', 'keepTogether')) {
    return data;
  }

  var arrowElement = options.element;

  // if arrowElement is a string, suppose it's a CSS selector
  if (typeof arrowElement === 'string') {
    arrowElement = data.instance.popper.querySelector(arrowElement);

    // if arrowElement is not found, don't run the modifier
    if (!arrowElement) {
      return data;
    }
  } else {
    // if the arrowElement isn't a query selector we must check that the
    // provided DOM node is child of its popper node
    if (!data.instance.popper.contains(arrowElement)) {
      console.warn('WARNING: `arrow.element` must be child of its popper element!');
      return data;
    }
  }

  var placement = data.placement.split('-')[0];
  var _data$offsets = data.offsets,
      popper = _data$offsets.popper,
      reference = _data$offsets.reference;

  var isVertical = ['left', 'right'].indexOf(placement) !== -1;

  var len = isVertical ? 'height' : 'width';
  var sideCapitalized = isVertical ? 'Top' : 'Left';
  var side = sideCapitalized.toLowerCase();
  var altSide = isVertical ? 'left' : 'top';
  var opSide = isVertical ? 'bottom' : 'right';
  var arrowElementSize = getOuterSizes(arrowElement)[len];

  //
  // extends keepTogether behavior making sure the popper and its
  // reference have enough pixels in conjunction
  //

  // top/left side
  if (reference[opSide] - arrowElementSize < popper[side]) {
    data.offsets.popper[side] -= popper[side] - (reference[opSide] - arrowElementSize);
  }
  // bottom/right side
  if (reference[side] + arrowElementSize > popper[opSide]) {
    data.offsets.popper[side] += reference[side] + arrowElementSize - popper[opSide];
  }
  data.offsets.popper = getClientRect(data.offsets.popper);

  // compute center of the popper
  var center = reference[side] + reference[len] / 2 - arrowElementSize / 2;

  // Compute the sideValue using the updated popper offsets
  // take popper margin in account because we don't have this info available
  var css = getStyleComputedProperty(data.instance.popper);
  var popperMarginSide = parseFloat(css['margin' + sideCapitalized], 10);
  var popperBorderSide = parseFloat(css['border' + sideCapitalized + 'Width'], 10);
  var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide;

  // prevent arrowElement from being placed not contiguously to its popper
  sideValue = Math.max(Math.min(popper[len] - arrowElementSize, sideValue), 0);

  data.arrowElement = arrowElement;
  data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty(_data$offsets$arrow, altSide, ''), _data$offsets$arrow);

  return data;
}

/**
 * Get the opposite placement variation of the given one
 * @method
 * @memberof Popper.Utils
 * @argument {String} placement variation
 * @returns {String} flipped placement variation
 */
function getOppositeVariation(variation) {
  if (variation === 'end') {
    return 'start';
  } else if (variation === 'start') {
    return 'end';
  }
  return variation;
}

/**
 * List of accepted placements to use as values of the `placement` option.<br />
 * Valid placements are:
 * - `auto`
 * - `top`
 * - `right`
 * - `bottom`
 * - `left`
 *
 * Each placement can have a variation from this list:
 * - `-start`
 * - `-end`
 *
 * Variations are interpreted easily if you think of them as the left to right
 * written languages. Horizontally (`top` and `bottom`), `start` is left and `end`
 * is right.<br />
 * Vertically (`left` and `right`), `start` is top and `end` is bottom.
 *
 * Some valid examples are:
 * - `top-end` (on top of reference, right aligned)
 * - `right-start` (on right of reference, top aligned)
 * - `bottom` (on bottom, centered)
 * - `auto-end` (on the side with more space available, alignment depends by placement)
 *
 * @static
 * @type {Array}
 * @enum {String}
 * @readonly
 * @method placements
 * @memberof Popper
 */
var placements = ['auto-start', 'auto', 'auto-end', 'top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start'];

// Get rid of `auto` `auto-start` and `auto-end`
var validPlacements = placements.slice(3);

/**
 * Given an initial placement, returns all the subsequent placements
 * clockwise (or counter-clockwise).
 *
 * @method
 * @memberof Popper.Utils
 * @argument {String} placement - A valid placement (it accepts variations)
 * @argument {Boolean} counter - Set to true to walk the placements counterclockwise
 * @returns {Array} placements including their variations
 */
function clockwise(placement) {
  var counter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;

  var index = validPlacements.indexOf(placement);
  var arr = validPlacements.slice(index + 1).concat(validPlacements.slice(0, index));
  return counter ? arr.reverse() : arr;
}

var BEHAVIORS = {
  FLIP: 'flip',
  CLOCKWISE: 'clockwise',
  COUNTERCLOCKWISE: 'counterclockwise'
};

/**
 * @function
 * @memberof Modifiers
 * @argument {Object} data - The data object generated by update method
 * @argument {Object} options - Modifiers configuration and options
 * @returns {Object} The data object, properly modified
 */
function flip(data, options) {
  // if `inner` modifier is enabled, we can't use the `flip` modifier
  if (isModifierEnabled(data.instance.modifiers, 'inner')) {
    return data;
  }

  if (data.flipped && data.placement === data.originalPlacement) {
    // seems like flip is trying to loop, probably there's not enough space on any of the flippable sides
    return data;
  }

  var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, options.boundariesElement, data.positionFixed);

  var placement = data.placement.split('-')[0];
  var placementOpposite = getOppositePlacement(placement);
  var variation = data.placement.split('-')[1] || '';

  var flipOrder = [];

  switch (options.behavior) {
    case BEHAVIORS.FLIP:
      flipOrder = [placement, placementOpposite];
      break;
    case BEHAVIORS.CLOCKWISE:
      flipOrder = clockwise(placement);
      break;
    case BEHAVIORS.COUNTERCLOCKWISE:
      flipOrder = clockwise(placement, true);
      break;
    default:
      flipOrder = options.behavior;
  }

  flipOrder.forEach(function (step, index) {
    if (placement !== step || flipOrder.length === index + 1) {
      return data;
    }

    placement = data.placement.split('-')[0];
    placementOpposite = getOppositePlacement(placement);

    var popperOffsets = data.offsets.popper;
    var refOffsets = data.offsets.reference;

    // using floor because the reference offsets may contain decimals we are not going to consider here
    var floor = Math.floor;
    var overlapsRef = placement === 'left' && floor(popperOffsets.right) > floor(refOffsets.left) || placement === 'right' && floor(popperOffsets.left) < floor(refOffsets.right) || placement === 'top' && floor(popperOffsets.bottom) > floor(refOffsets.top) || placement === 'bottom' && floor(popperOffsets.top) < floor(refOffsets.bottom);

    var overflowsLeft = floor(popperOffsets.left) < floor(boundaries.left);
    var overflowsRight = floor(popperOffsets.right) > floor(boundaries.right);
    var overflowsTop = floor(popperOffsets.top) < floor(boundaries.top);
    var overflowsBottom = floor(popperOffsets.bottom) > floor(boundaries.bottom);

    var overflowsBoundaries = placement === 'left' && overflowsLeft || placement === 'right' && overflowsRight || placement === 'top' && overflowsTop || placement === 'bottom' && overflowsBottom;

    // flip the variation if required
    var isVertical = ['top', 'bottom'].indexOf(placement) !== -1;

    // flips variation if reference element overflows boundaries
    var flippedVariationByRef = !!options.flipVariations && (isVertical && variation === 'start' && overflowsLeft || isVertical && variation === 'end' && overflowsRight || !isVertical && variation === 'start' && overflowsTop || !isVertical && variation === 'end' && overflowsBottom);

    // flips variation if popper content overflows boundaries
    var flippedVariationByContent = !!options.flipVariationsByContent && (isVertical && variation === 'start' && overflowsRight || isVertical && variation === 'end' && overflowsLeft || !isVertical && variation === 'start' && overflowsBottom || !isVertical && variation === 'end' && overflowsTop);

    var flippedVariation = flippedVariationByRef || flippedVariationByContent;

    if (overlapsRef || overflowsBoundaries || flippedVariation) {
      // this boolean to detect any flip loop
      data.flipped = true;

      if (overlapsRef || overflowsBoundaries) {
        placement = flipOrder[index + 1];
      }

      if (flippedVariation) {
        variation = getOppositeVariation(variation);
      }

      data.placement = placement + (variation ? '-' + variation : '');

      // this object contains `position`, we want to preserve it along with
      // any additional property we may add in the future
      data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));

      data = runModifiers(data.instance.modifiers, data, 'flip');
    }
  });
  return data;
}

/**
 * @function
 * @memberof Modifiers
 * @argument {Object} data - The data object generated by update method
 * @argument {Object} options - Modifiers configuration and options
 * @returns {Object} The data object, properly modified
 */
function keepTogether(data) {
  var _data$offsets = data.offsets,
      popper = _data$offsets.popper,
      reference = _data$offsets.reference;

  var placement = data.placement.split('-')[0];
  var floor = Math.floor;
  var isVertical = ['top', 'bottom'].indexOf(placement) !== -1;
  var side = isVertical ? 'right' : 'bottom';
  var opSide = isVertical ? 'left' : 'top';
  var measurement = isVertical ? 'width' : 'height';

  if (popper[side] < floor(reference[opSide])) {
    data.offsets.popper[opSide] = floor(reference[opSide]) - popper[measurement];
  }
  if (popper[opSide] > floor(reference[side])) {
    data.offsets.popper[opSide] = floor(reference[side]);
  }

  return data;
}

/**
 * Converts a string containing value + unit into a px value number
 * @function
 * @memberof {modifiers~offset}
 * @private
 * @argument {String} str - Value + unit string
 * @argument {String} measurement - `height` or `width`
 * @argument {Object} popperOffsets
 * @argument {Object} referenceOffsets
 * @returns {Number|String}
 * Value in pixels, or original string if no values were extracted
 */
function toValue(str, measurement, popperOffsets, referenceOffsets) {
  // separate value from unit
  var split = str.match(/((?:\-|\+)?\d*\.?\d*)(.*)/);
  var value = +split[1];
  var unit = split[2];

  // If it's not a number it's an operator, I guess
  if (!value) {
    return str;
  }

  if (unit.indexOf('%') === 0) {
    var element = void 0;
    switch (unit) {
      case '%p':
        element = popperOffsets;
        break;
      case '%':
      case '%r':
      default:
        element = referenceOffsets;
    }

    var rect = getClientRect(element);
    return rect[measurement] / 100 * value;
  } else if (unit === 'vh' || unit === 'vw') {
    // if is a vh or vw, we calculate the size based on the viewport
    var size = void 0;
    if (unit === 'vh') {
      size = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
    } else {
      size = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
    }
    return size / 100 * value;
  } else {
    // if is an explicit pixel unit, we get rid of the unit and keep the value
    // if is an implicit unit, it's px, and we return just the value
    return value;
  }
}

/**
 * Parse an `offset` string to extrapolate `x` and `y` numeric offsets.
 * @function
 * @memberof {modifiers~offset}
 * @private
 * @argument {String} offset
 * @argument {Object} popperOffsets
 * @argument {Object} referenceOffsets
 * @argument {String} basePlacement
 * @returns {Array} a two cells array with x and y offsets in numbers
 */
function parseOffset(offset, popperOffsets, referenceOffsets, basePlacement) {
  var offsets = [0, 0];

  // Use height if placement is left or right and index is 0 otherwise use width
  // in this way the first offset will use an axis and the second one
  // will use the other one
  var useHeight = ['right', 'left'].indexOf(basePlacement) !== -1;

  // Split the offset string to obtain a list of values and operands
  // The regex addresses values with the plus or minus sign in front (+10, -20, etc)
  var fragments = offset.split(/(\+|\-)/).map(function (frag) {
    return frag.trim();
  });

  // Detect if the offset string contains a pair of values or a single one
  // they could be separated by comma or space
  var divider = fragments.indexOf(find(fragments, function (frag) {
    return frag.search(/,|\s/) !== -1;
  }));

  if (fragments[divider] && fragments[divider].indexOf(',') === -1) {
    console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');
  }

  // If divider is found, we divide the list of values and operands to divide
  // them by ofset X and Y.
  var splitRegex = /\s*,\s*|\s+/;
  var ops = divider !== -1 ? [fragments.slice(0, divider).concat([fragments[divider].split(splitRegex)[0]]), [fragments[divider].split(splitRegex)[1]].concat(fragments.slice(divider + 1))] : [fragments];

  // Convert the values with units to absolute pixels to allow our computations
  ops = ops.map(function (op, index) {
    // Most of the units rely on the orientation of the popper
    var measurement = (index === 1 ? !useHeight : useHeight) ? 'height' : 'width';
    var mergeWithPrevious = false;
    return op
    // This aggregates any `+` or `-` sign that aren't considered operators
    // e.g.: 10 + +5 => [10, +, +5]
    .reduce(function (a, b) {
      if (a[a.length - 1] === '' && ['+', '-'].indexOf(b) !== -1) {
        a[a.length - 1] = b;
        mergeWithPrevious = true;
        return a;
      } else if (mergeWithPrevious) {
        a[a.length - 1] += b;
        mergeWithPrevious = false;
        return a;
      } else {
        return a.concat(b);
      }
    }, [])
    // Here we convert the string values into number values (in px)
    .map(function (str) {
      return toValue(str, measurement, popperOffsets, referenceOffsets);
    });
  });

  // Loop trough the offsets arrays and execute the operations
  ops.forEach(function (op, index) {
    op.forEach(function (frag, index2) {
      if (isNumeric(frag)) {
        offsets[index] += frag * (op[index2 - 1] === '-' ? -1 : 1);
      }
    });
  });
  return offsets;
}

/**
 * @function
 * @memberof Modifiers
 * @argument {Object} data - The data object generated by update method
 * @argument {Object} options - Modifiers configuration and options
 * @argument {Number|String} options.offset=0
 * The offset value as described in the modifier description
 * @returns {Object} The data object, properly modified
 */
function offset(data, _ref) {
  var offset = _ref.offset;
  var placement = data.placement,
      _data$offsets = data.offsets,
      popper = _data$offsets.popper,
      reference = _data$offsets.reference;

  var basePlacement = placement.split('-')[0];

  var offsets = void 0;
  if (isNumeric(+offset)) {
    offsets = [+offset, 0];
  } else {
    offsets = parseOffset(offset, popper, reference, basePlacement);
  }

  if (basePlacement === 'left') {
    popper.top += offsets[0];
    popper.left -= offsets[1];
  } else if (basePlacement === 'right') {
    popper.top += offsets[0];
    popper.left += offsets[1];
  } else if (basePlacement === 'top') {
    popper.left += offsets[0];
    popper.top -= offsets[1];
  } else if (basePlacement === 'bottom') {
    popper.left += offsets[0];
    popper.top += offsets[1];
  }

  data.popper = popper;
  return data;
}

/**
 * @function
 * @memberof Modifiers
 * @argument {Object} data - The data object generated by `update` method
 * @argument {Object} options - Modifiers configuration and options
 * @returns {Object} The data object, properly modified
 */
function preventOverflow(data, options) {
  var boundariesElement = options.boundariesElement || getOffsetParent(data.instance.popper);

  // If offsetParent is the reference element, we really want to
  // go one step up and use the next offsetParent as reference to
  // avoid to make this modifier completely useless and look like broken
  if (data.instance.reference === boundariesElement) {
    boundariesElement = getOffsetParent(boundariesElement);
  }

  // NOTE: DOM access here
  // resets the popper's position so that the document size can be calculated excluding
  // the size of the popper element itself
  var transformProp = getSupportedPropertyName('transform');
  var popperStyles = data.instance.popper.style; // assignment to help minification
  var top = popperStyles.top,
      left = popperStyles.left,
      transform = popperStyles[transformProp];

  popperStyles.top = '';
  popperStyles.left = '';
  popperStyles[transformProp] = '';

  var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, boundariesElement, data.positionFixed);

  // NOTE: DOM access here
  // restores the original style properties after the offsets have been computed
  popperStyles.top = top;
  popperStyles.left = left;
  popperStyles[transformProp] = transform;

  options.boundaries = boundaries;

  var order = options.priority;
  var popper = data.offsets.popper;

  var check = {
    primary: function primary(placement) {
      var value = popper[placement];
      if (popper[placement] < boundaries[placement] && !options.escapeWithReference) {
        value = Math.max(popper[placement], boundaries[placement]);
      }
      return defineProperty({}, placement, value);
    },
    secondary: function secondary(placement) {
      var mainSide = placement === 'right' ? 'left' : 'top';
      var value = popper[mainSide];
      if (popper[placement] > boundaries[placement] && !options.escapeWithReference) {
        value = Math.min(popper[mainSide], boundaries[placement] - (placement === 'right' ? popper.width : popper.height));
      }
      return defineProperty({}, mainSide, value);
    }
  };

  order.forEach(function (placement) {
    var side = ['left', 'top'].indexOf(placement) !== -1 ? 'primary' : 'secondary';
    popper = _extends({}, popper, check[side](placement));
  });

  data.offsets.popper = popper;

  return data;
}

/**
 * @function
 * @memberof Modifiers
 * @argument {Object} data - The data object generated by `update` method
 * @argument {Object} options - Modifiers configuration and options
 * @returns {Object} The data object, properly modified
 */
function shift(data) {
  var placement = data.placement;
  var basePlacement = placement.split('-')[0];
  var shiftvariation = placement.split('-')[1];

  // if shift shiftvariation is specified, run the modifier
  if (shiftvariation) {
    var _data$offsets = data.offsets,
        reference = _data$offsets.reference,
        popper = _data$offsets.popper;

    var isVertical = ['bottom', 'top'].indexOf(basePlacement) !== -1;
    var side = isVertical ? 'left' : 'top';
    var measurement = isVertical ? 'width' : 'height';

    var shiftOffsets = {
      start: defineProperty({}, side, reference[side]),
      end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement])
    };

    data.offsets.popper = _extends({}, popper, shiftOffsets[shiftvariation]);
  }

  return data;
}

/**
 * @function
 * @memberof Modifiers
 * @argument {Object} data - The data object generated by update method
 * @argument {Object} options - Modifiers configuration and options
 * @returns {Object} The data object, properly modified
 */
function hide(data) {
  if (!isModifierRequired(data.instance.modifiers, 'hide', 'preventOverflow')) {
    return data;
  }

  var refRect = data.offsets.reference;
  var bound = find(data.instance.modifiers, function (modifier) {
    return modifier.name === 'preventOverflow';
  }).boundaries;

  if (refRect.bottom < bound.top || refRect.left > bound.right || refRect.top > bound.bottom || refRect.right < bound.left) {
    // Avoid unnecessary DOM access if visibility hasn't changed
    if (data.hide === true) {
      return data;
    }

    data.hide = true;
    data.attributes['x-out-of-boundaries'] = '';
  } else {
    // Avoid unnecessary DOM access if visibility hasn't changed
    if (data.hide === false) {
      return data;
    }

    data.hide = false;
    data.attributes['x-out-of-boundaries'] = false;
  }

  return data;
}

/**
 * @function
 * @memberof Modifiers
 * @argument {Object} data - The data object generated by `update` method
 * @argument {Object} options - Modifiers configuration and options
 * @returns {Object} The data object, properly modified
 */
function inner(data) {
  var placement = data.placement;
  var basePlacement = placement.split('-')[0];
  var _data$offsets = data.offsets,
      popper = _data$offsets.popper,
      reference = _data$offsets.reference;

  var isHoriz = ['left', 'right'].indexOf(basePlacement) !== -1;

  var subtractLength = ['top', 'left'].indexOf(basePlacement) === -1;

  popper[isHoriz ? 'left' : 'top'] = reference[basePlacement] - (subtractLength ? popper[isHoriz ? 'width' : 'height'] : 0);

  data.placement = getOppositePlacement(placement);
  data.offsets.popper = getClientRect(popper);

  return data;
}

/**
 * Modifier function, each modifier can have a function of this type assigned
 * to its `fn` property.<br />
 * These functions will be called on each update, this means that you must
 * make sure they are performant enough to avoid performance bottlenecks.
 *
 * @function ModifierFn
 * @argument {dataObject} data - The data object generated by `update` method
 * @argument {Object} options - Modifiers configuration and options
 * @returns {dataObject} The data object, properly modified
 */

/**
 * Modifiers are plugins used to alter the behavior of your poppers.<br />
 * Popper.js uses a set of 9 modifiers to provide all the basic functionalities
 * needed by the library.
 *
 * Usually you don't want to override the `order`, `fn` and `onLoad` props.
 * All the other properties are configurations that could be tweaked.
 * @namespace modifiers
 */
var modifiers = {
  /**
   * Modifier used to shift the popper on the start or end of its reference
   * element.<br />
   * It will read the variation of the `placement` property.<br />
   * It can be one either `-end` or `-start`.
   * @memberof modifiers
   * @inner
   */
  shift: {
    /** @prop {number} order=100 - Index used to define the order of execution */
    order: 100,
    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
    enabled: true,
    /** @prop {ModifierFn} */
    fn: shift
  },

  /**
   * The `offset` modifier can shift your popper on both its axis.
   *
   * It accepts the following units:
   * - `px` or unit-less, interpreted as pixels
   * - `%` or `%r`, percentage relative to the length of the reference element
   * - `%p`, percentage relative to the length of the popper element
   * - `vw`, CSS viewport width unit
   * - `vh`, CSS viewport height unit
   *
   * For length is intended the main axis relative to the placement of the popper.<br />
   * This means that if the placement is `top` or `bottom`, the length will be the
   * `width`. In case of `left` or `right`, it will be the `height`.
   *
   * You can provide a single value (as `Number` or `String`), or a pair of values
   * as `String` divided by a comma or one (or more) white spaces.<br />
   * The latter is a deprecated method because it leads to confusion and will be
   * removed in v2.<br />
   * Additionally, it accepts additions and subtractions between different units.
   * Note that multiplications and divisions aren't supported.
   *
   * Valid examples are:
   * ```
   * 10
   * '10%'
   * '10, 10'
   * '10%, 10'
   * '10 + 10%'
   * '10 - 5vh + 3%'
   * '-10px + 5vh, 5px - 6%'
   * ```
   * > **NB**: If you desire to apply offsets to your poppers in a way that may make them overlap
   * > with their reference element, unfortunately, you will have to disable the `flip` modifier.
   * > You can read more on this at this [issue](https://github.com/FezVrasta/popper.js/issues/373).
   *
   * @memberof modifiers
   * @inner
   */
  offset: {
    /** @prop {number} order=200 - Index used to define the order of execution */
    order: 200,
    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
    enabled: true,
    /** @prop {ModifierFn} */
    fn: offset,
    /** @prop {Number|String} offset=0
     * The offset value as described in the modifier description
     */
    offset: 0
  },

  /**
   * Modifier used to prevent the popper from being positioned outside the boundary.
   *
   * A scenario exists where the reference itself is not within the boundaries.<br />
   * We can say it has "escaped the boundaries" — or just "escaped".<br />
   * In this case we need to decide whether the popper should either:
   *
   * - detach from the reference and remain "trapped" in the boundaries, or
   * - if it should ignore the boundary and "escape with its reference"
   *
   * When `escapeWithReference` is set to`true` and reference is completely
   * outside its boundaries, the popper will overflow (or completely leave)
   * the boundaries in order to remain attached to the edge of the reference.
   *
   * @memberof modifiers
   * @inner
   */
  preventOverflow: {
    /** @prop {number} order=300 - Index used to define the order of execution */
    order: 300,
    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
    enabled: true,
    /** @prop {ModifierFn} */
    fn: preventOverflow,
    /**
     * @prop {Array} [priority=['left','right','top','bottom']]
     * Popper will try to prevent overflow following these priorities by default,
     * then, it could overflow on the left and on top of the `boundariesElement`
     */
    priority: ['left', 'right', 'top', 'bottom'],
    /**
     * @prop {number} padding=5
     * Amount of pixel used to define a minimum distance between the boundaries
     * and the popper. This makes sure the popper always has a little padding
     * between the edges of its container
     */
    padding: 5,
    /**
     * @prop {String|HTMLElement} boundariesElement='scrollParent'
     * Boundaries used by the modifier. Can be `scrollParent`, `window`,
     * `viewport` or any DOM element.
     */
    boundariesElement: 'scrollParent'
  },

  /**
   * Modifier used to make sure the reference and its popper stay near each other
   * without leaving any gap between the two. Especially useful when the arrow is
   * enabled and you want to ensure that it points to its reference element.
   * It cares only about the first axis. You can still have poppers with margin
   * between the popper and its reference element.
   * @memberof modifiers
   * @inner
   */
  keepTogether: {
    /** @prop {number} order=400 - Index used to define the order of execution */
    order: 400,
    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
    enabled: true,
    /** @prop {ModifierFn} */
    fn: keepTogether
  },

  /**
   * This modifier is used to move the `arrowElement` of the popper to make
   * sure it is positioned between the reference element and its popper element.
   * It will read the outer size of the `arrowElement` node to detect how many
   * pixels of conjunction are needed.
   *
   * It has no effect if no `arrowElement` is provided.
   * @memberof modifiers
   * @inner
   */
  arrow: {
    /** @prop {number} order=500 - Index used to define the order of execution */
    order: 500,
    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
    enabled: true,
    /** @prop {ModifierFn} */
    fn: arrow,
    /** @prop {String|HTMLElement} element='[x-arrow]' - Selector or node used as arrow */
    element: '[x-arrow]'
  },

  /**
   * Modifier used to flip the popper's placement when it starts to overlap its
   * reference element.
   *
   * Requires the `preventOverflow` modifier before it in order to work.
   *
   * **NOTE:** this modifier will interrupt the current update cycle and will
   * restart it if it detects the need to flip the placement.
   * @memberof modifiers
   * @inner
   */
  flip: {
    /** @prop {number} order=600 - Index used to define the order of execution */
    order: 600,
    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
    enabled: true,
    /** @prop {ModifierFn} */
    fn: flip,
    /**
     * @prop {String|Array} behavior='flip'
     * The behavior used to change the popper's placement. It can be one of
     * `flip`, `clockwise`, `counterclockwise` or an array with a list of valid
     * placements (with optional variations)
     */
    behavior: 'flip',
    /**
     * @prop {number} padding=5
     * The popper will flip if it hits the edges of the `boundariesElement`
     */
    padding: 5,
    /**
     * @prop {String|HTMLElement} boundariesElement='viewport'
     * The element which will define the boundaries of the popper position.
     * The popper will never be placed outside of the defined boundaries
     * (except if `keepTogether` is enabled)
     */
    boundariesElement: 'viewport',
    /**
     * @prop {Boolean} flipVariations=false
     * The popper will switch placement variation between `-start` and `-end` when
     * the reference element overlaps its boundaries.
     *
     * The original placement should have a set variation.
     */
    flipVariations: false,
    /**
     * @prop {Boolean} flipVariationsByContent=false
     * The popper will switch placement variation between `-start` and `-end` when
     * the popper element overlaps its reference boundaries.
     *
     * The original placement should have a set variation.
     */
    flipVariationsByContent: false
  },

  /**
   * Modifier used to make the popper flow toward the inner of the reference element.
   * By default, when this modifier is disabled, the popper will be placed outside
   * the reference element.
   * @memberof modifiers
   * @inner
   */
  inner: {
    /** @prop {number} order=700 - Index used to define the order of execution */
    order: 700,
    /** @prop {Boolean} enabled=false - Whether the modifier is enabled or not */
    enabled: false,
    /** @prop {ModifierFn} */
    fn: inner
  },

  /**
   * Modifier used to hide the popper when its reference element is outside of the
   * popper boundaries. It will set a `x-out-of-boundaries` attribute which can
   * be used to hide with a CSS selector the popper when its reference is
   * out of boundaries.
   *
   * Requires the `preventOverflow` modifier before it in order to work.
   * @memberof modifiers
   * @inner
   */
  hide: {
    /** @prop {number} order=800 - Index used to define the order of execution */
    order: 800,
    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
    enabled: true,
    /** @prop {ModifierFn} */
    fn: hide
  },

  /**
   * Computes the style that will be applied to the popper element to gets
   * properly positioned.
   *
   * Note that this modifier will not touch the DOM, it just prepares the styles
   * so that `applyStyle` modifier can apply it. This separation is useful
   * in case you need to replace `applyStyle` with a custom implementation.
   *
   * This modifier has `850` as `order` value to maintain backward compatibility
   * with previous versions of Popper.js. Expect the modifiers ordering method
   * to change in future major versions of the library.
   *
   * @memberof modifiers
   * @inner
   */
  computeStyle: {
    /** @prop {number} order=850 - Index used to define the order of execution */
    order: 850,
    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
    enabled: true,
    /** @prop {ModifierFn} */
    fn: computeStyle,
    /**
     * @prop {Boolean} gpuAcceleration=true
     * If true, it uses the CSS 3D transformation to position the popper.
     * Otherwise, it will use the `top` and `left` properties
     */
    gpuAcceleration: true,
    /**
     * @prop {string} [x='bottom']
     * Where to anchor the X axis (`bottom` or `top`). AKA X offset origin.
     * Change this if your popper should grow in a direction different from `bottom`
     */
    x: 'bottom',
    /**
     * @prop {string} [x='left']
     * Where to anchor the Y axis (`left` or `right`). AKA Y offset origin.
     * Change this if your popper should grow in a direction different from `right`
     */
    y: 'right'
  },

  /**
   * Applies the computed styles to the popper element.
   *
   * All the DOM manipulations are limited to this modifier. This is useful in case
   * you want to integrate Popper.js inside a framework or view library and you
   * want to delegate all the DOM manipulations to it.
   *
   * Note that if you disable this modifier, you must make sure the popper element
   * has its position set to `absolute` before Popper.js can do its work!
   *
   * Just disable this modifier and define your own to achieve the desired effect.
   *
   * @memberof modifiers
   * @inner
   */
  applyStyle: {
    /** @prop {number} order=900 - Index used to define the order of execution */
    order: 900,
    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
    enabled: true,
    /** @prop {ModifierFn} */
    fn: applyStyle,
    /** @prop {Function} */
    onLoad: applyStyleOnLoad,
    /**
     * @deprecated since version 1.10.0, the property moved to `computeStyle` modifier
     * @prop {Boolean} gpuAcceleration=true
     * If true, it uses the CSS 3D transformation to position the popper.
     * Otherwise, it will use the `top` and `left` properties
     */
    gpuAcceleration: undefined
  }
};

/**
 * The `dataObject` is an object containing all the information used by Popper.js.
 * This object is passed to modifiers and to the `onCreate` and `onUpdate` callbacks.
 * @name dataObject
 * @property {Object} data.instance The Popper.js instance
 * @property {String} data.placement Placement applied to popper
 * @property {String} data.originalPlacement Placement originally defined on init
 * @property {Boolean} data.flipped True if popper has been flipped by flip modifier
 * @property {Boolean} data.hide True if the reference element is out of boundaries, useful to know when to hide the popper
 * @property {HTMLElement} data.arrowElement Node used as arrow by arrow modifier
 * @property {Object} data.styles Any CSS property defined here will be applied to the popper. It expects the JavaScript nomenclature (eg. `marginBottom`)
 * @property {Object} data.arrowStyles Any CSS property defined here will be applied to the popper arrow. It expects the JavaScript nomenclature (eg. `marginBottom`)
 * @property {Object} data.boundaries Offsets of the popper boundaries
 * @property {Object} data.offsets The measurements of popper, reference and arrow elements
 * @property {Object} data.offsets.popper `top`, `left`, `width`, `height` values
 * @property {Object} data.offsets.reference `top`, `left`, `width`, `height` values
 * @property {Object} data.offsets.arrow] `top` and `left` offsets, only one of them will be different from 0
 */

/**
 * Default options provided to Popper.js constructor.<br />
 * These can be overridden using the `options` argument of Popper.js.<br />
 * To override an option, simply pass an object with the same
 * structure of the `options` object, as the 3rd argument. For example:
 * ```
 * new Popper(ref, pop, {
 *   modifiers: {
 *     preventOverflow: { enabled: false }
 *   }
 * })
 * ```
 * @type {Object}
 * @static
 * @memberof Popper
 */
var Defaults = {
  /**
   * Popper's placement.
   * @prop {Popper.placements} placement='bottom'
   */
  placement: 'bottom',

  /**
   * Set this to true if you want popper to position it self in 'fixed' mode
   * @prop {Boolean} positionFixed=false
   */
  positionFixed: false,

  /**
   * Whether events (resize, scroll) are initially enabled.
   * @prop {Boolean} eventsEnabled=true
   */
  eventsEnabled: true,

  /**
   * Set to true if you want to automatically remove the popper when
   * you call the `destroy` method.
   * @prop {Boolean} removeOnDestroy=false
   */
  removeOnDestroy: false,

  /**
   * Callback called when the popper is created.<br />
   * By default, it is set to no-op.<br />
   * Access Popper.js instance with `data.instance`.
   * @prop {onCreate}
   */
  onCreate: function onCreate() {},

  /**
   * Callback called when the popper is updated. This callback is not called
   * on the initialization/creation of the popper, but only on subsequent
   * updates.<br />
   * By default, it is set to no-op.<br />
   * Access Popper.js instance with `data.instance`.
   * @prop {onUpdate}
   */
  onUpdate: function onUpdate() {},

  /**
   * List of modifiers used to modify the offsets before they are applied to the popper.
   * They provide most of the functionalities of Popper.js.
   * @prop {modifiers}
   */
  modifiers: modifiers
};

/**
 * @callback onCreate
 * @param {dataObject} data
 */

/**
 * @callback onUpdate
 * @param {dataObject} data
 */

// Utils
// Methods
var Popper = function () {
  /**
   * Creates a new Popper.js instance.
   * @class Popper
   * @param {Element|referenceObject} reference - The reference element used to position the popper
   * @param {Element} popper - The HTML / XML element used as the popper
   * @param {Object} options - Your custom options to override the ones defined in [Defaults](#defaults)
   * @return {Object} instance - The generated Popper.js instance
   */
  function Popper(reference, popper) {
    var _this = this;

    var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
    classCallCheck(this, Popper);

    this.scheduleUpdate = function () {
      return requestAnimationFrame(_this.update);
    };

    // make update() debounced, so that it only runs at most once-per-tick
    this.update = debounce(this.update.bind(this));

    // with {} we create a new object with the options inside it
    this.options = _extends({}, Popper.Defaults, options);

    // init state
    this.state = {
      isDestroyed: false,
      isCreated: false,
      scrollParents: []
    };

    // get reference and popper elements (allow jQuery wrappers)
    this.reference = reference && reference.jquery ? reference[0] : reference;
    this.popper = popper && popper.jquery ? popper[0] : popper;

    // Deep merge modifiers options
    this.options.modifiers = {};
    Object.keys(_extends({}, Popper.Defaults.modifiers, options.modifiers)).forEach(function (name) {
      _this.options.modifiers[name] = _extends({}, Popper.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});
    });

    // Refactoring modifiers' list (Object => Array)
    this.modifiers = Object.keys(this.options.modifiers).map(function (name) {
      return _extends({
        name: name
      }, _this.options.modifiers[name]);
    })
    // sort the modifiers by order
    .sort(function (a, b) {
      return a.order - b.order;
    });

    // modifiers have the ability to execute arbitrary code when Popper.js get inited
    // such code is executed in the same order of its modifier
    // they could add new properties to their options configuration
    // BE AWARE: don't add options to `options.modifiers.name` but to `modifierOptions`!
    this.modifiers.forEach(function (modifierOptions) {
      if (modifierOptions.enabled && isFunction(modifierOptions.onLoad)) {
        modifierOptions.onLoad(_this.reference, _this.popper, _this.options, modifierOptions, _this.state);
      }
    });

    // fire the first update to position the popper in the right place
    this.update();

    var eventsEnabled = this.options.eventsEnabled;
    if (eventsEnabled) {
      // setup event listeners, they will take care of update the position in specific situations
      this.enableEventListeners();
    }

    this.state.eventsEnabled = eventsEnabled;
  }

  // We can't use class properties because they don't get listed in the
  // class prototype and break stuff like Sinon stubs


  createClass(Popper, [{
    key: 'update',
    value: function update$$1() {
      return update.call(this);
    }
  }, {
    key: 'destroy',
    value: function destroy$$1() {
      return destroy.call(this);
    }
  }, {
    key: 'enableEventListeners',
    value: function enableEventListeners$$1() {
      return enableEventListeners.call(this);
    }
  }, {
    key: 'disableEventListeners',
    value: function disableEventListeners$$1() {
      return disableEventListeners.call(this);
    }

    /**
     * Schedules an update. It will run on the next UI update available.
     * @method scheduleUpdate
     * @memberof Popper
     */


    /**
     * Collection of utilities useful when writing custom modifiers.
     * Starting from version 1.7, this method is available only if you
     * include `popper-utils.js` before `popper.js`.
     *
     * **DEPRECATION**: This way to access PopperUtils is deprecated
     * and will be removed in v2! Use the PopperUtils module directly instead.
     * Due to the high instability of the methods contained in Utils, we can't
     * guarantee them to follow semver. Use them at your own risk!
     * @static
     * @private
     * @type {Object}
     * @deprecated since version 1.8
     * @member Utils
     * @memberof Popper
     */

  }]);
  return Popper;
}();

/**
 * The `referenceObject` is an object that provides an interface compatible with Popper.js
 * and lets you use it as replacement of a real DOM node.<br />
 * You can use this method to position a popper relatively to a set of coordinates
 * in case you don't have a DOM node to use as reference.
 *
 * ```
 * new Popper(referenceObject, popperNode);
 * ```
 *
 * NB: This feature isn't supported in Internet Explorer 10.
 * @name referenceObject
 * @property {Function} data.getBoundingClientRect
 * A function that returns a set of coordinates compatible with the native `getBoundingClientRect` method.
 * @property {number} data.clientWidth
 * An ES6 getter that will return the width of the virtual reference element.
 * @property {number} data.clientHeight
 * An ES6 getter that will return the height of the virtual reference element.
 */


Popper.Utils = (typeof window !== 'undefined' ? window : global).PopperUtils;
Popper.placements = placements;
Popper.Defaults = Defaults;

/* harmony default export */ __webpack_exports__["default"] = (Popper);
//# sourceMappingURL=popper.js.map

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))

/***/ }),

/***/ "./node_modules/process/browser.js":
/*!*****************************************!*\
  !*** ./node_modules/process/browser.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports) {

// shim for using process in browser
var process = module.exports = {};

// cached from whatever global is present so that test runners that stub it
// don't break things.  But we need to wrap it in a try catch in case it is
// wrapped in strict mode code which doesn't define any globals.  It's inside a
// function because try/catches deoptimize in certain engines.

var cachedSetTimeout;
var cachedClearTimeout;

function defaultSetTimout() {
    throw new Error('setTimeout has not been defined');
}
function defaultClearTimeout () {
    throw new Error('clearTimeout has not been defined');
}
(function () {
    try {
        if (typeof setTimeout === 'function') {
            cachedSetTimeout = setTimeout;
        } else {
            cachedSetTimeout = defaultSetTimout;
        }
    } catch (e) {
        cachedSetTimeout = defaultSetTimout;
    }
    try {
        if (typeof clearTimeout === 'function') {
            cachedClearTimeout = clearTimeout;
        } else {
            cachedClearTimeout = defaultClearTimeout;
        }
    } catch (e) {
        cachedClearTimeout = defaultClearTimeout;
    }
} ())
function runTimeout(fun) {
    if (cachedSetTimeout === setTimeout) {
        //normal enviroments in sane situations
        return setTimeout(fun, 0);
    }
    // if setTimeout wasn't available but was latter defined
    if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
        cachedSetTimeout = setTimeout;
        return setTimeout(fun, 0);
    }
    try {
        // when when somebody has screwed with setTimeout but no I.E. maddness
        return cachedSetTimeout(fun, 0);
    } catch(e){
        try {
            // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
            return cachedSetTimeout.call(null, fun, 0);
        } catch(e){
            // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
            return cachedSetTimeout.call(this, fun, 0);
        }
    }


}
function runClearTimeout(marker) {
    if (cachedClearTimeout === clearTimeout) {
        //normal enviroments in sane situations
        return clearTimeout(marker);
    }
    // if clearTimeout wasn't available but was latter defined
    if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
        cachedClearTimeout = clearTimeout;
        return clearTimeout(marker);
    }
    try {
        // when when somebody has screwed with setTimeout but no I.E. maddness
        return cachedClearTimeout(marker);
    } catch (e){
        try {
            // When we are in I.E. but the script has been evaled so I.E. doesn't  trust the global object when called normally
            return cachedClearTimeout.call(null, marker);
        } catch (e){
            // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
            // Some versions of I.E. have different rules for clearTimeout vs setTimeout
            return cachedClearTimeout.call(this, marker);
        }
    }



}
var queue = [];
var draining = false;
var currentQueue;
var queueIndex = -1;

function cleanUpNextTick() {
    if (!draining || !currentQueue) {
        return;
    }
    draining = false;
    if (currentQueue.length) {
        queue = currentQueue.concat(queue);
    } else {
        queueIndex = -1;
    }
    if (queue.length) {
        drainQueue();
    }
}

function drainQueue() {
    if (draining) {
        return;
    }
    var timeout = runTimeout(cleanUpNextTick);
    draining = true;

    var len = queue.length;
    while(len) {
        currentQueue = queue;
        queue = [];
        while (++queueIndex < len) {
            if (currentQueue) {
                currentQueue[queueIndex].run();
            }
        }
        queueIndex = -1;
        len = queue.length;
    }
    currentQueue = null;
    draining = false;
    runClearTimeout(timeout);
}

process.nextTick = function (fun) {
    var args = new Array(arguments.length - 1);
    if (arguments.length > 1) {
        for (var i = 1; i < arguments.length; i++) {
            args[i - 1] = arguments[i];
        }
    }
    queue.push(new Item(fun, args));
    if (queue.length === 1 && !draining) {
        runTimeout(drainQueue);
    }
};

// v8 likes predictible objects
function Item(fun, array) {
    this.fun = fun;
    this.array = array;
}
Item.prototype.run = function () {
    this.fun.apply(null, this.array);
};
process.title = 'browser';
process.browser = true;
process.env = {};
process.argv = [];
process.version = ''; // empty string to avoid regexp issues
process.versions = {};

function noop() {}

process.on = noop;
process.addListener = noop;
process.once = noop;
process.off = noop;
process.removeListener = noop;
process.removeAllListeners = noop;
process.emit = noop;
process.prependListener = noop;
process.prependOnceListener = noop;

process.listeners = function (name) { return [] }

process.binding = function (name) {
    throw new Error('process.binding is not supported');
};

process.cwd = function () { return '/' };
process.chdir = function (dir) {
    throw new Error('process.chdir is not supported');
};
process.umask = function() { return 0; };


/***/ }),

/***/ "./node_modules/prop-types-extra/lib/all.js":
/*!**************************************************!*\
  !*** ./node_modules/prop-types-extra/lib/all.js ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = all;

var _createChainableTypeChecker = __webpack_require__(/*! ./utils/createChainableTypeChecker */ "./node_modules/prop-types-extra/lib/utils/createChainableTypeChecker.js");

var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function all() {
  for (var _len = arguments.length, validators = Array(_len), _key = 0; _key < _len; _key++) {
    validators[_key] = arguments[_key];
  }

  function allPropTypes() {
    for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
      args[_key2] = arguments[_key2];
    }

    var error = null;

    validators.forEach(function (validator) {
      if (error != null) {
        return;
      }

      var result = validator.apply(undefined, args);
      if (result != null) {
        error = result;
      }
    });

    return error;
  }

  return (0, _createChainableTypeChecker2.default)(allPropTypes);
}
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/prop-types-extra/lib/componentOrElement.js":
/*!*****************************************************************!*\
  !*** ./node_modules/prop-types-extra/lib/componentOrElement.js ***!
  \*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _createChainableTypeChecker = __webpack_require__(/*! ./utils/createChainableTypeChecker */ "./node_modules/prop-types-extra/lib/utils/createChainableTypeChecker.js");

var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function validate(props, propName, componentName, location, propFullName) {
  var propValue = props[propName];
  var propType = typeof propValue === 'undefined' ? 'undefined' : _typeof(propValue);

  if (_react2.default.isValidElement(propValue)) {
    return new Error('Invalid ' + location + ' `' + propFullName + '` of type ReactElement ' + ('supplied to `' + componentName + '`, expected a ReactComponent or a ') + 'DOMElement. You can usually obtain a ReactComponent or DOMElement ' + 'from a ReactElement by attaching a ref to it.');
  }

  if ((propType !== 'object' || typeof propValue.render !== 'function') && propValue.nodeType !== 1) {
    return new Error('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected a ReactComponent or a ') + 'DOMElement.');
  }

  return null;
}

exports.default = (0, _createChainableTypeChecker2.default)(validate);
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/prop-types-extra/lib/deprecated.js":
/*!*********************************************************!*\
  !*** ./node_modules/prop-types-extra/lib/deprecated.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = deprecated;

var _warning = __webpack_require__(/*! warning */ "./node_modules/warning/browser.js");

var _warning2 = _interopRequireDefault(_warning);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var warned = {};

function deprecated(validator, reason) {
  return function validate(props, propName, componentName, location, propFullName) {
    var componentNameSafe = componentName || '<<anonymous>>';
    var propFullNameSafe = propFullName || propName;

    if (props[propName] != null) {
      var messageKey = componentName + '.' + propName;

      (0, _warning2.default)(warned[messageKey], 'The ' + location + ' `' + propFullNameSafe + '` of ' + ('`' + componentNameSafe + '` is deprecated. ' + reason + '.'));

      warned[messageKey] = true;
    }

    for (var _len = arguments.length, args = Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) {
      args[_key - 5] = arguments[_key];
    }

    return validator.apply(undefined, [props, propName, componentName, location, propFullName].concat(args));
  };
}

/* eslint-disable no-underscore-dangle */
function _resetWarned() {
  warned = {};
}

deprecated._resetWarned = _resetWarned;
/* eslint-enable no-underscore-dangle */

module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/prop-types-extra/lib/elementType.js":
/*!**********************************************************!*\
  !*** ./node_modules/prop-types-extra/lib/elementType.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _reactIs = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");

var _createChainableTypeChecker = __webpack_require__(/*! ./utils/createChainableTypeChecker */ "./node_modules/prop-types-extra/lib/utils/createChainableTypeChecker.js");

var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function elementType(props, propName, componentName, location, propFullName) {
  var propValue = props[propName];

  if (_react2.default.isValidElement(propValue)) {
    return new Error('Invalid ' + location + ' `' + propFullName + '` of type ReactElement ' + ('supplied to `' + componentName + '`,expected an element type (a string ') + ', component class, or function component).');
  }

  if (!(0, _reactIs.isValidElementType)(propValue)) {
    return new Error('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected an element type (a string ') + ', component class, or function component).');
  }

  return null;
}

exports.default = (0, _createChainableTypeChecker2.default)(elementType);
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/prop-types-extra/lib/isRequiredForA11y.js":
/*!****************************************************************!*\
  !*** ./node_modules/prop-types-extra/lib/isRequiredForA11y.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = isRequiredForA11y;
function isRequiredForA11y(validator) {
  return function validate(props, propName, componentName, location, propFullName) {
    var componentNameSafe = componentName || '<<anonymous>>';
    var propFullNameSafe = propFullName || propName;

    if (props[propName] == null) {
      return new Error('The ' + location + ' `' + propFullNameSafe + '` is required to make ' + ('`' + componentNameSafe + '` accessible for users of assistive ') + 'technologies such as screen readers.');
    }

    for (var _len = arguments.length, args = Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) {
      args[_key - 5] = arguments[_key];
    }

    return validator.apply(undefined, [props, propName, componentName, location, propFullName].concat(args));
  };
}
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/prop-types-extra/lib/utils/createChainableTypeChecker.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/prop-types-extra/lib/utils/createChainableTypeChecker.js ***!
  \*******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = createChainableTypeChecker;
/**
 * Copyright 2013-present, Facebook, Inc.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree. An additional grant
 * of patent rights can be found in the PATENTS file in the same directory.
 */

// Mostly taken from ReactPropTypes.

function createChainableTypeChecker(validate) {
  function checkType(isRequired, props, propName, componentName, location, propFullName) {
    var componentNameSafe = componentName || '<<anonymous>>';
    var propFullNameSafe = propFullName || propName;

    if (props[propName] == null) {
      if (isRequired) {
        return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
      }

      return null;
    }

    for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
      args[_key - 6] = arguments[_key];
    }

    return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
  }

  var chainedCheckType = checkType.bind(null, false);
  chainedCheckType.isRequired = checkType.bind(null, true);

  return chainedCheckType;
}
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/prop-types/checkPropTypes.js":
/*!***************************************************!*\
  !*** ./node_modules/prop-types/checkPropTypes.js ***!
  \***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/**
 * Copyright (c) 2013-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */



var printWarning = function() {};

if (true) {
  var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "./node_modules/prop-types/lib/ReactPropTypesSecret.js");
  var loggedTypeFailures = {};

  printWarning = function(text) {
    var message = 'Warning: ' + text;
    if (typeof console !== 'undefined') {
      console.error(message);
    }
    try {
      // --- Welcome to debugging React ---
      // This error was thrown as a convenience so that you can use this stack
      // to find the callsite that caused this warning to fire.
      throw new Error(message);
    } catch (x) {}
  };
}

/**
 * Assert that the values match with the type specs.
 * Error messages are memorized and will only be shown once.
 *
 * @param {object} typeSpecs Map of name to a ReactPropType
 * @param {object} values Runtime values that need to be type-checked
 * @param {string} location e.g. "prop", "context", "child context"
 * @param {string} componentName Name of the component for error messages.
 * @param {?Function} getStack Returns the component stack.
 * @private
 */
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
  if (true) {
    for (var typeSpecName in typeSpecs) {
      if (typeSpecs.hasOwnProperty(typeSpecName)) {
        var error;
        // Prop type validation may throw. In case they do, we don't want to
        // fail the render phase where it didn't fail before. So we log it.
        // After these have been cleaned up, we'll let them throw.
        try {
          // This is intentionally an invariant that gets caught. It's the same
          // behavior as without this statement except with a better message.
          if (typeof typeSpecs[typeSpecName] !== 'function') {
            var err = Error(
              (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
              'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
            );
            err.name = 'Invariant Violation';
            throw err;
          }
          error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
        } catch (ex) {
          error = ex;
        }
        if (error && !(error instanceof Error)) {
          printWarning(
            (componentName || 'React class') + ': type specification of ' +
            location + ' `' + typeSpecName + '` is invalid; the type checker ' +
            'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
            'You may have forgotten to pass an argument to the type checker ' +
            'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
            'shape all require an argument).'
          )

        }
        if (error instanceof Error && !(error.message in loggedTypeFailures)) {
          // Only monitor this failure once because there tends to be a lot of the
          // same error.
          loggedTypeFailures[error.message] = true;

          var stack = getStack ? getStack() : '';

          printWarning(
            'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
          );
        }
      }
    }
  }
}

module.exports = checkPropTypes;


/***/ }),

/***/ "./node_modules/prop-types/factoryWithTypeCheckers.js":
/*!************************************************************!*\
  !*** ./node_modules/prop-types/factoryWithTypeCheckers.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/**
 * Copyright (c) 2013-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */



var assign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js");

var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "./node_modules/prop-types/lib/ReactPropTypesSecret.js");
var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "./node_modules/prop-types/checkPropTypes.js");

var printWarning = function() {};

if (true) {
  printWarning = function(text) {
    var message = 'Warning: ' + text;
    if (typeof console !== 'undefined') {
      console.error(message);
    }
    try {
      // --- Welcome to debugging React ---
      // This error was thrown as a convenience so that you can use this stack
      // to find the callsite that caused this warning to fire.
      throw new Error(message);
    } catch (x) {}
  };
}

function emptyFunctionThatReturnsNull() {
  return null;
}

module.exports = function(isValidElement, throwOnDirectAccess) {
  /* global Symbol */
  var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.

  /**
   * Returns the iterator method function contained on the iterable object.
   *
   * Be sure to invoke the function with the iterable as context:
   *
   *     var iteratorFn = getIteratorFn(myIterable);
   *     if (iteratorFn) {
   *       var iterator = iteratorFn.call(myIterable);
   *       ...
   *     }
   *
   * @param {?object} maybeIterable
   * @return {?function}
   */
  function getIteratorFn(maybeIterable) {
    var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
    if (typeof iteratorFn === 'function') {
      return iteratorFn;
    }
  }

  /**
   * Collection of methods that allow declaration and validation of props that are
   * supplied to React components. Example usage:
   *
   *   var Props = require('ReactPropTypes');
   *   var MyArticle = React.createClass({
   *     propTypes: {
   *       // An optional string prop named "description".
   *       description: Props.string,
   *
   *       // A required enum prop named "category".
   *       category: Props.oneOf(['News','Photos']).isRequired,
   *
   *       // A prop named "dialog" that requires an instance of Dialog.
   *       dialog: Props.instanceOf(Dialog).isRequired
   *     },
   *     render: function() { ... }
   *   });
   *
   * A more formal specification of how these methods are used:
   *
   *   type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
   *   decl := ReactPropTypes.{type}(.isRequired)?
   *
   * Each and every declaration produces a function with the same signature. This
   * allows the creation of custom validation functions. For example:
   *
   *  var MyLink = React.createClass({
   *    propTypes: {
   *      // An optional string or URI prop named "href".
   *      href: function(props, propName, componentName) {
   *        var propValue = props[propName];
   *        if (propValue != null && typeof propValue !== 'string' &&
   *            !(propValue instanceof URI)) {
   *          return new Error(
   *            'Expected a string or an URI for ' + propName + ' in ' +
   *            componentName
   *          );
   *        }
   *      }
   *    },
   *    render: function() {...}
   *  });
   *
   * @internal
   */

  var ANONYMOUS = '<<anonymous>>';

  // Important!
  // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
  var ReactPropTypes = {
    array: createPrimitiveTypeChecker('array'),
    bool: createPrimitiveTypeChecker('boolean'),
    func: createPrimitiveTypeChecker('function'),
    number: createPrimitiveTypeChecker('number'),
    object: createPrimitiveTypeChecker('object'),
    string: createPrimitiveTypeChecker('string'),
    symbol: createPrimitiveTypeChecker('symbol'),

    any: createAnyTypeChecker(),
    arrayOf: createArrayOfTypeChecker,
    element: createElementTypeChecker(),
    instanceOf: createInstanceTypeChecker,
    node: createNodeChecker(),
    objectOf: createObjectOfTypeChecker,
    oneOf: createEnumTypeChecker,
    oneOfType: createUnionTypeChecker,
    shape: createShapeTypeChecker,
    exact: createStrictShapeTypeChecker,
  };

  /**
   * inlined Object.is polyfill to avoid requiring consumers ship their own
   * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
   */
  /*eslint-disable no-self-compare*/
  function is(x, y) {
    // SameValue algorithm
    if (x === y) {
      // Steps 1-5, 7-10
      // Steps 6.b-6.e: +0 != -0
      return x !== 0 || 1 / x === 1 / y;
    } else {
      // Step 6.a: NaN == NaN
      return x !== x && y !== y;
    }
  }
  /*eslint-enable no-self-compare*/

  /**
   * We use an Error-like object for backward compatibility as people may call
   * PropTypes directly and inspect their output. However, we don't use real
   * Errors anymore. We don't inspect their stack anyway, and creating them
   * is prohibitively expensive if they are created too often, such as what
   * happens in oneOfType() for any type before the one that matched.
   */
  function PropTypeError(message) {
    this.message = message;
    this.stack = '';
  }
  // Make `instanceof Error` still work for returned errors.
  PropTypeError.prototype = Error.prototype;

  function createChainableTypeChecker(validate) {
    if (true) {
      var manualPropTypeCallCache = {};
      var manualPropTypeWarningCount = 0;
    }
    function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
      componentName = componentName || ANONYMOUS;
      propFullName = propFullName || propName;

      if (secret !== ReactPropTypesSecret) {
        if (throwOnDirectAccess) {
          // New behavior only for users of `prop-types` package
          var err = 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'
          );
          err.name = 'Invariant Violation';
          throw err;
        } else if (true && typeof console !== 'undefined') {
          // Old behavior for people using React.PropTypes
          var cacheKey = componentName + ':' + propName;
          if (
            !manualPropTypeCallCache[cacheKey] &&
            // Avoid spamming the console because they are often not actionable except for lib authors
            manualPropTypeWarningCount < 3
          ) {
            printWarning(
              'You are manually calling a React.PropTypes validation ' +
              'function for the `' + propFullName + '` prop on `' + componentName  + '`. This is deprecated ' +
              'and will throw in the standalone `prop-types` package. ' +
              'You may be seeing this warning due to a third-party PropTypes ' +
              'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
            );
            manualPropTypeCallCache[cacheKey] = true;
            manualPropTypeWarningCount++;
          }
        }
      }
      if (props[propName] == null) {
        if (isRequired) {
          if (props[propName] === null) {
            return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
          }
          return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
        }
        return null;
      } else {
        return validate(props, propName, componentName, location, propFullName);
      }
    }

    var chainedCheckType = checkType.bind(null, false);
    chainedCheckType.isRequired = checkType.bind(null, true);

    return chainedCheckType;
  }

  function createPrimitiveTypeChecker(expectedType) {
    function validate(props, propName, componentName, location, propFullName, secret) {
      var propValue = props[propName];
      var propType = getPropType(propValue);
      if (propType !== expectedType) {
        // `propValue` being instance of, say, date/regexp, pass the 'object'
        // check, but we can offer a more precise error message here rather than
        // 'of type `object`'.
        var preciseType = getPreciseType(propValue);

        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
      }
      return null;
    }
    return createChainableTypeChecker(validate);
  }

  function createAnyTypeChecker() {
    return createChainableTypeChecker(emptyFunctionThatReturnsNull);
  }

  function createArrayOfTypeChecker(typeChecker) {
    function validate(props, propName, componentName, location, propFullName) {
      if (typeof typeChecker !== 'function') {
        return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
      }
      var propValue = props[propName];
      if (!Array.isArray(propValue)) {
        var propType = getPropType(propValue);
        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
      }
      for (var i = 0; i < propValue.length; i++) {
        var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
        if (error instanceof Error) {
          return error;
        }
      }
      return null;
    }
    return createChainableTypeChecker(validate);
  }

  function createElementTypeChecker() {
    function validate(props, propName, componentName, location, propFullName) {
      var propValue = props[propName];
      if (!isValidElement(propValue)) {
        var propType = getPropType(propValue);
        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
      }
      return null;
    }
    return createChainableTypeChecker(validate);
  }

  function createInstanceTypeChecker(expectedClass) {
    function validate(props, propName, componentName, location, propFullName) {
      if (!(props[propName] instanceof expectedClass)) {
        var expectedClassName = expectedClass.name || ANONYMOUS;
        var actualClassName = getClassName(props[propName]);
        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
      }
      return null;
    }
    return createChainableTypeChecker(validate);
  }

  function createEnumTypeChecker(expectedValues) {
    if (!Array.isArray(expectedValues)) {
       true ? printWarning('Invalid argument supplied to oneOf, expected an instance of array.') : undefined;
      return emptyFunctionThatReturnsNull;
    }

    function validate(props, propName, componentName, location, propFullName) {
      var propValue = props[propName];
      for (var i = 0; i < expectedValues.length; i++) {
        if (is(propValue, expectedValues[i])) {
          return null;
        }
      }

      var valuesString = JSON.stringify(expectedValues);
      return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
    }
    return createChainableTypeChecker(validate);
  }

  function createObjectOfTypeChecker(typeChecker) {
    function validate(props, propName, componentName, location, propFullName) {
      if (typeof typeChecker !== 'function') {
        return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
      }
      var propValue = props[propName];
      var propType = getPropType(propValue);
      if (propType !== 'object') {
        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
      }
      for (var key in propValue) {
        if (propValue.hasOwnProperty(key)) {
          var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
          if (error instanceof Error) {
            return error;
          }
        }
      }
      return null;
    }
    return createChainableTypeChecker(validate);
  }

  function createUnionTypeChecker(arrayOfTypeCheckers) {
    if (!Array.isArray(arrayOfTypeCheckers)) {
       true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : undefined;
      return emptyFunctionThatReturnsNull;
    }

    for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
      var checker = arrayOfTypeCheckers[i];
      if (typeof checker !== 'function') {
        printWarning(
          'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
          'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
        );
        return emptyFunctionThatReturnsNull;
      }
    }

    function validate(props, propName, componentName, location, propFullName) {
      for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
        var checker = arrayOfTypeCheckers[i];
        if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
          return null;
        }
      }

      return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
    }
    return createChainableTypeChecker(validate);
  }

  function createNodeChecker() {
    function validate(props, propName, componentName, location, propFullName) {
      if (!isNode(props[propName])) {
        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
      }
      return null;
    }
    return createChainableTypeChecker(validate);
  }

  function createShapeTypeChecker(shapeTypes) {
    function validate(props, propName, componentName, location, propFullName) {
      var propValue = props[propName];
      var propType = getPropType(propValue);
      if (propType !== 'object') {
        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
      }
      for (var key in shapeTypes) {
        var checker = shapeTypes[key];
        if (!checker) {
          continue;
        }
        var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
        if (error) {
          return error;
        }
      }
      return null;
    }
    return createChainableTypeChecker(validate);
  }

  function createStrictShapeTypeChecker(shapeTypes) {
    function validate(props, propName, componentName, location, propFullName) {
      var propValue = props[propName];
      var propType = getPropType(propValue);
      if (propType !== 'object') {
        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
      }
      // We need to check all keys in case some are required but missing from
      // props.
      var allKeys = assign({}, props[propName], shapeTypes);
      for (var key in allKeys) {
        var checker = shapeTypes[key];
        if (!checker) {
          return new PropTypeError(
            'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
            '\nBad object: ' + JSON.stringify(props[propName], null, '  ') +
            '\nValid keys: ' +  JSON.stringify(Object.keys(shapeTypes), null, '  ')
          );
        }
        var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
        if (error) {
          return error;
        }
      }
      return null;
    }

    return createChainableTypeChecker(validate);
  }

  function isNode(propValue) {
    switch (typeof propValue) {
      case 'number':
      case 'string':
      case 'undefined':
        return true;
      case 'boolean':
        return !propValue;
      case 'object':
        if (Array.isArray(propValue)) {
          return propValue.every(isNode);
        }
        if (propValue === null || isValidElement(propValue)) {
          return true;
        }

        var iteratorFn = getIteratorFn(propValue);
        if (iteratorFn) {
          var iterator = iteratorFn.call(propValue);
          var step;
          if (iteratorFn !== propValue.entries) {
            while (!(step = iterator.next()).done) {
              if (!isNode(step.value)) {
                return false;
              }
            }
          } else {
            // Iterator will provide entry [k,v] tuples rather than values.
            while (!(step = iterator.next()).done) {
              var entry = step.value;
              if (entry) {
                if (!isNode(entry[1])) {
                  return false;
                }
              }
            }
          }
        } else {
          return false;
        }

        return true;
      default:
        return false;
    }
  }

  function isSymbol(propType, propValue) {
    // Native Symbol.
    if (propType === 'symbol') {
      return true;
    }

    // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
    if (propValue['@@toStringTag'] === 'Symbol') {
      return true;
    }

    // Fallback for non-spec compliant Symbols which are polyfilled.
    if (typeof Symbol === 'function' && propValue instanceof Symbol) {
      return true;
    }

    return false;
  }

  // Equivalent of `typeof` but with special handling for array and regexp.
  function getPropType(propValue) {
    var propType = typeof propValue;
    if (Array.isArray(propValue)) {
      return 'array';
    }
    if (propValue instanceof RegExp) {
      // Old webkits (at least until Android 4.0) return 'function' rather than
      // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
      // passes PropTypes.object.
      return 'object';
    }
    if (isSymbol(propType, propValue)) {
      return 'symbol';
    }
    return propType;
  }

  // This handles more types than `getPropType`. Only used for error messages.
  // See `createPrimitiveTypeChecker`.
  function getPreciseType(propValue) {
    if (typeof propValue === 'undefined' || propValue === null) {
      return '' + propValue;
    }
    var propType = getPropType(propValue);
    if (propType === 'object') {
      if (propValue instanceof Date) {
        return 'date';
      } else if (propValue instanceof RegExp) {
        return 'regexp';
      }
    }
    return propType;
  }

  // Returns a string that is postfixed to a warning about an invalid type.
  // For example, "undefined" or "of type array"
  function getPostfixForTypeWarning(value) {
    var type = getPreciseType(value);
    switch (type) {
      case 'array':
      case 'object':
        return 'an ' + type;
      case 'boolean':
      case 'date':
      case 'regexp':
        return 'a ' + type;
      default:
        return type;
    }
  }

  // Returns class name of the object, if any.
  function getClassName(propValue) {
    if (!propValue.constructor || !propValue.constructor.name) {
      return ANONYMOUS;
    }
    return propValue.constructor.name;
  }

  ReactPropTypes.checkPropTypes = checkPropTypes;
  ReactPropTypes.PropTypes = ReactPropTypes;

  return ReactPropTypes;
};


/***/ }),

/***/ "./node_modules/prop-types/index.js":
/*!******************************************!*\
  !*** ./node_modules/prop-types/index.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

/**
 * Copyright (c) 2013-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

if (true) {
  var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' &&
    Symbol.for &&
    Symbol.for('react.element')) ||
    0xeac7;

  var isValidElement = function(object) {
    return typeof object === 'object' &&
      object !== null &&
      object.$$typeof === REACT_ELEMENT_TYPE;
  };

  // By explicitly using `prop-types` you are opting into new development behavior.
  // http://fb.me/prop-types-in-prod
  var throwOnDirectAccess = true;
  module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "./node_modules/prop-types/factoryWithTypeCheckers.js")(isValidElement, throwOnDirectAccess);
} else {}


/***/ }),

/***/ "./node_modules/prop-types/lib/ReactPropTypesSecret.js":
/*!*************************************************************!*\
  !*** ./node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/**
 * Copyright (c) 2013-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */



var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';

module.exports = ReactPropTypesSecret;


/***/ }),

/***/ "./node_modules/raf/index.js":
/*!***********************************!*\
  !*** ./node_modules/raf/index.js ***!
  \***********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(global) {var now = __webpack_require__(/*! performance-now */ "./node_modules/raf/node_modules/performance-now/lib/performance-now.js")
  , root = typeof window === 'undefined' ? global : window
  , vendors = ['moz', 'webkit']
  , suffix = 'AnimationFrame'
  , raf = root['request' + suffix]
  , caf = root['cancel' + suffix] || root['cancelRequest' + suffix]

for(var i = 0; !raf && i < vendors.length; i++) {
  raf = root[vendors[i] + 'Request' + suffix]
  caf = root[vendors[i] + 'Cancel' + suffix]
      || root[vendors[i] + 'CancelRequest' + suffix]
}

// Some versions of FF have rAF but not cAF
if(!raf || !caf) {
  var last = 0
    , id = 0
    , queue = []
    , frameDuration = 1000 / 60

  raf = function(callback) {
    if(queue.length === 0) {
      var _now = now()
        , next = Math.max(0, frameDuration - (_now - last))
      last = next + _now
      setTimeout(function() {
        var cp = queue.slice(0)
        // Clear queue here to prevent
        // callbacks from appending listeners
        // to the current frame's queue
        queue.length = 0
        for(var i = 0; i < cp.length; i++) {
          if(!cp[i].cancelled) {
            try{
              cp[i].callback(last)
            } catch(e) {
              setTimeout(function() { throw e }, 0)
            }
          }
        }
      }, Math.round(next))
    }
    queue.push({
      handle: ++id,
      callback: callback,
      cancelled: false
    })
    return id
  }

  caf = function(handle) {
    for(var i = 0; i < queue.length; i++) {
      if(queue[i].handle === handle) {
        queue[i].cancelled = true
      }
    }
  }
}

module.exports = function(fn) {
  // Wrap in a new function to prevent
  // `cancel` potentially being assigned
  // to the native rAF function
  return raf.call(root, fn)
}
module.exports.cancel = function() {
  caf.apply(root, arguments)
}
module.exports.polyfill = function(object) {
  if (!object) {
    object = root;
  }
  object.requestAnimationFrame = raf
  object.cancelAnimationFrame = caf
}

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))

/***/ }),

/***/ "./node_modules/raf/node_modules/performance-now/lib/performance-now.js":
/*!******************************************************************************!*\
  !*** ./node_modules/raf/node_modules/performance-now/lib/performance-now.js ***!
  \******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(process) {// Generated by CoffeeScript 1.12.2
(function() {
  var getNanoSeconds, hrtime, loadTime, moduleLoadTime, nodeLoadTime, upTime;

  if ((typeof performance !== "undefined" && performance !== null) && performance.now) {
    module.exports = function() {
      return performance.now();
    };
  } else if ((typeof process !== "undefined" && process !== null) && process.hrtime) {
    module.exports = function() {
      return (getNanoSeconds() - nodeLoadTime) / 1e6;
    };
    hrtime = process.hrtime;
    getNanoSeconds = function() {
      var hr;
      hr = hrtime();
      return hr[0] * 1e9 + hr[1];
    };
    moduleLoadTime = getNanoSeconds();
    upTime = process.uptime() * 1e9;
    nodeLoadTime = moduleLoadTime - upTime;
  } else if (Date.now) {
    module.exports = function() {
      return Date.now() - loadTime;
    };
    loadTime = Date.now();
  } else {
    module.exports = function() {
      return new Date().getTime() - loadTime;
    };
    loadTime = new Date().getTime();
  }

}).call(this);

//# sourceMappingURL=performance-now.js.map

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../process/browser.js */ "./node_modules/process/browser.js")))

/***/ }),

/***/ "./node_modules/react-bootstrap-switch/dist/js/index.js":
/*!**************************************************************!*\
  !*** ./node_modules/react-bootstrap-switch/dist/js/index.js ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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 = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

var _reactDom2 = _interopRequireDefault(_reactDom);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

var Switch = function (_React$Component) {
  _inherits(Switch, _React$Component);

  function Switch(props) {
    _classCallCheck(this, Switch);

    var _this = _possibleConstructorReturn(this, (Switch.__proto__ || Object.getPrototypeOf(Switch)).call(this, props));

    _this.state = {
      offset: 0,
      skipAnimation: true,
      dragStart: false,
      focus: false,
      value: props.value != undefined ? props.value : props.defaultValue,
      labelWidth: props.labelWidth,
      handleWidth: props.handleWidth
    };
    return _this;
  }

  _createClass(Switch, [{
    key: 'componentDidMount',
    value: function componentDidMount() {
      this._recalculateWidth();
    }
  }, {
    key: 'componentWillReceiveProps',
    value: function componentWillReceiveProps(nextProps) {
      var _this2 = this;

      var newValue = nextProps.value !== undefined ? nextProps.value : this.state.value;
      var oldValue = this.state.value;

      // ensure width is updated
      this.setState({
        labelWidth: nextProps.labelWidth,
        handleWidth: nextProps.handleWidth,
        value: newValue
      }, function () {
        _this2._recalculateWidth(newValue == oldValue);
      });
    }
  }, {
    key: '_getValue',
    value: function _getValue() {
      if (this.props.value !== undefined) return this.props.value;

      return this.state.value;
    }
  }, {
    key: 'value',
    value: function value(val) {
      if (val === undefined) return this.state.value;

      var newVal = val === null ? null : !!val;
      this._setValue(newVal);
      return newVal;
    }
  }, {
    key: '_wrapperClasses',
    value: function _wrapperClasses() {
      var _props = this.props,
          baseClass = _props.baseClass,
          wrapperClass = _props.wrapperClass,
          bsSize = _props.bsSize,
          disabled = _props.disabled,
          readonly = _props.readonly,
          inverse = _props.inverse,
          tristate = _props.tristate,
          animate = _props.animate,
          id = _props.id;
      var _state = this.state,
          skipAnimation = _state.skipAnimation,
          focus = _state.focus,
          dragStart = _state.dragStart;


      var value = this._getValue();

      var classes = [baseClass, wrapperClass];
      classes.push(baseClass + (value ? "-on" : "-off"));

      if (bsSize) classes.push(baseClass + "-" + bsSize);

      if (disabled) classes.push(baseClass + "-disabled");

      if (readonly) classes.push(baseClass + "-readonly");

      if (value === null) classes.push(baseClass + "-indeterminate");

      if (inverse) classes.push(baseClass + "-inverse");

      if (tristate) classes.push(baseClass + "-tristate");

      if (id) classes.push(baseClass + "-" + id);

      if (animate && !dragStart && !skipAnimation) classes.push(baseClass + "-animate");

      if (focus) classes.push(baseClass + "-focused");

      return classes.join(" ");
    }
  }, {
    key: '_recalculateWidth',
    value: function _recalculateWidth(animate) {
      var _this3 = this;

      var onHandle = _reactDom2.default.findDOMNode(this.elmOnHandle);
      var offHandle = _reactDom2.default.findDOMNode(this.elmOffHandle);
      var label = _reactDom2.default.findDOMNode(this.elmLabel);

      // assuming that if the elms need to be resized, the size will be cleared elsewhere first
      var _props2 = this.props,
          handleWidth = _props2.handleWidth,
          labelWidth = _props2.labelWidth;

      var newHandleWidth = handleWidth == "auto" ? Math.max(onHandle.offsetWidth, offHandle.offsetWidth) : handleWidth;

      var newLabelWidth = labelWidth == "auto" ? Math.max(newHandleWidth, label.offsetWidth) : labelWidth;

      return this.setState({
        handleWidth: newHandleWidth,
        labelWidth: newLabelWidth
      }, function () {
        _this3._updateContainerPosition(!animate);
      });
    }
  }, {
    key: '_updateContainerPosition',
    value: function _updateContainerPosition(noAnimate) {
      var _state2 = this.state,
          handleWidth = _state2.handleWidth,
          offset = _state2.offset;
      var inverse = this.props.inverse;

      var value = this._getValue();

      // skip animating if no offset yet
      var skipAnimation = noAnimate || offset == null;

      var newOffset = offset;

      if (handleWidth === 'auto') {
        newOffset = 0;
      } else if (value === null) {
        newOffset = -(handleWidth / 2);
      } else if (value) {
        newOffset = inverse ? -handleWidth : 0;
      } else {
        newOffset = inverse ? 0 : -handleWidth;
      }

      return this.setState({
        skipAnimation: skipAnimation,
        offset: newOffset
      });
    }
  }, {
    key: '_disableUserInput',
    value: function _disableUserInput() {
      var _props3 = this.props,
          disabled = _props3.disabled,
          readonly = _props3.readonly;


      return disabled || readonly;
    }
  }, {
    key: '_handleOnClick',
    value: function _handleOnClick() {
      if (this._disableUserInput()) return;

      this._setValue(this.props.tristate ? this._getValue() == null : false);
      this._setFocus();
    }
  }, {
    key: '_handleOffClick',
    value: function _handleOffClick() {
      if (this._disableUserInput()) return;

      this._setValue(this.props.tristate ? this._getValue() != null : true);
      this._setFocus();
    }
  }, {
    key: '_handleKeyPress',
    value: function _handleKeyPress(e) {
      if (!e.which || this._disableUserInput()) return;

      var inverse = this.props.inverse;


      switch (e.which) {
        case 37:
          return this._setValue(inverse);

        case 39:
          return this._setValue(!inverse);
      }
    }
  }, {
    key: '_handleLabelMouseDown',
    value: function _handleLabelMouseDown(e) {
      if (this.state.dragStart || this._disableUserInput()) return;

      this.setState({
        dragStart: (e.pageX || e.touches[0].pageX) - this.state.offset
      });
      this._setFocus();
    }
  }, {
    key: '_handleLabelMouseMove',
    value: function _handleLabelMouseMove(e) {
      var _state3 = this.state,
          dragStart = _state3.dragStart,
          handleWidth = _state3.handleWidth;


      if (dragStart === undefined || dragStart === null || dragStart === false) return;

      var difference = (e.pageX || e.touches[0].pageX) - dragStart;
      if (difference < -handleWidth || difference > 0) return;

      this.setState({
        skipAnimation: false,
        offset: difference,
        dragged: true
      });
    }
  }, {
    key: '_handleLabelTouchEnd',
    value: function _handleLabelTouchEnd() {
      var _this4 = this;

      var _state4 = this.state,
          dragStart = _state4.dragStart,
          dragged = _state4.dragged,
          offset = _state4.offset,
          handleWidth = _state4.handleWidth;


      if (dragStart === undefined || dragStart === null || dragStart === false) return;

      // If the touch ended without motion, then either a mousedown event should fire, or it was a long press and should do nothing
      if (!dragged || dragged === undefined || dragged === null) {
        this.setState({
          dragStart: false,
          dragged: false
        });
        return;
      }

      var inverse = this.props.inverse;


      var val = offset > -(handleWidth / 2);
      val = inverse ? !val : val;

      this.setState({
        dragStart: false,
        dragged: false,
        value: val
      }, function () {
        _this4._updateContainerPosition();
        _this4._fireStateChange(val);
      });
    }
  }, {
    key: '_handleLabelMouseUp',
    value: function _handleLabelMouseUp() {
      var _this5 = this;

      var _state5 = this.state,
          dragStart = _state5.dragStart,
          dragged = _state5.dragged,
          offset = _state5.offset,
          handleWidth = _state5.handleWidth;

      var value = this._getValue();

      if (dragStart === undefined || dragStart === null || dragStart === false) return;

      var _props4 = this.props,
          inverse = _props4.inverse,
          tristate = _props4.tristate;


      var val = void 0;

      if (dragged) {
        val = offset > -(handleWidth / 2);
        val = inverse ? !val : val;
      } else if (tristate) {
        val = value === null ? true : null;
      } else {
        val = !value;
      }

      this.setState({
        dragStart: false,
        dragged: false,
        value: val
      }, function () {
        _this5._updateContainerPosition();
        _this5._fireStateChange(val);
      });
    }
  }, {
    key: '_setFocus',
    value: function _setFocus() {
      this.setState({
        focus: true
      });
    }
  }, {
    key: '_setBlur',
    value: function _setBlur() {
      this.setState({
        focus: false
      });
    }
  }, {
    key: '_setValue',
    value: function _setValue(val) {
      var _this6 = this;

      var value = this._getValue();
      if (val === value) return;

      var newValue = val === undefined ? !value : val;

      this.setState({
        value: newValue
      }, function () {
        _this6._updateContainerPosition();
        _this6._fireStateChange(newValue);
      });
    }
  }, {
    key: '_fireStateChange',
    value: function _fireStateChange(newValue) {
      var _this7 = this;

      var onChange = this.props.onChange;

      if (typeof onChange != "function") return;

      setTimeout(function () {
        return onChange(_this7, newValue);
      }, 0);
    }
  }, {
    key: 'render',
    value: function render() {
      var _props5 = this.props,
          baseClass = _props5.baseClass,
          inverse = _props5.inverse;
      var _state6 = this.state,
          handleWidth = _state6.handleWidth,
          labelWidth = _state6.labelWidth,
          offset = _state6.offset;


      var onHandle = this._renderOnHandle();
      var offHandle = this._renderOffHandle();

      var containerWidth = labelWidth + handleWidth * 2;
      var wrapperWidth = labelWidth + handleWidth;
      if (containerWidth == wrapperWidth || handleWidth == "auto" || labelWidth == "auto") containerWidth = wrapperWidth = "auto";

      var wrapperParams = {
        className: this._wrapperClasses(),
        style: { width: wrapperWidth },
        tabIndex: "0",
        onKeyDown: this._handleKeyPress.bind(this),
        onFocus: this._setFocus.bind(this),
        onBlur: this._setBlur.bind(this)
      };

      var containerParams = {
        className: baseClass + '-container',
        style: { width: containerWidth, marginLeft: offset }
      };

      return _react2.default.createElement(
        'div',
        wrapperParams,
        _react2.default.createElement(
          'div',
          containerParams,
          inverse ? offHandle : onHandle,
          this._renderLabel(),
          inverse ? onHandle : offHandle
        )
      );
    }
  }, {
    key: '_renderOnHandle',
    value: function _renderOnHandle() {
      var _this8 = this;

      var _props6 = this.props,
          baseClass = _props6.baseClass,
          onColor = _props6.onColor,
          onText = _props6.onText;
      var handleWidth = this.state.handleWidth;


      var params = {
        ref: function ref(e) {
          return _this8.elmOnHandle = e;
        },
        style: { width: handleWidth },
        className: baseClass + '-handle-on ' + baseClass + '-' + onColor,
        onClick: this._handleOnClick.bind(this)
      };

      return _react2.default.createElement(
        'span',
        params,
        onText
      );
    }
  }, {
    key: '_renderOffHandle',
    value: function _renderOffHandle() {
      var _this9 = this;

      var _props7 = this.props,
          baseClass = _props7.baseClass,
          offColor = _props7.offColor,
          offText = _props7.offText;
      var handleWidth = this.state.handleWidth;


      var params = {
        ref: function ref(e) {
          return _this9.elmOffHandle = e;
        },
        style: { width: handleWidth },
        className: baseClass + '-handle-off ' + baseClass + '-' + offColor,
        onClick: this._handleOffClick.bind(this)
      };

      return _react2.default.createElement(
        'span',
        params,
        offText
      );
    }
  }, {
    key: '_renderLabel',
    value: function _renderLabel() {
      var _this10 = this;

      var _props8 = this.props,
          baseClass = _props8.baseClass,
          labelText = _props8.labelText;
      var labelWidth = this.state.labelWidth;


      var params = {
        ref: function ref(e) {
          return _this10.elmLabel = e;
        },
        style: { width: labelWidth },
        className: baseClass + '-label',

        onTouchStart: this._handleLabelMouseDown.bind(this),
        onTouchMove: this._handleLabelMouseMove.bind(this),
        onTouchEnd: this._handleLabelTouchEnd.bind(this),

        onMouseDown: this._handleLabelMouseDown.bind(this),
        onMouseMove: this._handleLabelMouseMove.bind(this),
        onMouseUp: this._handleLabelMouseUp.bind(this),
        onMouseLeave: this._handleLabelMouseUp.bind(this)
      };

      return _react2.default.createElement(
        'span',
        params,
        labelText
      );
    }
  }]);

  return Switch;
}(_react2.default.Component);

exports.default = Switch;


Switch.defaultProps = {
  baseClass: 'bootstrap-switch',
  wrapperClass: 'wrapper',
  bsSize: null,

  handleWidth: 'auto',
  labelWidth: 'auto',

  onColor: 'primary',
  offColor: 'default',

  onText: 'ON',
  offText: 'OFF',
  labelText: ' ',

  inverse: false,
  animate: true,

  disabled: false,
  readonly: false,

  tristate: false,
  defaultValue: true,
  value: undefined
};

Switch.propTypes = {
  baseClass: _propTypes2.default.string,
  wrapperClass: _propTypes2.default.string,
  bsSize: _propTypes2.default.string,

  handleWidth: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),
  labelWidth: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),

  onColor: _propTypes2.default.string,
  offColor: _propTypes2.default.string,

  onText: _propTypes2.default.node,
  offText: _propTypes2.default.node,
  labelText: _propTypes2.default.node,

  inverse: _propTypes2.default.bool,
  animate: _propTypes2.default.bool,

  disabled: _propTypes2.default.bool,
  readonly: _propTypes2.default.bool,

  tristate: _propTypes2.default.bool,
  defaultValue: _propTypes2.default.bool,
  value: _propTypes2.default.bool,
  onChange: _propTypes2.default.func
};

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/AsyncTypeahead.react.js":
/*!****************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/AsyncTypeahead.react.js ***!
  \****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _asyncContainer = __webpack_require__(/*! ./containers/asyncContainer */ "./node_modules/react-bootstrap-typeahead/lib/containers/asyncContainer.js");

var _asyncContainer2 = _interopRequireDefault(_asyncContainer);

var _Typeahead = __webpack_require__(/*! ./Typeahead.react */ "./node_modules/react-bootstrap-typeahead/lib/Typeahead.react.js");

var _Typeahead2 = _interopRequireDefault(_Typeahead);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = (0, _asyncContainer2.default)(_Typeahead2.default);

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/AutosizeInput.react.js":
/*!***************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/AutosizeInput.react.js ***!
  \***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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; };

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 _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

var SIZER_STYLE = {
  height: 0,
  left: 0,
  overflow: 'scroll',
  position: 'absolute',
  top: 0,
  visibility: 'hidden',
  whiteSpace: 'pre'
};

var INPUT_PROPS_BLACKLIST = ['inputClassName', 'inputRef', 'inputStyle'];

var MIN_WIDTH = 1;

var cleanInputProps = function cleanInputProps(inputProps) {
  INPUT_PROPS_BLACKLIST.forEach(function (field) {
    return delete inputProps[field];
  });
  return inputProps;
};

var copyStyles = function copyStyles(styles, node) {
  node.style.fontSize = styles.fontSize;
  node.style.fontFamily = styles.fontFamily;
  node.style.fontWeight = styles.fontWeight;
  node.style.fontStyle = styles.fontStyle;
  node.style.letterSpacing = styles.letterSpacing;
  node.style.textTransform = styles.textTransform;
};

var AutosizeInput = function (_React$Component) {
  _inherits(AutosizeInput, _React$Component);

  function AutosizeInput() {
    var _ref;

    var _temp, _this, _ret;

    _classCallCheck(this, AutosizeInput);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = AutosizeInput.__proto__ || Object.getPrototypeOf(AutosizeInput)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
      inputWidth: MIN_WIDTH
    }, _this._copyInputStyles = function () {
      var inputStyles = _this._input && window.getComputedStyle && window.getComputedStyle(_this._input);

      if (!inputStyles) {
        return;
      }

      copyStyles(inputStyles, _this._sizer);

      if (_this._placeHolderSizer) {
        copyStyles(inputStyles, _this._placeHolderSizer);
      }
    }, _this._updateInputWidth = function () {
      if (!_this._sizer || _this._sizer.scrollWidth === undefined) {
        return;
      }

      _this._copyInputStyles();

      var placeholderWidth = _this._placeHolderSizer && _this._placeHolderSizer.scrollWidth || MIN_WIDTH;

      var inputWidth = Math.max(_this._sizer.scrollWidth, placeholderWidth) + 2;

      if (inputWidth !== _this.state.inputWidth) {
        _this.setState({ inputWidth: inputWidth });
      }
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  _createClass(AutosizeInput, [{
    key: 'componentDidMount',
    value: function componentDidMount() {
      this._updateInputWidth();
    }
  }, {
    key: 'componentDidUpdate',
    value: function componentDidUpdate(prevProps, prevState) {
      this._updateInputWidth();
    }
  }, {
    key: 'render',
    value: function render() {
      var _this2 = this;

      var _props = this.props,
          className = _props.className,
          defaultValue = _props.defaultValue,
          placeholder = _props.placeholder,
          value = _props.value;


      var wrapperStyle = _extends({}, this.props.style);
      if (!wrapperStyle.display) {
        wrapperStyle.display = 'inline-block';
      }

      var inputProps = cleanInputProps(_extends({}, this.props, {
        className: this.props.inputClassName,
        style: _extends({}, this.props.inputStyle, {
          boxSizing: 'content-box',
          width: this.state.inputWidth + 'px'
        })
      }));

      return _react2.default.createElement(
        'div',
        { className: className, style: wrapperStyle },
        _react2.default.createElement('input', _extends({}, inputProps, {
          ref: function ref(el) {
            _this2._input = el;
            if (typeof _this2.props.inputRef === 'function') {
              _this2.props.inputRef(el);
            }
          }
        })),
        _react2.default.createElement(
          'div',
          {
            ref: function ref(el) {
              return _this2._sizer = el;
            },
            style: SIZER_STYLE },
          defaultValue || value || ''
        ),
        placeholder ? _react2.default.createElement(
          'div',
          {
            ref: function ref(el) {
              return _this2._placeHolderSizer = el;
            },
            style: SIZER_STYLE },
          placeholder
        ) : null
      );
    }
  }]);

  return AutosizeInput;
}(_react2.default.Component);

AutosizeInput.propTypes = {
  /**
   * ClassName for the input element.
   */
  inputClassName: _propTypes2.default.string,
  /**
   * Ref callback for the input element.
   */
  inputRef: _propTypes2.default.func,
  /**
   * CSS styles for the input element.
   */
  inputStyle: _propTypes2.default.object
};

exports.default = AutosizeInput;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/ClearButton.react.js":
/*!*************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/ClearButton.react.js ***!
  \*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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; };

var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");

var _classnames2 = _interopRequireDefault(_classnames);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

/**
 * ClearButton
 *
 * http://getbootstrap.com/css/#helper-classes-close
 */
var ClearButton = function ClearButton(_ref) {
  var bsSize = _ref.bsSize,
      className = _ref.className,
      label = _ref.label,
      _onClick = _ref.onClick,
      props = _objectWithoutProperties(_ref, ['bsSize', 'className', 'label', 'onClick']);

  return _react2.default.createElement(
    'button',
    _extends({}, props, {
      'aria-label': label,
      className: (0, _classnames2.default)('close', 'rbt-close', {
        'rbt-close-lg': bsSize === 'large' || bsSize === 'lg'
      }, className),
      onClick: function onClick(e) {
        e.stopPropagation();
        _onClick(e);
      },
      type: 'button' }),
    _react2.default.createElement(
      'span',
      { 'aria-hidden': 'true' },
      '\xD7'
    ),
    _react2.default.createElement(
      'span',
      { className: 'sr-only' },
      label
    )
  );
};

ClearButton.propTypes = {
  bsSize: _propTypes2.default.oneOf(['large', 'lg', 'small', 'sm']),
  label: _propTypes2.default.string,
  onClick: _propTypes2.default.func.isRequired
};

ClearButton.defaultProps = {
  label: 'Clear'
};

exports.default = ClearButton;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/Highlighter.react.js":
/*!*************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/Highlighter.react.js ***!
  \*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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 _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _utils = __webpack_require__(/*! ./utils */ "./node_modules/react-bootstrap-typeahead/lib/utils/index.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

/**
 * Stripped-down version of https://github.com/helior/react-highlighter
 *
 * Results are already filtered by the time the component is used internally so
 * we can safely ignore case and diacritical marks for the purposes of matching.
 */
var Highlighter = function (_React$PureComponent) {
  _inherits(Highlighter, _React$PureComponent);

  function Highlighter() {
    var _ref;

    var _temp, _this, _ret;

    _classCallCheck(this, Highlighter);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Highlighter.__proto__ || Object.getPrototypeOf(Highlighter)).call.apply(_ref, [this].concat(args))), _this), _this._count = 0, _temp), _possibleConstructorReturn(_this, _ret);
  }

  _createClass(Highlighter, [{
    key: 'render',
    value: function render() {
      var children = this.props.search ? this._renderHighlightedChildren() : this.props.children;

      return _react2.default.createElement(
        'span',
        null,
        children
      );
    }
  }, {
    key: '_renderHighlightedChildren',
    value: function _renderHighlightedChildren() {
      var children = [];
      var remaining = this.props.children;

      while (remaining) {
        var bounds = (0, _utils.getMatchBounds)(remaining, this.props.search);

        if (!bounds) {
          this._count++;
          children.push(_react2.default.createElement(
            'span',
            { key: this._count },
            remaining
          ));
          return children;
        }

        // Capture the string that leads up to a match...
        var nonMatch = remaining.slice(0, bounds.start);
        if (nonMatch) {
          this._count++;
          children.push(_react2.default.createElement(
            'span',
            { key: this._count },
            nonMatch
          ));
        }

        // Now, capture the matching string...
        var match = remaining.slice(bounds.start, bounds.end);
        if (match) {
          this._count++;
          children.push(_react2.default.createElement(
            'mark',
            { className: 'rbt-highlight-text', key: this._count },
            match
          ));
        }

        // And if there's anything left over, continue the loop.
        remaining = remaining.slice(bounds.end);
      }

      return children;
    }
  }]);

  return Highlighter;
}(_react2.default.PureComponent);

Highlighter.propTypes = {
  children: _propTypes2.default.string.isRequired,
  search: _propTypes2.default.string.isRequired
};

exports.default = Highlighter;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/Loader.react.js":
/*!********************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/Loader.react.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");

var _classnames2 = _interopRequireDefault(_classnames);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var Loader = function Loader(_ref) {
  var bsSize = _ref.bsSize;
  return _react2.default.createElement('div', {
    className: (0, _classnames2.default)('rbt-loader', {
      'rbt-loader-lg': bsSize === 'large' || bsSize === 'lg',
      'rbt-loader-sm': bsSize === 'small' || bsSize === 'sm'
    })
  });
};

Loader.propTypes = {
  bsSize: _propTypes2.default.oneOf(['large', 'lg', 'small', 'sm'])
};

exports.default = Loader;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/Menu.react.js":
/*!******************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/Menu.react.js ***!
  \******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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; };

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 _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");

var _classnames2 = _interopRequireDefault(_classnames);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _isRequiredForA11y = __webpack_require__(/*! prop-types-extra/lib/isRequiredForA11y */ "./node_modules/prop-types-extra/lib/isRequiredForA11y.js");

var _isRequiredForA11y2 = _interopRequireDefault(_isRequiredForA11y);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _MenuItem = __webpack_require__(/*! ./MenuItem.react */ "./node_modules/react-bootstrap-typeahead/lib/MenuItem.react.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

/**
 * Menu component that handles empty state when passed a set of results.
 */
var Menu = function (_React$Component) {
  _inherits(Menu, _React$Component);

  function Menu() {
    _classCallCheck(this, Menu);

    return _possibleConstructorReturn(this, (Menu.__proto__ || Object.getPrototypeOf(Menu)).apply(this, arguments));
  }

  _createClass(Menu, [{
    key: 'render',
    value: function render() {
      var _props = this.props,
          children = _props.children,
          className = _props.className,
          emptyLabel = _props.emptyLabel,
          id = _props.id,
          innerRef = _props.innerRef,
          maxHeight = _props.maxHeight,
          style = _props.style;


      var contents = _react.Children.count(children) === 0 ? _react2.default.createElement(
        _MenuItem.BaseMenuItem,
        { disabled: true },
        emptyLabel
      ) : children;

      return _react2.default.createElement(
        'ul',
        {
          className: (0, _classnames2.default)('rbt-menu', 'dropdown-menu', 'show', className),
          id: id,
          ref: innerRef,
          role: 'listbox',
          style: _extends({}, style, {
            display: 'block',
            maxHeight: maxHeight,
            overflow: 'auto'
          }) },
        contents
      );
    }
  }]);

  return Menu;
}(_react2.default.Component);

Menu.propTypes = {
  /**
   * Needed for accessibility.
   */
  id: (0, _isRequiredForA11y2.default)(_propTypes2.default.oneOfType([_propTypes2.default.number, _propTypes2.default.string])),
  /**
   * Maximum height of the dropdown menu.
   */
  maxHeight: _propTypes2.default.string
};

Menu.defaultProps = {
  maxHeight: '300px'
};

Menu.Divider = function (props) {
  return _react2.default.createElement('li', { className: 'divider dropdown-divider', role: 'separator' });
};

Menu.Header = function (props) {
  return _react2.default.createElement('li', _extends({}, props, { className: 'dropdown-header' }));
};

exports.default = Menu;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/MenuItem.react.js":
/*!**********************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/MenuItem.react.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.BaseMenuItem = undefined;

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; };

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 _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");

var _classnames2 = _interopRequireDefault(_classnames);

var _noop = __webpack_require__(/*! lodash/noop */ "./node_modules/lodash/noop.js");

var _noop2 = _interopRequireDefault(_noop);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _menuItemContainer = __webpack_require__(/*! ./containers/menuItemContainer */ "./node_modules/react-bootstrap-typeahead/lib/containers/menuItemContainer.js");

var _menuItemContainer2 = _interopRequireDefault(_menuItemContainer);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

var BaseMenuItem = function (_React$Component) {
  _inherits(BaseMenuItem, _React$Component);

  function BaseMenuItem() {
    var _ref;

    var _temp, _this, _ret;

    _classCallCheck(this, BaseMenuItem);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = BaseMenuItem.__proto__ || Object.getPrototypeOf(BaseMenuItem)).call.apply(_ref, [this].concat(args))), _this), _this._handleClick = function (e) {
      var _this$props = _this.props,
          disabled = _this$props.disabled,
          onClick = _this$props.onClick;


      e.preventDefault();
      !disabled && onClick(e);
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  _createClass(BaseMenuItem, [{
    key: 'render',
    value: function render() {
      var _props = this.props,
          active = _props.active,
          children = _props.children,
          className = _props.className,
          disabled = _props.disabled,
          onClick = _props.onClick,
          onMouseDown = _props.onMouseDown,
          props = _objectWithoutProperties(_props, ['active', 'children', 'className', 'disabled', 'onClick', 'onMouseDown']);

      var conditionalClassNames = {
        'active': active,
        'disabled': disabled
      };

      return (
        /* eslint-disable jsx-a11y/anchor-is-valid */
        _react2.default.createElement(
          'li',
          _extends({}, props, {
            className: (0, _classnames2.default)(conditionalClassNames, className) }),
          _react2.default.createElement(
            'a',
            {
              className: (0, _classnames2.default)('dropdown-item', conditionalClassNames),
              href: '#',
              onClick: this._handleClick,
              onMouseDown: onMouseDown },
            children
          )
        )
        /* eslint-enable jsx-a11y/anchor-is-valid */

      );
    }
  }]);

  return BaseMenuItem;
}(_react2.default.Component);

BaseMenuItem.defaultProps = {
  onClick: _noop2.default
};

exports.BaseMenuItem = BaseMenuItem;
exports.default = (0, _menuItemContainer2.default)(BaseMenuItem);

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/Overlay.react.js":
/*!*********************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/Overlay.react.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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; };

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 _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");

var _classnames2 = _interopRequireDefault(_classnames);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _componentOrElement = __webpack_require__(/*! prop-types-extra/lib/componentOrElement */ "./node_modules/prop-types-extra/lib/componentOrElement.js");

var _componentOrElement2 = _interopRequireDefault(_componentOrElement);

var _Portal = __webpack_require__(/*! react-overlays/lib/Portal */ "./node_modules/react-overlays/lib/Portal.js");

var _Portal2 = _interopRequireDefault(_Portal);

var _Popper = __webpack_require__(/*! react-popper/lib/cjs/Popper */ "./node_modules/react-popper/lib/cjs/Popper.js");

var _Popper2 = _interopRequireDefault(_Popper);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

var BODY_CLASS = 'rbt-body-container';

// When appending the overlay to `document.body`, clicking on it will register
// as an "outside" click and immediately close the overlay. This classname tells
// `react-onclickoutside` to ignore the click.
var IGNORE_CLICK_OUTSIDE = 'ignore-react-onclickoutside';

function getModifiers(_ref) {
  var align = _ref.align,
      flip = _ref.flip;

  return {
    computeStyles: {
      enabled: true,
      fn: function fn(data) {
        // Use the following condition instead of `align === 'justify'` since
        // it allows the component to fall back to justifying the menu width
        // even when `align` is undefined.
        if (align !== 'right' && align !== 'left') {
          // Set the popper width to match the target width.
          data.styles.width = data.offsets.reference.width;
        }
        return data;
      }
    },
    flip: {
      enabled: flip
    },
    preventOverflow: {
      escapeWithReference: true
    }
  };
}

function isBody(container) {
  return container === document.body;
}

/**
 * Custom `Overlay` component, since the version in `react-overlays` doesn't
 * work for our needs. Specifically, the `Position` component doesn't provide
 * the customized placement we need.
 */

var Overlay = function (_React$Component) {
  _inherits(Overlay, _React$Component);

  function Overlay() {
    var _ref2;

    var _temp, _this, _ret;

    _classCallCheck(this, Overlay);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref2 = Overlay.__proto__ || Object.getPrototypeOf(Overlay)).call.apply(_ref2, [this].concat(args))), _this), _this._update = function () {
      var _container$classList;

      var _this$props = _this.props,
          className = _this$props.className,
          container = _this$props.container,
          show = _this$props.show;

      // Positioning is only used when body is the container.

      if (!(show && isBody(container))) {
        return;
      }

      // Set a classname on the body for scoping purposes.
      container.classList.add(BODY_CLASS);
      !!className && (_container$classList = container.classList).add.apply(_container$classList, _toConsumableArray(className.split(' ')));
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  _createClass(Overlay, [{
    key: 'componentDidMount',
    value: function componentDidMount() {
      this._update();
    }
  }, {
    key: 'componentWillReceiveProps',
    value: function componentWillReceiveProps(nextProps) {
      var onMenuHide = nextProps.onMenuHide,
          onMenuShow = nextProps.onMenuShow,
          show = nextProps.show;


      if (this.props.show && !show) {
        onMenuHide();
      }

      if (!this.props.show && show) {
        onMenuShow();
      }

      // Remove scoping classes if menu isn't being appended to document body.
      var _props = this.props,
          className = _props.className,
          container = _props.container;

      if (isBody(container) && !isBody(nextProps.container)) {
        var _container$classList2;

        container.classList.remove(BODY_CLASS);
        !!className && (_container$classList2 = container.classList).remove.apply(_container$classList2, _toConsumableArray(className.split(' ')));
      }

      this._update();
    }
  }, {
    key: 'render',
    value: function render() {
      var _props2 = this.props,
          align = _props2.align,
          children = _props2.children,
          container = _props2.container,
          dropup = _props2.dropup,
          referenceElement = _props2.referenceElement,
          show = _props2.show;


      if (!(show && _react.Children.count(children) && referenceElement)) {
        return null;
      }

      var child = _react.Children.only(children);

      var xPlacement = align === 'right' ? 'end' : 'start';
      var yPlacement = dropup ? 'top' : 'bottom';

      return _react2.default.createElement(
        _Portal2.default,
        { container: container },
        _react2.default.createElement(
          _Popper2.default,
          {
            modifiers: getModifiers(this.props),
            placement: yPlacement + '-' + xPlacement,
            referenceElement: referenceElement },
          function (_ref3) {
            var ref = _ref3.ref,
                props = _objectWithoutProperties(_ref3, ['ref']);

            return (0, _react.cloneElement)(child, _extends({}, child.props, props, {
              className: (0, _classnames2.default)(child.props.className, _defineProperty({}, IGNORE_CLICK_OUTSIDE, isBody(container))),
              innerRef: ref
            }));
          }
        )
      );
    }
  }]);

  return Overlay;
}(_react2.default.Component);

Overlay.propTypes = {
  children: _propTypes2.default.element,
  container: _componentOrElement2.default.isRequired,
  onMenuHide: _propTypes2.default.func.isRequired,
  onMenuShow: _propTypes2.default.func.isRequired,
  referenceElement: _componentOrElement2.default,
  show: _propTypes2.default.bool
};

Overlay.defaultProps = {
  show: false
};

exports.default = Overlay;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/Token.react.js":
/*!*******************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/Token.react.js ***!
  \*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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; };

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 _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");

var _classnames2 = _interopRequireDefault(_classnames);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _ClearButton = __webpack_require__(/*! ./ClearButton.react */ "./node_modules/react-bootstrap-typeahead/lib/ClearButton.react.js");

var _ClearButton2 = _interopRequireDefault(_ClearButton);

var _tokenContainer = __webpack_require__(/*! ./containers/tokenContainer */ "./node_modules/react-bootstrap-typeahead/lib/containers/tokenContainer.js");

var _tokenContainer2 = _interopRequireDefault(_tokenContainer);

var _keyCode = __webpack_require__(/*! ./constants/keyCode */ "./node_modules/react-bootstrap-typeahead/lib/constants/keyCode.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

/**
 * Token
 *
 * Individual token component, generally displayed within the TokenizerInput
 * component, but can also be rendered on its own.
 */
var Token = function (_React$Component) {
  _inherits(Token, _React$Component);

  function Token() {
    var _ref;

    var _temp, _this, _ret;

    _classCallCheck(this, Token);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Token.__proto__ || Object.getPrototypeOf(Token)).call.apply(_ref, [this].concat(args))), _this), _this._renderRemoveableToken = function () {
      var _this$props = _this.props,
          active = _this$props.active,
          children = _this$props.children,
          className = _this$props.className,
          onRemove = _this$props.onRemove,
          props = _objectWithoutProperties(_this$props, ['active', 'children', 'className', 'onRemove']);

      return _react2.default.createElement(
        'div',
        _extends({}, props, {
          className: (0, _classnames2.default)('rbt-token', 'rbt-token-removeable', {
            'rbt-token-active': active
          }, className) }),
        children,
        _react2.default.createElement(_ClearButton2.default, {
          className: 'rbt-token-remove-button',
          label: 'Remove',
          onClick: onRemove,
          onKeyDown: _this._handleRemoveButtonKeydown,
          tabIndex: -1
        })
      );
    }, _this._renderToken = function () {
      var _this$props2 = _this.props,
          children = _this$props2.children,
          className = _this$props2.className,
          disabled = _this$props2.disabled,
          href = _this$props2.href;

      var classnames = (0, _classnames2.default)('rbt-token', {
        'rbt-token-disabled': disabled
      }, className);

      if (href) {
        return _react2.default.createElement(
          'a',
          { className: classnames, href: href },
          children
        );
      }

      return _react2.default.createElement(
        'div',
        { className: classnames },
        children
      );
    }, _this._handleRemoveButtonKeydown = function (e) {
      switch (e.keyCode) {
        case _keyCode.RETURN:
          _this.props.onRemove();
          break;
      }
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  _createClass(Token, [{
    key: 'render',
    value: function render() {
      return this.props.onRemove && !this.props.disabled ? this._renderRemoveableToken() : this._renderToken();
    }
  }]);

  return Token;
}(_react2.default.Component);

Token.propTypes = {
  active: _propTypes2.default.bool,
  /**
   * Handler for removing/deleting the token. If not defined, the token will
   * be rendered in a read-only state.
   */
  onRemove: _propTypes2.default.func,
  tabIndex: _propTypes2.default.number
};

Token.defaultProps = {
  active: false,
  tabIndex: 0
};

exports.default = (0, _tokenContainer2.default)(Token);

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/Typeahead.react.js":
/*!***********************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/Typeahead.react.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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; };

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 _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");

var _classnames2 = _interopRequireDefault(_classnames);

var _pick = __webpack_require__(/*! lodash/pick */ "./node_modules/lodash/pick.js");

var _pick2 = _interopRequireDefault(_pick);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

var _ClearButton = __webpack_require__(/*! ./ClearButton.react */ "./node_modules/react-bootstrap-typeahead/lib/ClearButton.react.js");

var _ClearButton2 = _interopRequireDefault(_ClearButton);

var _Loader = __webpack_require__(/*! ./Loader.react */ "./node_modules/react-bootstrap-typeahead/lib/Loader.react.js");

var _Loader2 = _interopRequireDefault(_Loader);

var _Overlay = __webpack_require__(/*! ./Overlay.react */ "./node_modules/react-bootstrap-typeahead/lib/Overlay.react.js");

var _Overlay2 = _interopRequireDefault(_Overlay);

var _TypeaheadInputMulti = __webpack_require__(/*! ./TypeaheadInputMulti.react */ "./node_modules/react-bootstrap-typeahead/lib/TypeaheadInputMulti.react.js");

var _TypeaheadInputMulti2 = _interopRequireDefault(_TypeaheadInputMulti);

var _TypeaheadInputSingle = __webpack_require__(/*! ./TypeaheadInputSingle.react */ "./node_modules/react-bootstrap-typeahead/lib/TypeaheadInputSingle.react.js");

var _TypeaheadInputSingle2 = _interopRequireDefault(_TypeaheadInputSingle);

var _TypeaheadMenu = __webpack_require__(/*! ./TypeaheadMenu.react */ "./node_modules/react-bootstrap-typeahead/lib/TypeaheadMenu.react.js");

var _TypeaheadMenu2 = _interopRequireDefault(_TypeaheadMenu);

var _typeaheadContainer = __webpack_require__(/*! ./containers/typeaheadContainer */ "./node_modules/react-bootstrap-typeahead/lib/containers/typeaheadContainer.js");

var _typeaheadContainer2 = _interopRequireDefault(_typeaheadContainer);

var _utils = __webpack_require__(/*! ./utils/ */ "./node_modules/react-bootstrap-typeahead/lib/utils/index.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

var Typeahead = function (_React$Component) {
  _inherits(Typeahead, _React$Component);

  function Typeahead() {
    var _ref;

    var _temp, _this, _ret;

    _classCallCheck(this, Typeahead);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Typeahead.__proto__ || Object.getPrototypeOf(Typeahead)).call.apply(_ref, [this].concat(args))), _this), _this._renderInput = function (inputProps) {
      var Input = inputProps.multiple ? _TypeaheadInputMulti2.default : _TypeaheadInputSingle2.default;

      return _react2.default.createElement(Input, inputProps);
    }, _this._renderAux = function () {
      var _this$props = _this.props,
          bsSize = _this$props.bsSize,
          clearButton = _this$props.clearButton,
          disabled = _this$props.disabled,
          isLoading = _this$props.isLoading,
          onClear = _this$props.onClear,
          selected = _this$props.selected;


      var content = void 0;

      if (isLoading) {
        content = _react2.default.createElement(_Loader2.default, { bsSize: bsSize });
      } else if (clearButton && !disabled && selected.length) {
        content = _react2.default.createElement(_ClearButton2.default, {
          bsSize: bsSize,
          onClick: onClear,
          onFocus: function onFocus(e) {
            // Prevent the main input from auto-focusing again.
            e.stopPropagation();
          },
          onMouseDown: _utils.preventInputBlur
        });
      }

      return content ? _react2.default.createElement(
        'div',
        {
          className: (0, _classnames2.default)('rbt-aux', {
            'rbt-aux-lg': bsSize === 'large' || bsSize === 'lg'
          }) },
        content
      ) : null;
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  _createClass(Typeahead, [{
    key: 'componentWillReceiveProps',
    value: function componentWillReceiveProps(nextProps) {
      var allowNew = nextProps.allowNew,
          onInitialItemChange = nextProps.onInitialItemChange,
          results = nextProps.results;

      // Clear the initial item when there are no results.

      if (!(allowNew || results.length)) {
        onInitialItemChange(null);
      }
    }
  }, {
    key: 'render',
    value: function render() {
      var _this2 = this;

      var _props = this.props,
          bodyContainer = _props.bodyContainer,
          children = _props.children,
          className = _props.className,
          isMenuShown = _props.isMenuShown,
          menuId = _props.menuId,
          renderMenu = _props.renderMenu,
          results = _props.results;


      var inputProps = (0, _pick2.default)(this.props, ['activeIndex', 'activeItem', 'bsSize', 'disabled', 'initialItem', 'inputProps', 'inputRef', 'isInvalid', 'isMenuShown', 'isValid', 'labelKey', 'menuId', 'multiple', 'onAdd', 'onBlur', 'onChange', 'onFocus', 'onKeyDown', 'onRemove', 'placeholder', 'renderToken', 'selected', 'selectHintOnEnter', 'text']);

      var overlayProps = (0, _pick2.default)(this.props, ['align', 'className', 'dropup', 'flip', 'onMenuHide', 'onMenuShow']);

      var menuProps = (0, _pick2.default)(this.props, ['emptyLabel', 'labelKey', 'maxHeight', 'newSelectionPrefix', 'renderMenuItemChildren', 'text']);

      var auxContent = this._renderAux();

      return _react2.default.createElement(
        'div',
        {
          className: (0, _classnames2.default)('rbt', 'clearfix', 'open', {
            'has-aux': !!auxContent
          }, className),
          style: { position: 'relative' },
          tabIndex: -1 },
        this._renderInput(_extends({}, inputProps, {
          // Use `findDOMNode` here since it's easier and less fragile than
          // forwarding refs down to the input's container.
          // TODO: Consider using `forwardRef` when React 16.3 usage is higher.
          ref: function ref(node) {
            return _this2._inputContainer = (0, _reactDom.findDOMNode)(node);
          }
        })),
        typeof children === 'function' ? children(this.props) : children,
        auxContent,
        _react2.default.createElement(
          _Overlay2.default,
          _extends({}, overlayProps, {
            container: bodyContainer ? document.body : this,
            referenceElement: this._inputContainer,
            show: isMenuShown }),
          renderMenu(results, _extends({}, menuProps, { id: menuId }))
        ),
        _react2.default.createElement(
          'div',
          {
            'aria-atomic': true,
            'aria-live': 'polite',
            className: 'sr-only rbt-sr-status',
            role: 'status' },
          (0, _utils.getAccessibilityStatus)(this.props)
        )
      );
    }
  }]);

  return Typeahead;
}(_react2.default.Component);

Typeahead.propTypes = {
  renderMenu: _propTypes2.default.func
};

Typeahead.defaultProps = {
  renderMenu: function renderMenu(results, menuProps) {
    return _react2.default.createElement(_TypeaheadMenu2.default, _extends({}, menuProps, { options: results }));
  }
};

exports.default = (0, _typeaheadContainer2.default)(Typeahead);

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/TypeaheadInputMulti.react.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/TypeaheadInputMulti.react.js ***!
  \*********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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; };

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 _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");

var _classnames2 = _interopRequireDefault(_classnames);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _AutosizeInput = __webpack_require__(/*! ./AutosizeInput.react */ "./node_modules/react-bootstrap-typeahead/lib/AutosizeInput.react.js");

var _AutosizeInput2 = _interopRequireDefault(_AutosizeInput);

var _Token = __webpack_require__(/*! ./Token.react */ "./node_modules/react-bootstrap-typeahead/lib/Token.react.js");

var _Token2 = _interopRequireDefault(_Token);

var _utils = __webpack_require__(/*! ./utils/ */ "./node_modules/react-bootstrap-typeahead/lib/utils/index.js");

var _hintContainer = __webpack_require__(/*! ./containers/hintContainer */ "./node_modules/react-bootstrap-typeahead/lib/containers/hintContainer.js");

var _hintContainer2 = _interopRequireDefault(_hintContainer);

var _inputContainer = __webpack_require__(/*! ./containers/inputContainer */ "./node_modules/react-bootstrap-typeahead/lib/containers/inputContainer.js");

var _inputContainer2 = _interopRequireDefault(_inputContainer);

var _keyCode = __webpack_require__(/*! ./constants/keyCode */ "./node_modules/react-bootstrap-typeahead/lib/constants/keyCode.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

var HintedAutosizeInput = (0, _hintContainer2.default)(_AutosizeInput2.default);

var TypeaheadInputMulti = function (_React$Component) {
  _inherits(TypeaheadInputMulti, _React$Component);

  function TypeaheadInputMulti() {
    var _ref;

    var _temp, _this, _ret;

    _classCallCheck(this, TypeaheadInputMulti);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = TypeaheadInputMulti.__proto__ || Object.getPrototypeOf(TypeaheadInputMulti)).call.apply(_ref, [this].concat(args))), _this), _this._renderToken = function (option, idx) {
      var _this$props = _this.props,
          _onRemove = _this$props.onRemove,
          renderToken = _this$props.renderToken;

      var props = _extends({}, _this.props, {
        onRemove: function onRemove() {
          return _onRemove(option);
        }
      });

      return renderToken(option, props, idx);
    }, _this._handleContainerClickOrFocus = function (e) {
      // Don't focus the input if it's disabled.
      if (_this.props.disabled) {
        e.target.blur();
        return;
      }

      // Move cursor to the end if the user clicks outside the actual input.
      var inputNode = _this._input;
      if (e.target !== inputNode) {
        inputNode.selectionStart = inputNode.value.length;
      }

      inputNode.focus();
    }, _this._handleKeyDown = function (e) {
      var _this$props2 = _this.props,
          onKeyDown = _this$props2.onKeyDown,
          selected = _this$props2.selected,
          value = _this$props2.value;


      switch (e.keyCode) {
        case _keyCode.BACKSPACE:
          if (e.target === _this._input && selected.length && !value) {
            // If the input is selected and there is no text, focus the last
            // token when the user hits backspace.
            var children = _this._wrapper.children;
            var lastToken = children[children.length - 2];
            lastToken && lastToken.focus();
          }
          break;
      }

      onKeyDown(e);
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  _createClass(TypeaheadInputMulti, [{
    key: 'render',
    value: function render() {
      var _this2 = this;

      var _props = this.props,
          className = _props.className,
          inputClassName = _props.inputClassName,
          labelKey = _props.labelKey,
          onRemove = _props.onRemove,
          renderToken = _props.renderToken,
          selected = _props.selected,
          props = _objectWithoutProperties(_props, ['className', 'inputClassName', 'labelKey', 'onRemove', 'renderToken', 'selected']);

      return (
        /* eslint-disable jsx-a11y/no-static-element-interactions */
        /* eslint-disable jsx-a11y/click-events-have-key-events */
        _react2.default.createElement(
          'div',
          {
            className: (0, _classnames2.default)('form-control', 'rbt-input-multi', className),
            disabled: props.disabled,
            onClick: this._handleContainerClickOrFocus,
            onFocus: this._handleContainerClickOrFocus,
            tabIndex: -1 },
          _react2.default.createElement(
            'div',
            { className: 'rbt-input-wrapper', ref: function ref(el) {
                return _this2._wrapper = el;
              } },
            selected.map(this._renderToken),
            _react2.default.createElement(HintedAutosizeInput, _extends({}, props, {
              inputClassName: (0, _classnames2.default)('rbt-input-main', inputClassName),
              inputRef: function inputRef(input) {
                _this2._input = input;
                _this2.props.inputRef(input);
              },
              inputStyle: {
                backgroundColor: 'transparent',
                border: 0,
                boxShadow: 'none',
                cursor: 'inherit',
                outline: 'none',
                padding: 0
              },
              onKeyDown: this._handleKeyDown,
              style: {
                position: 'relative',
                zIndex: 1
              }
            }))
          )
        )
        /* eslint-enable jsx-a11y/no-static-element-interactions */
        /* eslint-enable jsx-a11y/click-events-have-key-events */

      );
    }

    /**
     * Forward click or focus events on the container element to the input.
     */

  }]);

  return TypeaheadInputMulti;
}(_react2.default.Component);

TypeaheadInputMulti.propTypes = {
  /**
   * Provides a hook for customized rendering of tokens when multiple
   * selections are enabled.
   */
  renderToken: _propTypes2.default.func
};

TypeaheadInputMulti.defaultProps = {
  renderToken: function renderToken(option, props, idx) {
    return _react2.default.createElement(
      _Token2.default,
      {
        disabled: props.disabled,
        key: idx,
        onRemove: props.onRemove,
        tabIndex: props.tabIndex },
      (0, _utils.getOptionLabel)(option, props.labelKey)
    );
  }
};

exports.default = (0, _inputContainer2.default)(TypeaheadInputMulti);

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/TypeaheadInputSingle.react.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/TypeaheadInputSingle.react.js ***!
  \**********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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; };

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 _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");

var _classnames2 = _interopRequireDefault(_classnames);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _hintContainer = __webpack_require__(/*! ./containers/hintContainer */ "./node_modules/react-bootstrap-typeahead/lib/containers/hintContainer.js");

var _hintContainer2 = _interopRequireDefault(_hintContainer);

var _inputContainer = __webpack_require__(/*! ./containers/inputContainer */ "./node_modules/react-bootstrap-typeahead/lib/containers/inputContainer.js");

var _inputContainer2 = _interopRequireDefault(_inputContainer);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

var TypeaheadInputSingle = function (_React$Component) {
  _inherits(TypeaheadInputSingle, _React$Component);

  function TypeaheadInputSingle() {
    _classCallCheck(this, TypeaheadInputSingle);

    return _possibleConstructorReturn(this, (TypeaheadInputSingle.__proto__ || Object.getPrototypeOf(TypeaheadInputSingle)).apply(this, arguments));
  }

  _createClass(TypeaheadInputSingle, [{
    key: 'render',
    value: function render() {
      var _props = this.props,
          className = _props.className,
          inputRef = _props.inputRef,
          props = _objectWithoutProperties(_props, ['className', 'inputRef']);

      return _react2.default.createElement('input', _extends({}, props, {
        className: (0, _classnames2.default)('rbt-input-main', 'form-control', className),
        ref: inputRef,
        type: 'text'
      }));
    }
  }]);

  return TypeaheadInputSingle;
}(_react2.default.Component);

exports.default = (0, _inputContainer2.default)((0, _hintContainer2.default)(TypeaheadInputSingle));

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/TypeaheadMenu.react.js":
/*!***************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/TypeaheadMenu.react.js ***!
  \***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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; };

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 = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _Highlighter = __webpack_require__(/*! ./Highlighter.react */ "./node_modules/react-bootstrap-typeahead/lib/Highlighter.react.js");

var _Highlighter2 = _interopRequireDefault(_Highlighter);

var _Menu = __webpack_require__(/*! ./Menu.react */ "./node_modules/react-bootstrap-typeahead/lib/Menu.react.js");

var _Menu2 = _interopRequireDefault(_Menu);

var _MenuItem = __webpack_require__(/*! ./MenuItem.react */ "./node_modules/react-bootstrap-typeahead/lib/MenuItem.react.js");

var _MenuItem2 = _interopRequireDefault(_MenuItem);

var _utils = __webpack_require__(/*! ./utils/ */ "./node_modules/react-bootstrap-typeahead/lib/utils/index.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

var TypeaheadMenu = function (_React$Component) {
  _inherits(TypeaheadMenu, _React$Component);

  function TypeaheadMenu() {
    var _ref;

    var _temp, _this, _ret;

    _classCallCheck(this, TypeaheadMenu);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = TypeaheadMenu.__proto__ || Object.getPrototypeOf(TypeaheadMenu)).call.apply(_ref, [this].concat(args))), _this), _this._renderMenuItem = function (option, idx) {
      var _this$props = _this.props,
          labelKey = _this$props.labelKey,
          newSelectionPrefix = _this$props.newSelectionPrefix,
          renderMenuItemChildren = _this$props.renderMenuItemChildren,
          text = _this$props.text;


      var label = (0, _utils.getOptionLabel)(option, labelKey);

      var menuItemProps = {
        disabled: option.disabled,
        key: idx,
        label: label,
        option: option,
        position: idx
      };

      if (option.customOption) {
        return _react2.default.createElement(
          _MenuItem2.default,
          _extends({}, menuItemProps, {
            className: 'rbt-menu-custom-option',
            label: newSelectionPrefix + label }),
          newSelectionPrefix,
          _react2.default.createElement(
            _Highlighter2.default,
            { search: text },
            label
          )
        );
      }

      if (option.paginationOption) {
        return [_react2.default.createElement(_Menu2.default.Divider, { key: 'pagination-item-divider' }), _react2.default.createElement(
          _MenuItem2.default,
          _extends({}, menuItemProps, {
            className: 'rbt-menu-pagination-option',
            key: 'pagination-item' }),
          label
        )];
      }

      return _react2.default.createElement(
        _MenuItem2.default,
        menuItemProps,
        renderMenuItemChildren(option, _this.props, idx)
      );
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  _createClass(TypeaheadMenu, [{
    key: 'render',
    value: function render() {
      var _props = this.props,
          labelKey = _props.labelKey,
          newSelectionPrefix = _props.newSelectionPrefix,
          options = _props.options,
          renderMenuItemChildren = _props.renderMenuItemChildren,
          text = _props.text,
          menuProps = _objectWithoutProperties(_props, ['labelKey', 'newSelectionPrefix', 'options', 'renderMenuItemChildren', 'text']);

      return _react2.default.createElement(
        _Menu2.default,
        menuProps,
        options.map(this._renderMenuItem)
      );
    }
  }]);

  return TypeaheadMenu;
}(_react2.default.Component);

TypeaheadMenu.propTypes = {
  /**
   * Provides the ability to specify a prefix before the user-entered text to
   * indicate that the selection will be new. No-op unless `allowNew={true}`.
   */
  newSelectionPrefix: _propTypes2.default.string,
  /**
   * Provides a hook for customized rendering of menu item contents.
   */
  renderMenuItemChildren: _propTypes2.default.func
};

TypeaheadMenu.defaultProps = {
  newSelectionPrefix: 'New selection: ',
  renderMenuItemChildren: function renderMenuItemChildren(option, props, idx) {
    return _react2.default.createElement(
      _Highlighter2.default,
      { search: props.text },
      (0, _utils.getOptionLabel)(option, props.labelKey)
    );
  }
};

exports.default = TypeaheadMenu;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/constants/defaultLabelKey.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/constants/defaultLabelKey.js ***!
  \*********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
var DEFAULT_LABELKEY = exports.DEFAULT_LABELKEY = 'label';

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/constants/keyCode.js":
/*!*************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/constants/keyCode.js ***!
  \*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


/* eslint-disable sort-keys */

/**
 * KeyCode
 *
 * Map of common (non-printable) keycodes for the `keydown` and `keyup` events.
 * Note that `keypress` handles things differently and may not return the same
 * values.
 */
module.exports = {
  BACKSPACE: 8,
  TAB: 9,
  RETURN: 13,
  ESC: 27,
  SPACE: 32,
  LEFT: 37,
  UP: 38,
  RIGHT: 39,
  DOWN: 40
};

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/containers/asyncContainer.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/containers/asyncContainer.js ***!
  \*********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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; };

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 _debounce = __webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js");

var _debounce2 = _interopRequireDefault(_debounce);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _utils = __webpack_require__(/*! ../utils/ */ "./node_modules/react-bootstrap-typeahead/lib/utils/index.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

var DEFAULT_DELAY_MS = 200;

/**
 * HoC that encapsulates common behavior and functionality for doing
 * asynchronous searches, including:
 *
 *  - Debouncing user input
 *  - Query caching (optional)
 *  - Search prompt and empty results behaviors
 */
var asyncContainer = function asyncContainer(Typeahead) {
  var WrappedTypeahead = function (_React$Component) {
    _inherits(WrappedTypeahead, _React$Component);

    function WrappedTypeahead() {
      var _ref;

      var _temp, _this, _ret;

      _classCallCheck(this, WrappedTypeahead);

      for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = WrappedTypeahead.__proto__ || Object.getPrototypeOf(WrappedTypeahead)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
        query: ''
      }, _this._getEmptyLabel = function () {
        var _this$props = _this.props,
            emptyLabel = _this$props.emptyLabel,
            isLoading = _this$props.isLoading,
            promptText = _this$props.promptText,
            searchText = _this$props.searchText,
            useCache = _this$props.useCache;
        var query = _this.state.query;


        if (!query.length) {
          return promptText;
        }

        if (isLoading || useCache && !_this._cache[query]) {
          return searchText;
        }

        return emptyLabel;
      }, _this._handleInputChange = function (query, e) {
        _this.props.onInputChange && _this.props.onInputChange(query, e);
        _this._handleSearchDebounced(query);
      }, _this._handleSearch = function (query) {
        var _this$props2 = _this.props,
            minLength = _this$props2.minLength,
            onSearch = _this$props2.onSearch,
            useCache = _this$props2.useCache;


        _this.setState({ query: query });

        if (!query || minLength && query.length < minLength) {
          return;
        }

        // Use cached results, if available.
        if (useCache && _this._cache[query]) {
          return;
        }

        // Perform the search.
        onSearch(query);
      }, _temp), _possibleConstructorReturn(_this, _ret);
    }

    _createClass(WrappedTypeahead, [{
      key: 'componentWillMount',
      value: function componentWillMount() {
        this._cache = {};
        this._handleSearchDebounced = (0, _debounce2.default)(this._handleSearch, this.props.delay);
      }
    }, {
      key: 'componentWillReceiveProps',
      value: function componentWillReceiveProps(nextProps) {
        var options = nextProps.options,
            useCache = nextProps.useCache;


        if (!this.props.isLoading) {
          return;
        }

        if (useCache) {
          this._cache[this.state.query] = options;
        }
      }
    }, {
      key: 'componentWillUnmount',
      value: function componentWillUnmount() {
        this._cache = {};
        this._handleSearchDebounced.cancel();
      }
    }, {
      key: 'render',
      value: function render() {
        var _this2 = this;

        var _props = this.props,
            options = _props.options,
            useCache = _props.useCache,
            props = _objectWithoutProperties(_props, ['options', 'useCache']);

        var cachedQuery = this._cache[this.state.query];
        var emptyLabel = this._getEmptyLabel();

        // Short-circuit the creation of custom selections while the user is in
        // the process of searching. The logic for whether or not to display the
        // custom menu option is basically the same as whether we display the
        // empty label, so use that as a proxy.
        var allowNew = props.allowNew && emptyLabel === props.emptyLabel;
        // Unless allowNew is a function,
        // in which case it is up to the function to decide
        if (typeof props.allowNew === 'function') {
          allowNew = props.allowNew;
        }

        return _react2.default.createElement(Typeahead, _extends({}, props, {
          allowNew: allowNew,
          emptyLabel: emptyLabel,
          onInputChange: this._handleInputChange,
          options: useCache && cachedQuery ? cachedQuery : options,
          ref: function ref(instance) {
            return _this2._instance = instance;
          }
        }));
      }

      /**
       * Make the component instance available.
       */

    }, {
      key: 'getInstance',
      value: function getInstance() {
        return this._instance.getInstance();
      }
    }]);

    return WrappedTypeahead;
  }(_react2.default.Component);

  WrappedTypeahead.displayName = 'AsyncContainer(' + (0, _utils.getDisplayName)(Typeahead) + ')';

  WrappedTypeahead.propTypes = {
    /**
     * Delay, in milliseconds, before performing search.
     */
    delay: _propTypes2.default.number,
    /**
     * Whether or not a request is currently pending. Necessary for the
     * container to know when new results are available.
     */
    isLoading: _propTypes2.default.bool.isRequired,
    /**
     * Callback to perform when the search is executed.
     */
    onSearch: _propTypes2.default.func.isRequired,
    /**
     * Options to be passed to the typeahead. Will typically be the query
     * results, but can also be initial default options.
     */
    options: _propTypes2.default.array,
    /**
     * Message displayed in the menu when there is no user input.
     */
    promptText: _propTypes2.default.node,
    /**
     * Message displayed in the menu while the request is pending.
     */
    searchText: _propTypes2.default.node,
    /**
     * Whether or not the component should cache query results.
     */
    useCache: _propTypes2.default.bool
  };

  WrappedTypeahead.defaultProps = {
    delay: DEFAULT_DELAY_MS,
    minLength: 2,
    options: [],
    promptText: 'Type to search...',
    searchText: 'Searching...',
    useCache: true
  };

  return WrappedTypeahead;
};

exports.default = asyncContainer;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/containers/highlightOnlyResultContainer.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/containers/highlightOnlyResultContainer.js ***!
  \***********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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; };

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 _head = __webpack_require__(/*! lodash/head */ "./node_modules/lodash/head.js");

var _head2 = _interopRequireDefault(_head);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _keyCode = __webpack_require__(/*! ../constants/keyCode */ "./node_modules/react-bootstrap-typeahead/lib/constants/keyCode.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

function highlightOnlyResultContainer(Typeahead) {
  var WrappedTypeahead = function (_React$Component) {
    _inherits(WrappedTypeahead, _React$Component);

    function WrappedTypeahead() {
      var _ref;

      var _temp, _this, _ret;

      _classCallCheck(this, WrappedTypeahead);

      for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = WrappedTypeahead.__proto__ || Object.getPrototypeOf(WrappedTypeahead)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
        isOnlyResult: false
      }, _this._handleKeyDown = function (e) {
        var _this$props = _this.props,
            initialItem = _this$props.initialItem,
            onKeyDown = _this$props.onKeyDown,
            onAdd = _this$props.onAdd;


        switch (e.keyCode) {
          case _keyCode.RETURN:
            if (_this.state.isOnlyResult) {
              onAdd(initialItem);
            }
            break;
        }

        onKeyDown(e);
      }, _temp), _possibleConstructorReturn(_this, _ret);
    }

    _createClass(WrappedTypeahead, [{
      key: 'componentWillReceiveProps',
      value: function componentWillReceiveProps(nextProps) {
        var allowNew = nextProps.allowNew,
            highlightOnlyResult = nextProps.highlightOnlyResult,
            results = nextProps.results;


        if (!highlightOnlyResult || allowNew) {
          return;
        }

        if (results.length !== this.props.results.length) {
          this.setState({
            isOnlyResult: results.length === 1 && !(0, _head2.default)(results).disabled
          });
        }
      }
    }, {
      key: 'getChildContext',
      value: function getChildContext() {
        return {
          isOnlyResult: this.state.isOnlyResult
        };
      }
    }, {
      key: 'render',
      value: function render() {
        return _react2.default.createElement(Typeahead, _extends({}, this.props, {
          onKeyDown: this._handleKeyDown
        }));
      }
    }]);

    return WrappedTypeahead;
  }(_react2.default.Component);

  WrappedTypeahead.childContextTypes = {
    isOnlyResult: _propTypes2.default.bool.isRequired
  };

  return WrappedTypeahead;
}

exports.default = highlightOnlyResultContainer;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/containers/hintContainer.js":
/*!********************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/containers/hintContainer.js ***!
  \********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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; };

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 _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _utils = __webpack_require__(/*! ../utils/ */ "./node_modules/react-bootstrap-typeahead/lib/utils/index.js");

var _keyCode = __webpack_require__(/*! ../constants/keyCode */ "./node_modules/react-bootstrap-typeahead/lib/constants/keyCode.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

// IE doesn't seem to get the composite computed value (eg: 'padding',
// 'borderStyle', etc.), so generate these from the individual values.
function interpolateStyle(styles, attr) {
  var subattr = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';

  // Title-case the sub-attribute.
  if (subattr) {
    subattr = subattr.replace(subattr[0], subattr[0].toUpperCase());
  }

  return ['Top', 'Right', 'Bottom', 'Left'].map(function (dir) {
    return styles[attr + dir + subattr];
  }).join(' ');
}

function copyStyles(inputNode, hintNode) {
  var inputStyle = window.getComputedStyle(inputNode);

  hintNode.style.borderStyle = interpolateStyle(inputStyle, 'border', 'style');
  hintNode.style.borderWidth = interpolateStyle(inputStyle, 'border', 'width');
  hintNode.style.fontSize = inputStyle.fontSize;
  hintNode.style.lineHeight = inputStyle.lineHeight;
  hintNode.style.margin = interpolateStyle(inputStyle, 'margin');
  hintNode.style.padding = interpolateStyle(inputStyle, 'padding');
}

function hintContainer(Input) {
  var HintedInput = function (_React$Component) {
    _inherits(HintedInput, _React$Component);

    function HintedInput() {
      var _ref;

      var _temp, _this, _ret;

      _classCallCheck(this, HintedInput);

      for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = HintedInput.__proto__ || Object.getPrototypeOf(HintedInput)).call.apply(_ref, [this].concat(args))), _this), _this._handleKeyDown = function (e) {
        var _this$context = _this.context,
            hintText = _this$context.hintText,
            initialItem = _this$context.initialItem,
            onAdd = _this$context.onAdd,
            selectHintOnEnter = _this$context.selectHintOnEnter;
        var _this$props = _this.props,
            onKeyDown = _this$props.onKeyDown,
            value = _this$props.value;


        if (hintText && (e.keyCode === _keyCode.RETURN && selectHintOnEnter || e.keyCode === _keyCode.RIGHT && e.target.selectionStart === value.length || e.keyCode === _keyCode.TAB)) {
          e.preventDefault(); // Prevent input from blurring on TAB.
          onAdd(initialItem);
        }

        onKeyDown(e);
      }, _temp), _possibleConstructorReturn(_this, _ret);
    }

    _createClass(HintedInput, [{
      key: 'componentDidMount',
      value: function componentDidMount() {
        copyStyles(this._input, this._hint);
      }
    }, {
      key: 'componentDidUpdate',
      value: function componentDidUpdate() {
        copyStyles(this._input, this._hint);
      }
    }, {
      key: 'render',
      value: function render() {
        var _this2 = this;

        return _react2.default.createElement(
          'div',
          {
            className: 'rbt-input-hint-container',
            style: { position: 'relative' } },
          _react2.default.createElement(Input, _extends({}, this.props, {
            inputRef: function inputRef(input) {
              _this2._input = input;
              _this2.props.inputRef(input);
            },
            onKeyDown: this._handleKeyDown
          })),
          _react2.default.createElement('input', {
            'aria-hidden': true,
            className: 'rbt-input-hint',
            readOnly: true,
            ref: function ref(hint) {
              return _this2._hint = hint;
            },
            style: {
              backgroundColor: 'transparent',
              borderColor: 'transparent',
              boxShadow: 'none',
              color: 'rgba(0, 0, 0, 0.35)',
              left: 0,
              pointerEvents: 'none',
              position: 'absolute',
              top: 0
            },
            tabIndex: -1,
            value: this.context.hintText
          })
        );
      }
    }]);

    return HintedInput;
  }(_react2.default.Component);

  HintedInput.displayName = 'HintContainer(' + (0, _utils.getDisplayName)(Input) + ')';

  HintedInput.contextTypes = {
    hintText: _propTypes2.default.string.isRequired,
    initialItem: _propTypes2.default.oneOfType([_propTypes2.default.object.isRequired, _propTypes2.default.string.isRequired]),
    onAdd: _propTypes2.default.func.isRequired,
    selectHintOnEnter: _propTypes2.default.bool.isRequired
  };

  return HintedInput;
}

exports.default = hintContainer;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/containers/inputContainer.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/containers/inputContainer.js ***!
  \*********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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; };

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 _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");

var _classnames2 = _interopRequireDefault(_classnames);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _utils = __webpack_require__(/*! ../utils/ */ "./node_modules/react-bootstrap-typeahead/lib/utils/index.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

function inputContainer(Input) {
  var WrappedInput = function (_React$Component) {
    _inherits(WrappedInput, _React$Component);

    function WrappedInput() {
      var _ref;

      var _temp, _this, _ret;

      _classCallCheck(this, WrappedInput);

      for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = WrappedInput.__proto__ || Object.getPrototypeOf(WrappedInput)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
        isFocused: false
      }, _this._handleBlur = function (e) {
        e.persist();
        _this.setState({ isFocused: false }, function () {
          return _this.props.onBlur(e);
        });
      }, _this._handleFocus = function (e) {
        e.persist();
        _this.setState({ isFocused: true }, function () {
          return _this.props.onFocus(e);
        });
      }, _temp), _possibleConstructorReturn(_this, _ret);
    }

    _createClass(WrappedInput, [{
      key: 'getChildContext',
      value: function getChildContext() {
        var _props = this.props,
            initialItem = _props.initialItem,
            onAdd = _props.onAdd,
            selectHintOnEnter = _props.selectHintOnEnter;


        return {
          hintText: (0, _utils.getHintText)(this.props),
          initialItem: initialItem,
          onAdd: onAdd,
          selectHintOnEnter: selectHintOnEnter
        };
      }
    }, {
      key: 'render',
      value: function render() {
        var _cx;

        var _props2 = this.props,
            activeIndex = _props2.activeIndex,
            bsSize = _props2.bsSize,
            disabled = _props2.disabled,
            inputRef = _props2.inputRef,
            isInvalid = _props2.isInvalid,
            isMenuShown = _props2.isMenuShown,
            isValid = _props2.isValid,
            labelKey = _props2.labelKey,
            menuId = _props2.menuId,
            multiple = _props2.multiple,
            onChange = _props2.onChange,
            onKeyDown = _props2.onKeyDown,
            onRemove = _props2.onRemove,
            placeholder = _props2.placeholder,
            renderToken = _props2.renderToken,
            selected = _props2.selected;

        // Add a11y-related props.

        var inputProps = _extends({}, this.props.inputProps, {
          'aria-activedescendant': activeIndex >= 0 ? (0, _utils.getMenuItemId)(activeIndex) : '',
          'aria-autocomplete': multiple ? 'list' : 'both',
          'aria-expanded': isMenuShown,
          'aria-haspopup': 'listbox',
          'aria-owns': menuId,
          autoComplete: this.props.inputProps.autoComplete || 'nope',
          disabled: disabled,
          inputRef: inputRef,
          onBlur: this._handleBlur,
          onChange: onChange,
          // Re-open the menu, eg: if it's closed via ESC.
          onClick: this._handleFocus,
          onFocus: this._handleFocus,
          onKeyDown: onKeyDown,
          placeholder: selected.length ? null : placeholder,
          // Comboboxes are single-select by definition:
          // https://www.w3.org/TR/wai-aria-practices-1.1/#combobox
          role: 'combobox',
          value: (0, _utils.getInputText)(this.props)
        });

        var className = inputProps.className || '';

        if (multiple) {
          inputProps = _extends({}, inputProps, {
            inputClassName: className,
            labelKey: labelKey,
            onRemove: onRemove,
            renderToken: renderToken,
            role: '',
            selected: selected
          });
        }

        return _react2.default.createElement(Input, _extends({}, inputProps, {
          className: (0, _classnames2.default)('rbt-input', (_cx = {}, _defineProperty(_cx, className, !multiple), _defineProperty(_cx, 'focus', this.state.isFocused), _defineProperty(_cx, 'input-lg form-control-lg', bsSize === 'large' || bsSize === 'lg'), _defineProperty(_cx, 'input-sm form-control-sm', bsSize === 'small' || bsSize === 'sm'), _defineProperty(_cx, 'is-invalid', isInvalid), _defineProperty(_cx, 'is-valid', isValid), _cx))
        }));
      }
    }]);

    return WrappedInput;
  }(_react2.default.Component);

  WrappedInput.displayName = 'InputContainer(' + (0, _utils.getDisplayName)(Input) + ')';

  WrappedInput.childContextTypes = {
    hintText: _propTypes2.default.string.isRequired,
    initialItem: _propTypes2.default.oneOfType([_propTypes2.default.object.isRequired, _propTypes2.default.string.isRequired]),
    onAdd: _propTypes2.default.func.isRequired,
    selectHintOnEnter: _propTypes2.default.bool.isRequired
  };

  return WrappedInput;
}

exports.default = inputContainer;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/containers/menuItemContainer.js":
/*!************************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/containers/menuItemContainer.js ***!
  \************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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; };

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 = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

var _utils = __webpack_require__(/*! ../utils/ */ "./node_modules/react-bootstrap-typeahead/lib/utils/index.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

var menuItemContainer = function menuItemContainer(Component) {
  var WrappedMenuItem = function (_React$Component) {
    _inherits(WrappedMenuItem, _React$Component);

    function WrappedMenuItem() {
      var _ref;

      var _temp, _this, _ret;

      _classCallCheck(this, WrappedMenuItem);

      for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = WrappedMenuItem.__proto__ || Object.getPrototypeOf(WrappedMenuItem)).call.apply(_ref, [this].concat(args))), _this), _this._handleClick = function (e) {
        var _this$props = _this.props,
            option = _this$props.option,
            onClick = _this$props.onClick;


        _this.context.onMenuItemClick(option, e);
        onClick && onClick(e);
      }, _this._updateInitialItem = function (props) {
        var option = props.option,
            position = props.position;

        if (position === 0) {
          _this.context.onInitialItemChange(option);
        }
      }, _temp), _possibleConstructorReturn(_this, _ret);
    }

    _createClass(WrappedMenuItem, [{
      key: 'componentWillMount',
      value: function componentWillMount() {
        this._updateInitialItem(this.props);
      }
    }, {
      key: 'componentWillReceiveProps',
      value: function componentWillReceiveProps(nextProps, nextContext) {
        var currentlyActive = this.context.activeIndex === this.props.position;
        var option = nextProps.option,
            position = nextProps.position;
        var activeIndex = nextContext.activeIndex,
            onActiveItemChange = nextContext.onActiveItemChange;


        if (position == null) {
          return;
        }

        // The item will become active.
        if (activeIndex === position) {
          // Ensures that if the menu items exceed the bounds of the menu, the
          // menu will scroll up or down as the user hits the arrow keys.
          (0, _utils.scrollIntoViewIfNeeded)((0, _reactDom.findDOMNode)(this));

          // Fire the change handler when the menu item becomes active.
          !currentlyActive && onActiveItemChange(option);
        }

        this._updateInitialItem(nextProps);
      }
    }, {
      key: 'render',
      value: function render() {
        var _context = this.context,
            activeIndex = _context.activeIndex,
            isOnlyResult = _context.isOnlyResult;

        var _props = this.props,
            label = _props.label,
            option = _props.option,
            position = _props.position,
            props = _objectWithoutProperties(_props, ['label', 'option', 'position']);

        var active = isOnlyResult || activeIndex === position;

        return _react2.default.createElement(Component, _extends({}, props, {
          active: active,
          'aria-label': label,
          'aria-selected': active,
          id: (0, _utils.getMenuItemId)(position),
          onClick: this._handleClick,
          onMouseDown: _utils.preventInputBlur,
          role: 'option'
        }));
      }
    }]);

    return WrappedMenuItem;
  }(_react2.default.Component);

  WrappedMenuItem.displayName = 'MenuItemContainer(' + (0, _utils.getDisplayName)(Component) + ')';

  WrappedMenuItem.propTypes = {
    option: _propTypes2.default.oneOfType([_propTypes2.default.object, _propTypes2.default.string]).isRequired,
    position: _propTypes2.default.number
  };

  WrappedMenuItem.contextTypes = {
    activeIndex: _propTypes2.default.number.isRequired,
    isOnlyResult: _propTypes2.default.bool.isRequired,
    onActiveItemChange: _propTypes2.default.func.isRequired,
    onInitialItemChange: _propTypes2.default.func.isRequired,
    onMenuItemClick: _propTypes2.default.func.isRequired
  };

  return WrappedMenuItem;
};

exports.default = menuItemContainer;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/containers/tokenContainer.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/containers/tokenContainer.js ***!
  \*********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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; };

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 = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _reactOnclickoutside = __webpack_require__(/*! react-onclickoutside */ "./node_modules/react-onclickoutside/dist/react-onclickoutside.es.js");

var _reactOnclickoutside2 = _interopRequireDefault(_reactOnclickoutside);

var _utils = __webpack_require__(/*! ../utils/ */ "./node_modules/react-bootstrap-typeahead/lib/utils/index.js");

var _keyCode = __webpack_require__(/*! ../constants/keyCode */ "./node_modules/react-bootstrap-typeahead/lib/constants/keyCode.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

/**
 * Higher-order component that encapsulates Token behaviors, allowing them to
 * be easily re-used.
 */
var tokenContainer = function tokenContainer(Component) {
  var WrappedComponent = function (_React$Component) {
    _inherits(WrappedComponent, _React$Component);

    function WrappedComponent() {
      var _ref;

      var _temp, _this, _ret;

      _classCallCheck(this, WrappedComponent);

      for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = WrappedComponent.__proto__ || Object.getPrototypeOf(WrappedComponent)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
        active: false
      }, _this._handleBlur = function (e) {
        _this.setState({ active: false });
      }, _this._handleKeyDown = function (e) {
        switch (e.keyCode) {
          case _keyCode.BACKSPACE:
            if (_this.state.active) {
              // Prevent backspace keypress from triggering the browser "back"
              // action.
              e.preventDefault();
              _this.props.onRemove();
            }
            break;
        }
      }, _this.handleClickOutside = function (e) {
        _this._handleBlur();
      }, _this._handleActive = function (e) {
        e.stopPropagation();
        _this.setState({ active: true });
      }, _temp), _possibleConstructorReturn(_this, _ret);
    }

    _createClass(WrappedComponent, [{
      key: 'render',
      value: function render() {
        var _props = this.props,
            disableOnClickOutside = _props.disableOnClickOutside,
            enableOnClickOutside = _props.enableOnClickOutside,
            eventTypes = _props.eventTypes,
            outsideClickIgnoreClass = _props.outsideClickIgnoreClass,
            preventDefault = _props.preventDefault,
            stopPropagation = _props.stopPropagation,
            tokenProps = _objectWithoutProperties(_props, ['disableOnClickOutside', 'enableOnClickOutside', 'eventTypes', 'outsideClickIgnoreClass', 'preventDefault', 'stopPropagation']);

        return _react2.default.createElement(Component, _extends({}, tokenProps, this.state, {
          onBlur: this._handleBlur,
          onClick: this._handleActive,
          onFocus: this._handleActive,
          onKeyDown: this._handleKeyDown
        }));
      }

      /**
       * From `onClickOutside` HOC.
       */

    }]);

    return WrappedComponent;
  }(_react2.default.Component);

  WrappedComponent.displayName = 'TokenContainer(' + (0, _utils.getDisplayName)(Component) + ')';

  return (0, _reactOnclickoutside2.default)(WrappedComponent);
};

exports.default = tokenContainer;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/containers/typeaheadContainer.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/containers/typeaheadContainer.js ***!
  \*************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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; };

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 _flowRight = __webpack_require__(/*! lodash/flowRight */ "./node_modules/lodash/flowRight.js");

var _flowRight2 = _interopRequireDefault(_flowRight);

var _head = __webpack_require__(/*! lodash/head */ "./node_modules/lodash/head.js");

var _head2 = _interopRequireDefault(_head);

var _isEqual = __webpack_require__(/*! lodash/isEqual */ "./node_modules/lodash/isEqual.js");

var _isEqual2 = _interopRequireDefault(_isEqual);

var _noop = __webpack_require__(/*! lodash/noop */ "./node_modules/lodash/noop.js");

var _noop2 = _interopRequireDefault(_noop);

var _uniqueId = __webpack_require__(/*! lodash/uniqueId */ "./node_modules/lodash/uniqueId.js");

var _uniqueId2 = _interopRequireDefault(_uniqueId);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _reactOnclickoutside = __webpack_require__(/*! react-onclickoutside */ "./node_modules/react-onclickoutside/dist/react-onclickoutside.es.js");

var _reactOnclickoutside2 = _interopRequireDefault(_reactOnclickoutside);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _highlightOnlyResultContainer = __webpack_require__(/*! ./highlightOnlyResultContainer */ "./node_modules/react-bootstrap-typeahead/lib/containers/highlightOnlyResultContainer.js");

var _highlightOnlyResultContainer2 = _interopRequireDefault(_highlightOnlyResultContainer);

var _propTypes3 = __webpack_require__(/*! ../propTypes/ */ "./node_modules/react-bootstrap-typeahead/lib/propTypes/index.js");

var _utils = __webpack_require__(/*! ../utils/ */ "./node_modules/react-bootstrap-typeahead/lib/utils/index.js");

var _defaultLabelKey = __webpack_require__(/*! ../constants/defaultLabelKey */ "./node_modules/react-bootstrap-typeahead/lib/constants/defaultLabelKey.js");

var _keyCode = __webpack_require__(/*! ../constants/keyCode */ "./node_modules/react-bootstrap-typeahead/lib/constants/keyCode.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

function genId() {
  var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';

  return prefix + Math.random().toString(36).substr(2, 12);
}

function getInitialState(props) {
  var defaultInputValue = props.defaultInputValue,
      defaultSelected = props.defaultSelected,
      maxResults = props.maxResults,
      multiple = props.multiple;


  var selected = props.selected ? props.selected.slice() : defaultSelected.slice();

  var text = defaultInputValue;

  if (!multiple && selected.length) {
    // Set the text if an initial selection is passed in.
    text = (0, _utils.getOptionLabel)((0, _head2.default)(selected), props.labelKey);

    if (selected.length > 1) {
      // Limit to 1 selection in single-select mode.
      selected = selected.slice(0, 1);
    }
  }

  return {
    activeIndex: -1,
    activeItem: null,
    initialItem: null,
    selected: selected,
    showMenu: false,
    shownResults: maxResults,
    text: text
  };
}

function typeaheadContainer(Typeahead) {
  // Nested HOCs to encapsulate behaviors. In order from outer to inner.
  Typeahead = (0, _flowRight2.default)(_highlightOnlyResultContainer2.default)(Typeahead);

  var WrappedTypeahead = function (_React$Component) {
    _inherits(WrappedTypeahead, _React$Component);

    function WrappedTypeahead(props) {
      _classCallCheck(this, WrappedTypeahead);

      var _this = _possibleConstructorReturn(this, (WrappedTypeahead.__proto__ || Object.getPrototypeOf(WrappedTypeahead)).call(this, props));

      _this.blur = function () {
        _this.getInput().blur();
        _this._hideMenu();
      };

      _this.clear = function () {
        _this.setState(_extends({}, getInitialState(_this.props), {
          selected: [],
          text: ''
        }));
      };

      _this.focus = function () {
        _this.getInput().focus();
      };

      _this.getInput = function () {
        return _this._input;
      };

      _this._handleActiveIndexChange = function (activeIndex) {
        var newState = { activeIndex: activeIndex };

        if (activeIndex === -1) {
          // Reset the active item if there is no active index.
          newState.activeItem = null;
        }

        _this.setState(newState);
      };

      _this._handleActiveItemChange = function (activeItem) {
        _this.setState({ activeItem: activeItem });
      };

      _this._handleClear = function () {
        _this.clear();
        _this._updateSelected([]);
      };

      _this._handleFocus = function (e) {
        _this.setState({ showMenu: true }, function () {
          return _this.props.onFocus(e);
        });
      };

      _this._handleInitialItemChange = function (initialItem) {
        var labelKey = _this.props.labelKey;

        var currentItem = _this.state.initialItem;

        // Don't update the initial item if it hasn't changed. For custom items,
        // compare the `labelKey` values since a unique id is generated each time,
        // causing the comparison to always return false otherwise.
        if ((0, _isEqual2.default)(initialItem, currentItem) || currentItem && initialItem && initialItem.customOption && initialItem[labelKey] === currentItem[labelKey]) {
          return;
        }

        _this.setState({ initialItem: initialItem });
      };

      _this._handleInputChange = function (e) {
        e.persist();

        var text = e.target.value;

        var _getInitialState = getInitialState(_this.props),
            activeIndex = _getInitialState.activeIndex,
            activeItem = _getInitialState.activeItem,
            shownResults = _getInitialState.shownResults;

        var _this$props = _this.props,
            multiple = _this$props.multiple,
            onInputChange = _this$props.onInputChange;


        _this.setState({
          activeIndex: activeIndex,
          activeItem: activeItem,
          showMenu: true,
          shownResults: shownResults,
          text: text
        }, function () {
          return onInputChange(text, e);
        });

        // Clear any selections if text is entered in single-select mode.
        if (_this.state.selected.length && !multiple) {
          _this._updateSelected([]);
        }
      };

      _this._handleKeyDown = function (e, results, isMenuShown) {
        var activeItem = _this.state.activeItem;


        switch (e.keyCode) {
          case _keyCode.UP:
          case _keyCode.DOWN:
            if (!isMenuShown) {
              _this._showMenu();
              break;
            }

            var activeIndex = _this.state.activeIndex;

            // Prevents input cursor from going to the beginning when pressing up.

            e.preventDefault();

            // Increment or decrement index based on user keystroke.
            activeIndex += e.keyCode === _keyCode.UP ? -1 : 1;

            // Skip over any disabled options.
            while (results[activeIndex] && results[activeIndex].disabled) {
              activeIndex += e.keyCode === _keyCode.UP ? -1 : 1;
            }

            // If we've reached the end, go back to the beginning or vice-versa.
            if (activeIndex === results.length) {
              activeIndex = -1;
            } else if (activeIndex === -2) {
              activeIndex = results.length - 1;
            }

            _this._handleActiveIndexChange(activeIndex);
            break;
          case _keyCode.ESC:
            isMenuShown && _this._hideMenu();
            break;
          case _keyCode.RETURN:
            if (!isMenuShown) {
              break;
            }

            // Prevent form submission while menu is open.
            e.preventDefault();
            activeItem && _this._handleMenuItemSelect(activeItem, e);
            break;
          case _keyCode.RIGHT:
          case _keyCode.TAB:
            if (!isMenuShown) {
              break;
            }

            if (activeItem && !activeItem.paginationOption) {
              // Prevent blurring when selecting the active item.
              e.keyCode === _keyCode.TAB && e.preventDefault();
              _this._handleSelectionAdd(activeItem);
              break;
            }

            if (e.keyCode === _keyCode.TAB) {
              _this._hideMenu();
            }
            break;
        }

        _this.props.onKeyDown(e);
      };

      _this._handleMenuItemSelect = function (option, e) {
        if (option.paginationOption) {
          _this._handlePaginate(e);
        } else {
          _this._handleSelectionAdd(option);
        }
      };

      _this._handlePaginate = function (e) {
        e.persist();
        var _this$props2 = _this.props,
            maxResults = _this$props2.maxResults,
            onPaginate = _this$props2.onPaginate;

        var shownResults = _this.state.shownResults + maxResults;

        _this.setState({ shownResults: shownResults }, function () {
          return onPaginate(e, shownResults);
        });
      };

      _this._handleSelectionAdd = function (selection) {
        var _this$props3 = _this.props,
            multiple = _this$props3.multiple,
            labelKey = _this$props3.labelKey;


        var selected = void 0;
        var text = void 0;

        if (multiple) {
          // If multiple selections are allowed, add the new selection to the
          // existing selections.
          selected = _this.state.selected.concat(selection);
          text = '';
        } else {
          // If only a single selection is allowed, replace the existing selection
          // with the new one.
          selected = [selection];
          text = (0, _utils.getOptionLabel)(selection, labelKey);
        }

        _this._hideMenu();
        _this.setState({
          initialItem: selection,
          text: text
        });

        // Text must be updated before the selection to fix #211.
        // TODO: Find a more robust way of solving the issue.
        _this._updateSelected(selected);
      };

      _this._handleSelectionRemove = function (selection) {
        var selected = _this.state.selected.filter(function (option) {
          return !(0, _isEqual2.default)(option, selection);
        });

        // Make sure the input stays focused after the item is removed.
        _this.focus();
        _this._hideMenu();
        _this._updateSelected(selected);
      };

      _this.handleClickOutside = function (e) {
        _this.state.showMenu && _this._hideMenu();
      };

      _this._hideMenu = function () {
        var _getInitialState2 = getInitialState(_this.props),
            activeIndex = _getInitialState2.activeIndex,
            activeItem = _getInitialState2.activeItem,
            showMenu = _getInitialState2.showMenu,
            shownResults = _getInitialState2.shownResults;

        _this.setState({
          activeIndex: activeIndex,
          activeItem: activeItem,
          showMenu: showMenu,
          shownResults: shownResults
        });
      };

      _this._showMenu = function () {
        _this.setState({ showMenu: true });
      };

      _this._updateSelected = function (selected) {
        _this.setState({ selected: selected }, function () {
          return _this.props.onChange(selected);
        });
      };

      _this.state = getInitialState(props);
      return _this;
    }

    _createClass(WrappedTypeahead, [{
      key: 'getChildContext',
      value: function getChildContext() {
        return {
          activeIndex: this.state.activeIndex,
          onActiveItemChange: this._handleActiveItemChange,
          onInitialItemChange: this._handleInitialItemChange,
          onMenuItemClick: this._handleMenuItemSelect
        };
      }
    }, {
      key: 'componentWillMount',
      value: function componentWillMount() {
        // Generate random id here since doing it in defaultProps will generate
        // the same id for every instance.
        this._menuId = genId('rbt-menu-');
      }
    }, {
      key: 'componentDidMount',
      value: function componentDidMount() {
        this.props.autoFocus && this.focus();
      }
    }, {
      key: 'componentWillReceiveProps',
      value: function componentWillReceiveProps(nextProps) {
        var labelKey = nextProps.labelKey,
            multiple = nextProps.multiple,
            selected = nextProps.selected;

        // If new selections are passed via props, treat as a controlled input.

        if (selected && !(0, _isEqual2.default)(selected, this.state.selected)) {
          this.setState({ selected: selected });

          if (multiple) {
            return;
          }

          this.setState({
            text: selected.length ? (0, _utils.getOptionLabel)((0, _head2.default)(selected), labelKey) : ''
          });
        }

        // Truncate selections when in single-select mode.
        var newSelected = selected || this.state.selected;
        if (!multiple && newSelected.length > 1) {
          newSelected = newSelected.slice(0, 1);
          this.setState({
            selected: newSelected,
            text: (0, _utils.getOptionLabel)((0, _head2.default)(newSelected), labelKey)
          });
          return;
        }

        if (multiple !== this.props.multiple) {
          this.setState({ text: '' });
        }
      }
    }, {
      key: 'render',
      value: function render() {
        var _this2 = this;

        var mergedPropsAndState = _extends({}, this.props, this.state);

        var filterBy = mergedPropsAndState.filterBy,
            labelKey = mergedPropsAndState.labelKey,
            minLength = mergedPropsAndState.minLength,
            options = mergedPropsAndState.options,
            paginate = mergedPropsAndState.paginate,
            paginationText = mergedPropsAndState.paginationText,
            shownResults = mergedPropsAndState.shownResults,
            text = mergedPropsAndState.text;


        var results = [];
        if (text.length >= minLength) {
          var cb = Array.isArray(filterBy) ? _utils.defaultFilterBy : filterBy;
          results = options.filter(function (option) {
            return cb(option, mergedPropsAndState);
          });
        }

        // This must come before results are truncated.
        var shouldPaginate = paginate && results.length > shownResults;

        // Truncate results if necessary.
        results = (0, _utils.getTruncatedOptions)(results, shownResults);

        // Add the custom option if necessary.
        if ((0, _utils.addCustomOption)(results, mergedPropsAndState)) {
          results.push(_defineProperty({
            customOption: true,
            id: (0, _uniqueId2.default)('new-id-')
          }, (0, _utils.getStringLabelKey)(labelKey), text));
        }

        // Add the pagination item if necessary.
        if (shouldPaginate) {
          var _results$push2;

          results.push((_results$push2 = {}, _defineProperty(_results$push2, (0, _utils.getStringLabelKey)(labelKey), paginationText), _defineProperty(_results$push2, 'paginationOption', true), _results$push2));
        }

        // This must come after checks for the custom option and pagination.
        var isMenuShown = (0, _utils.isShown)(results, mergedPropsAndState);

        return _react2.default.createElement(Typeahead, _extends({}, mergedPropsAndState, {
          inputRef: function inputRef(input) {
            return _this2._input = input;
          },
          isMenuShown: isMenuShown,
          menuId: this.props.menuId || this._menuId,
          onAdd: this._handleSelectionAdd,
          onChange: this._handleInputChange,
          onClear: this._handleClear,
          onFocus: this._handleFocus,
          onInitialItemChange: this._handleInitialItemChange,
          onKeyDown: function onKeyDown(e) {
            return _this2._handleKeyDown(e, results, isMenuShown);
          },
          onRemove: this._handleSelectionRemove,
          results: results
        }));
      }

      /**
       * From `onClickOutside` HOC.
       */

    }]);

    return WrappedTypeahead;
  }(_react2.default.Component);

  WrappedTypeahead.displayName = 'TypeaheadContainer(' + (0, _utils.getDisplayName)(Typeahead) + ')';

  WrappedTypeahead.propTypes = {
    /**
     * For localized accessibility: Should return a string indicating the number
     * of results for screen readers. Receives the current results.
     */
    a11yNumResults: _propTypes2.default.func,
    /**
     * For localized accessibility: Should return a string indicating the number
     * of selections for screen readers. Receives the current selections.
     */
    a11yNumSelected: _propTypes2.default.func,
    /**
     * Specify menu alignment. The default value is `justify`, which makes the
     * menu as wide as the input and truncates long values. Specifying `left`
     * or `right` will align the menu to that side and the width will be
     * determined by the length of menu item values.
     */
    align: _propTypes2.default.oneOf(['justify', 'left', 'right']),
    /**
     * Allows the creation of new selections on the fly. Note that any new items
     * will be added to the list of selections, but not the list of original
     * options unless handled as such by `Typeahead`'s parent.
     *
     * If a function is specified, it will be used to determine whether a custom
     * option should be included. The return value should be true or false.
     */
    allowNew: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.func]),
    /**
     * Autofocus the input when the component initially mounts.
     */
    autoFocus: _propTypes2.default.bool,
    /**
     * Whether to render the menu inline or attach to `document.body`.
     */
    bodyContainer: _propTypes2.default.bool,
    /**
     * Whether or not filtering should be case-sensitive.
     */
    caseSensitive: (0, _propTypes3.checkPropType)(_propTypes2.default.bool, _propTypes3.caseSensitiveType),
    /**
     * Displays a button to clear the input when there are selections.
     */
    clearButton: _propTypes2.default.bool,
    /**
     * The initial value displayed in the text input.
     */
    defaultInputValue: (0, _propTypes3.checkPropType)(_propTypes2.default.string, _propTypes3.defaultInputValueType),
    /**
     * Specify any pre-selected options. Use only if you want the component to
     * be uncontrolled.
     */
    defaultSelected: _propTypes3.optionType,
    /**
     * Whether to disable the component.
     */
    disabled: _propTypes2.default.bool,
    /**
     * Specify whether the menu should appear above the input.
     */
    dropup: _propTypes2.default.bool,
    /**
     * Message to display in the menu if there are no valid results.
     */
    emptyLabel: _propTypes2.default.node,
    /**
     * Either an array of fields in `option` to search, or a custom filtering
     * callback.
     */
    filterBy: _propTypes2.default.oneOfType([_propTypes2.default.arrayOf(_propTypes2.default.string.isRequired), _propTypes2.default.func]),
    /**
     * Whether or not to automatically adjust the position of the menu when it
     * reaches the viewport boundaries.
     */
    flip: _propTypes2.default.bool,
    /**
     * Highlights the menu item if there is only one result and allows selecting
     * that item by hitting enter. Does not work with `allowNew`.
     */
    highlightOnlyResult: (0, _propTypes3.checkPropType)(_propTypes2.default.bool, _propTypes3.highlightOnlyResultType),
    /**
     * Whether the filter should ignore accents and other diacritical marks.
     */
    ignoreDiacritics: (0, _propTypes3.checkPropType)(_propTypes2.default.bool, _propTypes3.ignoreDiacriticsType),
    /**
     * Props to be applied directly to the input. `onBlur`, `onChange`,
     * `onFocus`, and `onKeyDown` are ignored.
     */
    inputProps: (0, _propTypes3.checkPropType)(_propTypes2.default.object, _propTypes3.inputPropsType),
    /**
     * Bootstrap 4 only. Adds the `is-invalid` classname to the `form-control`.
     */
    isInvalid: _propTypes2.default.bool,
    /**
     * Indicate whether an asynchronous data fetch is happening.
     */
    isLoading: _propTypes2.default.bool,
    /**
     * Bootstrap 4 only. Adds the `is-valid` classname to the `form-control`.
     */
    isValid: _propTypes2.default.bool,
    /**
     * Specify the option key to use for display or a function returning the
     * display string. By default, the selector will use the `label` key.
     */
    labelKey: (0, _propTypes3.checkPropType)(_propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.func]), _propTypes3.labelKeyType),
    /**
     * Maximum number of results to display by default. Mostly done for
     * performance reasons so as not to render too many DOM nodes in the case of
     * large data sets.
     */
    maxResults: _propTypes2.default.number,
    /**
     * Id applied to the top-level menu element. Required for accessibility.
     */
    menuId: _propTypes2.default.oneOfType([_propTypes2.default.number, _propTypes2.default.string]),
    /**
     * Number of input characters that must be entered before showing results.
     */
    minLength: _propTypes2.default.number,
    /**
     * Whether or not multiple selections are allowed.
     */
    multiple: _propTypes2.default.bool,
    /**
     * Invoked when the input is blurred. Receives an event.
     */
    onBlur: _propTypes2.default.func,
    /**
     * Invoked whenever items are added or removed. Receives an array of the
     * selected options.
     */
    onChange: _propTypes2.default.func,
    /**
     * Invoked when the input is focused. Receives an event.
     */
    onFocus: _propTypes2.default.func,
    /**
     * Invoked when the input value changes. Receives the string value of the
     * input.
     */
    onInputChange: _propTypes2.default.func,
    /**
     * Invoked when a key is pressed. Receives an event.
     */
    onKeyDown: _propTypes2.default.func,
    /**
     * Invoked when the menu is hidden.
     */
    onMenuHide: _propTypes2.default.func,
    /**
     * Invoked when the menu is shown.
     */
    onMenuShow: _propTypes2.default.func,
    /**
     * Invoked when the pagination menu item is clicked. Receives an event.
     */
    onPaginate: _propTypes2.default.func,
    /**
     * Full set of options, including pre-selected options. Must either be an
     * array of objects (recommended) or strings.
     */
    options: _propTypes3.optionType.isRequired,
    /**
     * Give user the ability to display additional results if the number of
     * results exceeds `maxResults`.
     */
    paginate: _propTypes2.default.bool,
    /**
     * Prompt displayed when large data sets are paginated.
     */
    paginationText: _propTypes2.default.string,
    /**
     * Placeholder text for the input.
     */
    placeholder: _propTypes2.default.string,
    /**
     * Callback for custom menu rendering.
     */
    renderMenu: _propTypes2.default.func,
    /**
     * The selected option(s) displayed in the input. Use this prop if you want
     * to control the component via its parent.
     */
    selected: _propTypes3.optionType,
    /**
     * Allows selecting the hinted result by pressing enter.
     */
    selectHintOnEnter: _propTypes2.default.bool
  };

  WrappedTypeahead.defaultProps = {
    a11yNumResults: function a11yNumResults(results) {
      var resultString = (0, _utils.pluralize)('result', results.length);
      return resultString + '. Use up and down arrow keys to navigate.';
    },
    a11yNumSelected: function a11yNumSelected(selected) {
      return (0, _utils.pluralize)('selection', selected.length);
    },
    align: 'justify',
    allowNew: false,
    autoFocus: false,
    bodyContainer: false,
    caseSensitive: false,
    clearButton: false,
    defaultInputValue: '',
    defaultSelected: [],
    disabled: false,
    dropup: false,
    emptyLabel: 'No matches found.',
    filterBy: [],
    flip: false,
    highlightOnlyResult: false,
    ignoreDiacritics: true,
    inputProps: {},
    isInvalid: false,
    isLoading: false,
    isValid: false,
    labelKey: _defaultLabelKey.DEFAULT_LABELKEY,
    maxResults: 100,
    minLength: 0,
    multiple: false,
    onBlur: _noop2.default,
    onChange: _noop2.default,
    onFocus: _noop2.default,
    onInputChange: _noop2.default,
    onKeyDown: _noop2.default,
    onMenuHide: _noop2.default,
    onMenuShow: _noop2.default,
    onPaginate: _noop2.default,
    paginate: true,
    paginationText: 'Display additional results...',
    placeholder: '',
    selectHintOnEnter: false
  };

  WrappedTypeahead.childContextTypes = {
    activeIndex: _propTypes2.default.number.isRequired,
    onActiveItemChange: _propTypes2.default.func.isRequired,
    onInitialItemChange: _propTypes2.default.func.isRequired,
    onMenuItemClick: _propTypes2.default.func.isRequired
  };

  return (0, _reactOnclickoutside2.default)(WrappedTypeahead);
}

exports.default = typeaheadContainer;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/index.js":
/*!*************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/index.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.tokenContainer = exports.menuItemContainer = exports.asyncContainer = exports.TypeaheadMenu = exports.Typeahead = exports.Token = exports.MenuItem = exports.Menu = exports.Highlighter = exports.AsyncTypeahead = undefined;

var _AsyncTypeahead2 = __webpack_require__(/*! ./AsyncTypeahead.react */ "./node_modules/react-bootstrap-typeahead/lib/AsyncTypeahead.react.js");

var _AsyncTypeahead3 = _interopRequireDefault(_AsyncTypeahead2);

var _Highlighter2 = __webpack_require__(/*! ./Highlighter.react */ "./node_modules/react-bootstrap-typeahead/lib/Highlighter.react.js");

var _Highlighter3 = _interopRequireDefault(_Highlighter2);

var _Menu2 = __webpack_require__(/*! ./Menu.react */ "./node_modules/react-bootstrap-typeahead/lib/Menu.react.js");

var _Menu3 = _interopRequireDefault(_Menu2);

var _MenuItem2 = __webpack_require__(/*! ./MenuItem.react */ "./node_modules/react-bootstrap-typeahead/lib/MenuItem.react.js");

var _MenuItem3 = _interopRequireDefault(_MenuItem2);

var _Token2 = __webpack_require__(/*! ./Token.react */ "./node_modules/react-bootstrap-typeahead/lib/Token.react.js");

var _Token3 = _interopRequireDefault(_Token2);

var _Typeahead2 = __webpack_require__(/*! ./Typeahead.react */ "./node_modules/react-bootstrap-typeahead/lib/Typeahead.react.js");

var _Typeahead3 = _interopRequireDefault(_Typeahead2);

var _TypeaheadMenu2 = __webpack_require__(/*! ./TypeaheadMenu.react */ "./node_modules/react-bootstrap-typeahead/lib/TypeaheadMenu.react.js");

var _TypeaheadMenu3 = _interopRequireDefault(_TypeaheadMenu2);

var _asyncContainer2 = __webpack_require__(/*! ./containers/asyncContainer */ "./node_modules/react-bootstrap-typeahead/lib/containers/asyncContainer.js");

var _asyncContainer3 = _interopRequireDefault(_asyncContainer2);

var _menuItemContainer2 = __webpack_require__(/*! ./containers/menuItemContainer */ "./node_modules/react-bootstrap-typeahead/lib/containers/menuItemContainer.js");

var _menuItemContainer3 = _interopRequireDefault(_menuItemContainer2);

var _tokenContainer2 = __webpack_require__(/*! ./containers/tokenContainer */ "./node_modules/react-bootstrap-typeahead/lib/containers/tokenContainer.js");

var _tokenContainer3 = _interopRequireDefault(_tokenContainer2);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.AsyncTypeahead = _AsyncTypeahead3.default; /* eslint-disable object-curly-spacing */

// Components

exports.Highlighter = _Highlighter3.default;
exports.Menu = _Menu3.default;
exports.MenuItem = _MenuItem3.default;
exports.Token = _Token3.default;
exports.Typeahead = _Typeahead3.default;
exports.TypeaheadMenu = _TypeaheadMenu3.default;

// HOCs

exports.asyncContainer = _asyncContainer3.default;
exports.menuItemContainer = _menuItemContainer3.default;
exports.tokenContainer = _tokenContainer3.default;

/* eslint-enable object-curly-spacing */

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/propTypes/caseSensitiveType.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/propTypes/caseSensitiveType.js ***!
  \***********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = caseSensitiveType;

var _warn = __webpack_require__(/*! ../utils/warn */ "./node_modules/react-bootstrap-typeahead/lib/utils/warn.js");

var _warn2 = _interopRequireDefault(_warn);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function caseSensitiveType(props, propName, componentName) {
  var caseSensitive = props.caseSensitive,
      filterBy = props.filterBy;

  (0, _warn2.default)(!caseSensitive || typeof filterBy !== 'function', 'Your `filterBy` function will override the `caseSensitive` prop.');
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/propTypes/checkPropType.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/propTypes/checkPropType.js ***!
  \*******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = checkPropType;

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

/**
 * Allows additional warnings or messaging related to prop validation.
 */
function checkPropType(validator, callback) {
  return function (props, propName, componentName) {
    _propTypes2.default.checkPropTypes(_defineProperty({}, propName, validator), props, 'prop', componentName);

    typeof callback === 'function' && callback(props, propName, componentName);
  };
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/propTypes/defaultInputValueType.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/propTypes/defaultInputValueType.js ***!
  \***************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = defaultInputValueType;

var _warn = __webpack_require__(/*! ../utils/warn */ "./node_modules/react-bootstrap-typeahead/lib/utils/warn.js");

var _warn2 = _interopRequireDefault(_warn);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function defaultInputValueType(props, propName, componentName) {
  var defaultInputValue = props.defaultInputValue,
      defaultSelected = props.defaultSelected,
      multiple = props.multiple,
      selected = props.selected;

  var name = defaultSelected.length ? 'defaultSelected' : 'selected';

  (0, _warn2.default)(!(!multiple && defaultInputValue && (defaultSelected.length || selected && selected.length)), '`defaultInputValue` will be overridden by the value from `' + name + '`.');
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/propTypes/highlightOnlyResultType.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/propTypes/highlightOnlyResultType.js ***!
  \*****************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = highlightOnlyResultType;

var _warn = __webpack_require__(/*! ../utils/warn */ "./node_modules/react-bootstrap-typeahead/lib/utils/warn.js");

var _warn2 = _interopRequireDefault(_warn);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function highlightOnlyResultType(props, propName, componentName) {
  var allowNew = props.allowNew,
      highlightOnlyResult = props.highlightOnlyResult;

  (0, _warn2.default)(!(highlightOnlyResult && allowNew), '`highlightOnlyResult` will not work with `allowNew`.');
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/propTypes/ignoreDiacriticsType.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/propTypes/ignoreDiacriticsType.js ***!
  \**************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = ignoreDiacriticsType;

var _warn = __webpack_require__(/*! ../utils/warn */ "./node_modules/react-bootstrap-typeahead/lib/utils/warn.js");

var _warn2 = _interopRequireDefault(_warn);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function ignoreDiacriticsType(props, propName, componentName) {
  var filterBy = props.filterBy,
      ignoreDiacritics = props.ignoreDiacritics;

  (0, _warn2.default)(ignoreDiacritics || typeof filterBy !== 'function', 'Your `filterBy` function will override the `ignoreDiacritics` prop.');
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/propTypes/index.js":
/*!***********************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/propTypes/index.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.optionType = exports.labelKeyType = exports.inputPropsType = exports.ignoreDiacriticsType = exports.highlightOnlyResultType = exports.defaultInputValueType = exports.checkPropType = exports.caseSensitiveType = undefined;

var _caseSensitiveType2 = __webpack_require__(/*! ./caseSensitiveType */ "./node_modules/react-bootstrap-typeahead/lib/propTypes/caseSensitiveType.js");

var _caseSensitiveType3 = _interopRequireDefault(_caseSensitiveType2);

var _checkPropType2 = __webpack_require__(/*! ./checkPropType */ "./node_modules/react-bootstrap-typeahead/lib/propTypes/checkPropType.js");

var _checkPropType3 = _interopRequireDefault(_checkPropType2);

var _defaultInputValueType2 = __webpack_require__(/*! ./defaultInputValueType */ "./node_modules/react-bootstrap-typeahead/lib/propTypes/defaultInputValueType.js");

var _defaultInputValueType3 = _interopRequireDefault(_defaultInputValueType2);

var _highlightOnlyResultType2 = __webpack_require__(/*! ./highlightOnlyResultType */ "./node_modules/react-bootstrap-typeahead/lib/propTypes/highlightOnlyResultType.js");

var _highlightOnlyResultType3 = _interopRequireDefault(_highlightOnlyResultType2);

var _ignoreDiacriticsType2 = __webpack_require__(/*! ./ignoreDiacriticsType */ "./node_modules/react-bootstrap-typeahead/lib/propTypes/ignoreDiacriticsType.js");

var _ignoreDiacriticsType3 = _interopRequireDefault(_ignoreDiacriticsType2);

var _inputPropsType2 = __webpack_require__(/*! ./inputPropsType */ "./node_modules/react-bootstrap-typeahead/lib/propTypes/inputPropsType.js");

var _inputPropsType3 = _interopRequireDefault(_inputPropsType2);

var _labelKeyType2 = __webpack_require__(/*! ./labelKeyType */ "./node_modules/react-bootstrap-typeahead/lib/propTypes/labelKeyType.js");

var _labelKeyType3 = _interopRequireDefault(_labelKeyType2);

var _optionType2 = __webpack_require__(/*! ./optionType */ "./node_modules/react-bootstrap-typeahead/lib/propTypes/optionType.js");

var _optionType3 = _interopRequireDefault(_optionType2);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.caseSensitiveType = _caseSensitiveType3.default; /* eslint-disable object-curly-spacing */

exports.checkPropType = _checkPropType3.default;
exports.defaultInputValueType = _defaultInputValueType3.default;
exports.highlightOnlyResultType = _highlightOnlyResultType3.default;
exports.ignoreDiacriticsType = _ignoreDiacriticsType3.default;
exports.inputPropsType = _inputPropsType3.default;
exports.labelKeyType = _labelKeyType3.default;
exports.optionType = _optionType3.default;
/* eslint-enable object-curly-spacing */

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/propTypes/inputPropsType.js":
/*!********************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/propTypes/inputPropsType.js ***!
  \********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = inputPropsType;

var _isPlainObject = __webpack_require__(/*! lodash/isPlainObject */ "./node_modules/lodash/isPlainObject.js");

var _isPlainObject2 = _interopRequireDefault(_isPlainObject);

var _warn = __webpack_require__(/*! ../utils/warn */ "./node_modules/react-bootstrap-typeahead/lib/utils/warn.js");

var _warn2 = _interopRequireDefault(_warn);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var BLACKLIST = [{ alt: 'onBlur', prop: 'onBlur' }, { alt: 'onInputChange', prop: 'onChange' }, { alt: 'onFocus', prop: 'onFocus' }, { alt: 'onKeyDown', prop: 'onKeyDown' }];

function inputPropsType(props, propName, componentName) {
  var inputProps = props.inputProps;

  if (!(inputProps && (0, _isPlainObject2.default)(inputProps))) {
    return;
  }

  // Blacklisted properties.
  BLACKLIST.forEach(function (_ref) {
    var alt = _ref.alt,
        prop = _ref.prop;

    var msg = alt ? ' Use the top-level `' + alt + '` prop instead.' : null;
    (0, _warn2.default)(!inputProps.hasOwnProperty(prop), 'The `' + prop + '` property of `inputProps` will be ignored.' + msg);
  });
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/propTypes/labelKeyType.js":
/*!******************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/propTypes/labelKeyType.js ***!
  \******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = labelKeyType;

var _warn = __webpack_require__(/*! ../utils/warn */ "./node_modules/react-bootstrap-typeahead/lib/utils/warn.js");

var _warn2 = _interopRequireDefault(_warn);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function labelKeyType(props, propName, componentName) {
  var allowNew = props.allowNew,
      labelKey = props.labelKey;

  (0, _warn2.default)(!(typeof labelKey === 'function' && allowNew), '`labelKey` must be a string when `allowNew={true}`.');
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/propTypes/optionType.js":
/*!****************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/propTypes/optionType.js ***!
  \****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = _propTypes2.default.oneOfType([_propTypes2.default.arrayOf(_propTypes2.default.object.isRequired), _propTypes2.default.arrayOf(_propTypes2.default.string.isRequired)]);

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/addCustomOption.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/addCustomOption.js ***!
  \*****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _index = __webpack_require__(/*! ./index */ "./node_modules/react-bootstrap-typeahead/lib/utils/index.js");

function addCustomOption(results, props) {
  var allowNew = props.allowNew,
      labelKey = props.labelKey,
      text = props.text;


  if (!allowNew || !text.trim()) {
    return false;
  }

  // If the consumer has provided a callback, use that to determine whether or
  // not to add the custom option.
  if (typeof allowNew === 'function') {
    return allowNew(results, props);
  }

  // By default, don't add the custom option if there is an exact text match
  // with an existing option.
  return !results.some(function (o) {
    return (0, _index.getOptionLabel)(o, labelKey) === text;
  });
}

exports.default = addCustomOption;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/defaultFilterBy.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/defaultFilterBy.js ***!
  \*****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = defaultFilterBy;

var _isEqual = __webpack_require__(/*! lodash/isEqual */ "./node_modules/lodash/isEqual.js");

var _isEqual2 = _interopRequireDefault(_isEqual);

var _isFunction = __webpack_require__(/*! lodash/isFunction */ "./node_modules/lodash/isFunction.js");

var _isFunction2 = _interopRequireDefault(_isFunction);

var _isString = __webpack_require__(/*! lodash/isString */ "./node_modules/lodash/isString.js");

var _isString2 = _interopRequireDefault(_isString);

var _some = __webpack_require__(/*! lodash/some */ "./node_modules/lodash/some.js");

var _some2 = _interopRequireDefault(_some);

var _stripDiacritics = __webpack_require__(/*! ./stripDiacritics */ "./node_modules/react-bootstrap-typeahead/lib/utils/stripDiacritics.js");

var _stripDiacritics2 = _interopRequireDefault(_stripDiacritics);

var _warn = __webpack_require__(/*! ./warn */ "./node_modules/react-bootstrap-typeahead/lib/utils/warn.js");

var _warn2 = _interopRequireDefault(_warn);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function isMatch(input, string, props) {
  if (!props.caseSensitive) {
    input = input.toLowerCase();
    string = string.toLowerCase();
  }

  if (props.ignoreDiacritics) {
    input = (0, _stripDiacritics2.default)(input);
    string = (0, _stripDiacritics2.default)(string);
  }

  return string.indexOf(input) !== -1;
}

/**
 * Default algorithm for filtering results.
 */
function defaultFilterBy(option, props) {
  var filterBy = props.filterBy,
      labelKey = props.labelKey,
      multiple = props.multiple,
      selected = props.selected,
      text = props.text;

  // Don't show selected options in the menu for the multi-select case.

  if (multiple && selected.some(function (o) {
    return (0, _isEqual2.default)(o, option);
  })) {
    return false;
  }

  var fields = filterBy.slice();

  if ((0, _isFunction2.default)(labelKey) && isMatch(text, labelKey(option), props)) {
    return true;
  }

  if ((0, _isString2.default)(labelKey)) {
    // Add the `labelKey` field to the list of fields if it isn't already there.
    if (fields.indexOf(labelKey) === -1) {
      fields.unshift(labelKey);
    }
  }

  if ((0, _isString2.default)(option)) {
    (0, _warn2.default)(fields.length <= 1, 'You cannot filter by properties when `option` is a string.');

    return isMatch(text, option, props);
  }

  return (0, _some2.default)(fields, function (field) {
    var value = option[field];

    if (!(0, _isString2.default)(value)) {
      (0, _warn2.default)(false, 'Fields passed to `filterBy` should have string values. Value will ' + 'be converted to a string; results may be unexpected.');

      // Coerce to string since `toString` isn't null-safe.
      value = value + '';
    }

    return isMatch(text, value, props);
  });
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/getAccessibilityStatus.js":
/*!************************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/getAccessibilityStatus.js ***!
  \************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
function getAccessibilityStatus(props) {
  var a11yNumResults = props.a11yNumResults,
      a11yNumSelected = props.a11yNumSelected,
      emptyLabel = props.emptyLabel,
      isMenuShown = props.isMenuShown,
      results = props.results,
      selected = props.selected;

  // If the menu is hidden, display info about the number of selections.

  if (!isMenuShown) {
    return a11yNumSelected(selected);
  }

  // Display info about the number of matches.
  if (results.length === 0) {
    return emptyLabel;
  }

  return a11yNumResults(results);
}

exports.default = getAccessibilityStatus;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/getDisplayName.js":
/*!****************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/getDisplayName.js ***!
  \****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = getDisplayName;
function getDisplayName(WrappedComponent) {
  return WrappedComponent.displayName || WrappedComponent.name || 'Component';
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/getHintText.js":
/*!*************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/getHintText.js ***!
  \*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _getMatchBounds = __webpack_require__(/*! ./getMatchBounds */ "./node_modules/react-bootstrap-typeahead/lib/utils/getMatchBounds.js");

var _getMatchBounds2 = _interopRequireDefault(_getMatchBounds);

var _getOptionLabel = __webpack_require__(/*! ./getOptionLabel */ "./node_modules/react-bootstrap-typeahead/lib/utils/getOptionLabel.js");

var _getOptionLabel2 = _interopRequireDefault(_getOptionLabel);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function getHintText(_ref) {
  var activeItem = _ref.activeItem,
      initialItem = _ref.initialItem,
      isMenuShown = _ref.isMenuShown,
      labelKey = _ref.labelKey,
      multiple = _ref.multiple,
      selected = _ref.selected,
      text = _ref.text;

  // Don't display a hint under the following conditions:
  if (
  // No text entered.
  !text ||
  // The menu is hidden.
  !isMenuShown ||
  // No item in the menu.
  !initialItem ||
  // The initial item is a custom option.
  initialItem.customOption ||
  // One of the menu items is active.
  activeItem ||
  // There's already a selection in single-select mode.
  !!selected.length && !multiple) {
    return '';
  }

  var initialItemStr = (0, _getOptionLabel2.default)(initialItem, labelKey);
  var bounds = (0, _getMatchBounds2.default)(initialItemStr.toLowerCase(), text.toLowerCase());

  if (!(bounds && bounds.start === 0)) {
    return '';
  }

  // Text matching is case- and accent-insensitive, so to display the hint
  // correctly, splice the input string with the hint string.
  return text + initialItemStr.slice(bounds.end, initialItemStr.length);
}

exports.default = getHintText;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/getInputText.js":
/*!**************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/getInputText.js ***!
  \**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _head = __webpack_require__(/*! lodash/head */ "./node_modules/lodash/head.js");

var _head2 = _interopRequireDefault(_head);

var _getOptionLabel = __webpack_require__(/*! ./getOptionLabel */ "./node_modules/react-bootstrap-typeahead/lib/utils/getOptionLabel.js");

var _getOptionLabel2 = _interopRequireDefault(_getOptionLabel);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function getInputText(_ref) {
  var activeItem = _ref.activeItem,
      labelKey = _ref.labelKey,
      multiple = _ref.multiple,
      selected = _ref.selected,
      text = _ref.text;

  if (activeItem) {
    // Display the input value if the pagination item is active.
    return activeItem.paginationOption ? text : (0, _getOptionLabel2.default)(activeItem, labelKey);
  }

  var selectedItem = !multiple && !!selected.length && (0, _head2.default)(selected);
  if (selectedItem) {
    return (0, _getOptionLabel2.default)(selectedItem, labelKey);
  }

  return text;
}

exports.default = getInputText;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/getMatchBounds.js":
/*!****************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/getMatchBounds.js ***!
  \****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = getMatchBounds;

var _escapeStringRegexp = __webpack_require__(/*! escape-string-regexp */ "./node_modules/escape-string-regexp/index.js");

var _escapeStringRegexp2 = _interopRequireDefault(_escapeStringRegexp);

var _stripDiacritics = __webpack_require__(/*! ./stripDiacritics */ "./node_modules/react-bootstrap-typeahead/lib/utils/stripDiacritics.js");

var _stripDiacritics2 = _interopRequireDefault(_stripDiacritics);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var CASE_INSENSITIVE = 'i';
var COMBINING_MARKS = /[\u0300-\u036F]/;

function getMatchBounds(subject, search) {
  search = new RegExp((0, _escapeStringRegexp2.default)((0, _stripDiacritics2.default)(search)), CASE_INSENSITIVE);

  var matches = search.exec((0, _stripDiacritics2.default)(subject));

  if (!matches) {
    return null;
  }

  var start = matches.index;
  var matchLength = matches[0].length;

  // Account for combining marks, which changes the indices.
  if (COMBINING_MARKS.test(subject)) {
    // Starting at the beginning of the subject string, check for the number of
    // combining marks and increment the start index whenever one is found.
    for (var ii = 0; ii <= start; ii++) {
      if (COMBINING_MARKS.test(subject[ii])) {
        start++;
      }
    }

    // Similarly, increment the length of the match string if it contains a
    // combining mark.
    for (var _ii = start; _ii <= start + matchLength; _ii++) {
      if (COMBINING_MARKS.test(subject[_ii])) {
        matchLength++;
      }
    }
  }

  return {
    end: start + matchLength,
    start: start
  };
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/getMenuItemId.js":
/*!***************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/getMenuItemId.js ***!
  \***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = getMenuItemId;
function getMenuItemId(position) {
  return "rbt-menu-item-" + position;
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/getOptionLabel.js":
/*!****************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/getOptionLabel.js ***!
  \****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _invariant = __webpack_require__(/*! invariant */ "./node_modules/invariant/browser.js");

var _invariant2 = _interopRequireDefault(_invariant);

var _isPlainObject = __webpack_require__(/*! lodash/isPlainObject */ "./node_modules/lodash/isPlainObject.js");

var _isPlainObject2 = _interopRequireDefault(_isPlainObject);

var _getStringLabelKey = __webpack_require__(/*! ./getStringLabelKey */ "./node_modules/react-bootstrap-typeahead/lib/utils/getStringLabelKey.js");

var _getStringLabelKey2 = _interopRequireDefault(_getStringLabelKey);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/**
 * Retrieves the display string from an option. Options can be the string
 * themselves, or an object with a defined display string. Anything else throws
 * an error.
 */
function getOptionLabel(option, labelKey) {
  if (option.paginationOption || option.customOption) {
    return option[(0, _getStringLabelKey2.default)(labelKey)];
  }

  var optionLabel = void 0;

  if (typeof option === 'string') {
    optionLabel = option;
  }

  if (typeof labelKey === 'function') {
    // This overwrites string options, but we assume the consumer wants to do
    // something custom if `labelKey` is a function.
    optionLabel = labelKey(option);
  } else if (typeof labelKey === 'string' && (0, _isPlainObject2.default)(option)) {
    optionLabel = option[labelKey];
  }

  !(typeof optionLabel === 'string') ?  true ? (0, _invariant2.default)(false, 'One or more options does not have a valid label string. Check the ' + '`labelKey` prop to ensure that it matches the correct option key and ' + 'provides a string for filtering and display.') : undefined : void 0;

  return optionLabel;
}

exports.default = getOptionLabel;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/getStringLabelKey.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/getStringLabelKey.js ***!
  \*******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = getStringLabelKey;

var _defaultLabelKey = __webpack_require__(/*! ../constants/defaultLabelKey */ "./node_modules/react-bootstrap-typeahead/lib/constants/defaultLabelKey.js");

function getStringLabelKey(labelKey) {
  return typeof labelKey === 'string' ? labelKey : _defaultLabelKey.DEFAULT_LABELKEY;
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/getTruncatedOptions.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/getTruncatedOptions.js ***!
  \*********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
/**
 * Truncates the result set based on `maxResults` and returns the new set.
 */
function getTruncatedOptions(options, maxResults) {
  if (!maxResults || maxResults >= options.length) {
    return options;
  }

  return options.slice(0, maxResults);
}

exports.default = getTruncatedOptions;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/index.js":
/*!*******************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/index.js ***!
  \*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.warn = exports.stripDiacritics = exports.scrollIntoViewIfNeeded = exports.preventInputBlur = exports.pluralize = exports.isShown = exports.getTruncatedOptions = exports.getStringLabelKey = exports.getOptionLabel = exports.getMenuItemId = exports.getMatchBounds = exports.getInputText = exports.getHintText = exports.getDisplayName = exports.getAccessibilityStatus = exports.defaultFilterBy = exports.addCustomOption = undefined;

var _addCustomOption2 = __webpack_require__(/*! ./addCustomOption */ "./node_modules/react-bootstrap-typeahead/lib/utils/addCustomOption.js");

var _addCustomOption3 = _interopRequireDefault(_addCustomOption2);

var _defaultFilterBy2 = __webpack_require__(/*! ./defaultFilterBy */ "./node_modules/react-bootstrap-typeahead/lib/utils/defaultFilterBy.js");

var _defaultFilterBy3 = _interopRequireDefault(_defaultFilterBy2);

var _getAccessibilityStatus2 = __webpack_require__(/*! ./getAccessibilityStatus */ "./node_modules/react-bootstrap-typeahead/lib/utils/getAccessibilityStatus.js");

var _getAccessibilityStatus3 = _interopRequireDefault(_getAccessibilityStatus2);

var _getDisplayName2 = __webpack_require__(/*! ./getDisplayName */ "./node_modules/react-bootstrap-typeahead/lib/utils/getDisplayName.js");

var _getDisplayName3 = _interopRequireDefault(_getDisplayName2);

var _getHintText2 = __webpack_require__(/*! ./getHintText */ "./node_modules/react-bootstrap-typeahead/lib/utils/getHintText.js");

var _getHintText3 = _interopRequireDefault(_getHintText2);

var _getInputText2 = __webpack_require__(/*! ./getInputText */ "./node_modules/react-bootstrap-typeahead/lib/utils/getInputText.js");

var _getInputText3 = _interopRequireDefault(_getInputText2);

var _getMatchBounds2 = __webpack_require__(/*! ./getMatchBounds */ "./node_modules/react-bootstrap-typeahead/lib/utils/getMatchBounds.js");

var _getMatchBounds3 = _interopRequireDefault(_getMatchBounds2);

var _getMenuItemId2 = __webpack_require__(/*! ./getMenuItemId */ "./node_modules/react-bootstrap-typeahead/lib/utils/getMenuItemId.js");

var _getMenuItemId3 = _interopRequireDefault(_getMenuItemId2);

var _getOptionLabel2 = __webpack_require__(/*! ./getOptionLabel */ "./node_modules/react-bootstrap-typeahead/lib/utils/getOptionLabel.js");

var _getOptionLabel3 = _interopRequireDefault(_getOptionLabel2);

var _getStringLabelKey2 = __webpack_require__(/*! ./getStringLabelKey */ "./node_modules/react-bootstrap-typeahead/lib/utils/getStringLabelKey.js");

var _getStringLabelKey3 = _interopRequireDefault(_getStringLabelKey2);

var _getTruncatedOptions2 = __webpack_require__(/*! ./getTruncatedOptions */ "./node_modules/react-bootstrap-typeahead/lib/utils/getTruncatedOptions.js");

var _getTruncatedOptions3 = _interopRequireDefault(_getTruncatedOptions2);

var _isShown2 = __webpack_require__(/*! ./isShown */ "./node_modules/react-bootstrap-typeahead/lib/utils/isShown.js");

var _isShown3 = _interopRequireDefault(_isShown2);

var _pluralize2 = __webpack_require__(/*! ./pluralize */ "./node_modules/react-bootstrap-typeahead/lib/utils/pluralize.js");

var _pluralize3 = _interopRequireDefault(_pluralize2);

var _preventInputBlur2 = __webpack_require__(/*! ./preventInputBlur */ "./node_modules/react-bootstrap-typeahead/lib/utils/preventInputBlur.js");

var _preventInputBlur3 = _interopRequireDefault(_preventInputBlur2);

var _scrollIntoViewIfNeeded2 = __webpack_require__(/*! ./scrollIntoViewIfNeeded */ "./node_modules/react-bootstrap-typeahead/lib/utils/scrollIntoViewIfNeeded.js");

var _scrollIntoViewIfNeeded3 = _interopRequireDefault(_scrollIntoViewIfNeeded2);

var _stripDiacritics2 = __webpack_require__(/*! ./stripDiacritics */ "./node_modules/react-bootstrap-typeahead/lib/utils/stripDiacritics.js");

var _stripDiacritics3 = _interopRequireDefault(_stripDiacritics2);

var _warn2 = __webpack_require__(/*! ./warn */ "./node_modules/react-bootstrap-typeahead/lib/utils/warn.js");

var _warn3 = _interopRequireDefault(_warn2);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.addCustomOption = _addCustomOption3.default; /* eslint-disable object-curly-spacing */

exports.defaultFilterBy = _defaultFilterBy3.default;
exports.getAccessibilityStatus = _getAccessibilityStatus3.default;
exports.getDisplayName = _getDisplayName3.default;
exports.getHintText = _getHintText3.default;
exports.getInputText = _getInputText3.default;
exports.getMatchBounds = _getMatchBounds3.default;
exports.getMenuItemId = _getMenuItemId3.default;
exports.getOptionLabel = _getOptionLabel3.default;
exports.getStringLabelKey = _getStringLabelKey3.default;
exports.getTruncatedOptions = _getTruncatedOptions3.default;
exports.isShown = _isShown3.default;
exports.pluralize = _pluralize3.default;
exports.preventInputBlur = _preventInputBlur3.default;
exports.scrollIntoViewIfNeeded = _scrollIntoViewIfNeeded3.default;
exports.stripDiacritics = _stripDiacritics3.default;
exports.warn = _warn3.default;
/* eslint-enable object-curly-spacing */

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/isShown.js":
/*!*********************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/isShown.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = isShown;
function isShown(results, props) {
  var emptyLabel = props.emptyLabel,
      minLength = props.minLength,
      showMenu = props.showMenu,
      text = props.text;


  if (!showMenu) {
    return false;
  }

  if (text.length < minLength) {
    return false;
  }

  return !!(results.length || emptyLabel);
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/pluralize.js":
/*!***********************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/pluralize.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = pluralize;
/**
 * Basic util for pluralizing words. By default, simply adds an 's' to the word.
 * Also allows for a custom plural version.
 */
function pluralize(text, count, plural) {
  plural = plural || text + "s";
  return count === 1 ? "1 " + text : count + " " + plural;
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/preventInputBlur.js":
/*!******************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/preventInputBlur.js ***!
  \******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = preventInputBlur;
/**
 * Prevent the main input from blurring when a menu item or the clear button is
 * clicked. (#226 & #310)
 */
function preventInputBlur(e) {
  e.preventDefault();
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/scrollIntoViewIfNeeded.js":
/*!************************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/scrollIntoViewIfNeeded.js ***!
  \************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
/**
 * Partial polyfill for webkit `scrollIntoViewIfNeeded()` method. Addresses
 * vertical scrolling only.
 *
 * Inspired by https://gist.github.com/hsablonniere/2581101, but uses
 * `getBoundingClientRect`.
 */
function scrollIntoViewIfNeeded(node) {
  // Webkit browsers
  if (Element.prototype.scrollIntoViewIfNeeded) {
    node.scrollIntoViewIfNeeded();
    return;
  }

  // FF, IE, etc.
  var rect = node.getBoundingClientRect();
  var parent = node.parentNode;
  var parentRect = parent.getBoundingClientRect();

  var parentComputedStyle = window.getComputedStyle(parent, null);
  var parentBorderTopWidth = parseInt(parentComputedStyle.getPropertyValue('border-top-width'));

  if (rect.top < parentRect.top || rect.bottom > parentRect.bottom) {
    parent.scrollTop = node.offsetTop - parent.offsetTop - parent.clientHeight / 2 - parentBorderTopWidth + node.clientHeight / 2;
  }
}

exports.default = scrollIntoViewIfNeeded;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/stripDiacritics.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/stripDiacritics.js ***!
  \*****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = stripDiacritics;
/**
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Taken from: http://stackoverflow.com/questions/990904/remove-accents-diacritics-in-a-string-in-javascript/18391901#18391901
 */

/* eslint-disable max-len */
var map = [{ 'base': 'A', 'letters': 'A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F' }, { 'base': 'AA', 'letters': '\uA732' }, { 'base': 'AE', 'letters': '\xC6\u01FC\u01E2' }, { 'base': 'AO', 'letters': '\uA734' }, { 'base': 'AU', 'letters': '\uA736' }, { 'base': 'AV', 'letters': '\uA738\uA73A' }, { 'base': 'AY', 'letters': '\uA73C' }, { 'base': 'B', 'letters': 'B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181' }, { 'base': 'C', 'letters': 'C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E' }, { 'base': 'D', 'letters': 'D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779\xD0' }, { 'base': 'DZ', 'letters': '\u01F1\u01C4' }, { 'base': 'Dz', 'letters': '\u01F2\u01C5' }, { 'base': 'E', 'letters': 'E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E' }, { 'base': 'F', 'letters': 'F\u24BB\uFF26\u1E1E\u0191\uA77B' }, { 'base': 'G', 'letters': 'G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E' }, { 'base': 'H', 'letters': 'H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D' }, { 'base': 'I', 'letters': 'I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197' }, { 'base': 'J', 'letters': 'J\u24BF\uFF2A\u0134\u0248' }, { 'base': 'K', 'letters': 'K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2' }, { 'base': 'L', 'letters': 'L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780' }, { 'base': 'LJ', 'letters': '\u01C7' }, { 'base': 'Lj', 'letters': '\u01C8' }, { 'base': 'M', 'letters': 'M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C' }, { 'base': 'N', 'letters': 'N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4' }, { 'base': 'NJ', 'letters': '\u01CA' }, { 'base': 'Nj', 'letters': '\u01CB' }, { 'base': 'O', 'letters': 'O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C' }, { 'base': 'OI', 'letters': '\u01A2' }, { 'base': 'OO', 'letters': '\uA74E' }, { 'base': 'OU', 'letters': '\u0222' }, { 'base': 'OE', 'letters': '\x8C\u0152' }, { 'base': 'oe', 'letters': '\x9C\u0153' }, { 'base': 'P', 'letters': 'P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754' }, { 'base': 'Q', 'letters': 'Q\u24C6\uFF31\uA756\uA758\u024A' }, { 'base': 'R', 'letters': 'R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782' }, { 'base': 'S', 'letters': 'S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784' }, { 'base': 'T', 'letters': 'T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786' }, { 'base': 'TZ', 'letters': '\uA728' }, { 'base': 'U', 'letters': 'U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244' }, { 'base': 'V', 'letters': 'V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245' }, { 'base': 'VY', 'letters': '\uA760' }, { 'base': 'W', 'letters': 'W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72' }, { 'base': 'X', 'letters': 'X\u24CD\uFF38\u1E8A\u1E8C' }, { 'base': 'Y', 'letters': 'Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE' }, { 'base': 'Z', 'letters': 'Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762' }, { 'base': 'a', 'letters': 'a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250' }, { 'base': 'aa', 'letters': '\uA733' }, { 'base': 'ae', 'letters': '\xE6\u01FD\u01E3' }, { 'base': 'ao', 'letters': '\uA735' }, { 'base': 'au', 'letters': '\uA737' }, { 'base': 'av', 'letters': '\uA739\uA73B' }, { 'base': 'ay', 'letters': '\uA73D' }, { 'base': 'b', 'letters': 'b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253' }, { 'base': 'c', 'letters': 'c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184' }, { 'base': 'd', 'letters': 'd\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A' }, { 'base': 'dz', 'letters': '\u01F3\u01C6' }, { 'base': 'e', 'letters': 'e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD' }, { 'base': 'f', 'letters': 'f\u24D5\uFF46\u1E1F\u0192\uA77C' }, { 'base': 'g', 'letters': 'g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F' }, { 'base': 'h', 'letters': 'h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265' }, { 'base': 'hv', 'letters': '\u0195' }, { 'base': 'i', 'letters': 'i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131' }, { 'base': 'j', 'letters': 'j\u24D9\uFF4A\u0135\u01F0\u0249' }, { 'base': 'k', 'letters': 'k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3' }, { 'base': 'l', 'letters': 'l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747' }, { 'base': 'lj', 'letters': '\u01C9' }, { 'base': 'm', 'letters': 'm\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F' }, { 'base': 'n', 'letters': 'n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5' }, { 'base': 'nj', 'letters': '\u01CC' }, { 'base': 'o', 'letters': 'o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275' }, { 'base': 'oi', 'letters': '\u01A3' }, { 'base': 'ou', 'letters': '\u0223' }, { 'base': 'oo', 'letters': '\uA74F' }, { 'base': 'p', 'letters': 'p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755' }, { 'base': 'q', 'letters': 'q\u24E0\uFF51\u024B\uA757\uA759' }, { 'base': 'r', 'letters': 'r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783' }, { 'base': 's', 'letters': 's\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B' }, { 'base': 't', 'letters': 't\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787' }, { 'base': 'tz', 'letters': '\uA729' }, { 'base': 'u', 'letters': 'u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289' }, { 'base': 'v', 'letters': 'v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C' }, { 'base': 'vy', 'letters': '\uA761' }, { 'base': 'w', 'letters': 'w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73' }, { 'base': 'x', 'letters': 'x\u24E7\uFF58\u1E8B\u1E8D' }, { 'base': 'y', 'letters': 'y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF' }, { 'base': 'z', 'letters': 'z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763' }];
/* eslint-enable max-len */

var diacriticsMap = {};
for (var ii = 0; ii < map.length; ii++) {
  var letters = map[ii].letters;
  for (var jj = 0; jj < letters.length; jj++) {
    diacriticsMap[letters[jj]] = map[ii].base;
  }
}

// "what?" version ... http://jsperf.com/diacritics/12
function stripDiacritics(str) {
  return str.replace(/[\u0300-\u036F]/g, '') // Remove combining diacritics
  /* eslint-disable-next-line no-control-regex */
  .replace(/[^\u0000-\u007E]/g, function (a) {
    return diacriticsMap[a] || a;
  });
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/warn.js":
/*!******************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/warn.js ***!
  \******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = warn;
exports._resetWarned = _resetWarned;

var _warning = __webpack_require__(/*! warning */ "./node_modules/react-bootstrap-typeahead/node_modules/warning/warning.js");

var _warning2 = _interopRequireDefault(_warning);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var warned = {}; /**
                  * This code is copied from: https://github.com/ReactTraining/react-router/blob/master/modules/routerWarning.js
                  */

function warn(falseToWarn, message) {
  // Only issue deprecation warnings once.
  if (!falseToWarn && message.indexOf('deprecated') !== -1) {
    if (warned[message]) {
      return;
    }
    warned[message] = true;
  }

  message = '[react-bootstrap-typeahead] ' + message;

  for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
    args[_key - 2] = arguments[_key];
  }

  _warning2.default.apply(undefined, [falseToWarn, message].concat(args));
}

function _resetWarned() {
  warned = {};
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/node_modules/warning/warning.js":
/*!********************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/node_modules/warning/warning.js ***!
  \********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/**
 * Copyright (c) 2014-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */



/**
 * Similar to invariant but only logs a warning if the condition is not met.
 * This can be used to log issues in development environments in critical
 * paths. Removing the logging code for production environments will keep the
 * same logic and follow the same code paths.
 */

var __DEV__ = "development" !== 'production';

var warning = function() {};

if (__DEV__) {
  var printWarning = function printWarning(format, args) {
    var len = arguments.length;
    args = new Array(len > 2 ? len - 2 : 0);
    for (var key = 2; key < len; key++) {
      args[key - 2] = arguments[key];
    }
    var argIndex = 0;
    var message = 'Warning: ' +
      format.replace(/%s/g, function() {
        return args[argIndex++];
      });
    if (typeof console !== 'undefined') {
      console.error(message);
    }
    try {
      // --- Welcome to debugging React ---
      // This error was thrown as a convenience so that you can use this stack
      // to find the callsite that caused this warning to fire.
      throw new Error(message);
    } catch (x) {}
  }

  warning = function(condition, format, args) {
    var len = arguments.length;
    args = new Array(len > 2 ? len - 2 : 0);
    for (var key = 2; key < len; key++) {
      args[key - 2] = arguments[key];
    }
    if (format === undefined) {
      throw new Error(
          '`warning(condition, format, ...args)` requires a warning ' +
          'message argument'
      );
    }
    if (!condition) {
      printWarning.apply(null, [format].concat(args));
    }
  };
}

module.exports = warning;


/***/ }),

/***/ "./node_modules/react-bootstrap/es/Badge.js":
/*!**************************************************!*\
  !*** ./node_modules/react-bootstrap/es/Badge.js ***!
  \**************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");






 // TODO: `pullRight` doesn't belong here. There's no special handling here.

var propTypes = {
  pullRight: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool
};
var defaultProps = {
  pullRight: false
};

var Badge =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Badge, _React$Component);

  function Badge() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Badge.prototype;

  _proto.hasContent = function hasContent(children) {
    var result = false;
    react__WEBPACK_IMPORTED_MODULE_4___default.a.Children.forEach(children, function (child) {
      if (result) {
        return;
      }

      if (child || child === 0) {
        result = true;
      }
    });
    return result;
  };

  _proto.render = function render() {
    var _this$props = this.props,
        pullRight = _this$props.pullRight,
        className = _this$props.className,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["pullRight", "className", "children"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["getClassSet"])(bsProps), {
      'pull-right': pullRight,
      // Hack for collapsing on IE8.
      hidden: !this.hasContent(children)
    });

    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }), children);
  };

  return Badge;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

Badge.propTypes = propTypes;
Badge.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["bsClass"])('badge', Badge));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/Breadcrumb.js":
/*!*******************************************************!*\
  !*** ./node_modules/react-bootstrap/es/Breadcrumb.js ***!
  \*******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _BreadcrumbItem__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./BreadcrumbItem */ "./node_modules/react-bootstrap/es/BreadcrumbItem.js");
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");








var Breadcrumb =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Breadcrumb, _React$Component);

  function Breadcrumb() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Breadcrumb.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["getClassSet"])(bsProps);
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("ol", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      role: "navigation",
      "aria-label": "breadcrumbs",
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return Breadcrumb;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

Breadcrumb.Item = _BreadcrumbItem__WEBPACK_IMPORTED_MODULE_5__["default"];
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["bsClass"])('breadcrumb', Breadcrumb));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/BreadcrumbItem.js":
/*!***********************************************************!*\
  !*** ./node_modules/react-bootstrap/es/BreadcrumbItem.js ***!
  \***********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _SafeAnchor__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./SafeAnchor */ "./node_modules/react-bootstrap/es/SafeAnchor.js");







var propTypes = {
  /**
   * If set to true, renders `span` instead of `a`
   */
  active: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,

  /**
   * `href` attribute for the inner `a` element
   */
  href: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,

  /**
   * `title` attribute for the inner `a` element
   */
  title: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.node,

  /**
   * `target` attribute for the inner `a` element
   */
  target: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string
};
var defaultProps = {
  active: false
};

var BreadcrumbItem =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(BreadcrumbItem, _React$Component);

  function BreadcrumbItem() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = BreadcrumbItem.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        active = _this$props.active,
        href = _this$props.href,
        title = _this$props.title,
        target = _this$props.target,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["active", "href", "title", "target", "className"]); // Don't try to render these props on non-active <span>.


    var linkProps = {
      href: href,
      title: title,
      target: target
    };
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("li", {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, {
        active: active
      })
    }, active ? react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", props) : react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(_SafeAnchor__WEBPACK_IMPORTED_MODULE_6__["default"], Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, linkProps)));
  };

  return BreadcrumbItem;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

BreadcrumbItem.propTypes = propTypes;
BreadcrumbItem.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (BreadcrumbItem);

/***/ }),

/***/ "./node_modules/react-bootstrap/es/Button.js":
/*!***************************************************!*\
  !*** ./node_modules/react-bootstrap/es/Button.js ***!
  \***************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_core_js_object_values__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/values */ "./node_modules/@babel/runtime-corejs2/core-js/object/values.js");
/* harmony import */ var _babel_runtime_corejs2_core_js_object_values__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs2_core_js_object_values__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils/StyleConfig */ "./node_modules/react-bootstrap/es/utils/StyleConfig.js");
/* harmony import */ var _SafeAnchor__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./SafeAnchor */ "./node_modules/react-bootstrap/es/SafeAnchor.js");











var propTypes = {
  active: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  disabled: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  block: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7___default.a,
  href: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,

  /**
   * Defines HTML button type attribute
   * @defaultValue 'button'
   */
  type: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOf(['button', 'reset', 'submit'])
};
var defaultProps = {
  active: false,
  block: false,
  disabled: false
};

var Button =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(Button, _React$Component);

  function Button() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Button.prototype;

  _proto.renderAnchor = function renderAnchor(elementProps, className) {
    return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_SafeAnchor__WEBPACK_IMPORTED_MODULE_10__["default"], Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, elementProps.disabled && 'disabled')
    }));
  };

  _proto.renderButton = function renderButton(_ref, className) {
    var componentClass = _ref.componentClass,
        elementProps = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["componentClass"]);

    var Component = componentClass || 'button';
    return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, elementProps, {
      type: elementProps.type || 'button',
      className: className
    }));
  };

  _proto.render = function render() {
    var _extends2;

    var _this$props = this.props,
        active = _this$props.active,
        block = _this$props.block,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["active", "block", "className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["getClassSet"])(bsProps), (_extends2 = {
      active: active
    }, _extends2[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["prefix"])(bsProps, 'block')] = block, _extends2));

    var fullClassName = classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, classes);

    if (elementProps.href) {
      return this.renderAnchor(elementProps, fullClassName);
    }

    return this.renderButton(elementProps, fullClassName);
  };

  return Button;
}(react__WEBPACK_IMPORTED_MODULE_5___default.a.Component);

Button.propTypes = propTypes;
Button.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["bsClass"])('btn', Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["bsSizes"])([_utils_StyleConfig__WEBPACK_IMPORTED_MODULE_9__["Size"].LARGE, _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_9__["Size"].SMALL, _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_9__["Size"].XSMALL], Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["bsStyles"])(_babel_runtime_corejs2_core_js_object_values__WEBPACK_IMPORTED_MODULE_0___default()(_utils_StyleConfig__WEBPACK_IMPORTED_MODULE_9__["State"]).concat([_utils_StyleConfig__WEBPACK_IMPORTED_MODULE_9__["Style"].DEFAULT, _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_9__["Style"].PRIMARY, _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_9__["Style"].LINK]), _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_9__["Style"].DEFAULT, Button))));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/ButtonGroup.js":
/*!********************************************************!*\
  !*** ./node_modules/react-bootstrap/es/ButtonGroup.js ***!
  \********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types-extra/lib/all */ "./node_modules/prop-types-extra/lib/all.js");
/* harmony import */ var prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Button */ "./node_modules/react-bootstrap/es/Button.js");
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");









var propTypes = {
  vertical: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,
  justified: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,

  /**
   * Display block buttons; only useful when used with the "vertical" prop.
   * @type {bool}
   */
  block: prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_6___default()(prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool, function (_ref) {
    var block = _ref.block,
        vertical = _ref.vertical;
    return block && !vertical ? new Error('`block` requires `vertical` to be set to have any effect') : null;
  })
};
var defaultProps = {
  block: false,
  justified: false,
  vertical: false
};

var ButtonGroup =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(ButtonGroup, _React$Component);

  function ButtonGroup() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = ButtonGroup.prototype;

  _proto.render = function render() {
    var _extends2;

    var _this$props = this.props,
        block = _this$props.block,
        justified = _this$props.justified,
        vertical = _this$props.vertical,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["block", "justified", "vertical", "className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["getClassSet"])(bsProps), (_extends2 = {}, _extends2[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["prefix"])(bsProps)] = !vertical, _extends2[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["prefix"])(bsProps, 'vertical')] = vertical, _extends2[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["prefix"])(bsProps, 'justified')] = justified, _extends2[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["prefix"])(_Button__WEBPACK_IMPORTED_MODULE_7__["default"].defaultProps, 'block')] = block, _extends2));

    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return ButtonGroup;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

ButtonGroup.propTypes = propTypes;
ButtonGroup.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["bsClass"])('btn-group', ButtonGroup));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/Checkbox.js":
/*!*****************************************************!*\
  !*** ./node_modules/react-bootstrap/es/Checkbox.js ***!
  \*****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! warning */ "./node_modules/warning/browser.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");




/* eslint-disable jsx-a11y/label-has-for */





var propTypes = {
  inline: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,
  disabled: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,
  title: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,

  /**
   * Only valid if `inline` is not set.
   */
  validationState: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOf(['success', 'warning', 'error', null]),

  /**
   * Attaches a ref to the `<input>` element. Only functions can be used here.
   *
   * ```js
   * <Checkbox inputRef={ref => { this.input = ref; }} />
   * ```
   */
  inputRef: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func
};
var defaultProps = {
  inline: false,
  disabled: false,
  title: ''
};

var Checkbox =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Checkbox, _React$Component);

  function Checkbox() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Checkbox.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        inline = _this$props.inline,
        disabled = _this$props.disabled,
        validationState = _this$props.validationState,
        inputRef = _this$props.inputRef,
        className = _this$props.className,
        style = _this$props.style,
        title = _this$props.title,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["inline", "disabled", "validationState", "inputRef", "className", "style", "title", "children"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var input = react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("input", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      ref: inputRef,
      type: "checkbox",
      disabled: disabled
    }));

    if (inline) {
      var _classes2;

      var _classes = (_classes2 = {}, _classes2[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["prefix"])(bsProps, 'inline')] = true, _classes2.disabled = disabled, _classes2); // Use a warning here instead of in propTypes to get better-looking
      // generated documentation.


       true ? warning__WEBPACK_IMPORTED_MODULE_6___default()(!validationState, '`validationState` is ignored on `<Checkbox inline>`. To display ' + 'validation state on an inline checkbox, set `validationState` on a ' + 'parent `<FormGroup>` or other element instead.') : undefined;
      return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("label", {
        className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, _classes),
        style: style,
        title: title
      }, input, children);
    }

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["getClassSet"])(bsProps), {
      disabled: disabled
    });

    if (validationState) {
      classes["has-" + validationState] = true;
    }

    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes),
      style: style
    }, react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("label", {
      title: title
    }, input, children));
  };

  return Checkbox;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

Checkbox.propTypes = propTypes;
Checkbox.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsClass"])('checkbox', Checkbox));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/Clearfix.js":
/*!*****************************************************!*\
  !*** ./node_modules/react-bootstrap/es/Clearfix.js ***!
  \*****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_capitalize__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/capitalize */ "./node_modules/react-bootstrap/es/utils/capitalize.js");
/* harmony import */ var _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils/StyleConfig */ "./node_modules/react-bootstrap/es/utils/StyleConfig.js");










var propTypes = {
  componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6___default.a,

  /**
   * Apply clearfix
   *
   * on Extra small devices Phones
   *
   * adds class `visible-xs-block`
   */
  visibleXsBlock: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,

  /**
   * Apply clearfix
   *
   * on Small devices Tablets
   *
   * adds class `visible-sm-block`
   */
  visibleSmBlock: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,

  /**
   * Apply clearfix
   *
   * on Medium devices Desktops
   *
   * adds class `visible-md-block`
   */
  visibleMdBlock: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,

  /**
   * Apply clearfix
   *
   * on Large devices Desktops
   *
   * adds class `visible-lg-block`
   */
  visibleLgBlock: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool
};
var defaultProps = {
  componentClass: 'div'
};

var Clearfix =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Clearfix, _React$Component);

  function Clearfix() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Clearfix.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        Component = _this$props.componentClass,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["componentClass", "className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["getClassSet"])(bsProps);
    _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_9__["DEVICE_SIZES"].forEach(function (size) {
      var propName = "visible" + Object(_utils_capitalize__WEBPACK_IMPORTED_MODULE_8__["default"])(size) + "Block";

      if (elementProps[propName]) {
        classes["visible-" + size + "-block"] = true;
      }

      delete elementProps[propName];
    });
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return Clearfix;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

Clearfix.propTypes = propTypes;
Clearfix.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsClass"])('clearfix', Clearfix));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/CloseButton.js":
/*!********************************************************!*\
  !*** ./node_modules/react-bootstrap/es/CloseButton.js ***!
  \********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);



var propTypes = {
  label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
var defaultProps = {
  label: 'Close'
};

var CloseButton =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(CloseButton, _React$Component);

  function CloseButton() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = CloseButton.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        label = _this$props.label,
        onClick = _this$props.onClick;
    return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("button", {
      type: "button",
      className: "close",
      onClick: onClick
    }, react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", {
      "aria-hidden": "true"
    }, "\xD7"), react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", {
      className: "sr-only"
    }, label));
  };

  return CloseButton;
}(react__WEBPACK_IMPORTED_MODULE_2___default.a.Component);

CloseButton.propTypes = propTypes;
CloseButton.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (CloseButton);

/***/ }),

/***/ "./node_modules/react-bootstrap/es/Col.js":
/*!************************************************!*\
  !*** ./node_modules/react-bootstrap/es/Col.js ***!
  \************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/StyleConfig */ "./node_modules/react-bootstrap/es/utils/StyleConfig.js");









var propTypes = {
  componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6___default.a,

  /**
   * The number of columns you wish to span
   *
   * for Extra small devices Phones (<768px)
   *
   * class-prefix `col-xs-`
   */
  xs: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number,

  /**
   * The number of columns you wish to span
   *
   * for Small devices Tablets (≥768px)
   *
   * class-prefix `col-sm-`
   */
  sm: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number,

  /**
   * The number of columns you wish to span
   *
   * for Medium devices Desktops (≥992px)
   *
   * class-prefix `col-md-`
   */
  md: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number,

  /**
   * The number of columns you wish to span
   *
   * for Large devices Desktops (≥1200px)
   *
   * class-prefix `col-lg-`
   */
  lg: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number,

  /**
   * Hide column
   *
   * on Extra small devices Phones
   *
   * adds class `hidden-xs`
   */
  xsHidden: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,

  /**
   * Hide column
   *
   * on Small devices Tablets
   *
   * adds class `hidden-sm`
   */
  smHidden: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,

  /**
   * Hide column
   *
   * on Medium devices Desktops
   *
   * adds class `hidden-md`
   */
  mdHidden: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,

  /**
   * Hide column
   *
   * on Large devices Desktops
   *
   * adds class `hidden-lg`
   */
  lgHidden: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,

  /**
   * Move columns to the right
   *
   * for Extra small devices Phones
   *
   * class-prefix `col-xs-offset-`
   */
  xsOffset: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number,

  /**
   * Move columns to the right
   *
   * for Small devices Tablets
   *
   * class-prefix `col-sm-offset-`
   */
  smOffset: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number,

  /**
   * Move columns to the right
   *
   * for Medium devices Desktops
   *
   * class-prefix `col-md-offset-`
   */
  mdOffset: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number,

  /**
   * Move columns to the right
   *
   * for Large devices Desktops
   *
   * class-prefix `col-lg-offset-`
   */
  lgOffset: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number,

  /**
   * Change the order of grid columns to the right
   *
   * for Extra small devices Phones
   *
   * class-prefix `col-xs-push-`
   */
  xsPush: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number,

  /**
   * Change the order of grid columns to the right
   *
   * for Small devices Tablets
   *
   * class-prefix `col-sm-push-`
   */
  smPush: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number,

  /**
   * Change the order of grid columns to the right
   *
   * for Medium devices Desktops
   *
   * class-prefix `col-md-push-`
   */
  mdPush: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number,

  /**
   * Change the order of grid columns to the right
   *
   * for Large devices Desktops
   *
   * class-prefix `col-lg-push-`
   */
  lgPush: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number,

  /**
   * Change the order of grid columns to the left
   *
   * for Extra small devices Phones
   *
   * class-prefix `col-xs-pull-`
   */
  xsPull: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number,

  /**
   * Change the order of grid columns to the left
   *
   * for Small devices Tablets
   *
   * class-prefix `col-sm-pull-`
   */
  smPull: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number,

  /**
   * Change the order of grid columns to the left
   *
   * for Medium devices Desktops
   *
   * class-prefix `col-md-pull-`
   */
  mdPull: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number,

  /**
   * Change the order of grid columns to the left
   *
   * for Large devices Desktops
   *
   * class-prefix `col-lg-pull-`
   */
  lgPull: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number
};
var defaultProps = {
  componentClass: 'div'
};

var Col =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Col, _React$Component);

  function Col() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Col.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        Component = _this$props.componentClass,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["componentClass", "className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = [];
    _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_8__["DEVICE_SIZES"].forEach(function (size) {
      function popProp(propSuffix, modifier) {
        var propName = "" + size + propSuffix;
        var propValue = elementProps[propName];

        if (propValue != null) {
          classes.push(Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["prefix"])(bsProps, "" + size + modifier + "-" + propValue));
        }

        delete elementProps[propName];
      }

      popProp('', '');
      popProp('Offset', '-offset');
      popProp('Push', '-push');
      popProp('Pull', '-pull');
      var hiddenPropName = size + "Hidden";

      if (elementProps[hiddenPropName]) {
        classes.push("hidden-" + size);
      }

      delete elementProps[hiddenPropName];
    });
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return Col;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

Col.propTypes = propTypes;
Col.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsClass"])('col', Col));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/Collapse.js":
/*!*****************************************************!*\
  !*** ./node_modules/react-bootstrap/es/Collapse.js ***!
  \*****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var _babel_runtime_corejs2_core_js_parse_int__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs2/core-js/parse-int */ "./node_modules/@babel/runtime-corejs2/core-js/parse-int.js");
/* harmony import */ var _babel_runtime_corejs2_core_js_parse_int__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs2_core_js_parse_int__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var dom_helpers_style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! dom-helpers/style */ "./node_modules/dom-helpers/style/index.js");
/* harmony import */ var dom_helpers_style__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(dom_helpers_style__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-transition-group/Transition */ "./node_modules/react-transition-group/Transition.js");
/* harmony import */ var react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var _utils_capitalize__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils/capitalize */ "./node_modules/react-bootstrap/es/utils/capitalize.js");
/* harmony import */ var _utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/createChainedFunction */ "./node_modules/react-bootstrap/es/utils/createChainedFunction.js");





var _collapseStyles;








var MARGINS = {
  height: ['marginTop', 'marginBottom'],
  width: ['marginLeft', 'marginRight']
}; // reading a dimension prop will cause the browser to recalculate,
// which will let our animations work

function triggerBrowserReflow(node) {
  node.offsetHeight; // eslint-disable-line no-unused-expressions
}

function getDimensionValue(dimension, elem) {
  var value = elem["offset" + Object(_utils_capitalize__WEBPACK_IMPORTED_MODULE_9__["default"])(dimension)];
  var margins = MARGINS[dimension];
  return value + _babel_runtime_corejs2_core_js_parse_int__WEBPACK_IMPORTED_MODULE_3___default()(dom_helpers_style__WEBPACK_IMPORTED_MODULE_5___default()(elem, margins[0]), 10) + _babel_runtime_corejs2_core_js_parse_int__WEBPACK_IMPORTED_MODULE_3___default()(dom_helpers_style__WEBPACK_IMPORTED_MODULE_5___default()(elem, margins[1]), 10);
}

var collapseStyles = (_collapseStyles = {}, _collapseStyles[react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_8__["EXITED"]] = 'collapse', _collapseStyles[react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_8__["EXITING"]] = 'collapsing', _collapseStyles[react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_8__["ENTERING"]] = 'collapsing', _collapseStyles[react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_8__["ENTERED"]] = 'collapse in', _collapseStyles);
var propTypes = {
  /**
   * Show the component; triggers the expand or collapse animation
   */
  in: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.bool,

  /**
   * Wait until the first "enter" transition to mount the component (add it to the DOM)
   */
  mountOnEnter: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.bool,

  /**
   * Unmount the component (remove it from the DOM) when it is collapsed
   */
  unmountOnExit: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.bool,

  /**
   * Run the expand animation when the component mounts, if it is initially
   * shown
   */
  appear: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.bool,

  /**
   * Duration of the collapse animation in milliseconds, to ensure that
   * finishing callbacks are fired even if the original browser transition end
   * events are canceled
   */
  timeout: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.number,

  /**
   * Callback fired before the component expands
   */
  onEnter: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,

  /**
   * Callback fired after the component starts to expand
   */
  onEntering: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,

  /**
   * Callback fired after the component has expanded
   */
  onEntered: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,

  /**
   * Callback fired before the component collapses
   */
  onExit: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,

  /**
   * Callback fired after the component starts to collapse
   */
  onExiting: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,

  /**
   * Callback fired after the component has collapsed
   */
  onExited: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,

  /**
   * The dimension used when collapsing, or a function that returns the
   * dimension
   *
   * _Note: Bootstrap only partially supports 'width'!
   * You will need to supply your own CSS animation for the `.width` CSS class._
   */
  dimension: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.oneOf(['height', 'width']), prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func]),

  /**
   * Function that returns the height or width of the animating DOM node
   *
   * Allows for providing some custom logic for how much the Collapse component
   * should animate in its specified dimension. Called with the current
   * dimension prop value and the DOM node.
   */
  getDimensionValue: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,

  /**
   * ARIA role of collapsible element
   */
  role: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.string
};
var defaultProps = {
  in: false,
  timeout: 300,
  mountOnEnter: false,
  unmountOnExit: false,
  appear: false,
  dimension: 'height',
  getDimensionValue: getDimensionValue
};

var Collapse =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Collapse, _React$Component);

  function Collapse() {
    var _this;

    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;

    _this.handleEnter = function (elem) {
      elem.style[_this.getDimension()] = '0';
    };

    _this.handleEntering = function (elem) {
      var dimension = _this.getDimension();

      elem.style[dimension] = _this._getScrollDimensionValue(elem, dimension);
    };

    _this.handleEntered = function (elem) {
      elem.style[_this.getDimension()] = null;
    };

    _this.handleExit = function (elem) {
      var dimension = _this.getDimension();

      elem.style[dimension] = _this.props.getDimensionValue(dimension, elem) + "px";
      triggerBrowserReflow(elem);
    };

    _this.handleExiting = function (elem) {
      elem.style[_this.getDimension()] = '0';
    };

    return _this;
  }

  var _proto = Collapse.prototype;

  _proto.getDimension = function getDimension() {
    return typeof this.props.dimension === 'function' ? this.props.dimension() : this.props.dimension;
  }; // for testing


  _proto._getScrollDimensionValue = function _getScrollDimensionValue(elem, dimension) {
    return elem["scroll" + Object(_utils_capitalize__WEBPACK_IMPORTED_MODULE_9__["default"])(dimension)] + "px";
  };
  /* -- Expanding -- */


  _proto.render = function render() {
    var _this2 = this;

    var _this$props = this.props,
        onEnter = _this$props.onEnter,
        onEntering = _this$props.onEntering,
        onEntered = _this$props.onEntered,
        onExit = _this$props.onExit,
        onExiting = _this$props.onExiting,
        className = _this$props.className,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children"]);

    delete props.dimension;
    delete props.getDimensionValue;
    var handleEnter = Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_10__["default"])(this.handleEnter, onEnter);
    var handleEntering = Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_10__["default"])(this.handleEntering, onEntering);
    var handleEntered = Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_10__["default"])(this.handleEntered, onEntered);
    var handleExit = Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_10__["default"])(this.handleExit, onExit);
    var handleExiting = Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_10__["default"])(this.handleExiting, onExiting);
    return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_8___default.a, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
      "aria-expanded": props.role ? props.in : null,
      onEnter: handleEnter,
      onEntering: handleEntering,
      onEntered: handleEntered,
      onExit: handleExit,
      onExiting: handleExiting
    }), function (state, innerProps) {
      return react__WEBPACK_IMPORTED_MODULE_6___default.a.cloneElement(children, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, innerProps, {
        className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, children.props.className, collapseStyles[state], _this2.getDimension() === 'width' && 'width')
      }));
    });
  };

  return Collapse;
}(react__WEBPACK_IMPORTED_MODULE_6___default.a.Component);

Collapse.propTypes = propTypes;
Collapse.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Collapse);

/***/ }),

/***/ "./node_modules/react-bootstrap/es/ControlLabel.js":
/*!*********************************************************!*\
  !*** ./node_modules/react-bootstrap/es/ControlLabel.js ***!
  \*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! warning */ "./node_modules/warning/browser.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");








var propTypes = {
  /**
   * Uses `controlId` from `<FormGroup>` if not explicitly specified.
   */
  htmlFor: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,
  srOnly: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool
};
var defaultProps = {
  srOnly: false
};
var contextTypes = {
  $bs_formGroup: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.object
};

var ControlLabel =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(ControlLabel, _React$Component);

  function ControlLabel() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = ControlLabel.prototype;

  _proto.render = function render() {
    var formGroup = this.context.$bs_formGroup;
    var controlId = formGroup && formGroup.controlId;

    var _this$props = this.props,
        _this$props$htmlFor = _this$props.htmlFor,
        htmlFor = _this$props$htmlFor === void 0 ? controlId : _this$props$htmlFor,
        srOnly = _this$props.srOnly,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["htmlFor", "srOnly", "className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

     true ? warning__WEBPACK_IMPORTED_MODULE_6___default()(controlId == null || htmlFor === controlId, '`controlId` is ignored on `<ControlLabel>` when `htmlFor` is specified.') : undefined;

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["getClassSet"])(bsProps), {
      'sr-only': srOnly
    });

    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("label", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      htmlFor: htmlFor,
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return ControlLabel;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

ControlLabel.propTypes = propTypes;
ControlLabel.defaultProps = defaultProps;
ControlLabel.contextTypes = contextTypes;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsClass"])('control-label', ControlLabel));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/Dropdown.js":
/*!*****************************************************!*\
  !*** ./node_modules/react-bootstrap/es/Dropdown.js ***!
  \*****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime-corejs2/helpers/esm/assertThisInitialized.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var dom_helpers_activeElement__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! dom-helpers/activeElement */ "./node_modules/dom-helpers/activeElement.js");
/* harmony import */ var dom_helpers_activeElement__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(dom_helpers_activeElement__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var dom_helpers_query_contains__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! dom-helpers/query/contains */ "./node_modules/dom-helpers/query/contains.js");
/* harmony import */ var dom_helpers_query_contains__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(dom_helpers_query_contains__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var keycode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! keycode */ "./node_modules/keycode/index.js");
/* harmony import */ var keycode__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(keycode__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! prop-types-extra/lib/all */ "./node_modules/prop-types-extra/lib/all.js");
/* harmony import */ var prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_12__);
/* harmony import */ var prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! prop-types-extra/lib/isRequiredForA11y */ "./node_modules/prop-types-extra/lib/isRequiredForA11y.js");
/* harmony import */ var prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_13__);
/* harmony import */ var uncontrollable__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! uncontrollable */ "./node_modules/uncontrollable/index.js");
/* harmony import */ var uncontrollable__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(uncontrollable__WEBPACK_IMPORTED_MODULE_14__);
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! warning */ "./node_modules/warning/browser.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_15__);
/* harmony import */ var _ButtonGroup__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./ButtonGroup */ "./node_modules/react-bootstrap/es/ButtonGroup.js");
/* harmony import */ var _DropdownMenu__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./DropdownMenu */ "./node_modules/react-bootstrap/es/DropdownMenu.js");
/* harmony import */ var _DropdownToggle__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./DropdownToggle */ "./node_modules/react-bootstrap/es/DropdownToggle.js");
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./utils/createChainedFunction */ "./node_modules/react-bootstrap/es/utils/createChainedFunction.js");
/* harmony import */ var _utils_PropTypes__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./utils/PropTypes */ "./node_modules/react-bootstrap/es/utils/PropTypes.js");
/* harmony import */ var _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./utils/ValidComponentChildren */ "./node_modules/react-bootstrap/es/utils/ValidComponentChildren.js");























var TOGGLE_ROLE = _DropdownToggle__WEBPACK_IMPORTED_MODULE_18__["default"].defaultProps.bsRole;
var MENU_ROLE = _DropdownMenu__WEBPACK_IMPORTED_MODULE_17__["default"].defaultProps.bsRole;
var propTypes = {
  /**
   * The menu will open above the dropdown button, instead of below it.
   */
  dropup: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.bool,

  /**
   * An html id attribute, necessary for assistive technologies, such as screen readers.
   * @type {string|number}
   * @required
   */
  id: prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_13___default()(prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.number])),
  componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_12___default.a,

  /**
   * The children of a Dropdown may be a `<Dropdown.Toggle>` or a `<Dropdown.Menu>`.
   * @type {node}
   */
  children: prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_11___default()(Object(_utils_PropTypes__WEBPACK_IMPORTED_MODULE_21__["requiredRoles"])(TOGGLE_ROLE, MENU_ROLE), Object(_utils_PropTypes__WEBPACK_IMPORTED_MODULE_21__["exclusiveRoles"])(MENU_ROLE)),

  /**
   * Whether or not component is disabled.
   */
  disabled: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.bool,

  /**
   * Align the menu to the right side of the Dropdown toggle
   */
  pullRight: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.bool,

  /**
   * Whether or not the Dropdown is visible.
   *
   * @controllable onToggle
   */
  open: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.bool,
  defaultOpen: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.bool,

  /**
   * A callback fired when the Dropdown wishes to change visibility. Called with the requested
   * `open` value, the DOM event, and the source that fired it: `'click'`,`'keydown'`,`'rootClose'`, or `'select'`.
   *
   * ```js
   * function(Boolean isOpen, Object event, { String source }) {}
   * ```
   * @controllable open
   */
  onToggle: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func,

  /**
   * A callback fired when a menu item is selected.
   *
   * ```js
   * (eventKey: any, event: Object) => any
   * ```
   */
  onSelect: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func,

  /**
   * If `'menuitem'`, causes the dropdown to behave like a menu item rather than
   * a menu button.
   */
  role: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.string,

  /**
   * Which event when fired outside the component will cause it to be closed
   *
   * *Note: For custom dropdown components, you will have to pass the
   * `rootCloseEvent` to `<RootCloseWrapper>` in your custom dropdown menu
   * component ([similarly to how it is implemented in `<Dropdown.Menu>`](https://github.com/react-bootstrap/react-bootstrap/blob/v0.31.5/src/DropdownMenu.js#L115-L119)).*
   */
  rootCloseEvent: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.oneOf(['click', 'mousedown']),

  /**
   * @private
   */
  onMouseEnter: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func,

  /**
   * @private
   */
  onMouseLeave: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func
};
var defaultProps = {
  componentClass: _ButtonGroup__WEBPACK_IMPORTED_MODULE_16__["default"]
};

var Dropdown =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Dropdown, _React$Component);

  function Dropdown(props, context) {
    var _this;

    _this = _React$Component.call(this, props, context) || this;
    _this.handleClick = _this.handleClick.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this)));
    _this.handleKeyDown = _this.handleKeyDown.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this)));
    _this.handleClose = _this.handleClose.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this)));
    _this._focusInDropdown = false;
    _this.lastOpenEventType = null;
    return _this;
  }

  var _proto = Dropdown.prototype;

  _proto.componentDidMount = function componentDidMount() {
    this.focusNextOnOpen();
  };

  _proto.componentWillUpdate = function componentWillUpdate(nextProps) {
    if (!nextProps.open && this.props.open) {
      this._focusInDropdown = dom_helpers_query_contains__WEBPACK_IMPORTED_MODULE_6___default()(react_dom__WEBPACK_IMPORTED_MODULE_10___default.a.findDOMNode(this.menu), dom_helpers_activeElement__WEBPACK_IMPORTED_MODULE_5___default()(document));
    }
  };

  _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
    var open = this.props.open;
    var prevOpen = prevProps.open;

    if (open && !prevOpen) {
      this.focusNextOnOpen();
    }

    if (!open && prevOpen) {
      // if focus hasn't already moved from the menu let's return it
      // to the toggle
      if (this._focusInDropdown) {
        this._focusInDropdown = false;
        this.focus();
      }
    }
  };

  _proto.focus = function focus() {
    var toggle = react_dom__WEBPACK_IMPORTED_MODULE_10___default.a.findDOMNode(this.toggle);

    if (toggle && toggle.focus) {
      toggle.focus();
    }
  };

  _proto.focusNextOnOpen = function focusNextOnOpen() {
    var menu = this.menu;

    if (!menu || !menu.focusNext) {
      return;
    }

    if (this.lastOpenEventType === 'keydown' || this.props.role === 'menuitem') {
      menu.focusNext();
    }
  };

  _proto.handleClick = function handleClick(event) {
    if (this.props.disabled) {
      return;
    }

    this.toggleOpen(event, {
      source: 'click'
    });
  };

  _proto.handleClose = function handleClose(event, eventDetails) {
    if (!this.props.open) {
      return;
    }

    this.toggleOpen(event, eventDetails);
  };

  _proto.handleKeyDown = function handleKeyDown(event) {
    if (this.props.disabled) {
      return;
    }

    switch (event.keyCode) {
      case keycode__WEBPACK_IMPORTED_MODULE_7___default.a.codes.down:
        if (!this.props.open) {
          this.toggleOpen(event, {
            source: 'keydown'
          });
        } else if (this.menu.focusNext) {
          this.menu.focusNext();
        }

        event.preventDefault();
        break;

      case keycode__WEBPACK_IMPORTED_MODULE_7___default.a.codes.esc:
      case keycode__WEBPACK_IMPORTED_MODULE_7___default.a.codes.tab:
        this.handleClose(event, {
          source: 'keydown'
        });
        break;

      default:
    }
  };

  _proto.toggleOpen = function toggleOpen(event, eventDetails) {
    var open = !this.props.open;

    if (open) {
      this.lastOpenEventType = eventDetails.source;
    }

    if (this.props.onToggle) {
      this.props.onToggle(open, event, eventDetails);
    }
  };

  _proto.renderMenu = function renderMenu(child, _ref) {
    var _this2 = this;

    var id = _ref.id,
        onSelect = _ref.onSelect,
        rootCloseEvent = _ref.rootCloseEvent,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["id", "onSelect", "rootCloseEvent"]);

    var ref = function ref(c) {
      _this2.menu = c;
    };

    if (typeof child.ref === 'string') {
       true ? warning__WEBPACK_IMPORTED_MODULE_15___default()(false, 'String refs are not supported on `<Dropdown.Menu>` components. ' + 'To apply a ref to the component use the callback signature:\n\n ' + 'https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute') : undefined;
    } else {
      ref = Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_20__["default"])(child.ref, ref);
    }

    return Object(react__WEBPACK_IMPORTED_MODULE_8__["cloneElement"])(child, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
      ref: ref,
      labelledBy: id,
      bsClass: Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_19__["prefix"])(props, 'menu'),
      onClose: Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_20__["default"])(child.props.onClose, this.handleClose),
      onSelect: Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_20__["default"])(child.props.onSelect, onSelect, function (key, event) {
        return _this2.handleClose(event, {
          source: 'select'
        });
      }),
      rootCloseEvent: rootCloseEvent
    }));
  };

  _proto.renderToggle = function renderToggle(child, props) {
    var _this3 = this;

    var ref = function ref(c) {
      _this3.toggle = c;
    };

    if (typeof child.ref === 'string') {
       true ? warning__WEBPACK_IMPORTED_MODULE_15___default()(false, 'String refs are not supported on `<Dropdown.Toggle>` components. ' + 'To apply a ref to the component use the callback signature:\n\n ' + 'https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute') : undefined;
    } else {
      ref = Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_20__["default"])(child.ref, ref);
    }

    return Object(react__WEBPACK_IMPORTED_MODULE_8__["cloneElement"])(child, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
      ref: ref,
      bsClass: Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_19__["prefix"])(props, 'toggle'),
      onClick: Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_20__["default"])(child.props.onClick, this.handleClick),
      onKeyDown: Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_20__["default"])(child.props.onKeyDown, this.handleKeyDown)
    }));
  };

  _proto.render = function render() {
    var _classes,
        _this4 = this;

    var _this$props = this.props,
        Component = _this$props.componentClass,
        id = _this$props.id,
        dropup = _this$props.dropup,
        disabled = _this$props.disabled,
        pullRight = _this$props.pullRight,
        open = _this$props.open,
        onSelect = _this$props.onSelect,
        role = _this$props.role,
        bsClass = _this$props.bsClass,
        className = _this$props.className,
        rootCloseEvent = _this$props.rootCloseEvent,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["componentClass", "id", "dropup", "disabled", "pullRight", "open", "onSelect", "role", "bsClass", "className", "rootCloseEvent", "children"]);

    delete props.onToggle;
    var classes = (_classes = {}, _classes[bsClass] = true, _classes.open = open, _classes.disabled = disabled, _classes);

    if (dropup) {
      classes[bsClass] = false;
      classes.dropup = true;
    } // This intentionally forwards bsSize and bsStyle (if set) to the
    // underlying component, to allow it to render size and style variants.


    return react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
      className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, classes)
    }), _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_22__["default"].map(children, function (child) {
      switch (child.props.bsRole) {
        case TOGGLE_ROLE:
          return _this4.renderToggle(child, {
            id: id,
            disabled: disabled,
            open: open,
            role: role,
            bsClass: bsClass
          });

        case MENU_ROLE:
          return _this4.renderMenu(child, {
            id: id,
            open: open,
            pullRight: pullRight,
            bsClass: bsClass,
            onSelect: onSelect,
            rootCloseEvent: rootCloseEvent
          });

        default:
          return child;
      }
    }));
  };

  return Dropdown;
}(react__WEBPACK_IMPORTED_MODULE_8___default.a.Component);

Dropdown.propTypes = propTypes;
Dropdown.defaultProps = defaultProps;
Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_19__["bsClass"])('dropdown', Dropdown);
var UncontrolledDropdown = uncontrollable__WEBPACK_IMPORTED_MODULE_14___default()(Dropdown, {
  open: 'onToggle'
});
UncontrolledDropdown.Toggle = _DropdownToggle__WEBPACK_IMPORTED_MODULE_18__["default"];
UncontrolledDropdown.Menu = _DropdownMenu__WEBPACK_IMPORTED_MODULE_17__["default"];
/* harmony default export */ __webpack_exports__["default"] = (UncontrolledDropdown);

/***/ }),

/***/ "./node_modules/react-bootstrap/es/DropdownButton.js":
/*!***********************************************************!*\
  !*** ./node_modules/react-bootstrap/es/DropdownButton.js ***!
  \***********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Dropdown */ "./node_modules/react-bootstrap/es/Dropdown.js");
/* harmony import */ var _utils_splitComponentProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/splitComponentProps */ "./node_modules/react-bootstrap/es/utils/splitComponentProps.js");








var propTypes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, _Dropdown__WEBPACK_IMPORTED_MODULE_5__["default"].propTypes, {
  // Toggle props.
  bsStyle: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
  bsSize: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
  title: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.node.isRequired,
  noCaret: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
  // Override generated docs from <Dropdown>.

  /**
   * @private
   */
  children: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.node
});

var DropdownButton =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(DropdownButton, _React$Component);

  function DropdownButton() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = DropdownButton.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        bsSize = _this$props.bsSize,
        bsStyle = _this$props.bsStyle,
        title = _this$props.title,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_this$props, ["bsSize", "bsStyle", "title", "children"]);

    var _splitComponentProps = Object(_utils_splitComponentProps__WEBPACK_IMPORTED_MODULE_6__["default"])(props, _Dropdown__WEBPACK_IMPORTED_MODULE_5__["default"].ControlledComponent),
        dropdownProps = _splitComponentProps[0],
        toggleProps = _splitComponentProps[1];

    return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_5__["default"], Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, dropdownProps, {
      bsSize: bsSize,
      bsStyle: bsStyle
    }), react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_5__["default"].Toggle, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, toggleProps, {
      bsSize: bsSize,
      bsStyle: bsStyle
    }), title), react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_5__["default"].Menu, null, children));
  };

  return DropdownButton;
}(react__WEBPACK_IMPORTED_MODULE_3___default.a.Component);

DropdownButton.propTypes = propTypes;
/* harmony default export */ __webpack_exports__["default"] = (DropdownButton);

/***/ }),

/***/ "./node_modules/react-bootstrap/es/DropdownMenu.js":
/*!*********************************************************!*\
  !*** ./node_modules/react-bootstrap/es/DropdownMenu.js ***!
  \*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_core_js_array_from__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/core-js/array/from */ "./node_modules/@babel/runtime-corejs2/core-js/array/from.js");
/* harmony import */ var _babel_runtime_corejs2_core_js_array_from__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs2_core_js_array_from__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime-corejs2/helpers/esm/assertThisInitialized.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var keycode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! keycode */ "./node_modules/keycode/index.js");
/* harmony import */ var keycode__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(keycode__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var react_overlays_lib_RootCloseWrapper__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-overlays/lib/RootCloseWrapper */ "./node_modules/react-overlays/lib/RootCloseWrapper.js");
/* harmony import */ var react_overlays_lib_RootCloseWrapper__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(react_overlays_lib_RootCloseWrapper__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./utils/createChainedFunction */ "./node_modules/react-bootstrap/es/utils/createChainedFunction.js");
/* harmony import */ var _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./utils/ValidComponentChildren */ "./node_modules/react-bootstrap/es/utils/ValidComponentChildren.js");














var propTypes = {
  open: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.bool,
  pullRight: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.bool,
  onClose: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.func,
  labelledBy: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.number]),
  onSelect: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.func,
  rootCloseEvent: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.oneOf(['click', 'mousedown'])
};
var defaultProps = {
  bsRole: 'menu',
  pullRight: false
};

var DropdownMenu =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(DropdownMenu, _React$Component);

  function DropdownMenu(props) {
    var _this;

    _this = _React$Component.call(this, props) || this;
    _this.handleRootClose = _this.handleRootClose.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__["default"])(_this)));
    _this.handleKeyDown = _this.handleKeyDown.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__["default"])(_this)));
    return _this;
  }

  var _proto = DropdownMenu.prototype;

  _proto.getFocusableMenuItems = function getFocusableMenuItems() {
    var node = react_dom__WEBPACK_IMPORTED_MODULE_9___default.a.findDOMNode(this);

    if (!node) {
      return [];
    }

    return _babel_runtime_corejs2_core_js_array_from__WEBPACK_IMPORTED_MODULE_2___default()(node.querySelectorAll('[tabIndex="-1"]'));
  };

  _proto.getItemsAndActiveIndex = function getItemsAndActiveIndex() {
    var items = this.getFocusableMenuItems();
    var activeIndex = items.indexOf(document.activeElement);
    return {
      items: items,
      activeIndex: activeIndex
    };
  };

  _proto.focusNext = function focusNext() {
    var _this$getItemsAndActi = this.getItemsAndActiveIndex(),
        items = _this$getItemsAndActi.items,
        activeIndex = _this$getItemsAndActi.activeIndex;

    if (items.length === 0) {
      return;
    }

    var nextIndex = activeIndex === items.length - 1 ? 0 : activeIndex + 1;
    items[nextIndex].focus();
  };

  _proto.focusPrevious = function focusPrevious() {
    var _this$getItemsAndActi2 = this.getItemsAndActiveIndex(),
        items = _this$getItemsAndActi2.items,
        activeIndex = _this$getItemsAndActi2.activeIndex;

    if (items.length === 0) {
      return;
    }

    var prevIndex = activeIndex === 0 ? items.length - 1 : activeIndex - 1;
    items[prevIndex].focus();
  };

  _proto.handleKeyDown = function handleKeyDown(event) {
    switch (event.keyCode) {
      case keycode__WEBPACK_IMPORTED_MODULE_6___default.a.codes.down:
        this.focusNext();
        event.preventDefault();
        break;

      case keycode__WEBPACK_IMPORTED_MODULE_6___default.a.codes.up:
        this.focusPrevious();
        event.preventDefault();
        break;

      case keycode__WEBPACK_IMPORTED_MODULE_6___default.a.codes.esc:
      case keycode__WEBPACK_IMPORTED_MODULE_6___default.a.codes.tab:
        this.props.onClose(event, {
          source: 'keydown'
        });
        break;

      default:
    }
  };

  _proto.handleRootClose = function handleRootClose(event) {
    this.props.onClose(event, {
      source: 'rootClose'
    });
  };

  _proto.render = function render() {
    var _extends2,
        _this2 = this;

    var _this$props = this.props,
        open = _this$props.open,
        pullRight = _this$props.pullRight,
        labelledBy = _this$props.labelledBy,
        onSelect = _this$props.onSelect,
        className = _this$props.className,
        rootCloseEvent = _this$props.rootCloseEvent,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["open", "pullRight", "labelledBy", "onSelect", "className", "rootCloseEvent", "children"]);

    var _splitBsPropsAndOmit = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_11__["splitBsPropsAndOmit"])(props, ['onClose']),
        bsProps = _splitBsPropsAndOmit[0],
        elementProps = _splitBsPropsAndOmit[1];

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_11__["getClassSet"])(bsProps), (_extends2 = {}, _extends2[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_11__["prefix"])(bsProps, 'right')] = pullRight, _extends2));

    return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(react_overlays_lib_RootCloseWrapper__WEBPACK_IMPORTED_MODULE_10___default.a, {
      disabled: !open,
      onRootClose: this.handleRootClose,
      event: rootCloseEvent
    }, react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("ul", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      role: "menu",
      className: classnames__WEBPACK_IMPORTED_MODULE_5___default()(className, classes),
      "aria-labelledby": labelledBy
    }), _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_13__["default"].map(children, function (child) {
      return react__WEBPACK_IMPORTED_MODULE_7___default.a.cloneElement(child, {
        onKeyDown: Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_12__["default"])(child.props.onKeyDown, _this2.handleKeyDown),
        onSelect: Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_12__["default"])(child.props.onSelect, onSelect)
      });
    })));
  };

  return DropdownMenu;
}(react__WEBPACK_IMPORTED_MODULE_7___default.a.Component);

DropdownMenu.propTypes = propTypes;
DropdownMenu.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_11__["bsClass"])('dropdown-menu', DropdownMenu));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/DropdownToggle.js":
/*!***********************************************************!*\
  !*** ./node_modules/react-bootstrap/es/DropdownToggle.js ***!
  \***********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Button */ "./node_modules/react-bootstrap/es/Button.js");
/* harmony import */ var _SafeAnchor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./SafeAnchor */ "./node_modules/react-bootstrap/es/SafeAnchor.js");
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");









var propTypes = {
  noCaret: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
  open: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
  title: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
  useAnchor: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool
};
var defaultProps = {
  open: false,
  useAnchor: false,
  bsRole: 'toggle'
};

var DropdownToggle =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(DropdownToggle, _React$Component);

  function DropdownToggle() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = DropdownToggle.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        noCaret = _this$props.noCaret,
        open = _this$props.open,
        useAnchor = _this$props.useAnchor,
        bsClass = _this$props.bsClass,
        className = _this$props.className,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["noCaret", "open", "useAnchor", "bsClass", "className", "children"]);

    delete props.bsRole;
    var Component = useAnchor ? _SafeAnchor__WEBPACK_IMPORTED_MODULE_7__["default"] : _Button__WEBPACK_IMPORTED_MODULE_6__["default"];
    var useCaret = !noCaret; // This intentionally forwards bsSize and bsStyle (if set) to the
    // underlying component, to allow it to render size and style variants.
    // FIXME: Should this really fall back to `title` as children?

    return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
      role: "button",
      className: classnames__WEBPACK_IMPORTED_MODULE_5___default()(className, bsClass),
      "aria-haspopup": true,
      "aria-expanded": open
    }), children || props.title, useCaret && ' ', useCaret && react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("span", {
      className: "caret"
    }));
  };

  return DropdownToggle;
}(react__WEBPACK_IMPORTED_MODULE_3___default.a.Component);

DropdownToggle.propTypes = propTypes;
DropdownToggle.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["bsClass"])('dropdown-toggle', DropdownToggle));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/Fade.js":
/*!*************************************************!*\
  !*** ./node_modules/react-bootstrap/es/Fade.js ***!
  \*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-transition-group/Transition */ "./node_modules/react-transition-group/Transition.js");
/* harmony import */ var react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_6__);




var _fadeStyles;





var propTypes = {
  /**
   * Show the component; triggers the fade in or fade out animation
   */
  in: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,

  /**
   * Wait until the first "enter" transition to mount the component (add it to the DOM)
   */
  mountOnEnter: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,

  /**
   * Unmount the component (remove it from the DOM) when it is faded out
   */
  unmountOnExit: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,

  /**
   * Run the fade in animation when the component mounts, if it is initially
   * shown
   */
  appear: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,

  /**
   * Duration of the fade animation in milliseconds, to ensure that finishing
   * callbacks are fired even if the original browser transition end events are
   * canceled
   */
  timeout: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number,

  /**
   * Callback fired before the component fades in
   */
  onEnter: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,

  /**
   * Callback fired after the component starts to fade in
   */
  onEntering: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,

  /**
   * Callback fired after the has component faded in
   */
  onEntered: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,

  /**
   * Callback fired before the component fades out
   */
  onExit: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,

  /**
   * Callback fired after the component starts to fade out
   */
  onExiting: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,

  /**
   * Callback fired after the component has faded out
   */
  onExited: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func
};
var defaultProps = {
  in: false,
  timeout: 300,
  mountOnEnter: false,
  unmountOnExit: false,
  appear: false
};
var fadeStyles = (_fadeStyles = {}, _fadeStyles[react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_6__["ENTERING"]] = 'in', _fadeStyles[react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_6__["ENTERED"]] = 'in', _fadeStyles);

var Fade =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Fade, _React$Component);

  function Fade() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Fade.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        className = _this$props.className,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["className", "children"]);

    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_6___default.a, props, function (status, innerProps) {
      return react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(children, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, innerProps, {
        className: classnames__WEBPACK_IMPORTED_MODULE_3___default()('fade', className, children.props.className, fadeStyles[status])
      }));
    });
  };

  return Fade;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

Fade.propTypes = propTypes;
Fade.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Fade);

/***/ }),

/***/ "./node_modules/react-bootstrap/es/Form.js":
/*!*************************************************!*\
  !*** ./node_modules/react-bootstrap/es/Form.js ***!
  \*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");








var propTypes = {
  horizontal: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,
  inline: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,
  componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6___default.a
};
var defaultProps = {
  horizontal: false,
  inline: false,
  componentClass: 'form'
};

var Form =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Form, _React$Component);

  function Form() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Form.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        horizontal = _this$props.horizontal,
        inline = _this$props.inline,
        Component = _this$props.componentClass,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["horizontal", "inline", "componentClass", "className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = [];

    if (horizontal) {
      classes.push(Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["prefix"])(bsProps, 'horizontal'));
    }

    if (inline) {
      classes.push(Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["prefix"])(bsProps, 'inline'));
    }

    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return Form;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

Form.propTypes = propTypes;
Form.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsClass"])('form', Form));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/FormControl.js":
/*!********************************************************!*\
  !*** ./node_modules/react-bootstrap/es/FormControl.js ***!
  \********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! warning */ "./node_modules/warning/browser.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _FormControlFeedback__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./FormControlFeedback */ "./node_modules/react-bootstrap/es/FormControlFeedback.js");
/* harmony import */ var _FormControlStatic__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./FormControlStatic */ "./node_modules/react-bootstrap/es/FormControlStatic.js");
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./utils/StyleConfig */ "./node_modules/react-bootstrap/es/utils/StyleConfig.js");












var propTypes = {
  componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6___default.a,

  /**
   * Only relevant if `componentClass` is `'input'`.
   */
  type: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,

  /**
   * Uses `controlId` from `<FormGroup>` if not explicitly specified.
   */
  id: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,

  /**
   * Attaches a ref to the `<input>` element. Only functions can be used here.
   *
   * ```js
   * <FormControl inputRef={ref => { this.input = ref; }} />
   * ```
   */
  inputRef: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func
};
var defaultProps = {
  componentClass: 'input'
};
var contextTypes = {
  $bs_formGroup: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.object
};

var FormControl =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(FormControl, _React$Component);

  function FormControl() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = FormControl.prototype;

  _proto.render = function render() {
    var formGroup = this.context.$bs_formGroup;
    var controlId = formGroup && formGroup.controlId;

    var _this$props = this.props,
        Component = _this$props.componentClass,
        type = _this$props.type,
        _this$props$id = _this$props.id,
        id = _this$props$id === void 0 ? controlId : _this$props$id,
        inputRef = _this$props.inputRef,
        className = _this$props.className,
        bsSize = _this$props.bsSize,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["componentClass", "type", "id", "inputRef", "className", "bsSize"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_10__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

     true ? warning__WEBPACK_IMPORTED_MODULE_7___default()(controlId == null || id === controlId, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : undefined; // input[type="file"] should not have .form-control.

    var classes;

    if (type !== 'file') {
      classes = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_10__["getClassSet"])(bsProps);
    } // If user provides a size, make sure to append it to classes as input-
    // e.g. if bsSize is small, it will append input-sm


    if (bsSize) {
      var size = _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_11__["SIZE_MAP"][bsSize] || bsSize;
      classes[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_10__["prefix"])({
        bsClass: 'input'
      }, size)] = true;
    }

    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      type: type,
      id: id,
      ref: inputRef,
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return FormControl;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

FormControl.propTypes = propTypes;
FormControl.defaultProps = defaultProps;
FormControl.contextTypes = contextTypes;
FormControl.Feedback = _FormControlFeedback__WEBPACK_IMPORTED_MODULE_8__["default"];
FormControl.Static = _FormControlStatic__WEBPACK_IMPORTED_MODULE_9__["default"];
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_10__["bsClass"])('form-control', Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_10__["bsSizes"])([_utils_StyleConfig__WEBPACK_IMPORTED_MODULE_11__["Size"].SMALL, _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_11__["Size"].LARGE], FormControl)));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/FormControlFeedback.js":
/*!****************************************************************!*\
  !*** ./node_modules/react-bootstrap/es/FormControlFeedback.js ***!
  \****************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _Glyphicon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Glyphicon */ "./node_modules/react-bootstrap/es/Glyphicon.js");
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");








var defaultProps = {
  bsRole: 'feedback'
};
var contextTypes = {
  $bs_formGroup: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.object
};

var FormControlFeedback =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(FormControlFeedback, _React$Component);

  function FormControlFeedback() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = FormControlFeedback.prototype;

  _proto.getGlyph = function getGlyph(validationState) {
    switch (validationState) {
      case 'success':
        return 'ok';

      case 'warning':
        return 'warning-sign';

      case 'error':
        return 'remove';

      default:
        return null;
    }
  };

  _proto.renderDefaultFeedback = function renderDefaultFeedback(formGroup, className, classes, elementProps) {
    var glyph = this.getGlyph(formGroup && formGroup.validationState);

    if (!glyph) {
      return null;
    }

    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(_Glyphicon__WEBPACK_IMPORTED_MODULE_6__["default"], Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, elementProps, {
      glyph: glyph,
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  _proto.render = function render() {
    var _this$props = this.props,
        className = _this$props.className,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_this$props, ["className", "children"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["getClassSet"])(bsProps);

    if (!children) {
      return this.renderDefaultFeedback(this.context.$bs_formGroup, className, classes, elementProps);
    }

    var child = react__WEBPACK_IMPORTED_MODULE_4___default.a.Children.only(children);
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(child, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(child.props.className, className, classes)
    }));
  };

  return FormControlFeedback;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

FormControlFeedback.defaultProps = defaultProps;
FormControlFeedback.contextTypes = contextTypes;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsClass"])('form-control-feedback', FormControlFeedback));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/FormControlStatic.js":
/*!**************************************************************!*\
  !*** ./node_modules/react-bootstrap/es/FormControlStatic.js ***!
  \**************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");







var propTypes = {
  componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5___default.a
};
var defaultProps = {
  componentClass: 'p'
};

var FormControlStatic =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(FormControlStatic, _React$Component);

  function FormControlStatic() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = FormControlStatic.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        Component = _this$props.componentClass,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["componentClass", "className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["getClassSet"])(bsProps);
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return FormControlStatic;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

FormControlStatic.propTypes = propTypes;
FormControlStatic.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["bsClass"])('form-control-static', FormControlStatic));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/FormGroup.js":
/*!******************************************************!*\
  !*** ./node_modules/react-bootstrap/es/FormGroup.js ***!
  \******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/StyleConfig */ "./node_modules/react-bootstrap/es/utils/StyleConfig.js");
/* harmony import */ var _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/ValidComponentChildren */ "./node_modules/react-bootstrap/es/utils/ValidComponentChildren.js");









var propTypes = {
  /**
   * Sets `id` on `<FormControl>` and `htmlFor` on `<FormGroup.Label>`.
   */
  controlId: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,
  validationState: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOf(['success', 'warning', 'error', null])
};
var childContextTypes = {
  $bs_formGroup: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.object.isRequired
};

var FormGroup =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(FormGroup, _React$Component);

  function FormGroup() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = FormGroup.prototype;

  _proto.getChildContext = function getChildContext() {
    var _this$props = this.props,
        controlId = _this$props.controlId,
        validationState = _this$props.validationState;
    return {
      $bs_formGroup: {
        controlId: controlId,
        validationState: validationState
      }
    };
  };

  _proto.hasFeedback = function hasFeedback(children) {
    var _this = this;

    return _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_8__["default"].some(children, function (child) {
      return child.props.bsRole === 'feedback' || child.props.children && _this.hasFeedback(child.props.children);
    });
  };

  _proto.render = function render() {
    var _this$props2 = this.props,
        validationState = _this$props2.validationState,
        className = _this$props2.className,
        children = _this$props2.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props2, ["validationState", "className", "children"]);

    var _splitBsPropsAndOmit = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["splitBsPropsAndOmit"])(props, ['controlId']),
        bsProps = _splitBsPropsAndOmit[0],
        elementProps = _splitBsPropsAndOmit[1];

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["getClassSet"])(bsProps), {
      'has-feedback': this.hasFeedback(children)
    });

    if (validationState) {
      classes["has-" + validationState] = true;
    }

    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }), children);
  };

  return FormGroup;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

FormGroup.propTypes = propTypes;
FormGroup.childContextTypes = childContextTypes;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["bsClass"])('form-group', Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["bsSizes"])([_utils_StyleConfig__WEBPACK_IMPORTED_MODULE_7__["Size"].LARGE, _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_7__["Size"].SMALL], FormGroup)));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/Glyphicon.js":
/*!******************************************************!*\
  !*** ./node_modules/react-bootstrap/es/Glyphicon.js ***!
  \******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");







var propTypes = {
  /**
   * An icon name without "glyphicon-" prefix. See e.g. http://getbootstrap.com/components/#glyphicons
   */
  glyph: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string.isRequired
};

var Glyphicon =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Glyphicon, _React$Component);

  function Glyphicon() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Glyphicon.prototype;

  _proto.render = function render() {
    var _extends2;

    var _this$props = this.props,
        glyph = _this$props.glyph,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["glyph", "className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["getClassSet"])(bsProps), (_extends2 = {}, _extends2[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["prefix"])(bsProps, glyph)] = true, _extends2));

    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return Glyphicon;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

Glyphicon.propTypes = propTypes;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["bsClass"])('glyphicon', Glyphicon));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/Grid.js":
/*!*************************************************!*\
  !*** ./node_modules/react-bootstrap/es/Grid.js ***!
  \*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");








var propTypes = {
  /**
   * Turn any fixed-width grid layout into a full-width layout by this property.
   *
   * Adds `container-fluid` class.
   */
  fluid: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,

  /**
   * You can use a custom element for this component
   */
  componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6___default.a
};
var defaultProps = {
  componentClass: 'div',
  fluid: false
};

var Grid =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Grid, _React$Component);

  function Grid() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Grid.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        fluid = _this$props.fluid,
        Component = _this$props.componentClass,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["fluid", "componentClass", "className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["prefix"])(bsProps, fluid && 'fluid');
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return Grid;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

Grid.propTypes = propTypes;
Grid.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsClass"])('container', Grid));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/HelpBlock.js":
/*!******************************************************!*\
  !*** ./node_modules/react-bootstrap/es/HelpBlock.js ***!
  \******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");







var HelpBlock =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(HelpBlock, _React$Component);

  function HelpBlock() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = HelpBlock.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_5__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_5__["getClassSet"])(bsProps);
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return HelpBlock;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_5__["bsClass"])('help-block', HelpBlock));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/InputGroup.js":
/*!*******************************************************!*\
  !*** ./node_modules/react-bootstrap/es/InputGroup.js ***!
  \*******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _InputGroupAddon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./InputGroupAddon */ "./node_modules/react-bootstrap/es/InputGroupAddon.js");
/* harmony import */ var _InputGroupButton__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./InputGroupButton */ "./node_modules/react-bootstrap/es/InputGroupButton.js");
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/StyleConfig */ "./node_modules/react-bootstrap/es/utils/StyleConfig.js");










var InputGroup =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(InputGroup, _React$Component);

  function InputGroup() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = InputGroup.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["getClassSet"])(bsProps);
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return InputGroup;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

InputGroup.Addon = _InputGroupAddon__WEBPACK_IMPORTED_MODULE_5__["default"];
InputGroup.Button = _InputGroupButton__WEBPACK_IMPORTED_MODULE_6__["default"];
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsClass"])('input-group', Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsSizes"])([_utils_StyleConfig__WEBPACK_IMPORTED_MODULE_8__["Size"].LARGE, _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_8__["Size"].SMALL], InputGroup)));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/InputGroupAddon.js":
/*!************************************************************!*\
  !*** ./node_modules/react-bootstrap/es/InputGroupAddon.js ***!
  \************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");







var InputGroupAddon =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(InputGroupAddon, _React$Component);

  function InputGroupAddon() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = InputGroupAddon.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_5__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_5__["getClassSet"])(bsProps);
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return InputGroupAddon;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_5__["bsClass"])('input-group-addon', InputGroupAddon));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/InputGroupButton.js":
/*!*************************************************************!*\
  !*** ./node_modules/react-bootstrap/es/InputGroupButton.js ***!
  \*************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");







var InputGroupButton =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(InputGroupButton, _React$Component);

  function InputGroupButton() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = InputGroupButton.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_5__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_5__["getClassSet"])(bsProps);
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return InputGroupButton;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_5__["bsClass"])('input-group-btn', InputGroupButton));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/Label.js":
/*!**************************************************!*\
  !*** ./node_modules/react-bootstrap/es/Label.js ***!
  \**************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_core_js_object_values__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/values */ "./node_modules/@babel/runtime-corejs2/core-js/object/values.js");
/* harmony import */ var _babel_runtime_corejs2_core_js_object_values__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs2_core_js_object_values__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/StyleConfig */ "./node_modules/react-bootstrap/es/utils/StyleConfig.js");









var Label =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(Label, _React$Component);

  function Label() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Label.prototype;

  _proto.hasContent = function hasContent(children) {
    var result = false;
    react__WEBPACK_IMPORTED_MODULE_5___default.a.Children.forEach(children, function (child) {
      if (result) {
        return;
      }

      if (child || child === 0) {
        result = true;
      }
    });
    return result;
  };

  _proto.render = function render() {
    var _this$props = this.props,
        className = _this$props.className,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(_this$props, ["className", "children"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["getClassSet"])(bsProps), {
      // Hack for collapsing on IE8.
      hidden: !this.hasContent(children)
    });

    return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("span", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, classes)
    }), children);
  };

  return Label;
}(react__WEBPACK_IMPORTED_MODULE_5___default.a.Component);

/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["bsClass"])('label', Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["bsStyles"])(_babel_runtime_corejs2_core_js_object_values__WEBPACK_IMPORTED_MODULE_0___default()(_utils_StyleConfig__WEBPACK_IMPORTED_MODULE_7__["State"]).concat([_utils_StyleConfig__WEBPACK_IMPORTED_MODULE_7__["Style"].DEFAULT, _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_7__["Style"].PRIMARY]), _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_7__["Style"].DEFAULT, Label)));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/ListGroup.js":
/*!******************************************************!*\
  !*** ./node_modules/react-bootstrap/es/ListGroup.js ***!
  \******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _ListGroupItem__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ListGroupItem */ "./node_modules/react-bootstrap/es/ListGroupItem.js");
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/ValidComponentChildren */ "./node_modules/react-bootstrap/es/utils/ValidComponentChildren.js");









var propTypes = {
  /**
   * You can use a custom element type for this component.
   *
   * If not specified, it will be treated as `'li'` if every child is a
   * non-actionable `<ListGroupItem>`, and `'div'` otherwise.
   */
  componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5___default.a
};

function getDefaultComponent(children) {
  if (!children) {
    // FIXME: This is the old behavior. Is this right?
    return 'div';
  }

  if (_utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_8__["default"].some(children, function (child) {
    return child.type !== _ListGroupItem__WEBPACK_IMPORTED_MODULE_6__["default"] || child.props.href || child.props.onClick;
  })) {
    return 'div';
  }

  return 'ul';
}

var ListGroup =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(ListGroup, _React$Component);

  function ListGroup() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = ListGroup.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        children = _this$props.children,
        _this$props$component = _this$props.componentClass,
        Component = _this$props$component === void 0 ? getDefaultComponent(children) : _this$props$component,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["children", "componentClass", "className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["getClassSet"])(bsProps);
    var useListItem = Component === 'ul' && _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_8__["default"].every(children, function (child) {
      return child.type === _ListGroupItem__WEBPACK_IMPORTED_MODULE_6__["default"];
    });
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }), useListItem ? _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_8__["default"].map(children, function (child) {
      return Object(react__WEBPACK_IMPORTED_MODULE_4__["cloneElement"])(child, {
        listItem: true
      });
    }) : children);
  };

  return ListGroup;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

ListGroup.propTypes = propTypes;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsClass"])('list-group', ListGroup));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/ListGroupItem.js":
/*!**********************************************************!*\
  !*** ./node_modules/react-bootstrap/es/ListGroupItem.js ***!
  \**********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_core_js_object_values__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/values */ "./node_modules/@babel/runtime-corejs2/core-js/object/values.js");
/* harmony import */ var _babel_runtime_corejs2_core_js_object_values__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs2_core_js_object_values__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/StyleConfig */ "./node_modules/react-bootstrap/es/utils/StyleConfig.js");









var propTypes = {
  active: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.any,
  disabled: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.any,
  header: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.node,
  listItem: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  href: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  type: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string
};
var defaultProps = {
  listItem: false
};

var ListGroupItem =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(ListGroupItem, _React$Component);

  function ListGroupItem() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = ListGroupItem.prototype;

  _proto.renderHeader = function renderHeader(header, headingClassName) {
    if (react__WEBPACK_IMPORTED_MODULE_5___default.a.isValidElement(header)) {
      return Object(react__WEBPACK_IMPORTED_MODULE_5__["cloneElement"])(header, {
        className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(header.props.className, headingClassName)
      });
    }

    return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("h4", {
      className: headingClassName
    }, header);
  };

  _proto.render = function render() {
    var _this$props = this.props,
        active = _this$props.active,
        disabled = _this$props.disabled,
        className = _this$props.className,
        header = _this$props.header,
        listItem = _this$props.listItem,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(_this$props, ["active", "disabled", "className", "header", "listItem", "children"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["getClassSet"])(bsProps), {
      active: active,
      disabled: disabled
    });

    var Component;

    if (elementProps.href) {
      Component = 'a';
    } else if (elementProps.onClick) {
      Component = 'button';
      elementProps.type = elementProps.type || 'button';
    } else if (listItem) {
      Component = 'li';
    } else {
      Component = 'span';
    }

    elementProps.className = classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, classes); // TODO: Deprecate `header` prop.

    if (header) {
      return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(Component, elementProps, this.renderHeader(header, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["prefix"])(bsProps, 'heading')), react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("p", {
        className: Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["prefix"])(bsProps, 'text')
      }, children));
    }

    return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(Component, elementProps, children);
  };

  return ListGroupItem;
}(react__WEBPACK_IMPORTED_MODULE_5___default.a.Component);

ListGroupItem.propTypes = propTypes;
ListGroupItem.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsClass"])('list-group-item', Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsStyles"])(_babel_runtime_corejs2_core_js_object_values__WEBPACK_IMPORTED_MODULE_0___default()(_utils_StyleConfig__WEBPACK_IMPORTED_MODULE_8__["State"]), ListGroupItem)));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/MenuItem.js":
/*!*****************************************************!*\
  !*** ./node_modules/react-bootstrap/es/MenuItem.js ***!
  \*****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime-corejs2/helpers/esm/assertThisInitialized.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types-extra/lib/all */ "./node_modules/prop-types-extra/lib/all.js");
/* harmony import */ var prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _SafeAnchor__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./SafeAnchor */ "./node_modules/react-bootstrap/es/SafeAnchor.js");
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/createChainedFunction */ "./node_modules/react-bootstrap/es/utils/createChainedFunction.js");











var propTypes = {
  /**
   * Highlight the menu item as active.
   */
  active: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,

  /**
   * Disable the menu item, making it unselectable.
   */
  disabled: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,

  /**
   * Styles the menu item as a horizontal rule, providing visual separation between
   * groups of menu items.
   */
  divider: prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_7___default()(prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool, function (_ref) {
    var divider = _ref.divider,
        children = _ref.children;
    return divider && children ? new Error('Children will not be rendered for dividers') : null;
  }),

  /**
   * Value passed to the `onSelect` handler, useful for identifying the selected menu item.
   */
  eventKey: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.any,

  /**
   * Styles the menu item as a header label, useful for describing a group of menu items.
   */
  header: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,

  /**
   * HTML `href` attribute corresponding to `a.href`.
   */
  href: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,

  /**
   * Callback fired when the menu item is clicked.
   */
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,

  /**
   * Callback fired when the menu item is selected.
   *
   * ```js
   * (eventKey: any, event: Object) => any
   * ```
   */
  onSelect: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func
};
var defaultProps = {
  divider: false,
  disabled: false,
  header: false
};

var MenuItem =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(MenuItem, _React$Component);

  function MenuItem(props, context) {
    var _this;

    _this = _React$Component.call(this, props, context) || this;
    _this.handleClick = _this.handleClick.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this)));
    return _this;
  }

  var _proto = MenuItem.prototype;

  _proto.handleClick = function handleClick(event) {
    var _this$props = this.props,
        href = _this$props.href,
        disabled = _this$props.disabled,
        onSelect = _this$props.onSelect,
        eventKey = _this$props.eventKey;

    if (!href || disabled) {
      event.preventDefault();
    }

    if (disabled) {
      return;
    }

    if (onSelect) {
      onSelect(eventKey, event);
    }
  };

  _proto.render = function render() {
    var _this$props2 = this.props,
        active = _this$props2.active,
        disabled = _this$props2.disabled,
        divider = _this$props2.divider,
        header = _this$props2.header,
        onClick = _this$props2.onClick,
        className = _this$props2.className,
        style = _this$props2.style,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props2, ["active", "disabled", "divider", "header", "onClick", "className", "style"]);

    var _splitBsPropsAndOmit = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_9__["splitBsPropsAndOmit"])(props, ['eventKey', 'onSelect']),
        bsProps = _splitBsPropsAndOmit[0],
        elementProps = _splitBsPropsAndOmit[1];

    if (divider) {
      // Forcibly blank out the children; separators shouldn't render any.
      elementProps.children = undefined;
      return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("li", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
        role: "separator",
        className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, 'divider'),
        style: style
      }));
    }

    if (header) {
      return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("li", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
        role: "heading",
        className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_9__["prefix"])(bsProps, 'header')),
        style: style
      }));
    }

    return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("li", {
      role: "presentation",
      className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, {
        active: active,
        disabled: disabled
      }),
      style: style
    }, react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_SafeAnchor__WEBPACK_IMPORTED_MODULE_8__["default"], Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      role: "menuitem",
      tabIndex: "-1",
      onClick: Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_10__["default"])(onClick, this.handleClick)
    })));
  };

  return MenuItem;
}(react__WEBPACK_IMPORTED_MODULE_5___default.a.Component);

MenuItem.propTypes = propTypes;
MenuItem.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_9__["bsClass"])('dropdown', MenuItem));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/Modal.js":
/*!**************************************************!*\
  !*** ./node_modules/react-bootstrap/es/Modal.js ***!
  \**************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime-corejs2/helpers/esm/assertThisInitialized.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var dom_helpers_events__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! dom-helpers/events */ "./node_modules/dom-helpers/events/index.js");
/* harmony import */ var dom_helpers_events__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(dom_helpers_events__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var dom_helpers_ownerDocument__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! dom-helpers/ownerDocument */ "./node_modules/dom-helpers/ownerDocument.js");
/* harmony import */ var dom_helpers_ownerDocument__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(dom_helpers_ownerDocument__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var dom_helpers_util_inDOM__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! dom-helpers/util/inDOM */ "./node_modules/dom-helpers/util/inDOM.js");
/* harmony import */ var dom_helpers_util_inDOM__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(dom_helpers_util_inDOM__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var dom_helpers_util_scrollbarSize__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! dom-helpers/util/scrollbarSize */ "./node_modules/dom-helpers/util/scrollbarSize.js");
/* harmony import */ var dom_helpers_util_scrollbarSize__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(dom_helpers_util_scrollbarSize__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var react_overlays_lib_Modal__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react-overlays/lib/Modal */ "./node_modules/react-overlays/lib/Modal.js");
/* harmony import */ var react_overlays_lib_Modal__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(react_overlays_lib_Modal__WEBPACK_IMPORTED_MODULE_12__);
/* harmony import */ var react_overlays_lib_utils_isOverflowing__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! react-overlays/lib/utils/isOverflowing */ "./node_modules/react-overlays/lib/utils/isOverflowing.js");
/* harmony import */ var react_overlays_lib_utils_isOverflowing__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(react_overlays_lib_utils_isOverflowing__WEBPACK_IMPORTED_MODULE_13__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_14__);
/* harmony import */ var _Fade__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Fade */ "./node_modules/react-bootstrap/es/Fade.js");
/* harmony import */ var _ModalBody__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./ModalBody */ "./node_modules/react-bootstrap/es/ModalBody.js");
/* harmony import */ var _ModalDialog__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./ModalDialog */ "./node_modules/react-bootstrap/es/ModalDialog.js");
/* harmony import */ var _ModalFooter__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./ModalFooter */ "./node_modules/react-bootstrap/es/ModalFooter.js");
/* harmony import */ var _ModalHeader__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./ModalHeader */ "./node_modules/react-bootstrap/es/ModalHeader.js");
/* harmony import */ var _ModalTitle__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./ModalTitle */ "./node_modules/react-bootstrap/es/ModalTitle.js");
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./utils/createChainedFunction */ "./node_modules/react-bootstrap/es/utils/createChainedFunction.js");
/* harmony import */ var _utils_splitComponentProps__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./utils/splitComponentProps */ "./node_modules/react-bootstrap/es/utils/splitComponentProps.js");
/* harmony import */ var _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./utils/StyleConfig */ "./node_modules/react-bootstrap/es/utils/StyleConfig.js");


























var propTypes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__["default"])({}, react_overlays_lib_Modal__WEBPACK_IMPORTED_MODULE_12___default.a.propTypes, _ModalDialog__WEBPACK_IMPORTED_MODULE_17__["default"].propTypes, {
  /**
   * Include a backdrop component. Specify 'static' for a backdrop that doesn't
   * trigger an "onHide" when clicked.
   */
  backdrop: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.oneOf(['static', true, false]),

  /**
   * Add an optional extra class name to .modal-backdrop
   * It could end up looking like class="modal-backdrop foo-modal-backdrop in".
   */
  backdropClassName: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.string,

  /**
   * Close the modal when escape key is pressed
   */
  keyboard: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,

  /**
   * Open and close the Modal with a slide and fade animation.
   */
  animation: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,

  /**
   * A Component type that provides the modal content Markup. This is a useful
   * prop when you want to use your own styles and markup to create a custom
   * modal component.
   */
  dialogComponentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_14___default.a,

  /**
   * When `true` The modal will automatically shift focus to itself when it
   * opens, and replace it to the last focused element when it closes.
   * Generally this should never be set to false as it makes the Modal less
   * accessible to assistive technologies, like screen-readers.
   */
  autoFocus: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,

  /**
   * When `true` The modal will prevent focus from leaving the Modal while
   * open. Consider leaving the default value here, as it is necessary to make
   * the Modal work well with assistive technologies, such as screen readers.
   */
  enforceFocus: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,

  /**
   * When `true` The modal will restore focus to previously focused element once
   * modal is hidden
   */
  restoreFocus: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,

  /**
   * When `true` The modal will show itself.
   */
  show: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,

  /**
   * A callback fired when the header closeButton or non-static backdrop is
   * clicked. Required if either are specified.
   */
  onHide: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,

  /**
   * Callback fired before the Modal transitions in
   */
  onEnter: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,

  /**
   * Callback fired as the Modal begins to transition in
   */
  onEntering: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,

  /**
   * Callback fired after the Modal finishes transitioning in
   */
  onEntered: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,

  /**
   * Callback fired right before the Modal transitions out
   */
  onExit: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,

  /**
   * Callback fired as the Modal begins to transition out
   */
  onExiting: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,

  /**
   * Callback fired after the Modal finishes transitioning out
   */
  onExited: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,

  /**
   * @private
   */
  container: react_overlays_lib_Modal__WEBPACK_IMPORTED_MODULE_12___default.a.propTypes.container
});

var defaultProps = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__["default"])({}, react_overlays_lib_Modal__WEBPACK_IMPORTED_MODULE_12___default.a.defaultProps, {
  animation: true,
  dialogComponentClass: _ModalDialog__WEBPACK_IMPORTED_MODULE_17__["default"]
});

var childContextTypes = {
  $bs_modal: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.shape({
    onHide: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func
  })
};
/* eslint-disable no-use-before-define, react/no-multi-comp */

function DialogTransition(props) {
  return react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(_Fade__WEBPACK_IMPORTED_MODULE_15__["default"], Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__["default"])({}, props, {
    timeout: Modal.TRANSITION_DURATION
  }));
}

function BackdropTransition(props) {
  return react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(_Fade__WEBPACK_IMPORTED_MODULE_15__["default"], Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__["default"])({}, props, {
    timeout: Modal.BACKDROP_TRANSITION_DURATION
  }));
}
/* eslint-enable no-use-before-define */


var Modal =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(Modal, _React$Component);

  function Modal(props, context) {
    var _this;

    _this = _React$Component.call(this, props, context) || this;
    _this.handleEntering = _this.handleEntering.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(_this)));
    _this.handleExited = _this.handleExited.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(_this)));
    _this.handleWindowResize = _this.handleWindowResize.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(_this)));
    _this.handleDialogClick = _this.handleDialogClick.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(_this)));
    _this.setModalRef = _this.setModalRef.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(_this)));
    _this.state = {
      style: {}
    };
    return _this;
  }

  var _proto = Modal.prototype;

  _proto.getChildContext = function getChildContext() {
    return {
      $bs_modal: {
        onHide: this.props.onHide
      }
    };
  };

  _proto.componentWillUnmount = function componentWillUnmount() {
    // Clean up the listener if we need to.
    this.handleExited();
  };

  _proto.setModalRef = function setModalRef(ref) {
    this._modal = ref;
  };

  _proto.handleDialogClick = function handleDialogClick(e) {
    if (e.target !== e.currentTarget) {
      return;
    }

    this.props.onHide();
  };

  _proto.handleEntering = function handleEntering() {
    // FIXME: This should work even when animation is disabled.
    dom_helpers_events__WEBPACK_IMPORTED_MODULE_5___default.a.on(window, 'resize', this.handleWindowResize);
    this.updateStyle();
  };

  _proto.handleExited = function handleExited() {
    // FIXME: This should work even when animation is disabled.
    dom_helpers_events__WEBPACK_IMPORTED_MODULE_5___default.a.off(window, 'resize', this.handleWindowResize);
  };

  _proto.handleWindowResize = function handleWindowResize() {
    this.updateStyle();
  };

  _proto.updateStyle = function updateStyle() {
    if (!dom_helpers_util_inDOM__WEBPACK_IMPORTED_MODULE_7___default.a) {
      return;
    }

    var dialogNode = this._modal.getDialogElement();

    var dialogHeight = dialogNode.scrollHeight;
    var document = dom_helpers_ownerDocument__WEBPACK_IMPORTED_MODULE_6___default()(dialogNode);
    var bodyIsOverflowing = react_overlays_lib_utils_isOverflowing__WEBPACK_IMPORTED_MODULE_13___default()(react_dom__WEBPACK_IMPORTED_MODULE_11___default.a.findDOMNode(this.props.container || document.body));
    var modalIsOverflowing = dialogHeight > document.documentElement.clientHeight;
    this.setState({
      style: {
        paddingRight: bodyIsOverflowing && !modalIsOverflowing ? dom_helpers_util_scrollbarSize__WEBPACK_IMPORTED_MODULE_8___default()() : undefined,
        paddingLeft: !bodyIsOverflowing && modalIsOverflowing ? dom_helpers_util_scrollbarSize__WEBPACK_IMPORTED_MODULE_8___default()() : undefined
      }
    });
  };

  _proto.render = function render() {
    var _this$props = this.props,
        backdrop = _this$props.backdrop,
        backdropClassName = _this$props.backdropClassName,
        animation = _this$props.animation,
        show = _this$props.show,
        Dialog = _this$props.dialogComponentClass,
        className = _this$props.className,
        style = _this$props.style,
        children = _this$props.children,
        onEntering = _this$props.onEntering,
        onExited = _this$props.onExited,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_this$props, ["backdrop", "backdropClassName", "animation", "show", "dialogComponentClass", "className", "style", "children", "onEntering", "onExited"]);

    var _splitComponentProps = Object(_utils_splitComponentProps__WEBPACK_IMPORTED_MODULE_23__["default"])(props, react_overlays_lib_Modal__WEBPACK_IMPORTED_MODULE_12___default.a),
        baseModalProps = _splitComponentProps[0],
        dialogProps = _splitComponentProps[1];

    var inClassName = show && !animation && 'in';
    return react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(react_overlays_lib_Modal__WEBPACK_IMPORTED_MODULE_12___default.a, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__["default"])({}, baseModalProps, {
      ref: this.setModalRef,
      show: show,
      containerClassName: Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_21__["prefix"])(props, 'open'),
      transition: animation ? DialogTransition : undefined,
      backdrop: backdrop,
      backdropTransition: animation ? BackdropTransition : undefined,
      backdropClassName: classnames__WEBPACK_IMPORTED_MODULE_4___default()(Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_21__["prefix"])(props, 'backdrop'), backdropClassName, inClassName),
      onEntering: Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_22__["default"])(onEntering, this.handleEntering),
      onExited: Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_22__["default"])(onExited, this.handleExited)
    }), react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(Dialog, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__["default"])({}, dialogProps, {
      style: Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__["default"])({}, this.state.style, style),
      className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, inClassName),
      onClick: backdrop === true ? this.handleDialogClick : null
    }), children));
  };

  return Modal;
}(react__WEBPACK_IMPORTED_MODULE_9___default.a.Component);

Modal.propTypes = propTypes;
Modal.defaultProps = defaultProps;
Modal.childContextTypes = childContextTypes;
Modal.Body = _ModalBody__WEBPACK_IMPORTED_MODULE_16__["default"];
Modal.Header = _ModalHeader__WEBPACK_IMPORTED_MODULE_19__["default"];
Modal.Title = _ModalTitle__WEBPACK_IMPORTED_MODULE_20__["default"];
Modal.Footer = _ModalFooter__WEBPACK_IMPORTED_MODULE_18__["default"];
Modal.Dialog = _ModalDialog__WEBPACK_IMPORTED_MODULE_17__["default"];
Modal.TRANSITION_DURATION = 300;
Modal.BACKDROP_TRANSITION_DURATION = 150;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_21__["bsClass"])('modal', Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_21__["bsSizes"])([_utils_StyleConfig__WEBPACK_IMPORTED_MODULE_24__["Size"].LARGE, _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_24__["Size"].SMALL], Modal)));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/ModalBody.js":
/*!******************************************************!*\
  !*** ./node_modules/react-bootstrap/es/ModalBody.js ***!
  \******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");







var propTypes = {
  componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5___default.a
};
var defaultProps = {
  componentClass: 'div'
};

var ModalBody =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(ModalBody, _React$Component);

  function ModalBody() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = ModalBody.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        Component = _this$props.componentClass,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["componentClass", "className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["getClassSet"])(bsProps);
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return ModalBody;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

ModalBody.propTypes = propTypes;
ModalBody.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["bsClass"])('modal-body', ModalBody));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/ModalDialog.js":
/*!********************************************************!*\
  !*** ./node_modules/react-bootstrap/es/ModalDialog.js ***!
  \********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/StyleConfig */ "./node_modules/react-bootstrap/es/utils/StyleConfig.js");








var propTypes = {
  /**
   * A css class to apply to the Modal dialog DOM node.
   */
  dialogClassName: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string
};

var ModalDialog =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(ModalDialog, _React$Component);

  function ModalDialog() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = ModalDialog.prototype;

  _proto.render = function render() {
    var _extends2;

    var _this$props = this.props,
        dialogClassName = _this$props.dialogClassName,
        className = _this$props.className,
        style = _this$props.style,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["dialogClassName", "className", "style", "children"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var bsClassName = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["prefix"])(bsProps);

    var modalStyle = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
      display: 'block'
    }, style);

    var dialogClasses = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["getClassSet"])(bsProps), (_extends2 = {}, _extends2[bsClassName] = false, _extends2[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["prefix"])(bsProps, 'dialog')] = true, _extends2));

    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      tabIndex: "-1",
      role: "dialog",
      style: modalStyle,
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, bsClassName)
    }), react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(dialogClassName, dialogClasses)
    }, react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", {
      className: Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["prefix"])(bsProps, 'content'),
      role: "document"
    }, children)));
  };

  return ModalDialog;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

ModalDialog.propTypes = propTypes;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["bsClass"])('modal', Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["bsSizes"])([_utils_StyleConfig__WEBPACK_IMPORTED_MODULE_7__["Size"].LARGE, _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_7__["Size"].SMALL], ModalDialog)));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/ModalFooter.js":
/*!********************************************************!*\
  !*** ./node_modules/react-bootstrap/es/ModalFooter.js ***!
  \********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");







var propTypes = {
  componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5___default.a
};
var defaultProps = {
  componentClass: 'div'
};

var ModalFooter =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(ModalFooter, _React$Component);

  function ModalFooter() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = ModalFooter.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        Component = _this$props.componentClass,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["componentClass", "className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["getClassSet"])(bsProps);
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return ModalFooter;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

ModalFooter.propTypes = propTypes;
ModalFooter.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["bsClass"])('modal-footer', ModalFooter));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/ModalHeader.js":
/*!********************************************************!*\
  !*** ./node_modules/react-bootstrap/es/ModalHeader.js ***!
  \********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/createChainedFunction */ "./node_modules/react-bootstrap/es/utils/createChainedFunction.js");
/* harmony import */ var _CloseButton__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./CloseButton */ "./node_modules/react-bootstrap/es/CloseButton.js");








 // TODO: `aria-label` should be `closeLabel`.

var propTypes = {
  /**
   * Provides an accessible label for the close
   * button. It is used for Assistive Technology when the label text is not
   * readable.
   */
  closeLabel: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,

  /**
   * Specify whether the Component should contain a close button
   */
  closeButton: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,

  /**
   * A Callback fired when the close button is clicked. If used directly inside
   * a Modal component, the onHide will automatically be propagated up to the
   * parent Modal `onHide`.
   */
  onHide: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func
};
var defaultProps = {
  closeLabel: 'Close',
  closeButton: false
};
var contextTypes = {
  $bs_modal: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.shape({
    onHide: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func
  })
};

var ModalHeader =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(ModalHeader, _React$Component);

  function ModalHeader() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = ModalHeader.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        closeLabel = _this$props.closeLabel,
        closeButton = _this$props.closeButton,
        onHide = _this$props.onHide,
        className = _this$props.className,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["closeLabel", "closeButton", "onHide", "className", "children"]);

    var modal = this.context.$bs_modal;

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["getClassSet"])(bsProps);
    return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }), closeButton && react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_CloseButton__WEBPACK_IMPORTED_MODULE_8__["default"], {
      label: closeLabel,
      onClick: Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_7__["default"])(modal && modal.onHide, onHide)
    }), children);
  };

  return ModalHeader;
}(react__WEBPACK_IMPORTED_MODULE_5___default.a.Component);

ModalHeader.propTypes = propTypes;
ModalHeader.defaultProps = defaultProps;
ModalHeader.contextTypes = contextTypes;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["bsClass"])('modal-header', ModalHeader));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/ModalTitle.js":
/*!*******************************************************!*\
  !*** ./node_modules/react-bootstrap/es/ModalTitle.js ***!
  \*******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");







var propTypes = {
  componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5___default.a
};
var defaultProps = {
  componentClass: 'h4'
};

var ModalTitle =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(ModalTitle, _React$Component);

  function ModalTitle() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = ModalTitle.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        Component = _this$props.componentClass,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["componentClass", "className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["getClassSet"])(bsProps);
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return ModalTitle;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

ModalTitle.propTypes = propTypes;
ModalTitle.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["bsClass"])('modal-title', ModalTitle));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/Nav.js":
/*!************************************************!*\
  !*** ./node_modules/react-bootstrap/es/Nav.js ***!
  \************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var keycode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! keycode */ "./node_modules/keycode/index.js");
/* harmony import */ var keycode__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(keycode__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! prop-types-extra/lib/all */ "./node_modules/prop-types-extra/lib/all.js");
/* harmony import */ var prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! warning */ "./node_modules/warning/browser.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./utils/createChainedFunction */ "./node_modules/react-bootstrap/es/utils/createChainedFunction.js");
/* harmony import */ var _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./utils/ValidComponentChildren */ "./node_modules/react-bootstrap/es/utils/ValidComponentChildren.js");












 // TODO: Should we expose `<NavItem>` as `<Nav.Item>`?
// TODO: This `bsStyle` is very unlike the others. Should we rename it?
// TODO: `pullRight` and `pullLeft` don't render right outside of `navbar`.
// Consider renaming or replacing them.

var propTypes = {
  /**
   * Marks the NavItem with a matching `eventKey` as active. Has a
   * higher precedence over `activeHref`.
   */
  activeKey: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.any,

  /**
   * Marks the child NavItem with a matching `href` prop as active.
   */
  activeHref: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,

  /**
   * NavItems are be positioned vertically.
   */
  stacked: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  justified: prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_8___default()(prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool, function (_ref) {
    var justified = _ref.justified,
        navbar = _ref.navbar;
    return justified && navbar ? Error('justified navbar `Nav`s are not supported') : null;
  }),

  /**
   * A callback fired when a NavItem is selected.
   *
   * ```js
   * function (
   *  Any eventKey,
   *  SyntheticEvent event?
   * )
   * ```
   */
  onSelect: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,

  /**
   * ARIA role for the Nav, in the context of a TabContainer, the default will
   * be set to "tablist", but can be overridden by the Nav when set explicitly.
   *
   * When the role is set to "tablist" NavItem focus is managed according to
   * the ARIA authoring practices for tabs:
   * https://www.w3.org/TR/2013/WD-wai-aria-practices-20130307/#tabpanel
   */
  role: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,

  /**
   * Apply styling an alignment for use in a Navbar. This prop will be set
   * automatically when the Nav is used inside a Navbar.
   */
  navbar: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,

  /**
   * Float the Nav to the right. When `navbar` is `true` the appropriate
   * contextual classes are added as well.
   */
  pullRight: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,

  /**
   * Float the Nav to the left. When `navbar` is `true` the appropriate
   * contextual classes are added as well.
   */
  pullLeft: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool
};
var defaultProps = {
  justified: false,
  pullRight: false,
  pullLeft: false,
  stacked: false
};
var contextTypes = {
  $bs_navbar: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.shape({
    bsClass: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
    onSelect: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func
  }),
  $bs_tabContainer: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.shape({
    activeKey: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.any,
    onSelect: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func.isRequired,
    getTabId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func.isRequired,
    getPaneId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func.isRequired
  })
};

var Nav =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Nav, _React$Component);

  function Nav() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Nav.prototype;

  _proto.componentDidUpdate = function componentDidUpdate() {
    var _this = this;

    if (!this._needsRefocus) {
      return;
    }

    this._needsRefocus = false;
    var children = this.props.children;

    var _this$getActiveProps = this.getActiveProps(),
        activeKey = _this$getActiveProps.activeKey,
        activeHref = _this$getActiveProps.activeHref;

    var activeChild = _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_12__["default"].find(children, function (child) {
      return _this.isActive(child, activeKey, activeHref);
    });
    var childrenArray = _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_12__["default"].toArray(children);
    var activeChildIndex = childrenArray.indexOf(activeChild);
    var childNodes = react_dom__WEBPACK_IMPORTED_MODULE_7___default.a.findDOMNode(this).children;
    var activeNode = childNodes && childNodes[activeChildIndex];

    if (!activeNode || !activeNode.firstChild) {
      return;
    }

    activeNode.firstChild.focus();
  };

  _proto.getActiveProps = function getActiveProps() {
    var tabContainer = this.context.$bs_tabContainer;

    if (tabContainer) {
       true ? warning__WEBPACK_IMPORTED_MODULE_9___default()(this.props.activeKey == null && !this.props.activeHref, 'Specifying a `<Nav>` `activeKey` or `activeHref` in the context of ' + 'a `<TabContainer>` is not supported. Instead use `<TabContainer ' + ("activeKey={" + this.props.activeKey + "} />`.")) : undefined;
      return tabContainer;
    }

    return this.props;
  };

  _proto.getNextActiveChild = function getNextActiveChild(offset) {
    var _this2 = this;

    var children = this.props.children;
    var validChildren = children.filter(function (child) {
      return child.props.eventKey != null && !child.props.disabled;
    });

    var _this$getActiveProps2 = this.getActiveProps(),
        activeKey = _this$getActiveProps2.activeKey,
        activeHref = _this$getActiveProps2.activeHref;

    var activeChild = _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_12__["default"].find(children, function (child) {
      return _this2.isActive(child, activeKey, activeHref);
    }); // This assumes the active child is not disabled.

    var activeChildIndex = validChildren.indexOf(activeChild);

    if (activeChildIndex === -1) {
      // Something has gone wrong. Select the first valid child we can find.
      return validChildren[0];
    }

    var nextIndex = activeChildIndex + offset;
    var numValidChildren = validChildren.length;

    if (nextIndex >= numValidChildren) {
      nextIndex = 0;
    } else if (nextIndex < 0) {
      nextIndex = numValidChildren - 1;
    }

    return validChildren[nextIndex];
  };

  _proto.getTabProps = function getTabProps(child, tabContainer, navRole, active, onSelect) {
    var _this3 = this;

    if (!tabContainer && navRole !== 'tablist') {
      // No tab props here.
      return null;
    }

    var _child$props = child.props,
        id = _child$props.id,
        controls = _child$props['aria-controls'],
        eventKey = _child$props.eventKey,
        role = _child$props.role,
        onKeyDown = _child$props.onKeyDown,
        tabIndex = _child$props.tabIndex;

    if (tabContainer) {
       true ? warning__WEBPACK_IMPORTED_MODULE_9___default()(!id && !controls, 'In the context of a `<TabContainer>`, `<NavItem>`s are given ' + 'generated `id` and `aria-controls` attributes for the sake of ' + 'proper component accessibility. Any provided ones will be ignored. ' + 'To control these attributes directly, provide a `generateChildId` ' + 'prop to the parent `<TabContainer>`.') : undefined;
      id = tabContainer.getTabId(eventKey);
      controls = tabContainer.getPaneId(eventKey);
    }

    if (navRole === 'tablist') {
      role = role || 'tab';
      onKeyDown = Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_11__["default"])(function (event) {
        return _this3.handleTabKeyDown(onSelect, event);
      }, onKeyDown);
      tabIndex = active ? tabIndex : -1;
    }

    return {
      id: id,
      role: role,
      onKeyDown: onKeyDown,
      'aria-controls': controls,
      tabIndex: tabIndex
    };
  };

  _proto.handleTabKeyDown = function handleTabKeyDown(onSelect, event) {
    var nextActiveChild;

    switch (event.keyCode) {
      case keycode__WEBPACK_IMPORTED_MODULE_4___default.a.codes.left:
      case keycode__WEBPACK_IMPORTED_MODULE_4___default.a.codes.up:
        nextActiveChild = this.getNextActiveChild(-1);
        break;

      case keycode__WEBPACK_IMPORTED_MODULE_4___default.a.codes.right:
      case keycode__WEBPACK_IMPORTED_MODULE_4___default.a.codes.down:
        nextActiveChild = this.getNextActiveChild(1);
        break;

      default:
        // It was a different key; don't handle this keypress.
        return;
    }

    event.preventDefault();

    if (onSelect && nextActiveChild && nextActiveChild.props.eventKey != null) {
      onSelect(nextActiveChild.props.eventKey);
    }

    this._needsRefocus = true;
  };

  _proto.isActive = function isActive(_ref2, activeKey, activeHref) {
    var props = _ref2.props;

    if (props.active || activeKey != null && props.eventKey === activeKey || activeHref && props.href === activeHref) {
      return true;
    }

    return props.active;
  };

  _proto.render = function render() {
    var _extends2,
        _this4 = this;

    var _this$props = this.props,
        stacked = _this$props.stacked,
        justified = _this$props.justified,
        onSelect = _this$props.onSelect,
        propsRole = _this$props.role,
        propsNavbar = _this$props.navbar,
        pullRight = _this$props.pullRight,
        pullLeft = _this$props.pullLeft,
        className = _this$props.className,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["stacked", "justified", "onSelect", "role", "navbar", "pullRight", "pullLeft", "className", "children"]);

    var tabContainer = this.context.$bs_tabContainer;
    var role = propsRole || (tabContainer ? 'tablist' : null);

    var _this$getActiveProps3 = this.getActiveProps(),
        activeKey = _this$getActiveProps3.activeKey,
        activeHref = _this$getActiveProps3.activeHref;

    delete props.activeKey; // Accessed via this.getActiveProps().

    delete props.activeHref; // Accessed via this.getActiveProps().

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_10__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_10__["getClassSet"])(bsProps), (_extends2 = {}, _extends2[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_10__["prefix"])(bsProps, 'stacked')] = stacked, _extends2[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_10__["prefix"])(bsProps, 'justified')] = justified, _extends2));

    var navbar = propsNavbar != null ? propsNavbar : this.context.$bs_navbar;
    var pullLeftClassName;
    var pullRightClassName;

    if (navbar) {
      var navbarProps = this.context.$bs_navbar || {
        bsClass: 'navbar'
      };
      classes[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_10__["prefix"])(navbarProps, 'nav')] = true;
      pullRightClassName = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_10__["prefix"])(navbarProps, 'right');
      pullLeftClassName = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_10__["prefix"])(navbarProps, 'left');
    } else {
      pullRightClassName = 'pull-right';
      pullLeftClassName = 'pull-left';
    }

    classes[pullRightClassName] = pullRight;
    classes[pullLeftClassName] = pullLeft;
    return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("ul", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      role: role,
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }), _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_12__["default"].map(children, function (child) {
      var active = _this4.isActive(child, activeKey, activeHref);

      var childOnSelect = Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_11__["default"])(child.props.onSelect, onSelect, navbar && navbar.onSelect, tabContainer && tabContainer.onSelect);
      return Object(react__WEBPACK_IMPORTED_MODULE_5__["cloneElement"])(child, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, _this4.getTabProps(child, tabContainer, role, active, childOnSelect), {
        active: active,
        activeKey: activeKey,
        activeHref: activeHref,
        onSelect: childOnSelect
      }));
    }));
  };

  return Nav;
}(react__WEBPACK_IMPORTED_MODULE_5___default.a.Component);

Nav.propTypes = propTypes;
Nav.defaultProps = defaultProps;
Nav.contextTypes = contextTypes;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_10__["bsClass"])('nav', Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_10__["bsStyles"])(['tabs', 'pills'], Nav)));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/NavDropdown.js":
/*!********************************************************!*\
  !*** ./node_modules/react-bootstrap/es/NavDropdown.js ***!
  \********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Dropdown */ "./node_modules/react-bootstrap/es/Dropdown.js");
/* harmony import */ var _utils_splitComponentProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/splitComponentProps */ "./node_modules/react-bootstrap/es/utils/splitComponentProps.js");
/* harmony import */ var _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/ValidComponentChildren */ "./node_modules/react-bootstrap/es/utils/ValidComponentChildren.js");










var propTypes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, _Dropdown__WEBPACK_IMPORTED_MODULE_6__["default"].propTypes, {
  // Toggle props.
  title: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.node.isRequired,
  noCaret: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,
  active: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,
  activeKey: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.any,
  activeHref: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,
  // Override generated docs from <Dropdown>.

  /**
   * @private
   */
  children: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.node
});

var NavDropdown =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(NavDropdown, _React$Component);

  function NavDropdown() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = NavDropdown.prototype;

  _proto.isActive = function isActive(_ref, activeKey, activeHref) {
    var _this = this;

    var props = _ref.props;

    if (props.active || activeKey != null && props.eventKey === activeKey || activeHref && props.href === activeHref) {
      return true;
    }

    if (_utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_8__["default"].some(props.children, function (child) {
      return _this.isActive(child, activeKey, activeHref);
    })) {
      return true;
    }

    return props.active;
  };

  _proto.render = function render() {
    var _this2 = this;

    var _this$props = this.props,
        title = _this$props.title,
        activeKey = _this$props.activeKey,
        activeHref = _this$props.activeHref,
        className = _this$props.className,
        style = _this$props.style,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_this$props, ["title", "activeKey", "activeHref", "className", "style", "children"]);

    var active = this.isActive(this, activeKey, activeHref);
    delete props.active; // Accessed via this.isActive().

    delete props.eventKey; // Accessed via this.isActive().

    var _splitComponentProps = Object(_utils_splitComponentProps__WEBPACK_IMPORTED_MODULE_7__["default"])(props, _Dropdown__WEBPACK_IMPORTED_MODULE_6__["default"].ControlledComponent),
        dropdownProps = _splitComponentProps[0],
        toggleProps = _splitComponentProps[1]; // Unlike for the other dropdowns, styling needs to go to the `<Dropdown>`
    // rather than the `<Dropdown.Toggle>`.


    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_6__["default"], Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, dropdownProps, {
      componentClass: "li",
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, {
        active: active
      }),
      style: style
    }), react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_6__["default"].Toggle, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, toggleProps, {
      useAnchor: true
    }), title), react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_6__["default"].Menu, null, _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_8__["default"].map(children, function (child) {
      return react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(child, {
        active: _this2.isActive(child, activeKey, activeHref)
      });
    })));
  };

  return NavDropdown;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

NavDropdown.propTypes = propTypes;
/* harmony default export */ __webpack_exports__["default"] = (NavDropdown);

/***/ }),

/***/ "./node_modules/react-bootstrap/es/NavItem.js":
/*!****************************************************!*\
  !*** ./node_modules/react-bootstrap/es/NavItem.js ***!
  \****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime-corejs2/helpers/esm/assertThisInitialized.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _SafeAnchor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./SafeAnchor */ "./node_modules/react-bootstrap/es/SafeAnchor.js");
/* harmony import */ var _utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/createChainedFunction */ "./node_modules/react-bootstrap/es/utils/createChainedFunction.js");









var propTypes = {
  active: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  disabled: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  role: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  href: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  onSelect: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  eventKey: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.any
};
var defaultProps = {
  active: false,
  disabled: false
};

var NavItem =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(NavItem, _React$Component);

  function NavItem(props, context) {
    var _this;

    _this = _React$Component.call(this, props, context) || this;
    _this.handleClick = _this.handleClick.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this)));
    return _this;
  }

  var _proto = NavItem.prototype;

  _proto.handleClick = function handleClick(e) {
    if (this.props.disabled) {
      e.preventDefault();
      return;
    }

    if (this.props.onSelect) {
      this.props.onSelect(this.props.eventKey, e);
    }
  };

  _proto.render = function render() {
    var _this$props = this.props,
        active = _this$props.active,
        disabled = _this$props.disabled,
        onClick = _this$props.onClick,
        className = _this$props.className,
        style = _this$props.style,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["active", "disabled", "onClick", "className", "style"]);

    delete props.onSelect;
    delete props.eventKey; // These are injected down by `<Nav>` for building `<SubNav>`s.

    delete props.activeKey;
    delete props.activeHref;

    if (!props.role) {
      if (props.href === '#') {
        props.role = 'button';
      }
    } else if (props.role === 'tab') {
      props['aria-selected'] = active;
    }

    return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("li", {
      role: "presentation",
      className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, {
        active: active,
        disabled: disabled
      }),
      style: style
    }, react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_SafeAnchor__WEBPACK_IMPORTED_MODULE_7__["default"], Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
      disabled: disabled,
      onClick: Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_8__["default"])(onClick, this.handleClick)
    })));
  };

  return NavItem;
}(react__WEBPACK_IMPORTED_MODULE_5___default.a.Component);

NavItem.propTypes = propTypes;
NavItem.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (NavItem);

/***/ }),

/***/ "./node_modules/react-bootstrap/es/Navbar.js":
/*!***************************************************!*\
  !*** ./node_modules/react-bootstrap/es/Navbar.js ***!
  \***************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime-corejs2/helpers/esm/assertThisInitialized.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var uncontrollable__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! uncontrollable */ "./node_modules/uncontrollable/index.js");
/* harmony import */ var uncontrollable__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(uncontrollable__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var _Grid__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Grid */ "./node_modules/react-bootstrap/es/Grid.js");
/* harmony import */ var _NavbarBrand__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./NavbarBrand */ "./node_modules/react-bootstrap/es/NavbarBrand.js");
/* harmony import */ var _NavbarCollapse__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./NavbarCollapse */ "./node_modules/react-bootstrap/es/NavbarCollapse.js");
/* harmony import */ var _NavbarHeader__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./NavbarHeader */ "./node_modules/react-bootstrap/es/NavbarHeader.js");
/* harmony import */ var _NavbarToggle__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./NavbarToggle */ "./node_modules/react-bootstrap/es/NavbarToggle.js");
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./utils/StyleConfig */ "./node_modules/react-bootstrap/es/utils/StyleConfig.js");
/* harmony import */ var _utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./utils/createChainedFunction */ "./node_modules/react-bootstrap/es/utils/createChainedFunction.js");




// TODO: Remove this pragma once we upgrade eslint-config-airbnb.

/* eslint-disable react/no-multi-comp */













var propTypes = {
  /**
   * Create a fixed navbar along the top of the screen, that scrolls with the
   * page
   */
  fixedTop: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,

  /**
   * Create a fixed navbar along the bottom of the screen, that scrolls with
   * the page
   */
  fixedBottom: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,

  /**
   * Create a full-width navbar that scrolls away with the page
   */
  staticTop: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,

  /**
   * An alternative dark visual style for the Navbar
   */
  inverse: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,

  /**
   * Allow the Navbar to fluidly adjust to the page or container width, instead
   * of at the predefined screen breakpoints
   */
  fluid: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,

  /**
   * Set a custom element for this component.
   */
  componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7___default.a,

  /**
   * A callback fired when the `<Navbar>` body collapses or expands. Fired when
   * a `<Navbar.Toggle>` is clicked and called with the new `expanded`
   * boolean value.
   *
   * @controllable expanded
   */
  onToggle: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,

  /**
   * A callback fired when a descendant of a child `<Nav>` is selected. Should
   * be used to execute complex closing or other miscellaneous actions desired
   * after selecting a descendant of `<Nav>`. Does nothing if no `<Nav>` or `<Nav>`
   * descendants exist. The callback is called with an eventKey, which is a
   * prop from the selected `<Nav>` descendant, and an event.
   *
   * ```js
   * function (
   *  Any eventKey,
   *  SyntheticEvent event?
   * )
   * ```
   *
   * For basic closing behavior after all `<Nav>` descendant onSelect events in
   * mobile viewports, try using collapseOnSelect.
   *
   * Note: If you are manually closing the navbar using this `OnSelect` prop,
   * ensure that you are setting `expanded` to false and not *toggling* between
   * true and false.
   */
  onSelect: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,

  /**
   * Sets `expanded` to `false` after the onSelect event of a descendant of a
   * child `<Nav>`. Does nothing if no `<Nav>` or `<Nav>` descendants exist.
   *
   * The onSelect callback should be used instead for more complex operations
   * that need to be executed after the `select` event of `<Nav>` descendants.
   */
  collapseOnSelect: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,

  /**
   * Explicitly set the visiblity of the navbar body
   *
   * @controllable onToggle
   */
  expanded: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  role: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string
};
var defaultProps = {
  componentClass: 'nav',
  fixedTop: false,
  fixedBottom: false,
  staticTop: false,
  inverse: false,
  fluid: false,
  collapseOnSelect: false
};
var childContextTypes = {
  $bs_navbar: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.shape({
    bsClass: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
    expanded: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
    onToggle: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func.isRequired,
    onSelect: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func
  })
};

var Navbar =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Navbar, _React$Component);

  function Navbar(props, context) {
    var _this;

    _this = _React$Component.call(this, props, context) || this;
    _this.handleToggle = _this.handleToggle.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this)));
    _this.handleCollapse = _this.handleCollapse.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this)));
    return _this;
  }

  var _proto = Navbar.prototype;

  _proto.getChildContext = function getChildContext() {
    var _this$props = this.props,
        bsClass = _this$props.bsClass,
        expanded = _this$props.expanded,
        onSelect = _this$props.onSelect,
        collapseOnSelect = _this$props.collapseOnSelect;
    return {
      $bs_navbar: {
        bsClass: bsClass,
        expanded: expanded,
        onToggle: this.handleToggle,
        onSelect: Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_16__["default"])(onSelect, collapseOnSelect ? this.handleCollapse : null)
      }
    };
  };

  _proto.handleCollapse = function handleCollapse() {
    var _this$props2 = this.props,
        onToggle = _this$props2.onToggle,
        expanded = _this$props2.expanded;

    if (expanded) {
      onToggle(false);
    }
  };

  _proto.handleToggle = function handleToggle() {
    var _this$props3 = this.props,
        onToggle = _this$props3.onToggle,
        expanded = _this$props3.expanded;
    onToggle(!expanded);
  };

  _proto.render = function render() {
    var _extends2;

    var _this$props4 = this.props,
        Component = _this$props4.componentClass,
        fixedTop = _this$props4.fixedTop,
        fixedBottom = _this$props4.fixedBottom,
        staticTop = _this$props4.staticTop,
        inverse = _this$props4.inverse,
        fluid = _this$props4.fluid,
        className = _this$props4.className,
        children = _this$props4.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props4, ["componentClass", "fixedTop", "fixedBottom", "staticTop", "inverse", "fluid", "className", "children"]);

    var _splitBsPropsAndOmit = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_14__["splitBsPropsAndOmit"])(props, ['expanded', 'onToggle', 'onSelect', 'collapseOnSelect']),
        bsProps = _splitBsPropsAndOmit[0],
        elementProps = _splitBsPropsAndOmit[1]; // will result in some false positives but that seems better
    // than false negatives. strict `undefined` check allows explicit
    // "nulling" of the role if the user really doesn't want one


    if (elementProps.role === undefined && Component !== 'nav') {
      elementProps.role = 'navigation';
    }

    if (inverse) {
      bsProps.bsStyle = _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_15__["Style"].INVERSE;
    }

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_14__["getClassSet"])(bsProps), (_extends2 = {}, _extends2[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_14__["prefix"])(bsProps, 'fixed-top')] = fixedTop, _extends2[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_14__["prefix"])(bsProps, 'fixed-bottom')] = fixedBottom, _extends2[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_14__["prefix"])(bsProps, 'static-top')] = staticTop, _extends2));

    return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, classes)
    }), react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_Grid__WEBPACK_IMPORTED_MODULE_9__["default"], {
      fluid: fluid
    }, children));
  };

  return Navbar;
}(react__WEBPACK_IMPORTED_MODULE_5___default.a.Component);

Navbar.propTypes = propTypes;
Navbar.defaultProps = defaultProps;
Navbar.childContextTypes = childContextTypes;
Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_14__["bsClass"])('navbar', Navbar);
var UncontrollableNavbar = uncontrollable__WEBPACK_IMPORTED_MODULE_8___default()(Navbar, {
  expanded: 'onToggle'
});

function createSimpleWrapper(tag, suffix, displayName) {
  var Wrapper = function Wrapper(_ref, _ref2) {
    var Component = _ref.componentClass,
        className = _ref.className,
        pullRight = _ref.pullRight,
        pullLeft = _ref.pullLeft,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["componentClass", "className", "pullRight", "pullLeft"]);

    var _ref2$$bs_navbar = _ref2.$bs_navbar,
        navbarProps = _ref2$$bs_navbar === void 0 ? {
      bsClass: 'navbar'
    } : _ref2$$bs_navbar;
    return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
      className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_14__["prefix"])(navbarProps, suffix), pullRight && Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_14__["prefix"])(navbarProps, 'right'), pullLeft && Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_14__["prefix"])(navbarProps, 'left'))
    }));
  };

  Wrapper.displayName = displayName;
  Wrapper.propTypes = {
    componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7___default.a,
    pullRight: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
    pullLeft: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool
  };
  Wrapper.defaultProps = {
    componentClass: tag,
    pullRight: false,
    pullLeft: false
  };
  Wrapper.contextTypes = {
    $bs_navbar: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.shape({
      bsClass: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string
    })
  };
  return Wrapper;
}

UncontrollableNavbar.Brand = _NavbarBrand__WEBPACK_IMPORTED_MODULE_10__["default"];
UncontrollableNavbar.Header = _NavbarHeader__WEBPACK_IMPORTED_MODULE_12__["default"];
UncontrollableNavbar.Toggle = _NavbarToggle__WEBPACK_IMPORTED_MODULE_13__["default"];
UncontrollableNavbar.Collapse = _NavbarCollapse__WEBPACK_IMPORTED_MODULE_11__["default"];
UncontrollableNavbar.Form = createSimpleWrapper('div', 'form', 'NavbarForm');
UncontrollableNavbar.Text = createSimpleWrapper('p', 'text', 'NavbarText');
UncontrollableNavbar.Link = createSimpleWrapper('a', 'link', 'NavbarLink'); // Set bsStyles here so they can be overridden.

/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_14__["bsStyles"])([_utils_StyleConfig__WEBPACK_IMPORTED_MODULE_15__["Style"].DEFAULT, _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_15__["Style"].INVERSE], _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_15__["Style"].DEFAULT, UncontrollableNavbar));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/NavbarBrand.js":
/*!********************************************************!*\
  !*** ./node_modules/react-bootstrap/es/NavbarBrand.js ***!
  \********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");







var contextTypes = {
  $bs_navbar: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.shape({
    bsClass: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string
  })
};

var NavbarBrand =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(NavbarBrand, _React$Component);

  function NavbarBrand() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = NavbarBrand.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        className = _this$props.className,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["className", "children"]);

    var navbarProps = this.context.$bs_navbar || {
      bsClass: 'navbar'
    };
    var bsClassName = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["prefix"])(navbarProps, 'brand');

    if (react__WEBPACK_IMPORTED_MODULE_4___default.a.isValidElement(children)) {
      return react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(children, {
        className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(children.props.className, className, bsClassName)
      });
    }

    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, bsClassName)
    }), children);
  };

  return NavbarBrand;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

NavbarBrand.contextTypes = contextTypes;
/* harmony default export */ __webpack_exports__["default"] = (NavbarBrand);

/***/ }),

/***/ "./node_modules/react-bootstrap/es/NavbarCollapse.js":
/*!***********************************************************!*\
  !*** ./node_modules/react-bootstrap/es/NavbarCollapse.js ***!
  \***********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _Collapse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Collapse */ "./node_modules/react-bootstrap/es/Collapse.js");
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");







var contextTypes = {
  $bs_navbar: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.shape({
    bsClass: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
    expanded: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool
  })
};

var NavbarCollapse =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(NavbarCollapse, _React$Component);

  function NavbarCollapse() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = NavbarCollapse.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["children"]);

    var navbarProps = this.context.$bs_navbar || {
      bsClass: 'navbar'
    };
    var bsClassName = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["prefix"])(navbarProps, 'collapse');
    return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_Collapse__WEBPACK_IMPORTED_MODULE_5__["default"], Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
      in: navbarProps.expanded
    }, props), react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", {
      className: bsClassName
    }, children));
  };

  return NavbarCollapse;
}(react__WEBPACK_IMPORTED_MODULE_3___default.a.Component);

NavbarCollapse.contextTypes = contextTypes;
/* harmony default export */ __webpack_exports__["default"] = (NavbarCollapse);

/***/ }),

/***/ "./node_modules/react-bootstrap/es/NavbarHeader.js":
/*!*********************************************************!*\
  !*** ./node_modules/react-bootstrap/es/NavbarHeader.js ***!
  \*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");







var contextTypes = {
  $bs_navbar: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.shape({
    bsClass: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string
  })
};

var NavbarHeader =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(NavbarHeader, _React$Component);

  function NavbarHeader() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = NavbarHeader.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["className"]);

    var navbarProps = this.context.$bs_navbar || {
      bsClass: 'navbar'
    };
    var bsClassName = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["prefix"])(navbarProps, 'header');
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, bsClassName)
    }));
  };

  return NavbarHeader;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

NavbarHeader.contextTypes = contextTypes;
/* harmony default export */ __webpack_exports__["default"] = (NavbarHeader);

/***/ }),

/***/ "./node_modules/react-bootstrap/es/NavbarToggle.js":
/*!*********************************************************!*\
  !*** ./node_modules/react-bootstrap/es/NavbarToggle.js ***!
  \*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/createChainedFunction */ "./node_modules/react-bootstrap/es/utils/createChainedFunction.js");








var propTypes = {
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,

  /**
   * The toggle content, if left empty it will render the default toggle (seen above).
   */
  children: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.node
};
var contextTypes = {
  $bs_navbar: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.shape({
    bsClass: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,
    expanded: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,
    onToggle: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func.isRequired
  })
};

var NavbarToggle =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(NavbarToggle, _React$Component);

  function NavbarToggle() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = NavbarToggle.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        onClick = _this$props.onClick,
        className = _this$props.className,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["onClick", "className", "children"]);

    var navbarProps = this.context.$bs_navbar || {
      bsClass: 'navbar'
    };

    var buttonProps = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
      type: 'button'
    }, props, {
      onClick: Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_7__["default"])(onClick, navbarProps.onToggle),
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["prefix"])(navbarProps, 'toggle'), !navbarProps.expanded && 'collapsed')
    });

    if (children) {
      return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("button", buttonProps, children);
    }

    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("button", buttonProps, react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", {
      className: "sr-only"
    }, "Toggle navigation"), react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", {
      className: "icon-bar"
    }), react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", {
      className: "icon-bar"
    }), react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", {
      className: "icon-bar"
    }));
  };

  return NavbarToggle;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

NavbarToggle.propTypes = propTypes;
NavbarToggle.contextTypes = contextTypes;
/* harmony default export */ __webpack_exports__["default"] = (NavbarToggle);

/***/ }),

/***/ "./node_modules/react-bootstrap/es/Overlay.js":
/*!****************************************************!*\
  !*** ./node_modules/react-bootstrap/es/Overlay.js ***!
  \****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var react_overlays_lib_Overlay__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-overlays/lib/Overlay */ "./node_modules/react-overlays/lib/Overlay.js");
/* harmony import */ var react_overlays_lib_Overlay__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react_overlays_lib_Overlay__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _Fade__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Fade */ "./node_modules/react-bootstrap/es/Fade.js");










var propTypes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, react_overlays_lib_Overlay__WEBPACK_IMPORTED_MODULE_6___default.a.propTypes, {
  /**
   * Set the visibility of the Overlay
   */
  show: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,

  /**
   * Specify whether the overlay should trigger onHide when the user clicks outside the overlay
   */
  rootClose: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,

  /**
   * A callback invoked by the overlay when it wishes to be hidden. Required if
   * `rootClose` is specified.
   */
  onHide: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,

  /**
   * Use animation
   */
  animation: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool, prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7___default.a]),

  /**
   * Callback fired before the Overlay transitions in
   */
  onEnter: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,

  /**
   * Callback fired as the Overlay begins to transition in
   */
  onEntering: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,

  /**
   * Callback fired after the Overlay finishes transitioning in
   */
  onEntered: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,

  /**
   * Callback fired right before the Overlay transitions out
   */
  onExit: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,

  /**
   * Callback fired as the Overlay begins to transition out
   */
  onExiting: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,

  /**
   * Callback fired after the Overlay finishes transitioning out
   */
  onExited: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,

  /**
   * Sets the direction of the Overlay.
   */
  placement: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOf(['top', 'right', 'bottom', 'left'])
});

var defaultProps = {
  animation: _Fade__WEBPACK_IMPORTED_MODULE_8__["default"],
  rootClose: false,
  show: false,
  placement: 'right'
};

var Overlay =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(Overlay, _React$Component);

  function Overlay() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Overlay.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        animation = _this$props.animation,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_this$props, ["animation", "children"]);

    var transition = animation === true ? _Fade__WEBPACK_IMPORTED_MODULE_8__["default"] : animation || null;
    var child;

    if (!transition) {
      child = Object(react__WEBPACK_IMPORTED_MODULE_4__["cloneElement"])(children, {
        className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(children.props.className, 'in')
      });
    } else {
      child = children;
    }

    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(react_overlays_lib_Overlay__WEBPACK_IMPORTED_MODULE_6___default.a, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, props, {
      transition: transition
    }), child);
  };

  return Overlay;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

Overlay.propTypes = propTypes;
Overlay.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Overlay);

/***/ }),

/***/ "./node_modules/react-bootstrap/es/OverlayTrigger.js":
/*!***********************************************************!*\
  !*** ./node_modules/react-bootstrap/es/OverlayTrigger.js ***!
  \***********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime-corejs2/helpers/esm/assertThisInitialized.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_core_js_array_is_array__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs2/core-js/array/is-array */ "./node_modules/@babel/runtime-corejs2/core-js/array/is-array.js");
/* harmony import */ var _babel_runtime_corejs2_core_js_array_is_array__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs2_core_js_array_is_array__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var dom_helpers_query_contains__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! dom-helpers/query/contains */ "./node_modules/dom-helpers/query/contains.js");
/* harmony import */ var dom_helpers_query_contains__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(dom_helpers_query_contains__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! warning */ "./node_modules/warning/browser.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Overlay */ "./node_modules/react-bootstrap/es/Overlay.js");
/* harmony import */ var _utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./utils/createChainedFunction */ "./node_modules/react-bootstrap/es/utils/createChainedFunction.js");












/**
 * Check if value one is inside or equal to the of value
 *
 * @param {string} one
 * @param {string|array} of
 * @returns {boolean}
 */

function isOneOf(one, of) {
  if (_babel_runtime_corejs2_core_js_array_is_array__WEBPACK_IMPORTED_MODULE_4___default()(of)) {
    return of.indexOf(one) >= 0;
  }

  return one === of;
}

var triggerType = prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.oneOf(['click', 'hover', 'focus']);

var propTypes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__["default"])({}, _Overlay__WEBPACK_IMPORTED_MODULE_10__["default"].propTypes, {
  /**
   * Specify which action or actions trigger Overlay visibility
   */
  trigger: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.oneOfType([triggerType, prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.arrayOf(triggerType)]),

  /**
   * A millisecond delay amount to show and hide the Overlay once triggered
   */
  delay: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.number,

  /**
   * A millisecond delay amount before showing the Overlay once triggered.
   */
  delayShow: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.number,

  /**
   * A millisecond delay amount before hiding the Overlay once triggered.
   */
  delayHide: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.number,
  // FIXME: This should be `defaultShow`.

  /**
   * The initial visibility state of the Overlay. For more nuanced visibility
   * control, consider using the Overlay component directly.
   */
  defaultOverlayShown: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.bool,

  /**
   * An element or text to overlay next to the target.
   */
  overlay: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.node.isRequired,

  /**
   * @private
   */
  onBlur: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,

  /**
   * @private
   */
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,

  /**
   * @private
   */
  onFocus: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,

  /**
   * @private
   */
  onMouseOut: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,

  /**
   * @private
   */
  onMouseOver: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,
  // Overridden props from `<Overlay>`.

  /**
   * @private
   */
  target: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.oneOf([null]),

  /**
   * @private
   */
  onHide: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.oneOf([null]),

  /**
   * @private
   */
  show: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.oneOf([null])
});

var defaultProps = {
  defaultOverlayShown: false,
  trigger: ['hover', 'focus']
};

var OverlayTrigger =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(OverlayTrigger, _React$Component);

  function OverlayTrigger(props, context) {
    var _this;

    _this = _React$Component.call(this, props, context) || this;
    _this.handleToggle = _this.handleToggle.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(_this)));
    _this.handleDelayedShow = _this.handleDelayedShow.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(_this)));
    _this.handleDelayedHide = _this.handleDelayedHide.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(_this)));
    _this.handleHide = _this.handleHide.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(_this)));

    _this.handleMouseOver = function (e) {
      return _this.handleMouseOverOut(_this.handleDelayedShow, e, 'fromElement');
    };

    _this.handleMouseOut = function (e) {
      return _this.handleMouseOverOut(_this.handleDelayedHide, e, 'toElement');
    };

    _this._mountNode = null;
    _this.state = {
      show: props.defaultOverlayShown
    };
    return _this;
  }

  var _proto = OverlayTrigger.prototype;

  _proto.componentDidMount = function componentDidMount() {
    this._mountNode = document.createElement('div');
    this.renderOverlay();
  };

  _proto.componentDidUpdate = function componentDidUpdate() {
    this.renderOverlay();
  };

  _proto.componentWillUnmount = function componentWillUnmount() {
    react_dom__WEBPACK_IMPORTED_MODULE_8___default.a.unmountComponentAtNode(this._mountNode);
    this._mountNode = null;
    clearTimeout(this._hoverShowDelay);
    clearTimeout(this._hoverHideDelay);
  };

  _proto.handleDelayedHide = function handleDelayedHide() {
    var _this2 = this;

    if (this._hoverShowDelay != null) {
      clearTimeout(this._hoverShowDelay);
      this._hoverShowDelay = null;
      return;
    }

    if (!this.state.show || this._hoverHideDelay != null) {
      return;
    }

    var delay = this.props.delayHide != null ? this.props.delayHide : this.props.delay;

    if (!delay) {
      this.hide();
      return;
    }

    this._hoverHideDelay = setTimeout(function () {
      _this2._hoverHideDelay = null;

      _this2.hide();
    }, delay);
  };

  _proto.handleDelayedShow = function handleDelayedShow() {
    var _this3 = this;

    if (this._hoverHideDelay != null) {
      clearTimeout(this._hoverHideDelay);
      this._hoverHideDelay = null;
      return;
    }

    if (this.state.show || this._hoverShowDelay != null) {
      return;
    }

    var delay = this.props.delayShow != null ? this.props.delayShow : this.props.delay;

    if (!delay) {
      this.show();
      return;
    }

    this._hoverShowDelay = setTimeout(function () {
      _this3._hoverShowDelay = null;

      _this3.show();
    }, delay);
  };

  _proto.handleHide = function handleHide() {
    this.hide();
  }; // Simple implementation of mouseEnter and mouseLeave.
  // React's built version is broken: https://github.com/facebook/react/issues/4251
  // for cases when the trigger is disabled and mouseOut/Over can cause flicker
  // moving from one child element to another.


  _proto.handleMouseOverOut = function handleMouseOverOut(handler, e, relatedNative) {
    var target = e.currentTarget;
    var related = e.relatedTarget || e.nativeEvent[relatedNative];

    if ((!related || related !== target) && !dom_helpers_query_contains__WEBPACK_IMPORTED_MODULE_5___default()(target, related)) {
      handler(e);
    }
  };

  _proto.handleToggle = function handleToggle() {
    if (this.state.show) {
      this.hide();
    } else {
      this.show();
    }
  };

  _proto.hide = function hide() {
    this.setState({
      show: false
    });
  };

  _proto.makeOverlay = function makeOverlay(overlay, props) {
    return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_Overlay__WEBPACK_IMPORTED_MODULE_10__["default"], Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__["default"])({}, props, {
      show: this.state.show,
      onHide: this.handleHide,
      target: this
    }), overlay);
  };

  _proto.show = function show() {
    this.setState({
      show: true
    });
  };

  _proto.renderOverlay = function renderOverlay() {
    react_dom__WEBPACK_IMPORTED_MODULE_8___default.a.unstable_renderSubtreeIntoContainer(this, this._overlay, this._mountNode);
  };

  _proto.render = function render() {
    var _this$props = this.props,
        trigger = _this$props.trigger,
        overlay = _this$props.overlay,
        children = _this$props.children,
        onBlur = _this$props.onBlur,
        onClick = _this$props.onClick,
        onFocus = _this$props.onFocus,
        onMouseOut = _this$props.onMouseOut,
        onMouseOver = _this$props.onMouseOver,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_this$props, ["trigger", "overlay", "children", "onBlur", "onClick", "onFocus", "onMouseOut", "onMouseOver"]);

    delete props.delay;
    delete props.delayShow;
    delete props.delayHide;
    delete props.defaultOverlayShown;
    var child = react__WEBPACK_IMPORTED_MODULE_6___default.a.Children.only(children);
    var childProps = child.props;
    var triggerProps = {};

    if (this.state.show) {
      triggerProps['aria-describedby'] = overlay.props.id;
    } // FIXME: The logic here for passing through handlers on this component is
    // inconsistent. We shouldn't be passing any of these props through.


    triggerProps.onClick = Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_11__["default"])(childProps.onClick, onClick);

    if (isOneOf('click', trigger)) {
      triggerProps.onClick = Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_11__["default"])(triggerProps.onClick, this.handleToggle);
    }

    if (isOneOf('hover', trigger)) {
       true ? warning__WEBPACK_IMPORTED_MODULE_9___default()(!(trigger === 'hover'), '[react-bootstrap] Specifying only the `"hover"` trigger limits the ' + 'visibility of the overlay to just mouse users. Consider also ' + 'including the `"focus"` trigger so that touch and keyboard only ' + 'users can see the overlay as well.') : undefined;
      triggerProps.onMouseOver = Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_11__["default"])(childProps.onMouseOver, onMouseOver, this.handleMouseOver);
      triggerProps.onMouseOut = Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_11__["default"])(childProps.onMouseOut, onMouseOut, this.handleMouseOut);
    }

    if (isOneOf('focus', trigger)) {
      triggerProps.onFocus = Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_11__["default"])(childProps.onFocus, onFocus, this.handleDelayedShow);
      triggerProps.onBlur = Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_11__["default"])(childProps.onBlur, onBlur, this.handleDelayedHide);
    }

    this._overlay = this.makeOverlay(overlay, props);
    return Object(react__WEBPACK_IMPORTED_MODULE_6__["cloneElement"])(child, triggerProps);
  };

  return OverlayTrigger;
}(react__WEBPACK_IMPORTED_MODULE_6___default.a.Component);

OverlayTrigger.propTypes = propTypes;
OverlayTrigger.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (OverlayTrigger);

/***/ }),

/***/ "./node_modules/react-bootstrap/es/Popover.js":
/*!****************************************************!*\
  !*** ./node_modules/react-bootstrap/es/Popover.js ***!
  \****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types-extra/lib/isRequiredForA11y */ "./node_modules/prop-types-extra/lib/isRequiredForA11y.js");
/* harmony import */ var prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");








var propTypes = {
  /**
   * An html id attribute, necessary for accessibility
   * @type {string}
   * @required
   */
  id: prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_6___default()(prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number])),

  /**
   * Sets the direction the Popover is positioned towards.
   */
  placement: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOf(['top', 'right', 'bottom', 'left']),

  /**
   * The "top" position value for the Popover.
   */
  positionTop: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string]),

  /**
   * The "left" position value for the Popover.
   */
  positionLeft: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string]),

  /**
   * The "top" position value for the Popover arrow.
   */
  arrowOffsetTop: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string]),

  /**
   * The "left" position value for the Popover arrow.
   */
  arrowOffsetLeft: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string]),

  /**
   * Title content
   */
  title: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.node
};
var defaultProps = {
  placement: 'right'
};

var Popover =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Popover, _React$Component);

  function Popover() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Popover.prototype;

  _proto.render = function render() {
    var _extends2;

    var _this$props = this.props,
        placement = _this$props.placement,
        positionTop = _this$props.positionTop,
        positionLeft = _this$props.positionLeft,
        arrowOffsetTop = _this$props.arrowOffsetTop,
        arrowOffsetLeft = _this$props.arrowOffsetLeft,
        title = _this$props.title,
        className = _this$props.className,
        style = _this$props.style,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["placement", "positionTop", "positionLeft", "arrowOffsetTop", "arrowOffsetLeft", "title", "className", "style", "children"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["getClassSet"])(bsProps), (_extends2 = {}, _extends2[placement] = true, _extends2));

    var outerStyle = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
      display: 'block',
      top: positionTop,
      left: positionLeft
    }, style);

    var arrowStyle = {
      top: arrowOffsetTop,
      left: arrowOffsetLeft
    };
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      role: "tooltip",
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes),
      style: outerStyle
    }), react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", {
      className: "arrow",
      style: arrowStyle
    }), title && react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("h3", {
      className: Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["prefix"])(bsProps, 'title')
    }, title), react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", {
      className: Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["prefix"])(bsProps, 'content')
    }, children));
  };

  return Popover;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

Popover.propTypes = propTypes;
Popover.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsClass"])('popover', Popover));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/ProgressBar.js":
/*!********************************************************!*\
  !*** ./node_modules/react-bootstrap/es/ProgressBar.js ***!
  \********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_core_js_object_values__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/values */ "./node_modules/@babel/runtime-corejs2/core-js/object/values.js");
/* harmony import */ var _babel_runtime_corejs2_core_js_object_values__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs2_core_js_object_values__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/StyleConfig */ "./node_modules/react-bootstrap/es/utils/StyleConfig.js");
/* harmony import */ var _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils/ValidComponentChildren */ "./node_modules/react-bootstrap/es/utils/ValidComponentChildren.js");










var ROUND_PRECISION = 1000;
/**
 * Validate that children, if any, are instances of `<ProgressBar>`.
 */

function onlyProgressBar(props, propName, componentName) {
  var children = props[propName];

  if (!children) {
    return null;
  }

  var error = null;
  react__WEBPACK_IMPORTED_MODULE_5___default.a.Children.forEach(children, function (child) {
    if (error) {
      return;
    }
    /**
     * Compare types in a way that works with libraries that patch and proxy
     * components like react-hot-loader.
     *
     * see https://github.com/gaearon/react-hot-loader#checking-element-types
     */


    var element = react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(ProgressBar, null);
    if (child.type === element.type) return;
    var childIdentifier = react__WEBPACK_IMPORTED_MODULE_5___default.a.isValidElement(child) ? child.type.displayName || child.type.name || child.type : child;
    error = new Error("Children of " + componentName + " can contain only ProgressBar " + ("components. Found " + childIdentifier + "."));
  });
  return error;
}

var propTypes = {
  min: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.number,
  now: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.number,
  max: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.number,
  label: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.node,
  srOnly: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  striped: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  active: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  children: onlyProgressBar,

  /**
   * @private
   */
  isChild: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool
};
var defaultProps = {
  min: 0,
  max: 100,
  active: false,
  isChild: false,
  srOnly: false,
  striped: false
};

function getPercentage(now, min, max) {
  var percentage = (now - min) / (max - min) * 100;
  return Math.round(percentage * ROUND_PRECISION) / ROUND_PRECISION;
}

var ProgressBar =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(ProgressBar, _React$Component);

  function ProgressBar() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = ProgressBar.prototype;

  _proto.renderProgressBar = function renderProgressBar(_ref) {
    var _extends2;

    var min = _ref.min,
        now = _ref.now,
        max = _ref.max,
        label = _ref.label,
        srOnly = _ref.srOnly,
        striped = _ref.striped,
        active = _ref.active,
        className = _ref.className,
        style = _ref.style,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(_ref, ["min", "now", "max", "label", "srOnly", "striped", "active", "className", "style"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["getClassSet"])(bsProps), (_extends2 = {
      active: active
    }, _extends2[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["prefix"])(bsProps, 'striped')] = active || striped, _extends2));

    return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, elementProps, {
      role: "progressbar",
      className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, classes),
      style: Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({
        width: getPercentage(now, min, max) + "%"
      }, style),
      "aria-valuenow": now,
      "aria-valuemin": min,
      "aria-valuemax": max
    }), srOnly ? react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("span", {
      className: "sr-only"
    }, label) : label);
  };

  _proto.render = function render() {
    var _this$props = this.props,
        isChild = _this$props.isChild,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(_this$props, ["isChild"]);

    if (isChild) {
      return this.renderProgressBar(props);
    }

    var min = props.min,
        now = props.now,
        max = props.max,
        label = props.label,
        srOnly = props.srOnly,
        striped = props.striped,
        active = props.active,
        bsClass = props.bsClass,
        bsStyle = props.bsStyle,
        className = props.className,
        children = props.children,
        wrapperProps = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(props, ["min", "now", "max", "label", "srOnly", "striped", "active", "bsClass", "bsStyle", "className", "children"]);

    return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, wrapperProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, 'progress')
    }), children ? _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_9__["default"].map(children, function (child) {
      return Object(react__WEBPACK_IMPORTED_MODULE_5__["cloneElement"])(child, {
        isChild: true
      });
    }) : this.renderProgressBar({
      min: min,
      now: now,
      max: max,
      label: label,
      srOnly: srOnly,
      striped: striped,
      active: active,
      bsClass: bsClass,
      bsStyle: bsStyle
    }));
  };

  return ProgressBar;
}(react__WEBPACK_IMPORTED_MODULE_5___default.a.Component);

ProgressBar.propTypes = propTypes;
ProgressBar.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsClass"])('progress-bar', Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsStyles"])(_babel_runtime_corejs2_core_js_object_values__WEBPACK_IMPORTED_MODULE_0___default()(_utils_StyleConfig__WEBPACK_IMPORTED_MODULE_8__["State"]), ProgressBar)));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/Radio.js":
/*!**************************************************!*\
  !*** ./node_modules/react-bootstrap/es/Radio.js ***!
  \**************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! warning */ "./node_modules/warning/browser.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");




/* eslint-disable jsx-a11y/label-has-for */





var propTypes = {
  inline: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,
  disabled: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,
  title: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,

  /**
   * Only valid if `inline` is not set.
   */
  validationState: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOf(['success', 'warning', 'error', null]),

  /**
   * Attaches a ref to the `<input>` element. Only functions can be used here.
   *
   * ```js
   * <Radio inputRef={ref => { this.input = ref; }} />
   * ```
   */
  inputRef: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func
};
var defaultProps = {
  inline: false,
  disabled: false,
  title: ''
};

var Radio =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Radio, _React$Component);

  function Radio() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Radio.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        inline = _this$props.inline,
        disabled = _this$props.disabled,
        validationState = _this$props.validationState,
        inputRef = _this$props.inputRef,
        className = _this$props.className,
        style = _this$props.style,
        title = _this$props.title,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["inline", "disabled", "validationState", "inputRef", "className", "style", "title", "children"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var input = react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("input", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      ref: inputRef,
      type: "radio",
      disabled: disabled
    }));

    if (inline) {
      var _classes2;

      var _classes = (_classes2 = {}, _classes2[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["prefix"])(bsProps, 'inline')] = true, _classes2.disabled = disabled, _classes2); // Use a warning here instead of in propTypes to get better-looking
      // generated documentation.


       true ? warning__WEBPACK_IMPORTED_MODULE_6___default()(!validationState, '`validationState` is ignored on `<Radio inline>`. To display ' + 'validation state on an inline radio, set `validationState` on a ' + 'parent `<FormGroup>` or other element instead.') : undefined;
      return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("label", {
        className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, _classes),
        style: style,
        title: title
      }, input, children);
    }

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["getClassSet"])(bsProps), {
      disabled: disabled
    });

    if (validationState) {
      classes["has-" + validationState] = true;
    }

    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes),
      style: style
    }, react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("label", {
      title: title
    }, input, children));
  };

  return Radio;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

Radio.propTypes = propTypes;
Radio.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsClass"])('radio', Radio));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/Row.js":
/*!************************************************!*\
  !*** ./node_modules/react-bootstrap/es/Row.js ***!
  \************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");







var propTypes = {
  componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5___default.a
};
var defaultProps = {
  componentClass: 'div'
};

var Row =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Row, _React$Component);

  function Row() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Row.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        Component = _this$props.componentClass,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["componentClass", "className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["getClassSet"])(bsProps);
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return Row;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

Row.propTypes = propTypes;
Row.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["bsClass"])('row', Row));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/SafeAnchor.js":
/*!*******************************************************!*\
  !*** ./node_modules/react-bootstrap/es/SafeAnchor.js ***!
  \*******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime-corejs2/helpers/esm/assertThisInitialized.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/createChainedFunction */ "./node_modules/react-bootstrap/es/utils/createChainedFunction.js");








var propTypes = {
  href: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,
  onKeyDown: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,
  disabled: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,
  role: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,
  tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string]),

  /**
   * this is sort of silly but needed for Button
   */
  componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6___default.a
};
var defaultProps = {
  componentClass: 'a'
};

function isTrivialHref(href) {
  return !href || href.trim() === '#';
}
/**
 * There are situations due to browser quirks or Bootstrap CSS where
 * an anchor tag is needed, when semantically a button tag is the
 * better choice. SafeAnchor ensures that when an anchor is used like a
 * button its accessible. It also emulates input `disabled` behavior for
 * links, which is usually desirable for Buttons, NavItems, MenuItems, etc.
 */


var SafeAnchor =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(SafeAnchor, _React$Component);

  function SafeAnchor(props, context) {
    var _this;

    _this = _React$Component.call(this, props, context) || this;
    _this.handleClick = _this.handleClick.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this)));
    _this.handleKeyDown = _this.handleKeyDown.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this)));
    return _this;
  }

  var _proto = SafeAnchor.prototype;

  _proto.handleClick = function handleClick(event) {
    var _this$props = this.props,
        disabled = _this$props.disabled,
        href = _this$props.href,
        onClick = _this$props.onClick;

    if (disabled || isTrivialHref(href)) {
      event.preventDefault();
    }

    if (disabled) {
      event.stopPropagation();
      return;
    }

    if (onClick) {
      onClick(event);
    }
  };

  _proto.handleKeyDown = function handleKeyDown(event) {
    if (event.key === ' ') {
      event.preventDefault();
      this.handleClick(event);
    }
  };

  _proto.render = function render() {
    var _this$props2 = this.props,
        Component = _this$props2.componentClass,
        disabled = _this$props2.disabled,
        onKeyDown = _this$props2.onKeyDown,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props2, ["componentClass", "disabled", "onKeyDown"]);

    if (isTrivialHref(props.href)) {
      props.role = props.role || 'button'; // we want to make sure there is a href attribute on the node
      // otherwise, the cursor incorrectly styled (except with role='button')

      props.href = props.href || '#';
    }

    if (disabled) {
      props.tabIndex = -1;
      props.style = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
        pointerEvents: 'none'
      }, props.style);
    }

    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
      onClick: this.handleClick,
      onKeyDown: Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_7__["default"])(this.handleKeyDown, onKeyDown)
    }));
  };

  return SafeAnchor;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

SafeAnchor.propTypes = propTypes;
SafeAnchor.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (SafeAnchor);

/***/ }),

/***/ "./node_modules/react-bootstrap/es/SplitButton.js":
/*!********************************************************!*\
  !*** ./node_modules/react-bootstrap/es/SplitButton.js ***!
  \********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Button */ "./node_modules/react-bootstrap/es/Button.js");
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Dropdown */ "./node_modules/react-bootstrap/es/Dropdown.js");
/* harmony import */ var _SplitToggle__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./SplitToggle */ "./node_modules/react-bootstrap/es/SplitToggle.js");
/* harmony import */ var _utils_splitComponentProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/splitComponentProps */ "./node_modules/react-bootstrap/es/utils/splitComponentProps.js");










var propTypes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, _Dropdown__WEBPACK_IMPORTED_MODULE_6__["default"].propTypes, {
  // Toggle props.
  bsStyle: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
  bsSize: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
  href: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,

  /**
   * The content of the split button.
   */
  title: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.node.isRequired,

  /**
   * Accessible label for the toggle; the value of `title` if not specified.
   */
  toggleLabel: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
  // Override generated docs from <Dropdown>.

  /**
   * @private
   */
  children: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.node
});

var SplitButton =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(SplitButton, _React$Component);

  function SplitButton() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = SplitButton.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        bsSize = _this$props.bsSize,
        bsStyle = _this$props.bsStyle,
        title = _this$props.title,
        toggleLabel = _this$props.toggleLabel,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_this$props, ["bsSize", "bsStyle", "title", "toggleLabel", "children"]);

    var _splitComponentProps = Object(_utils_splitComponentProps__WEBPACK_IMPORTED_MODULE_8__["default"])(props, _Dropdown__WEBPACK_IMPORTED_MODULE_6__["default"].ControlledComponent),
        dropdownProps = _splitComponentProps[0],
        buttonProps = _splitComponentProps[1];

    return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_6__["default"], Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, dropdownProps, {
      bsSize: bsSize,
      bsStyle: bsStyle
    }), react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_5__["default"], Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, buttonProps, {
      disabled: props.disabled,
      bsSize: bsSize,
      bsStyle: bsStyle
    }), title), react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_SplitToggle__WEBPACK_IMPORTED_MODULE_7__["default"], {
      "aria-label": toggleLabel || title,
      bsSize: bsSize,
      bsStyle: bsStyle
    }), react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_6__["default"].Menu, null, children));
  };

  return SplitButton;
}(react__WEBPACK_IMPORTED_MODULE_3___default.a.Component);

SplitButton.propTypes = propTypes;
SplitButton.Toggle = _SplitToggle__WEBPACK_IMPORTED_MODULE_7__["default"];
/* harmony default export */ __webpack_exports__["default"] = (SplitButton);

/***/ }),

/***/ "./node_modules/react-bootstrap/es/SplitToggle.js":
/*!********************************************************!*\
  !*** ./node_modules/react-bootstrap/es/SplitToggle.js ***!
  \********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _DropdownToggle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DropdownToggle */ "./node_modules/react-bootstrap/es/DropdownToggle.js");





var SplitToggle =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(SplitToggle, _React$Component);

  function SplitToggle() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = SplitToggle.prototype;

  _proto.render = function render() {
    return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_DropdownToggle__WEBPACK_IMPORTED_MODULE_3__["default"], Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, this.props, {
      useAnchor: false,
      noCaret: false
    }));
  };

  return SplitToggle;
}(react__WEBPACK_IMPORTED_MODULE_2___default.a.Component);

SplitToggle.defaultProps = _DropdownToggle__WEBPACK_IMPORTED_MODULE_3__["default"].defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (SplitToggle);

/***/ }),

/***/ "./node_modules/react-bootstrap/es/Tab.js":
/*!************************************************!*\
  !*** ./node_modules/react-bootstrap/es/Tab.js ***!
  \************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _TabContainer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TabContainer */ "./node_modules/react-bootstrap/es/TabContainer.js");
/* harmony import */ var _TabContent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./TabContent */ "./node_modules/react-bootstrap/es/TabContent.js");
/* harmony import */ var _TabPane__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./TabPane */ "./node_modules/react-bootstrap/es/TabPane.js");








var propTypes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, _TabPane__WEBPACK_IMPORTED_MODULE_6__["default"].propTypes, {
  disabled: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
  title: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.node,

  /**
   * tabClassName is used as className for the associated NavItem
   */
  tabClassName: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string
});

var Tab =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(Tab, _React$Component);

  function Tab() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Tab.prototype;

  _proto.render = function render() {
    var props = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, this.props); // These props are for the parent `<Tabs>` rather than the `<TabPane>`.


    delete props.title;
    delete props.disabled;
    delete props.tabClassName;
    return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_TabPane__WEBPACK_IMPORTED_MODULE_6__["default"], props);
  };

  return Tab;
}(react__WEBPACK_IMPORTED_MODULE_2___default.a.Component);

Tab.propTypes = propTypes;
Tab.Container = _TabContainer__WEBPACK_IMPORTED_MODULE_4__["default"];
Tab.Content = _TabContent__WEBPACK_IMPORTED_MODULE_5__["default"];
Tab.Pane = _TabPane__WEBPACK_IMPORTED_MODULE_6__["default"];
/* harmony default export */ __webpack_exports__["default"] = (Tab);

/***/ }),

/***/ "./node_modules/react-bootstrap/es/TabContainer.js":
/*!*********************************************************!*\
  !*** ./node_modules/react-bootstrap/es/TabContainer.js ***!
  \*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var uncontrollable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! uncontrollable */ "./node_modules/uncontrollable/index.js");
/* harmony import */ var uncontrollable__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(uncontrollable__WEBPACK_IMPORTED_MODULE_4__);





var TAB = 'tab';
var PANE = 'pane';
var idPropType = prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number]);
var propTypes = {
  /**
   * HTML id attribute, required if no `generateChildId` prop
   * is specified.
   */
  id: function id(props) {
    var error = null;

    if (!props.generateChildId) {
      for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
        args[_key - 1] = arguments[_key];
      }

      error = idPropType.apply(void 0, [props].concat(args));

      if (!error && !props.id) {
        error = new Error('In order to properly initialize Tabs in a way that is accessible ' + 'to assistive technologies (such as screen readers) an `id` or a ' + '`generateChildId` prop to TabContainer is required');
      }
    }

    return error;
  },

  /**
   * A function that takes an `eventKey` and `type` and returns a unique id for
   * child tab `<NavItem>`s and `<TabPane>`s. The function _must_ be a pure
   * function, meaning it should always return the _same_ id for the same set
   * of inputs. The default value requires that an `id` to be set for the
   * `<TabContainer>`.
   *
   * The `type` argument will either be `"tab"` or `"pane"`.
   *
   * @defaultValue (eventKey, type) => `${this.props.id}-${type}-${key}`
   */
  generateChildId: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,

  /**
   * A callback fired when a tab is selected.
   *
   * @controllable activeKey
   */
  onSelect: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,

  /**
   * The `eventKey` of the currently active tab.
   *
   * @controllable onSelect
   */
  activeKey: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.any
};
var childContextTypes = {
  $bs_tabContainer: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.shape({
    activeKey: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.any,
    onSelect: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func.isRequired,
    getTabId: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func.isRequired,
    getPaneId: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func.isRequired
  })
};

var TabContainer =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(TabContainer, _React$Component);

  function TabContainer() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = TabContainer.prototype;

  _proto.getChildContext = function getChildContext() {
    var _this$props = this.props,
        activeKey = _this$props.activeKey,
        onSelect = _this$props.onSelect,
        generateChildId = _this$props.generateChildId,
        id = _this$props.id;

    var getId = generateChildId || function (key, type) {
      return id ? id + "-" + type + "-" + key : null;
    };

    return {
      $bs_tabContainer: {
        activeKey: activeKey,
        onSelect: onSelect,
        getTabId: function getTabId(key) {
          return getId(key, TAB);
        },
        getPaneId: function getPaneId(key) {
          return getId(key, PANE);
        }
      }
    };
  };

  _proto.render = function render() {
    var _this$props2 = this.props,
        children = _this$props2.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_this$props2, ["children"]);

    delete props.generateChildId;
    delete props.onSelect;
    delete props.activeKey;
    return react__WEBPACK_IMPORTED_MODULE_2___default.a.cloneElement(react__WEBPACK_IMPORTED_MODULE_2___default.a.Children.only(children), props);
  };

  return TabContainer;
}(react__WEBPACK_IMPORTED_MODULE_2___default.a.Component);

TabContainer.propTypes = propTypes;
TabContainer.childContextTypes = childContextTypes;
/* harmony default export */ __webpack_exports__["default"] = (uncontrollable__WEBPACK_IMPORTED_MODULE_4___default()(TabContainer, {
  activeKey: 'onSelect'
}));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/TabContent.js":
/*!*******************************************************!*\
  !*** ./node_modules/react-bootstrap/es/TabContent.js ***!
  \*******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime-corejs2/helpers/esm/assertThisInitialized.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");









var propTypes = {
  componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7___default.a,

  /**
   * Sets a default animation strategy for all children `<TabPane>`s. Use
   * `false` to disable, `true` to enable the default `<Fade>` animation or
   * a react-transition-group v2 `<Transition/>` component.
   */
  animation: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool, prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7___default.a]),

  /**
   * Wait until the first "enter" transition to mount tabs (add them to the DOM)
   */
  mountOnEnter: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,

  /**
   * Unmount tabs (remove it from the DOM) when they are no longer visible
   */
  unmountOnExit: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool
};
var defaultProps = {
  componentClass: 'div',
  animation: true,
  mountOnEnter: false,
  unmountOnExit: false
};
var contextTypes = {
  $bs_tabContainer: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.shape({
    activeKey: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.any
  })
};
var childContextTypes = {
  $bs_tabContent: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.shape({
    bsClass: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
    animation: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool, prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7___default.a]),
    activeKey: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.any,
    mountOnEnter: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
    unmountOnExit: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
    onPaneEnter: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func.isRequired,
    onPaneExited: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func.isRequired,
    exiting: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool.isRequired
  })
};

var TabContent =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(TabContent, _React$Component);

  function TabContent(props, context) {
    var _this;

    _this = _React$Component.call(this, props, context) || this;
    _this.handlePaneEnter = _this.handlePaneEnter.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this)));
    _this.handlePaneExited = _this.handlePaneExited.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this))); // Active entries in state will be `null` unless `animation` is set. Need
    // to track active child in case keys swap and the active child changes
    // but the active key does not.

    _this.state = {
      activeKey: null,
      activeChild: null
    };
    return _this;
  }

  var _proto = TabContent.prototype;

  _proto.getChildContext = function getChildContext() {
    var _this$props = this.props,
        bsClass = _this$props.bsClass,
        animation = _this$props.animation,
        mountOnEnter = _this$props.mountOnEnter,
        unmountOnExit = _this$props.unmountOnExit;
    var stateActiveKey = this.state.activeKey;
    var containerActiveKey = this.getContainerActiveKey();
    var activeKey = stateActiveKey != null ? stateActiveKey : containerActiveKey;
    var exiting = stateActiveKey != null && stateActiveKey !== containerActiveKey;
    return {
      $bs_tabContent: {
        bsClass: bsClass,
        animation: animation,
        activeKey: activeKey,
        mountOnEnter: mountOnEnter,
        unmountOnExit: unmountOnExit,
        onPaneEnter: this.handlePaneEnter,
        onPaneExited: this.handlePaneExited,
        exiting: exiting
      }
    };
  };

  _proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
    if (!nextProps.animation && this.state.activeChild) {
      this.setState({
        activeKey: null,
        activeChild: null
      });
    }
  };

  _proto.componentWillUnmount = function componentWillUnmount() {
    this.isUnmounted = true;
  };

  _proto.getContainerActiveKey = function getContainerActiveKey() {
    var tabContainer = this.context.$bs_tabContainer;
    return tabContainer && tabContainer.activeKey;
  };

  _proto.handlePaneEnter = function handlePaneEnter(child, childKey) {
    if (!this.props.animation) {
      return false;
    } // It's possible that this child should be transitioning out.


    if (childKey !== this.getContainerActiveKey()) {
      return false;
    }

    this.setState({
      activeKey: childKey,
      activeChild: child
    });
    return true;
  };

  _proto.handlePaneExited = function handlePaneExited(child) {
    // This might happen as everything is unmounting.
    if (this.isUnmounted) {
      return;
    }

    this.setState(function (_ref) {
      var activeChild = _ref.activeChild;

      if (activeChild !== child) {
        return null;
      }

      return {
        activeKey: null,
        activeChild: null
      };
    });
  };

  _proto.render = function render() {
    var _this$props2 = this.props,
        Component = _this$props2.componentClass,
        className = _this$props2.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props2, ["componentClass", "className"]);

    var _splitBsPropsAndOmit = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["splitBsPropsAndOmit"])(props, ['animation', 'mountOnEnter', 'unmountOnExit']),
        bsProps = _splitBsPropsAndOmit[0],
        elementProps = _splitBsPropsAndOmit[1];

    return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["prefix"])(bsProps, 'content'))
    }));
  };

  return TabContent;
}(react__WEBPACK_IMPORTED_MODULE_5___default.a.Component);

TabContent.propTypes = propTypes;
TabContent.defaultProps = defaultProps;
TabContent.contextTypes = contextTypes;
TabContent.childContextTypes = childContextTypes;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["bsClass"])('tab', TabContent));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/TabPane.js":
/*!****************************************************!*\
  !*** ./node_modules/react-bootstrap/es/TabPane.js ***!
  \****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime-corejs2/helpers/esm/assertThisInitialized.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! warning */ "./node_modules/warning/browser.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/createChainedFunction */ "./node_modules/react-bootstrap/es/utils/createChainedFunction.js");
/* harmony import */ var _Fade__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Fade */ "./node_modules/react-bootstrap/es/Fade.js");












var propTypes = {
  /**
   * Uniquely identify the `<TabPane>` among its siblings.
   */
  eventKey: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.any,

  /**
   * Use animation when showing or hiding `<TabPane>`s. Use `false` to disable,
   * `true` to enable the default `<Fade>` animation or
   * a react-transition-group v2 `<Transition/>` component.
   */
  animation: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool, prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7___default.a]),

  /** @private * */
  id: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,

  /** @private * */
  'aria-labelledby': prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,

  /**
   * If not explicitly specified and rendered in the context of a
   * `<TabContent>`, the `bsClass` of the `<TabContent>` suffixed by `-pane`.
   * If otherwise not explicitly specified, `tab-pane`.
   */
  bsClass: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,

  /**
   * Transition onEnter callback when animation is not `false`
   */
  onEnter: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,

  /**
   * Transition onEntering callback when animation is not `false`
   */
  onEntering: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,

  /**
   * Transition onEntered callback when animation is not `false`
   */
  onEntered: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,

  /**
   * Transition onExit callback when animation is not `false`
   */
  onExit: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,

  /**
   * Transition onExiting callback when animation is not `false`
   */
  onExiting: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,

  /**
   * Transition onExited callback when animation is not `false`
   */
  onExited: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,

  /**
   * Wait until the first "enter" transition to mount the tab (add it to the DOM)
   */
  mountOnEnter: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,

  /**
   * Unmount the tab (remove it from the DOM) when it is no longer visible
   */
  unmountOnExit: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool
};
var contextTypes = {
  $bs_tabContainer: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.shape({
    getTabId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
    getPaneId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func
  }),
  $bs_tabContent: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.shape({
    bsClass: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
    animation: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool, prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7___default.a]),
    activeKey: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.any,
    mountOnEnter: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
    unmountOnExit: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
    onPaneEnter: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func.isRequired,
    onPaneExited: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func.isRequired,
    exiting: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool.isRequired
  })
};
/**
 * We override the `<TabContainer>` context so `<Nav>`s in `<TabPane>`s don't
 * conflict with the top level one.
 */

var childContextTypes = {
  $bs_tabContainer: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOf([null])
};

var TabPane =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(TabPane, _React$Component);

  function TabPane(props, context) {
    var _this;

    _this = _React$Component.call(this, props, context) || this;
    _this.handleEnter = _this.handleEnter.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this)));
    _this.handleExited = _this.handleExited.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this)));
    _this.in = false;
    return _this;
  }

  var _proto = TabPane.prototype;

  _proto.getChildContext = function getChildContext() {
    return {
      $bs_tabContainer: null
    };
  };

  _proto.componentDidMount = function componentDidMount() {
    if (this.shouldBeIn()) {
      // In lieu of the action event firing.
      this.handleEnter();
    }
  };

  _proto.componentDidUpdate = function componentDidUpdate() {
    if (this.in) {
      if (!this.shouldBeIn()) {
        // We shouldn't be active any more. Notify the parent.
        this.handleExited();
      }
    } else if (this.shouldBeIn()) {
      // We are the active child. Notify the parent.
      this.handleEnter();
    }
  };

  _proto.componentWillUnmount = function componentWillUnmount() {
    if (this.in) {
      // In lieu of the action event firing.
      this.handleExited();
    }
  };

  _proto.getAnimation = function getAnimation() {
    if (this.props.animation != null) {
      return this.props.animation;
    }

    var tabContent = this.context.$bs_tabContent;
    return tabContent && tabContent.animation;
  };

  _proto.handleEnter = function handleEnter() {
    var tabContent = this.context.$bs_tabContent;

    if (!tabContent) {
      return;
    }

    this.in = tabContent.onPaneEnter(this, this.props.eventKey);
  };

  _proto.handleExited = function handleExited() {
    var tabContent = this.context.$bs_tabContent;

    if (!tabContent) {
      return;
    }

    tabContent.onPaneExited(this);
    this.in = false;
  };

  _proto.isActive = function isActive() {
    var tabContent = this.context.$bs_tabContent;
    var activeKey = tabContent && tabContent.activeKey;
    return this.props.eventKey === activeKey;
  };

  _proto.shouldBeIn = function shouldBeIn() {
    return this.getAnimation() && this.isActive();
  };

  _proto.render = function render() {
    var _this$props = this.props,
        eventKey = _this$props.eventKey,
        className = _this$props.className,
        onEnter = _this$props.onEnter,
        onEntering = _this$props.onEntering,
        onEntered = _this$props.onEntered,
        onExit = _this$props.onExit,
        onExiting = _this$props.onExiting,
        onExited = _this$props.onExited,
        propsMountOnEnter = _this$props.mountOnEnter,
        propsUnmountOnExit = _this$props.unmountOnExit,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["eventKey", "className", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit"]);

    var _this$context = this.context,
        tabContent = _this$context.$bs_tabContent,
        tabContainer = _this$context.$bs_tabContainer;

    var _splitBsPropsAndOmit = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_9__["splitBsPropsAndOmit"])(props, ['animation']),
        bsProps = _splitBsPropsAndOmit[0],
        elementProps = _splitBsPropsAndOmit[1];

    var active = this.isActive();
    var animation = this.getAnimation();
    var mountOnEnter = propsMountOnEnter != null ? propsMountOnEnter : tabContent && tabContent.mountOnEnter;
    var unmountOnExit = propsUnmountOnExit != null ? propsUnmountOnExit : tabContent && tabContent.unmountOnExit;

    if (!active && !animation && unmountOnExit) {
      return null;
    }

    var Transition = animation === true ? _Fade__WEBPACK_IMPORTED_MODULE_11__["default"] : animation || null;

    if (tabContent) {
      bsProps.bsClass = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_9__["prefix"])(tabContent, 'pane');
    }

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_9__["getClassSet"])(bsProps), {
      active: active
    });

    if (tabContainer) {
       true ? warning__WEBPACK_IMPORTED_MODULE_8___default()(!elementProps.id && !elementProps['aria-labelledby'], 'In the context of a `<TabContainer>`, `<TabPanes>` are given ' + 'generated `id` and `aria-labelledby` attributes for the sake of ' + 'proper component accessibility. Any provided ones will be ignored. ' + 'To control these attributes directly provide a `generateChildId` ' + 'prop to the parent `<TabContainer>`.') : undefined;
      elementProps.id = tabContainer.getPaneId(eventKey);
      elementProps['aria-labelledby'] = tabContainer.getTabId(eventKey);
    }

    var pane = react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      role: "tabpanel",
      "aria-hidden": !active,
      className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, classes)
    }));

    if (Transition) {
      var exiting = tabContent && tabContent.exiting;
      return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(Transition, {
        in: active && !exiting,
        onEnter: Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_10__["default"])(this.handleEnter, onEnter),
        onEntering: onEntering,
        onEntered: onEntered,
        onExit: onExit,
        onExiting: onExiting,
        onExited: Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_10__["default"])(this.handleExited, onExited),
        mountOnEnter: mountOnEnter,
        unmountOnExit: unmountOnExit
      }, pane);
    }

    return pane;
  };

  return TabPane;
}(react__WEBPACK_IMPORTED_MODULE_5___default.a.Component);

TabPane.propTypes = propTypes;
TabPane.contextTypes = contextTypes;
TabPane.childContextTypes = childContextTypes;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_9__["bsClass"])('tab-pane', TabPane));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/Tabs.js":
/*!*************************************************!*\
  !*** ./node_modules/react-bootstrap/es/Tabs.js ***!
  \*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types-extra/lib/isRequiredForA11y */ "./node_modules/prop-types-extra/lib/isRequiredForA11y.js");
/* harmony import */ var prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var uncontrollable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! uncontrollable */ "./node_modules/uncontrollable/index.js");
/* harmony import */ var uncontrollable__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(uncontrollable__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _Nav__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Nav */ "./node_modules/react-bootstrap/es/Nav.js");
/* harmony import */ var _NavItem__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./NavItem */ "./node_modules/react-bootstrap/es/NavItem.js");
/* harmony import */ var _TabContainer__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./TabContainer */ "./node_modules/react-bootstrap/es/TabContainer.js");
/* harmony import */ var _TabContent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./TabContent */ "./node_modules/react-bootstrap/es/TabContent.js");
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./utils/ValidComponentChildren */ "./node_modules/react-bootstrap/es/utils/ValidComponentChildren.js");














var TabContainer = _TabContainer__WEBPACK_IMPORTED_MODULE_10__["default"].ControlledComponent;
var propTypes = {
  /**
   * Mark the Tab with a matching `eventKey` as active.
   *
   * @controllable onSelect
   */
  activeKey: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.any,

  /**
   * Navigation style
   */
  bsStyle: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(['tabs', 'pills']),

  /**
   * Sets a default animation strategy. Use `false` to disable, `true`
   * to enable the default `<Fade>` animation, or a react-transition-group
   * v2 `<Transition/>` component.
   */
  animation: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool, prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7___default.a]),
  id: prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_5___default()(prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number])),

  /**
   * Callback fired when a Tab is selected.
   *
   * ```js
   * function (
   *   Any eventKey,
   *   SyntheticEvent event?
   * )
   * ```
   *
   * @controllable activeKey
   */
  onSelect: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,

  /**
   * Wait until the first "enter" transition to mount tabs (add them to the DOM)
   */
  mountOnEnter: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,

  /**
   * Unmount tabs (remove it from the DOM) when it is no longer visible
   */
  unmountOnExit: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool
};
var defaultProps = {
  bsStyle: 'tabs',
  animation: true,
  mountOnEnter: false,
  unmountOnExit: false
};

function getDefaultActiveKey(children) {
  var defaultActiveKey;
  _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_13__["default"].forEach(children, function (child) {
    if (defaultActiveKey == null) {
      defaultActiveKey = child.props.eventKey;
    }
  });
  return defaultActiveKey;
}

var Tabs =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Tabs, _React$Component);

  function Tabs() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Tabs.prototype;

  _proto.renderTab = function renderTab(child) {
    var _child$props = child.props,
        title = _child$props.title,
        eventKey = _child$props.eventKey,
        disabled = _child$props.disabled,
        tabClassName = _child$props.tabClassName;

    if (title == null) {
      return null;
    }

    return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_NavItem__WEBPACK_IMPORTED_MODULE_9__["default"], {
      eventKey: eventKey,
      disabled: disabled,
      className: tabClassName
    }, title);
  };

  _proto.render = function render() {
    var _this$props = this.props,
        id = _this$props.id,
        onSelect = _this$props.onSelect,
        animation = _this$props.animation,
        mountOnEnter = _this$props.mountOnEnter,
        unmountOnExit = _this$props.unmountOnExit,
        bsClass = _this$props.bsClass,
        className = _this$props.className,
        style = _this$props.style,
        children = _this$props.children,
        _this$props$activeKey = _this$props.activeKey,
        activeKey = _this$props$activeKey === void 0 ? getDefaultActiveKey(children) : _this$props$activeKey,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["id", "onSelect", "animation", "mountOnEnter", "unmountOnExit", "bsClass", "className", "style", "children", "activeKey"]);

    return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(TabContainer, {
      id: id,
      activeKey: activeKey,
      onSelect: onSelect,
      className: className,
      style: style
    }, react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_Nav__WEBPACK_IMPORTED_MODULE_8__["default"], Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
      role: "tablist"
    }), _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_13__["default"].map(children, this.renderTab)), react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_TabContent__WEBPACK_IMPORTED_MODULE_11__["default"], {
      bsClass: bsClass,
      animation: animation,
      mountOnEnter: mountOnEnter,
      unmountOnExit: unmountOnExit
    }, children)));
  };

  return Tabs;
}(react__WEBPACK_IMPORTED_MODULE_3___default.a.Component);

Tabs.propTypes = propTypes;
Tabs.defaultProps = defaultProps;
Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_12__["bsClass"])('tab', Tabs);
/* harmony default export */ __webpack_exports__["default"] = (uncontrollable__WEBPACK_IMPORTED_MODULE_6___default()(Tabs, {
  activeKey: 'onSelect'
}));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/Tooltip.js":
/*!****************************************************!*\
  !*** ./node_modules/react-bootstrap/es/Tooltip.js ***!
  \****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types-extra/lib/isRequiredForA11y */ "./node_modules/prop-types-extra/lib/isRequiredForA11y.js");
/* harmony import */ var prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js");








var propTypes = {
  /**
   * An html id attribute, necessary for accessibility
   * @type {string|number}
   * @required
   */
  id: prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_6___default()(prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number])),

  /**
   * Sets the direction the Tooltip is positioned towards.
   */
  placement: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOf(['top', 'right', 'bottom', 'left']),

  /**
   * The "top" position value for the Tooltip.
   */
  positionTop: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string]),

  /**
   * The "left" position value for the Tooltip.
   */
  positionLeft: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string]),

  /**
   * The "top" position value for the Tooltip arrow.
   */
  arrowOffsetTop: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string]),

  /**
   * The "left" position value for the Tooltip arrow.
   */
  arrowOffsetLeft: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string])
};
var defaultProps = {
  placement: 'right'
};

var Tooltip =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Tooltip, _React$Component);

  function Tooltip() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Tooltip.prototype;

  _proto.render = function render() {
    var _extends2;

    var _this$props = this.props,
        placement = _this$props.placement,
        positionTop = _this$props.positionTop,
        positionLeft = _this$props.positionLeft,
        arrowOffsetTop = _this$props.arrowOffsetTop,
        arrowOffsetLeft = _this$props.arrowOffsetLeft,
        className = _this$props.className,
        style = _this$props.style,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["placement", "positionTop", "positionLeft", "arrowOffsetTop", "arrowOffsetLeft", "className", "style", "children"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["getClassSet"])(bsProps), (_extends2 = {}, _extends2[placement] = true, _extends2));

    var outerStyle = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
      top: positionTop,
      left: positionLeft
    }, style);

    var arrowStyle = {
      top: arrowOffsetTop,
      left: arrowOffsetLeft
    };
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      role: "tooltip",
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes),
      style: outerStyle
    }), react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", {
      className: Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["prefix"])(bsProps, 'arrow'),
      style: arrowStyle
    }), react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", {
      className: Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["prefix"])(bsProps, 'inner')
    }, children));
  };

  return Tooltip;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

Tooltip.propTypes = propTypes;
Tooltip.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsClass"])('tooltip', Tooltip));

/***/ }),

/***/ "./node_modules/react-bootstrap/es/utils/PropTypes.js":
/*!************************************************************!*\
  !*** ./node_modules/react-bootstrap/es/utils/PropTypes.js ***!
  \************************************************************/
/*! exports provided: generatedId, requiredRoles, exclusiveRoles */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "generatedId", function() { return generatedId; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "requiredRoles", function() { return requiredRoles; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "exclusiveRoles", function() { return exclusiveRoles; });
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types_extra_lib_utils_createChainableTypeChecker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types-extra/lib/utils/createChainableTypeChecker */ "./node_modules/prop-types-extra/lib/utils/createChainableTypeChecker.js");
/* harmony import */ var prop_types_extra_lib_utils_createChainableTypeChecker__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_utils_createChainableTypeChecker__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _ValidComponentChildren__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ValidComponentChildren */ "./node_modules/react-bootstrap/es/utils/ValidComponentChildren.js");



var idPropType = prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number]);
function generatedId(name) {
  return function (props) {
    var error = null;

    if (!props.generateChildId) {
      for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
        args[_key - 1] = arguments[_key];
      }

      error = idPropType.apply(void 0, [props].concat(args));

      if (!error && !props.id) {
        error = new Error("In order to properly initialize the " + name + " in a way that is accessible to assistive technologies " + ("(such as screen readers) an `id` or a `generateChildId` prop to " + name + " is required"));
      }
    }

    return error;
  };
}
function requiredRoles() {
  for (var _len2 = arguments.length, roles = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
    roles[_key2] = arguments[_key2];
  }

  return prop_types_extra_lib_utils_createChainableTypeChecker__WEBPACK_IMPORTED_MODULE_1___default()(function (props, propName, component) {
    var missing;
    roles.every(function (role) {
      if (!_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_2__["default"].some(props.children, function (child) {
        return child.props.bsRole === role;
      })) {
        missing = role;
        return false;
      }

      return true;
    });

    if (missing) {
      return new Error("(children) " + component + " - Missing a required child with bsRole: " + (missing + ". " + component + " must have at least one child of each of ") + ("the following bsRoles: " + roles.join(', ')));
    }

    return null;
  });
}
function exclusiveRoles() {
  for (var _len3 = arguments.length, roles = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
    roles[_key3] = arguments[_key3];
  }

  return prop_types_extra_lib_utils_createChainableTypeChecker__WEBPACK_IMPORTED_MODULE_1___default()(function (props, propName, component) {
    var duplicate;
    roles.every(function (role) {
      var childrenWithRole = _ValidComponentChildren__WEBPACK_IMPORTED_MODULE_2__["default"].filter(props.children, function (child) {
        return child.props.bsRole === role;
      });

      if (childrenWithRole.length > 1) {
        duplicate = role;
        return false;
      }

      return true;
    });

    if (duplicate) {
      return new Error("(children) " + component + " - Duplicate children detected of bsRole: " + (duplicate + ". Only one child each allowed with the following ") + ("bsRoles: " + roles.join(', ')));
    }

    return null;
  });
}

/***/ }),

/***/ "./node_modules/react-bootstrap/es/utils/StyleConfig.js":
/*!**************************************************************!*\
  !*** ./node_modules/react-bootstrap/es/utils/StyleConfig.js ***!
  \**************************************************************/
/*! exports provided: Size, SIZE_MAP, DEVICE_SIZES, State, Style */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Size", function() { return Size; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SIZE_MAP", function() { return SIZE_MAP; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEVICE_SIZES", function() { return DEVICE_SIZES; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "State", function() { return State; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Style", function() { return Style; });
var Size = {
  LARGE: 'large',
  SMALL: 'small',
  XSMALL: 'xsmall'
};
var SIZE_MAP = {
  large: 'lg',
  medium: 'md',
  small: 'sm',
  xsmall: 'xs',
  lg: 'lg',
  md: 'md',
  sm: 'sm',
  xs: 'xs'
};
var DEVICE_SIZES = ['lg', 'md', 'sm', 'xs'];
var State = {
  SUCCESS: 'success',
  WARNING: 'warning',
  DANGER: 'danger',
  INFO: 'info'
};
var Style = {
  DEFAULT: 'default',
  PRIMARY: 'primary',
  LINK: 'link',
  INVERSE: 'inverse'
};

/***/ }),

/***/ "./node_modules/react-bootstrap/es/utils/ValidComponentChildren.js":
/*!*************************************************************************!*\
  !*** ./node_modules/react-bootstrap/es/utils/ValidComponentChildren.js ***!
  \*************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
// TODO: This module should be ElementChildren, and should use named exports.

/**
 * Iterates through children that are typically specified as `props.children`,
 * but only maps over children that are "valid components".
 *
 * The mapFunction provided index will be normalised to the components mapped,
 * so an invalid component would not increase the index.
 *
 * @param {?*} children Children tree container.
 * @param {function(*, int)} func.
 * @param {*} context Context for func.
 * @return {object} Object containing the ordered map of results.
 */

function map(children, func, context) {
  var index = 0;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.map(children, function (child) {
    if (!react__WEBPACK_IMPORTED_MODULE_0___default.a.isValidElement(child)) {
      return child;
    }

    return func.call(context, child, index++);
  });
}
/**
 * Iterates through children that are "valid components".
 *
 * The provided forEachFunc(child, index) will be called for each
 * leaf child with the index reflecting the position relative to "valid components".
 *
 * @param {?*} children Children tree container.
 * @param {function(*, int)} func.
 * @param {*} context Context for context.
 */


function forEach(children, func, context) {
  var index = 0;
  react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.forEach(children, function (child) {
    if (!react__WEBPACK_IMPORTED_MODULE_0___default.a.isValidElement(child)) {
      return;
    }

    func.call(context, child, index++);
  });
}
/**
 * Count the number of "valid components" in the Children container.
 *
 * @param {?*} children Children tree container.
 * @returns {number}
 */


function count(children) {
  var result = 0;
  react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.forEach(children, function (child) {
    if (!react__WEBPACK_IMPORTED_MODULE_0___default.a.isValidElement(child)) {
      return;
    }

    ++result;
  });
  return result;
}
/**
 * Finds children that are typically specified as `props.children`,
 * but only iterates over children that are "valid components".
 *
 * The provided forEachFunc(child, index) will be called for each
 * leaf child with the index reflecting the position relative to "valid components".
 *
 * @param {?*} children Children tree container.
 * @param {function(*, int)} func.
 * @param {*} context Context for func.
 * @returns {array} of children that meet the func return statement
 */


function filter(children, func, context) {
  var index = 0;
  var result = [];
  react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.forEach(children, function (child) {
    if (!react__WEBPACK_IMPORTED_MODULE_0___default.a.isValidElement(child)) {
      return;
    }

    if (func.call(context, child, index++)) {
      result.push(child);
    }
  });
  return result;
}

function find(children, func, context) {
  var index = 0;
  var result;
  react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.forEach(children, function (child) {
    if (result) {
      return;
    }

    if (!react__WEBPACK_IMPORTED_MODULE_0___default.a.isValidElement(child)) {
      return;
    }

    if (func.call(context, child, index++)) {
      result = child;
    }
  });
  return result;
}

function every(children, func, context) {
  var index = 0;
  var result = true;
  react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.forEach(children, function (child) {
    if (!result) {
      return;
    }

    if (!react__WEBPACK_IMPORTED_MODULE_0___default.a.isValidElement(child)) {
      return;
    }

    if (!func.call(context, child, index++)) {
      result = false;
    }
  });
  return result;
}

function some(children, func, context) {
  var index = 0;
  var result = false;
  react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.forEach(children, function (child) {
    if (result) {
      return;
    }

    if (!react__WEBPACK_IMPORTED_MODULE_0___default.a.isValidElement(child)) {
      return;
    }

    if (func.call(context, child, index++)) {
      result = true;
    }
  });
  return result;
}

function toArray(children) {
  var result = [];
  react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.forEach(children, function (child) {
    if (!react__WEBPACK_IMPORTED_MODULE_0___default.a.isValidElement(child)) {
      return;
    }

    result.push(child);
  });
  return result;
}

/* harmony default export */ __webpack_exports__["default"] = ({
  map: map,
  forEach: forEach,
  count: count,
  find: find,
  filter: filter,
  every: every,
  some: some,
  toArray: toArray
});

/***/ }),

/***/ "./node_modules/react-bootstrap/es/utils/bootstrapUtils.js":
/*!*****************************************************************!*\
  !*** ./node_modules/react-bootstrap/es/utils/bootstrapUtils.js ***!
  \*****************************************************************/
/*! exports provided: prefix, bsClass, bsStyles, bsSizes, getClassSet, splitBsProps, splitBsPropsAndOmit, addStyle, _curry */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prefix", function() { return prefix; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bsClass", function() { return bsClass; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bsStyles", function() { return bsStyles; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bsSizes", function() { return bsSizes; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getClassSet", function() { return getClassSet; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "splitBsProps", function() { return splitBsProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "splitBsPropsAndOmit", function() { return splitBsPropsAndOmit; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addStyle", function() { return addStyle; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_curry", function() { return _curry; });
/* harmony import */ var _babel_runtime_corejs2_core_js_object_entries__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/entries */ "./node_modules/@babel/runtime-corejs2/core-js/object/entries.js");
/* harmony import */ var _babel_runtime_corejs2_core_js_object_entries__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs2_core_js_object_entries__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! invariant */ "./node_modules/invariant/browser.js");
/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _StyleConfig__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./StyleConfig */ "./node_modules/react-bootstrap/es/utils/StyleConfig.js");


// TODO: The publicly exposed parts of this should be in lib/BootstrapUtils.




function curry(fn) {
  return function () {
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    var last = args[args.length - 1];

    if (typeof last === 'function') {
      return fn.apply(void 0, args);
    }

    return function (Component) {
      return fn.apply(void 0, args.concat([Component]));
    };
  };
}

function prefix(props, variant) {
  var bsClass = (props.bsClass || '').trim();
  !(bsClass != null) ?  true ? invariant__WEBPACK_IMPORTED_MODULE_2___default()(false, 'A `bsClass` prop is required for this component') : undefined : void 0;
  return bsClass + (variant ? "-" + variant : '');
}
var bsClass = curry(function (defaultClass, Component) {
  var propTypes = Component.propTypes || (Component.propTypes = {});
  var defaultProps = Component.defaultProps || (Component.defaultProps = {});
  propTypes.bsClass = prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string;
  defaultProps.bsClass = defaultClass;
  return Component;
});
var bsStyles = curry(function (styles, defaultStyle, Component) {
  if (typeof defaultStyle !== 'string') {
    Component = defaultStyle;
    defaultStyle = undefined;
  }

  var existing = Component.STYLES || [];
  var propTypes = Component.propTypes || {};
  styles.forEach(function (style) {
    if (existing.indexOf(style) === -1) {
      existing.push(style);
    }
  });
  var propType = prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(existing); // expose the values on the propType function for documentation

  Component.STYLES = existing;
  propType._values = existing;
  Component.propTypes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, propTypes, {
    bsStyle: propType
  });

  if (defaultStyle !== undefined) {
    var defaultProps = Component.defaultProps || (Component.defaultProps = {});
    defaultProps.bsStyle = defaultStyle;
  }

  return Component;
});
var bsSizes = curry(function (sizes, defaultSize, Component) {
  if (typeof defaultSize !== 'string') {
    Component = defaultSize;
    defaultSize = undefined;
  }

  var existing = Component.SIZES || [];
  var propTypes = Component.propTypes || {};
  sizes.forEach(function (size) {
    if (existing.indexOf(size) === -1) {
      existing.push(size);
    }
  });
  var values = [];
  existing.forEach(function (size) {
    var mappedSize = _StyleConfig__WEBPACK_IMPORTED_MODULE_4__["SIZE_MAP"][size];

    if (mappedSize && mappedSize !== size) {
      values.push(mappedSize);
    }

    values.push(size);
  });
  var propType = prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(values);
  propType._values = values; // expose the values on the propType function for documentation

  Component.SIZES = existing;
  Component.propTypes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, propTypes, {
    bsSize: propType
  });

  if (defaultSize !== undefined) {
    if (!Component.defaultProps) {
      Component.defaultProps = {};
    }

    Component.defaultProps.bsSize = defaultSize;
  }

  return Component;
});
function getClassSet(props) {
  var _classes;

  var classes = (_classes = {}, _classes[prefix(props)] = true, _classes);

  if (props.bsSize) {
    var bsSize = _StyleConfig__WEBPACK_IMPORTED_MODULE_4__["SIZE_MAP"][props.bsSize] || props.bsSize;
    classes[prefix(props, bsSize)] = true;
  }

  if (props.bsStyle) {
    classes[prefix(props, props.bsStyle)] = true;
  }

  return classes;
}

function getBsProps(props) {
  return {
    bsClass: props.bsClass,
    bsSize: props.bsSize,
    bsStyle: props.bsStyle,
    bsRole: props.bsRole
  };
}

function isBsProp(propName) {
  return propName === 'bsClass' || propName === 'bsSize' || propName === 'bsStyle' || propName === 'bsRole';
}

function splitBsProps(props) {
  var elementProps = {};

  _babel_runtime_corejs2_core_js_object_entries__WEBPACK_IMPORTED_MODULE_0___default()(props).forEach(function (_ref) {
    var propName = _ref[0],
        propValue = _ref[1];

    if (!isBsProp(propName)) {
      elementProps[propName] = propValue;
    }
  });

  return [getBsProps(props), elementProps];
}
function splitBsPropsAndOmit(props, omittedPropNames) {
  var isOmittedProp = {};
  omittedPropNames.forEach(function (propName) {
    isOmittedProp[propName] = true;
  });
  var elementProps = {};

  _babel_runtime_corejs2_core_js_object_entries__WEBPACK_IMPORTED_MODULE_0___default()(props).forEach(function (_ref2) {
    var propName = _ref2[0],
        propValue = _ref2[1];

    if (!isBsProp(propName) && !isOmittedProp[propName]) {
      elementProps[propName] = propValue;
    }
  });

  return [getBsProps(props), elementProps];
}
/**
 * Add a style variant to a Component. Mutates the propTypes of the component
 * in order to validate the new variant.
 */

function addStyle(Component) {
  for (var _len2 = arguments.length, styleVariant = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
    styleVariant[_key2 - 1] = arguments[_key2];
  }

  bsStyles(styleVariant, Component);
}
var _curry = curry;

/***/ }),

/***/ "./node_modules/react-bootstrap/es/utils/capitalize.js":
/*!*************************************************************!*\
  !*** ./node_modules/react-bootstrap/es/utils/capitalize.js ***!
  \*************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return capitalize; });
function capitalize(string) {
  return "" + string.charAt(0).toUpperCase() + string.slice(1);
}

/***/ }),

/***/ "./node_modules/react-bootstrap/es/utils/createChainedFunction.js":
/*!************************************************************************!*\
  !*** ./node_modules/react-bootstrap/es/utils/createChainedFunction.js ***!
  \************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/**
 * Safe chained function
 *
 * Will only create a new function if needed,
 * otherwise will pass back existing functions or null.
 *
 * @param {function} functions to chain
 * @returns {function|null}
 */
function createChainedFunction() {
  for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
    funcs[_key] = arguments[_key];
  }

  return funcs.filter(function (f) {
    return f != null;
  }).reduce(function (acc, f) {
    if (typeof f !== 'function') {
      throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');
    }

    if (acc === null) {
      return f;
    }

    return function chainedFunction() {
      for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
        args[_key2] = arguments[_key2];
      }

      acc.apply(this, args);
      f.apply(this, args);
    };
  }, null);
}

/* harmony default export */ __webpack_exports__["default"] = (createChainedFunction);

/***/ }),

/***/ "./node_modules/react-bootstrap/es/utils/splitComponentProps.js":
/*!**********************************************************************!*\
  !*** ./node_modules/react-bootstrap/es/utils/splitComponentProps.js ***!
  \**********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return splitComponentProps; });
/* harmony import */ var _babel_runtime_corejs2_core_js_object_entries__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/entries */ "./node_modules/@babel/runtime-corejs2/core-js/object/entries.js");
/* harmony import */ var _babel_runtime_corejs2_core_js_object_entries__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs2_core_js_object_entries__WEBPACK_IMPORTED_MODULE_0__);

function splitComponentProps(props, Component) {
  var componentPropTypes = Component.propTypes;
  var parentProps = {};
  var childProps = {};

  _babel_runtime_corejs2_core_js_object_entries__WEBPACK_IMPORTED_MODULE_0___default()(props).forEach(function (_ref) {
    var propName = _ref[0],
        propValue = _ref[1];

    if (componentPropTypes[propName]) {
      parentProps[propName] = propValue;
    } else {
      childProps[propName] = propValue;
    }
  });

  return [parentProps, childProps];
}

/***/ }),

/***/ "./node_modules/react-bootstrap/lib/utils/StyleConfig.js":
/*!***************************************************************!*\
  !*** ./node_modules/react-bootstrap/lib/utils/StyleConfig.js ***!
  \***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.Style = exports.State = exports.DEVICE_SIZES = exports.SIZE_MAP = exports.Size = void 0;
var Size = {
  LARGE: 'large',
  SMALL: 'small',
  XSMALL: 'xsmall'
};
exports.Size = Size;
var SIZE_MAP = {
  large: 'lg',
  medium: 'md',
  small: 'sm',
  xsmall: 'xs',
  lg: 'lg',
  md: 'md',
  sm: 'sm',
  xs: 'xs'
};
exports.SIZE_MAP = SIZE_MAP;
var DEVICE_SIZES = ['lg', 'md', 'sm', 'xs'];
exports.DEVICE_SIZES = DEVICE_SIZES;
var State = {
  SUCCESS: 'success',
  WARNING: 'warning',
  DANGER: 'danger',
  INFO: 'info'
};
exports.State = State;
var Style = {
  DEFAULT: 'default',
  PRIMARY: 'primary',
  LINK: 'link',
  INVERSE: 'inverse'
};
exports.Style = Style;

/***/ }),

/***/ "./node_modules/react-bootstrap/lib/utils/ValidComponentChildren.js":
/*!**************************************************************************!*\
  !*** ./node_modules/react-bootstrap/lib/utils/ValidComponentChildren.js ***!
  \**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "./node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = void 0;

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

// TODO: This module should be ElementChildren, and should use named exports.

/**
 * Iterates through children that are typically specified as `props.children`,
 * but only maps over children that are "valid components".
 *
 * The mapFunction provided index will be normalised to the components mapped,
 * so an invalid component would not increase the index.
 *
 * @param {?*} children Children tree container.
 * @param {function(*, int)} func.
 * @param {*} context Context for func.
 * @return {object} Object containing the ordered map of results.
 */
function map(children, func, context) {
  var index = 0;
  return _react.default.Children.map(children, function (child) {
    if (!_react.default.isValidElement(child)) {
      return child;
    }

    return func.call(context, child, index++);
  });
}
/**
 * Iterates through children that are "valid components".
 *
 * The provided forEachFunc(child, index) will be called for each
 * leaf child with the index reflecting the position relative to "valid components".
 *
 * @param {?*} children Children tree container.
 * @param {function(*, int)} func.
 * @param {*} context Context for context.
 */


function forEach(children, func, context) {
  var index = 0;

  _react.default.Children.forEach(children, function (child) {
    if (!_react.default.isValidElement(child)) {
      return;
    }

    func.call(context, child, index++);
  });
}
/**
 * Count the number of "valid components" in the Children container.
 *
 * @param {?*} children Children tree container.
 * @returns {number}
 */


function count(children) {
  var result = 0;

  _react.default.Children.forEach(children, function (child) {
    if (!_react.default.isValidElement(child)) {
      return;
    }

    ++result;
  });

  return result;
}
/**
 * Finds children that are typically specified as `props.children`,
 * but only iterates over children that are "valid components".
 *
 * The provided forEachFunc(child, index) will be called for each
 * leaf child with the index reflecting the position relative to "valid components".
 *
 * @param {?*} children Children tree container.
 * @param {function(*, int)} func.
 * @param {*} context Context for func.
 * @returns {array} of children that meet the func return statement
 */


function filter(children, func, context) {
  var index = 0;
  var result = [];

  _react.default.Children.forEach(children, function (child) {
    if (!_react.default.isValidElement(child)) {
      return;
    }

    if (func.call(context, child, index++)) {
      result.push(child);
    }
  });

  return result;
}

function find(children, func, context) {
  var index = 0;
  var result;

  _react.default.Children.forEach(children, function (child) {
    if (result) {
      return;
    }

    if (!_react.default.isValidElement(child)) {
      return;
    }

    if (func.call(context, child, index++)) {
      result = child;
    }
  });

  return result;
}

function every(children, func, context) {
  var index = 0;
  var result = true;

  _react.default.Children.forEach(children, function (child) {
    if (!result) {
      return;
    }

    if (!_react.default.isValidElement(child)) {
      return;
    }

    if (!func.call(context, child, index++)) {
      result = false;
    }
  });

  return result;
}

function some(children, func, context) {
  var index = 0;
  var result = false;

  _react.default.Children.forEach(children, function (child) {
    if (result) {
      return;
    }

    if (!_react.default.isValidElement(child)) {
      return;
    }

    if (func.call(context, child, index++)) {
      result = true;
    }
  });

  return result;
}

function toArray(children) {
  var result = [];

  _react.default.Children.forEach(children, function (child) {
    if (!_react.default.isValidElement(child)) {
      return;
    }

    result.push(child);
  });

  return result;
}

var _default = {
  map: map,
  forEach: forEach,
  count: count,
  find: find,
  filter: filter,
  every: every,
  some: some,
  toArray: toArray
};
exports.default = _default;
module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/react-bootstrap/lib/utils/bootstrapUtils.js":
/*!******************************************************************!*\
  !*** ./node_modules/react-bootstrap/lib/utils/bootstrapUtils.js ***!
  \******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "./node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.prefix = prefix;
exports.getClassSet = getClassSet;
exports.splitBsProps = splitBsProps;
exports.splitBsPropsAndOmit = splitBsPropsAndOmit;
exports.addStyle = addStyle;
exports._curry = exports.bsSizes = exports.bsStyles = exports.bsClass = void 0;

var _entries = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/entries */ "./node_modules/@babel/runtime-corejs2/core-js/object/entries.js"));

var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/extends */ "./node_modules/@babel/runtime-corejs2/helpers/extends.js"));

var _invariant = _interopRequireDefault(__webpack_require__(/*! invariant */ "./node_modules/invariant/browser.js"));

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

var _StyleConfig = __webpack_require__(/*! ./StyleConfig */ "./node_modules/react-bootstrap/lib/utils/StyleConfig.js");

// TODO: The publicly exposed parts of this should be in lib/BootstrapUtils.
function curry(fn) {
  return function () {
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    var last = args[args.length - 1];

    if (typeof last === 'function') {
      return fn.apply(void 0, args);
    }

    return function (Component) {
      return fn.apply(void 0, args.concat([Component]));
    };
  };
}

function prefix(props, variant) {
  var bsClass = (props.bsClass || '').trim();
  !(bsClass != null) ?  true ? (0, _invariant.default)(false, 'A `bsClass` prop is required for this component') : undefined : void 0;
  return bsClass + (variant ? "-" + variant : '');
}

var bsClass = curry(function (defaultClass, Component) {
  var propTypes = Component.propTypes || (Component.propTypes = {});
  var defaultProps = Component.defaultProps || (Component.defaultProps = {});
  propTypes.bsClass = _propTypes.default.string;
  defaultProps.bsClass = defaultClass;
  return Component;
});
exports.bsClass = bsClass;
var bsStyles = curry(function (styles, defaultStyle, Component) {
  if (typeof defaultStyle !== 'string') {
    Component = defaultStyle;
    defaultStyle = undefined;
  }

  var existing = Component.STYLES || [];
  var propTypes = Component.propTypes || {};
  styles.forEach(function (style) {
    if (existing.indexOf(style) === -1) {
      existing.push(style);
    }
  });

  var propType = _propTypes.default.oneOf(existing); // expose the values on the propType function for documentation


  Component.STYLES = existing;
  propType._values = existing;
  Component.propTypes = (0, _extends2.default)({}, propTypes, {
    bsStyle: propType
  });

  if (defaultStyle !== undefined) {
    var defaultProps = Component.defaultProps || (Component.defaultProps = {});
    defaultProps.bsStyle = defaultStyle;
  }

  return Component;
});
exports.bsStyles = bsStyles;
var bsSizes = curry(function (sizes, defaultSize, Component) {
  if (typeof defaultSize !== 'string') {
    Component = defaultSize;
    defaultSize = undefined;
  }

  var existing = Component.SIZES || [];
  var propTypes = Component.propTypes || {};
  sizes.forEach(function (size) {
    if (existing.indexOf(size) === -1) {
      existing.push(size);
    }
  });
  var values = [];
  existing.forEach(function (size) {
    var mappedSize = _StyleConfig.SIZE_MAP[size];

    if (mappedSize && mappedSize !== size) {
      values.push(mappedSize);
    }

    values.push(size);
  });

  var propType = _propTypes.default.oneOf(values);

  propType._values = values; // expose the values on the propType function for documentation

  Component.SIZES = existing;
  Component.propTypes = (0, _extends2.default)({}, propTypes, {
    bsSize: propType
  });

  if (defaultSize !== undefined) {
    if (!Component.defaultProps) {
      Component.defaultProps = {};
    }

    Component.defaultProps.bsSize = defaultSize;
  }

  return Component;
});
exports.bsSizes = bsSizes;

function getClassSet(props) {
  var _classes;

  var classes = (_classes = {}, _classes[prefix(props)] = true, _classes);

  if (props.bsSize) {
    var bsSize = _StyleConfig.SIZE_MAP[props.bsSize] || props.bsSize;
    classes[prefix(props, bsSize)] = true;
  }

  if (props.bsStyle) {
    classes[prefix(props, props.bsStyle)] = true;
  }

  return classes;
}

function getBsProps(props) {
  return {
    bsClass: props.bsClass,
    bsSize: props.bsSize,
    bsStyle: props.bsStyle,
    bsRole: props.bsRole
  };
}

function isBsProp(propName) {
  return propName === 'bsClass' || propName === 'bsSize' || propName === 'bsStyle' || propName === 'bsRole';
}

function splitBsProps(props) {
  var elementProps = {};
  (0, _entries.default)(props).forEach(function (_ref) {
    var propName = _ref[0],
        propValue = _ref[1];

    if (!isBsProp(propName)) {
      elementProps[propName] = propValue;
    }
  });
  return [getBsProps(props), elementProps];
}

function splitBsPropsAndOmit(props, omittedPropNames) {
  var isOmittedProp = {};
  omittedPropNames.forEach(function (propName) {
    isOmittedProp[propName] = true;
  });
  var elementProps = {};
  (0, _entries.default)(props).forEach(function (_ref2) {
    var propName = _ref2[0],
        propValue = _ref2[1];

    if (!isBsProp(propName) && !isOmittedProp[propName]) {
      elementProps[propName] = propValue;
    }
  });
  return [getBsProps(props), elementProps];
}
/**
 * Add a style variant to a Component. Mutates the propTypes of the component
 * in order to validate the new variant.
 */


function addStyle(Component) {
  for (var _len2 = arguments.length, styleVariant = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
    styleVariant[_key2 - 1] = arguments[_key2];
  }

  bsStyles(styleVariant, Component);
}

var _curry = curry;
exports._curry = _curry;

/***/ }),

/***/ "./node_modules/react-bootstrap/lib/utils/createChainedFunction.js":
/*!*************************************************************************!*\
  !*** ./node_modules/react-bootstrap/lib/utils/createChainedFunction.js ***!
  \*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = void 0;

/**
 * Safe chained function
 *
 * Will only create a new function if needed,
 * otherwise will pass back existing functions or null.
 *
 * @param {function} functions to chain
 * @returns {function|null}
 */
function createChainedFunction() {
  for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
    funcs[_key] = arguments[_key];
  }

  return funcs.filter(function (f) {
    return f != null;
  }).reduce(function (acc, f) {
    if (typeof f !== 'function') {
      throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');
    }

    if (acc === null) {
      return f;
    }

    return function chainedFunction() {
      for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
        args[_key2] = arguments[_key2];
      }

      acc.apply(this, args);
      f.apply(this, args);
    };
  }, null);
}

var _default = createChainedFunction;
exports.default = _default;
module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/react-bootstrap/lib/utils/index.js":
/*!*********************************************************!*\
  !*** ./node_modules/react-bootstrap/lib/utils/index.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "./node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js");

var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime-corejs2/helpers/interopRequireWildcard.js");

exports.__esModule = true;
exports.bootstrapUtils = void 0;

var _bootstrapUtils = _interopRequireWildcard(__webpack_require__(/*! ./bootstrapUtils */ "./node_modules/react-bootstrap/lib/utils/bootstrapUtils.js"));

exports.bootstrapUtils = _bootstrapUtils;

var _createChainedFunction2 = _interopRequireDefault(__webpack_require__(/*! ./createChainedFunction */ "./node_modules/react-bootstrap/lib/utils/createChainedFunction.js"));

exports.createChainedFunction = _createChainedFunction2.default;

var _ValidComponentChildren2 = _interopRequireDefault(__webpack_require__(/*! ./ValidComponentChildren */ "./node_modules/react-bootstrap/lib/utils/ValidComponentChildren.js"));

exports.ValidComponentChildren = _ValidComponentChildren2.default;

/***/ }),

/***/ "./node_modules/react-c3js/react-c3js.js":
/*!***********************************************!*\
  !*** ./node_modules/react-c3js/react-c3js.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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; };

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 = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

var c3 = void 0;

var C3Chart = function (_React$Component) {
  _inherits(C3Chart, _React$Component);

  function C3Chart() {
    _classCallCheck(this, C3Chart);

    return _possibleConstructorReturn(this, (C3Chart.__proto__ || Object.getPrototypeOf(C3Chart)).apply(this, arguments));
  }

  _createClass(C3Chart, [{
    key: 'componentDidMount',
    value: function componentDidMount() {
      c3 = __webpack_require__(/*! c3 */ "./node_modules/c3/c3.js");
      this.updateChart(this.props);
    }
  }, {
    key: 'componentWillReceiveProps',
    value: function componentWillReceiveProps(newProps) {
      this.updateChart(newProps);
    }
  }, {
    key: 'componentWillUnmount',
    value: function componentWillUnmount() {
      this.destroyChart();
    }
  }, {
    key: 'destroyChart',
    value: function destroyChart() {
      try {
        this.chart = this.chart.destroy();
      } catch (err) {
        throw new Error('Internal C3 error', err);
      }
    }
  }, {
    key: 'generateChart',
    value: function generateChart(mountNode, config) {
      var newConfig = _extends({ bindto: mountNode }, config);
      return c3.generate(newConfig);
    }
  }, {
    key: 'loadNewData',
    value: function loadNewData(data) {
      this.chart.load(data);
    }
  }, {
    key: 'unloadData',
    value: function unloadData() {
      this.chart.unload();
    }
  }, {
    key: 'updateChart',
    value: function updateChart(config) {
      if (!this.chart) {
        this.chart = this.generateChart((0, _reactDom.findDOMNode)(this), config);
      }

      if (config.unloadBeforeLoad) {
        this.unloadData();
      }

      this.loadNewData(config.data);
    }
  }, {
    key: 'render',
    value: function render() {
      var className = this.props.className ? ' ' + this.props.className : '';
      var style = this.props.style ? this.props.style : {};
      return _react2.default.createElement('div', { className: className, style: style });
    }
  }], [{
    key: 'displayName',
    get: function get() {
      return 'C3Chart';
    }
  }, {
    key: 'propTypes',
    get: function get() {
      return {
        data: _propTypes2.default.object.isRequired,
        title: _propTypes2.default.object,
        size: _propTypes2.default.object,
        padding: _propTypes2.default.object,
        color: _propTypes2.default.object,
        interaction: _propTypes2.default.object,
        transition: _propTypes2.default.object,
        oninit: _propTypes2.default.func,
        onrendered: _propTypes2.default.func,
        onmouseover: _propTypes2.default.func,
        onmouseout: _propTypes2.default.func,
        onresize: _propTypes2.default.func,
        onresized: _propTypes2.default.func,
        axis: _propTypes2.default.object,
        grid: _propTypes2.default.object,
        regions: _propTypes2.default.array,
        legend: _propTypes2.default.object,
        tooltip: _propTypes2.default.object,
        subchart: _propTypes2.default.object,
        zoom: _propTypes2.default.object,
        point: _propTypes2.default.object,
        line: _propTypes2.default.object,
        area: _propTypes2.default.object,
        bar: _propTypes2.default.object,
        pie: _propTypes2.default.object,
        donut: _propTypes2.default.object,
        gauge: _propTypes2.default.object,
        className: _propTypes2.default.string,
        style: _propTypes2.default.object,
        unloadBeforeLoad: _propTypes2.default.bool
      };
    }
  }]);

  return C3Chart;
}(_react2.default.Component);

exports.default = C3Chart;


/***/ }),

/***/ "./node_modules/react-collapse/lib/Collapse.js":
/*!*****************************************************!*\
  !*** ./node_modules/react-collapse/lib/Collapse.js ***!
  \*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.Collapse = undefined;

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; };

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 = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _reactMotion = __webpack_require__(/*! react-motion */ "./node_modules/react-motion/lib/react-motion.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

var SPRING_PRECISION = 1;

var WAITING = 'WAITING';
var RESIZING = 'RESIZING';
var RESTING = 'RESTING';
var IDLING = 'IDLING';

var noop = function noop() {
  return null;
};
var css = {
  collapse: 'ReactCollapse--collapse',
  content: 'ReactCollapse--content'
};

var Collapse = exports.Collapse = function (_React$PureComponent) {
  _inherits(Collapse, _React$PureComponent);

  function Collapse(props) {
    _classCallCheck(this, Collapse);

    var _this = _possibleConstructorReturn(this, (Collapse.__proto__ || Object.getPrototypeOf(Collapse)).call(this, props));

    _initialiseProps.call(_this);

    _this.state = {
      currentState: IDLING,
      from: 0,
      to: 0
    };
    return _this;
  }

  _createClass(Collapse, [{
    key: 'componentDidMount',
    value: function componentDidMount() {
      var _props = this.props,
          isOpened = _props.isOpened,
          forceInitialAnimation = _props.forceInitialAnimation,
          onRest = _props.onRest;

      if (isOpened) {
        var to = this.getTo();
        if (forceInitialAnimation) {
          var from = this.wrapper.clientHeight;
          this.setState({ currentState: RESIZING, from: from, to: to });
        } else {
          this.setState({ currentState: IDLING, from: to, to: to });
        }
      }
      onRest();
    }
  }, {
    key: 'componentWillReceiveProps',
    value: function componentWillReceiveProps(nextProps) {
      if (nextProps.hasNestedCollapse) {
        // For nested collapses we do not need to change to waiting state
        // and should keep `height:auto`
        // Because children will be animated and height will not jump anyway
        // See https://github.com/nkbt/react-collapse/issues/76 for more details
        if (nextProps.isOpened !== this.props.isOpened) {
          // Still go to WAITING state if own isOpened was changed
          this.setState({ currentState: WAITING });
        }
      } else if (this.state.currentState === IDLING && (nextProps.isOpened || this.props.isOpened)) {
        this.setState({ currentState: WAITING });
      }
    }
  }, {
    key: 'componentDidUpdate',
    value: function componentDidUpdate(_, prevState) {
      var _props2 = this.props,
          isOpened = _props2.isOpened,
          onRest = _props2.onRest,
          onMeasure = _props2.onMeasure;


      if (this.state.currentState === IDLING) {
        onRest();
        return;
      }

      if (prevState.to !== this.state.to) {
        onMeasure({ height: this.state.to, width: this.content.clientWidth });
      }

      var from = this.wrapper.clientHeight;
      var to = isOpened ? this.getTo() : 0;

      if (from !== to) {
        this.setState({ currentState: RESIZING, from: from, to: to });
        return;
      }

      if (this.state.currentState === RESTING || this.state.currentState === WAITING) {
        this.setState({ currentState: IDLING, from: from, to: to });
      }
    }
  }, {
    key: 'componentWillUnmount',
    value: function componentWillUnmount() {
      cancelAnimationFrame(this.raf);
    }
  }, {
    key: 'render',
    value: function render() {
      return _react2.default.createElement(_reactMotion.Motion, _extends({}, this.getMotionProps(), {
        onRest: this.onRest,
        children: this.renderContent }));
    }
  }]);

  return Collapse;
}(_react2.default.PureComponent);

Collapse.propTypes = {
  isOpened: _propTypes2.default.bool.isRequired,
  springConfig: _propTypes2.default.objectOf(_propTypes2.default.number),
  forceInitialAnimation: _propTypes2.default.bool,

  hasNestedCollapse: _propTypes2.default.bool,

  fixedHeight: _propTypes2.default.number,

  theme: _propTypes2.default.objectOf(_propTypes2.default.string),
  style: _propTypes2.default.object,

  onRender: _propTypes2.default.func,
  onRest: _propTypes2.default.func,
  onMeasure: _propTypes2.default.func,

  children: _propTypes2.default.node.isRequired
};
Collapse.defaultProps = {
  forceInitialAnimation: false,
  hasNestedCollapse: false,
  fixedHeight: -1,
  style: {},
  theme: css,
  onRender: noop,
  onRest: noop,
  onMeasure: noop
};

var _initialiseProps = function _initialiseProps() {
  var _this2 = this;

  this.onContentRef = function (content) {
    _this2.content = content;
  };

  this.onWrapperRef = function (wrapper) {
    _this2.wrapper = wrapper;
  };

  this.onRest = function () {
    _this2.raf = requestAnimationFrame(_this2.setResting);
  };

  this.setResting = function () {
    _this2.setState({ currentState: RESTING });
  };

  this.getTo = function () {
    var fixedHeight = _this2.props.fixedHeight;

    return fixedHeight > -1 ? fixedHeight : _this2.content.clientHeight;
  };

  this.getWrapperStyle = function (height) {
    if (_this2.state.currentState === IDLING && _this2.state.to) {
      var fixedHeight = _this2.props.fixedHeight;

      if (fixedHeight > -1) {
        return { overflow: 'hidden', height: fixedHeight };
      }
      return { height: 'auto' };
    }

    if (_this2.state.currentState === WAITING && !_this2.state.to) {
      return { overflow: 'hidden', height: 0 };
    }

    return { overflow: 'hidden', height: Math.max(0, height) };
  };

  this.getMotionProps = function () {
    var springConfig = _this2.props.springConfig;


    return _this2.state.currentState === IDLING ? {
      // When completely stable, instantly jump to the position
      defaultStyle: { height: _this2.state.to },
      style: { height: _this2.state.to }
    } : {
      // Otherwise, animate
      defaultStyle: { height: _this2.state.from },
      style: { height: (0, _reactMotion.spring)(_this2.state.to, _extends({ precision: SPRING_PRECISION }, springConfig)) }
    };
  };

  this.renderContent = function (_ref) {
    var height = _ref.height;

    // eslint-disable-line
    var _props3 = _this2.props,
        _isOpened = _props3.isOpened,
        _springConfig = _props3.springConfig,
        _forceInitialAnimation = _props3.forceInitialAnimation,
        _hasNestedCollapse = _props3.hasNestedCollapse,
        _fixedHeight = _props3.fixedHeight,
        theme = _props3.theme,
        style = _props3.style,
        onRender = _props3.onRender,
        _onRest = _props3.onRest,
        _onMeasure = _props3.onMeasure,
        children = _props3.children,
        props = _objectWithoutProperties(_props3, ['isOpened', 'springConfig', 'forceInitialAnimation', 'hasNestedCollapse', 'fixedHeight', 'theme', 'style', 'onRender', 'onRest', 'onMeasure', 'children']);

    var _state = _this2.state,
        from = _state.from,
        to = _state.to;

    // DANGEROUS, use with caution, never do setState with it

    onRender({ current: height, from: from, to: to });

    return _react2.default.createElement(
      'div',
      _extends({
        ref: _this2.onWrapperRef,
        className: theme.collapse,
        style: _extends({}, _this2.getWrapperStyle(Math.max(0, height)), style)
      }, props),
      _react2.default.createElement(
        'div',
        { ref: _this2.onContentRef, className: theme.content },
        children
      )
    );
  };
};

/***/ }),

/***/ "./node_modules/react-collapse/lib/UnmountClosed.js":
/*!**********************************************************!*\
  !*** ./node_modules/react-collapse/lib/UnmountClosed.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.UnmountClosed = undefined;

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; };

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 = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _Collapse = __webpack_require__(/*! ./Collapse */ "./node_modules/react-collapse/lib/Collapse.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

var UnmountClosed = exports.UnmountClosed = function (_React$PureComponent) {
  _inherits(UnmountClosed, _React$PureComponent);

  function UnmountClosed(props) {
    _classCallCheck(this, UnmountClosed);

    var _this = _possibleConstructorReturn(this, (UnmountClosed.__proto__ || Object.getPrototypeOf(UnmountClosed)).call(this, props));

    _this.componentWillReceiveProps = function (_ref) {
      var isOpened = _ref.isOpened;

      if (!_this.props.isOpened && isOpened) {
        _this.setState({
          forceInitialAnimation: true,
          shouldUnmount: false
        });
      }
    };

    _this.onRest = function () {
      var _this$props = _this.props,
          isOpened = _this$props.isOpened,
          onRest = _this$props.onRest;


      if (!isOpened) {
        _this.setState({ shouldUnmount: true });
      }
      if (onRest) {
        onRest.apply(undefined, arguments);
      }
    };

    _this.state = {
      shouldUnmount: !_this.props.isOpened,
      forceInitialAnimation: !_this.props.isOpened
    };
    return _this;
  }

  _createClass(UnmountClosed, [{
    key: 'render',
    value: function render() {
      var _props = this.props,
          isOpened = _props.isOpened,
          _onRest = _props.onRest,
          props = _objectWithoutProperties(_props, ['isOpened', 'onRest']);

      var _state = this.state,
          forceInitialAnimation = _state.forceInitialAnimation,
          shouldUnmount = _state.shouldUnmount;


      return shouldUnmount ? null : _react2.default.createElement(_Collapse.Collapse, _extends({
        forceInitialAnimation: forceInitialAnimation,
        isOpened: isOpened,
        onRest: this.onRest
      }, props));
    }
  }]);

  return UnmountClosed;
}(_react2.default.PureComponent);

UnmountClosed.propTypes = {
  isOpened: _propTypes2.default.bool.isRequired,
  onRest: _propTypes2.default.func
};

/***/ }),

/***/ "./node_modules/react-collapse/lib/index.js":
/*!**************************************************!*\
  !*** ./node_modules/react-collapse/lib/index.js ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _require = __webpack_require__(/*! ./Collapse */ "./node_modules/react-collapse/lib/Collapse.js"),
    Collapse = _require.Collapse;

var _require2 = __webpack_require__(/*! ./UnmountClosed */ "./node_modules/react-collapse/lib/UnmountClosed.js"),
    UnmountClosed = _require2.UnmountClosed;

UnmountClosed.Collapse = Collapse;
UnmountClosed.UnmountClosed = UnmountClosed;

module.exports = UnmountClosed;

/***/ }),

/***/ "./node_modules/react-dom/cjs/react-dom.development.js":
/*!*************************************************************!*\
  !*** ./node_modules/react-dom/cjs/react-dom.development.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/** @license React v16.6.1
 * react-dom.development.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */





if (true) {
  (function() {
'use strict';

var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
var _assign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js");
var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "./node_modules/prop-types/checkPropTypes.js");
var scheduler = __webpack_require__(/*! scheduler */ "./node_modules/scheduler/index.js");
var tracing = __webpack_require__(/*! scheduler/tracing */ "./node_modules/scheduler/tracing.js");

/**
 * Use invariant() to assert state which your program assumes to be true.
 *
 * Provide sprintf-style format (only %s is supported) and arguments
 * to provide information about what broke and what you were
 * expecting.
 *
 * The invariant message will be stripped in production, but the invariant
 * will remain to ensure logic does not differ in production.
 */

var validateFormat = function () {};

{
  validateFormat = function (format) {
    if (format === undefined) {
      throw new Error('invariant requires an error message argument');
    }
  };
}

function invariant(condition, format, a, b, c, d, e, f) {
  validateFormat(format);

  if (!condition) {
    var error = void 0;
    if (format === undefined) {
      error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
    } else {
      var args = [a, b, c, d, e, f];
      var argIndex = 0;
      error = new Error(format.replace(/%s/g, function () {
        return args[argIndex++];
      }));
      error.name = 'Invariant Violation';
    }

    error.framesToPop = 1; // we don't care about invariant's own frame
    throw error;
  }
}

// Relying on the `invariant()` implementation lets us
// preserve the format and params in the www builds.

!React ? invariant(false, 'ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.') : void 0;

var invokeGuardedCallbackImpl = function (name, func, context, a, b, c, d, e, f) {
  var funcArgs = Array.prototype.slice.call(arguments, 3);
  try {
    func.apply(context, funcArgs);
  } catch (error) {
    this.onError(error);
  }
};

{
  // In DEV mode, we swap out invokeGuardedCallback for a special version
  // that plays more nicely with the browser's DevTools. The idea is to preserve
  // "Pause on exceptions" behavior. Because React wraps all user-provided
  // functions in invokeGuardedCallback, and the production version of
  // invokeGuardedCallback uses a try-catch, all user exceptions are treated
  // like caught exceptions, and the DevTools won't pause unless the developer
  // takes the extra step of enabling pause on caught exceptions. This is
  // untintuitive, though, because even though React has caught the error, from
  // the developer's perspective, the error is uncaught.
  //
  // To preserve the expected "Pause on exceptions" behavior, we don't use a
  // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake
  // DOM node, and call the user-provided callback from inside an event handler
  // for that fake event. If the callback throws, the error is "captured" using
  // a global event handler. But because the error happens in a different
  // event loop context, it does not interrupt the normal program flow.
  // Effectively, this gives us try-catch behavior without actually using
  // try-catch. Neat!

  // Check that the browser supports the APIs we need to implement our special
  // DEV version of invokeGuardedCallback
  if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') {
    var fakeNode = document.createElement('react');

    var invokeGuardedCallbackDev = function (name, func, context, a, b, c, d, e, f) {
      // If document doesn't exist we know for sure we will crash in this method
      // when we call document.createEvent(). However this can cause confusing
      // errors: https://github.com/facebookincubator/create-react-app/issues/3482
      // So we preemptively throw with a better message instead.
      !(typeof document !== 'undefined') ? invariant(false, 'The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.') : void 0;
      var evt = document.createEvent('Event');

      // Keeps track of whether the user-provided callback threw an error. We
      // set this to true at the beginning, then set it to false right after
      // calling the function. If the function errors, `didError` will never be
      // set to false. This strategy works even if the browser is flaky and
      // fails to call our global error handler, because it doesn't rely on
      // the error event at all.
      var didError = true;

      // Keeps track of the value of window.event so that we can reset it
      // during the callback to let user code access window.event in the
      // browsers that support it.
      var windowEvent = window.event;

      // Keeps track of the descriptor of window.event to restore it after event
      // dispatching: https://github.com/facebook/react/issues/13688
      var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, 'event');

      // Create an event handler for our fake event. We will synchronously
      // dispatch our fake event using `dispatchEvent`. Inside the handler, we
      // call the user-provided callback.
      var funcArgs = Array.prototype.slice.call(arguments, 3);
      function callCallback() {
        // We immediately remove the callback from event listeners so that
        // nested `invokeGuardedCallback` calls do not clash. Otherwise, a
        // nested call would trigger the fake event handlers of any call higher
        // in the stack.
        fakeNode.removeEventListener(evtType, callCallback, false);

        // We check for window.hasOwnProperty('event') to prevent the
        // window.event assignment in both IE <= 10 as they throw an error
        // "Member not found" in strict mode, and in Firefox which does not
        // support window.event.
        if (typeof window.event !== 'undefined' && window.hasOwnProperty('event')) {
          window.event = windowEvent;
        }

        func.apply(context, funcArgs);
        didError = false;
      }

      // Create a global error event handler. We use this to capture the value
      // that was thrown. It's possible that this error handler will fire more
      // than once; for example, if non-React code also calls `dispatchEvent`
      // and a handler for that event throws. We should be resilient to most of
      // those cases. Even if our error event handler fires more than once, the
      // last error event is always used. If the callback actually does error,
      // we know that the last error event is the correct one, because it's not
      // possible for anything else to have happened in between our callback
      // erroring and the code that follows the `dispatchEvent` call below. If
      // the callback doesn't error, but the error event was fired, we know to
      // ignore it because `didError` will be false, as described above.
      var error = void 0;
      // Use this to track whether the error event is ever called.
      var didSetError = false;
      var isCrossOriginError = false;

      function handleWindowError(event) {
        error = event.error;
        didSetError = true;
        if (error === null && event.colno === 0 && event.lineno === 0) {
          isCrossOriginError = true;
        }
        if (event.defaultPrevented) {
          // Some other error handler has prevented default.
          // Browsers silence the error report if this happens.
          // We'll remember this to later decide whether to log it or not.
          if (error != null && typeof error === 'object') {
            try {
              error._suppressLogging = true;
            } catch (inner) {
              // Ignore.
            }
          }
        }
      }

      // Create a fake event type.
      var evtType = 'react-' + (name ? name : 'invokeguardedcallback');

      // Attach our event handlers
      window.addEventListener('error', handleWindowError);
      fakeNode.addEventListener(evtType, callCallback, false);

      // Synchronously dispatch our fake event. If the user-provided function
      // errors, it will trigger our global error handler.
      evt.initEvent(evtType, false, false);
      fakeNode.dispatchEvent(evt);

      if (windowEventDescriptor) {
        Object.defineProperty(window, 'event', windowEventDescriptor);
      }

      if (didError) {
        if (!didSetError) {
          // The callback errored, but the error event never fired.
          error = new Error('An error was thrown inside one of your components, but React ' + "doesn't know what it was. This is likely due to browser " + 'flakiness. React does its best to preserve the "Pause on ' + 'exceptions" behavior of the DevTools, which requires some ' + "DEV-mode only tricks. It's possible that these don't work in " + 'your browser. Try triggering the error in production mode, ' + 'or switching to a modern browser. If you suspect that this is ' + 'actually an issue with React, please file an issue.');
        } else if (isCrossOriginError) {
          error = new Error("A cross-origin error was thrown. React doesn't have access to " + 'the actual error object in development. ' + 'See https://fb.me/react-crossorigin-error for more information.');
        }
        this.onError(error);
      }

      // Remove our event listeners
      window.removeEventListener('error', handleWindowError);
    };

    invokeGuardedCallbackImpl = invokeGuardedCallbackDev;
  }
}

var invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl;

// Used by Fiber to simulate a try-catch.
var hasError = false;
var caughtError = null;

// Used by event system to capture/rethrow the first error.
var hasRethrowError = false;
var rethrowError = null;

var reporter = {
  onError: function (error) {
    hasError = true;
    caughtError = error;
  }
};

/**
 * Call a function while guarding against errors that happens within it.
 * Returns an error if it throws, otherwise null.
 *
 * In production, this is implemented using a try-catch. The reason we don't
 * use a try-catch directly is so that we can swap out a different
 * implementation in DEV mode.
 *
 * @param {String} name of the guard to use for logging or debugging
 * @param {Function} func The function to invoke
 * @param {*} context The context to use when calling the function
 * @param {...*} args Arguments for function
 */
function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) {
  hasError = false;
  caughtError = null;
  invokeGuardedCallbackImpl$1.apply(reporter, arguments);
}

/**
 * Same as invokeGuardedCallback, but instead of returning an error, it stores
 * it in a global so it can be rethrown by `rethrowCaughtError` later.
 * TODO: See if caughtError and rethrowError can be unified.
 *
 * @param {String} name of the guard to use for logging or debugging
 * @param {Function} func The function to invoke
 * @param {*} context The context to use when calling the function
 * @param {...*} args Arguments for function
 */
function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) {
  invokeGuardedCallback.apply(this, arguments);
  if (hasError) {
    var error = clearCaughtError();
    if (!hasRethrowError) {
      hasRethrowError = true;
      rethrowError = error;
    }
  }
}

/**
 * During execution of guarded functions we will capture the first error which
 * we will rethrow to be handled by the top level error handler.
 */
function rethrowCaughtError() {
  if (hasRethrowError) {
    var error = rethrowError;
    hasRethrowError = false;
    rethrowError = null;
    throw error;
  }
}

function hasCaughtError() {
  return hasError;
}

function clearCaughtError() {
  if (hasError) {
    var error = caughtError;
    hasError = false;
    caughtError = null;
    return error;
  } else {
    invariant(false, 'clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.');
  }
}

/**
 * Injectable ordering of event plugins.
 */
var eventPluginOrder = null;

/**
 * Injectable mapping from names to event plugin modules.
 */
var namesToPlugins = {};

/**
 * Recomputes the plugin list using the injected plugins and plugin ordering.
 *
 * @private
 */
function recomputePluginOrdering() {
  if (!eventPluginOrder) {
    // Wait until an `eventPluginOrder` is injected.
    return;
  }
  for (var pluginName in namesToPlugins) {
    var pluginModule = namesToPlugins[pluginName];
    var pluginIndex = eventPluginOrder.indexOf(pluginName);
    !(pluginIndex > -1) ? invariant(false, 'EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.', pluginName) : void 0;
    if (plugins[pluginIndex]) {
      continue;
    }
    !pluginModule.extractEvents ? invariant(false, 'EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.', pluginName) : void 0;
    plugins[pluginIndex] = pluginModule;
    var publishedEvents = pluginModule.eventTypes;
    for (var eventName in publishedEvents) {
      !publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName) ? invariant(false, 'EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.', eventName, pluginName) : void 0;
    }
  }
}

/**
 * Publishes an event so that it can be dispatched by the supplied plugin.
 *
 * @param {object} dispatchConfig Dispatch configuration for the event.
 * @param {object} PluginModule Plugin publishing the event.
 * @return {boolean} True if the event was successfully published.
 * @private
 */
function publishEventForPlugin(dispatchConfig, pluginModule, eventName) {
  !!eventNameDispatchConfigs.hasOwnProperty(eventName) ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.', eventName) : void 0;
  eventNameDispatchConfigs[eventName] = dispatchConfig;

  var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
  if (phasedRegistrationNames) {
    for (var phaseName in phasedRegistrationNames) {
      if (phasedRegistrationNames.hasOwnProperty(phaseName)) {
        var phasedRegistrationName = phasedRegistrationNames[phaseName];
        publishRegistrationName(phasedRegistrationName, pluginModule, eventName);
      }
    }
    return true;
  } else if (dispatchConfig.registrationName) {
    publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName);
    return true;
  }
  return false;
}

/**
 * Publishes a registration name that is used to identify dispatched events.
 *
 * @param {string} registrationName Registration name to add.
 * @param {object} PluginModule Plugin publishing the event.
 * @private
 */
function publishRegistrationName(registrationName, pluginModule, eventName) {
  !!registrationNameModules[registrationName] ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.', registrationName) : void 0;
  registrationNameModules[registrationName] = pluginModule;
  registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies;

  {
    var lowerCasedName = registrationName.toLowerCase();
    possibleRegistrationNames[lowerCasedName] = registrationName;

    if (registrationName === 'onDoubleClick') {
      possibleRegistrationNames.ondblclick = registrationName;
    }
  }
}

/**
 * Registers plugins so that they can extract and dispatch events.
 *
 * @see {EventPluginHub}
 */

/**
 * Ordered list of injected plugins.
 */
var plugins = [];

/**
 * Mapping from event name to dispatch config
 */
var eventNameDispatchConfigs = {};

/**
 * Mapping from registration name to plugin module
 */
var registrationNameModules = {};

/**
 * Mapping from registration name to event name
 */
var registrationNameDependencies = {};

/**
 * Mapping from lowercase registration names to the properly cased version,
 * used to warn in the case of missing event handlers. Available
 * only in true.
 * @type {Object}
 */
var possibleRegistrationNames = {};
// Trust the developer to only use possibleRegistrationNames in true

/**
 * Injects an ordering of plugins (by plugin name). This allows the ordering
 * to be decoupled from injection of the actual plugins so that ordering is
 * always deterministic regardless of packaging, on-the-fly injection, etc.
 *
 * @param {array} InjectedEventPluginOrder
 * @internal
 * @see {EventPluginHub.injection.injectEventPluginOrder}
 */
function injectEventPluginOrder(injectedEventPluginOrder) {
  !!eventPluginOrder ? invariant(false, 'EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.') : void 0;
  // Clone the ordering so it cannot be dynamically mutated.
  eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);
  recomputePluginOrdering();
}

/**
 * Injects plugins to be used by `EventPluginHub`. The plugin names must be
 * in the ordering injected by `injectEventPluginOrder`.
 *
 * Plugins can be injected as part of page initialization or on-the-fly.
 *
 * @param {object} injectedNamesToPlugins Map from names to plugin modules.
 * @internal
 * @see {EventPluginHub.injection.injectEventPluginsByName}
 */
function injectEventPluginsByName(injectedNamesToPlugins) {
  var isOrderingDirty = false;
  for (var pluginName in injectedNamesToPlugins) {
    if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) {
      continue;
    }
    var pluginModule = injectedNamesToPlugins[pluginName];
    if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) {
      !!namesToPlugins[pluginName] ? invariant(false, 'EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.', pluginName) : void 0;
      namesToPlugins[pluginName] = pluginModule;
      isOrderingDirty = true;
    }
  }
  if (isOrderingDirty) {
    recomputePluginOrdering();
  }
}

/**
 * Similar to invariant but only logs a warning if the condition is not met.
 * This can be used to log issues in development environments in critical
 * paths. Removing the logging code for production environments will keep the
 * same logic and follow the same code paths.
 */

var warningWithoutStack = function () {};

{
  warningWithoutStack = function (condition, format) {
    for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
      args[_key - 2] = arguments[_key];
    }

    if (format === undefined) {
      throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
    }
    if (args.length > 8) {
      // Check before the condition to catch violations early.
      throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
    }
    if (condition) {
      return;
    }
    if (typeof console !== 'undefined') {
      var argsWithFormat = args.map(function (item) {
        return '' + item;
      });
      argsWithFormat.unshift('Warning: ' + format);

      // We intentionally don't use spread (or .apply) directly because it
      // breaks IE9: https://github.com/facebook/react/issues/13610
      Function.prototype.apply.call(console.error, console, argsWithFormat);
    }
    try {
      // --- Welcome to debugging React ---
      // This error was thrown as a convenience so that you can use this stack
      // to find the callsite that caused this warning to fire.
      var argIndex = 0;
      var message = 'Warning: ' + format.replace(/%s/g, function () {
        return args[argIndex++];
      });
      throw new Error(message);
    } catch (x) {}
  };
}

var warningWithoutStack$1 = warningWithoutStack;

var getFiberCurrentPropsFromNode = null;
var getInstanceFromNode = null;
var getNodeFromInstance = null;

function setComponentTree(getFiberCurrentPropsFromNodeImpl, getInstanceFromNodeImpl, getNodeFromInstanceImpl) {
  getFiberCurrentPropsFromNode = getFiberCurrentPropsFromNodeImpl;
  getInstanceFromNode = getInstanceFromNodeImpl;
  getNodeFromInstance = getNodeFromInstanceImpl;
  {
    !(getNodeFromInstance && getInstanceFromNode) ? warningWithoutStack$1(false, 'EventPluginUtils.setComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.') : void 0;
  }
}

var validateEventDispatches = void 0;
{
  validateEventDispatches = function (event) {
    var dispatchListeners = event._dispatchListeners;
    var dispatchInstances = event._dispatchInstances;

    var listenersIsArr = Array.isArray(dispatchListeners);
    var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0;

    var instancesIsArr = Array.isArray(dispatchInstances);
    var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0;

    !(instancesIsArr === listenersIsArr && instancesLen === listenersLen) ? warningWithoutStack$1(false, 'EventPluginUtils: Invalid `event`.') : void 0;
  };
}

/**
 * Dispatch the event to the listener.
 * @param {SyntheticEvent} event SyntheticEvent to handle
 * @param {function} listener Application-level callback
 * @param {*} inst Internal component instance
 */
function executeDispatch(event, listener, inst) {
  var type = event.type || 'unknown-event';
  event.currentTarget = getNodeFromInstance(inst);
  invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event);
  event.currentTarget = null;
}

/**
 * Standard/simple iteration through an event's collected dispatches.
 */
function executeDispatchesInOrder(event) {
  var dispatchListeners = event._dispatchListeners;
  var dispatchInstances = event._dispatchInstances;
  {
    validateEventDispatches(event);
  }
  if (Array.isArray(dispatchListeners)) {
    for (var i = 0; i < dispatchListeners.length; i++) {
      if (event.isPropagationStopped()) {
        break;
      }
      // Listeners and Instances are two parallel arrays that are always in sync.
      executeDispatch(event, dispatchListeners[i], dispatchInstances[i]);
    }
  } else if (dispatchListeners) {
    executeDispatch(event, dispatchListeners, dispatchInstances);
  }
  event._dispatchListeners = null;
  event._dispatchInstances = null;
}

/**
 * @see executeDispatchesInOrderStopAtTrueImpl
 */


/**
 * Execution of a "direct" dispatch - there must be at most one dispatch
 * accumulated on the event or it is considered an error. It doesn't really make
 * sense for an event with multiple dispatches (bubbled) to keep track of the
 * return values at each dispatch execution, but it does tend to make sense when
 * dealing with "direct" dispatches.
 *
 * @return {*} The return value of executing the single dispatch.
 */


/**
 * @param {SyntheticEvent} event
 * @return {boolean} True iff number of dispatches accumulated is greater than 0.
 */

/**
 * Accumulates items that must not be null or undefined into the first one. This
 * is used to conserve memory by avoiding array allocations, and thus sacrifices
 * API cleanness. Since `current` can be null before being passed in and not
 * null after this function, make sure to assign it back to `current`:
 *
 * `a = accumulateInto(a, b);`
 *
 * This API should be sparingly used. Try `accumulate` for something cleaner.
 *
 * @return {*|array<*>} An accumulation of items.
 */

function accumulateInto(current, next) {
  !(next != null) ? invariant(false, 'accumulateInto(...): Accumulated items must not be null or undefined.') : void 0;

  if (current == null) {
    return next;
  }

  // Both are not empty. Warning: Never call x.concat(y) when you are not
  // certain that x is an Array (x could be a string with concat method).
  if (Array.isArray(current)) {
    if (Array.isArray(next)) {
      current.push.apply(current, next);
      return current;
    }
    current.push(next);
    return current;
  }

  if (Array.isArray(next)) {
    // A bit too dangerous to mutate `next`.
    return [current].concat(next);
  }

  return [current, next];
}

/**
 * @param {array} arr an "accumulation" of items which is either an Array or
 * a single item. Useful when paired with the `accumulate` module. This is a
 * simple utility that allows us to reason about a collection of items, but
 * handling the case when there is exactly one item (and we do not need to
 * allocate an array).
 * @param {function} cb Callback invoked with each element or a collection.
 * @param {?} [scope] Scope used as `this` in a callback.
 */
function forEachAccumulated(arr, cb, scope) {
  if (Array.isArray(arr)) {
    arr.forEach(cb, scope);
  } else if (arr) {
    cb.call(scope, arr);
  }
}

/**
 * Internal queue of events that have accumulated their dispatches and are
 * waiting to have their dispatches executed.
 */
var eventQueue = null;

/**
 * Dispatches an event and releases it back into the pool, unless persistent.
 *
 * @param {?object} event Synthetic event to be dispatched.
 * @private
 */
var executeDispatchesAndRelease = function (event) {
  if (event) {
    executeDispatchesInOrder(event);

    if (!event.isPersistent()) {
      event.constructor.release(event);
    }
  }
};
var executeDispatchesAndReleaseTopLevel = function (e) {
  return executeDispatchesAndRelease(e);
};

function isInteractive(tag) {
  return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';
}

function shouldPreventMouseEvent(name, type, props) {
  switch (name) {
    case 'onClick':
    case 'onClickCapture':
    case 'onDoubleClick':
    case 'onDoubleClickCapture':
    case 'onMouseDown':
    case 'onMouseDownCapture':
    case 'onMouseMove':
    case 'onMouseMoveCapture':
    case 'onMouseUp':
    case 'onMouseUpCapture':
      return !!(props.disabled && isInteractive(type));
    default:
      return false;
  }
}

/**
 * This is a unified interface for event plugins to be installed and configured.
 *
 * Event plugins can implement the following properties:
 *
 *   `extractEvents` {function(string, DOMEventTarget, string, object): *}
 *     Required. When a top-level event is fired, this method is expected to
 *     extract synthetic events that will in turn be queued and dispatched.
 *
 *   `eventTypes` {object}
 *     Optional, plugins that fire events must publish a mapping of registration
 *     names that are used to register listeners. Values of this mapping must
 *     be objects that contain `registrationName` or `phasedRegistrationNames`.
 *
 *   `executeDispatch` {function(object, function, string)}
 *     Optional, allows plugins to override how an event gets dispatched. By
 *     default, the listener is simply invoked.
 *
 * Each plugin that is injected into `EventsPluginHub` is immediately operable.
 *
 * @public
 */

/**
 * Methods for injecting dependencies.
 */
var injection = {
  /**
   * @param {array} InjectedEventPluginOrder
   * @public
   */
  injectEventPluginOrder: injectEventPluginOrder,

  /**
   * @param {object} injectedNamesToPlugins Map from names to plugin modules.
   */
  injectEventPluginsByName: injectEventPluginsByName
};

/**
 * @param {object} inst The instance, which is the source of events.
 * @param {string} registrationName Name of listener (e.g. `onClick`).
 * @return {?function} The stored callback.
 */
function getListener(inst, registrationName) {
  var listener = void 0;

  // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not
  // live here; needs to be moved to a better place soon
  var stateNode = inst.stateNode;
  if (!stateNode) {
    // Work in progress (ex: onload events in incremental mode).
    return null;
  }
  var props = getFiberCurrentPropsFromNode(stateNode);
  if (!props) {
    // Work in progress.
    return null;
  }
  listener = props[registrationName];
  if (shouldPreventMouseEvent(registrationName, inst.type, props)) {
    return null;
  }
  !(!listener || typeof listener === 'function') ? invariant(false, 'Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener) : void 0;
  return listener;
}

/**
 * Allows registered plugins an opportunity to extract events from top-level
 * native browser events.
 *
 * @return {*} An accumulation of synthetic events.
 * @internal
 */
function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  var events = null;
  for (var i = 0; i < plugins.length; i++) {
    // Not every plugin in the ordering may be loaded at runtime.
    var possiblePlugin = plugins[i];
    if (possiblePlugin) {
      var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
      if (extractedEvents) {
        events = accumulateInto(events, extractedEvents);
      }
    }
  }
  return events;
}

function runEventsInBatch(events) {
  if (events !== null) {
    eventQueue = accumulateInto(eventQueue, events);
  }

  // Set `eventQueue` to null before processing it so that we can tell if more
  // events get enqueued while processing.
  var processingEventQueue = eventQueue;
  eventQueue = null;

  if (!processingEventQueue) {
    return;
  }

  forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel);
  !!eventQueue ? invariant(false, 'processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.') : void 0;
  // This would be a good time to rethrow if any of the event handlers threw.
  rethrowCaughtError();
}

function runExtractedEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  var events = extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  runEventsInBatch(events);
}

var FunctionComponent = 0;
var ClassComponent = 1;
var IndeterminateComponent = 2; // Before we know whether it is function or class
var HostRoot = 3; // Root of a host tree. Could be nested inside another node.
var HostPortal = 4; // A subtree. Could be an entry point to a different renderer.
var HostComponent = 5;
var HostText = 6;
var Fragment = 7;
var Mode = 8;
var ContextConsumer = 9;
var ContextProvider = 10;
var ForwardRef = 11;
var Profiler = 12;
var SuspenseComponent = 13;
var MemoComponent = 14;
var SimpleMemoComponent = 15;
var LazyComponent = 16;
var IncompleteClassComponent = 17;

var randomKey = Math.random().toString(36).slice(2);
var internalInstanceKey = '__reactInternalInstance$' + randomKey;
var internalEventHandlersKey = '__reactEventHandlers$' + randomKey;

function precacheFiberNode(hostInst, node) {
  node[internalInstanceKey] = hostInst;
}

/**
 * Given a DOM node, return the closest ReactDOMComponent or
 * ReactDOMTextComponent instance ancestor.
 */
function getClosestInstanceFromNode(node) {
  if (node[internalInstanceKey]) {
    return node[internalInstanceKey];
  }

  while (!node[internalInstanceKey]) {
    if (node.parentNode) {
      node = node.parentNode;
    } else {
      // Top of the tree. This node must not be part of a React tree (or is
      // unmounted, potentially).
      return null;
    }
  }

  var inst = node[internalInstanceKey];
  if (inst.tag === HostComponent || inst.tag === HostText) {
    // In Fiber, this will always be the deepest root.
    return inst;
  }

  return null;
}

/**
 * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent
 * instance, or null if the node was not rendered by this React.
 */
function getInstanceFromNode$1(node) {
  var inst = node[internalInstanceKey];
  if (inst) {
    if (inst.tag === HostComponent || inst.tag === HostText) {
      return inst;
    } else {
      return null;
    }
  }
  return null;
}

/**
 * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding
 * DOM node.
 */
function getNodeFromInstance$1(inst) {
  if (inst.tag === HostComponent || inst.tag === HostText) {
    // In Fiber this, is just the state node right now. We assume it will be
    // a host component or host text.
    return inst.stateNode;
  }

  // Without this first invariant, passing a non-DOM-component triggers the next
  // invariant for a missing parent, which is super confusing.
  invariant(false, 'getNodeFromInstance: Invalid argument.');
}

function getFiberCurrentPropsFromNode$1(node) {
  return node[internalEventHandlersKey] || null;
}

function updateFiberProps(node, props) {
  node[internalEventHandlersKey] = props;
}

function getParent(inst) {
  do {
    inst = inst.return;
    // TODO: If this is a HostRoot we might want to bail out.
    // That is depending on if we want nested subtrees (layers) to bubble
    // events to their parent. We could also go through parentNode on the
    // host node but that wouldn't work for React Native and doesn't let us
    // do the portal feature.
  } while (inst && inst.tag !== HostComponent);
  if (inst) {
    return inst;
  }
  return null;
}

/**
 * Return the lowest common ancestor of A and B, or null if they are in
 * different trees.
 */
function getLowestCommonAncestor(instA, instB) {
  var depthA = 0;
  for (var tempA = instA; tempA; tempA = getParent(tempA)) {
    depthA++;
  }
  var depthB = 0;
  for (var tempB = instB; tempB; tempB = getParent(tempB)) {
    depthB++;
  }

  // If A is deeper, crawl up.
  while (depthA - depthB > 0) {
    instA = getParent(instA);
    depthA--;
  }

  // If B is deeper, crawl up.
  while (depthB - depthA > 0) {
    instB = getParent(instB);
    depthB--;
  }

  // Walk in lockstep until we find a match.
  var depth = depthA;
  while (depth--) {
    if (instA === instB || instA === instB.alternate) {
      return instA;
    }
    instA = getParent(instA);
    instB = getParent(instB);
  }
  return null;
}

/**
 * Return if A is an ancestor of B.
 */


/**
 * Return the parent instance of the passed-in instance.
 */


/**
 * Simulates the traversal of a two-phase, capture/bubble event dispatch.
 */
function traverseTwoPhase(inst, fn, arg) {
  var path = [];
  while (inst) {
    path.push(inst);
    inst = getParent(inst);
  }
  var i = void 0;
  for (i = path.length; i-- > 0;) {
    fn(path[i], 'captured', arg);
  }
  for (i = 0; i < path.length; i++) {
    fn(path[i], 'bubbled', arg);
  }
}

/**
 * Traverses the ID hierarchy and invokes the supplied `cb` on any IDs that
 * should would receive a `mouseEnter` or `mouseLeave` event.
 *
 * Does not invoke the callback on the nearest common ancestor because nothing
 * "entered" or "left" that element.
 */
function traverseEnterLeave(from, to, fn, argFrom, argTo) {
  var common = from && to ? getLowestCommonAncestor(from, to) : null;
  var pathFrom = [];
  while (true) {
    if (!from) {
      break;
    }
    if (from === common) {
      break;
    }
    var alternate = from.alternate;
    if (alternate !== null && alternate === common) {
      break;
    }
    pathFrom.push(from);
    from = getParent(from);
  }
  var pathTo = [];
  while (true) {
    if (!to) {
      break;
    }
    if (to === common) {
      break;
    }
    var _alternate = to.alternate;
    if (_alternate !== null && _alternate === common) {
      break;
    }
    pathTo.push(to);
    to = getParent(to);
  }
  for (var i = 0; i < pathFrom.length; i++) {
    fn(pathFrom[i], 'bubbled', argFrom);
  }
  for (var _i = pathTo.length; _i-- > 0;) {
    fn(pathTo[_i], 'captured', argTo);
  }
}

/**
 * Some event types have a notion of different registration names for different
 * "phases" of propagation. This finds listeners by a given phase.
 */
function listenerAtPhase(inst, event, propagationPhase) {
  var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase];
  return getListener(inst, registrationName);
}

/**
 * A small set of propagation patterns, each of which will accept a small amount
 * of information, and generate a set of "dispatch ready event objects" - which
 * are sets of events that have already been annotated with a set of dispatched
 * listener functions/ids. The API is designed this way to discourage these
 * propagation strategies from actually executing the dispatches, since we
 * always want to collect the entire set of dispatches before executing even a
 * single one.
 */

/**
 * Tags a `SyntheticEvent` with dispatched listeners. Creating this function
 * here, allows us to not have to bind or create functions for each event.
 * Mutating the event's members allows us to not have to create a wrapping
 * "dispatch" object that pairs the event with the listener.
 */
function accumulateDirectionalDispatches(inst, phase, event) {
  {
    !inst ? warningWithoutStack$1(false, 'Dispatching inst must not be null') : void 0;
  }
  var listener = listenerAtPhase(inst, event, phase);
  if (listener) {
    event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
    event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
  }
}

/**
 * Collect dispatches (must be entirely collected before dispatching - see unit
 * tests). Lazily allocate the array to conserve memory.  We must loop through
 * each event and perform the traversal for each one. We cannot perform a
 * single traversal for the entire collection of events because each event may
 * have a different target.
 */
function accumulateTwoPhaseDispatchesSingle(event) {
  if (event && event.dispatchConfig.phasedRegistrationNames) {
    traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event);
  }
}

/**
 * Accumulates without regard to direction, does not look for phased
 * registration names. Same as `accumulateDirectDispatchesSingle` but without
 * requiring that the `dispatchMarker` be the same as the dispatched ID.
 */
function accumulateDispatches(inst, ignoredDirection, event) {
  if (inst && event && event.dispatchConfig.registrationName) {
    var registrationName = event.dispatchConfig.registrationName;
    var listener = getListener(inst, registrationName);
    if (listener) {
      event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
      event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
    }
  }
}

/**
 * Accumulates dispatches on an `SyntheticEvent`, but only for the
 * `dispatchMarker`.
 * @param {SyntheticEvent} event
 */
function accumulateDirectDispatchesSingle(event) {
  if (event && event.dispatchConfig.registrationName) {
    accumulateDispatches(event._targetInst, null, event);
  }
}

function accumulateTwoPhaseDispatches(events) {
  forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle);
}



function accumulateEnterLeaveDispatches(leave, enter, from, to) {
  traverseEnterLeave(from, to, accumulateDispatches, leave, enter);
}

function accumulateDirectDispatches(events) {
  forEachAccumulated(events, accumulateDirectDispatchesSingle);
}

var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);

// Do not uses the below two methods directly!
// Instead use constants exported from DOMTopLevelEventTypes in ReactDOM.
// (It is the only module that is allowed to access these methods.)

function unsafeCastStringToDOMTopLevelType(topLevelType) {
  return topLevelType;
}

function unsafeCastDOMTopLevelTypeToString(topLevelType) {
  return topLevelType;
}

/**
 * Generate a mapping of standard vendor prefixes using the defined style property and event name.
 *
 * @param {string} styleProp
 * @param {string} eventName
 * @returns {object}
 */
function makePrefixMap(styleProp, eventName) {
  var prefixes = {};

  prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
  prefixes['Webkit' + styleProp] = 'webkit' + eventName;
  prefixes['Moz' + styleProp] = 'moz' + eventName;

  return prefixes;
}

/**
 * A list of event names to a configurable list of vendor prefixes.
 */
var vendorPrefixes = {
  animationend: makePrefixMap('Animation', 'AnimationEnd'),
  animationiteration: makePrefixMap('Animation', 'AnimationIteration'),
  animationstart: makePrefixMap('Animation', 'AnimationStart'),
  transitionend: makePrefixMap('Transition', 'TransitionEnd')
};

/**
 * Event names that have already been detected and prefixed (if applicable).
 */
var prefixedEventNames = {};

/**
 * Element to check for prefixes on.
 */
var style = {};

/**
 * Bootstrap if a DOM exists.
 */
if (canUseDOM) {
  style = document.createElement('div').style;

  // On some platforms, in particular some releases of Android 4.x,
  // the un-prefixed "animation" and "transition" properties are defined on the
  // style object but the events that fire will still be prefixed, so we need
  // to check if the un-prefixed events are usable, and if not remove them from the map.
  if (!('AnimationEvent' in window)) {
    delete vendorPrefixes.animationend.animation;
    delete vendorPrefixes.animationiteration.animation;
    delete vendorPrefixes.animationstart.animation;
  }

  // Same as above
  if (!('TransitionEvent' in window)) {
    delete vendorPrefixes.transitionend.transition;
  }
}

/**
 * Attempts to determine the correct vendor prefixed event name.
 *
 * @param {string} eventName
 * @returns {string}
 */
function getVendorPrefixedEventName(eventName) {
  if (prefixedEventNames[eventName]) {
    return prefixedEventNames[eventName];
  } else if (!vendorPrefixes[eventName]) {
    return eventName;
  }

  var prefixMap = vendorPrefixes[eventName];

  for (var styleProp in prefixMap) {
    if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {
      return prefixedEventNames[eventName] = prefixMap[styleProp];
    }
  }

  return eventName;
}

/**
 * To identify top level events in ReactDOM, we use constants defined by this
 * module. This is the only module that uses the unsafe* methods to express
 * that the constants actually correspond to the browser event names. This lets
 * us save some bundle size by avoiding a top level type -> event name map.
 * The rest of ReactDOM code should import top level types from this file.
 */
var TOP_ABORT = unsafeCastStringToDOMTopLevelType('abort');
var TOP_ANIMATION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationend'));
var TOP_ANIMATION_ITERATION = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationiteration'));
var TOP_ANIMATION_START = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationstart'));
var TOP_BLUR = unsafeCastStringToDOMTopLevelType('blur');
var TOP_CAN_PLAY = unsafeCastStringToDOMTopLevelType('canplay');
var TOP_CAN_PLAY_THROUGH = unsafeCastStringToDOMTopLevelType('canplaythrough');
var TOP_CANCEL = unsafeCastStringToDOMTopLevelType('cancel');
var TOP_CHANGE = unsafeCastStringToDOMTopLevelType('change');
var TOP_CLICK = unsafeCastStringToDOMTopLevelType('click');
var TOP_CLOSE = unsafeCastStringToDOMTopLevelType('close');
var TOP_COMPOSITION_END = unsafeCastStringToDOMTopLevelType('compositionend');
var TOP_COMPOSITION_START = unsafeCastStringToDOMTopLevelType('compositionstart');
var TOP_COMPOSITION_UPDATE = unsafeCastStringToDOMTopLevelType('compositionupdate');
var TOP_CONTEXT_MENU = unsafeCastStringToDOMTopLevelType('contextmenu');
var TOP_COPY = unsafeCastStringToDOMTopLevelType('copy');
var TOP_CUT = unsafeCastStringToDOMTopLevelType('cut');
var TOP_DOUBLE_CLICK = unsafeCastStringToDOMTopLevelType('dblclick');
var TOP_AUX_CLICK = unsafeCastStringToDOMTopLevelType('auxclick');
var TOP_DRAG = unsafeCastStringToDOMTopLevelType('drag');
var TOP_DRAG_END = unsafeCastStringToDOMTopLevelType('dragend');
var TOP_DRAG_ENTER = unsafeCastStringToDOMTopLevelType('dragenter');
var TOP_DRAG_EXIT = unsafeCastStringToDOMTopLevelType('dragexit');
var TOP_DRAG_LEAVE = unsafeCastStringToDOMTopLevelType('dragleave');
var TOP_DRAG_OVER = unsafeCastStringToDOMTopLevelType('dragover');
var TOP_DRAG_START = unsafeCastStringToDOMTopLevelType('dragstart');
var TOP_DROP = unsafeCastStringToDOMTopLevelType('drop');
var TOP_DURATION_CHANGE = unsafeCastStringToDOMTopLevelType('durationchange');
var TOP_EMPTIED = unsafeCastStringToDOMTopLevelType('emptied');
var TOP_ENCRYPTED = unsafeCastStringToDOMTopLevelType('encrypted');
var TOP_ENDED = unsafeCastStringToDOMTopLevelType('ended');
var TOP_ERROR = unsafeCastStringToDOMTopLevelType('error');
var TOP_FOCUS = unsafeCastStringToDOMTopLevelType('focus');
var TOP_GOT_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('gotpointercapture');
var TOP_INPUT = unsafeCastStringToDOMTopLevelType('input');
var TOP_INVALID = unsafeCastStringToDOMTopLevelType('invalid');
var TOP_KEY_DOWN = unsafeCastStringToDOMTopLevelType('keydown');
var TOP_KEY_PRESS = unsafeCastStringToDOMTopLevelType('keypress');
var TOP_KEY_UP = unsafeCastStringToDOMTopLevelType('keyup');
var TOP_LOAD = unsafeCastStringToDOMTopLevelType('load');
var TOP_LOAD_START = unsafeCastStringToDOMTopLevelType('loadstart');
var TOP_LOADED_DATA = unsafeCastStringToDOMTopLevelType('loadeddata');
var TOP_LOADED_METADATA = unsafeCastStringToDOMTopLevelType('loadedmetadata');
var TOP_LOST_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('lostpointercapture');
var TOP_MOUSE_DOWN = unsafeCastStringToDOMTopLevelType('mousedown');
var TOP_MOUSE_MOVE = unsafeCastStringToDOMTopLevelType('mousemove');
var TOP_MOUSE_OUT = unsafeCastStringToDOMTopLevelType('mouseout');
var TOP_MOUSE_OVER = unsafeCastStringToDOMTopLevelType('mouseover');
var TOP_MOUSE_UP = unsafeCastStringToDOMTopLevelType('mouseup');
var TOP_PASTE = unsafeCastStringToDOMTopLevelType('paste');
var TOP_PAUSE = unsafeCastStringToDOMTopLevelType('pause');
var TOP_PLAY = unsafeCastStringToDOMTopLevelType('play');
var TOP_PLAYING = unsafeCastStringToDOMTopLevelType('playing');
var TOP_POINTER_CANCEL = unsafeCastStringToDOMTopLevelType('pointercancel');
var TOP_POINTER_DOWN = unsafeCastStringToDOMTopLevelType('pointerdown');


var TOP_POINTER_MOVE = unsafeCastStringToDOMTopLevelType('pointermove');
var TOP_POINTER_OUT = unsafeCastStringToDOMTopLevelType('pointerout');
var TOP_POINTER_OVER = unsafeCastStringToDOMTopLevelType('pointerover');
var TOP_POINTER_UP = unsafeCastStringToDOMTopLevelType('pointerup');
var TOP_PROGRESS = unsafeCastStringToDOMTopLevelType('progress');
var TOP_RATE_CHANGE = unsafeCastStringToDOMTopLevelType('ratechange');
var TOP_RESET = unsafeCastStringToDOMTopLevelType('reset');
var TOP_SCROLL = unsafeCastStringToDOMTopLevelType('scroll');
var TOP_SEEKED = unsafeCastStringToDOMTopLevelType('seeked');
var TOP_SEEKING = unsafeCastStringToDOMTopLevelType('seeking');
var TOP_SELECTION_CHANGE = unsafeCastStringToDOMTopLevelType('selectionchange');
var TOP_STALLED = unsafeCastStringToDOMTopLevelType('stalled');
var TOP_SUBMIT = unsafeCastStringToDOMTopLevelType('submit');
var TOP_SUSPEND = unsafeCastStringToDOMTopLevelType('suspend');
var TOP_TEXT_INPUT = unsafeCastStringToDOMTopLevelType('textInput');
var TOP_TIME_UPDATE = unsafeCastStringToDOMTopLevelType('timeupdate');
var TOP_TOGGLE = unsafeCastStringToDOMTopLevelType('toggle');
var TOP_TOUCH_CANCEL = unsafeCastStringToDOMTopLevelType('touchcancel');
var TOP_TOUCH_END = unsafeCastStringToDOMTopLevelType('touchend');
var TOP_TOUCH_MOVE = unsafeCastStringToDOMTopLevelType('touchmove');
var TOP_TOUCH_START = unsafeCastStringToDOMTopLevelType('touchstart');
var TOP_TRANSITION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('transitionend'));
var TOP_VOLUME_CHANGE = unsafeCastStringToDOMTopLevelType('volumechange');
var TOP_WAITING = unsafeCastStringToDOMTopLevelType('waiting');
var TOP_WHEEL = unsafeCastStringToDOMTopLevelType('wheel');

// List of events that need to be individually attached to media elements.
// Note that events in this list will *not* be listened to at the top level
// unless they're explicitly whitelisted in `ReactBrowserEventEmitter.listenTo`.
var mediaEventTypes = [TOP_ABORT, TOP_CAN_PLAY, TOP_CAN_PLAY_THROUGH, TOP_DURATION_CHANGE, TOP_EMPTIED, TOP_ENCRYPTED, TOP_ENDED, TOP_ERROR, TOP_LOADED_DATA, TOP_LOADED_METADATA, TOP_LOAD_START, TOP_PAUSE, TOP_PLAY, TOP_PLAYING, TOP_PROGRESS, TOP_RATE_CHANGE, TOP_SEEKED, TOP_SEEKING, TOP_STALLED, TOP_SUSPEND, TOP_TIME_UPDATE, TOP_VOLUME_CHANGE, TOP_WAITING];

function getRawEventName(topLevelType) {
  return unsafeCastDOMTopLevelTypeToString(topLevelType);
}

/**
 * These variables store information about text content of a target node,
 * allowing comparison of content before and after a given event.
 *
 * Identify the node where selection currently begins, then observe
 * both its text content and its current position in the DOM. Since the
 * browser may natively replace the target node during composition, we can
 * use its position to find its replacement.
 *
 *
 */

var root = null;
var startText = null;
var fallbackText = null;

function initialize(nativeEventTarget) {
  root = nativeEventTarget;
  startText = getText();
  return true;
}

function reset() {
  root = null;
  startText = null;
  fallbackText = null;
}

function getData() {
  if (fallbackText) {
    return fallbackText;
  }

  var start = void 0;
  var startValue = startText;
  var startLength = startValue.length;
  var end = void 0;
  var endValue = getText();
  var endLength = endValue.length;

  for (start = 0; start < startLength; start++) {
    if (startValue[start] !== endValue[start]) {
      break;
    }
  }

  var minEnd = startLength - start;
  for (end = 1; end <= minEnd; end++) {
    if (startValue[startLength - end] !== endValue[endLength - end]) {
      break;
    }
  }

  var sliceTail = end > 1 ? 1 - end : undefined;
  fallbackText = endValue.slice(start, sliceTail);
  return fallbackText;
}

function getText() {
  if ('value' in root) {
    return root.value;
  }
  return root.textContent;
}

/* eslint valid-typeof: 0 */

var EVENT_POOL_SIZE = 10;

/**
 * @interface Event
 * @see http://www.w3.org/TR/DOM-Level-3-Events/
 */
var EventInterface = {
  type: null,
  target: null,
  // currentTarget is set when dispatching; no use in copying it here
  currentTarget: function () {
    return null;
  },
  eventPhase: null,
  bubbles: null,
  cancelable: null,
  timeStamp: function (event) {
    return event.timeStamp || Date.now();
  },
  defaultPrevented: null,
  isTrusted: null
};

function functionThatReturnsTrue() {
  return true;
}

function functionThatReturnsFalse() {
  return false;
}

/**
 * Synthetic events are dispatched by event plugins, typically in response to a
 * top-level event delegation handler.
 *
 * These systems should generally use pooling to reduce the frequency of garbage
 * collection. The system should check `isPersistent` to determine whether the
 * event should be released into the pool after being dispatched. Users that
 * need a persisted event should invoke `persist`.
 *
 * Synthetic events (and subclasses) implement the DOM Level 3 Events API by
 * normalizing browser quirks. Subclasses do not necessarily have to implement a
 * DOM interface; custom application-specific events can also subclass this.
 *
 * @param {object} dispatchConfig Configuration used to dispatch this event.
 * @param {*} targetInst Marker identifying the event target.
 * @param {object} nativeEvent Native browser event.
 * @param {DOMEventTarget} nativeEventTarget Target node.
 */
function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) {
  {
    // these have a getter/setter for warnings
    delete this.nativeEvent;
    delete this.preventDefault;
    delete this.stopPropagation;
    delete this.isDefaultPrevented;
    delete this.isPropagationStopped;
  }

  this.dispatchConfig = dispatchConfig;
  this._targetInst = targetInst;
  this.nativeEvent = nativeEvent;

  var Interface = this.constructor.Interface;
  for (var propName in Interface) {
    if (!Interface.hasOwnProperty(propName)) {
      continue;
    }
    {
      delete this[propName]; // this has a getter/setter for warnings
    }
    var normalize = Interface[propName];
    if (normalize) {
      this[propName] = normalize(nativeEvent);
    } else {
      if (propName === 'target') {
        this.target = nativeEventTarget;
      } else {
        this[propName] = nativeEvent[propName];
      }
    }
  }

  var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false;
  if (defaultPrevented) {
    this.isDefaultPrevented = functionThatReturnsTrue;
  } else {
    this.isDefaultPrevented = functionThatReturnsFalse;
  }
  this.isPropagationStopped = functionThatReturnsFalse;
  return this;
}

_assign(SyntheticEvent.prototype, {
  preventDefault: function () {
    this.defaultPrevented = true;
    var event = this.nativeEvent;
    if (!event) {
      return;
    }

    if (event.preventDefault) {
      event.preventDefault();
    } else if (typeof event.returnValue !== 'unknown') {
      event.returnValue = false;
    }
    this.isDefaultPrevented = functionThatReturnsTrue;
  },

  stopPropagation: function () {
    var event = this.nativeEvent;
    if (!event) {
      return;
    }

    if (event.stopPropagation) {
      event.stopPropagation();
    } else if (typeof event.cancelBubble !== 'unknown') {
      // The ChangeEventPlugin registers a "propertychange" event for
      // IE. This event does not support bubbling or cancelling, and
      // any references to cancelBubble throw "Member not found".  A
      // typeof check of "unknown" circumvents this issue (and is also
      // IE specific).
      event.cancelBubble = true;
    }

    this.isPropagationStopped = functionThatReturnsTrue;
  },

  /**
   * We release all dispatched `SyntheticEvent`s after each event loop, adding
   * them back into the pool. This allows a way to hold onto a reference that
   * won't be added back into the pool.
   */
  persist: function () {
    this.isPersistent = functionThatReturnsTrue;
  },

  /**
   * Checks if this event should be released back into the pool.
   *
   * @return {boolean} True if this should not be released, false otherwise.
   */
  isPersistent: functionThatReturnsFalse,

  /**
   * `PooledClass` looks for `destructor` on each instance it releases.
   */
  destructor: function () {
    var Interface = this.constructor.Interface;
    for (var propName in Interface) {
      {
        Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName]));
      }
    }
    this.dispatchConfig = null;
    this._targetInst = null;
    this.nativeEvent = null;
    this.isDefaultPrevented = functionThatReturnsFalse;
    this.isPropagationStopped = functionThatReturnsFalse;
    this._dispatchListeners = null;
    this._dispatchInstances = null;
    {
      Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null));
      Object.defineProperty(this, 'isDefaultPrevented', getPooledWarningPropertyDefinition('isDefaultPrevented', functionThatReturnsFalse));
      Object.defineProperty(this, 'isPropagationStopped', getPooledWarningPropertyDefinition('isPropagationStopped', functionThatReturnsFalse));
      Object.defineProperty(this, 'preventDefault', getPooledWarningPropertyDefinition('preventDefault', function () {}));
      Object.defineProperty(this, 'stopPropagation', getPooledWarningPropertyDefinition('stopPropagation', function () {}));
    }
  }
});

SyntheticEvent.Interface = EventInterface;

/**
 * Helper to reduce boilerplate when creating subclasses.
 */
SyntheticEvent.extend = function (Interface) {
  var Super = this;

  var E = function () {};
  E.prototype = Super.prototype;
  var prototype = new E();

  function Class() {
    return Super.apply(this, arguments);
  }
  _assign(prototype, Class.prototype);
  Class.prototype = prototype;
  Class.prototype.constructor = Class;

  Class.Interface = _assign({}, Super.Interface, Interface);
  Class.extend = Super.extend;
  addEventPoolingTo(Class);

  return Class;
};

addEventPoolingTo(SyntheticEvent);

/**
 * Helper to nullify syntheticEvent instance properties when destructing
 *
 * @param {String} propName
 * @param {?object} getVal
 * @return {object} defineProperty object
 */
function getPooledWarningPropertyDefinition(propName, getVal) {
  var isFunction = typeof getVal === 'function';
  return {
    configurable: true,
    set: set,
    get: get
  };

  function set(val) {
    var action = isFunction ? 'setting the method' : 'setting the property';
    warn(action, 'This is effectively a no-op');
    return val;
  }

  function get() {
    var action = isFunction ? 'accessing the method' : 'accessing the property';
    var result = isFunction ? 'This is a no-op function' : 'This is set to null';
    warn(action, result);
    return getVal;
  }

  function warn(action, result) {
    var warningCondition = false;
    !warningCondition ? warningWithoutStack$1(false, "This synthetic event is reused for performance reasons. If you're seeing this, " + "you're %s `%s` on a released/nullified synthetic event. %s. " + 'If you must keep the original synthetic event around, use event.persist(). ' + 'See https://fb.me/react-event-pooling for more information.', action, propName, result) : void 0;
  }
}

function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) {
  var EventConstructor = this;
  if (EventConstructor.eventPool.length) {
    var instance = EventConstructor.eventPool.pop();
    EventConstructor.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst);
    return instance;
  }
  return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst);
}

function releasePooledEvent(event) {
  var EventConstructor = this;
  !(event instanceof EventConstructor) ? invariant(false, 'Trying to release an event instance into a pool of a different type.') : void 0;
  event.destructor();
  if (EventConstructor.eventPool.length < EVENT_POOL_SIZE) {
    EventConstructor.eventPool.push(event);
  }
}

function addEventPoolingTo(EventConstructor) {
  EventConstructor.eventPool = [];
  EventConstructor.getPooled = getPooledEvent;
  EventConstructor.release = releasePooledEvent;
}

/**
 * @interface Event
 * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents
 */
var SyntheticCompositionEvent = SyntheticEvent.extend({
  data: null
});

/**
 * @interface Event
 * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105
 *      /#events-inputevents
 */
var SyntheticInputEvent = SyntheticEvent.extend({
  data: null
});

var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space
var START_KEYCODE = 229;

var canUseCompositionEvent = canUseDOM && 'CompositionEvent' in window;

var documentMode = null;
if (canUseDOM && 'documentMode' in document) {
  documentMode = document.documentMode;
}

// Webkit offers a very useful `textInput` event that can be used to
// directly represent `beforeInput`. The IE `textinput` event is not as
// useful, so we don't use it.
var canUseTextInputEvent = canUseDOM && 'TextEvent' in window && !documentMode;

// In IE9+, we have access to composition events, but the data supplied
// by the native compositionend event may be incorrect. Japanese ideographic
// spaces, for instance (\u3000) are not recorded correctly.
var useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11);

var SPACEBAR_CODE = 32;
var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE);

// Events and their corresponding property names.
var eventTypes = {
  beforeInput: {
    phasedRegistrationNames: {
      bubbled: 'onBeforeInput',
      captured: 'onBeforeInputCapture'
    },
    dependencies: [TOP_COMPOSITION_END, TOP_KEY_PRESS, TOP_TEXT_INPUT, TOP_PASTE]
  },
  compositionEnd: {
    phasedRegistrationNames: {
      bubbled: 'onCompositionEnd',
      captured: 'onCompositionEndCapture'
    },
    dependencies: [TOP_BLUR, TOP_COMPOSITION_END, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  },
  compositionStart: {
    phasedRegistrationNames: {
      bubbled: 'onCompositionStart',
      captured: 'onCompositionStartCapture'
    },
    dependencies: [TOP_BLUR, TOP_COMPOSITION_START, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  },
  compositionUpdate: {
    phasedRegistrationNames: {
      bubbled: 'onCompositionUpdate',
      captured: 'onCompositionUpdateCapture'
    },
    dependencies: [TOP_BLUR, TOP_COMPOSITION_UPDATE, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  }
};

// Track whether we've ever handled a keypress on the space key.
var hasSpaceKeypress = false;

/**
 * Return whether a native keypress event is assumed to be a command.
 * This is required because Firefox fires `keypress` events for key commands
 * (cut, copy, select-all, etc.) even though no character is inserted.
 */
function isKeypressCommand(nativeEvent) {
  return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) &&
  // ctrlKey && altKey is equivalent to AltGr, and is not a command.
  !(nativeEvent.ctrlKey && nativeEvent.altKey);
}

/**
 * Translate native top level events into event types.
 *
 * @param {string} topLevelType
 * @return {object}
 */
function getCompositionEventType(topLevelType) {
  switch (topLevelType) {
    case TOP_COMPOSITION_START:
      return eventTypes.compositionStart;
    case TOP_COMPOSITION_END:
      return eventTypes.compositionEnd;
    case TOP_COMPOSITION_UPDATE:
      return eventTypes.compositionUpdate;
  }
}

/**
 * Does our fallback best-guess model think this event signifies that
 * composition has begun?
 *
 * @param {string} topLevelType
 * @param {object} nativeEvent
 * @return {boolean}
 */
function isFallbackCompositionStart(topLevelType, nativeEvent) {
  return topLevelType === TOP_KEY_DOWN && nativeEvent.keyCode === START_KEYCODE;
}

/**
 * Does our fallback mode think that this event is the end of composition?
 *
 * @param {string} topLevelType
 * @param {object} nativeEvent
 * @return {boolean}
 */
function isFallbackCompositionEnd(topLevelType, nativeEvent) {
  switch (topLevelType) {
    case TOP_KEY_UP:
      // Command keys insert or clear IME input.
      return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;
    case TOP_KEY_DOWN:
      // Expect IME keyCode on each keydown. If we get any other
      // code we must have exited earlier.
      return nativeEvent.keyCode !== START_KEYCODE;
    case TOP_KEY_PRESS:
    case TOP_MOUSE_DOWN:
    case TOP_BLUR:
      // Events are not possible without cancelling IME.
      return true;
    default:
      return false;
  }
}

/**
 * Google Input Tools provides composition data via a CustomEvent,
 * with the `data` property populated in the `detail` object. If this
 * is available on the event object, use it. If not, this is a plain
 * composition event and we have nothing special to extract.
 *
 * @param {object} nativeEvent
 * @return {?string}
 */
function getDataFromCustomEvent(nativeEvent) {
  var detail = nativeEvent.detail;
  if (typeof detail === 'object' && 'data' in detail) {
    return detail.data;
  }
  return null;
}

/**
 * Check if a composition event was triggered by Korean IME.
 * Our fallback mode does not work well with IE's Korean IME,
 * so just use native composition events when Korean IME is used.
 * Although CompositionEvent.locale property is deprecated,
 * it is available in IE, where our fallback mode is enabled.
 *
 * @param {object} nativeEvent
 * @return {boolean}
 */
function isUsingKoreanIME(nativeEvent) {
  return nativeEvent.locale === 'ko';
}

// Track the current IME composition status, if any.
var isComposing = false;

/**
 * @return {?object} A SyntheticCompositionEvent.
 */
function extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  var eventType = void 0;
  var fallbackData = void 0;

  if (canUseCompositionEvent) {
    eventType = getCompositionEventType(topLevelType);
  } else if (!isComposing) {
    if (isFallbackCompositionStart(topLevelType, nativeEvent)) {
      eventType = eventTypes.compositionStart;
    }
  } else if (isFallbackCompositionEnd(topLevelType, nativeEvent)) {
    eventType = eventTypes.compositionEnd;
  }

  if (!eventType) {
    return null;
  }

  if (useFallbackCompositionData && !isUsingKoreanIME(nativeEvent)) {
    // The current composition is stored statically and must not be
    // overwritten while composition continues.
    if (!isComposing && eventType === eventTypes.compositionStart) {
      isComposing = initialize(nativeEventTarget);
    } else if (eventType === eventTypes.compositionEnd) {
      if (isComposing) {
        fallbackData = getData();
      }
    }
  }

  var event = SyntheticCompositionEvent.getPooled(eventType, targetInst, nativeEvent, nativeEventTarget);

  if (fallbackData) {
    // Inject data generated from fallback path into the synthetic event.
    // This matches the property of native CompositionEventInterface.
    event.data = fallbackData;
  } else {
    var customData = getDataFromCustomEvent(nativeEvent);
    if (customData !== null) {
      event.data = customData;
    }
  }

  accumulateTwoPhaseDispatches(event);
  return event;
}

/**
 * @param {TopLevelType} topLevelType Number from `TopLevelType`.
 * @param {object} nativeEvent Native browser event.
 * @return {?string} The string corresponding to this `beforeInput` event.
 */
function getNativeBeforeInputChars(topLevelType, nativeEvent) {
  switch (topLevelType) {
    case TOP_COMPOSITION_END:
      return getDataFromCustomEvent(nativeEvent);
    case TOP_KEY_PRESS:
      /**
       * If native `textInput` events are available, our goal is to make
       * use of them. However, there is a special case: the spacebar key.
       * In Webkit, preventing default on a spacebar `textInput` event
       * cancels character insertion, but it *also* causes the browser
       * to fall back to its default spacebar behavior of scrolling the
       * page.
       *
       * Tracking at:
       * https://code.google.com/p/chromium/issues/detail?id=355103
       *
       * To avoid this issue, use the keypress event as if no `textInput`
       * event is available.
       */
      var which = nativeEvent.which;
      if (which !== SPACEBAR_CODE) {
        return null;
      }

      hasSpaceKeypress = true;
      return SPACEBAR_CHAR;

    case TOP_TEXT_INPUT:
      // Record the characters to be added to the DOM.
      var chars = nativeEvent.data;

      // If it's a spacebar character, assume that we have already handled
      // it at the keypress level and bail immediately. Android Chrome
      // doesn't give us keycodes, so we need to ignore it.
      if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {
        return null;
      }

      return chars;

    default:
      // For other native event types, do nothing.
      return null;
  }
}

/**
 * For browsers that do not provide the `textInput` event, extract the
 * appropriate string to use for SyntheticInputEvent.
 *
 * @param {number} topLevelType Number from `TopLevelEventTypes`.
 * @param {object} nativeEvent Native browser event.
 * @return {?string} The fallback string for this `beforeInput` event.
 */
function getFallbackBeforeInputChars(topLevelType, nativeEvent) {
  // If we are currently composing (IME) and using a fallback to do so,
  // try to extract the composed characters from the fallback object.
  // If composition event is available, we extract a string only at
  // compositionevent, otherwise extract it at fallback events.
  if (isComposing) {
    if (topLevelType === TOP_COMPOSITION_END || !canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) {
      var chars = getData();
      reset();
      isComposing = false;
      return chars;
    }
    return null;
  }

  switch (topLevelType) {
    case TOP_PASTE:
      // If a paste event occurs after a keypress, throw out the input
      // chars. Paste events should not lead to BeforeInput events.
      return null;
    case TOP_KEY_PRESS:
      /**
       * As of v27, Firefox may fire keypress events even when no character
       * will be inserted. A few possibilities:
       *
       * - `which` is `0`. Arrow keys, Esc key, etc.
       *
       * - `which` is the pressed key code, but no char is available.
       *   Ex: 'AltGr + d` in Polish. There is no modified character for
       *   this key combination and no character is inserted into the
       *   document, but FF fires the keypress for char code `100` anyway.
       *   No `input` event will occur.
       *
       * - `which` is the pressed key code, but a command combination is
       *   being used. Ex: `Cmd+C`. No character is inserted, and no
       *   `input` event will occur.
       */
      if (!isKeypressCommand(nativeEvent)) {
        // IE fires the `keypress` event when a user types an emoji via
        // Touch keyboard of Windows.  In such a case, the `char` property
        // holds an emoji character like `\uD83D\uDE0A`.  Because its length
        // is 2, the property `which` does not represent an emoji correctly.
        // In such a case, we directly return the `char` property instead of
        // using `which`.
        if (nativeEvent.char && nativeEvent.char.length > 1) {
          return nativeEvent.char;
        } else if (nativeEvent.which) {
          return String.fromCharCode(nativeEvent.which);
        }
      }
      return null;
    case TOP_COMPOSITION_END:
      return useFallbackCompositionData && !isUsingKoreanIME(nativeEvent) ? null : nativeEvent.data;
    default:
      return null;
  }
}

/**
 * Extract a SyntheticInputEvent for `beforeInput`, based on either native
 * `textInput` or fallback behavior.
 *
 * @return {?object} A SyntheticInputEvent.
 */
function extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  var chars = void 0;

  if (canUseTextInputEvent) {
    chars = getNativeBeforeInputChars(topLevelType, nativeEvent);
  } else {
    chars = getFallbackBeforeInputChars(topLevelType, nativeEvent);
  }

  // If no characters are being inserted, no BeforeInput event should
  // be fired.
  if (!chars) {
    return null;
  }

  var event = SyntheticInputEvent.getPooled(eventTypes.beforeInput, targetInst, nativeEvent, nativeEventTarget);

  event.data = chars;
  accumulateTwoPhaseDispatches(event);
  return event;
}

/**
 * Create an `onBeforeInput` event to match
 * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents.
 *
 * This event plugin is based on the native `textInput` event
 * available in Chrome, Safari, Opera, and IE. This event fires after
 * `onKeyPress` and `onCompositionEnd`, but before `onInput`.
 *
 * `beforeInput` is spec'd but not implemented in any browsers, and
 * the `input` event does not provide any useful information about what has
 * actually been added, contrary to the spec. Thus, `textInput` is the best
 * available event to identify the characters that have actually been inserted
 * into the target node.
 *
 * This plugin is also responsible for emitting `composition` events, thus
 * allowing us to share composition fallback code for both `beforeInput` and
 * `composition` event types.
 */
var BeforeInputEventPlugin = {
  eventTypes: eventTypes,

  extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
    var composition = extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);

    var beforeInput = extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);

    if (composition === null) {
      return beforeInput;
    }

    if (beforeInput === null) {
      return composition;
    }

    return [composition, beforeInput];
  }
};

// Use to restore controlled state after a change event has fired.

var restoreImpl = null;
var restoreTarget = null;
var restoreQueue = null;

function restoreStateOfTarget(target) {
  // We perform this translation at the end of the event loop so that we
  // always receive the correct fiber here
  var internalInstance = getInstanceFromNode(target);
  if (!internalInstance) {
    // Unmounted
    return;
  }
  !(typeof restoreImpl === 'function') ? invariant(false, 'setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  var props = getFiberCurrentPropsFromNode(internalInstance.stateNode);
  restoreImpl(internalInstance.stateNode, internalInstance.type, props);
}

function setRestoreImplementation(impl) {
  restoreImpl = impl;
}

function enqueueStateRestore(target) {
  if (restoreTarget) {
    if (restoreQueue) {
      restoreQueue.push(target);
    } else {
      restoreQueue = [target];
    }
  } else {
    restoreTarget = target;
  }
}

function needsStateRestore() {
  return restoreTarget !== null || restoreQueue !== null;
}

function restoreStateIfNeeded() {
  if (!restoreTarget) {
    return;
  }
  var target = restoreTarget;
  var queuedTargets = restoreQueue;
  restoreTarget = null;
  restoreQueue = null;

  restoreStateOfTarget(target);
  if (queuedTargets) {
    for (var i = 0; i < queuedTargets.length; i++) {
      restoreStateOfTarget(queuedTargets[i]);
    }
  }
}

// Used as a way to call batchedUpdates when we don't have a reference to
// the renderer. Such as when we're dispatching events or if third party
// libraries need to call batchedUpdates. Eventually, this API will go away when
// everything is batched by default. We'll then have a similar API to opt-out of
// scheduled work and instead do synchronous work.

// Defaults
var _batchedUpdatesImpl = function (fn, bookkeeping) {
  return fn(bookkeeping);
};
var _interactiveUpdatesImpl = function (fn, a, b) {
  return fn(a, b);
};
var _flushInteractiveUpdatesImpl = function () {};

var isBatching = false;
function batchedUpdates(fn, bookkeeping) {
  if (isBatching) {
    // If we are currently inside another batch, we need to wait until it
    // fully completes before restoring state.
    return fn(bookkeeping);
  }
  isBatching = true;
  try {
    return _batchedUpdatesImpl(fn, bookkeeping);
  } finally {
    // Here we wait until all updates have propagated, which is important
    // when using controlled components within layers:
    // https://github.com/facebook/react/issues/1698
    // Then we restore state of any controlled component.
    isBatching = false;
    var controlledComponentsHavePendingUpdates = needsStateRestore();
    if (controlledComponentsHavePendingUpdates) {
      // If a controlled event was fired, we may need to restore the state of
      // the DOM node back to the controlled value. This is necessary when React
      // bails out of the update without touching the DOM.
      _flushInteractiveUpdatesImpl();
      restoreStateIfNeeded();
    }
  }
}

function interactiveUpdates(fn, a, b) {
  return _interactiveUpdatesImpl(fn, a, b);
}



function setBatchingImplementation(batchedUpdatesImpl, interactiveUpdatesImpl, flushInteractiveUpdatesImpl) {
  _batchedUpdatesImpl = batchedUpdatesImpl;
  _interactiveUpdatesImpl = interactiveUpdatesImpl;
  _flushInteractiveUpdatesImpl = flushInteractiveUpdatesImpl;
}

/**
 * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary
 */
var supportedInputTypes = {
  color: true,
  date: true,
  datetime: true,
  'datetime-local': true,
  email: true,
  month: true,
  number: true,
  password: true,
  range: true,
  search: true,
  tel: true,
  text: true,
  time: true,
  url: true,
  week: true
};

function isTextInputElement(elem) {
  var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();

  if (nodeName === 'input') {
    return !!supportedInputTypes[elem.type];
  }

  if (nodeName === 'textarea') {
    return true;
  }

  return false;
}

/**
 * HTML nodeType values that represent the type of the node
 */

var ELEMENT_NODE = 1;
var TEXT_NODE = 3;
var COMMENT_NODE = 8;
var DOCUMENT_NODE = 9;
var DOCUMENT_FRAGMENT_NODE = 11;

/**
 * Gets the target node from a native browser event by accounting for
 * inconsistencies in browser DOM APIs.
 *
 * @param {object} nativeEvent Native browser event.
 * @return {DOMEventTarget} Target node.
 */
function getEventTarget(nativeEvent) {
  // Fallback to nativeEvent.srcElement for IE9
  // https://github.com/facebook/react/issues/12506
  var target = nativeEvent.target || nativeEvent.srcElement || window;

  // Normalize SVG <use> element events #4963
  if (target.correspondingUseElement) {
    target = target.correspondingUseElement;
  }

  // Safari may fire events on text nodes (Node.TEXT_NODE is 3).
  // @see http://www.quirksmode.org/js/events_properties.html
  return target.nodeType === TEXT_NODE ? target.parentNode : target;
}

/**
 * Checks if an event is supported in the current execution environment.
 *
 * NOTE: This will not work correctly for non-generic events such as `change`,
 * `reset`, `load`, `error`, and `select`.
 *
 * Borrows from Modernizr.
 *
 * @param {string} eventNameSuffix Event name, e.g. "click".
 * @return {boolean} True if the event is supported.
 * @internal
 * @license Modernizr 3.0.0pre (Custom Build) | MIT
 */
function isEventSupported(eventNameSuffix) {
  if (!canUseDOM) {
    return false;
  }

  var eventName = 'on' + eventNameSuffix;
  var isSupported = eventName in document;

  if (!isSupported) {
    var element = document.createElement('div');
    element.setAttribute(eventName, 'return;');
    isSupported = typeof element[eventName] === 'function';
  }

  return isSupported;
}

function isCheckable(elem) {
  var type = elem.type;
  var nodeName = elem.nodeName;
  return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio');
}

function getTracker(node) {
  return node._valueTracker;
}

function detachTracker(node) {
  node._valueTracker = null;
}

function getValueFromNode(node) {
  var value = '';
  if (!node) {
    return value;
  }

  if (isCheckable(node)) {
    value = node.checked ? 'true' : 'false';
  } else {
    value = node.value;
  }

  return value;
}

function trackValueOnNode(node) {
  var valueField = isCheckable(node) ? 'checked' : 'value';
  var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField);

  var currentValue = '' + node[valueField];

  // if someone has already defined a value or Safari, then bail
  // and don't track value will cause over reporting of changes,
  // but it's better then a hard failure
  // (needed for certain tests that spyOn input values and Safari)
  if (node.hasOwnProperty(valueField) || typeof descriptor === 'undefined' || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') {
    return;
  }
  var get = descriptor.get,
      set = descriptor.set;

  Object.defineProperty(node, valueField, {
    configurable: true,
    get: function () {
      return get.call(this);
    },
    set: function (value) {
      currentValue = '' + value;
      set.call(this, value);
    }
  });
  // We could've passed this the first time
  // but it triggers a bug in IE11 and Edge 14/15.
  // Calling defineProperty() again should be equivalent.
  // https://github.com/facebook/react/issues/11768
  Object.defineProperty(node, valueField, {
    enumerable: descriptor.enumerable
  });

  var tracker = {
    getValue: function () {
      return currentValue;
    },
    setValue: function (value) {
      currentValue = '' + value;
    },
    stopTracking: function () {
      detachTracker(node);
      delete node[valueField];
    }
  };
  return tracker;
}

function track(node) {
  if (getTracker(node)) {
    return;
  }

  // TODO: Once it's just Fiber we can move this to node._wrapperState
  node._valueTracker = trackValueOnNode(node);
}

function updateValueIfChanged(node) {
  if (!node) {
    return false;
  }

  var tracker = getTracker(node);
  // if there is no tracker at this point it's unlikely
  // that trying again will succeed
  if (!tracker) {
    return true;
  }

  var lastValue = tracker.getValue();
  var nextValue = getValueFromNode(node);
  if (nextValue !== lastValue) {
    tracker.setValue(nextValue);
    return true;
  }
  return false;
}

var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;

var BEFORE_SLASH_RE = /^(.*)[\\\/]/;

var describeComponentFrame = function (name, source, ownerName) {
  var sourceInfo = '';
  if (source) {
    var path = source.fileName;
    var fileName = path.replace(BEFORE_SLASH_RE, '');
    {
      // In DEV, include code for a common special case:
      // prefer "folder/index.js" instead of just "index.js".
      if (/^index\./.test(fileName)) {
        var match = path.match(BEFORE_SLASH_RE);
        if (match) {
          var pathBeforeSlash = match[1];
          if (pathBeforeSlash) {
            var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
            fileName = folderName + '/' + fileName;
          }
        }
      }
    }
    sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
  } else if (ownerName) {
    sourceInfo = ' (created by ' + ownerName + ')';
  }
  return '\n    in ' + (name || 'Unknown') + sourceInfo;
};

// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
// nor polyfill, then a plain number is used for performance.
var hasSymbol = typeof Symbol === 'function' && Symbol.for;

var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;

var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;

var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
var FAUX_ITERATOR_SYMBOL = '@@iterator';

function getIteratorFn(maybeIterable) {
  if (maybeIterable === null || typeof maybeIterable !== 'object') {
    return null;
  }
  var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
  if (typeof maybeIterator === 'function') {
    return maybeIterator;
  }
  return null;
}

var Pending = 0;
var Resolved = 1;
var Rejected = 2;

function refineResolvedLazyComponent(lazyComponent) {
  return lazyComponent._status === Resolved ? lazyComponent._result : null;
}

function getWrappedName(outerType, innerType, wrapperName) {
  var functionName = innerType.displayName || innerType.name || '';
  return outerType.displayName || (functionName !== '' ? wrapperName + '(' + functionName + ')' : wrapperName);
}

function getComponentName(type) {
  if (type == null) {
    // Host root, text node or just invalid type.
    return null;
  }
  {
    if (typeof type.tag === 'number') {
      warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
    }
  }
  if (typeof type === 'function') {
    return type.displayName || type.name || null;
  }
  if (typeof type === 'string') {
    return type;
  }
  switch (type) {
    case REACT_CONCURRENT_MODE_TYPE:
      return 'ConcurrentMode';
    case REACT_FRAGMENT_TYPE:
      return 'Fragment';
    case REACT_PORTAL_TYPE:
      return 'Portal';
    case REACT_PROFILER_TYPE:
      return 'Profiler';
    case REACT_STRICT_MODE_TYPE:
      return 'StrictMode';
    case REACT_SUSPENSE_TYPE:
      return 'Suspense';
  }
  if (typeof type === 'object') {
    switch (type.$$typeof) {
      case REACT_CONTEXT_TYPE:
        return 'Context.Consumer';
      case REACT_PROVIDER_TYPE:
        return 'Context.Provider';
      case REACT_FORWARD_REF_TYPE:
        return getWrappedName(type, type.render, 'ForwardRef');
      case REACT_MEMO_TYPE:
        return getComponentName(type.type);
      case REACT_LAZY_TYPE:
        {
          var thenable = type;
          var resolvedThenable = refineResolvedLazyComponent(thenable);
          if (resolvedThenable) {
            return getComponentName(resolvedThenable);
          }
        }
    }
  }
  return null;
}

var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;

function describeFiber(fiber) {
  switch (fiber.tag) {
    case IndeterminateComponent:
    case LazyComponent:
    case FunctionComponent:
    case ClassComponent:
    case HostComponent:
    case Mode:
    case SuspenseComponent:
      var owner = fiber._debugOwner;
      var source = fiber._debugSource;
      var name = getComponentName(fiber.type);
      var ownerName = null;
      if (owner) {
        ownerName = getComponentName(owner.type);
      }
      return describeComponentFrame(name, source, ownerName);
    default:
      return '';
  }
}

function getStackByFiberInDevAndProd(workInProgress) {
  var info = '';
  var node = workInProgress;
  do {
    info += describeFiber(node);
    node = node.return;
  } while (node);
  return info;
}

var current = null;
var phase = null;

function getCurrentFiberOwnerNameInDevOrNull() {
  {
    if (current === null) {
      return null;
    }
    var owner = current._debugOwner;
    if (owner !== null && typeof owner !== 'undefined') {
      return getComponentName(owner.type);
    }
  }
  return null;
}

function getCurrentFiberStackInDev() {
  {
    if (current === null) {
      return '';
    }
    // Safe because if current fiber exists, we are reconciling,
    // and it is guaranteed to be the work-in-progress version.
    return getStackByFiberInDevAndProd(current);
  }
  return '';
}

function resetCurrentFiber() {
  {
    ReactDebugCurrentFrame.getCurrentStack = null;
    current = null;
    phase = null;
  }
}

function setCurrentFiber(fiber) {
  {
    ReactDebugCurrentFrame.getCurrentStack = getCurrentFiberStackInDev;
    current = fiber;
    phase = null;
  }
}

function setCurrentPhase(lifeCyclePhase) {
  {
    phase = lifeCyclePhase;
  }
}

/**
 * Similar to invariant but only logs a warning if the condition is not met.
 * This can be used to log issues in development environments in critical
 * paths. Removing the logging code for production environments will keep the
 * same logic and follow the same code paths.
 */

var warning = warningWithoutStack$1;

{
  warning = function (condition, format) {
    if (condition) {
      return;
    }
    var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
    var stack = ReactDebugCurrentFrame.getStackAddendum();
    // eslint-disable-next-line react-internal/warning-and-invariant-args

    for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
      args[_key - 2] = arguments[_key];
    }

    warningWithoutStack$1.apply(undefined, [false, format + '%s'].concat(args, [stack]));
  };
}

var warning$1 = warning;

// A reserved attribute.
// It is handled by React separately and shouldn't be written to the DOM.
var RESERVED = 0;

// A simple string attribute.
// Attributes that aren't in the whitelist are presumed to have this type.
var STRING = 1;

// A string attribute that accepts booleans in React. In HTML, these are called
// "enumerated" attributes with "true" and "false" as possible values.
// When true, it should be set to a "true" string.
// When false, it should be set to a "false" string.
var BOOLEANISH_STRING = 2;

// A real boolean attribute.
// When true, it should be present (set either to an empty string or its name).
// When false, it should be omitted.
var BOOLEAN = 3;

// An attribute that can be used as a flag as well as with a value.
// When true, it should be present (set either to an empty string or its name).
// When false, it should be omitted.
// For any other value, should be present with that value.
var OVERLOADED_BOOLEAN = 4;

// An attribute that must be numeric or parse as a numeric.
// When falsy, it should be removed.
var NUMERIC = 5;

// An attribute that must be positive numeric or parse as a positive numeric.
// When falsy, it should be removed.
var POSITIVE_NUMERIC = 6;

/* eslint-disable max-len */
var ATTRIBUTE_NAME_START_CHAR = ':A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD';
/* eslint-enable max-len */
var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040';


var ROOT_ATTRIBUTE_NAME = 'data-reactroot';
var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$');

var hasOwnProperty = Object.prototype.hasOwnProperty;
var illegalAttributeNameCache = {};
var validatedAttributeNameCache = {};

function isAttributeNameSafe(attributeName) {
  if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) {
    return true;
  }
  if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) {
    return false;
  }
  if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {
    validatedAttributeNameCache[attributeName] = true;
    return true;
  }
  illegalAttributeNameCache[attributeName] = true;
  {
    warning$1(false, 'Invalid attribute name: `%s`', attributeName);
  }
  return false;
}

function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {
  if (propertyInfo !== null) {
    return propertyInfo.type === RESERVED;
  }
  if (isCustomComponentTag) {
    return false;
  }
  if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {
    return true;
  }
  return false;
}

function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {
  if (propertyInfo !== null && propertyInfo.type === RESERVED) {
    return false;
  }
  switch (typeof value) {
    case 'function':
    // $FlowIssue symbol is perfectly valid here
    case 'symbol':
      // eslint-disable-line
      return true;
    case 'boolean':
      {
        if (isCustomComponentTag) {
          return false;
        }
        if (propertyInfo !== null) {
          return !propertyInfo.acceptsBooleans;
        } else {
          var prefix = name.toLowerCase().slice(0, 5);
          return prefix !== 'data-' && prefix !== 'aria-';
        }
      }
    default:
      return false;
  }
}

function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) {
  if (value === null || typeof value === 'undefined') {
    return true;
  }
  if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) {
    return true;
  }
  if (isCustomComponentTag) {
    return false;
  }
  if (propertyInfo !== null) {
    switch (propertyInfo.type) {
      case BOOLEAN:
        return !value;
      case OVERLOADED_BOOLEAN:
        return value === false;
      case NUMERIC:
        return isNaN(value);
      case POSITIVE_NUMERIC:
        return isNaN(value) || value < 1;
    }
  }
  return false;
}

function getPropertyInfo(name) {
  return properties.hasOwnProperty(name) ? properties[name] : null;
}

function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace) {
  this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;
  this.attributeName = attributeName;
  this.attributeNamespace = attributeNamespace;
  this.mustUseProperty = mustUseProperty;
  this.propertyName = name;
  this.type = type;
}

// When adding attributes to this list, be sure to also add them to
// the `possibleStandardNames` module to ensure casing and incorrect
// name warnings.
var properties = {};

// These props are reserved by React. They shouldn't be written to the DOM.
['children', 'dangerouslySetInnerHTML',
// TODO: This prevents the assignment of defaultValue to regular
// elements (not just inputs). Now that ReactDOMInput assigns to the
// defaultValue property -- do we need this?
'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'].forEach(function (name) {
  properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty
  name, // attributeName
  null);
} // attributeNamespace
);

// A few React string attributes have a different name.
// This is a mapping from React prop names to the attribute names.
[['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {
  var name = _ref[0],
      attributeName = _ref[1];

  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  attributeName, // attributeName
  null);
} // attributeNamespace
);

// These are "enumerated" HTML attributes that accept "true" and "false".
// In React, we let users pass `true` and `false` even though technically
// these aren't boolean attributes (they are coerced to strings).
['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) {
  properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
  name.toLowerCase(), // attributeName
  null);
} // attributeNamespace
);

// These are "enumerated" SVG attributes that accept "true" and "false".
// In React, we let users pass `true` and `false` even though technically
// these aren't boolean attributes (they are coerced to strings).
// Since these are SVG attributes, their attribute names are case-sensitive.
['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) {
  properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
  name, // attributeName
  null);
} // attributeNamespace
);

// These are HTML boolean attributes.
['allowFullScreen', 'async',
// Note: there is a special case that prevents it from being written to the DOM
// on the client side because the browsers are inconsistent. Instead we call focus().
'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless',
// Microdata
'itemScope'].forEach(function (name) {
  properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty
  name.toLowerCase(), // attributeName
  null);
} // attributeNamespace
);

// These are the few React props that we set as DOM properties
// rather than attributes. These are all booleans.
['checked',
// Note: `option.selected` is not updated if `select.multiple` is
// disabled with `removeAttribute`. We have special logic for handling this.
'multiple', 'muted', 'selected'].forEach(function (name) {
  properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty
  name, // attributeName
  null);
} // attributeNamespace
);

// These are HTML attributes that are "overloaded booleans": they behave like
// booleans, but can also accept a string value.
['capture', 'download'].forEach(function (name) {
  properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty
  name, // attributeName
  null);
} // attributeNamespace
);

// These are HTML attributes that must be positive numbers.
['cols', 'rows', 'size', 'span'].forEach(function (name) {
  properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty
  name, // attributeName
  null);
} // attributeNamespace
);

// These are HTML attributes that must be numbers.
['rowSpan', 'start'].forEach(function (name) {
  properties[name] = new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty
  name.toLowerCase(), // attributeName
  null);
} // attributeNamespace
);

var CAMELIZE = /[\-\:]([a-z])/g;
var capitalize = function (token) {
  return token[1].toUpperCase();
};

// This is a list of all SVG attributes that need special casing, namespacing,
// or boolean value assignment. Regular attributes that just accept strings
// and have the same names are omitted, just like in the HTML whitelist.
// Some of these attributes can be hard to find. This list was created by
// scrapping the MDN documentation.
['accent-height', 'alignment-baseline', 'arabic-form', 'baseline-shift', 'cap-height', 'clip-path', 'clip-rule', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'dominant-baseline', 'enable-background', 'fill-opacity', 'fill-rule', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-name', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'horiz-adv-x', 'horiz-origin-x', 'image-rendering', 'letter-spacing', 'lighting-color', 'marker-end', 'marker-mid', 'marker-start', 'overline-position', 'overline-thickness', 'paint-order', 'panose-1', 'pointer-events', 'rendering-intent', 'shape-rendering', 'stop-color', 'stop-opacity', 'strikethrough-position', 'strikethrough-thickness', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-decoration', 'text-rendering', 'underline-position', 'underline-thickness', 'unicode-bidi', 'unicode-range', 'units-per-em', 'v-alphabetic', 'v-hanging', 'v-ideographic', 'v-mathematical', 'vector-effect', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'word-spacing', 'writing-mode', 'xmlns:xlink', 'x-height'].forEach(function (attributeName) {
  var name = attributeName.replace(CAMELIZE, capitalize);
  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  attributeName, null);
} // attributeNamespace
);

// String SVG attributes with the xlink namespace.
['xlink:actuate', 'xlink:arcrole', 'xlink:href', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type'].forEach(function (attributeName) {
  var name = attributeName.replace(CAMELIZE, capitalize);
  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  attributeName, 'http://www.w3.org/1999/xlink');
});

// String SVG attributes with the xml namespace.
['xml:base', 'xml:lang', 'xml:space'].forEach(function (attributeName) {
  var name = attributeName.replace(CAMELIZE, capitalize);
  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  attributeName, 'http://www.w3.org/XML/1998/namespace');
});

// Special case: this attribute exists both in HTML and SVG.
// Its "tabindex" attribute name is case-sensitive in SVG so we can't just use
// its React `tabIndex` name, like we do for attributes that exist only in HTML.
properties.tabIndex = new PropertyInfoRecord('tabIndex', STRING, false, // mustUseProperty
'tabindex', // attributeName
null);

/**
 * Get the value for a property on a node. Only used in DEV for SSR validation.
 * The "expected" argument is used as a hint of what the expected value is.
 * Some properties have multiple equivalent values.
 */
function getValueForProperty(node, name, expected, propertyInfo) {
  {
    if (propertyInfo.mustUseProperty) {
      var propertyName = propertyInfo.propertyName;

      return node[propertyName];
    } else {
      var attributeName = propertyInfo.attributeName;

      var stringValue = null;

      if (propertyInfo.type === OVERLOADED_BOOLEAN) {
        if (node.hasAttribute(attributeName)) {
          var value = node.getAttribute(attributeName);
          if (value === '') {
            return true;
          }
          if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
            return value;
          }
          if (value === '' + expected) {
            return expected;
          }
          return value;
        }
      } else if (node.hasAttribute(attributeName)) {
        if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
          // We had an attribute but shouldn't have had one, so read it
          // for the error message.
          return node.getAttribute(attributeName);
        }
        if (propertyInfo.type === BOOLEAN) {
          // If this was a boolean, it doesn't matter what the value is
          // the fact that we have it is the same as the expected.
          return expected;
        }
        // Even if this property uses a namespace we use getAttribute
        // because we assume its namespaced name is the same as our config.
        // To use getAttributeNS we need the local name which we don't have
        // in our config atm.
        stringValue = node.getAttribute(attributeName);
      }

      if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
        return stringValue === null ? expected : stringValue;
      } else if (stringValue === '' + expected) {
        return expected;
      } else {
        return stringValue;
      }
    }
  }
}

/**
 * Get the value for a attribute on a node. Only used in DEV for SSR validation.
 * The third argument is used as a hint of what the expected value is. Some
 * attributes have multiple equivalent values.
 */
function getValueForAttribute(node, name, expected) {
  {
    if (!isAttributeNameSafe(name)) {
      return;
    }
    if (!node.hasAttribute(name)) {
      return expected === undefined ? undefined : null;
    }
    var value = node.getAttribute(name);
    if (value === '' + expected) {
      return expected;
    }
    return value;
  }
}

/**
 * Sets the value for a property on a node.
 *
 * @param {DOMElement} node
 * @param {string} name
 * @param {*} value
 */
function setValueForProperty(node, name, value, isCustomComponentTag) {
  var propertyInfo = getPropertyInfo(name);
  if (shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) {
    return;
  }
  if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag)) {
    value = null;
  }
  // If the prop isn't in the special list, treat it as a simple attribute.
  if (isCustomComponentTag || propertyInfo === null) {
    if (isAttributeNameSafe(name)) {
      var _attributeName = name;
      if (value === null) {
        node.removeAttribute(_attributeName);
      } else {
        node.setAttribute(_attributeName, '' + value);
      }
    }
    return;
  }
  var mustUseProperty = propertyInfo.mustUseProperty;

  if (mustUseProperty) {
    var propertyName = propertyInfo.propertyName;

    if (value === null) {
      var type = propertyInfo.type;

      node[propertyName] = type === BOOLEAN ? false : '';
    } else {
      // Contrary to `setAttribute`, object properties are properly
      // `toString`ed by IE8/9.
      node[propertyName] = value;
    }
    return;
  }
  // The rest are treated as attributes with special cases.
  var attributeName = propertyInfo.attributeName,
      attributeNamespace = propertyInfo.attributeNamespace;

  if (value === null) {
    node.removeAttribute(attributeName);
  } else {
    var _type = propertyInfo.type;

    var attributeValue = void 0;
    if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) {
      attributeValue = '';
    } else {
      // `setAttribute` with objects becomes only `[object]` in IE8/9,
      // ('' + value) makes it output the correct toString()-value.
      attributeValue = '' + value;
    }
    if (attributeNamespace) {
      node.setAttributeNS(attributeNamespace, attributeName, attributeValue);
    } else {
      node.setAttribute(attributeName, attributeValue);
    }
  }
}

// Flow does not allow string concatenation of most non-string types. To work
// around this limitation, we use an opaque type that can only be obtained by
// passing the value through getToStringValue first.
function toString(value) {
  return '' + value;
}

function getToStringValue(value) {
  switch (typeof value) {
    case 'boolean':
    case 'number':
    case 'object':
    case 'string':
    case 'undefined':
      return value;
    default:
      // function, symbol are assigned as empty strings
      return '';
  }
}

var ReactDebugCurrentFrame$1 = null;

var ReactControlledValuePropTypes = {
  checkPropTypes: null
};

{
  ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;

  var hasReadOnlyValue = {
    button: true,
    checkbox: true,
    image: true,
    hidden: true,
    radio: true,
    reset: true,
    submit: true
  };

  var propTypes = {
    value: function (props, propName, componentName) {
      if (hasReadOnlyValue[props.type] || props.onChange || props.readOnly || props.disabled || props[propName] == null) {
        return null;
      }
      return new Error('You provided a `value` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultValue`. Otherwise, ' + 'set either `onChange` or `readOnly`.');
    },
    checked: function (props, propName, componentName) {
      if (props.onChange || props.readOnly || props.disabled || props[propName] == null) {
        return null;
      }
      return new Error('You provided a `checked` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultChecked`. Otherwise, ' + 'set either `onChange` or `readOnly`.');
    }
  };

  /**
   * Provide a linked `value` attribute for controlled forms. You should not use
   * this outside of the ReactDOM controlled form components.
   */
  ReactControlledValuePropTypes.checkPropTypes = function (tagName, props) {
    checkPropTypes(propTypes, props, 'prop', tagName, ReactDebugCurrentFrame$1.getStackAddendum);
  };
}

var enableUserTimingAPI = true;

var enableHooks = false;
// Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
var debugRenderPhaseSideEffects = false;

// In some cases, StrictMode should also double-render lifecycles.
// This can be confusing for tests though,
// And it can be bad for performance in production.
// This feature flag can be used to control the behavior:
var debugRenderPhaseSideEffectsForStrictMode = true;

// To preserve the "Pause on caught exceptions" behavior of the debugger, we
// replay the begin phase of a failed component inside invokeGuardedCallback.
var replayFailedUnitOfWorkWithInvokeGuardedCallback = true;

// Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
var warnAboutDeprecatedLifecycles = false;

// Gather advanced timing metrics for Profiler subtrees.
var enableProfilerTimer = true;

// Trace which interactions trigger each commit.
var enableSchedulerTracing = true;

// Only used in www builds.


// Only used in www builds.


// React Fire: prevent the value and checked attributes from syncing
// with their related DOM properties
var disableInputAttributeSyncing = false;

// These APIs will no longer be "unstable" in the upcoming 16.7 release,
// Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
var enableStableConcurrentModeAPIs = false;

// TODO: direct imports like some-package/src/* are bad. Fix me.
var didWarnValueDefaultValue = false;
var didWarnCheckedDefaultChecked = false;
var didWarnControlledToUncontrolled = false;
var didWarnUncontrolledToControlled = false;

function isControlled(props) {
  var usesChecked = props.type === 'checkbox' || props.type === 'radio';
  return usesChecked ? props.checked != null : props.value != null;
}

/**
 * Implements an <input> host component that allows setting these optional
 * props: `checked`, `value`, `defaultChecked`, and `defaultValue`.
 *
 * If `checked` or `value` are not supplied (or null/undefined), user actions
 * that affect the checked state or value will trigger updates to the element.
 *
 * If they are supplied (and not null/undefined), the rendered element will not
 * trigger updates to the element. Instead, the props must change in order for
 * the rendered element to be updated.
 *
 * The rendered element will be initialized as unchecked (or `defaultChecked`)
 * with an empty value (or `defaultValue`).
 *
 * See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html
 */

function getHostProps(element, props) {
  var node = element;
  var checked = props.checked;

  var hostProps = _assign({}, props, {
    defaultChecked: undefined,
    defaultValue: undefined,
    value: undefined,
    checked: checked != null ? checked : node._wrapperState.initialChecked
  });

  return hostProps;
}

function initWrapperState(element, props) {
  {
    ReactControlledValuePropTypes.checkPropTypes('input', props);

    if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {
      warning$1(false, '%s contains an input of type %s with both checked and defaultChecked props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the checked prop, or the defaultChecked prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);
      didWarnCheckedDefaultChecked = true;
    }
    if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {
      warning$1(false, '%s contains an input of type %s with both value and defaultValue props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);
      didWarnValueDefaultValue = true;
    }
  }

  var node = element;
  var defaultValue = props.defaultValue == null ? '' : props.defaultValue;

  node._wrapperState = {
    initialChecked: props.checked != null ? props.checked : props.defaultChecked,
    initialValue: getToStringValue(props.value != null ? props.value : defaultValue),
    controlled: isControlled(props)
  };
}

function updateChecked(element, props) {
  var node = element;
  var checked = props.checked;
  if (checked != null) {
    setValueForProperty(node, 'checked', checked, false);
  }
}

function updateWrapper(element, props) {
  var node = element;
  {
    var _controlled = isControlled(props);

    if (!node._wrapperState.controlled && _controlled && !didWarnUncontrolledToControlled) {
      warning$1(false, 'A component is changing an uncontrolled input of type %s to be controlled. ' + 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', props.type);
      didWarnUncontrolledToControlled = true;
    }
    if (node._wrapperState.controlled && !_controlled && !didWarnControlledToUncontrolled) {
      warning$1(false, 'A component is changing a controlled input of type %s to be uncontrolled. ' + 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', props.type);
      didWarnControlledToUncontrolled = true;
    }
  }

  updateChecked(element, props);

  var value = getToStringValue(props.value);
  var type = props.type;

  if (value != null) {
    if (type === 'number') {
      if (value === 0 && node.value === '' ||
      // We explicitly want to coerce to number here if possible.
      // eslint-disable-next-line
      node.value != value) {
        node.value = toString(value);
      }
    } else if (node.value !== toString(value)) {
      node.value = toString(value);
    }
  } else if (type === 'submit' || type === 'reset') {
    // Submit/reset inputs need the attribute removed completely to avoid
    // blank-text buttons.
    node.removeAttribute('value');
    return;
  }

  if (disableInputAttributeSyncing) {
    // When not syncing the value attribute, React only assigns a new value
    // whenever the defaultValue React prop has changed. When not present,
    // React does nothing
    if (props.hasOwnProperty('defaultValue')) {
      setDefaultValue(node, props.type, getToStringValue(props.defaultValue));
    }
  } else {
    // When syncing the value attribute, the value comes from a cascade of
    // properties:
    //  1. The value React property
    //  2. The defaultValue React property
    //  3. Otherwise there should be no change
    if (props.hasOwnProperty('value')) {
      setDefaultValue(node, props.type, value);
    } else if (props.hasOwnProperty('defaultValue')) {
      setDefaultValue(node, props.type, getToStringValue(props.defaultValue));
    }
  }

  if (disableInputAttributeSyncing) {
    // When not syncing the checked attribute, the attribute is directly
    // controllable from the defaultValue React property. It needs to be
    // updated as new props come in.
    if (props.defaultChecked == null) {
      node.removeAttribute('checked');
    } else {
      node.defaultChecked = !!props.defaultChecked;
    }
  } else {
    // When syncing the checked attribute, it only changes when it needs
    // to be removed, such as transitioning from a checkbox into a text input
    if (props.checked == null && props.defaultChecked != null) {
      node.defaultChecked = !!props.defaultChecked;
    }
  }
}

function postMountWrapper(element, props, isHydrating) {
  var node = element;

  // Do not assign value if it is already set. This prevents user text input
  // from being lost during SSR hydration.
  if (props.hasOwnProperty('value') || props.hasOwnProperty('defaultValue')) {
    var type = props.type;
    var isButton = type === 'submit' || type === 'reset';

    // Avoid setting value attribute on submit/reset inputs as it overrides the
    // default value provided by the browser. See: #12872
    if (isButton && (props.value === undefined || props.value === null)) {
      return;
    }

    var _initialValue = toString(node._wrapperState.initialValue);

    // Do not assign value if it is already set. This prevents user text input
    // from being lost during SSR hydration.
    if (!isHydrating) {
      if (disableInputAttributeSyncing) {
        var value = getToStringValue(props.value);

        // When not syncing the value attribute, the value property points
        // directly to the React prop. Only assign it if it exists.
        if (value != null) {
          // Always assign on buttons so that it is possible to assign an
          // empty string to clear button text.
          //
          // Otherwise, do not re-assign the value property if is empty. This
          // potentially avoids a DOM write and prevents Firefox (~60.0.1) from
          // prematurely marking required inputs as invalid. Equality is compared
          // to the current value in case the browser provided value is not an
          // empty string.
          if (isButton || value !== node.value) {
            node.value = toString(value);
          }
        }
      } else {
        // When syncing the value attribute, the value property should use
        // the wrapperState._initialValue property. This uses:
        //
        //   1. The value React property when present
        //   2. The defaultValue React property when present
        //   3. An empty string
        if (_initialValue !== node.value) {
          node.value = _initialValue;
        }
      }
    }

    if (disableInputAttributeSyncing) {
      // When not syncing the value attribute, assign the value attribute
      // directly from the defaultValue React property (when present)
      var defaultValue = getToStringValue(props.defaultValue);
      if (defaultValue != null) {
        node.defaultValue = toString(defaultValue);
      }
    } else {
      // Otherwise, the value attribute is synchronized to the property,
      // so we assign defaultValue to the same thing as the value property
      // assignment step above.
      node.defaultValue = _initialValue;
    }
  }

  // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug
  // this is needed to work around a chrome bug where setting defaultChecked
  // will sometimes influence the value of checked (even after detachment).
  // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416
  // We need to temporarily unset name to avoid disrupting radio button groups.
  var name = node.name;
  if (name !== '') {
    node.name = '';
  }

  if (disableInputAttributeSyncing) {
    // When not syncing the checked attribute, the checked property
    // never gets assigned. It must be manually set. We don't want
    // to do this when hydrating so that existing user input isn't
    // modified
    if (!isHydrating) {
      updateChecked(element, props);
    }

    // Only assign the checked attribute if it is defined. This saves
    // a DOM write when controlling the checked attribute isn't needed
    // (text inputs, submit/reset)
    if (props.hasOwnProperty('defaultChecked')) {
      node.defaultChecked = !node.defaultChecked;
      node.defaultChecked = !!props.defaultChecked;
    }
  } else {
    // When syncing the checked attribute, both the checked property and
    // attribute are assigned at the same time using defaultChecked. This uses:
    //
    //   1. The checked React property when present
    //   2. The defaultChecked React property when present
    //   3. Otherwise, false
    node.defaultChecked = !node.defaultChecked;
    node.defaultChecked = !!node._wrapperState.initialChecked;
  }

  if (name !== '') {
    node.name = name;
  }
}

function restoreControlledState(element, props) {
  var node = element;
  updateWrapper(node, props);
  updateNamedCousins(node, props);
}

function updateNamedCousins(rootNode, props) {
  var name = props.name;
  if (props.type === 'radio' && name != null) {
    var queryRoot = rootNode;

    while (queryRoot.parentNode) {
      queryRoot = queryRoot.parentNode;
    }

    // If `rootNode.form` was non-null, then we could try `form.elements`,
    // but that sometimes behaves strangely in IE8. We could also try using
    // `form.getElementsByName`, but that will only return direct children
    // and won't include inputs that use the HTML5 `form=` attribute. Since
    // the input might not even be in a form. It might not even be in the
    // document. Let's just use the local `querySelectorAll` to ensure we don't
    // miss anything.
    var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type="radio"]');

    for (var i = 0; i < group.length; i++) {
      var otherNode = group[i];
      if (otherNode === rootNode || otherNode.form !== rootNode.form) {
        continue;
      }
      // This will throw if radio buttons rendered by different copies of React
      // and the same name are rendered into the same form (same as #1939).
      // That's probably okay; we don't support it just as we don't support
      // mixing React radio buttons with non-React ones.
      var otherProps = getFiberCurrentPropsFromNode$1(otherNode);
      !otherProps ? invariant(false, 'ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.') : void 0;

      // We need update the tracked value on the named cousin since the value
      // was changed but the input saw no event or value set
      updateValueIfChanged(otherNode);

      // If this is a controlled radio button group, forcing the input that
      // was previously checked to update will cause it to be come re-checked
      // as appropriate.
      updateWrapper(otherNode, otherProps);
    }
  }
}

// In Chrome, assigning defaultValue to certain input types triggers input validation.
// For number inputs, the display value loses trailing decimal points. For email inputs,
// Chrome raises "The specified value <x> is not a valid email address".
//
// Here we check to see if the defaultValue has actually changed, avoiding these problems
// when the user is inputting text
//
// https://github.com/facebook/react/issues/7253
function setDefaultValue(node, type, value) {
  if (
  // Focused number inputs synchronize on blur. See ChangeEventPlugin.js
  type !== 'number' || node.ownerDocument.activeElement !== node) {
    if (value == null) {
      node.defaultValue = toString(node._wrapperState.initialValue);
    } else if (node.defaultValue !== toString(value)) {
      node.defaultValue = toString(value);
    }
  }
}

var eventTypes$1 = {
  change: {
    phasedRegistrationNames: {
      bubbled: 'onChange',
      captured: 'onChangeCapture'
    },
    dependencies: [TOP_BLUR, TOP_CHANGE, TOP_CLICK, TOP_FOCUS, TOP_INPUT, TOP_KEY_DOWN, TOP_KEY_UP, TOP_SELECTION_CHANGE]
  }
};

function createAndAccumulateChangeEvent(inst, nativeEvent, target) {
  var event = SyntheticEvent.getPooled(eventTypes$1.change, inst, nativeEvent, target);
  event.type = 'change';
  // Flag this event loop as needing state restore.
  enqueueStateRestore(target);
  accumulateTwoPhaseDispatches(event);
  return event;
}
/**
 * For IE shims
 */
var activeElement = null;
var activeElementInst = null;

/**
 * SECTION: handle `change` event
 */
function shouldUseChangeEvent(elem) {
  var nodeName = elem.nodeName && elem.nodeName.toLowerCase();
  return nodeName === 'select' || nodeName === 'input' && elem.type === 'file';
}

function manualDispatchChangeEvent(nativeEvent) {
  var event = createAndAccumulateChangeEvent(activeElementInst, nativeEvent, getEventTarget(nativeEvent));

  // If change and propertychange bubbled, we'd just bind to it like all the
  // other events and have it go through ReactBrowserEventEmitter. Since it
  // doesn't, we manually listen for the events and so we have to enqueue and
  // process the abstract event manually.
  //
  // Batching is necessary here in order to ensure that all event handlers run
  // before the next rerender (including event handlers attached to ancestor
  // elements instead of directly on the input). Without this, controlled
  // components don't work properly in conjunction with event bubbling because
  // the component is rerendered and the value reverted before all the event
  // handlers can run. See https://github.com/facebook/react/issues/708.
  batchedUpdates(runEventInBatch, event);
}

function runEventInBatch(event) {
  runEventsInBatch(event);
}

function getInstIfValueChanged(targetInst) {
  var targetNode = getNodeFromInstance$1(targetInst);
  if (updateValueIfChanged(targetNode)) {
    return targetInst;
  }
}

function getTargetInstForChangeEvent(topLevelType, targetInst) {
  if (topLevelType === TOP_CHANGE) {
    return targetInst;
  }
}

/**
 * SECTION: handle `input` event
 */
var isInputEventSupported = false;
if (canUseDOM) {
  // IE9 claims to support the input event but fails to trigger it when
  // deleting text, so we ignore its input events.
  isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 9);
}

/**
 * (For IE <=9) Starts tracking propertychange events on the passed-in element
 * and override the value property so that we can distinguish user events from
 * value changes in JS.
 */
function startWatchingForValueChange(target, targetInst) {
  activeElement = target;
  activeElementInst = targetInst;
  activeElement.attachEvent('onpropertychange', handlePropertyChange);
}

/**
 * (For IE <=9) Removes the event listeners from the currently-tracked element,
 * if any exists.
 */
function stopWatchingForValueChange() {
  if (!activeElement) {
    return;
  }
  activeElement.detachEvent('onpropertychange', handlePropertyChange);
  activeElement = null;
  activeElementInst = null;
}

/**
 * (For IE <=9) Handles a propertychange event, sending a `change` event if
 * the value of the active element has changed.
 */
function handlePropertyChange(nativeEvent) {
  if (nativeEvent.propertyName !== 'value') {
    return;
  }
  if (getInstIfValueChanged(activeElementInst)) {
    manualDispatchChangeEvent(nativeEvent);
  }
}

function handleEventsForInputEventPolyfill(topLevelType, target, targetInst) {
  if (topLevelType === TOP_FOCUS) {
    // In IE9, propertychange fires for most input events but is buggy and
    // doesn't fire when text is deleted, but conveniently, selectionchange
    // appears to fire in all of the remaining cases so we catch those and
    // forward the event if the value has changed
    // In either case, we don't want to call the event handler if the value
    // is changed from JS so we redefine a setter for `.value` that updates
    // our activeElementValue variable, allowing us to ignore those changes
    //
    // stopWatching() should be a noop here but we call it just in case we
    // missed a blur event somehow.
    stopWatchingForValueChange();
    startWatchingForValueChange(target, targetInst);
  } else if (topLevelType === TOP_BLUR) {
    stopWatchingForValueChange();
  }
}

// For IE8 and IE9.
function getTargetInstForInputEventPolyfill(topLevelType, targetInst) {
  if (topLevelType === TOP_SELECTION_CHANGE || topLevelType === TOP_KEY_UP || topLevelType === TOP_KEY_DOWN) {
    // On the selectionchange event, the target is just document which isn't
    // helpful for us so just check activeElement instead.
    //
    // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire
    // propertychange on the first input event after setting `value` from a
    // script and fires only keydown, keypress, keyup. Catching keyup usually
    // gets it and catching keydown lets us fire an event for the first
    // keystroke if user does a key repeat (it'll be a little delayed: right
    // before the second keystroke). Other input methods (e.g., paste) seem to
    // fire selectionchange normally.
    return getInstIfValueChanged(activeElementInst);
  }
}

/**
 * SECTION: handle `click` event
 */
function shouldUseClickEvent(elem) {
  // Use the `click` event to detect changes to checkbox and radio inputs.
  // This approach works across all browsers, whereas `change` does not fire
  // until `blur` in IE8.
  var nodeName = elem.nodeName;
  return nodeName && nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio');
}

function getTargetInstForClickEvent(topLevelType, targetInst) {
  if (topLevelType === TOP_CLICK) {
    return getInstIfValueChanged(targetInst);
  }
}

function getTargetInstForInputOrChangeEvent(topLevelType, targetInst) {
  if (topLevelType === TOP_INPUT || topLevelType === TOP_CHANGE) {
    return getInstIfValueChanged(targetInst);
  }
}

function handleControlledInputBlur(node) {
  var state = node._wrapperState;

  if (!state || !state.controlled || node.type !== 'number') {
    return;
  }

  if (!disableInputAttributeSyncing) {
    // If controlled, assign the value attribute to the current value on blur
    setDefaultValue(node, 'number', node.value);
  }
}

/**
 * This plugin creates an `onChange` event that normalizes change events
 * across form elements. This event fires at a time when it's possible to
 * change the element's value without seeing a flicker.
 *
 * Supported elements are:
 * - input (see `isTextInputElement`)
 * - textarea
 * - select
 */
var ChangeEventPlugin = {
  eventTypes: eventTypes$1,

  _isInputEventSupported: isInputEventSupported,

  extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
    var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;

    var getTargetInstFunc = void 0,
        handleEventFunc = void 0;
    if (shouldUseChangeEvent(targetNode)) {
      getTargetInstFunc = getTargetInstForChangeEvent;
    } else if (isTextInputElement(targetNode)) {
      if (isInputEventSupported) {
        getTargetInstFunc = getTargetInstForInputOrChangeEvent;
      } else {
        getTargetInstFunc = getTargetInstForInputEventPolyfill;
        handleEventFunc = handleEventsForInputEventPolyfill;
      }
    } else if (shouldUseClickEvent(targetNode)) {
      getTargetInstFunc = getTargetInstForClickEvent;
    }

    if (getTargetInstFunc) {
      var inst = getTargetInstFunc(topLevelType, targetInst);
      if (inst) {
        var event = createAndAccumulateChangeEvent(inst, nativeEvent, nativeEventTarget);
        return event;
      }
    }

    if (handleEventFunc) {
      handleEventFunc(topLevelType, targetNode, targetInst);
    }

    // When blurring, set the value attribute for number inputs
    if (topLevelType === TOP_BLUR) {
      handleControlledInputBlur(targetNode);
    }
  }
};

/**
 * Module that is injectable into `EventPluginHub`, that specifies a
 * deterministic ordering of `EventPlugin`s. A convenient way to reason about
 * plugins, without having to package every one of them. This is better than
 * having plugins be ordered in the same order that they are injected because
 * that ordering would be influenced by the packaging order.
 * `ResponderEventPlugin` must occur before `SimpleEventPlugin` so that
 * preventing default on events is convenient in `SimpleEventPlugin` handlers.
 */
var DOMEventPluginOrder = ['ResponderEventPlugin', 'SimpleEventPlugin', 'EnterLeaveEventPlugin', 'ChangeEventPlugin', 'SelectEventPlugin', 'BeforeInputEventPlugin'];

var SyntheticUIEvent = SyntheticEvent.extend({
  view: null,
  detail: null
});

var modifierKeyToProp = {
  Alt: 'altKey',
  Control: 'ctrlKey',
  Meta: 'metaKey',
  Shift: 'shiftKey'
};

// Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support
// getModifierState. If getModifierState is not supported, we map it to a set of
// modifier keys exposed by the event. In this case, Lock-keys are not supported.
/**
 * Translation from modifier key to the associated property in the event.
 * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers
 */

function modifierStateGetter(keyArg) {
  var syntheticEvent = this;
  var nativeEvent = syntheticEvent.nativeEvent;
  if (nativeEvent.getModifierState) {
    return nativeEvent.getModifierState(keyArg);
  }
  var keyProp = modifierKeyToProp[keyArg];
  return keyProp ? !!nativeEvent[keyProp] : false;
}

function getEventModifierState(nativeEvent) {
  return modifierStateGetter;
}

var previousScreenX = 0;
var previousScreenY = 0;
// Use flags to signal movementX/Y has already been set
var isMovementXSet = false;
var isMovementYSet = false;

/**
 * @interface MouseEvent
 * @see http://www.w3.org/TR/DOM-Level-3-Events/
 */
var SyntheticMouseEvent = SyntheticUIEvent.extend({
  screenX: null,
  screenY: null,
  clientX: null,
  clientY: null,
  pageX: null,
  pageY: null,
  ctrlKey: null,
  shiftKey: null,
  altKey: null,
  metaKey: null,
  getModifierState: getEventModifierState,
  button: null,
  buttons: null,
  relatedTarget: function (event) {
    return event.relatedTarget || (event.fromElement === event.srcElement ? event.toElement : event.fromElement);
  },
  movementX: function (event) {
    if ('movementX' in event) {
      return event.movementX;
    }

    var screenX = previousScreenX;
    previousScreenX = event.screenX;

    if (!isMovementXSet) {
      isMovementXSet = true;
      return 0;
    }

    return event.type === 'mousemove' ? event.screenX - screenX : 0;
  },
  movementY: function (event) {
    if ('movementY' in event) {
      return event.movementY;
    }

    var screenY = previousScreenY;
    previousScreenY = event.screenY;

    if (!isMovementYSet) {
      isMovementYSet = true;
      return 0;
    }

    return event.type === 'mousemove' ? event.screenY - screenY : 0;
  }
});

/**
 * @interface PointerEvent
 * @see http://www.w3.org/TR/pointerevents/
 */
var SyntheticPointerEvent = SyntheticMouseEvent.extend({
  pointerId: null,
  width: null,
  height: null,
  pressure: null,
  tangentialPressure: null,
  tiltX: null,
  tiltY: null,
  twist: null,
  pointerType: null,
  isPrimary: null
});

var eventTypes$2 = {
  mouseEnter: {
    registrationName: 'onMouseEnter',
    dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]
  },
  mouseLeave: {
    registrationName: 'onMouseLeave',
    dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]
  },
  pointerEnter: {
    registrationName: 'onPointerEnter',
    dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]
  },
  pointerLeave: {
    registrationName: 'onPointerLeave',
    dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]
  }
};

var EnterLeaveEventPlugin = {
  eventTypes: eventTypes$2,

  /**
   * For almost every interaction we care about, there will be both a top-level
   * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that
   * we do not extract duplicate events. However, moving the mouse into the
   * browser from outside will not fire a `mouseout` event. In this case, we use
   * the `mouseover` top-level event.
   */
  extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
    var isOverEvent = topLevelType === TOP_MOUSE_OVER || topLevelType === TOP_POINTER_OVER;
    var isOutEvent = topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_POINTER_OUT;

    if (isOverEvent && (nativeEvent.relatedTarget || nativeEvent.fromElement)) {
      return null;
    }

    if (!isOutEvent && !isOverEvent) {
      // Must not be a mouse or pointer in or out - ignoring.
      return null;
    }

    var win = void 0;
    if (nativeEventTarget.window === nativeEventTarget) {
      // `nativeEventTarget` is probably a window object.
      win = nativeEventTarget;
    } else {
      // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.
      var doc = nativeEventTarget.ownerDocument;
      if (doc) {
        win = doc.defaultView || doc.parentWindow;
      } else {
        win = window;
      }
    }

    var from = void 0;
    var to = void 0;
    if (isOutEvent) {
      from = targetInst;
      var related = nativeEvent.relatedTarget || nativeEvent.toElement;
      to = related ? getClosestInstanceFromNode(related) : null;
    } else {
      // Moving to a node from outside the window.
      from = null;
      to = targetInst;
    }

    if (from === to) {
      // Nothing pertains to our managed components.
      return null;
    }

    var eventInterface = void 0,
        leaveEventType = void 0,
        enterEventType = void 0,
        eventTypePrefix = void 0;

    if (topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_MOUSE_OVER) {
      eventInterface = SyntheticMouseEvent;
      leaveEventType = eventTypes$2.mouseLeave;
      enterEventType = eventTypes$2.mouseEnter;
      eventTypePrefix = 'mouse';
    } else if (topLevelType === TOP_POINTER_OUT || topLevelType === TOP_POINTER_OVER) {
      eventInterface = SyntheticPointerEvent;
      leaveEventType = eventTypes$2.pointerLeave;
      enterEventType = eventTypes$2.pointerEnter;
      eventTypePrefix = 'pointer';
    }

    var fromNode = from == null ? win : getNodeFromInstance$1(from);
    var toNode = to == null ? win : getNodeFromInstance$1(to);

    var leave = eventInterface.getPooled(leaveEventType, from, nativeEvent, nativeEventTarget);
    leave.type = eventTypePrefix + 'leave';
    leave.target = fromNode;
    leave.relatedTarget = toNode;

    var enter = eventInterface.getPooled(enterEventType, to, nativeEvent, nativeEventTarget);
    enter.type = eventTypePrefix + 'enter';
    enter.target = toNode;
    enter.relatedTarget = fromNode;

    accumulateEnterLeaveDispatches(leave, enter, from, to);

    return [leave, enter];
  }
};

/*eslint-disable no-self-compare */

var hasOwnProperty$1 = Object.prototype.hasOwnProperty;

/**
 * inlined Object.is polyfill to avoid requiring consumers ship their own
 * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
 */
function is(x, y) {
  // SameValue algorithm
  if (x === y) {
    // Steps 1-5, 7-10
    // Steps 6.b-6.e: +0 != -0
    // Added the nonzero y check to make Flow happy, but it is redundant
    return x !== 0 || y !== 0 || 1 / x === 1 / y;
  } else {
    // Step 6.a: NaN == NaN
    return x !== x && y !== y;
  }
}

/**
 * Performs equality by iterating through keys on an object and returning false
 * when any key has values which are not strictly equal between the arguments.
 * Returns true when the values of all keys are strictly equal.
 */
function shallowEqual(objA, objB) {
  if (is(objA, objB)) {
    return true;
  }

  if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
    return false;
  }

  var keysA = Object.keys(objA);
  var keysB = Object.keys(objB);

  if (keysA.length !== keysB.length) {
    return false;
  }

  // Test for A's keys different from B.
  for (var i = 0; i < keysA.length; i++) {
    if (!hasOwnProperty$1.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
      return false;
    }
  }

  return true;
}

/**
 * `ReactInstanceMap` maintains a mapping from a public facing stateful
 * instance (key) and the internal representation (value). This allows public
 * methods to accept the user facing instance as an argument and map them back
 * to internal methods.
 *
 * Note that this module is currently shared and assumed to be stateless.
 * If this becomes an actual Map, that will break.
 */

/**
 * This API should be called `delete` but we'd have to make sure to always
 * transform these to strings for IE support. When this transform is fully
 * supported we can rename it.
 */


function get(key) {
  return key._reactInternalFiber;
}

function has(key) {
  return key._reactInternalFiber !== undefined;
}

function set(key, value) {
  key._reactInternalFiber = value;
}

// Don't change these two values. They're used by React Dev Tools.
var NoEffect = /*              */0;
var PerformedWork = /*         */1;

// You can change the rest (and add more).
var Placement = /*             */2;
var Update = /*                */4;
var PlacementAndUpdate = /*    */6;
var Deletion = /*              */8;
var ContentReset = /*          */16;
var Callback = /*              */32;
var DidCapture = /*            */64;
var Ref = /*                   */128;
var Snapshot = /*              */256;
var Passive = /*               */512;

// Passive & Update & Callback & Ref & Snapshot
var LifecycleEffectMask = /*   */932;

// Union of all host effects
var HostEffectMask = /*        */1023;

var Incomplete = /*            */1024;
var ShouldCapture = /*         */2048;

var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;

var MOUNTING = 1;
var MOUNTED = 2;
var UNMOUNTED = 3;

function isFiberMountedImpl(fiber) {
  var node = fiber;
  if (!fiber.alternate) {
    // If there is no alternate, this might be a new tree that isn't inserted
    // yet. If it is, then it will have a pending insertion effect on it.
    if ((node.effectTag & Placement) !== NoEffect) {
      return MOUNTING;
    }
    while (node.return) {
      node = node.return;
      if ((node.effectTag & Placement) !== NoEffect) {
        return MOUNTING;
      }
    }
  } else {
    while (node.return) {
      node = node.return;
    }
  }
  if (node.tag === HostRoot) {
    // TODO: Check if this was a nested HostRoot when used with
    // renderContainerIntoSubtree.
    return MOUNTED;
  }
  // If we didn't hit the root, that means that we're in an disconnected tree
  // that has been unmounted.
  return UNMOUNTED;
}

function isFiberMounted(fiber) {
  return isFiberMountedImpl(fiber) === MOUNTED;
}

function isMounted(component) {
  {
    var owner = ReactCurrentOwner$1.current;
    if (owner !== null && owner.tag === ClassComponent) {
      var ownerFiber = owner;
      var instance = ownerFiber.stateNode;
      !instance._warnedAboutRefsInRender ? warningWithoutStack$1(false, '%s is accessing isMounted inside its render() function. ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName(ownerFiber.type) || 'A component') : void 0;
      instance._warnedAboutRefsInRender = true;
    }
  }

  var fiber = get(component);
  if (!fiber) {
    return false;
  }
  return isFiberMountedImpl(fiber) === MOUNTED;
}

function assertIsMounted(fiber) {
  !(isFiberMountedImpl(fiber) === MOUNTED) ? invariant(false, 'Unable to find node on an unmounted component.') : void 0;
}

function findCurrentFiberUsingSlowPath(fiber) {
  var alternate = fiber.alternate;
  if (!alternate) {
    // If there is no alternate, then we only need to check if it is mounted.
    var state = isFiberMountedImpl(fiber);
    !(state !== UNMOUNTED) ? invariant(false, 'Unable to find node on an unmounted component.') : void 0;
    if (state === MOUNTING) {
      return null;
    }
    return fiber;
  }
  // If we have two possible branches, we'll walk backwards up to the root
  // to see what path the root points to. On the way we may hit one of the
  // special cases and we'll deal with them.
  var a = fiber;
  var b = alternate;
  while (true) {
    var parentA = a.return;
    var parentB = parentA ? parentA.alternate : null;
    if (!parentA || !parentB) {
      // We're at the root.
      break;
    }

    // If both copies of the parent fiber point to the same child, we can
    // assume that the child is current. This happens when we bailout on low
    // priority: the bailed out fiber's child reuses the current child.
    if (parentA.child === parentB.child) {
      var child = parentA.child;
      while (child) {
        if (child === a) {
          // We've determined that A is the current branch.
          assertIsMounted(parentA);
          return fiber;
        }
        if (child === b) {
          // We've determined that B is the current branch.
          assertIsMounted(parentA);
          return alternate;
        }
        child = child.sibling;
      }
      // We should never have an alternate for any mounting node. So the only
      // way this could possibly happen is if this was unmounted, if at all.
      invariant(false, 'Unable to find node on an unmounted component.');
    }

    if (a.return !== b.return) {
      // The return pointer of A and the return pointer of B point to different
      // fibers. We assume that return pointers never criss-cross, so A must
      // belong to the child set of A.return, and B must belong to the child
      // set of B.return.
      a = parentA;
      b = parentB;
    } else {
      // The return pointers point to the same fiber. We'll have to use the
      // default, slow path: scan the child sets of each parent alternate to see
      // which child belongs to which set.
      //
      // Search parent A's child set
      var didFindChild = false;
      var _child = parentA.child;
      while (_child) {
        if (_child === a) {
          didFindChild = true;
          a = parentA;
          b = parentB;
          break;
        }
        if (_child === b) {
          didFindChild = true;
          b = parentA;
          a = parentB;
          break;
        }
        _child = _child.sibling;
      }
      if (!didFindChild) {
        // Search parent B's child set
        _child = parentB.child;
        while (_child) {
          if (_child === a) {
            didFindChild = true;
            a = parentB;
            b = parentA;
            break;
          }
          if (_child === b) {
            didFindChild = true;
            b = parentB;
            a = parentA;
            break;
          }
          _child = _child.sibling;
        }
        !didFindChild ? invariant(false, 'Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.') : void 0;
      }
    }

    !(a.alternate === b) ? invariant(false, 'Return fibers should always be each others\' alternates. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  }
  // If the root is not a host container, we're in a disconnected tree. I.e.
  // unmounted.
  !(a.tag === HostRoot) ? invariant(false, 'Unable to find node on an unmounted component.') : void 0;
  if (a.stateNode.current === a) {
    // We've determined that A is the current branch.
    return fiber;
  }
  // Otherwise B has to be current branch.
  return alternate;
}

function findCurrentHostFiber(parent) {
  var currentParent = findCurrentFiberUsingSlowPath(parent);
  if (!currentParent) {
    return null;
  }

  // Next we'll drill down this component to find the first HostComponent/Text.
  var node = currentParent;
  while (true) {
    if (node.tag === HostComponent || node.tag === HostText) {
      return node;
    } else if (node.child) {
      node.child.return = node;
      node = node.child;
      continue;
    }
    if (node === currentParent) {
      return null;
    }
    while (!node.sibling) {
      if (!node.return || node.return === currentParent) {
        return null;
      }
      node = node.return;
    }
    node.sibling.return = node.return;
    node = node.sibling;
  }
  // Flow needs the return null here, but ESLint complains about it.
  // eslint-disable-next-line no-unreachable
  return null;
}

function findCurrentHostFiberWithNoPortals(parent) {
  var currentParent = findCurrentFiberUsingSlowPath(parent);
  if (!currentParent) {
    return null;
  }

  // Next we'll drill down this component to find the first HostComponent/Text.
  var node = currentParent;
  while (true) {
    if (node.tag === HostComponent || node.tag === HostText) {
      return node;
    } else if (node.child && node.tag !== HostPortal) {
      node.child.return = node;
      node = node.child;
      continue;
    }
    if (node === currentParent) {
      return null;
    }
    while (!node.sibling) {
      if (!node.return || node.return === currentParent) {
        return null;
      }
      node = node.return;
    }
    node.sibling.return = node.return;
    node = node.sibling;
  }
  // Flow needs the return null here, but ESLint complains about it.
  // eslint-disable-next-line no-unreachable
  return null;
}

function addEventBubbleListener(element, eventType, listener) {
  element.addEventListener(eventType, listener, false);
}

function addEventCaptureListener(element, eventType, listener) {
  element.addEventListener(eventType, listener, true);
}

/**
 * @interface Event
 * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface
 * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent
 */
var SyntheticAnimationEvent = SyntheticEvent.extend({
  animationName: null,
  elapsedTime: null,
  pseudoElement: null
});

/**
 * @interface Event
 * @see http://www.w3.org/TR/clipboard-apis/
 */
var SyntheticClipboardEvent = SyntheticEvent.extend({
  clipboardData: function (event) {
    return 'clipboardData' in event ? event.clipboardData : window.clipboardData;
  }
});

/**
 * @interface FocusEvent
 * @see http://www.w3.org/TR/DOM-Level-3-Events/
 */
var SyntheticFocusEvent = SyntheticUIEvent.extend({
  relatedTarget: null
});

/**
 * `charCode` represents the actual "character code" and is safe to use with
 * `String.fromCharCode`. As such, only keys that correspond to printable
 * characters produce a valid `charCode`, the only exception to this is Enter.
 * The Tab-key is considered non-printable and does not have a `charCode`,
 * presumably because it does not produce a tab-character in browsers.
 *
 * @param {object} nativeEvent Native browser event.
 * @return {number} Normalized `charCode` property.
 */
function getEventCharCode(nativeEvent) {
  var charCode = void 0;
  var keyCode = nativeEvent.keyCode;

  if ('charCode' in nativeEvent) {
    charCode = nativeEvent.charCode;

    // FF does not set `charCode` for the Enter-key, check against `keyCode`.
    if (charCode === 0 && keyCode === 13) {
      charCode = 13;
    }
  } else {
    // IE8 does not implement `charCode`, but `keyCode` has the correct value.
    charCode = keyCode;
  }

  // IE and Edge (on Windows) and Chrome / Safari (on Windows and Linux)
  // report Enter as charCode 10 when ctrl is pressed.
  if (charCode === 10) {
    charCode = 13;
  }

  // Some non-printable keys are reported in `charCode`/`keyCode`, discard them.
  // Must not discard the (non-)printable Enter-key.
  if (charCode >= 32 || charCode === 13) {
    return charCode;
  }

  return 0;
}

/**
 * Normalization of deprecated HTML5 `key` values
 * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
 */
var normalizeKey = {
  Esc: 'Escape',
  Spacebar: ' ',
  Left: 'ArrowLeft',
  Up: 'ArrowUp',
  Right: 'ArrowRight',
  Down: 'ArrowDown',
  Del: 'Delete',
  Win: 'OS',
  Menu: 'ContextMenu',
  Apps: 'ContextMenu',
  Scroll: 'ScrollLock',
  MozPrintableKey: 'Unidentified'
};

/**
 * Translation from legacy `keyCode` to HTML5 `key`
 * Only special keys supported, all others depend on keyboard layout or browser
 * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
 */
var translateToKey = {
  '8': 'Backspace',
  '9': 'Tab',
  '12': 'Clear',
  '13': 'Enter',
  '16': 'Shift',
  '17': 'Control',
  '18': 'Alt',
  '19': 'Pause',
  '20': 'CapsLock',
  '27': 'Escape',
  '32': ' ',
  '33': 'PageUp',
  '34': 'PageDown',
  '35': 'End',
  '36': 'Home',
  '37': 'ArrowLeft',
  '38': 'ArrowUp',
  '39': 'ArrowRight',
  '40': 'ArrowDown',
  '45': 'Insert',
  '46': 'Delete',
  '112': 'F1',
  '113': 'F2',
  '114': 'F3',
  '115': 'F4',
  '116': 'F5',
  '117': 'F6',
  '118': 'F7',
  '119': 'F8',
  '120': 'F9',
  '121': 'F10',
  '122': 'F11',
  '123': 'F12',
  '144': 'NumLock',
  '145': 'ScrollLock',
  '224': 'Meta'
};

/**
 * @param {object} nativeEvent Native browser event.
 * @return {string} Normalized `key` property.
 */
function getEventKey(nativeEvent) {
  if (nativeEvent.key) {
    // Normalize inconsistent values reported by browsers due to
    // implementations of a working draft specification.

    // FireFox implements `key` but returns `MozPrintableKey` for all
    // printable characters (normalized to `Unidentified`), ignore it.
    var key = normalizeKey[nativeEvent.key] || nativeEvent.key;
    if (key !== 'Unidentified') {
      return key;
    }
  }

  // Browser does not implement `key`, polyfill as much of it as we can.
  if (nativeEvent.type === 'keypress') {
    var charCode = getEventCharCode(nativeEvent);

    // The enter-key is technically both printable and non-printable and can
    // thus be captured by `keypress`, no other non-printable key should.
    return charCode === 13 ? 'Enter' : String.fromCharCode(charCode);
  }
  if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') {
    // While user keyboard layout determines the actual meaning of each
    // `keyCode` value, almost all function keys have a universal value.
    return translateToKey[nativeEvent.keyCode] || 'Unidentified';
  }
  return '';
}

/**
 * @interface KeyboardEvent
 * @see http://www.w3.org/TR/DOM-Level-3-Events/
 */
var SyntheticKeyboardEvent = SyntheticUIEvent.extend({
  key: getEventKey,
  location: null,
  ctrlKey: null,
  shiftKey: null,
  altKey: null,
  metaKey: null,
  repeat: null,
  locale: null,
  getModifierState: getEventModifierState,
  // Legacy Interface
  charCode: function (event) {
    // `charCode` is the result of a KeyPress event and represents the value of
    // the actual printable character.

    // KeyPress is deprecated, but its replacement is not yet final and not
    // implemented in any major browser. Only KeyPress has charCode.
    if (event.type === 'keypress') {
      return getEventCharCode(event);
    }
    return 0;
  },
  keyCode: function (event) {
    // `keyCode` is the result of a KeyDown/Up event and represents the value of
    // physical keyboard key.

    // The actual meaning of the value depends on the users' keyboard layout
    // which cannot be detected. Assuming that it is a US keyboard layout
    // provides a surprisingly accurate mapping for US and European users.
    // Due to this, it is left to the user to implement at this time.
    if (event.type === 'keydown' || event.type === 'keyup') {
      return event.keyCode;
    }
    return 0;
  },
  which: function (event) {
    // `which` is an alias for either `keyCode` or `charCode` depending on the
    // type of the event.
    if (event.type === 'keypress') {
      return getEventCharCode(event);
    }
    if (event.type === 'keydown' || event.type === 'keyup') {
      return event.keyCode;
    }
    return 0;
  }
});

/**
 * @interface DragEvent
 * @see http://www.w3.org/TR/DOM-Level-3-Events/
 */
var SyntheticDragEvent = SyntheticMouseEvent.extend({
  dataTransfer: null
});

/**
 * @interface TouchEvent
 * @see http://www.w3.org/TR/touch-events/
 */
var SyntheticTouchEvent = SyntheticUIEvent.extend({
  touches: null,
  targetTouches: null,
  changedTouches: null,
  altKey: null,
  metaKey: null,
  ctrlKey: null,
  shiftKey: null,
  getModifierState: getEventModifierState
});

/**
 * @interface Event
 * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events-
 * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent
 */
var SyntheticTransitionEvent = SyntheticEvent.extend({
  propertyName: null,
  elapsedTime: null,
  pseudoElement: null
});

/**
 * @interface WheelEvent
 * @see http://www.w3.org/TR/DOM-Level-3-Events/
 */
var SyntheticWheelEvent = SyntheticMouseEvent.extend({
  deltaX: function (event) {
    return 'deltaX' in event ? event.deltaX : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
    'wheelDeltaX' in event ? -event.wheelDeltaX : 0;
  },
  deltaY: function (event) {
    return 'deltaY' in event ? event.deltaY : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).
    'wheelDeltaY' in event ? -event.wheelDeltaY : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).
    'wheelDelta' in event ? -event.wheelDelta : 0;
  },

  deltaZ: null,

  // Browsers without "deltaMode" is reporting in raw wheel delta where one
  // notch on the scroll is always +/- 120, roughly equivalent to pixels.
  // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or
  // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.
  deltaMode: null
});

/**
 * Turns
 * ['abort', ...]
 * into
 * eventTypes = {
 *   'abort': {
 *     phasedRegistrationNames: {
 *       bubbled: 'onAbort',
 *       captured: 'onAbortCapture',
 *     },
 *     dependencies: [TOP_ABORT],
 *   },
 *   ...
 * };
 * topLevelEventsToDispatchConfig = new Map([
 *   [TOP_ABORT, { sameConfig }],
 * ]);
 */

var interactiveEventTypeNames = [[TOP_BLUR, 'blur'], [TOP_CANCEL, 'cancel'], [TOP_CLICK, 'click'], [TOP_CLOSE, 'close'], [TOP_CONTEXT_MENU, 'contextMenu'], [TOP_COPY, 'copy'], [TOP_CUT, 'cut'], [TOP_AUX_CLICK, 'auxClick'], [TOP_DOUBLE_CLICK, 'doubleClick'], [TOP_DRAG_END, 'dragEnd'], [TOP_DRAG_START, 'dragStart'], [TOP_DROP, 'drop'], [TOP_FOCUS, 'focus'], [TOP_INPUT, 'input'], [TOP_INVALID, 'invalid'], [TOP_KEY_DOWN, 'keyDown'], [TOP_KEY_PRESS, 'keyPress'], [TOP_KEY_UP, 'keyUp'], [TOP_MOUSE_DOWN, 'mouseDown'], [TOP_MOUSE_UP, 'mouseUp'], [TOP_PASTE, 'paste'], [TOP_PAUSE, 'pause'], [TOP_PLAY, 'play'], [TOP_POINTER_CANCEL, 'pointerCancel'], [TOP_POINTER_DOWN, 'pointerDown'], [TOP_POINTER_UP, 'pointerUp'], [TOP_RATE_CHANGE, 'rateChange'], [TOP_RESET, 'reset'], [TOP_SEEKED, 'seeked'], [TOP_SUBMIT, 'submit'], [TOP_TOUCH_CANCEL, 'touchCancel'], [TOP_TOUCH_END, 'touchEnd'], [TOP_TOUCH_START, 'touchStart'], [TOP_VOLUME_CHANGE, 'volumeChange']];
var nonInteractiveEventTypeNames = [[TOP_ABORT, 'abort'], [TOP_ANIMATION_END, 'animationEnd'], [TOP_ANIMATION_ITERATION, 'animationIteration'], [TOP_ANIMATION_START, 'animationStart'], [TOP_CAN_PLAY, 'canPlay'], [TOP_CAN_PLAY_THROUGH, 'canPlayThrough'], [TOP_DRAG, 'drag'], [TOP_DRAG_ENTER, 'dragEnter'], [TOP_DRAG_EXIT, 'dragExit'], [TOP_DRAG_LEAVE, 'dragLeave'], [TOP_DRAG_OVER, 'dragOver'], [TOP_DURATION_CHANGE, 'durationChange'], [TOP_EMPTIED, 'emptied'], [TOP_ENCRYPTED, 'encrypted'], [TOP_ENDED, 'ended'], [TOP_ERROR, 'error'], [TOP_GOT_POINTER_CAPTURE, 'gotPointerCapture'], [TOP_LOAD, 'load'], [TOP_LOADED_DATA, 'loadedData'], [TOP_LOADED_METADATA, 'loadedMetadata'], [TOP_LOAD_START, 'loadStart'], [TOP_LOST_POINTER_CAPTURE, 'lostPointerCapture'], [TOP_MOUSE_MOVE, 'mouseMove'], [TOP_MOUSE_OUT, 'mouseOut'], [TOP_MOUSE_OVER, 'mouseOver'], [TOP_PLAYING, 'playing'], [TOP_POINTER_MOVE, 'pointerMove'], [TOP_POINTER_OUT, 'pointerOut'], [TOP_POINTER_OVER, 'pointerOver'], [TOP_PROGRESS, 'progress'], [TOP_SCROLL, 'scroll'], [TOP_SEEKING, 'seeking'], [TOP_STALLED, 'stalled'], [TOP_SUSPEND, 'suspend'], [TOP_TIME_UPDATE, 'timeUpdate'], [TOP_TOGGLE, 'toggle'], [TOP_TOUCH_MOVE, 'touchMove'], [TOP_TRANSITION_END, 'transitionEnd'], [TOP_WAITING, 'waiting'], [TOP_WHEEL, 'wheel']];

var eventTypes$4 = {};
var topLevelEventsToDispatchConfig = {};

function addEventTypeNameToConfig(_ref, isInteractive) {
  var topEvent = _ref[0],
      event = _ref[1];

  var capitalizedEvent = event[0].toUpperCase() + event.slice(1);
  var onEvent = 'on' + capitalizedEvent;

  var type = {
    phasedRegistrationNames: {
      bubbled: onEvent,
      captured: onEvent + 'Capture'
    },
    dependencies: [topEvent],
    isInteractive: isInteractive
  };
  eventTypes$4[event] = type;
  topLevelEventsToDispatchConfig[topEvent] = type;
}

interactiveEventTypeNames.forEach(function (eventTuple) {
  addEventTypeNameToConfig(eventTuple, true);
});
nonInteractiveEventTypeNames.forEach(function (eventTuple) {
  addEventTypeNameToConfig(eventTuple, false);
});

// Only used in DEV for exhaustiveness validation.
var knownHTMLTopLevelTypes = [TOP_ABORT, TOP_CANCEL, TOP_CAN_PLAY, TOP_CAN_PLAY_THROUGH, TOP_CLOSE, TOP_DURATION_CHANGE, TOP_EMPTIED, TOP_ENCRYPTED, TOP_ENDED, TOP_ERROR, TOP_INPUT, TOP_INVALID, TOP_LOAD, TOP_LOADED_DATA, TOP_LOADED_METADATA, TOP_LOAD_START, TOP_PAUSE, TOP_PLAY, TOP_PLAYING, TOP_PROGRESS, TOP_RATE_CHANGE, TOP_RESET, TOP_SEEKED, TOP_SEEKING, TOP_STALLED, TOP_SUBMIT, TOP_SUSPEND, TOP_TIME_UPDATE, TOP_TOGGLE, TOP_VOLUME_CHANGE, TOP_WAITING];

var SimpleEventPlugin = {
  eventTypes: eventTypes$4,

  isInteractiveTopLevelEventType: function (topLevelType) {
    var config = topLevelEventsToDispatchConfig[topLevelType];
    return config !== undefined && config.isInteractive === true;
  },


  extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
    var dispatchConfig = topLevelEventsToDispatchConfig[topLevelType];
    if (!dispatchConfig) {
      return null;
    }
    var EventConstructor = void 0;
    switch (topLevelType) {
      case TOP_KEY_PRESS:
        // Firefox creates a keypress event for function keys too. This removes
        // the unwanted keypress events. Enter is however both printable and
        // non-printable. One would expect Tab to be as well (but it isn't).
        if (getEventCharCode(nativeEvent) === 0) {
          return null;
        }
      /* falls through */
      case TOP_KEY_DOWN:
      case TOP_KEY_UP:
        EventConstructor = SyntheticKeyboardEvent;
        break;
      case TOP_BLUR:
      case TOP_FOCUS:
        EventConstructor = SyntheticFocusEvent;
        break;
      case TOP_CLICK:
        // Firefox creates a click event on right mouse clicks. This removes the
        // unwanted click events.
        if (nativeEvent.button === 2) {
          return null;
        }
      /* falls through */
      case TOP_AUX_CLICK:
      case TOP_DOUBLE_CLICK:
      case TOP_MOUSE_DOWN:
      case TOP_MOUSE_MOVE:
      case TOP_MOUSE_UP:
      // TODO: Disabled elements should not respond to mouse events
      /* falls through */
      case TOP_MOUSE_OUT:
      case TOP_MOUSE_OVER:
      case TOP_CONTEXT_MENU:
        EventConstructor = SyntheticMouseEvent;
        break;
      case TOP_DRAG:
      case TOP_DRAG_END:
      case TOP_DRAG_ENTER:
      case TOP_DRAG_EXIT:
      case TOP_DRAG_LEAVE:
      case TOP_DRAG_OVER:
      case TOP_DRAG_START:
      case TOP_DROP:
        EventConstructor = SyntheticDragEvent;
        break;
      case TOP_TOUCH_CANCEL:
      case TOP_TOUCH_END:
      case TOP_TOUCH_MOVE:
      case TOP_TOUCH_START:
        EventConstructor = SyntheticTouchEvent;
        break;
      case TOP_ANIMATION_END:
      case TOP_ANIMATION_ITERATION:
      case TOP_ANIMATION_START:
        EventConstructor = SyntheticAnimationEvent;
        break;
      case TOP_TRANSITION_END:
        EventConstructor = SyntheticTransitionEvent;
        break;
      case TOP_SCROLL:
        EventConstructor = SyntheticUIEvent;
        break;
      case TOP_WHEEL:
        EventConstructor = SyntheticWheelEvent;
        break;
      case TOP_COPY:
      case TOP_CUT:
      case TOP_PASTE:
        EventConstructor = SyntheticClipboardEvent;
        break;
      case TOP_GOT_POINTER_CAPTURE:
      case TOP_LOST_POINTER_CAPTURE:
      case TOP_POINTER_CANCEL:
      case TOP_POINTER_DOWN:
      case TOP_POINTER_MOVE:
      case TOP_POINTER_OUT:
      case TOP_POINTER_OVER:
      case TOP_POINTER_UP:
        EventConstructor = SyntheticPointerEvent;
        break;
      default:
        {
          if (knownHTMLTopLevelTypes.indexOf(topLevelType) === -1) {
            warningWithoutStack$1(false, 'SimpleEventPlugin: Unhandled event type, `%s`. This warning ' + 'is likely caused by a bug in React. Please file an issue.', topLevelType);
          }
        }
        // HTML Events
        // @see http://www.w3.org/TR/html5/index.html#events-0
        EventConstructor = SyntheticEvent;
        break;
    }
    var event = EventConstructor.getPooled(dispatchConfig, targetInst, nativeEvent, nativeEventTarget);
    accumulateTwoPhaseDispatches(event);
    return event;
  }
};

var isInteractiveTopLevelEventType = SimpleEventPlugin.isInteractiveTopLevelEventType;


var CALLBACK_BOOKKEEPING_POOL_SIZE = 10;
var callbackBookkeepingPool = [];

/**
 * Find the deepest React component completely containing the root of the
 * passed-in instance (for use when entire React trees are nested within each
 * other). If React trees are not nested, returns null.
 */
function findRootContainerNode(inst) {
  // TODO: It may be a good idea to cache this to prevent unnecessary DOM
  // traversal, but caching is difficult to do correctly without using a
  // mutation observer to listen for all DOM changes.
  while (inst.return) {
    inst = inst.return;
  }
  if (inst.tag !== HostRoot) {
    // This can happen if we're in a detached tree.
    return null;
  }
  return inst.stateNode.containerInfo;
}

// Used to store ancestor hierarchy in top level callback
function getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst) {
  if (callbackBookkeepingPool.length) {
    var instance = callbackBookkeepingPool.pop();
    instance.topLevelType = topLevelType;
    instance.nativeEvent = nativeEvent;
    instance.targetInst = targetInst;
    return instance;
  }
  return {
    topLevelType: topLevelType,
    nativeEvent: nativeEvent,
    targetInst: targetInst,
    ancestors: []
  };
}

function releaseTopLevelCallbackBookKeeping(instance) {
  instance.topLevelType = null;
  instance.nativeEvent = null;
  instance.targetInst = null;
  instance.ancestors.length = 0;
  if (callbackBookkeepingPool.length < CALLBACK_BOOKKEEPING_POOL_SIZE) {
    callbackBookkeepingPool.push(instance);
  }
}

function handleTopLevel(bookKeeping) {
  var targetInst = bookKeeping.targetInst;

  // Loop through the hierarchy, in case there's any nested components.
  // It's important that we build the array of ancestors before calling any
  // event handlers, because event handlers can modify the DOM, leading to
  // inconsistencies with ReactMount's node cache. See #1105.
  var ancestor = targetInst;
  do {
    if (!ancestor) {
      bookKeeping.ancestors.push(ancestor);
      break;
    }
    var root = findRootContainerNode(ancestor);
    if (!root) {
      break;
    }
    bookKeeping.ancestors.push(ancestor);
    ancestor = getClosestInstanceFromNode(root);
  } while (ancestor);

  for (var i = 0; i < bookKeeping.ancestors.length; i++) {
    targetInst = bookKeeping.ancestors[i];
    runExtractedEventsInBatch(bookKeeping.topLevelType, targetInst, bookKeeping.nativeEvent, getEventTarget(bookKeeping.nativeEvent));
  }
}

// TODO: can we stop exporting these?
var _enabled = true;

function setEnabled(enabled) {
  _enabled = !!enabled;
}

function isEnabled() {
  return _enabled;
}

/**
 * Traps top-level events by using event bubbling.
 *
 * @param {number} topLevelType Number from `TopLevelEventTypes`.
 * @param {object} element Element on which to attach listener.
 * @return {?object} An object with a remove function which will forcefully
 *                  remove the listener.
 * @internal
 */
function trapBubbledEvent(topLevelType, element) {
  if (!element) {
    return null;
  }
  var dispatch = isInteractiveTopLevelEventType(topLevelType) ? dispatchInteractiveEvent : dispatchEvent;

  addEventBubbleListener(element, getRawEventName(topLevelType),
  // Check if interactive and wrap in interactiveUpdates
  dispatch.bind(null, topLevelType));
}

/**
 * Traps a top-level event by using event capturing.
 *
 * @param {number} topLevelType Number from `TopLevelEventTypes`.
 * @param {object} element Element on which to attach listener.
 * @return {?object} An object with a remove function which will forcefully
 *                  remove the listener.
 * @internal
 */
function trapCapturedEvent(topLevelType, element) {
  if (!element) {
    return null;
  }
  var dispatch = isInteractiveTopLevelEventType(topLevelType) ? dispatchInteractiveEvent : dispatchEvent;

  addEventCaptureListener(element, getRawEventName(topLevelType),
  // Check if interactive and wrap in interactiveUpdates
  dispatch.bind(null, topLevelType));
}

function dispatchInteractiveEvent(topLevelType, nativeEvent) {
  interactiveUpdates(dispatchEvent, topLevelType, nativeEvent);
}

function dispatchEvent(topLevelType, nativeEvent) {
  if (!_enabled) {
    return;
  }

  var nativeEventTarget = getEventTarget(nativeEvent);
  var targetInst = getClosestInstanceFromNode(nativeEventTarget);
  if (targetInst !== null && typeof targetInst.tag === 'number' && !isFiberMounted(targetInst)) {
    // If we get an event (ex: img onload) before committing that
    // component's mount, ignore it for now (that is, treat it as if it was an
    // event on a non-React tree). We might also consider queueing events and
    // dispatching them after the mount.
    targetInst = null;
  }

  var bookKeeping = getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst);

  try {
    // Event queue being processed in the same cycle allows
    // `preventDefault`.
    batchedUpdates(handleTopLevel, bookKeeping);
  } finally {
    releaseTopLevelCallbackBookKeeping(bookKeeping);
  }
}

/**
 * Summary of `ReactBrowserEventEmitter` event handling:
 *
 *  - Top-level delegation is used to trap most native browser events. This
 *    may only occur in the main thread and is the responsibility of
 *    ReactDOMEventListener, which is injected and can therefore support
 *    pluggable event sources. This is the only work that occurs in the main
 *    thread.
 *
 *  - We normalize and de-duplicate events to account for browser quirks. This
 *    may be done in the worker thread.
 *
 *  - Forward these native events (with the associated top-level type used to
 *    trap it) to `EventPluginHub`, which in turn will ask plugins if they want
 *    to extract any synthetic events.
 *
 *  - The `EventPluginHub` will then process each event by annotating them with
 *    "dispatches", a sequence of listeners and IDs that care about that event.
 *
 *  - The `EventPluginHub` then dispatches the events.
 *
 * Overview of React and the event system:
 *
 * +------------+    .
 * |    DOM     |    .
 * +------------+    .
 *       |           .
 *       v           .
 * +------------+    .
 * | ReactEvent |    .
 * |  Listener  |    .
 * +------------+    .                         +-----------+
 *       |           .               +--------+|SimpleEvent|
 *       |           .               |         |Plugin     |
 * +-----|------+    .               v         +-----------+
 * |     |      |    .    +--------------+                    +------------+
 * |     +-----------.--->|EventPluginHub|                    |    Event   |
 * |            |    .    |              |     +-----------+  | Propagators|
 * | ReactEvent |    .    |              |     |TapEvent   |  |------------|
 * |  Emitter   |    .    |              |<---+|Plugin     |  |other plugin|
 * |            |    .    |              |     +-----------+  |  utilities |
 * |     +-----------.--->|              |                    +------------+
 * |     |      |    .    +--------------+
 * +-----|------+    .                ^        +-----------+
 *       |           .                |        |Enter/Leave|
 *       +           .                +-------+|Plugin     |
 * +-------------+   .                         +-----------+
 * | application |   .
 * |-------------|   .
 * |             |   .
 * |             |   .
 * +-------------+   .
 *                   .
 *    React Core     .  General Purpose Event Plugin System
 */

var alreadyListeningTo = {};
var reactTopListenersCounter = 0;

/**
 * To ensure no conflicts with other potential React instances on the page
 */
var topListenersIDKey = '_reactListenersID' + ('' + Math.random()).slice(2);

function getListeningForDocument(mountAt) {
  // In IE8, `mountAt` is a host object and doesn't have `hasOwnProperty`
  // directly.
  if (!Object.prototype.hasOwnProperty.call(mountAt, topListenersIDKey)) {
    mountAt[topListenersIDKey] = reactTopListenersCounter++;
    alreadyListeningTo[mountAt[topListenersIDKey]] = {};
  }
  return alreadyListeningTo[mountAt[topListenersIDKey]];
}

/**
 * We listen for bubbled touch events on the document object.
 *
 * Firefox v8.01 (and possibly others) exhibited strange behavior when
 * mounting `onmousemove` events at some node that was not the document
 * element. The symptoms were that if your mouse is not moving over something
 * contained within that mount point (for example on the background) the
 * top-level listeners for `onmousemove` won't be called. However, if you
 * register the `mousemove` on the document object, then it will of course
 * catch all `mousemove`s. This along with iOS quirks, justifies restricting
 * top-level listeners to the document object only, at least for these
 * movement types of events and possibly all events.
 *
 * @see http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
 *
 * Also, `keyup`/`keypress`/`keydown` do not bubble to the window on IE, but
 * they bubble to document.
 *
 * @param {string} registrationName Name of listener (e.g. `onClick`).
 * @param {object} mountAt Container where to mount the listener
 */
function listenTo(registrationName, mountAt) {
  var isListening = getListeningForDocument(mountAt);
  var dependencies = registrationNameDependencies[registrationName];

  for (var i = 0; i < dependencies.length; i++) {
    var dependency = dependencies[i];
    if (!(isListening.hasOwnProperty(dependency) && isListening[dependency])) {
      switch (dependency) {
        case TOP_SCROLL:
          trapCapturedEvent(TOP_SCROLL, mountAt);
          break;
        case TOP_FOCUS:
        case TOP_BLUR:
          trapCapturedEvent(TOP_FOCUS, mountAt);
          trapCapturedEvent(TOP_BLUR, mountAt);
          // We set the flag for a single dependency later in this function,
          // but this ensures we mark both as attached rather than just one.
          isListening[TOP_BLUR] = true;
          isListening[TOP_FOCUS] = true;
          break;
        case TOP_CANCEL:
        case TOP_CLOSE:
          if (isEventSupported(getRawEventName(dependency))) {
            trapCapturedEvent(dependency, mountAt);
          }
          break;
        case TOP_INVALID:
        case TOP_SUBMIT:
        case TOP_RESET:
          // We listen to them on the target DOM elements.
          // Some of them bubble so we don't want them to fire twice.
          break;
        default:
          // By default, listen on the top level to all non-media events.
          // Media events don't bubble so adding the listener wouldn't do anything.
          var isMediaEvent = mediaEventTypes.indexOf(dependency) !== -1;
          if (!isMediaEvent) {
            trapBubbledEvent(dependency, mountAt);
          }
          break;
      }
      isListening[dependency] = true;
    }
  }
}

function isListeningToAllDependencies(registrationName, mountAt) {
  var isListening = getListeningForDocument(mountAt);
  var dependencies = registrationNameDependencies[registrationName];
  for (var i = 0; i < dependencies.length; i++) {
    var dependency = dependencies[i];
    if (!(isListening.hasOwnProperty(dependency) && isListening[dependency])) {
      return false;
    }
  }
  return true;
}

function getActiveElement(doc) {
  doc = doc || (typeof document !== 'undefined' ? document : undefined);
  if (typeof doc === 'undefined') {
    return null;
  }
  try {
    return doc.activeElement || doc.body;
  } catch (e) {
    return doc.body;
  }
}

/**
 * Given any node return the first leaf node without children.
 *
 * @param {DOMElement|DOMTextNode} node
 * @return {DOMElement|DOMTextNode}
 */
function getLeafNode(node) {
  while (node && node.firstChild) {
    node = node.firstChild;
  }
  return node;
}

/**
 * Get the next sibling within a container. This will walk up the
 * DOM if a node's siblings have been exhausted.
 *
 * @param {DOMElement|DOMTextNode} node
 * @return {?DOMElement|DOMTextNode}
 */
function getSiblingNode(node) {
  while (node) {
    if (node.nextSibling) {
      return node.nextSibling;
    }
    node = node.parentNode;
  }
}

/**
 * Get object describing the nodes which contain characters at offset.
 *
 * @param {DOMElement|DOMTextNode} root
 * @param {number} offset
 * @return {?object}
 */
function getNodeForCharacterOffset(root, offset) {
  var node = getLeafNode(root);
  var nodeStart = 0;
  var nodeEnd = 0;

  while (node) {
    if (node.nodeType === TEXT_NODE) {
      nodeEnd = nodeStart + node.textContent.length;

      if (nodeStart <= offset && nodeEnd >= offset) {
        return {
          node: node,
          offset: offset - nodeStart
        };
      }

      nodeStart = nodeEnd;
    }

    node = getLeafNode(getSiblingNode(node));
  }
}

/**
 * @param {DOMElement} outerNode
 * @return {?object}
 */
function getOffsets(outerNode) {
  var ownerDocument = outerNode.ownerDocument;

  var win = ownerDocument && ownerDocument.defaultView || window;
  var selection = win.getSelection && win.getSelection();

  if (!selection || selection.rangeCount === 0) {
    return null;
  }

  var anchorNode = selection.anchorNode,
      anchorOffset = selection.anchorOffset,
      focusNode = selection.focusNode,
      focusOffset = selection.focusOffset;

  // In Firefox, anchorNode and focusNode can be "anonymous divs", e.g. the
  // up/down buttons on an <input type="number">. Anonymous divs do not seem to
  // expose properties, triggering a "Permission denied error" if any of its
  // properties are accessed. The only seemingly possible way to avoid erroring
  // is to access a property that typically works for non-anonymous divs and
  // catch any error that may otherwise arise. See
  // https://bugzilla.mozilla.org/show_bug.cgi?id=208427

  try {
    /* eslint-disable no-unused-expressions */
    anchorNode.nodeType;
    focusNode.nodeType;
    /* eslint-enable no-unused-expressions */
  } catch (e) {
    return null;
  }

  return getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset);
}

/**
 * Returns {start, end} where `start` is the character/codepoint index of
 * (anchorNode, anchorOffset) within the textContent of `outerNode`, and
 * `end` is the index of (focusNode, focusOffset).
 *
 * Returns null if you pass in garbage input but we should probably just crash.
 *
 * Exported only for testing.
 */
function getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset) {
  var length = 0;
  var start = -1;
  var end = -1;
  var indexWithinAnchor = 0;
  var indexWithinFocus = 0;
  var node = outerNode;
  var parentNode = null;

  outer: while (true) {
    var next = null;

    while (true) {
      if (node === anchorNode && (anchorOffset === 0 || node.nodeType === TEXT_NODE)) {
        start = length + anchorOffset;
      }
      if (node === focusNode && (focusOffset === 0 || node.nodeType === TEXT_NODE)) {
        end = length + focusOffset;
      }

      if (node.nodeType === TEXT_NODE) {
        length += node.nodeValue.length;
      }

      if ((next = node.firstChild) === null) {
        break;
      }
      // Moving from `node` to its first child `next`.
      parentNode = node;
      node = next;
    }

    while (true) {
      if (node === outerNode) {
        // If `outerNode` has children, this is always the second time visiting
        // it. If it has no children, this is still the first loop, and the only
        // valid selection is anchorNode and focusNode both equal to this node
        // and both offsets 0, in which case we will have handled above.
        break outer;
      }
      if (parentNode === anchorNode && ++indexWithinAnchor === anchorOffset) {
        start = length;
      }
      if (parentNode === focusNode && ++indexWithinFocus === focusOffset) {
        end = length;
      }
      if ((next = node.nextSibling) !== null) {
        break;
      }
      node = parentNode;
      parentNode = node.parentNode;
    }

    // Moving from `node` to its next sibling `next`.
    node = next;
  }

  if (start === -1 || end === -1) {
    // This should never happen. (Would happen if the anchor/focus nodes aren't
    // actually inside the passed-in node.)
    return null;
  }

  return {
    start: start,
    end: end
  };
}

/**
 * In modern non-IE browsers, we can support both forward and backward
 * selections.
 *
 * Note: IE10+ supports the Selection object, but it does not support
 * the `extend` method, which means that even in modern IE, it's not possible
 * to programmatically create a backward selection. Thus, for all IE
 * versions, we use the old IE API to create our selections.
 *
 * @param {DOMElement|DOMTextNode} node
 * @param {object} offsets
 */
function setOffsets(node, offsets) {
  var doc = node.ownerDocument || document;
  var win = doc && doc.defaultView || window;

  // Edge fails with "Object expected" in some scenarios.
  // (For instance: TinyMCE editor used in a list component that supports pasting to add more,
  // fails when pasting 100+ items)
  if (!win.getSelection) {
    return;
  }

  var selection = win.getSelection();
  var length = node.textContent.length;
  var start = Math.min(offsets.start, length);
  var end = offsets.end === undefined ? start : Math.min(offsets.end, length);

  // IE 11 uses modern selection, but doesn't support the extend method.
  // Flip backward selections, so we can set with a single range.
  if (!selection.extend && start > end) {
    var temp = end;
    end = start;
    start = temp;
  }

  var startMarker = getNodeForCharacterOffset(node, start);
  var endMarker = getNodeForCharacterOffset(node, end);

  if (startMarker && endMarker) {
    if (selection.rangeCount === 1 && selection.anchorNode === startMarker.node && selection.anchorOffset === startMarker.offset && selection.focusNode === endMarker.node && selection.focusOffset === endMarker.offset) {
      return;
    }
    var range = doc.createRange();
    range.setStart(startMarker.node, startMarker.offset);
    selection.removeAllRanges();

    if (start > end) {
      selection.addRange(range);
      selection.extend(endMarker.node, endMarker.offset);
    } else {
      range.setEnd(endMarker.node, endMarker.offset);
      selection.addRange(range);
    }
  }
}

function isTextNode(node) {
  return node && node.nodeType === TEXT_NODE;
}

function containsNode(outerNode, innerNode) {
  if (!outerNode || !innerNode) {
    return false;
  } else if (outerNode === innerNode) {
    return true;
  } else if (isTextNode(outerNode)) {
    return false;
  } else if (isTextNode(innerNode)) {
    return containsNode(outerNode, innerNode.parentNode);
  } else if ('contains' in outerNode) {
    return outerNode.contains(innerNode);
  } else if (outerNode.compareDocumentPosition) {
    return !!(outerNode.compareDocumentPosition(innerNode) & 16);
  } else {
    return false;
  }
}

function isInDocument(node) {
  return node && node.ownerDocument && containsNode(node.ownerDocument.documentElement, node);
}

function getActiveElementDeep() {
  var win = window;
  var element = getActiveElement();
  while (element instanceof win.HTMLIFrameElement) {
    // Accessing the contentDocument of a HTMLIframeElement can cause the browser
    // to throw, e.g. if it has a cross-origin src attribute
    try {
      win = element.contentDocument.defaultView;
    } catch (e) {
      return element;
    }
    element = getActiveElement(win.document);
  }
  return element;
}

/**
 * @ReactInputSelection: React input selection module. Based on Selection.js,
 * but modified to be suitable for react and has a couple of bug fixes (doesn't
 * assume buttons have range selections allowed).
 * Input selection module for React.
 */

/**
 * @hasSelectionCapabilities: we get the element types that support selection
 * from https://html.spec.whatwg.org/#do-not-apply, looking at `selectionStart`
 * and `selectionEnd` rows.
 */
function hasSelectionCapabilities(elem) {
  var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
  return nodeName && (nodeName === 'input' && (elem.type === 'text' || elem.type === 'search' || elem.type === 'tel' || elem.type === 'url' || elem.type === 'password') || nodeName === 'textarea' || elem.contentEditable === 'true');
}

function getSelectionInformation() {
  var focusedElem = getActiveElementDeep();
  return {
    focusedElem: focusedElem,
    selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection$1(focusedElem) : null
  };
}

/**
 * @restoreSelection: If any selection information was potentially lost,
 * restore it. This is useful when performing operations that could remove dom
 * nodes and place them back in, resulting in focus being lost.
 */
function restoreSelection(priorSelectionInformation) {
  var curFocusedElem = getActiveElementDeep();
  var priorFocusedElem = priorSelectionInformation.focusedElem;
  var priorSelectionRange = priorSelectionInformation.selectionRange;
  if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) {
    if (priorSelectionRange !== null && hasSelectionCapabilities(priorFocusedElem)) {
      setSelection(priorFocusedElem, priorSelectionRange);
    }

    // Focusing a node can change the scroll position, which is undesirable
    var ancestors = [];
    var ancestor = priorFocusedElem;
    while (ancestor = ancestor.parentNode) {
      if (ancestor.nodeType === ELEMENT_NODE) {
        ancestors.push({
          element: ancestor,
          left: ancestor.scrollLeft,
          top: ancestor.scrollTop
        });
      }
    }

    if (typeof priorFocusedElem.focus === 'function') {
      priorFocusedElem.focus();
    }

    for (var i = 0; i < ancestors.length; i++) {
      var info = ancestors[i];
      info.element.scrollLeft = info.left;
      info.element.scrollTop = info.top;
    }
  }
}

/**
 * @getSelection: Gets the selection bounds of a focused textarea, input or
 * contentEditable node.
 * -@input: Look up selection bounds of this input
 * -@return {start: selectionStart, end: selectionEnd}
 */
function getSelection$1(input) {
  var selection = void 0;

  if ('selectionStart' in input) {
    // Modern browser with input or textarea.
    selection = {
      start: input.selectionStart,
      end: input.selectionEnd
    };
  } else {
    // Content editable or old IE textarea.
    selection = getOffsets(input);
  }

  return selection || { start: 0, end: 0 };
}

/**
 * @setSelection: Sets the selection bounds of a textarea or input and focuses
 * the input.
 * -@input     Set selection bounds of this input or textarea
 * -@offsets   Object of same form that is returned from get*
 */
function setSelection(input, offsets) {
  var start = offsets.start,
      end = offsets.end;

  if (end === undefined) {
    end = start;
  }

  if ('selectionStart' in input) {
    input.selectionStart = start;
    input.selectionEnd = Math.min(end, input.value.length);
  } else {
    setOffsets(input, offsets);
  }
}

var skipSelectionChangeEvent = canUseDOM && 'documentMode' in document && document.documentMode <= 11;

var eventTypes$3 = {
  select: {
    phasedRegistrationNames: {
      bubbled: 'onSelect',
      captured: 'onSelectCapture'
    },
    dependencies: [TOP_BLUR, TOP_CONTEXT_MENU, TOP_DRAG_END, TOP_FOCUS, TOP_KEY_DOWN, TOP_KEY_UP, TOP_MOUSE_DOWN, TOP_MOUSE_UP, TOP_SELECTION_CHANGE]
  }
};

var activeElement$1 = null;
var activeElementInst$1 = null;
var lastSelection = null;
var mouseDown = false;

/**
 * Get an object which is a unique representation of the current selection.
 *
 * The return value will not be consistent across nodes or browsers, but
 * two identical selections on the same node will return identical objects.
 *
 * @param {DOMElement} node
 * @return {object}
 */
function getSelection(node) {
  if ('selectionStart' in node && hasSelectionCapabilities(node)) {
    return {
      start: node.selectionStart,
      end: node.selectionEnd
    };
  } else {
    var win = node.ownerDocument && node.ownerDocument.defaultView || window;
    var selection = win.getSelection();
    return {
      anchorNode: selection.anchorNode,
      anchorOffset: selection.anchorOffset,
      focusNode: selection.focusNode,
      focusOffset: selection.focusOffset
    };
  }
}

/**
 * Get document associated with the event target.
 *
 * @param {object} nativeEventTarget
 * @return {Document}
 */
function getEventTargetDocument(eventTarget) {
  return eventTarget.window === eventTarget ? eventTarget.document : eventTarget.nodeType === DOCUMENT_NODE ? eventTarget : eventTarget.ownerDocument;
}

/**
 * Poll selection to see whether it's changed.
 *
 * @param {object} nativeEvent
 * @param {object} nativeEventTarget
 * @return {?SyntheticEvent}
 */
function constructSelectEvent(nativeEvent, nativeEventTarget) {
  // Ensure we have the right element, and that the user is not dragging a
  // selection (this matches native `select` event behavior). In HTML5, select
  // fires only on input and textarea thus if there's no focused element we
  // won't dispatch.
  var doc = getEventTargetDocument(nativeEventTarget);

  if (mouseDown || activeElement$1 == null || activeElement$1 !== getActiveElement(doc)) {
    return null;
  }

  // Only fire when selection has actually changed.
  var currentSelection = getSelection(activeElement$1);
  if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) {
    lastSelection = currentSelection;

    var syntheticEvent = SyntheticEvent.getPooled(eventTypes$3.select, activeElementInst$1, nativeEvent, nativeEventTarget);

    syntheticEvent.type = 'select';
    syntheticEvent.target = activeElement$1;

    accumulateTwoPhaseDispatches(syntheticEvent);

    return syntheticEvent;
  }

  return null;
}

/**
 * This plugin creates an `onSelect` event that normalizes select events
 * across form elements.
 *
 * Supported elements are:
 * - input (see `isTextInputElement`)
 * - textarea
 * - contentEditable
 *
 * This differs from native browser implementations in the following ways:
 * - Fires on contentEditable fields as well as inputs.
 * - Fires for collapsed selection.
 * - Fires after user input.
 */
var SelectEventPlugin = {
  eventTypes: eventTypes$3,

  extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
    var doc = getEventTargetDocument(nativeEventTarget);
    // Track whether all listeners exists for this plugin. If none exist, we do
    // not extract events. See #3639.
    if (!doc || !isListeningToAllDependencies('onSelect', doc)) {
      return null;
    }

    var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;

    switch (topLevelType) {
      // Track the input node that has focus.
      case TOP_FOCUS:
        if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') {
          activeElement$1 = targetNode;
          activeElementInst$1 = targetInst;
          lastSelection = null;
        }
        break;
      case TOP_BLUR:
        activeElement$1 = null;
        activeElementInst$1 = null;
        lastSelection = null;
        break;
      // Don't fire the event while the user is dragging. This matches the
      // semantics of the native select event.
      case TOP_MOUSE_DOWN:
        mouseDown = true;
        break;
      case TOP_CONTEXT_MENU:
      case TOP_MOUSE_UP:
      case TOP_DRAG_END:
        mouseDown = false;
        return constructSelectEvent(nativeEvent, nativeEventTarget);
      // Chrome and IE fire non-standard event when selection is changed (and
      // sometimes when it hasn't). IE's event fires out of order with respect
      // to key and input events on deletion, so we discard it.
      //
      // Firefox doesn't support selectionchange, so check selection status
      // after each key entry. The selection changes after keydown and before
      // keyup, but we check on keydown as well in the case of holding down a
      // key, when multiple keydown events are fired but only one keyup is.
      // This is also our approach for IE handling, for the reason above.
      case TOP_SELECTION_CHANGE:
        if (skipSelectionChangeEvent) {
          break;
        }
      // falls through
      case TOP_KEY_DOWN:
      case TOP_KEY_UP:
        return constructSelectEvent(nativeEvent, nativeEventTarget);
    }

    return null;
  }
};

/**
 * Inject modules for resolving DOM hierarchy and plugin ordering.
 */
injection.injectEventPluginOrder(DOMEventPluginOrder);
setComponentTree(getFiberCurrentPropsFromNode$1, getInstanceFromNode$1, getNodeFromInstance$1);

/**
 * Some important event plugins included by default (without having to require
 * them).
 */
injection.injectEventPluginsByName({
  SimpleEventPlugin: SimpleEventPlugin,
  EnterLeaveEventPlugin: EnterLeaveEventPlugin,
  ChangeEventPlugin: ChangeEventPlugin,
  SelectEventPlugin: SelectEventPlugin,
  BeforeInputEventPlugin: BeforeInputEventPlugin
});

var didWarnSelectedSetOnOption = false;
var didWarnInvalidChild = false;

function flattenChildren(children) {
  var content = '';

  // Flatten children. We'll warn if they are invalid
  // during validateProps() which runs for hydration too.
  // Note that this would throw on non-element objects.
  // Elements are stringified (which is normally irrelevant
  // but matters for <fbt>).
  React.Children.forEach(children, function (child) {
    if (child == null) {
      return;
    }
    content += child;
    // Note: we don't warn about invalid children here.
    // Instead, this is done separately below so that
    // it happens during the hydration codepath too.
  });

  return content;
}

/**
 * Implements an <option> host component that warns when `selected` is set.
 */

function validateProps(element, props) {
  {
    // This mirrors the codepath above, but runs for hydration too.
    // Warn about invalid children here so that client and hydration are consistent.
    // TODO: this seems like it could cause a DEV-only throw for hydration
    // if children contains a non-element object. We should try to avoid that.
    if (typeof props.children === 'object' && props.children !== null) {
      React.Children.forEach(props.children, function (child) {
        if (child == null) {
          return;
        }
        if (typeof child === 'string' || typeof child === 'number') {
          return;
        }
        if (typeof child.type !== 'string') {
          return;
        }
        if (!didWarnInvalidChild) {
          didWarnInvalidChild = true;
          warning$1(false, 'Only strings and numbers are supported as <option> children.');
        }
      });
    }

    // TODO: Remove support for `selected` in <option>.
    if (props.selected != null && !didWarnSelectedSetOnOption) {
      warning$1(false, 'Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');
      didWarnSelectedSetOnOption = true;
    }
  }
}

function postMountWrapper$1(element, props) {
  // value="" should make a value attribute (#6219)
  if (props.value != null) {
    element.setAttribute('value', toString(getToStringValue(props.value)));
  }
}

function getHostProps$1(element, props) {
  var hostProps = _assign({ children: undefined }, props);
  var content = flattenChildren(props.children);

  if (content) {
    hostProps.children = content;
  }

  return hostProps;
}

// TODO: direct imports like some-package/src/* are bad. Fix me.
var didWarnValueDefaultValue$1 = void 0;

{
  didWarnValueDefaultValue$1 = false;
}

function getDeclarationErrorAddendum() {
  var ownerName = getCurrentFiberOwnerNameInDevOrNull();
  if (ownerName) {
    return '\n\nCheck the render method of `' + ownerName + '`.';
  }
  return '';
}

var valuePropNames = ['value', 'defaultValue'];

/**
 * Validation function for `value` and `defaultValue`.
 */
function checkSelectPropTypes(props) {
  ReactControlledValuePropTypes.checkPropTypes('select', props);

  for (var i = 0; i < valuePropNames.length; i++) {
    var propName = valuePropNames[i];
    if (props[propName] == null) {
      continue;
    }
    var isArray = Array.isArray(props[propName]);
    if (props.multiple && !isArray) {
      warning$1(false, 'The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum());
    } else if (!props.multiple && isArray) {
      warning$1(false, 'The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum());
    }
  }
}

function updateOptions(node, multiple, propValue, setDefaultSelected) {
  var options = node.options;

  if (multiple) {
    var selectedValues = propValue;
    var selectedValue = {};
    for (var i = 0; i < selectedValues.length; i++) {
      // Prefix to avoid chaos with special keys.
      selectedValue['$' + selectedValues[i]] = true;
    }
    for (var _i = 0; _i < options.length; _i++) {
      var selected = selectedValue.hasOwnProperty('$' + options[_i].value);
      if (options[_i].selected !== selected) {
        options[_i].selected = selected;
      }
      if (selected && setDefaultSelected) {
        options[_i].defaultSelected = true;
      }
    }
  } else {
    // Do not set `select.value` as exact behavior isn't consistent across all
    // browsers for all cases.
    var _selectedValue = toString(getToStringValue(propValue));
    var defaultSelected = null;
    for (var _i2 = 0; _i2 < options.length; _i2++) {
      if (options[_i2].value === _selectedValue) {
        options[_i2].selected = true;
        if (setDefaultSelected) {
          options[_i2].defaultSelected = true;
        }
        return;
      }
      if (defaultSelected === null && !options[_i2].disabled) {
        defaultSelected = options[_i2];
      }
    }
    if (defaultSelected !== null) {
      defaultSelected.selected = true;
    }
  }
}

/**
 * Implements a <select> host component that allows optionally setting the
 * props `value` and `defaultValue`. If `multiple` is false, the prop must be a
 * stringable. If `multiple` is true, the prop must be an array of stringables.
 *
 * If `value` is not supplied (or null/undefined), user actions that change the
 * selected option will trigger updates to the rendered options.
 *
 * If it is supplied (and not null/undefined), the rendered options will not
 * update in response to user actions. Instead, the `value` prop must change in
 * order for the rendered options to update.
 *
 * If `defaultValue` is provided, any options with the supplied values will be
 * selected.
 */

function getHostProps$2(element, props) {
  return _assign({}, props, {
    value: undefined
  });
}

function initWrapperState$1(element, props) {
  var node = element;
  {
    checkSelectPropTypes(props);
  }

  node._wrapperState = {
    wasMultiple: !!props.multiple
  };

  {
    if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue$1) {
      warning$1(false, 'Select elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled select ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components');
      didWarnValueDefaultValue$1 = true;
    }
  }
}

function postMountWrapper$2(element, props) {
  var node = element;
  node.multiple = !!props.multiple;
  var value = props.value;
  if (value != null) {
    updateOptions(node, !!props.multiple, value, false);
  } else if (props.defaultValue != null) {
    updateOptions(node, !!props.multiple, props.defaultValue, true);
  }
}

function postUpdateWrapper(element, props) {
  var node = element;
  var wasMultiple = node._wrapperState.wasMultiple;
  node._wrapperState.wasMultiple = !!props.multiple;

  var value = props.value;
  if (value != null) {
    updateOptions(node, !!props.multiple, value, false);
  } else if (wasMultiple !== !!props.multiple) {
    // For simplicity, reapply `defaultValue` if `multiple` is toggled.
    if (props.defaultValue != null) {
      updateOptions(node, !!props.multiple, props.defaultValue, true);
    } else {
      // Revert the select back to its default unselected state.
      updateOptions(node, !!props.multiple, props.multiple ? [] : '', false);
    }
  }
}

function restoreControlledState$2(element, props) {
  var node = element;
  var value = props.value;

  if (value != null) {
    updateOptions(node, !!props.multiple, value, false);
  }
}

var didWarnValDefaultVal = false;

/**
 * Implements a <textarea> host component that allows setting `value`, and
 * `defaultValue`. This differs from the traditional DOM API because value is
 * usually set as PCDATA children.
 *
 * If `value` is not supplied (or null/undefined), user actions that affect the
 * value will trigger updates to the element.
 *
 * If `value` is supplied (and not null/undefined), the rendered element will
 * not trigger updates to the element. Instead, the `value` prop must change in
 * order for the rendered element to be updated.
 *
 * The rendered element will be initialized with an empty value, the prop
 * `defaultValue` if specified, or the children content (deprecated).
 */

function getHostProps$3(element, props) {
  var node = element;
  !(props.dangerouslySetInnerHTML == null) ? invariant(false, '`dangerouslySetInnerHTML` does not make sense on <textarea>.') : void 0;

  // Always set children to the same thing. In IE9, the selection range will
  // get reset if `textContent` is mutated.  We could add a check in setTextContent
  // to only set the value if/when the value differs from the node value (which would
  // completely solve this IE9 bug), but Sebastian+Sophie seemed to like this
  // solution. The value can be a boolean or object so that's why it's forced
  // to be a string.
  var hostProps = _assign({}, props, {
    value: undefined,
    defaultValue: undefined,
    children: toString(node._wrapperState.initialValue)
  });

  return hostProps;
}

function initWrapperState$2(element, props) {
  var node = element;
  {
    ReactControlledValuePropTypes.checkPropTypes('textarea', props);
    if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) {
      warning$1(false, '%s contains a textarea with both value and defaultValue props. ' + 'Textarea elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled textarea ' + 'and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component');
      didWarnValDefaultVal = true;
    }
  }

  var initialValue = props.value;

  // Only bother fetching default value if we're going to use it
  if (initialValue == null) {
    var defaultValue = props.defaultValue;
    // TODO (yungsters): Remove support for children content in <textarea>.
    var children = props.children;
    if (children != null) {
      {
        warning$1(false, 'Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');
      }
      !(defaultValue == null) ? invariant(false, 'If you supply `defaultValue` on a <textarea>, do not pass children.') : void 0;
      if (Array.isArray(children)) {
        !(children.length <= 1) ? invariant(false, '<textarea> can only have at most one child.') : void 0;
        children = children[0];
      }

      defaultValue = children;
    }
    if (defaultValue == null) {
      defaultValue = '';
    }
    initialValue = defaultValue;
  }

  node._wrapperState = {
    initialValue: getToStringValue(initialValue)
  };
}

function updateWrapper$1(element, props) {
  var node = element;
  var value = getToStringValue(props.value);
  var defaultValue = getToStringValue(props.defaultValue);
  if (value != null) {
    // Cast `value` to a string to ensure the value is set correctly. While
    // browsers typically do this as necessary, jsdom doesn't.
    var newValue = toString(value);
    // To avoid side effects (such as losing text selection), only set value if changed
    if (newValue !== node.value) {
      node.value = newValue;
    }
    if (props.defaultValue == null && node.defaultValue !== newValue) {
      node.defaultValue = newValue;
    }
  }
  if (defaultValue != null) {
    node.defaultValue = toString(defaultValue);
  }
}

function postMountWrapper$3(element, props) {
  var node = element;
  // This is in postMount because we need access to the DOM node, which is not
  // available until after the component has mounted.
  var textContent = node.textContent;

  // Only set node.value if textContent is equal to the expected
  // initial value. In IE10/IE11 there is a bug where the placeholder attribute
  // will populate textContent as well.
  // https://developer.microsoft.com/microsoft-edge/platform/issues/101525/
  if (textContent === node._wrapperState.initialValue) {
    node.value = textContent;
  }
}

function restoreControlledState$3(element, props) {
  // DOM component is still mounted; update
  updateWrapper$1(element, props);
}

var HTML_NAMESPACE$1 = 'http://www.w3.org/1999/xhtml';
var MATH_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';

var Namespaces = {
  html: HTML_NAMESPACE$1,
  mathml: MATH_NAMESPACE,
  svg: SVG_NAMESPACE
};

// Assumes there is no parent namespace.
function getIntrinsicNamespace(type) {
  switch (type) {
    case 'svg':
      return SVG_NAMESPACE;
    case 'math':
      return MATH_NAMESPACE;
    default:
      return HTML_NAMESPACE$1;
  }
}

function getChildNamespace(parentNamespace, type) {
  if (parentNamespace == null || parentNamespace === HTML_NAMESPACE$1) {
    // No (or default) parent namespace: potential entry point.
    return getIntrinsicNamespace(type);
  }
  if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {
    // We're leaving SVG.
    return HTML_NAMESPACE$1;
  }
  // By default, pass namespace below.
  return parentNamespace;
}

/* globals MSApp */

/**
 * Create a function which has 'unsafe' privileges (required by windows8 apps)
 */
var createMicrosoftUnsafeLocalFunction = function (func) {
  if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) {
    return function (arg0, arg1, arg2, arg3) {
      MSApp.execUnsafeLocalFunction(function () {
        return func(arg0, arg1, arg2, arg3);
      });
    };
  } else {
    return func;
  }
};

// SVG temp container for IE lacking innerHTML
var reusableSVGContainer = void 0;

/**
 * Set the innerHTML property of a node
 *
 * @param {DOMElement} node
 * @param {string} html
 * @internal
 */
var setInnerHTML = createMicrosoftUnsafeLocalFunction(function (node, html) {
  // IE does not have innerHTML for SVG nodes, so instead we inject the
  // new markup in a temp node and then move the child nodes across into
  // the target node

  if (node.namespaceURI === Namespaces.svg && !('innerHTML' in node)) {
    reusableSVGContainer = reusableSVGContainer || document.createElement('div');
    reusableSVGContainer.innerHTML = '<svg>' + html + '</svg>';
    var svgNode = reusableSVGContainer.firstChild;
    while (node.firstChild) {
      node.removeChild(node.firstChild);
    }
    while (svgNode.firstChild) {
      node.appendChild(svgNode.firstChild);
    }
  } else {
    node.innerHTML = html;
  }
});

/**
 * Set the textContent property of a node. For text updates, it's faster
 * to set the `nodeValue` of the Text node directly instead of using
 * `.textContent` which will remove the existing node and create a new one.
 *
 * @param {DOMElement} node
 * @param {string} text
 * @internal
 */
var setTextContent = function (node, text) {
  if (text) {
    var firstChild = node.firstChild;

    if (firstChild && firstChild === node.lastChild && firstChild.nodeType === TEXT_NODE) {
      firstChild.nodeValue = text;
      return;
    }
  }
  node.textContent = text;
};

/**
 * CSS properties which accept numbers but are not in units of "px".
 */
var isUnitlessNumber = {
  animationIterationCount: true,
  borderImageOutset: true,
  borderImageSlice: true,
  borderImageWidth: true,
  boxFlex: true,
  boxFlexGroup: true,
  boxOrdinalGroup: true,
  columnCount: true,
  columns: true,
  flex: true,
  flexGrow: true,
  flexPositive: true,
  flexShrink: true,
  flexNegative: true,
  flexOrder: true,
  gridArea: true,
  gridRow: true,
  gridRowEnd: true,
  gridRowSpan: true,
  gridRowStart: true,
  gridColumn: true,
  gridColumnEnd: true,
  gridColumnSpan: true,
  gridColumnStart: true,
  fontWeight: true,
  lineClamp: true,
  lineHeight: true,
  opacity: true,
  order: true,
  orphans: true,
  tabSize: true,
  widows: true,
  zIndex: true,
  zoom: true,

  // SVG-related properties
  fillOpacity: true,
  floodOpacity: true,
  stopOpacity: true,
  strokeDasharray: true,
  strokeDashoffset: true,
  strokeMiterlimit: true,
  strokeOpacity: true,
  strokeWidth: true
};

/**
 * @param {string} prefix vendor-specific prefix, eg: Webkit
 * @param {string} key style name, eg: transitionDuration
 * @return {string} style name prefixed with `prefix`, properly camelCased, eg:
 * WebkitTransitionDuration
 */
function prefixKey(prefix, key) {
  return prefix + key.charAt(0).toUpperCase() + key.substring(1);
}

/**
 * Support style names that may come passed in prefixed by adding permutations
 * of vendor prefixes.
 */
var prefixes = ['Webkit', 'ms', 'Moz', 'O'];

// Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an
// infinite loop, because it iterates over the newly added props too.
Object.keys(isUnitlessNumber).forEach(function (prop) {
  prefixes.forEach(function (prefix) {
    isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];
  });
});

/**
 * Convert a value into the proper css writable value. The style name `name`
 * should be logical (no hyphens), as specified
 * in `CSSProperty.isUnitlessNumber`.
 *
 * @param {string} name CSS property name such as `topMargin`.
 * @param {*} value CSS property value such as `10px`.
 * @return {string} Normalized style value with dimensions applied.
 */
function dangerousStyleValue(name, value, isCustomProperty) {
  // Note that we've removed escapeTextForBrowser() calls here since the
  // whole string will be escaped when the attribute is injected into
  // the markup. If you provide unsafe user data here they can inject
  // arbitrary CSS which may be problematic (I couldn't repro this):
  // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
  // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/
  // This is not an XSS hole but instead a potential CSS injection issue
  // which has lead to a greater discussion about how we're going to
  // trust URLs moving forward. See #2115901

  var isEmpty = value == null || typeof value === 'boolean' || value === '';
  if (isEmpty) {
    return '';
  }

  if (!isCustomProperty && typeof value === 'number' && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) {
    return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers
  }

  return ('' + value).trim();
}

var uppercasePattern = /([A-Z])/g;
var msPattern = /^ms-/;

/**
 * Hyphenates a camelcased CSS property name, for example:
 *
 *   > hyphenateStyleName('backgroundColor')
 *   < "background-color"
 *   > hyphenateStyleName('MozTransition')
 *   < "-moz-transition"
 *   > hyphenateStyleName('msTransition')
 *   < "-ms-transition"
 *
 * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
 * is converted to `-ms-`.
 */
function hyphenateStyleName(name) {
  return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-');
}

var warnValidStyle = function () {};

{
  // 'msTransform' is correct, but the other prefixes should be capitalized
  var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;
  var msPattern$1 = /^-ms-/;
  var hyphenPattern = /-(.)/g;

  // style values shouldn't contain a semicolon
  var badStyleValueWithSemicolonPattern = /;\s*$/;

  var warnedStyleNames = {};
  var warnedStyleValues = {};
  var warnedForNaNValue = false;
  var warnedForInfinityValue = false;

  var camelize = function (string) {
    return string.replace(hyphenPattern, function (_, character) {
      return character.toUpperCase();
    });
  };

  var warnHyphenatedStyleName = function (name) {
    if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
      return;
    }

    warnedStyleNames[name] = true;
    warning$1(false, 'Unsupported style property %s. Did you mean %s?', name,
    // As Andi Smith suggests
    // (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix
    // is converted to lowercase `ms`.
    camelize(name.replace(msPattern$1, 'ms-')));
  };

  var warnBadVendoredStyleName = function (name) {
    if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
      return;
    }

    warnedStyleNames[name] = true;
    warning$1(false, 'Unsupported vendor-prefixed style property %s. Did you mean %s?', name, name.charAt(0).toUpperCase() + name.slice(1));
  };

  var warnStyleValueWithSemicolon = function (name, value) {
    if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
      return;
    }

    warnedStyleValues[value] = true;
    warning$1(false, "Style property values shouldn't contain a semicolon. " + 'Try "%s: %s" instead.', name, value.replace(badStyleValueWithSemicolonPattern, ''));
  };

  var warnStyleValueIsNaN = function (name, value) {
    if (warnedForNaNValue) {
      return;
    }

    warnedForNaNValue = true;
    warning$1(false, '`NaN` is an invalid value for the `%s` css style property.', name);
  };

  var warnStyleValueIsInfinity = function (name, value) {
    if (warnedForInfinityValue) {
      return;
    }

    warnedForInfinityValue = true;
    warning$1(false, '`Infinity` is an invalid value for the `%s` css style property.', name);
  };

  warnValidStyle = function (name, value) {
    if (name.indexOf('-') > -1) {
      warnHyphenatedStyleName(name);
    } else if (badVendoredStyleNamePattern.test(name)) {
      warnBadVendoredStyleName(name);
    } else if (badStyleValueWithSemicolonPattern.test(value)) {
      warnStyleValueWithSemicolon(name, value);
    }

    if (typeof value === 'number') {
      if (isNaN(value)) {
        warnStyleValueIsNaN(name, value);
      } else if (!isFinite(value)) {
        warnStyleValueIsInfinity(name, value);
      }
    }
  };
}

var warnValidStyle$1 = warnValidStyle;

/**
 * Operations for dealing with CSS properties.
 */

/**
 * This creates a string that is expected to be equivalent to the style
 * attribute generated by server-side rendering. It by-passes warnings and
 * security checks so it's not safe to use this value for anything other than
 * comparison. It is only used in DEV for SSR validation.
 */
function createDangerousStringForStyles(styles) {
  {
    var serialized = '';
    var delimiter = '';
    for (var styleName in styles) {
      if (!styles.hasOwnProperty(styleName)) {
        continue;
      }
      var styleValue = styles[styleName];
      if (styleValue != null) {
        var isCustomProperty = styleName.indexOf('--') === 0;
        serialized += delimiter + hyphenateStyleName(styleName) + ':';
        serialized += dangerousStyleValue(styleName, styleValue, isCustomProperty);

        delimiter = ';';
      }
    }
    return serialized || null;
  }
}

/**
 * Sets the value for multiple styles on a node.  If a value is specified as
 * '' (empty string), the corresponding style property will be unset.
 *
 * @param {DOMElement} node
 * @param {object} styles
 */
function setValueForStyles(node, styles) {
  var style = node.style;
  for (var styleName in styles) {
    if (!styles.hasOwnProperty(styleName)) {
      continue;
    }
    var isCustomProperty = styleName.indexOf('--') === 0;
    {
      if (!isCustomProperty) {
        warnValidStyle$1(styleName, styles[styleName]);
      }
    }
    var styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty);
    if (styleName === 'float') {
      styleName = 'cssFloat';
    }
    if (isCustomProperty) {
      style.setProperty(styleName, styleValue);
    } else {
      style[styleName] = styleValue;
    }
  }
}

// For HTML, certain tags should omit their close tag. We keep a whitelist for
// those special-case tags.

var omittedCloseTags = {
  area: true,
  base: true,
  br: true,
  col: true,
  embed: true,
  hr: true,
  img: true,
  input: true,
  keygen: true,
  link: true,
  meta: true,
  param: true,
  source: true,
  track: true,
  wbr: true
  // NOTE: menuitem's close tag should be omitted, but that causes problems.
};

// For HTML, certain tags cannot have children. This has the same purpose as
// `omittedCloseTags` except that `menuitem` should still have its closing tag.

var voidElementTags = _assign({
  menuitem: true
}, omittedCloseTags);

// TODO: We can remove this if we add invariantWithStack()
// or add stack by default to invariants where possible.
var HTML$1 = '__html';

var ReactDebugCurrentFrame$2 = null;
{
  ReactDebugCurrentFrame$2 = ReactSharedInternals.ReactDebugCurrentFrame;
}

function assertValidProps(tag, props) {
  if (!props) {
    return;
  }
  // Note the use of `==` which checks for null or undefined.
  if (voidElementTags[tag]) {
    !(props.children == null && props.dangerouslySetInnerHTML == null) ? invariant(false, '%s is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.%s', tag, ReactDebugCurrentFrame$2.getStackAddendum()) : void 0;
  }
  if (props.dangerouslySetInnerHTML != null) {
    !(props.children == null) ? invariant(false, 'Can only set one of `children` or `props.dangerouslySetInnerHTML`.') : void 0;
    !(typeof props.dangerouslySetInnerHTML === 'object' && HTML$1 in props.dangerouslySetInnerHTML) ? invariant(false, '`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information.') : void 0;
  }
  {
    !(props.suppressContentEditableWarning || !props.contentEditable || props.children == null) ? warning$1(false, 'A component is `contentEditable` and contains `children` managed by ' + 'React. It is now your responsibility to guarantee that none of ' + 'those nodes are unexpectedly modified or duplicated. This is ' + 'probably not intentional.') : void 0;
  }
  !(props.style == null || typeof props.style === 'object') ? invariant(false, 'The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + \'em\'}} when using JSX.%s', ReactDebugCurrentFrame$2.getStackAddendum()) : void 0;
}

function isCustomComponent(tagName, props) {
  if (tagName.indexOf('-') === -1) {
    return typeof props.is === 'string';
  }
  switch (tagName) {
    // These are reserved SVG and MathML elements.
    // We don't mind this whitelist too much because we expect it to never grow.
    // The alternative is to track the namespace in a few places which is convoluted.
    // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts
    case 'annotation-xml':
    case 'color-profile':
    case 'font-face':
    case 'font-face-src':
    case 'font-face-uri':
    case 'font-face-format':
    case 'font-face-name':
    case 'missing-glyph':
      return false;
    default:
      return true;
  }
}

// When adding attributes to the HTML or SVG whitelist, be sure to
// also add them to this module to ensure casing and incorrect name
// warnings.
var possibleStandardNames = {
  // HTML
  accept: 'accept',
  acceptcharset: 'acceptCharset',
  'accept-charset': 'acceptCharset',
  accesskey: 'accessKey',
  action: 'action',
  allowfullscreen: 'allowFullScreen',
  alt: 'alt',
  as: 'as',
  async: 'async',
  autocapitalize: 'autoCapitalize',
  autocomplete: 'autoComplete',
  autocorrect: 'autoCorrect',
  autofocus: 'autoFocus',
  autoplay: 'autoPlay',
  autosave: 'autoSave',
  capture: 'capture',
  cellpadding: 'cellPadding',
  cellspacing: 'cellSpacing',
  challenge: 'challenge',
  charset: 'charSet',
  checked: 'checked',
  children: 'children',
  cite: 'cite',
  class: 'className',
  classid: 'classID',
  classname: 'className',
  cols: 'cols',
  colspan: 'colSpan',
  content: 'content',
  contenteditable: 'contentEditable',
  contextmenu: 'contextMenu',
  controls: 'controls',
  controlslist: 'controlsList',
  coords: 'coords',
  crossorigin: 'crossOrigin',
  dangerouslysetinnerhtml: 'dangerouslySetInnerHTML',
  data: 'data',
  datetime: 'dateTime',
  default: 'default',
  defaultchecked: 'defaultChecked',
  defaultvalue: 'defaultValue',
  defer: 'defer',
  dir: 'dir',
  disabled: 'disabled',
  download: 'download',
  draggable: 'draggable',
  enctype: 'encType',
  for: 'htmlFor',
  form: 'form',
  formmethod: 'formMethod',
  formaction: 'formAction',
  formenctype: 'formEncType',
  formnovalidate: 'formNoValidate',
  formtarget: 'formTarget',
  frameborder: 'frameBorder',
  headers: 'headers',
  height: 'height',
  hidden: 'hidden',
  high: 'high',
  href: 'href',
  hreflang: 'hrefLang',
  htmlfor: 'htmlFor',
  httpequiv: 'httpEquiv',
  'http-equiv': 'httpEquiv',
  icon: 'icon',
  id: 'id',
  innerhtml: 'innerHTML',
  inputmode: 'inputMode',
  integrity: 'integrity',
  is: 'is',
  itemid: 'itemID',
  itemprop: 'itemProp',
  itemref: 'itemRef',
  itemscope: 'itemScope',
  itemtype: 'itemType',
  keyparams: 'keyParams',
  keytype: 'keyType',
  kind: 'kind',
  label: 'label',
  lang: 'lang',
  list: 'list',
  loop: 'loop',
  low: 'low',
  manifest: 'manifest',
  marginwidth: 'marginWidth',
  marginheight: 'marginHeight',
  max: 'max',
  maxlength: 'maxLength',
  media: 'media',
  mediagroup: 'mediaGroup',
  method: 'method',
  min: 'min',
  minlength: 'minLength',
  multiple: 'multiple',
  muted: 'muted',
  name: 'name',
  nomodule: 'noModule',
  nonce: 'nonce',
  novalidate: 'noValidate',
  open: 'open',
  optimum: 'optimum',
  pattern: 'pattern',
  placeholder: 'placeholder',
  playsinline: 'playsInline',
  poster: 'poster',
  preload: 'preload',
  profile: 'profile',
  radiogroup: 'radioGroup',
  readonly: 'readOnly',
  referrerpolicy: 'referrerPolicy',
  rel: 'rel',
  required: 'required',
  reversed: 'reversed',
  role: 'role',
  rows: 'rows',
  rowspan: 'rowSpan',
  sandbox: 'sandbox',
  scope: 'scope',
  scoped: 'scoped',
  scrolling: 'scrolling',
  seamless: 'seamless',
  selected: 'selected',
  shape: 'shape',
  size: 'size',
  sizes: 'sizes',
  span: 'span',
  spellcheck: 'spellCheck',
  src: 'src',
  srcdoc: 'srcDoc',
  srclang: 'srcLang',
  srcset: 'srcSet',
  start: 'start',
  step: 'step',
  style: 'style',
  summary: 'summary',
  tabindex: 'tabIndex',
  target: 'target',
  title: 'title',
  type: 'type',
  usemap: 'useMap',
  value: 'value',
  width: 'width',
  wmode: 'wmode',
  wrap: 'wrap',

  // SVG
  about: 'about',
  accentheight: 'accentHeight',
  'accent-height': 'accentHeight',
  accumulate: 'accumulate',
  additive: 'additive',
  alignmentbaseline: 'alignmentBaseline',
  'alignment-baseline': 'alignmentBaseline',
  allowreorder: 'allowReorder',
  alphabetic: 'alphabetic',
  amplitude: 'amplitude',
  arabicform: 'arabicForm',
  'arabic-form': 'arabicForm',
  ascent: 'ascent',
  attributename: 'attributeName',
  attributetype: 'attributeType',
  autoreverse: 'autoReverse',
  azimuth: 'azimuth',
  basefrequency: 'baseFrequency',
  baselineshift: 'baselineShift',
  'baseline-shift': 'baselineShift',
  baseprofile: 'baseProfile',
  bbox: 'bbox',
  begin: 'begin',
  bias: 'bias',
  by: 'by',
  calcmode: 'calcMode',
  capheight: 'capHeight',
  'cap-height': 'capHeight',
  clip: 'clip',
  clippath: 'clipPath',
  'clip-path': 'clipPath',
  clippathunits: 'clipPathUnits',
  cliprule: 'clipRule',
  'clip-rule': 'clipRule',
  color: 'color',
  colorinterpolation: 'colorInterpolation',
  'color-interpolation': 'colorInterpolation',
  colorinterpolationfilters: 'colorInterpolationFilters',
  'color-interpolation-filters': 'colorInterpolationFilters',
  colorprofile: 'colorProfile',
  'color-profile': 'colorProfile',
  colorrendering: 'colorRendering',
  'color-rendering': 'colorRendering',
  contentscripttype: 'contentScriptType',
  contentstyletype: 'contentStyleType',
  cursor: 'cursor',
  cx: 'cx',
  cy: 'cy',
  d: 'd',
  datatype: 'datatype',
  decelerate: 'decelerate',
  descent: 'descent',
  diffuseconstant: 'diffuseConstant',
  direction: 'direction',
  display: 'display',
  divisor: 'divisor',
  dominantbaseline: 'dominantBaseline',
  'dominant-baseline': 'dominantBaseline',
  dur: 'dur',
  dx: 'dx',
  dy: 'dy',
  edgemode: 'edgeMode',
  elevation: 'elevation',
  enablebackground: 'enableBackground',
  'enable-background': 'enableBackground',
  end: 'end',
  exponent: 'exponent',
  externalresourcesrequired: 'externalResourcesRequired',
  fill: 'fill',
  fillopacity: 'fillOpacity',
  'fill-opacity': 'fillOpacity',
  fillrule: 'fillRule',
  'fill-rule': 'fillRule',
  filter: 'filter',
  filterres: 'filterRes',
  filterunits: 'filterUnits',
  floodopacity: 'floodOpacity',
  'flood-opacity': 'floodOpacity',
  floodcolor: 'floodColor',
  'flood-color': 'floodColor',
  focusable: 'focusable',
  fontfamily: 'fontFamily',
  'font-family': 'fontFamily',
  fontsize: 'fontSize',
  'font-size': 'fontSize',
  fontsizeadjust: 'fontSizeAdjust',
  'font-size-adjust': 'fontSizeAdjust',
  fontstretch: 'fontStretch',
  'font-stretch': 'fontStretch',
  fontstyle: 'fontStyle',
  'font-style': 'fontStyle',
  fontvariant: 'fontVariant',
  'font-variant': 'fontVariant',
  fontweight: 'fontWeight',
  'font-weight': 'fontWeight',
  format: 'format',
  from: 'from',
  fx: 'fx',
  fy: 'fy',
  g1: 'g1',
  g2: 'g2',
  glyphname: 'glyphName',
  'glyph-name': 'glyphName',
  glyphorientationhorizontal: 'glyphOrientationHorizontal',
  'glyph-orientation-horizontal': 'glyphOrientationHorizontal',
  glyphorientationvertical: 'glyphOrientationVertical',
  'glyph-orientation-vertical': 'glyphOrientationVertical',
  glyphref: 'glyphRef',
  gradienttransform: 'gradientTransform',
  gradientunits: 'gradientUnits',
  hanging: 'hanging',
  horizadvx: 'horizAdvX',
  'horiz-adv-x': 'horizAdvX',
  horizoriginx: 'horizOriginX',
  'horiz-origin-x': 'horizOriginX',
  ideographic: 'ideographic',
  imagerendering: 'imageRendering',
  'image-rendering': 'imageRendering',
  in2: 'in2',
  in: 'in',
  inlist: 'inlist',
  intercept: 'intercept',
  k1: 'k1',
  k2: 'k2',
  k3: 'k3',
  k4: 'k4',
  k: 'k',
  kernelmatrix: 'kernelMatrix',
  kernelunitlength: 'kernelUnitLength',
  kerning: 'kerning',
  keypoints: 'keyPoints',
  keysplines: 'keySplines',
  keytimes: 'keyTimes',
  lengthadjust: 'lengthAdjust',
  letterspacing: 'letterSpacing',
  'letter-spacing': 'letterSpacing',
  lightingcolor: 'lightingColor',
  'lighting-color': 'lightingColor',
  limitingconeangle: 'limitingConeAngle',
  local: 'local',
  markerend: 'markerEnd',
  'marker-end': 'markerEnd',
  markerheight: 'markerHeight',
  markermid: 'markerMid',
  'marker-mid': 'markerMid',
  markerstart: 'markerStart',
  'marker-start': 'markerStart',
  markerunits: 'markerUnits',
  markerwidth: 'markerWidth',
  mask: 'mask',
  maskcontentunits: 'maskContentUnits',
  maskunits: 'maskUnits',
  mathematical: 'mathematical',
  mode: 'mode',
  numoctaves: 'numOctaves',
  offset: 'offset',
  opacity: 'opacity',
  operator: 'operator',
  order: 'order',
  orient: 'orient',
  orientation: 'orientation',
  origin: 'origin',
  overflow: 'overflow',
  overlineposition: 'overlinePosition',
  'overline-position': 'overlinePosition',
  overlinethickness: 'overlineThickness',
  'overline-thickness': 'overlineThickness',
  paintorder: 'paintOrder',
  'paint-order': 'paintOrder',
  panose1: 'panose1',
  'panose-1': 'panose1',
  pathlength: 'pathLength',
  patterncontentunits: 'patternContentUnits',
  patterntransform: 'patternTransform',
  patternunits: 'patternUnits',
  pointerevents: 'pointerEvents',
  'pointer-events': 'pointerEvents',
  points: 'points',
  pointsatx: 'pointsAtX',
  pointsaty: 'pointsAtY',
  pointsatz: 'pointsAtZ',
  prefix: 'prefix',
  preservealpha: 'preserveAlpha',
  preserveaspectratio: 'preserveAspectRatio',
  primitiveunits: 'primitiveUnits',
  property: 'property',
  r: 'r',
  radius: 'radius',
  refx: 'refX',
  refy: 'refY',
  renderingintent: 'renderingIntent',
  'rendering-intent': 'renderingIntent',
  repeatcount: 'repeatCount',
  repeatdur: 'repeatDur',
  requiredextensions: 'requiredExtensions',
  requiredfeatures: 'requiredFeatures',
  resource: 'resource',
  restart: 'restart',
  result: 'result',
  results: 'results',
  rotate: 'rotate',
  rx: 'rx',
  ry: 'ry',
  scale: 'scale',
  security: 'security',
  seed: 'seed',
  shaperendering: 'shapeRendering',
  'shape-rendering': 'shapeRendering',
  slope: 'slope',
  spacing: 'spacing',
  specularconstant: 'specularConstant',
  specularexponent: 'specularExponent',
  speed: 'speed',
  spreadmethod: 'spreadMethod',
  startoffset: 'startOffset',
  stddeviation: 'stdDeviation',
  stemh: 'stemh',
  stemv: 'stemv',
  stitchtiles: 'stitchTiles',
  stopcolor: 'stopColor',
  'stop-color': 'stopColor',
  stopopacity: 'stopOpacity',
  'stop-opacity': 'stopOpacity',
  strikethroughposition: 'strikethroughPosition',
  'strikethrough-position': 'strikethroughPosition',
  strikethroughthickness: 'strikethroughThickness',
  'strikethrough-thickness': 'strikethroughThickness',
  string: 'string',
  stroke: 'stroke',
  strokedasharray: 'strokeDasharray',
  'stroke-dasharray': 'strokeDasharray',
  strokedashoffset: 'strokeDashoffset',
  'stroke-dashoffset': 'strokeDashoffset',
  strokelinecap: 'strokeLinecap',
  'stroke-linecap': 'strokeLinecap',
  strokelinejoin: 'strokeLinejoin',
  'stroke-linejoin': 'strokeLinejoin',
  strokemiterlimit: 'strokeMiterlimit',
  'stroke-miterlimit': 'strokeMiterlimit',
  strokewidth: 'strokeWidth',
  'stroke-width': 'strokeWidth',
  strokeopacity: 'strokeOpacity',
  'stroke-opacity': 'strokeOpacity',
  suppresscontenteditablewarning: 'suppressContentEditableWarning',
  suppresshydrationwarning: 'suppressHydrationWarning',
  surfacescale: 'surfaceScale',
  systemlanguage: 'systemLanguage',
  tablevalues: 'tableValues',
  targetx: 'targetX',
  targety: 'targetY',
  textanchor: 'textAnchor',
  'text-anchor': 'textAnchor',
  textdecoration: 'textDecoration',
  'text-decoration': 'textDecoration',
  textlength: 'textLength',
  textrendering: 'textRendering',
  'text-rendering': 'textRendering',
  to: 'to',
  transform: 'transform',
  typeof: 'typeof',
  u1: 'u1',
  u2: 'u2',
  underlineposition: 'underlinePosition',
  'underline-position': 'underlinePosition',
  underlinethickness: 'underlineThickness',
  'underline-thickness': 'underlineThickness',
  unicode: 'unicode',
  unicodebidi: 'unicodeBidi',
  'unicode-bidi': 'unicodeBidi',
  unicoderange: 'unicodeRange',
  'unicode-range': 'unicodeRange',
  unitsperem: 'unitsPerEm',
  'units-per-em': 'unitsPerEm',
  unselectable: 'unselectable',
  valphabetic: 'vAlphabetic',
  'v-alphabetic': 'vAlphabetic',
  values: 'values',
  vectoreffect: 'vectorEffect',
  'vector-effect': 'vectorEffect',
  version: 'version',
  vertadvy: 'vertAdvY',
  'vert-adv-y': 'vertAdvY',
  vertoriginx: 'vertOriginX',
  'vert-origin-x': 'vertOriginX',
  vertoriginy: 'vertOriginY',
  'vert-origin-y': 'vertOriginY',
  vhanging: 'vHanging',
  'v-hanging': 'vHanging',
  videographic: 'vIdeographic',
  'v-ideographic': 'vIdeographic',
  viewbox: 'viewBox',
  viewtarget: 'viewTarget',
  visibility: 'visibility',
  vmathematical: 'vMathematical',
  'v-mathematical': 'vMathematical',
  vocab: 'vocab',
  widths: 'widths',
  wordspacing: 'wordSpacing',
  'word-spacing': 'wordSpacing',
  writingmode: 'writingMode',
  'writing-mode': 'writingMode',
  x1: 'x1',
  x2: 'x2',
  x: 'x',
  xchannelselector: 'xChannelSelector',
  xheight: 'xHeight',
  'x-height': 'xHeight',
  xlinkactuate: 'xlinkActuate',
  'xlink:actuate': 'xlinkActuate',
  xlinkarcrole: 'xlinkArcrole',
  'xlink:arcrole': 'xlinkArcrole',
  xlinkhref: 'xlinkHref',
  'xlink:href': 'xlinkHref',
  xlinkrole: 'xlinkRole',
  'xlink:role': 'xlinkRole',
  xlinkshow: 'xlinkShow',
  'xlink:show': 'xlinkShow',
  xlinktitle: 'xlinkTitle',
  'xlink:title': 'xlinkTitle',
  xlinktype: 'xlinkType',
  'xlink:type': 'xlinkType',
  xmlbase: 'xmlBase',
  'xml:base': 'xmlBase',
  xmllang: 'xmlLang',
  'xml:lang': 'xmlLang',
  xmlns: 'xmlns',
  'xml:space': 'xmlSpace',
  xmlnsxlink: 'xmlnsXlink',
  'xmlns:xlink': 'xmlnsXlink',
  xmlspace: 'xmlSpace',
  y1: 'y1',
  y2: 'y2',
  y: 'y',
  ychannelselector: 'yChannelSelector',
  z: 'z',
  zoomandpan: 'zoomAndPan'
};

var ariaProperties = {
  'aria-current': 0, // state
  'aria-details': 0,
  'aria-disabled': 0, // state
  'aria-hidden': 0, // state
  'aria-invalid': 0, // state
  'aria-keyshortcuts': 0,
  'aria-label': 0,
  'aria-roledescription': 0,
  // Widget Attributes
  'aria-autocomplete': 0,
  'aria-checked': 0,
  'aria-expanded': 0,
  'aria-haspopup': 0,
  'aria-level': 0,
  'aria-modal': 0,
  'aria-multiline': 0,
  'aria-multiselectable': 0,
  'aria-orientation': 0,
  'aria-placeholder': 0,
  'aria-pressed': 0,
  'aria-readonly': 0,
  'aria-required': 0,
  'aria-selected': 0,
  'aria-sort': 0,
  'aria-valuemax': 0,
  'aria-valuemin': 0,
  'aria-valuenow': 0,
  'aria-valuetext': 0,
  // Live Region Attributes
  'aria-atomic': 0,
  'aria-busy': 0,
  'aria-live': 0,
  'aria-relevant': 0,
  // Drag-and-Drop Attributes
  'aria-dropeffect': 0,
  'aria-grabbed': 0,
  // Relationship Attributes
  'aria-activedescendant': 0,
  'aria-colcount': 0,
  'aria-colindex': 0,
  'aria-colspan': 0,
  'aria-controls': 0,
  'aria-describedby': 0,
  'aria-errormessage': 0,
  'aria-flowto': 0,
  'aria-labelledby': 0,
  'aria-owns': 0,
  'aria-posinset': 0,
  'aria-rowcount': 0,
  'aria-rowindex': 0,
  'aria-rowspan': 0,
  'aria-setsize': 0
};

var warnedProperties = {};
var rARIA = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
var rARIACamel = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');

var hasOwnProperty$2 = Object.prototype.hasOwnProperty;

function validateProperty(tagName, name) {
  if (hasOwnProperty$2.call(warnedProperties, name) && warnedProperties[name]) {
    return true;
  }

  if (rARIACamel.test(name)) {
    var ariaName = 'aria-' + name.slice(4).toLowerCase();
    var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null;

    // If this is an aria-* attribute, but is not listed in the known DOM
    // DOM properties, then it is an invalid aria-* attribute.
    if (correctName == null) {
      warning$1(false, 'Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.', name);
      warnedProperties[name] = true;
      return true;
    }
    // aria-* attributes should be lowercase; suggest the lowercase version.
    if (name !== correctName) {
      warning$1(false, 'Invalid ARIA attribute `%s`. Did you mean `%s`?', name, correctName);
      warnedProperties[name] = true;
      return true;
    }
  }

  if (rARIA.test(name)) {
    var lowerCasedName = name.toLowerCase();
    var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null;

    // If this is an aria-* attribute, but is not listed in the known DOM
    // DOM properties, then it is an invalid aria-* attribute.
    if (standardName == null) {
      warnedProperties[name] = true;
      return false;
    }
    // aria-* attributes should be lowercase; suggest the lowercase version.
    if (name !== standardName) {
      warning$1(false, 'Unknown ARIA attribute `%s`. Did you mean `%s`?', name, standardName);
      warnedProperties[name] = true;
      return true;
    }
  }

  return true;
}

function warnInvalidARIAProps(type, props) {
  var invalidProps = [];

  for (var key in props) {
    var isValid = validateProperty(type, key);
    if (!isValid) {
      invalidProps.push(key);
    }
  }

  var unknownPropString = invalidProps.map(function (prop) {
    return '`' + prop + '`';
  }).join(', ');

  if (invalidProps.length === 1) {
    warning$1(false, 'Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);
  } else if (invalidProps.length > 1) {
    warning$1(false, 'Invalid aria props %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);
  }
}

function validateProperties(type, props) {
  if (isCustomComponent(type, props)) {
    return;
  }
  warnInvalidARIAProps(type, props);
}

var didWarnValueNull = false;

function validateProperties$1(type, props) {
  if (type !== 'input' && type !== 'textarea' && type !== 'select') {
    return;
  }

  if (props != null && props.value === null && !didWarnValueNull) {
    didWarnValueNull = true;
    if (type === 'select' && props.multiple) {
      warning$1(false, '`value` prop on `%s` should not be null. ' + 'Consider using an empty array when `multiple` is set to `true` ' + 'to clear the component or `undefined` for uncontrolled components.', type);
    } else {
      warning$1(false, '`value` prop on `%s` should not be null. ' + 'Consider using an empty string to clear the component or `undefined` ' + 'for uncontrolled components.', type);
    }
  }
}

var validateProperty$1 = function () {};

{
  var warnedProperties$1 = {};
  var _hasOwnProperty = Object.prototype.hasOwnProperty;
  var EVENT_NAME_REGEX = /^on./;
  var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/;
  var rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
  var rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');

  validateProperty$1 = function (tagName, name, value, canUseEventSystem) {
    if (_hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) {
      return true;
    }

    var lowerCasedName = name.toLowerCase();
    if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') {
      warning$1(false, 'React uses onFocus and onBlur instead of onFocusIn and onFocusOut. ' + 'All React events are normalized to bubble, so onFocusIn and onFocusOut ' + 'are not needed/supported by React.');
      warnedProperties$1[name] = true;
      return true;
    }

    // We can't rely on the event system being injected on the server.
    if (canUseEventSystem) {
      if (registrationNameModules.hasOwnProperty(name)) {
        return true;
      }
      var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null;
      if (registrationName != null) {
        warning$1(false, 'Invalid event handler property `%s`. Did you mean `%s`?', name, registrationName);
        warnedProperties$1[name] = true;
        return true;
      }
      if (EVENT_NAME_REGEX.test(name)) {
        warning$1(false, 'Unknown event handler property `%s`. It will be ignored.', name);
        warnedProperties$1[name] = true;
        return true;
      }
    } else if (EVENT_NAME_REGEX.test(name)) {
      // If no event plugins have been injected, we are in a server environment.
      // So we can't tell if the event name is correct for sure, but we can filter
      // out known bad ones like `onclick`. We can't suggest a specific replacement though.
      if (INVALID_EVENT_NAME_REGEX.test(name)) {
        warning$1(false, 'Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.', name);
      }
      warnedProperties$1[name] = true;
      return true;
    }

    // Let the ARIA attribute hook validate ARIA attributes
    if (rARIA$1.test(name) || rARIACamel$1.test(name)) {
      return true;
    }

    if (lowerCasedName === 'innerhtml') {
      warning$1(false, 'Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');
      warnedProperties$1[name] = true;
      return true;
    }

    if (lowerCasedName === 'aria') {
      warning$1(false, 'The `aria` attribute is reserved for future use in React. ' + 'Pass individual `aria-` attributes instead.');
      warnedProperties$1[name] = true;
      return true;
    }

    if (lowerCasedName === 'is' && value !== null && value !== undefined && typeof value !== 'string') {
      warning$1(false, 'Received a `%s` for a string attribute `is`. If this is expected, cast ' + 'the value to a string.', typeof value);
      warnedProperties$1[name] = true;
      return true;
    }

    if (typeof value === 'number' && isNaN(value)) {
      warning$1(false, 'Received NaN for the `%s` attribute. If this is expected, cast ' + 'the value to a string.', name);
      warnedProperties$1[name] = true;
      return true;
    }

    var propertyInfo = getPropertyInfo(name);
    var isReserved = propertyInfo !== null && propertyInfo.type === RESERVED;

    // Known attributes should match the casing specified in the property config.
    if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {
      var standardName = possibleStandardNames[lowerCasedName];
      if (standardName !== name) {
        warning$1(false, 'Invalid DOM property `%s`. Did you mean `%s`?', name, standardName);
        warnedProperties$1[name] = true;
        return true;
      }
    } else if (!isReserved && name !== lowerCasedName) {
      // Unknown attributes should have lowercase casing since that's how they
      // will be cased anyway with server rendering.
      warning$1(false, 'React does not recognize the `%s` prop on a DOM element. If you ' + 'intentionally want it to appear in the DOM as a custom ' + 'attribute, spell it as lowercase `%s` instead. ' + 'If you accidentally passed it from a parent component, remove ' + 'it from the DOM element.', name, lowerCasedName);
      warnedProperties$1[name] = true;
      return true;
    }

    if (typeof value === 'boolean' && shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
      if (value) {
        warning$1(false, 'Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.', value, name, name, value, name);
      } else {
        warning$1(false, 'Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', value, name, name, value, name, name, name);
      }
      warnedProperties$1[name] = true;
      return true;
    }

    // Now that we've validated casing, do not validate
    // data types for reserved props
    if (isReserved) {
      return true;
    }

    // Warn when a known attribute is a bad type
    if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
      warnedProperties$1[name] = true;
      return false;
    }

    // Warn when passing the strings 'false' or 'true' into a boolean prop
    if ((value === 'false' || value === 'true') && propertyInfo !== null && propertyInfo.type === BOOLEAN) {
      warning$1(false, 'Received the string `%s` for the boolean attribute `%s`. ' + '%s ' + 'Did you mean %s={%s}?', value, name, value === 'false' ? 'The browser will interpret it as a truthy value.' : 'Although this works, it will not work as expected if you pass the string "false".', name, value);
      warnedProperties$1[name] = true;
      return true;
    }

    return true;
  };
}

var warnUnknownProperties = function (type, props, canUseEventSystem) {
  var unknownProps = [];
  for (var key in props) {
    var isValid = validateProperty$1(type, key, props[key], canUseEventSystem);
    if (!isValid) {
      unknownProps.push(key);
    }
  }

  var unknownPropString = unknownProps.map(function (prop) {
    return '`' + prop + '`';
  }).join(', ');
  if (unknownProps.length === 1) {
    warning$1(false, 'Invalid value for prop %s on <%s> tag. Either remove it from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://fb.me/react-attribute-behavior', unknownPropString, type);
  } else if (unknownProps.length > 1) {
    warning$1(false, 'Invalid values for props %s on <%s> tag. Either remove them from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://fb.me/react-attribute-behavior', unknownPropString, type);
  }
};

function validateProperties$2(type, props, canUseEventSystem) {
  if (isCustomComponent(type, props)) {
    return;
  }
  warnUnknownProperties(type, props, canUseEventSystem);
}

// TODO: direct imports like some-package/src/* are bad. Fix me.
var didWarnInvalidHydration = false;
var didWarnShadyDOM = false;

var DANGEROUSLY_SET_INNER_HTML = 'dangerouslySetInnerHTML';
var SUPPRESS_CONTENT_EDITABLE_WARNING = 'suppressContentEditableWarning';
var SUPPRESS_HYDRATION_WARNING$1 = 'suppressHydrationWarning';
var AUTOFOCUS = 'autoFocus';
var CHILDREN = 'children';
var STYLE$1 = 'style';
var HTML = '__html';

var HTML_NAMESPACE = Namespaces.html;


var warnedUnknownTags = void 0;
var suppressHydrationWarning = void 0;

var validatePropertiesInDevelopment = void 0;
var warnForTextDifference = void 0;
var warnForPropDifference = void 0;
var warnForExtraAttributes = void 0;
var warnForInvalidEventListener = void 0;
var canDiffStyleForHydrationWarning = void 0;

var normalizeMarkupForTextOrAttribute = void 0;
var normalizeHTML = void 0;

{
  warnedUnknownTags = {
    // Chrome is the only major browser not shipping <time>. But as of July
    // 2017 it intends to ship it due to widespread usage. We intentionally
    // *don't* warn for <time> even if it's unrecognized by Chrome because
    // it soon will be, and many apps have been using it anyway.
    time: true,
    // There are working polyfills for <dialog>. Let people use it.
    dialog: true,
    // Electron ships a custom <webview> tag to display external web content in
    // an isolated frame and process.
    // This tag is not present in non Electron environments such as JSDom which
    // is often used for testing purposes.
    // @see https://electronjs.org/docs/api/webview-tag
    webview: true
  };

  validatePropertiesInDevelopment = function (type, props) {
    validateProperties(type, props);
    validateProperties$1(type, props);
    validateProperties$2(type, props, /* canUseEventSystem */true);
  };

  // IE 11 parses & normalizes the style attribute as opposed to other
  // browsers. It adds spaces and sorts the properties in some
  // non-alphabetical order. Handling that would require sorting CSS
  // properties in the client & server versions or applying
  // `expectedStyle` to a temporary DOM node to read its `style` attribute
  // normalized. Since it only affects IE, we're skipping style warnings
  // in that browser completely in favor of doing all that work.
  // See https://github.com/facebook/react/issues/11807
  canDiffStyleForHydrationWarning = canUseDOM && !document.documentMode;

  // HTML parsing normalizes CR and CRLF to LF.
  // It also can turn \u0000 into \uFFFD inside attributes.
  // https://www.w3.org/TR/html5/single-page.html#preprocessing-the-input-stream
  // If we have a mismatch, it might be caused by that.
  // We will still patch up in this case but not fire the warning.
  var NORMALIZE_NEWLINES_REGEX = /\r\n?/g;
  var NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\u0000|\uFFFD/g;

  normalizeMarkupForTextOrAttribute = function (markup) {
    var markupString = typeof markup === 'string' ? markup : '' + markup;
    return markupString.replace(NORMALIZE_NEWLINES_REGEX, '\n').replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, '');
  };

  warnForTextDifference = function (serverText, clientText) {
    if (didWarnInvalidHydration) {
      return;
    }
    var normalizedClientText = normalizeMarkupForTextOrAttribute(clientText);
    var normalizedServerText = normalizeMarkupForTextOrAttribute(serverText);
    if (normalizedServerText === normalizedClientText) {
      return;
    }
    didWarnInvalidHydration = true;
    warningWithoutStack$1(false, 'Text content did not match. Server: "%s" Client: "%s"', normalizedServerText, normalizedClientText);
  };

  warnForPropDifference = function (propName, serverValue, clientValue) {
    if (didWarnInvalidHydration) {
      return;
    }
    var normalizedClientValue = normalizeMarkupForTextOrAttribute(clientValue);
    var normalizedServerValue = normalizeMarkupForTextOrAttribute(serverValue);
    if (normalizedServerValue === normalizedClientValue) {
      return;
    }
    didWarnInvalidHydration = true;
    warningWithoutStack$1(false, 'Prop `%s` did not match. Server: %s Client: %s', propName, JSON.stringify(normalizedServerValue), JSON.stringify(normalizedClientValue));
  };

  warnForExtraAttributes = function (attributeNames) {
    if (didWarnInvalidHydration) {
      return;
    }
    didWarnInvalidHydration = true;
    var names = [];
    attributeNames.forEach(function (name) {
      names.push(name);
    });
    warningWithoutStack$1(false, 'Extra attributes from the server: %s', names);
  };

  warnForInvalidEventListener = function (registrationName, listener) {
    if (listener === false) {
      warning$1(false, 'Expected `%s` listener to be a function, instead got `false`.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', registrationName, registrationName, registrationName);
    } else {
      warning$1(false, 'Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener);
    }
  };

  // Parse the HTML and read it back to normalize the HTML string so that it
  // can be used for comparison.
  normalizeHTML = function (parent, html) {
    // We could have created a separate document here to avoid
    // re-initializing custom elements if they exist. But this breaks
    // how <noscript> is being handled. So we use the same document.
    // See the discussion in https://github.com/facebook/react/pull/11157.
    var testElement = parent.namespaceURI === HTML_NAMESPACE ? parent.ownerDocument.createElement(parent.tagName) : parent.ownerDocument.createElementNS(parent.namespaceURI, parent.tagName);
    testElement.innerHTML = html;
    return testElement.innerHTML;
  };
}

function ensureListeningTo(rootContainerElement, registrationName) {
  var isDocumentOrFragment = rootContainerElement.nodeType === DOCUMENT_NODE || rootContainerElement.nodeType === DOCUMENT_FRAGMENT_NODE;
  var doc = isDocumentOrFragment ? rootContainerElement : rootContainerElement.ownerDocument;
  listenTo(registrationName, doc);
}

function getOwnerDocumentFromRootContainer(rootContainerElement) {
  return rootContainerElement.nodeType === DOCUMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument;
}

function noop() {}

function trapClickOnNonInteractiveElement(node) {
  // Mobile Safari does not fire properly bubble click events on
  // non-interactive elements, which means delegated click listeners do not
  // fire. The workaround for this bug involves attaching an empty click
  // listener on the target node.
  // http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
  // Just set it using the onclick property so that we don't have to manage any
  // bookkeeping for it. Not sure if we need to clear it when the listener is
  // removed.
  // TODO: Only do this for the relevant Safaris maybe?
  node.onclick = noop;
}

function setInitialDOMProperties(tag, domElement, rootContainerElement, nextProps, isCustomComponentTag) {
  for (var propKey in nextProps) {
    if (!nextProps.hasOwnProperty(propKey)) {
      continue;
    }
    var nextProp = nextProps[propKey];
    if (propKey === STYLE$1) {
      {
        if (nextProp) {
          // Freeze the next style object so that we can assume it won't be
          // mutated. We have already warned for this in the past.
          Object.freeze(nextProp);
        }
      }
      // Relies on `updateStylesByID` not mutating `styleUpdates`.
      setValueForStyles(domElement, nextProp);
    } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
      var nextHtml = nextProp ? nextProp[HTML] : undefined;
      if (nextHtml != null) {
        setInnerHTML(domElement, nextHtml);
      }
    } else if (propKey === CHILDREN) {
      if (typeof nextProp === 'string') {
        // Avoid setting initial textContent when the text is empty. In IE11 setting
        // textContent on a <textarea> will cause the placeholder to not
        // show within the <textarea> until it has been focused and blurred again.
        // https://github.com/facebook/react/issues/6731#issuecomment-254874553
        var canSetTextContent = tag !== 'textarea' || nextProp !== '';
        if (canSetTextContent) {
          setTextContent(domElement, nextProp);
        }
      } else if (typeof nextProp === 'number') {
        setTextContent(domElement, '' + nextProp);
      }
    } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {
      // Noop
    } else if (propKey === AUTOFOCUS) {
      // We polyfill it separately on the client during commit.
      // We could have excluded it in the property list instead of
      // adding a special case here, but then it wouldn't be emitted
      // on server rendering (but we *do* want to emit it in SSR).
    } else if (registrationNameModules.hasOwnProperty(propKey)) {
      if (nextProp != null) {
        if (true && typeof nextProp !== 'function') {
          warnForInvalidEventListener(propKey, nextProp);
        }
        ensureListeningTo(rootContainerElement, propKey);
      }
    } else if (nextProp != null) {
      setValueForProperty(domElement, propKey, nextProp, isCustomComponentTag);
    }
  }
}

function updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag) {
  // TODO: Handle wasCustomComponentTag
  for (var i = 0; i < updatePayload.length; i += 2) {
    var propKey = updatePayload[i];
    var propValue = updatePayload[i + 1];
    if (propKey === STYLE$1) {
      setValueForStyles(domElement, propValue);
    } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
      setInnerHTML(domElement, propValue);
    } else if (propKey === CHILDREN) {
      setTextContent(domElement, propValue);
    } else {
      setValueForProperty(domElement, propKey, propValue, isCustomComponentTag);
    }
  }
}

function createElement(type, props, rootContainerElement, parentNamespace) {
  var isCustomComponentTag = void 0;

  // We create tags in the namespace of their parent container, except HTML
  // tags get no namespace.
  var ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement);
  var domElement = void 0;
  var namespaceURI = parentNamespace;
  if (namespaceURI === HTML_NAMESPACE) {
    namespaceURI = getIntrinsicNamespace(type);
  }
  if (namespaceURI === HTML_NAMESPACE) {
    {
      isCustomComponentTag = isCustomComponent(type, props);
      // Should this check be gated by parent namespace? Not sure we want to
      // allow <SVG> or <mATH>.
      !(isCustomComponentTag || type === type.toLowerCase()) ? warning$1(false, '<%s /> is using incorrect casing. ' + 'Use PascalCase for React components, ' + 'or lowercase for HTML elements.', type) : void 0;
    }

    if (type === 'script') {
      // Create the script via .innerHTML so its "parser-inserted" flag is
      // set to true and it does not execute
      var div = ownerDocument.createElement('div');
      div.innerHTML = '<script><' + '/script>'; // eslint-disable-line
      // This is guaranteed to yield a script element.
      var firstChild = div.firstChild;
      domElement = div.removeChild(firstChild);
    } else if (typeof props.is === 'string') {
      // $FlowIssue `createElement` should be updated for Web Components
      domElement = ownerDocument.createElement(type, { is: props.is });
    } else {
      // Separate else branch instead of using `props.is || undefined` above because of a Firefox bug.
      // See discussion in https://github.com/facebook/react/pull/6896
      // and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240
      domElement = ownerDocument.createElement(type);
      // Normally attributes are assigned in `setInitialDOMProperties`, however the `multiple`
      // attribute on `select`s needs to be added before `option`s are inserted. This prevents
      // a bug where the `select` does not scroll to the correct option because singular
      // `select` elements automatically pick the first item.
      // See https://github.com/facebook/react/issues/13222
      if (type === 'select' && props.multiple) {
        var node = domElement;
        node.multiple = true;
      }
    }
  } else {
    domElement = ownerDocument.createElementNS(namespaceURI, type);
  }

  {
    if (namespaceURI === HTML_NAMESPACE) {
      if (!isCustomComponentTag && Object.prototype.toString.call(domElement) === '[object HTMLUnknownElement]' && !Object.prototype.hasOwnProperty.call(warnedUnknownTags, type)) {
        warnedUnknownTags[type] = true;
        warning$1(false, 'The tag <%s> is unrecognized in this browser. ' + 'If you meant to render a React component, start its name with ' + 'an uppercase letter.', type);
      }
    }
  }

  return domElement;
}

function createTextNode(text, rootContainerElement) {
  return getOwnerDocumentFromRootContainer(rootContainerElement).createTextNode(text);
}

function setInitialProperties(domElement, tag, rawProps, rootContainerElement) {
  var isCustomComponentTag = isCustomComponent(tag, rawProps);
  {
    validatePropertiesInDevelopment(tag, rawProps);
    if (isCustomComponentTag && !didWarnShadyDOM && domElement.shadyRoot) {
      warning$1(false, '%s is using shady DOM. Using shady DOM with React can ' + 'cause things to break subtly.', getCurrentFiberOwnerNameInDevOrNull() || 'A component');
      didWarnShadyDOM = true;
    }
  }

  // TODO: Make sure that we check isMounted before firing any of these events.
  var props = void 0;
  switch (tag) {
    case 'iframe':
    case 'object':
      trapBubbledEvent(TOP_LOAD, domElement);
      props = rawProps;
      break;
    case 'video':
    case 'audio':
      // Create listener for each media event
      for (var i = 0; i < mediaEventTypes.length; i++) {
        trapBubbledEvent(mediaEventTypes[i], domElement);
      }
      props = rawProps;
      break;
    case 'source':
      trapBubbledEvent(TOP_ERROR, domElement);
      props = rawProps;
      break;
    case 'img':
    case 'image':
    case 'link':
      trapBubbledEvent(TOP_ERROR, domElement);
      trapBubbledEvent(TOP_LOAD, domElement);
      props = rawProps;
      break;
    case 'form':
      trapBubbledEvent(TOP_RESET, domElement);
      trapBubbledEvent(TOP_SUBMIT, domElement);
      props = rawProps;
      break;
    case 'details':
      trapBubbledEvent(TOP_TOGGLE, domElement);
      props = rawProps;
      break;
    case 'input':
      initWrapperState(domElement, rawProps);
      props = getHostProps(domElement, rawProps);
      trapBubbledEvent(TOP_INVALID, domElement);
      // For controlled components we always need to ensure we're listening
      // to onChange. Even if there is no listener.
      ensureListeningTo(rootContainerElement, 'onChange');
      break;
    case 'option':
      validateProps(domElement, rawProps);
      props = getHostProps$1(domElement, rawProps);
      break;
    case 'select':
      initWrapperState$1(domElement, rawProps);
      props = getHostProps$2(domElement, rawProps);
      trapBubbledEvent(TOP_INVALID, domElement);
      // For controlled components we always need to ensure we're listening
      // to onChange. Even if there is no listener.
      ensureListeningTo(rootContainerElement, 'onChange');
      break;
    case 'textarea':
      initWrapperState$2(domElement, rawProps);
      props = getHostProps$3(domElement, rawProps);
      trapBubbledEvent(TOP_INVALID, domElement);
      // For controlled components we always need to ensure we're listening
      // to onChange. Even if there is no listener.
      ensureListeningTo(rootContainerElement, 'onChange');
      break;
    default:
      props = rawProps;
  }

  assertValidProps(tag, props);

  setInitialDOMProperties(tag, domElement, rootContainerElement, props, isCustomComponentTag);

  switch (tag) {
    case 'input':
      // TODO: Make sure we check if this is still unmounted or do any clean
      // up necessary since we never stop tracking anymore.
      track(domElement);
      postMountWrapper(domElement, rawProps, false);
      break;
    case 'textarea':
      // TODO: Make sure we check if this is still unmounted or do any clean
      // up necessary since we never stop tracking anymore.
      track(domElement);
      postMountWrapper$3(domElement, rawProps);
      break;
    case 'option':
      postMountWrapper$1(domElement, rawProps);
      break;
    case 'select':
      postMountWrapper$2(domElement, rawProps);
      break;
    default:
      if (typeof props.onClick === 'function') {
        // TODO: This cast may not be sound for SVG, MathML or custom elements.
        trapClickOnNonInteractiveElement(domElement);
      }
      break;
  }
}

// Calculate the diff between the two objects.
function diffProperties(domElement, tag, lastRawProps, nextRawProps, rootContainerElement) {
  {
    validatePropertiesInDevelopment(tag, nextRawProps);
  }

  var updatePayload = null;

  var lastProps = void 0;
  var nextProps = void 0;
  switch (tag) {
    case 'input':
      lastProps = getHostProps(domElement, lastRawProps);
      nextProps = getHostProps(domElement, nextRawProps);
      updatePayload = [];
      break;
    case 'option':
      lastProps = getHostProps$1(domElement, lastRawProps);
      nextProps = getHostProps$1(domElement, nextRawProps);
      updatePayload = [];
      break;
    case 'select':
      lastProps = getHostProps$2(domElement, lastRawProps);
      nextProps = getHostProps$2(domElement, nextRawProps);
      updatePayload = [];
      break;
    case 'textarea':
      lastProps = getHostProps$3(domElement, lastRawProps);
      nextProps = getHostProps$3(domElement, nextRawProps);
      updatePayload = [];
      break;
    default:
      lastProps = lastRawProps;
      nextProps = nextRawProps;
      if (typeof lastProps.onClick !== 'function' && typeof nextProps.onClick === 'function') {
        // TODO: This cast may not be sound for SVG, MathML or custom elements.
        trapClickOnNonInteractiveElement(domElement);
      }
      break;
  }

  assertValidProps(tag, nextProps);

  var propKey = void 0;
  var styleName = void 0;
  var styleUpdates = null;
  for (propKey in lastProps) {
    if (nextProps.hasOwnProperty(propKey) || !lastProps.hasOwnProperty(propKey) || lastProps[propKey] == null) {
      continue;
    }
    if (propKey === STYLE$1) {
      var lastStyle = lastProps[propKey];
      for (styleName in lastStyle) {
        if (lastStyle.hasOwnProperty(styleName)) {
          if (!styleUpdates) {
            styleUpdates = {};
          }
          styleUpdates[styleName] = '';
        }
      }
    } else if (propKey === DANGEROUSLY_SET_INNER_HTML || propKey === CHILDREN) {
      // Noop. This is handled by the clear text mechanism.
    } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {
      // Noop
    } else if (propKey === AUTOFOCUS) {
      // Noop. It doesn't work on updates anyway.
    } else if (registrationNameModules.hasOwnProperty(propKey)) {
      // This is a special case. If any listener updates we need to ensure
      // that the "current" fiber pointer gets updated so we need a commit
      // to update this element.
      if (!updatePayload) {
        updatePayload = [];
      }
    } else {
      // For all other deleted properties we add it to the queue. We use
      // the whitelist in the commit phase instead.
      (updatePayload = updatePayload || []).push(propKey, null);
    }
  }
  for (propKey in nextProps) {
    var nextProp = nextProps[propKey];
    var lastProp = lastProps != null ? lastProps[propKey] : undefined;
    if (!nextProps.hasOwnProperty(propKey) || nextProp === lastProp || nextProp == null && lastProp == null) {
      continue;
    }
    if (propKey === STYLE$1) {
      {
        if (nextProp) {
          // Freeze the next style object so that we can assume it won't be
          // mutated. We have already warned for this in the past.
          Object.freeze(nextProp);
        }
      }
      if (lastProp) {
        // Unset styles on `lastProp` but not on `nextProp`.
        for (styleName in lastProp) {
          if (lastProp.hasOwnProperty(styleName) && (!nextProp || !nextProp.hasOwnProperty(styleName))) {
            if (!styleUpdates) {
              styleUpdates = {};
            }
            styleUpdates[styleName] = '';
          }
        }
        // Update styles that changed since `lastProp`.
        for (styleName in nextProp) {
          if (nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName]) {
            if (!styleUpdates) {
              styleUpdates = {};
            }
            styleUpdates[styleName] = nextProp[styleName];
          }
        }
      } else {
        // Relies on `updateStylesByID` not mutating `styleUpdates`.
        if (!styleUpdates) {
          if (!updatePayload) {
            updatePayload = [];
          }
          updatePayload.push(propKey, styleUpdates);
        }
        styleUpdates = nextProp;
      }
    } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
      var nextHtml = nextProp ? nextProp[HTML] : undefined;
      var lastHtml = lastProp ? lastProp[HTML] : undefined;
      if (nextHtml != null) {
        if (lastHtml !== nextHtml) {
          (updatePayload = updatePayload || []).push(propKey, '' + nextHtml);
        }
      } else {
        // TODO: It might be too late to clear this if we have children
        // inserted already.
      }
    } else if (propKey === CHILDREN) {
      if (lastProp !== nextProp && (typeof nextProp === 'string' || typeof nextProp === 'number')) {
        (updatePayload = updatePayload || []).push(propKey, '' + nextProp);
      }
    } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {
      // Noop
    } else if (registrationNameModules.hasOwnProperty(propKey)) {
      if (nextProp != null) {
        // We eagerly listen to this even though we haven't committed yet.
        if (true && typeof nextProp !== 'function') {
          warnForInvalidEventListener(propKey, nextProp);
        }
        ensureListeningTo(rootContainerElement, propKey);
      }
      if (!updatePayload && lastProp !== nextProp) {
        // This is a special case. If any listener updates we need to ensure
        // that the "current" props pointer gets updated so we need a commit
        // to update this element.
        updatePayload = [];
      }
    } else {
      // For any other property we always add it to the queue and then we
      // filter it out using the whitelist during the commit.
      (updatePayload = updatePayload || []).push(propKey, nextProp);
    }
  }
  if (styleUpdates) {
    (updatePayload = updatePayload || []).push(STYLE$1, styleUpdates);
  }
  return updatePayload;
}

// Apply the diff.
function updateProperties(domElement, updatePayload, tag, lastRawProps, nextRawProps) {
  // Update checked *before* name.
  // In the middle of an update, it is possible to have multiple checked.
  // When a checked radio tries to change name, browser makes another radio's checked false.
  if (tag === 'input' && nextRawProps.type === 'radio' && nextRawProps.name != null) {
    updateChecked(domElement, nextRawProps);
  }

  var wasCustomComponentTag = isCustomComponent(tag, lastRawProps);
  var isCustomComponentTag = isCustomComponent(tag, nextRawProps);
  // Apply the diff.
  updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag);

  // TODO: Ensure that an update gets scheduled if any of the special props
  // changed.
  switch (tag) {
    case 'input':
      // Update the wrapper around inputs *after* updating props. This has to
      // happen after `updateDOMProperties`. Otherwise HTML5 input validations
      // raise warnings and prevent the new value from being assigned.
      updateWrapper(domElement, nextRawProps);
      break;
    case 'textarea':
      updateWrapper$1(domElement, nextRawProps);
      break;
    case 'select':
      // <select> value update needs to occur after <option> children
      // reconciliation
      postUpdateWrapper(domElement, nextRawProps);
      break;
  }
}

function getPossibleStandardName(propName) {
  {
    var lowerCasedName = propName.toLowerCase();
    if (!possibleStandardNames.hasOwnProperty(lowerCasedName)) {
      return null;
    }
    return possibleStandardNames[lowerCasedName] || null;
  }
  return null;
}

function diffHydratedProperties(domElement, tag, rawProps, parentNamespace, rootContainerElement) {
  var isCustomComponentTag = void 0;
  var extraAttributeNames = void 0;

  {
    suppressHydrationWarning = rawProps[SUPPRESS_HYDRATION_WARNING$1] === true;
    isCustomComponentTag = isCustomComponent(tag, rawProps);
    validatePropertiesInDevelopment(tag, rawProps);
    if (isCustomComponentTag && !didWarnShadyDOM && domElement.shadyRoot) {
      warning$1(false, '%s is using shady DOM. Using shady DOM with React can ' + 'cause things to break subtly.', getCurrentFiberOwnerNameInDevOrNull() || 'A component');
      didWarnShadyDOM = true;
    }
  }

  // TODO: Make sure that we check isMounted before firing any of these events.
  switch (tag) {
    case 'iframe':
    case 'object':
      trapBubbledEvent(TOP_LOAD, domElement);
      break;
    case 'video':
    case 'audio':
      // Create listener for each media event
      for (var i = 0; i < mediaEventTypes.length; i++) {
        trapBubbledEvent(mediaEventTypes[i], domElement);
      }
      break;
    case 'source':
      trapBubbledEvent(TOP_ERROR, domElement);
      break;
    case 'img':
    case 'image':
    case 'link':
      trapBubbledEvent(TOP_ERROR, domElement);
      trapBubbledEvent(TOP_LOAD, domElement);
      break;
    case 'form':
      trapBubbledEvent(TOP_RESET, domElement);
      trapBubbledEvent(TOP_SUBMIT, domElement);
      break;
    case 'details':
      trapBubbledEvent(TOP_TOGGLE, domElement);
      break;
    case 'input':
      initWrapperState(domElement, rawProps);
      trapBubbledEvent(TOP_INVALID, domElement);
      // For controlled components we always need to ensure we're listening
      // to onChange. Even if there is no listener.
      ensureListeningTo(rootContainerElement, 'onChange');
      break;
    case 'option':
      validateProps(domElement, rawProps);
      break;
    case 'select':
      initWrapperState$1(domElement, rawProps);
      trapBubbledEvent(TOP_INVALID, domElement);
      // For controlled components we always need to ensure we're listening
      // to onChange. Even if there is no listener.
      ensureListeningTo(rootContainerElement, 'onChange');
      break;
    case 'textarea':
      initWrapperState$2(domElement, rawProps);
      trapBubbledEvent(TOP_INVALID, domElement);
      // For controlled components we always need to ensure we're listening
      // to onChange. Even if there is no listener.
      ensureListeningTo(rootContainerElement, 'onChange');
      break;
  }

  assertValidProps(tag, rawProps);

  {
    extraAttributeNames = new Set();
    var attributes = domElement.attributes;
    for (var _i = 0; _i < attributes.length; _i++) {
      var name = attributes[_i].name.toLowerCase();
      switch (name) {
        // Built-in SSR attribute is whitelisted
        case 'data-reactroot':
          break;
        // Controlled attributes are not validated
        // TODO: Only ignore them on controlled tags.
        case 'value':
          break;
        case 'checked':
          break;
        case 'selected':
          break;
        default:
          // Intentionally use the original name.
          // See discussion in https://github.com/facebook/react/pull/10676.
          extraAttributeNames.add(attributes[_i].name);
      }
    }
  }

  var updatePayload = null;
  for (var propKey in rawProps) {
    if (!rawProps.hasOwnProperty(propKey)) {
      continue;
    }
    var nextProp = rawProps[propKey];
    if (propKey === CHILDREN) {
      // For text content children we compare against textContent. This
      // might match additional HTML that is hidden when we read it using
      // textContent. E.g. "foo" will match "f<span>oo</span>" but that still
      // satisfies our requirement. Our requirement is not to produce perfect
      // HTML and attributes. Ideally we should preserve structure but it's
      // ok not to if the visible content is still enough to indicate what
      // even listeners these nodes might be wired up to.
      // TODO: Warn if there is more than a single textNode as a child.
      // TODO: Should we use domElement.firstChild.nodeValue to compare?
      if (typeof nextProp === 'string') {
        if (domElement.textContent !== nextProp) {
          if (true && !suppressHydrationWarning) {
            warnForTextDifference(domElement.textContent, nextProp);
          }
          updatePayload = [CHILDREN, nextProp];
        }
      } else if (typeof nextProp === 'number') {
        if (domElement.textContent !== '' + nextProp) {
          if (true && !suppressHydrationWarning) {
            warnForTextDifference(domElement.textContent, nextProp);
          }
          updatePayload = [CHILDREN, '' + nextProp];
        }
      }
    } else if (registrationNameModules.hasOwnProperty(propKey)) {
      if (nextProp != null) {
        if (true && typeof nextProp !== 'function') {
          warnForInvalidEventListener(propKey, nextProp);
        }
        ensureListeningTo(rootContainerElement, propKey);
      }
    } else if (true &&
    // Convince Flow we've calculated it (it's DEV-only in this method.)
    typeof isCustomComponentTag === 'boolean') {
      // Validate that the properties correspond to their expected values.
      var serverValue = void 0;
      var propertyInfo = getPropertyInfo(propKey);
      if (suppressHydrationWarning) {
        // Don't bother comparing. We're ignoring all these warnings.
      } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1 ||
      // Controlled attributes are not validated
      // TODO: Only ignore them on controlled tags.
      propKey === 'value' || propKey === 'checked' || propKey === 'selected') {
        // Noop
      } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
        var serverHTML = domElement.innerHTML;
        var nextHtml = nextProp ? nextProp[HTML] : undefined;
        var expectedHTML = normalizeHTML(domElement, nextHtml != null ? nextHtml : '');
        if (expectedHTML !== serverHTML) {
          warnForPropDifference(propKey, serverHTML, expectedHTML);
        }
      } else if (propKey === STYLE$1) {
        // $FlowFixMe - Should be inferred as not undefined.
        extraAttributeNames.delete(propKey);

        if (canDiffStyleForHydrationWarning) {
          var expectedStyle = createDangerousStringForStyles(nextProp);
          serverValue = domElement.getAttribute('style');
          if (expectedStyle !== serverValue) {
            warnForPropDifference(propKey, serverValue, expectedStyle);
          }
        }
      } else if (isCustomComponentTag) {
        // $FlowFixMe - Should be inferred as not undefined.
        extraAttributeNames.delete(propKey.toLowerCase());
        serverValue = getValueForAttribute(domElement, propKey, nextProp);

        if (nextProp !== serverValue) {
          warnForPropDifference(propKey, serverValue, nextProp);
        }
      } else if (!shouldIgnoreAttribute(propKey, propertyInfo, isCustomComponentTag) && !shouldRemoveAttribute(propKey, nextProp, propertyInfo, isCustomComponentTag)) {
        var isMismatchDueToBadCasing = false;
        if (propertyInfo !== null) {
          // $FlowFixMe - Should be inferred as not undefined.
          extraAttributeNames.delete(propertyInfo.attributeName);
          serverValue = getValueForProperty(domElement, propKey, nextProp, propertyInfo);
        } else {
          var ownNamespace = parentNamespace;
          if (ownNamespace === HTML_NAMESPACE) {
            ownNamespace = getIntrinsicNamespace(tag);
          }
          if (ownNamespace === HTML_NAMESPACE) {
            // $FlowFixMe - Should be inferred as not undefined.
            extraAttributeNames.delete(propKey.toLowerCase());
          } else {
            var standardName = getPossibleStandardName(propKey);
            if (standardName !== null && standardName !== propKey) {
              // If an SVG prop is supplied with bad casing, it will
              // be successfully parsed from HTML, but will produce a mismatch
              // (and would be incorrectly rendered on the client).
              // However, we already warn about bad casing elsewhere.
              // So we'll skip the misleading extra mismatch warning in this case.
              isMismatchDueToBadCasing = true;
              // $FlowFixMe - Should be inferred as not undefined.
              extraAttributeNames.delete(standardName);
            }
            // $FlowFixMe - Should be inferred as not undefined.
            extraAttributeNames.delete(propKey);
          }
          serverValue = getValueForAttribute(domElement, propKey, nextProp);
        }

        if (nextProp !== serverValue && !isMismatchDueToBadCasing) {
          warnForPropDifference(propKey, serverValue, nextProp);
        }
      }
    }
  }

  {
    // $FlowFixMe - Should be inferred as not undefined.
    if (extraAttributeNames.size > 0 && !suppressHydrationWarning) {
      // $FlowFixMe - Should be inferred as not undefined.
      warnForExtraAttributes(extraAttributeNames);
    }
  }

  switch (tag) {
    case 'input':
      // TODO: Make sure we check if this is still unmounted or do any clean
      // up necessary since we never stop tracking anymore.
      track(domElement);
      postMountWrapper(domElement, rawProps, true);
      break;
    case 'textarea':
      // TODO: Make sure we check if this is still unmounted or do any clean
      // up necessary since we never stop tracking anymore.
      track(domElement);
      postMountWrapper$3(domElement, rawProps);
      break;
    case 'select':
    case 'option':
      // For input and textarea we current always set the value property at
      // post mount to force it to diverge from attributes. However, for
      // option and select we don't quite do the same thing and select
      // is not resilient to the DOM state changing so we don't do that here.
      // TODO: Consider not doing this for input and textarea.
      break;
    default:
      if (typeof rawProps.onClick === 'function') {
        // TODO: This cast may not be sound for SVG, MathML or custom elements.
        trapClickOnNonInteractiveElement(domElement);
      }
      break;
  }

  return updatePayload;
}

function diffHydratedText(textNode, text) {
  var isDifferent = textNode.nodeValue !== text;
  return isDifferent;
}

function warnForUnmatchedText(textNode, text) {
  {
    warnForTextDifference(textNode.nodeValue, text);
  }
}

function warnForDeletedHydratableElement(parentNode, child) {
  {
    if (didWarnInvalidHydration) {
      return;
    }
    didWarnInvalidHydration = true;
    warningWithoutStack$1(false, 'Did not expect server HTML to contain a <%s> in <%s>.', child.nodeName.toLowerCase(), parentNode.nodeName.toLowerCase());
  }
}

function warnForDeletedHydratableText(parentNode, child) {
  {
    if (didWarnInvalidHydration) {
      return;
    }
    didWarnInvalidHydration = true;
    warningWithoutStack$1(false, 'Did not expect server HTML to contain the text node "%s" in <%s>.', child.nodeValue, parentNode.nodeName.toLowerCase());
  }
}

function warnForInsertedHydratedElement(parentNode, tag, props) {
  {
    if (didWarnInvalidHydration) {
      return;
    }
    didWarnInvalidHydration = true;
    warningWithoutStack$1(false, 'Expected server HTML to contain a matching <%s> in <%s>.', tag, parentNode.nodeName.toLowerCase());
  }
}

function warnForInsertedHydratedText(parentNode, text) {
  {
    if (text === '') {
      // We expect to insert empty text nodes since they're not represented in
      // the HTML.
      // TODO: Remove this special case if we can just avoid inserting empty
      // text nodes.
      return;
    }
    if (didWarnInvalidHydration) {
      return;
    }
    didWarnInvalidHydration = true;
    warningWithoutStack$1(false, 'Expected server HTML to contain a matching text node for "%s" in <%s>.', text, parentNode.nodeName.toLowerCase());
  }
}

function restoreControlledState$1(domElement, tag, props) {
  switch (tag) {
    case 'input':
      restoreControlledState(domElement, props);
      return;
    case 'textarea':
      restoreControlledState$3(domElement, props);
      return;
    case 'select':
      restoreControlledState$2(domElement, props);
      return;
  }
}

// TODO: direct imports like some-package/src/* are bad. Fix me.
var validateDOMNesting = function () {};
var updatedAncestorInfo = function () {};

{
  // This validation code was written based on the HTML5 parsing spec:
  // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
  //
  // Note: this does not catch all invalid nesting, nor does it try to (as it's
  // not clear what practical benefit doing so provides); instead, we warn only
  // for cases where the parser will give a parse tree differing from what React
  // intended. For example, <b><div></div></b> is invalid but we don't warn
  // because it still parses correctly; we do warn for other cases like nested
  // <p> tags where the beginning of the second element implicitly closes the
  // first, causing a confusing mess.

  // https://html.spec.whatwg.org/multipage/syntax.html#special
  var specialTags = ['address', 'applet', 'area', 'article', 'aside', 'base', 'basefont', 'bgsound', 'blockquote', 'body', 'br', 'button', 'caption', 'center', 'col', 'colgroup', 'dd', 'details', 'dir', 'div', 'dl', 'dt', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'frame', 'frameset', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'iframe', 'img', 'input', 'isindex', 'li', 'link', 'listing', 'main', 'marquee', 'menu', 'menuitem', 'meta', 'nav', 'noembed', 'noframes', 'noscript', 'object', 'ol', 'p', 'param', 'plaintext', 'pre', 'script', 'section', 'select', 'source', 'style', 'summary', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'title', 'tr', 'track', 'ul', 'wbr', 'xmp'];

  // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
  var inScopeTags = ['applet', 'caption', 'html', 'table', 'td', 'th', 'marquee', 'object', 'template',

  // https://html.spec.whatwg.org/multipage/syntax.html#html-integration-point
  // TODO: Distinguish by namespace here -- for <title>, including it here
  // errs on the side of fewer warnings
  'foreignObject', 'desc', 'title'];

  // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope
  var buttonScopeTags = inScopeTags.concat(['button']);

  // https://html.spec.whatwg.org/multipage/syntax.html#generate-implied-end-tags
  var impliedEndTags = ['dd', 'dt', 'li', 'option', 'optgroup', 'p', 'rp', 'rt'];

  var emptyAncestorInfo = {
    current: null,

    formTag: null,
    aTagInScope: null,
    buttonTagInScope: null,
    nobrTagInScope: null,
    pTagInButtonScope: null,

    listItemTagAutoclosing: null,
    dlItemTagAutoclosing: null
  };

  updatedAncestorInfo = function (oldInfo, tag) {
    var ancestorInfo = _assign({}, oldInfo || emptyAncestorInfo);
    var info = { tag: tag };

    if (inScopeTags.indexOf(tag) !== -1) {
      ancestorInfo.aTagInScope = null;
      ancestorInfo.buttonTagInScope = null;
      ancestorInfo.nobrTagInScope = null;
    }
    if (buttonScopeTags.indexOf(tag) !== -1) {
      ancestorInfo.pTagInButtonScope = null;
    }

    // See rules for 'li', 'dd', 'dt' start tags in
    // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
    if (specialTags.indexOf(tag) !== -1 && tag !== 'address' && tag !== 'div' && tag !== 'p') {
      ancestorInfo.listItemTagAutoclosing = null;
      ancestorInfo.dlItemTagAutoclosing = null;
    }

    ancestorInfo.current = info;

    if (tag === 'form') {
      ancestorInfo.formTag = info;
    }
    if (tag === 'a') {
      ancestorInfo.aTagInScope = info;
    }
    if (tag === 'button') {
      ancestorInfo.buttonTagInScope = info;
    }
    if (tag === 'nobr') {
      ancestorInfo.nobrTagInScope = info;
    }
    if (tag === 'p') {
      ancestorInfo.pTagInButtonScope = info;
    }
    if (tag === 'li') {
      ancestorInfo.listItemTagAutoclosing = info;
    }
    if (tag === 'dd' || tag === 'dt') {
      ancestorInfo.dlItemTagAutoclosing = info;
    }

    return ancestorInfo;
  };

  /**
   * Returns whether
   */
  var isTagValidWithParent = function (tag, parentTag) {
    // First, let's check if we're in an unusual parsing mode...
    switch (parentTag) {
      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect
      case 'select':
        return tag === 'option' || tag === 'optgroup' || tag === '#text';
      case 'optgroup':
        return tag === 'option' || tag === '#text';
      // Strictly speaking, seeing an <option> doesn't mean we're in a <select>
      // but
      case 'option':
        return tag === '#text';
      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd
      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption
      // No special behavior since these rules fall back to "in body" mode for
      // all except special table nodes which cause bad parsing behavior anyway.

      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intr
      case 'tr':
        return tag === 'th' || tag === 'td' || tag === 'style' || tag === 'script' || tag === 'template';
      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody
      case 'tbody':
      case 'thead':
      case 'tfoot':
        return tag === 'tr' || tag === 'style' || tag === 'script' || tag === 'template';
      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incolgroup
      case 'colgroup':
        return tag === 'col' || tag === 'template';
      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intable
      case 'table':
        return tag === 'caption' || tag === 'colgroup' || tag === 'tbody' || tag === 'tfoot' || tag === 'thead' || tag === 'style' || tag === 'script' || tag === 'template';
      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inhead
      case 'head':
        return tag === 'base' || tag === 'basefont' || tag === 'bgsound' || tag === 'link' || tag === 'meta' || tag === 'title' || tag === 'noscript' || tag === 'noframes' || tag === 'style' || tag === 'script' || tag === 'template';
      // https://html.spec.whatwg.org/multipage/semantics.html#the-html-element
      case 'html':
        return tag === 'head' || tag === 'body';
      case '#document':
        return tag === 'html';
    }

    // Probably in the "in body" parsing mode, so we outlaw only tag combos
    // where the parsing rules cause implicit opens or closes to be added.
    // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
    switch (tag) {
      case 'h1':
      case 'h2':
      case 'h3':
      case 'h4':
      case 'h5':
      case 'h6':
        return parentTag !== 'h1' && parentTag !== 'h2' && parentTag !== 'h3' && parentTag !== 'h4' && parentTag !== 'h5' && parentTag !== 'h6';

      case 'rp':
      case 'rt':
        return impliedEndTags.indexOf(parentTag) === -1;

      case 'body':
      case 'caption':
      case 'col':
      case 'colgroup':
      case 'frame':
      case 'head':
      case 'html':
      case 'tbody':
      case 'td':
      case 'tfoot':
      case 'th':
      case 'thead':
      case 'tr':
        // These tags are only valid with a few parents that have special child
        // parsing rules -- if we're down here, then none of those matched and
        // so we allow it only if we don't know what the parent is, as all other
        // cases are invalid.
        return parentTag == null;
    }

    return true;
  };

  /**
   * Returns whether
   */
  var findInvalidAncestorForTag = function (tag, ancestorInfo) {
    switch (tag) {
      case 'address':
      case 'article':
      case 'aside':
      case 'blockquote':
      case 'center':
      case 'details':
      case 'dialog':
      case 'dir':
      case 'div':
      case 'dl':
      case 'fieldset':
      case 'figcaption':
      case 'figure':
      case 'footer':
      case 'header':
      case 'hgroup':
      case 'main':
      case 'menu':
      case 'nav':
      case 'ol':
      case 'p':
      case 'section':
      case 'summary':
      case 'ul':
      case 'pre':
      case 'listing':
      case 'table':
      case 'hr':
      case 'xmp':
      case 'h1':
      case 'h2':
      case 'h3':
      case 'h4':
      case 'h5':
      case 'h6':
        return ancestorInfo.pTagInButtonScope;

      case 'form':
        return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope;

      case 'li':
        return ancestorInfo.listItemTagAutoclosing;

      case 'dd':
      case 'dt':
        return ancestorInfo.dlItemTagAutoclosing;

      case 'button':
        return ancestorInfo.buttonTagInScope;

      case 'a':
        // Spec says something about storing a list of markers, but it sounds
        // equivalent to this check.
        return ancestorInfo.aTagInScope;

      case 'nobr':
        return ancestorInfo.nobrTagInScope;
    }

    return null;
  };

  var didWarn = {};

  validateDOMNesting = function (childTag, childText, ancestorInfo) {
    ancestorInfo = ancestorInfo || emptyAncestorInfo;
    var parentInfo = ancestorInfo.current;
    var parentTag = parentInfo && parentInfo.tag;

    if (childText != null) {
      !(childTag == null) ? warningWithoutStack$1(false, 'validateDOMNesting: when childText is passed, childTag should be null') : void 0;
      childTag = '#text';
    }

    var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo;
    var invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo);
    var invalidParentOrAncestor = invalidParent || invalidAncestor;
    if (!invalidParentOrAncestor) {
      return;
    }

    var ancestorTag = invalidParentOrAncestor.tag;
    var addendum = getCurrentFiberStackInDev();

    var warnKey = !!invalidParent + '|' + childTag + '|' + ancestorTag + '|' + addendum;
    if (didWarn[warnKey]) {
      return;
    }
    didWarn[warnKey] = true;

    var tagDisplayName = childTag;
    var whitespaceInfo = '';
    if (childTag === '#text') {
      if (/\S/.test(childText)) {
        tagDisplayName = 'Text nodes';
      } else {
        tagDisplayName = 'Whitespace text nodes';
        whitespaceInfo = " Make sure you don't have any extra whitespace between tags on " + 'each line of your source code.';
      }
    } else {
      tagDisplayName = '<' + childTag + '>';
    }

    if (invalidParent) {
      var info = '';
      if (ancestorTag === 'table' && childTag === 'tr') {
        info += ' Add a <tbody> to your code to match the DOM tree generated by ' + 'the browser.';
      }
      warningWithoutStack$1(false, 'validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s%s', tagDisplayName, ancestorTag, whitespaceInfo, info, addendum);
    } else {
      warningWithoutStack$1(false, 'validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>.%s', tagDisplayName, ancestorTag, addendum);
    }
  };
}

// Renderers that don't support persistence
// can re-export everything from this module.

function shim() {
  invariant(false, 'The current renderer does not support persistence. This error is likely caused by a bug in React. Please file an issue.');
}

// Persistence (when unsupported)
var supportsPersistence = false;
var cloneInstance = shim;
var createContainerChildSet = shim;
var appendChildToContainerChildSet = shim;
var finalizeContainerChildren = shim;
var replaceContainerChildren = shim;
var cloneHiddenInstance = shim;
var cloneUnhiddenInstance = shim;
var createHiddenTextInstance = shim;

var SUPPRESS_HYDRATION_WARNING = void 0;
{
  SUPPRESS_HYDRATION_WARNING = 'suppressHydrationWarning';
}

var STYLE = 'style';

var eventsEnabled = null;
var selectionInformation = null;

function shouldAutoFocusHostComponent(type, props) {
  switch (type) {
    case 'button':
    case 'input':
    case 'select':
    case 'textarea':
      return !!props.autoFocus;
  }
  return false;
}

function getRootHostContext(rootContainerInstance) {
  var type = void 0;
  var namespace = void 0;
  var nodeType = rootContainerInstance.nodeType;
  switch (nodeType) {
    case DOCUMENT_NODE:
    case DOCUMENT_FRAGMENT_NODE:
      {
        type = nodeType === DOCUMENT_NODE ? '#document' : '#fragment';
        var root = rootContainerInstance.documentElement;
        namespace = root ? root.namespaceURI : getChildNamespace(null, '');
        break;
      }
    default:
      {
        var container = nodeType === COMMENT_NODE ? rootContainerInstance.parentNode : rootContainerInstance;
        var ownNamespace = container.namespaceURI || null;
        type = container.tagName;
        namespace = getChildNamespace(ownNamespace, type);
        break;
      }
  }
  {
    var validatedTag = type.toLowerCase();
    var _ancestorInfo = updatedAncestorInfo(null, validatedTag);
    return { namespace: namespace, ancestorInfo: _ancestorInfo };
  }
  return namespace;
}

function getChildHostContext(parentHostContext, type, rootContainerInstance) {
  {
    var parentHostContextDev = parentHostContext;
    var _namespace = getChildNamespace(parentHostContextDev.namespace, type);
    var _ancestorInfo2 = updatedAncestorInfo(parentHostContextDev.ancestorInfo, type);
    return { namespace: _namespace, ancestorInfo: _ancestorInfo2 };
  }
  var parentNamespace = parentHostContext;
  return getChildNamespace(parentNamespace, type);
}

function getPublicInstance(instance) {
  return instance;
}

function prepareForCommit(containerInfo) {
  eventsEnabled = isEnabled();
  selectionInformation = getSelectionInformation();
  setEnabled(false);
}

function resetAfterCommit(containerInfo) {
  restoreSelection(selectionInformation);
  selectionInformation = null;
  setEnabled(eventsEnabled);
  eventsEnabled = null;
}

function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
  var parentNamespace = void 0;
  {
    // TODO: take namespace into account when validating.
    var hostContextDev = hostContext;
    validateDOMNesting(type, null, hostContextDev.ancestorInfo);
    if (typeof props.children === 'string' || typeof props.children === 'number') {
      var string = '' + props.children;
      var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
      validateDOMNesting(null, string, ownAncestorInfo);
    }
    parentNamespace = hostContextDev.namespace;
  }
  var domElement = createElement(type, props, rootContainerInstance, parentNamespace);
  precacheFiberNode(internalInstanceHandle, domElement);
  updateFiberProps(domElement, props);
  return domElement;
}

function appendInitialChild(parentInstance, child) {
  parentInstance.appendChild(child);
}

function finalizeInitialChildren(domElement, type, props, rootContainerInstance, hostContext) {
  setInitialProperties(domElement, type, props, rootContainerInstance);
  return shouldAutoFocusHostComponent(type, props);
}

function prepareUpdate(domElement, type, oldProps, newProps, rootContainerInstance, hostContext) {
  {
    var hostContextDev = hostContext;
    if (typeof newProps.children !== typeof oldProps.children && (typeof newProps.children === 'string' || typeof newProps.children === 'number')) {
      var string = '' + newProps.children;
      var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
      validateDOMNesting(null, string, ownAncestorInfo);
    }
  }
  return diffProperties(domElement, type, oldProps, newProps, rootContainerInstance);
}

function shouldSetTextContent(type, props) {
  return type === 'textarea' || type === 'option' || type === 'noscript' || typeof props.children === 'string' || typeof props.children === 'number' || typeof props.dangerouslySetInnerHTML === 'object' && props.dangerouslySetInnerHTML !== null && props.dangerouslySetInnerHTML.__html != null;
}

function shouldDeprioritizeSubtree(type, props) {
  return !!props.hidden;
}

function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) {
  {
    var hostContextDev = hostContext;
    validateDOMNesting(null, text, hostContextDev.ancestorInfo);
  }
  var textNode = createTextNode(text, rootContainerInstance);
  precacheFiberNode(internalInstanceHandle, textNode);
  return textNode;
}

var isPrimaryRenderer = true;
// This initialization code may run even on server environments
// if a component just imports ReactDOM (e.g. for findDOMNode).
// Some environments might not have setTimeout or clearTimeout.
var scheduleTimeout = typeof setTimeout === 'function' ? setTimeout : undefined;
var cancelTimeout = typeof clearTimeout === 'function' ? clearTimeout : undefined;
var noTimeout = -1;

// -------------------
//     Mutation
// -------------------

var supportsMutation = true;

function commitMount(domElement, type, newProps, internalInstanceHandle) {
  // Despite the naming that might imply otherwise, this method only
  // fires if there is an `Update` effect scheduled during mounting.
  // This happens if `finalizeInitialChildren` returns `true` (which it
  // does to implement the `autoFocus` attribute on the client). But
  // there are also other cases when this might happen (such as patching
  // up text content during hydration mismatch). So we'll check this again.
  if (shouldAutoFocusHostComponent(type, newProps)) {
    domElement.focus();
  }
}

function commitUpdate(domElement, updatePayload, type, oldProps, newProps, internalInstanceHandle) {
  // Update the props handle so that we know which props are the ones with
  // with current event handlers.
  updateFiberProps(domElement, newProps);
  // Apply the diff to the DOM node.
  updateProperties(domElement, updatePayload, type, oldProps, newProps);
}

function resetTextContent(domElement) {
  setTextContent(domElement, '');
}

function commitTextUpdate(textInstance, oldText, newText) {
  textInstance.nodeValue = newText;
}

function appendChild(parentInstance, child) {
  parentInstance.appendChild(child);
}

function appendChildToContainer(container, child) {
  var parentNode = void 0;
  if (container.nodeType === COMMENT_NODE) {
    parentNode = container.parentNode;
    parentNode.insertBefore(child, container);
  } else {
    parentNode = container;
    parentNode.appendChild(child);
  }
  // This container might be used for a portal.
  // If something inside a portal is clicked, that click should bubble
  // through the React tree. However, on Mobile Safari the click would
  // never bubble through the *DOM* tree unless an ancestor with onclick
  // event exists. So we wouldn't see it and dispatch it.
  // This is why we ensure that non React root containers have inline onclick
  // defined.
  // https://github.com/facebook/react/issues/11918
  var reactRootContainer = container._reactRootContainer;
  if ((reactRootContainer === null || reactRootContainer === undefined) && parentNode.onclick === null) {
    // TODO: This cast may not be sound for SVG, MathML or custom elements.
    trapClickOnNonInteractiveElement(parentNode);
  }
}

function insertBefore(parentInstance, child, beforeChild) {
  parentInstance.insertBefore(child, beforeChild);
}

function insertInContainerBefore(container, child, beforeChild) {
  if (container.nodeType === COMMENT_NODE) {
    container.parentNode.insertBefore(child, beforeChild);
  } else {
    container.insertBefore(child, beforeChild);
  }
}

function removeChild(parentInstance, child) {
  parentInstance.removeChild(child);
}

function removeChildFromContainer(container, child) {
  if (container.nodeType === COMMENT_NODE) {
    container.parentNode.removeChild(child);
  } else {
    container.removeChild(child);
  }
}

function hideInstance(instance) {
  // TODO: Does this work for all element types? What about MathML? Should we
  // pass host context to this method?
  instance = instance;
  instance.style.display = 'none';
}

function hideTextInstance(textInstance) {
  textInstance.nodeValue = '';
}

function unhideInstance(instance, props) {
  instance = instance;
  var styleProp = props[STYLE];
  var display = styleProp !== undefined && styleProp !== null && styleProp.hasOwnProperty('display') ? styleProp.display : null;
  instance.style.display = dangerousStyleValue('display', display);
}

function unhideTextInstance(textInstance, text) {
  textInstance.nodeValue = text;
}

// -------------------
//     Hydration
// -------------------

var supportsHydration = true;

function canHydrateInstance(instance, type, props) {
  if (instance.nodeType !== ELEMENT_NODE || type.toLowerCase() !== instance.nodeName.toLowerCase()) {
    return null;
  }
  // This has now been refined to an element node.
  return instance;
}

function canHydrateTextInstance(instance, text) {
  if (text === '' || instance.nodeType !== TEXT_NODE) {
    // Empty strings are not parsed by HTML so there won't be a correct match here.
    return null;
  }
  // This has now been refined to a text node.
  return instance;
}

function getNextHydratableSibling(instance) {
  var node = instance.nextSibling;
  // Skip non-hydratable nodes.
  while (node && node.nodeType !== ELEMENT_NODE && node.nodeType !== TEXT_NODE) {
    node = node.nextSibling;
  }
  return node;
}

function getFirstHydratableChild(parentInstance) {
  var next = parentInstance.firstChild;
  // Skip non-hydratable nodes.
  while (next && next.nodeType !== ELEMENT_NODE && next.nodeType !== TEXT_NODE) {
    next = next.nextSibling;
  }
  return next;
}

function hydrateInstance(instance, type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
  precacheFiberNode(internalInstanceHandle, instance);
  // TODO: Possibly defer this until the commit phase where all the events
  // get attached.
  updateFiberProps(instance, props);
  var parentNamespace = void 0;
  {
    var hostContextDev = hostContext;
    parentNamespace = hostContextDev.namespace;
  }
  return diffHydratedProperties(instance, type, props, parentNamespace, rootContainerInstance);
}

function hydrateTextInstance(textInstance, text, internalInstanceHandle) {
  precacheFiberNode(internalInstanceHandle, textInstance);
  return diffHydratedText(textInstance, text);
}

function didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, text) {
  {
    warnForUnmatchedText(textInstance, text);
  }
}

function didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, text) {
  if (true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
    warnForUnmatchedText(textInstance, text);
  }
}

function didNotHydrateContainerInstance(parentContainer, instance) {
  {
    if (instance.nodeType === ELEMENT_NODE) {
      warnForDeletedHydratableElement(parentContainer, instance);
    } else {
      warnForDeletedHydratableText(parentContainer, instance);
    }
  }
}

function didNotHydrateInstance(parentType, parentProps, parentInstance, instance) {
  if (true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
    if (instance.nodeType === ELEMENT_NODE) {
      warnForDeletedHydratableElement(parentInstance, instance);
    } else {
      warnForDeletedHydratableText(parentInstance, instance);
    }
  }
}

function didNotFindHydratableContainerInstance(parentContainer, type, props) {
  {
    warnForInsertedHydratedElement(parentContainer, type, props);
  }
}

function didNotFindHydratableContainerTextInstance(parentContainer, text) {
  {
    warnForInsertedHydratedText(parentContainer, text);
  }
}

function didNotFindHydratableInstance(parentType, parentProps, parentInstance, type, props) {
  if (true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
    warnForInsertedHydratedElement(parentInstance, type, props);
  }
}

function didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, text) {
  if (true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
    warnForInsertedHydratedText(parentInstance, text);
  }
}

// Prefix measurements so that it's possible to filter them.
// Longer prefixes are hard to read in DevTools.
var reactEmoji = '\u269B';
var warningEmoji = '\u26D4';
var supportsUserTiming = typeof performance !== 'undefined' && typeof performance.mark === 'function' && typeof performance.clearMarks === 'function' && typeof performance.measure === 'function' && typeof performance.clearMeasures === 'function';

// Keep track of current fiber so that we know the path to unwind on pause.
// TODO: this looks the same as nextUnitOfWork in scheduler. Can we unify them?
var currentFiber = null;
// If we're in the middle of user code, which fiber and method is it?
// Reusing `currentFiber` would be confusing for this because user code fiber
// can change during commit phase too, but we don't need to unwind it (since
// lifecycles in the commit phase don't resemble a tree).
var currentPhase = null;
var currentPhaseFiber = null;
// Did lifecycle hook schedule an update? This is often a performance problem,
// so we will keep track of it, and include it in the report.
// Track commits caused by cascading updates.
var isCommitting = false;
var hasScheduledUpdateInCurrentCommit = false;
var hasScheduledUpdateInCurrentPhase = false;
var commitCountInCurrentWorkLoop = 0;
var effectCountInCurrentCommit = 0;
var isWaitingForCallback = false;
// During commits, we only show a measurement once per method name
// to avoid stretch the commit phase with measurement overhead.
var labelsInCurrentCommit = new Set();

var formatMarkName = function (markName) {
  return reactEmoji + ' ' + markName;
};

var formatLabel = function (label, warning) {
  var prefix = warning ? warningEmoji + ' ' : reactEmoji + ' ';
  var suffix = warning ? ' Warning: ' + warning : '';
  return '' + prefix + label + suffix;
};

var beginMark = function (markName) {
  performance.mark(formatMarkName(markName));
};

var clearMark = function (markName) {
  performance.clearMarks(formatMarkName(markName));
};

var endMark = function (label, markName, warning) {
  var formattedMarkName = formatMarkName(markName);
  var formattedLabel = formatLabel(label, warning);
  try {
    performance.measure(formattedLabel, formattedMarkName);
  } catch (err) {}
  // If previous mark was missing for some reason, this will throw.
  // This could only happen if React crashed in an unexpected place earlier.
  // Don't pile on with more errors.

  // Clear marks immediately to avoid growing buffer.
  performance.clearMarks(formattedMarkName);
  performance.clearMeasures(formattedLabel);
};

var getFiberMarkName = function (label, debugID) {
  return label + ' (#' + debugID + ')';
};

var getFiberLabel = function (componentName, isMounted, phase) {
  if (phase === null) {
    // These are composite component total time measurements.
    return componentName + ' [' + (isMounted ? 'update' : 'mount') + ']';
  } else {
    // Composite component methods.
    return componentName + '.' + phase;
  }
};

var beginFiberMark = function (fiber, phase) {
  var componentName = getComponentName(fiber.type) || 'Unknown';
  var debugID = fiber._debugID;
  var isMounted = fiber.alternate !== null;
  var label = getFiberLabel(componentName, isMounted, phase);

  if (isCommitting && labelsInCurrentCommit.has(label)) {
    // During the commit phase, we don't show duplicate labels because
    // there is a fixed overhead for every measurement, and we don't
    // want to stretch the commit phase beyond necessary.
    return false;
  }
  labelsInCurrentCommit.add(label);

  var markName = getFiberMarkName(label, debugID);
  beginMark(markName);
  return true;
};

var clearFiberMark = function (fiber, phase) {
  var componentName = getComponentName(fiber.type) || 'Unknown';
  var debugID = fiber._debugID;
  var isMounted = fiber.alternate !== null;
  var label = getFiberLabel(componentName, isMounted, phase);
  var markName = getFiberMarkName(label, debugID);
  clearMark(markName);
};

var endFiberMark = function (fiber, phase, warning) {
  var componentName = getComponentName(fiber.type) || 'Unknown';
  var debugID = fiber._debugID;
  var isMounted = fiber.alternate !== null;
  var label = getFiberLabel(componentName, isMounted, phase);
  var markName = getFiberMarkName(label, debugID);
  endMark(label, markName, warning);
};

var shouldIgnoreFiber = function (fiber) {
  // Host components should be skipped in the timeline.
  // We could check typeof fiber.type, but does this work with RN?
  switch (fiber.tag) {
    case HostRoot:
    case HostComponent:
    case HostText:
    case HostPortal:
    case Fragment:
    case ContextProvider:
    case ContextConsumer:
    case Mode:
      return true;
    default:
      return false;
  }
};

var clearPendingPhaseMeasurement = function () {
  if (currentPhase !== null && currentPhaseFiber !== null) {
    clearFiberMark(currentPhaseFiber, currentPhase);
  }
  currentPhaseFiber = null;
  currentPhase = null;
  hasScheduledUpdateInCurrentPhase = false;
};

var pauseTimers = function () {
  // Stops all currently active measurements so that they can be resumed
  // if we continue in a later deferred loop from the same unit of work.
  var fiber = currentFiber;
  while (fiber) {
    if (fiber._debugIsCurrentlyTiming) {
      endFiberMark(fiber, null, null);
    }
    fiber = fiber.return;
  }
};

var resumeTimersRecursively = function (fiber) {
  if (fiber.return !== null) {
    resumeTimersRecursively(fiber.return);
  }
  if (fiber._debugIsCurrentlyTiming) {
    beginFiberMark(fiber, null);
  }
};

var resumeTimers = function () {
  // Resumes all measurements that were active during the last deferred loop.
  if (currentFiber !== null) {
    resumeTimersRecursively(currentFiber);
  }
};

function recordEffect() {
  if (enableUserTimingAPI) {
    effectCountInCurrentCommit++;
  }
}

function recordScheduleUpdate() {
  if (enableUserTimingAPI) {
    if (isCommitting) {
      hasScheduledUpdateInCurrentCommit = true;
    }
    if (currentPhase !== null && currentPhase !== 'componentWillMount' && currentPhase !== 'componentWillReceiveProps') {
      hasScheduledUpdateInCurrentPhase = true;
    }
  }
}

function startRequestCallbackTimer() {
  if (enableUserTimingAPI) {
    if (supportsUserTiming && !isWaitingForCallback) {
      isWaitingForCallback = true;
      beginMark('(Waiting for async callback...)');
    }
  }
}

function stopRequestCallbackTimer(didExpire, expirationTime) {
  if (enableUserTimingAPI) {
    if (supportsUserTiming) {
      isWaitingForCallback = false;
      var warning = didExpire ? 'React was blocked by main thread' : null;
      endMark('(Waiting for async callback... will force flush in ' + expirationTime + ' ms)', '(Waiting for async callback...)', warning);
    }
  }
}

function startWorkTimer(fiber) {
  if (enableUserTimingAPI) {
    if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
      return;
    }
    // If we pause, this is the fiber to unwind from.
    currentFiber = fiber;
    if (!beginFiberMark(fiber, null)) {
      return;
    }
    fiber._debugIsCurrentlyTiming = true;
  }
}

function cancelWorkTimer(fiber) {
  if (enableUserTimingAPI) {
    if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
      return;
    }
    // Remember we shouldn't complete measurement for this fiber.
    // Otherwise flamechart will be deep even for small updates.
    fiber._debugIsCurrentlyTiming = false;
    clearFiberMark(fiber, null);
  }
}

function stopWorkTimer(fiber) {
  if (enableUserTimingAPI) {
    if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
      return;
    }
    // If we pause, its parent is the fiber to unwind from.
    currentFiber = fiber.return;
    if (!fiber._debugIsCurrentlyTiming) {
      return;
    }
    fiber._debugIsCurrentlyTiming = false;
    endFiberMark(fiber, null, null);
  }
}

function stopFailedWorkTimer(fiber) {
  if (enableUserTimingAPI) {
    if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
      return;
    }
    // If we pause, its parent is the fiber to unwind from.
    currentFiber = fiber.return;
    if (!fiber._debugIsCurrentlyTiming) {
      return;
    }
    fiber._debugIsCurrentlyTiming = false;
    var warning = fiber.tag === SuspenseComponent ? 'Rendering was suspended' : 'An error was thrown inside this error boundary';
    endFiberMark(fiber, null, warning);
  }
}

function startPhaseTimer(fiber, phase) {
  if (enableUserTimingAPI) {
    if (!supportsUserTiming) {
      return;
    }
    clearPendingPhaseMeasurement();
    if (!beginFiberMark(fiber, phase)) {
      return;
    }
    currentPhaseFiber = fiber;
    currentPhase = phase;
  }
}

function stopPhaseTimer() {
  if (enableUserTimingAPI) {
    if (!supportsUserTiming) {
      return;
    }
    if (currentPhase !== null && currentPhaseFiber !== null) {
      var warning = hasScheduledUpdateInCurrentPhase ? 'Scheduled a cascading update' : null;
      endFiberMark(currentPhaseFiber, currentPhase, warning);
    }
    currentPhase = null;
    currentPhaseFiber = null;
  }
}

function startWorkLoopTimer(nextUnitOfWork) {
  if (enableUserTimingAPI) {
    currentFiber = nextUnitOfWork;
    if (!supportsUserTiming) {
      return;
    }
    commitCountInCurrentWorkLoop = 0;
    // This is top level call.
    // Any other measurements are performed within.
    beginMark('(React Tree Reconciliation)');
    // Resume any measurements that were in progress during the last loop.
    resumeTimers();
  }
}

function stopWorkLoopTimer(interruptedBy, didCompleteRoot) {
  if (enableUserTimingAPI) {
    if (!supportsUserTiming) {
      return;
    }
    var warning = null;
    if (interruptedBy !== null) {
      if (interruptedBy.tag === HostRoot) {
        warning = 'A top-level update interrupted the previous render';
      } else {
        var componentName = getComponentName(interruptedBy.type) || 'Unknown';
        warning = 'An update to ' + componentName + ' interrupted the previous render';
      }
    } else if (commitCountInCurrentWorkLoop > 1) {
      warning = 'There were cascading updates';
    }
    commitCountInCurrentWorkLoop = 0;
    var label = didCompleteRoot ? '(React Tree Reconciliation: Completed Root)' : '(React Tree Reconciliation: Yielded)';
    // Pause any measurements until the next loop.
    pauseTimers();
    endMark(label, '(React Tree Reconciliation)', warning);
  }
}

function startCommitTimer() {
  if (enableUserTimingAPI) {
    if (!supportsUserTiming) {
      return;
    }
    isCommitting = true;
    hasScheduledUpdateInCurrentCommit = false;
    labelsInCurrentCommit.clear();
    beginMark('(Committing Changes)');
  }
}

function stopCommitTimer() {
  if (enableUserTimingAPI) {
    if (!supportsUserTiming) {
      return;
    }

    var warning = null;
    if (hasScheduledUpdateInCurrentCommit) {
      warning = 'Lifecycle hook scheduled a cascading update';
    } else if (commitCountInCurrentWorkLoop > 0) {
      warning = 'Caused by a cascading update in earlier commit';
    }
    hasScheduledUpdateInCurrentCommit = false;
    commitCountInCurrentWorkLoop++;
    isCommitting = false;
    labelsInCurrentCommit.clear();

    endMark('(Committing Changes)', '(Committing Changes)', warning);
  }
}

function startCommitSnapshotEffectsTimer() {
  if (enableUserTimingAPI) {
    if (!supportsUserTiming) {
      return;
    }
    effectCountInCurrentCommit = 0;
    beginMark('(Committing Snapshot Effects)');
  }
}

function stopCommitSnapshotEffectsTimer() {
  if (enableUserTimingAPI) {
    if (!supportsUserTiming) {
      return;
    }
    var count = effectCountInCurrentCommit;
    effectCountInCurrentCommit = 0;
    endMark('(Committing Snapshot Effects: ' + count + ' Total)', '(Committing Snapshot Effects)', null);
  }
}

function startCommitHostEffectsTimer() {
  if (enableUserTimingAPI) {
    if (!supportsUserTiming) {
      return;
    }
    effectCountInCurrentCommit = 0;
    beginMark('(Committing Host Effects)');
  }
}

function stopCommitHostEffectsTimer() {
  if (enableUserTimingAPI) {
    if (!supportsUserTiming) {
      return;
    }
    var count = effectCountInCurrentCommit;
    effectCountInCurrentCommit = 0;
    endMark('(Committing Host Effects: ' + count + ' Total)', '(Committing Host Effects)', null);
  }
}

function startCommitLifeCyclesTimer() {
  if (enableUserTimingAPI) {
    if (!supportsUserTiming) {
      return;
    }
    effectCountInCurrentCommit = 0;
    beginMark('(Calling Lifecycle Methods)');
  }
}

function stopCommitLifeCyclesTimer() {
  if (enableUserTimingAPI) {
    if (!supportsUserTiming) {
      return;
    }
    var count = effectCountInCurrentCommit;
    effectCountInCurrentCommit = 0;
    endMark('(Calling Lifecycle Methods: ' + count + ' Total)', '(Calling Lifecycle Methods)', null);
  }
}

var valueStack = [];

var fiberStack = void 0;

{
  fiberStack = [];
}

var index = -1;

function createCursor(defaultValue) {
  return {
    current: defaultValue
  };
}

function pop(cursor, fiber) {
  if (index < 0) {
    {
      warningWithoutStack$1(false, 'Unexpected pop.');
    }
    return;
  }

  {
    if (fiber !== fiberStack[index]) {
      warningWithoutStack$1(false, 'Unexpected Fiber popped.');
    }
  }

  cursor.current = valueStack[index];

  valueStack[index] = null;

  {
    fiberStack[index] = null;
  }

  index--;
}

function push(cursor, value, fiber) {
  index++;

  valueStack[index] = cursor.current;

  {
    fiberStack[index] = fiber;
  }

  cursor.current = value;
}

function checkThatStackIsEmpty() {
  {
    if (index !== -1) {
      warningWithoutStack$1(false, 'Expected an empty stack. Something was not reset properly.');
    }
  }
}

function resetStackAfterFatalErrorInDev() {
  {
    index = -1;
    valueStack.length = 0;
    fiberStack.length = 0;
  }
}

var warnedAboutMissingGetChildContext = void 0;

{
  warnedAboutMissingGetChildContext = {};
}

var emptyContextObject = {};
{
  Object.freeze(emptyContextObject);
}

// A cursor to the current merged context object on the stack.
var contextStackCursor = createCursor(emptyContextObject);
// A cursor to a boolean indicating whether the context has changed.
var didPerformWorkStackCursor = createCursor(false);
// Keep track of the previous context object that was on the stack.
// We use this to get access to the parent context after we have already
// pushed the next context provider, and now need to merge their contexts.
var previousContext = emptyContextObject;

function getUnmaskedContext(workInProgress, Component, didPushOwnContextIfProvider) {
  if (didPushOwnContextIfProvider && isContextProvider(Component)) {
    // If the fiber is a context provider itself, when we read its context
    // we may have already pushed its own child context on the stack. A context
    // provider should not "see" its own child context. Therefore we read the
    // previous (parent) context instead for a context provider.
    return previousContext;
  }
  return contextStackCursor.current;
}

function cacheContext(workInProgress, unmaskedContext, maskedContext) {
  var instance = workInProgress.stateNode;
  instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext;
  instance.__reactInternalMemoizedMaskedChildContext = maskedContext;
}

function getMaskedContext(workInProgress, unmaskedContext) {
  var type = workInProgress.type;
  var contextTypes = type.contextTypes;
  if (!contextTypes) {
    return emptyContextObject;
  }

  // Avoid recreating masked context unless unmasked context has changed.
  // Failing to do this will result in unnecessary calls to componentWillReceiveProps.
  // This may trigger infinite loops if componentWillReceiveProps calls setState.
  var instance = workInProgress.stateNode;
  if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) {
    return instance.__reactInternalMemoizedMaskedChildContext;
  }

  var context = {};
  for (var key in contextTypes) {
    context[key] = unmaskedContext[key];
  }

  {
    var name = getComponentName(type) || 'Unknown';
    checkPropTypes(contextTypes, context, 'context', name, getCurrentFiberStackInDev);
  }

  // Cache unmasked context so we can avoid recreating masked context unless necessary.
  // Context is created before the class component is instantiated so check for instance.
  if (instance) {
    cacheContext(workInProgress, unmaskedContext, context);
  }

  return context;
}

function hasContextChanged() {
  return didPerformWorkStackCursor.current;
}

function isContextProvider(type) {
  var childContextTypes = type.childContextTypes;
  return childContextTypes !== null && childContextTypes !== undefined;
}

function popContext(fiber) {
  pop(didPerformWorkStackCursor, fiber);
  pop(contextStackCursor, fiber);
}

function popTopLevelContextObject(fiber) {
  pop(didPerformWorkStackCursor, fiber);
  pop(contextStackCursor, fiber);
}

function pushTopLevelContextObject(fiber, context, didChange) {
  !(contextStackCursor.current === emptyContextObject) ? invariant(false, 'Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.') : void 0;

  push(contextStackCursor, context, fiber);
  push(didPerformWorkStackCursor, didChange, fiber);
}

function processChildContext(fiber, type, parentContext) {
  var instance = fiber.stateNode;
  var childContextTypes = type.childContextTypes;

  // TODO (bvaughn) Replace this behavior with an invariant() in the future.
  // It has only been added in Fiber to match the (unintentional) behavior in Stack.
  if (typeof instance.getChildContext !== 'function') {
    {
      var componentName = getComponentName(type) || 'Unknown';

      if (!warnedAboutMissingGetChildContext[componentName]) {
        warnedAboutMissingGetChildContext[componentName] = true;
        warningWithoutStack$1(false, '%s.childContextTypes is specified but there is no getChildContext() method ' + 'on the instance. You can either define getChildContext() on %s or remove ' + 'childContextTypes from it.', componentName, componentName);
      }
    }
    return parentContext;
  }

  var childContext = void 0;
  {
    setCurrentPhase('getChildContext');
  }
  startPhaseTimer(fiber, 'getChildContext');
  childContext = instance.getChildContext();
  stopPhaseTimer();
  {
    setCurrentPhase(null);
  }
  for (var contextKey in childContext) {
    !(contextKey in childContextTypes) ? invariant(false, '%s.getChildContext(): key "%s" is not defined in childContextTypes.', getComponentName(type) || 'Unknown', contextKey) : void 0;
  }
  {
    var name = getComponentName(type) || 'Unknown';
    checkPropTypes(childContextTypes, childContext, 'child context', name,
    // In practice, there is one case in which we won't get a stack. It's when
    // somebody calls unstable_renderSubtreeIntoContainer() and we process
    // context from the parent component instance. The stack will be missing
    // because it's outside of the reconciliation, and so the pointer has not
    // been set. This is rare and doesn't matter. We'll also remove that API.
    getCurrentFiberStackInDev);
  }

  return _assign({}, parentContext, childContext);
}

function pushContextProvider(workInProgress) {
  var instance = workInProgress.stateNode;
  // We push the context as early as possible to ensure stack integrity.
  // If the instance does not exist yet, we will push null at first,
  // and replace it on the stack later when invalidating the context.
  var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject;

  // Remember the parent context so we can merge with it later.
  // Inherit the parent's did-perform-work value to avoid inadvertently blocking updates.
  previousContext = contextStackCursor.current;
  push(contextStackCursor, memoizedMergedChildContext, workInProgress);
  push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress);

  return true;
}

function invalidateContextProvider(workInProgress, type, didChange) {
  var instance = workInProgress.stateNode;
  !instance ? invariant(false, 'Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.') : void 0;

  if (didChange) {
    // Merge parent and own context.
    // Skip this if we're not updating due to sCU.
    // This avoids unnecessarily recomputing memoized values.
    var mergedContext = processChildContext(workInProgress, type, previousContext);
    instance.__reactInternalMemoizedMergedChildContext = mergedContext;

    // Replace the old (or empty) context with the new one.
    // It is important to unwind the context in the reverse order.
    pop(didPerformWorkStackCursor, workInProgress);
    pop(contextStackCursor, workInProgress);
    // Now push the new context and mark that it has changed.
    push(contextStackCursor, mergedContext, workInProgress);
    push(didPerformWorkStackCursor, didChange, workInProgress);
  } else {
    pop(didPerformWorkStackCursor, workInProgress);
    push(didPerformWorkStackCursor, didChange, workInProgress);
  }
}

function findCurrentUnmaskedContext(fiber) {
  // Currently this is only used with renderSubtreeIntoContainer; not sure if it
  // makes sense elsewhere
  !(isFiberMounted(fiber) && fiber.tag === ClassComponent) ? invariant(false, 'Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.') : void 0;

  var node = fiber;
  do {
    switch (node.tag) {
      case HostRoot:
        return node.stateNode.context;
      case ClassComponent:
        {
          var Component = node.type;
          if (isContextProvider(Component)) {
            return node.stateNode.__reactInternalMemoizedMergedChildContext;
          }
          break;
        }
    }
    node = node.return;
  } while (node !== null);
  invariant(false, 'Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.');
}

var onCommitFiberRoot = null;
var onCommitFiberUnmount = null;
var hasLoggedError = false;

function catchErrors(fn) {
  return function (arg) {
    try {
      return fn(arg);
    } catch (err) {
      if (true && !hasLoggedError) {
        hasLoggedError = true;
        warningWithoutStack$1(false, 'React DevTools encountered an error: %s', err);
      }
    }
  };
}

var isDevToolsPresent = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined';

function injectInternals(internals) {
  if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {
    // No DevTools
    return false;
  }
  var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;
  if (hook.isDisabled) {
    // This isn't a real property on the hook, but it can be set to opt out
    // of DevTools integration and associated warnings and logs.
    // https://github.com/facebook/react/issues/3877
    return true;
  }
  if (!hook.supportsFiber) {
    {
      warningWithoutStack$1(false, 'The installed version of React DevTools is too old and will not work ' + 'with the current version of React. Please update React DevTools. ' + 'https://fb.me/react-devtools');
    }
    // DevTools exists, even though it doesn't support Fiber.
    return true;
  }
  try {
    var rendererID = hook.inject(internals);
    // We have successfully injected, so now it is safe to set up hooks.
    onCommitFiberRoot = catchErrors(function (root) {
      return hook.onCommitFiberRoot(rendererID, root);
    });
    onCommitFiberUnmount = catchErrors(function (fiber) {
      return hook.onCommitFiberUnmount(rendererID, fiber);
    });
  } catch (err) {
    // Catch all errors because it is unsafe to throw during initialization.
    {
      warningWithoutStack$1(false, 'React DevTools encountered an error: %s.', err);
    }
  }
  // DevTools exists
  return true;
}

function onCommitRoot(root) {
  if (typeof onCommitFiberRoot === 'function') {
    onCommitFiberRoot(root);
  }
}

function onCommitUnmount(fiber) {
  if (typeof onCommitFiberUnmount === 'function') {
    onCommitFiberUnmount(fiber);
  }
}

// Max 31 bit integer. The max integer size in V8 for 32-bit systems.
// Math.pow(2, 30) - 1
// 0b111111111111111111111111111111
var maxSigned31BitInt = 1073741823;

var NoWork = 0;
var Never = 1;
var Sync = maxSigned31BitInt;

var UNIT_SIZE = 10;
var MAGIC_NUMBER_OFFSET = maxSigned31BitInt - 1;

// 1 unit of expiration time represents 10ms.
function msToExpirationTime(ms) {
  // Always add an offset so that we don't clash with the magic number for NoWork.
  return MAGIC_NUMBER_OFFSET - (ms / UNIT_SIZE | 0);
}

function expirationTimeToMs(expirationTime) {
  return (MAGIC_NUMBER_OFFSET - expirationTime) * UNIT_SIZE;
}

function ceiling(num, precision) {
  return ((num / precision | 0) + 1) * precision;
}

function computeExpirationBucket(currentTime, expirationInMs, bucketSizeMs) {
  return MAGIC_NUMBER_OFFSET - ceiling(MAGIC_NUMBER_OFFSET - currentTime + expirationInMs / UNIT_SIZE, bucketSizeMs / UNIT_SIZE);
}

var LOW_PRIORITY_EXPIRATION = 5000;
var LOW_PRIORITY_BATCH_SIZE = 250;

function computeAsyncExpiration(currentTime) {
  return computeExpirationBucket(currentTime, LOW_PRIORITY_EXPIRATION, LOW_PRIORITY_BATCH_SIZE);
}

// We intentionally set a higher expiration time for interactive updates in
// dev than in production.
//
// If the main thread is being blocked so long that you hit the expiration,
// it's a problem that could be solved with better scheduling.
//
// People will be more likely to notice this and fix it with the long
// expiration time in development.
//
// In production we opt for better UX at the risk of masking scheduling
// problems, by expiring fast.
var HIGH_PRIORITY_EXPIRATION = 500;
var HIGH_PRIORITY_BATCH_SIZE = 100;

function computeInteractiveExpiration(currentTime) {
  return computeExpirationBucket(currentTime, HIGH_PRIORITY_EXPIRATION, HIGH_PRIORITY_BATCH_SIZE);
}

var NoContext = 0;
var ConcurrentMode = 1;
var StrictMode = 2;
var ProfileMode = 4;

var hasBadMapPolyfill = void 0;

{
  hasBadMapPolyfill = false;
  try {
    var nonExtensibleObject = Object.preventExtensions({});
    var testMap = new Map([[nonExtensibleObject, null]]);
    var testSet = new Set([nonExtensibleObject]);
    // This is necessary for Rollup to not consider these unused.
    // https://github.com/rollup/rollup/issues/1771
    // TODO: we can remove these if Rollup fixes the bug.
    testMap.set(0, 0);
    testSet.add(0);
  } catch (e) {
    // TODO: Consider warning about bad polyfills
    hasBadMapPolyfill = true;
  }
}

// A Fiber is work on a Component that needs to be done or was done. There can
// be more than one per component.


var debugCounter = void 0;

{
  debugCounter = 1;
}

function FiberNode(tag, pendingProps, key, mode) {
  // Instance
  this.tag = tag;
  this.key = key;
  this.elementType = null;
  this.type = null;
  this.stateNode = null;

  // Fiber
  this.return = null;
  this.child = null;
  this.sibling = null;
  this.index = 0;

  this.ref = null;

  this.pendingProps = pendingProps;
  this.memoizedProps = null;
  this.updateQueue = null;
  this.memoizedState = null;
  this.firstContextDependency = null;

  this.mode = mode;

  // Effects
  this.effectTag = NoEffect;
  this.nextEffect = null;

  this.firstEffect = null;
  this.lastEffect = null;

  this.expirationTime = NoWork;
  this.childExpirationTime = NoWork;

  this.alternate = null;

  if (enableProfilerTimer) {
    this.actualDuration = 0;
    this.actualStartTime = -1;
    this.selfBaseDuration = 0;
    this.treeBaseDuration = 0;
  }

  {
    this._debugID = debugCounter++;
    this._debugSource = null;
    this._debugOwner = null;
    this._debugIsCurrentlyTiming = false;
    if (!hasBadMapPolyfill && typeof Object.preventExtensions === 'function') {
      Object.preventExtensions(this);
    }
  }
}

// This is a constructor function, rather than a POJO constructor, still
// please ensure we do the following:
// 1) Nobody should add any instance methods on this. Instance methods can be
//    more difficult to predict when they get optimized and they are almost
//    never inlined properly in static compilers.
// 2) Nobody should rely on `instanceof Fiber` for type testing. We should
//    always know when it is a fiber.
// 3) We might want to experiment with using numeric keys since they are easier
//    to optimize in a non-JIT environment.
// 4) We can easily go from a constructor to a createFiber object literal if that
//    is faster.
// 5) It should be easy to port this to a C struct and keep a C implementation
//    compatible.
var createFiber = function (tag, pendingProps, key, mode) {
  // $FlowFixMe: the shapes are exact here but Flow doesn't like constructors
  return new FiberNode(tag, pendingProps, key, mode);
};

function shouldConstruct(Component) {
  var prototype = Component.prototype;
  return !!(prototype && prototype.isReactComponent);
}

function isSimpleFunctionComponent(type) {
  return typeof type === 'function' && !shouldConstruct(type) && type.defaultProps === undefined;
}

function resolveLazyComponentTag(Component) {
  if (typeof Component === 'function') {
    return shouldConstruct(Component) ? ClassComponent : FunctionComponent;
  } else if (Component !== undefined && Component !== null) {
    var $$typeof = Component.$$typeof;
    if ($$typeof === REACT_FORWARD_REF_TYPE) {
      return ForwardRef;
    }
    if ($$typeof === REACT_MEMO_TYPE) {
      return MemoComponent;
    }
  }
  return IndeterminateComponent;
}

// This is used to create an alternate fiber to do work on.
function createWorkInProgress(current, pendingProps, expirationTime) {
  var workInProgress = current.alternate;
  if (workInProgress === null) {
    // We use a double buffering pooling technique because we know that we'll
    // only ever need at most two versions of a tree. We pool the "other" unused
    // node that we're free to reuse. This is lazily created to avoid allocating
    // extra objects for things that are never updated. It also allow us to
    // reclaim the extra memory if needed.
    workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode);
    workInProgress.elementType = current.elementType;
    workInProgress.type = current.type;
    workInProgress.stateNode = current.stateNode;

    {
      // DEV-only fields
      workInProgress._debugID = current._debugID;
      workInProgress._debugSource = current._debugSource;
      workInProgress._debugOwner = current._debugOwner;
    }

    workInProgress.alternate = current;
    current.alternate = workInProgress;
  } else {
    workInProgress.pendingProps = pendingProps;

    // We already have an alternate.
    // Reset the effect tag.
    workInProgress.effectTag = NoEffect;

    // The effect list is no longer valid.
    workInProgress.nextEffect = null;
    workInProgress.firstEffect = null;
    workInProgress.lastEffect = null;

    if (enableProfilerTimer) {
      // We intentionally reset, rather than copy, actualDuration & actualStartTime.
      // This prevents time from endlessly accumulating in new commits.
      // This has the downside of resetting values for different priority renders,
      // But works for yielding (the common case) and should support resuming.
      workInProgress.actualDuration = 0;
      workInProgress.actualStartTime = -1;
    }
  }

  workInProgress.childExpirationTime = current.childExpirationTime;
  workInProgress.expirationTime = current.expirationTime;

  workInProgress.child = current.child;
  workInProgress.memoizedProps = current.memoizedProps;
  workInProgress.memoizedState = current.memoizedState;
  workInProgress.updateQueue = current.updateQueue;
  workInProgress.firstContextDependency = current.firstContextDependency;

  // These will be overridden during the parent's reconciliation
  workInProgress.sibling = current.sibling;
  workInProgress.index = current.index;
  workInProgress.ref = current.ref;

  if (enableProfilerTimer) {
    workInProgress.selfBaseDuration = current.selfBaseDuration;
    workInProgress.treeBaseDuration = current.treeBaseDuration;
  }

  return workInProgress;
}

function createHostRootFiber(isConcurrent) {
  var mode = isConcurrent ? ConcurrentMode | StrictMode : NoContext;

  if (enableProfilerTimer && isDevToolsPresent) {
    // Always collect profile timings when DevTools are present.
    // This enables DevTools to start capturing timing at any point–
    // Without some nodes in the tree having empty base times.
    mode |= ProfileMode;
  }

  return createFiber(HostRoot, null, null, mode);
}

function createFiberFromTypeAndProps(type, // React$ElementType
key, pendingProps, owner, mode, expirationTime) {
  var fiber = void 0;

  var fiberTag = IndeterminateComponent;
  // The resolved type is set if we know what the final type will be. I.e. it's not lazy.
  var resolvedType = type;
  if (typeof type === 'function') {
    if (shouldConstruct(type)) {
      fiberTag = ClassComponent;
    }
  } else if (typeof type === 'string') {
    fiberTag = HostComponent;
  } else {
    getTag: switch (type) {
      case REACT_FRAGMENT_TYPE:
        return createFiberFromFragment(pendingProps.children, mode, expirationTime, key);
      case REACT_CONCURRENT_MODE_TYPE:
        return createFiberFromMode(pendingProps, mode | ConcurrentMode | StrictMode, expirationTime, key);
      case REACT_STRICT_MODE_TYPE:
        return createFiberFromMode(pendingProps, mode | StrictMode, expirationTime, key);
      case REACT_PROFILER_TYPE:
        return createFiberFromProfiler(pendingProps, mode, expirationTime, key);
      case REACT_SUSPENSE_TYPE:
        return createFiberFromSuspense(pendingProps, mode, expirationTime, key);
      default:
        {
          if (typeof type === 'object' && type !== null) {
            switch (type.$$typeof) {
              case REACT_PROVIDER_TYPE:
                fiberTag = ContextProvider;
                break getTag;
              case REACT_CONTEXT_TYPE:
                // This is a consumer
                fiberTag = ContextConsumer;
                break getTag;
              case REACT_FORWARD_REF_TYPE:
                fiberTag = ForwardRef;
                break getTag;
              case REACT_MEMO_TYPE:
                fiberTag = MemoComponent;
                break getTag;
              case REACT_LAZY_TYPE:
                fiberTag = LazyComponent;
                resolvedType = null;
                break getTag;
            }
          }
          var info = '';
          {
            if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
              info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and " + 'named imports.';
            }
            var ownerName = owner ? getComponentName(owner.type) : null;
            if (ownerName) {
              info += '\n\nCheck the render method of `' + ownerName + '`.';
            }
          }
          invariant(false, 'Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s', type == null ? type : typeof type, info);
        }
    }
  }

  fiber = createFiber(fiberTag, pendingProps, key, mode);
  fiber.elementType = type;
  fiber.type = resolvedType;
  fiber.expirationTime = expirationTime;

  return fiber;
}

function createFiberFromElement(element, mode, expirationTime) {
  var owner = null;
  {
    owner = element._owner;
  }
  var type = element.type;
  var key = element.key;
  var pendingProps = element.props;
  var fiber = createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, expirationTime);
  {
    fiber._debugSource = element._source;
    fiber._debugOwner = element._owner;
  }
  return fiber;
}

function createFiberFromFragment(elements, mode, expirationTime, key) {
  var fiber = createFiber(Fragment, elements, key, mode);
  fiber.expirationTime = expirationTime;
  return fiber;
}

function createFiberFromProfiler(pendingProps, mode, expirationTime, key) {
  {
    if (typeof pendingProps.id !== 'string' || typeof pendingProps.onRender !== 'function') {
      warningWithoutStack$1(false, 'Profiler must specify an "id" string and "onRender" function as props');
    }
  }

  var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode);
  // TODO: The Profiler fiber shouldn't have a type. It has a tag.
  fiber.elementType = REACT_PROFILER_TYPE;
  fiber.type = REACT_PROFILER_TYPE;
  fiber.expirationTime = expirationTime;

  return fiber;
}

function createFiberFromMode(pendingProps, mode, expirationTime, key) {
  var fiber = createFiber(Mode, pendingProps, key, mode);

  // TODO: The Mode fiber shouldn't have a type. It has a tag.
  var type = (mode & ConcurrentMode) === NoContext ? REACT_STRICT_MODE_TYPE : REACT_CONCURRENT_MODE_TYPE;
  fiber.elementType = type;
  fiber.type = type;

  fiber.expirationTime = expirationTime;
  return fiber;
}

function createFiberFromSuspense(pendingProps, mode, expirationTime, key) {
  var fiber = createFiber(SuspenseComponent, pendingProps, key, mode);

  // TODO: The SuspenseComponent fiber shouldn't have a type. It has a tag.
  var type = REACT_SUSPENSE_TYPE;
  fiber.elementType = type;
  fiber.type = type;

  fiber.expirationTime = expirationTime;
  return fiber;
}

function createFiberFromText(content, mode, expirationTime) {
  var fiber = createFiber(HostText, content, null, mode);
  fiber.expirationTime = expirationTime;
  return fiber;
}

function createFiberFromHostInstanceForDeletion() {
  var fiber = createFiber(HostComponent, null, null, NoContext);
  // TODO: These should not need a type.
  fiber.elementType = 'DELETED';
  fiber.type = 'DELETED';
  return fiber;
}

function createFiberFromPortal(portal, mode, expirationTime) {
  var pendingProps = portal.children !== null ? portal.children : [];
  var fiber = createFiber(HostPortal, pendingProps, portal.key, mode);
  fiber.expirationTime = expirationTime;
  fiber.stateNode = {
    containerInfo: portal.containerInfo,
    pendingChildren: null, // Used by persistent updates
    implementation: portal.implementation
  };
  return fiber;
}

// Used for stashing WIP properties to replay failed work in DEV.
function assignFiberPropertiesInDEV(target, source) {
  if (target === null) {
    // This Fiber's initial properties will always be overwritten.
    // We only use a Fiber to ensure the same hidden class so DEV isn't slow.
    target = createFiber(IndeterminateComponent, null, null, NoContext);
  }

  // This is intentionally written as a list of all properties.
  // We tried to use Object.assign() instead but this is called in
  // the hottest path, and Object.assign() was too slow:
  // https://github.com/facebook/react/issues/12502
  // This code is DEV-only so size is not a concern.

  target.tag = source.tag;
  target.key = source.key;
  target.elementType = source.elementType;
  target.type = source.type;
  target.stateNode = source.stateNode;
  target.return = source.return;
  target.child = source.child;
  target.sibling = source.sibling;
  target.index = source.index;
  target.ref = source.ref;
  target.pendingProps = source.pendingProps;
  target.memoizedProps = source.memoizedProps;
  target.updateQueue = source.updateQueue;
  target.memoizedState = source.memoizedState;
  target.firstContextDependency = source.firstContextDependency;
  target.mode = source.mode;
  target.effectTag = source.effectTag;
  target.nextEffect = source.nextEffect;
  target.firstEffect = source.firstEffect;
  target.lastEffect = source.lastEffect;
  target.expirationTime = source.expirationTime;
  target.childExpirationTime = source.childExpirationTime;
  target.alternate = source.alternate;
  if (enableProfilerTimer) {
    target.actualDuration = source.actualDuration;
    target.actualStartTime = source.actualStartTime;
    target.selfBaseDuration = source.selfBaseDuration;
    target.treeBaseDuration = source.treeBaseDuration;
  }
  target._debugID = source._debugID;
  target._debugSource = source._debugSource;
  target._debugOwner = source._debugOwner;
  target._debugIsCurrentlyTiming = source._debugIsCurrentlyTiming;
  return target;
}

// TODO: This should be lifted into the renderer.


// The following attributes are only used by interaction tracing builds.
// They enable interactions to be associated with their async work,
// And expose interaction metadata to the React DevTools Profiler plugin.
// Note that these attributes are only defined when the enableSchedulerTracing flag is enabled.


// Exported FiberRoot type includes all properties,
// To avoid requiring potentially error-prone :any casts throughout the project.
// Profiling properties are only safe to access in profiling builds (when enableSchedulerTracing is true).
// The types are defined separately within this file to ensure they stay in sync.
// (We don't have to use an inline :any cast when enableSchedulerTracing is disabled.)


function createFiberRoot(containerInfo, isConcurrent, hydrate) {
  // Cyclic construction. This cheats the type system right now because
  // stateNode is any.
  var uninitializedFiber = createHostRootFiber(isConcurrent);

  var root = void 0;
  if (enableSchedulerTracing) {
    root = {
      current: uninitializedFiber,
      containerInfo: containerInfo,
      pendingChildren: null,

      earliestPendingTime: NoWork,
      latestPendingTime: NoWork,
      earliestSuspendedTime: NoWork,
      latestSuspendedTime: NoWork,
      latestPingedTime: NoWork,

      didError: false,

      pendingCommitExpirationTime: NoWork,
      finishedWork: null,
      timeoutHandle: noTimeout,
      context: null,
      pendingContext: null,
      hydrate: hydrate,
      nextExpirationTimeToWorkOn: NoWork,
      expirationTime: NoWork,
      firstBatch: null,
      nextScheduledRoot: null,

      interactionThreadID: tracing.unstable_getThreadID(),
      memoizedInteractions: new Set(),
      pendingInteractionMap: new Map()
    };
  } else {
    root = {
      current: uninitializedFiber,
      containerInfo: containerInfo,
      pendingChildren: null,

      earliestPendingTime: NoWork,
      latestPendingTime: NoWork,
      earliestSuspendedTime: NoWork,
      latestSuspendedTime: NoWork,
      latestPingedTime: NoWork,

      didError: false,

      pendingCommitExpirationTime: NoWork,
      finishedWork: null,
      timeoutHandle: noTimeout,
      context: null,
      pendingContext: null,
      hydrate: hydrate,
      nextExpirationTimeToWorkOn: NoWork,
      expirationTime: NoWork,
      firstBatch: null,
      nextScheduledRoot: null
    };
  }

  uninitializedFiber.stateNode = root;

  // The reason for the way the Flow types are structured in this file,
  // Is to avoid needing :any casts everywhere interaction tracing fields are used.
  // Unfortunately that requires an :any cast for non-interaction tracing capable builds.
  // $FlowFixMe Remove this :any cast and replace it with something better.
  return root;
}

/**
 * Forked from fbjs/warning:
 * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
 *
 * Only change is we use console.warn instead of console.error,
 * and do nothing when 'console' is not supported.
 * This really simplifies the code.
 * ---
 * Similar to invariant but only logs a warning if the condition is not met.
 * This can be used to log issues in development environments in critical
 * paths. Removing the logging code for production environments will keep the
 * same logic and follow the same code paths.
 */

var lowPriorityWarning = function () {};

{
  var printWarning = function (format) {
    for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
      args[_key - 1] = arguments[_key];
    }

    var argIndex = 0;
    var message = 'Warning: ' + format.replace(/%s/g, function () {
      return args[argIndex++];
    });
    if (typeof console !== 'undefined') {
      console.warn(message);
    }
    try {
      // --- Welcome to debugging React ---
      // This error was thrown as a convenience so that you can use this stack
      // to find the callsite that caused this warning to fire.
      throw new Error(message);
    } catch (x) {}
  };

  lowPriorityWarning = function (condition, format) {
    if (format === undefined) {
      throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
    }
    if (!condition) {
      for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
        args[_key2 - 2] = arguments[_key2];
      }

      printWarning.apply(undefined, [format].concat(args));
    }
  };
}

var lowPriorityWarning$1 = lowPriorityWarning;

var ReactStrictModeWarnings = {
  discardPendingWarnings: function () {},
  flushPendingDeprecationWarnings: function () {},
  flushPendingUnsafeLifecycleWarnings: function () {},
  recordDeprecationWarnings: function (fiber, instance) {},
  recordUnsafeLifecycleWarnings: function (fiber, instance) {},
  recordLegacyContextWarning: function (fiber, instance) {},
  flushLegacyContextWarning: function () {}
};

{
  var LIFECYCLE_SUGGESTIONS = {
    UNSAFE_componentWillMount: 'componentDidMount',
    UNSAFE_componentWillReceiveProps: 'static getDerivedStateFromProps',
    UNSAFE_componentWillUpdate: 'componentDidUpdate'
  };

  var pendingComponentWillMountWarnings = [];
  var pendingComponentWillReceivePropsWarnings = [];
  var pendingComponentWillUpdateWarnings = [];
  var pendingUnsafeLifecycleWarnings = new Map();
  var pendingLegacyContextWarning = new Map();

  // Tracks components we have already warned about.
  var didWarnAboutDeprecatedLifecycles = new Set();
  var didWarnAboutUnsafeLifecycles = new Set();
  var didWarnAboutLegacyContext = new Set();

  var setToSortedString = function (set) {
    var array = [];
    set.forEach(function (value) {
      array.push(value);
    });
    return array.sort().join(', ');
  };

  ReactStrictModeWarnings.discardPendingWarnings = function () {
    pendingComponentWillMountWarnings = [];
    pendingComponentWillReceivePropsWarnings = [];
    pendingComponentWillUpdateWarnings = [];
    pendingUnsafeLifecycleWarnings = new Map();
    pendingLegacyContextWarning = new Map();
  };

  ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () {
    pendingUnsafeLifecycleWarnings.forEach(function (lifecycleWarningsMap, strictRoot) {
      var lifecyclesWarningMesages = [];

      Object.keys(lifecycleWarningsMap).forEach(function (lifecycle) {
        var lifecycleWarnings = lifecycleWarningsMap[lifecycle];
        if (lifecycleWarnings.length > 0) {
          var componentNames = new Set();
          lifecycleWarnings.forEach(function (fiber) {
            componentNames.add(getComponentName(fiber.type) || 'Component');
            didWarnAboutUnsafeLifecycles.add(fiber.type);
          });

          var formatted = lifecycle.replace('UNSAFE_', '');
          var suggestion = LIFECYCLE_SUGGESTIONS[lifecycle];
          var sortedComponentNames = setToSortedString(componentNames);

          lifecyclesWarningMesages.push(formatted + ': Please update the following components to use ' + (suggestion + ' instead: ' + sortedComponentNames));
        }
      });

      if (lifecyclesWarningMesages.length > 0) {
        var strictRootComponentStack = getStackByFiberInDevAndProd(strictRoot);

        warningWithoutStack$1(false, 'Unsafe lifecycle methods were found within a strict-mode tree:%s' + '\n\n%s' + '\n\nLearn more about this warning here:' + '\nhttps://fb.me/react-strict-mode-warnings', strictRootComponentStack, lifecyclesWarningMesages.join('\n\n'));
      }
    });

    pendingUnsafeLifecycleWarnings = new Map();
  };

  var findStrictRoot = function (fiber) {
    var maybeStrictRoot = null;

    var node = fiber;
    while (node !== null) {
      if (node.mode & StrictMode) {
        maybeStrictRoot = node;
      }
      node = node.return;
    }

    return maybeStrictRoot;
  };

  ReactStrictModeWarnings.flushPendingDeprecationWarnings = function () {
    if (pendingComponentWillMountWarnings.length > 0) {
      var uniqueNames = new Set();
      pendingComponentWillMountWarnings.forEach(function (fiber) {
        uniqueNames.add(getComponentName(fiber.type) || 'Component');
        didWarnAboutDeprecatedLifecycles.add(fiber.type);
      });

      var sortedNames = setToSortedString(uniqueNames);

      lowPriorityWarning$1(false, 'componentWillMount is deprecated and will be removed in the next major version. ' + 'Use componentDidMount instead. As a temporary workaround, ' + 'you can rename to UNSAFE_componentWillMount.' + '\n\nPlease update the following components: %s' + '\n\nLearn more about this warning here:' + '\nhttps://fb.me/react-async-component-lifecycle-hooks', sortedNames);

      pendingComponentWillMountWarnings = [];
    }

    if (pendingComponentWillReceivePropsWarnings.length > 0) {
      var _uniqueNames = new Set();
      pendingComponentWillReceivePropsWarnings.forEach(function (fiber) {
        _uniqueNames.add(getComponentName(fiber.type) || 'Component');
        didWarnAboutDeprecatedLifecycles.add(fiber.type);
      });

      var _sortedNames = setToSortedString(_uniqueNames);

      lowPriorityWarning$1(false, 'componentWillReceiveProps is deprecated and will be removed in the next major version. ' + 'Use static getDerivedStateFromProps instead.' + '\n\nPlease update the following components: %s' + '\n\nLearn more about this warning here:' + '\nhttps://fb.me/react-async-component-lifecycle-hooks', _sortedNames);

      pendingComponentWillReceivePropsWarnings = [];
    }

    if (pendingComponentWillUpdateWarnings.length > 0) {
      var _uniqueNames2 = new Set();
      pendingComponentWillUpdateWarnings.forEach(function (fiber) {
        _uniqueNames2.add(getComponentName(fiber.type) || 'Component');
        didWarnAboutDeprecatedLifecycles.add(fiber.type);
      });

      var _sortedNames2 = setToSortedString(_uniqueNames2);

      lowPriorityWarning$1(false, 'componentWillUpdate is deprecated and will be removed in the next major version. ' + 'Use componentDidUpdate instead. As a temporary workaround, ' + 'you can rename to UNSAFE_componentWillUpdate.' + '\n\nPlease update the following components: %s' + '\n\nLearn more about this warning here:' + '\nhttps://fb.me/react-async-component-lifecycle-hooks', _sortedNames2);

      pendingComponentWillUpdateWarnings = [];
    }
  };

  ReactStrictModeWarnings.recordDeprecationWarnings = function (fiber, instance) {
    // Dedup strategy: Warn once per component.
    if (didWarnAboutDeprecatedLifecycles.has(fiber.type)) {
      return;
    }

    // Don't warn about react-lifecycles-compat polyfilled components.
    if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {
      pendingComponentWillMountWarnings.push(fiber);
    }
    if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
      pendingComponentWillReceivePropsWarnings.push(fiber);
    }
    if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
      pendingComponentWillUpdateWarnings.push(fiber);
    }
  };

  ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) {
    var strictRoot = findStrictRoot(fiber);
    if (strictRoot === null) {
      warningWithoutStack$1(false, 'Expected to find a StrictMode component in a strict mode tree. ' + 'This error is likely caused by a bug in React. Please file an issue.');
      return;
    }

    // Dedup strategy: Warn once per component.
    // This is difficult to track any other way since component names
    // are often vague and are likely to collide between 3rd party libraries.
    // An expand property is probably okay to use here since it's DEV-only,
    // and will only be set in the event of serious warnings.
    if (didWarnAboutUnsafeLifecycles.has(fiber.type)) {
      return;
    }

    var warningsForRoot = void 0;
    if (!pendingUnsafeLifecycleWarnings.has(strictRoot)) {
      warningsForRoot = {
        UNSAFE_componentWillMount: [],
        UNSAFE_componentWillReceiveProps: [],
        UNSAFE_componentWillUpdate: []
      };

      pendingUnsafeLifecycleWarnings.set(strictRoot, warningsForRoot);
    } else {
      warningsForRoot = pendingUnsafeLifecycleWarnings.get(strictRoot);
    }

    var unsafeLifecycles = [];
    if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true || typeof instance.UNSAFE_componentWillMount === 'function') {
      unsafeLifecycles.push('UNSAFE_componentWillMount');
    }
    if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true || typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
      unsafeLifecycles.push('UNSAFE_componentWillReceiveProps');
    }
    if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true || typeof instance.UNSAFE_componentWillUpdate === 'function') {
      unsafeLifecycles.push('UNSAFE_componentWillUpdate');
    }

    if (unsafeLifecycles.length > 0) {
      unsafeLifecycles.forEach(function (lifecycle) {
        warningsForRoot[lifecycle].push(fiber);
      });
    }
  };

  ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) {
    var strictRoot = findStrictRoot(fiber);
    if (strictRoot === null) {
      warningWithoutStack$1(false, 'Expected to find a StrictMode component in a strict mode tree. ' + 'This error is likely caused by a bug in React. Please file an issue.');
      return;
    }

    // Dedup strategy: Warn once per component.
    if (didWarnAboutLegacyContext.has(fiber.type)) {
      return;
    }

    var warningsForRoot = pendingLegacyContextWarning.get(strictRoot);

    if (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext === 'function') {
      if (warningsForRoot === undefined) {
        warningsForRoot = [];
        pendingLegacyContextWarning.set(strictRoot, warningsForRoot);
      }
      warningsForRoot.push(fiber);
    }
  };

  ReactStrictModeWarnings.flushLegacyContextWarning = function () {
    pendingLegacyContextWarning.forEach(function (fiberArray, strictRoot) {
      var uniqueNames = new Set();
      fiberArray.forEach(function (fiber) {
        uniqueNames.add(getComponentName(fiber.type) || 'Component');
        didWarnAboutLegacyContext.add(fiber.type);
      });

      var sortedNames = setToSortedString(uniqueNames);
      var strictRootComponentStack = getStackByFiberInDevAndProd(strictRoot);

      warningWithoutStack$1(false, 'Legacy context API has been detected within a strict-mode tree: %s' + '\n\nPlease update the following components: %s' + '\n\nLearn more about this warning here:' + '\nhttps://fb.me/react-strict-mode-warnings', strictRootComponentStack, sortedNames);
    });
  };
}

// This lets us hook into Fiber to debug what it's doing.
// See https://github.com/facebook/react/pull/8033.
// This is not part of the public API, not even for React DevTools.
// You may only inject a debugTool if you work on React Fiber itself.
var ReactFiberInstrumentation = {
  debugTool: null
};

var ReactFiberInstrumentation_1 = ReactFiberInstrumentation;

// TODO: Offscreen updates should never suspend. However, a promise that
// suspended inside an offscreen subtree should be able to ping at the priority
// of the outer render.

function markPendingPriorityLevel(root, expirationTime) {
  // If there's a gap between completing a failed root and retrying it,
  // additional updates may be scheduled. Clear `didError`, in case the update
  // is sufficient to fix the error.
  root.didError = false;

  // Update the latest and earliest pending times
  var earliestPendingTime = root.earliestPendingTime;
  if (earliestPendingTime === NoWork) {
    // No other pending updates.
    root.earliestPendingTime = root.latestPendingTime = expirationTime;
  } else {
    if (earliestPendingTime < expirationTime) {
      // This is the earliest pending update.
      root.earliestPendingTime = expirationTime;
    } else {
      var latestPendingTime = root.latestPendingTime;
      if (latestPendingTime > expirationTime) {
        // This is the latest pending update
        root.latestPendingTime = expirationTime;
      }
    }
  }
  findNextExpirationTimeToWorkOn(expirationTime, root);
}

function markCommittedPriorityLevels(root, earliestRemainingTime) {
  root.didError = false;

  if (earliestRemainingTime === NoWork) {
    // Fast path. There's no remaining work. Clear everything.
    root.earliestPendingTime = NoWork;
    root.latestPendingTime = NoWork;
    root.earliestSuspendedTime = NoWork;
    root.latestSuspendedTime = NoWork;
    root.latestPingedTime = NoWork;
    findNextExpirationTimeToWorkOn(NoWork, root);
    return;
  }

  // Let's see if the previous latest known pending level was just flushed.
  var latestPendingTime = root.latestPendingTime;
  if (latestPendingTime !== NoWork) {
    if (latestPendingTime > earliestRemainingTime) {
      // We've flushed all the known pending levels.
      root.earliestPendingTime = root.latestPendingTime = NoWork;
    } else {
      var earliestPendingTime = root.earliestPendingTime;
      if (earliestPendingTime > earliestRemainingTime) {
        // We've flushed the earliest known pending level. Set this to the
        // latest pending time.
        root.earliestPendingTime = root.latestPendingTime;
      }
    }
  }

  // Now let's handle the earliest remaining level in the whole tree. We need to
  // decide whether to treat it as a pending level or as suspended. Check
  // it falls within the range of known suspended levels.

  var earliestSuspendedTime = root.earliestSuspendedTime;
  if (earliestSuspendedTime === NoWork) {
    // There's no suspended work. Treat the earliest remaining level as a
    // pending level.
    markPendingPriorityLevel(root, earliestRemainingTime);
    findNextExpirationTimeToWorkOn(NoWork, root);
    return;
  }

  var latestSuspendedTime = root.latestSuspendedTime;
  if (earliestRemainingTime < latestSuspendedTime) {
    // The earliest remaining level is later than all the suspended work. That
    // means we've flushed all the suspended work.
    root.earliestSuspendedTime = NoWork;
    root.latestSuspendedTime = NoWork;
    root.latestPingedTime = NoWork;

    // There's no suspended work. Treat the earliest remaining level as a
    // pending level.
    markPendingPriorityLevel(root, earliestRemainingTime);
    findNextExpirationTimeToWorkOn(NoWork, root);
    return;
  }

  if (earliestRemainingTime > earliestSuspendedTime) {
    // The earliest remaining time is earlier than all the suspended work.
    // Treat it as a pending update.
    markPendingPriorityLevel(root, earliestRemainingTime);
    findNextExpirationTimeToWorkOn(NoWork, root);
    return;
  }

  // The earliest remaining time falls within the range of known suspended
  // levels. We should treat this as suspended work.
  findNextExpirationTimeToWorkOn(NoWork, root);
}

function hasLowerPriorityWork(root, erroredExpirationTime) {
  var latestPendingTime = root.latestPendingTime;
  var latestSuspendedTime = root.latestSuspendedTime;
  var latestPingedTime = root.latestPingedTime;
  return latestPendingTime !== NoWork && latestPendingTime < erroredExpirationTime || latestSuspendedTime !== NoWork && latestSuspendedTime < erroredExpirationTime || latestPingedTime !== NoWork && latestPingedTime < erroredExpirationTime;
}

function isPriorityLevelSuspended(root, expirationTime) {
  var earliestSuspendedTime = root.earliestSuspendedTime;
  var latestSuspendedTime = root.latestSuspendedTime;
  return earliestSuspendedTime !== NoWork && expirationTime <= earliestSuspendedTime && expirationTime >= latestSuspendedTime;
}

function markSuspendedPriorityLevel(root, suspendedTime) {
  root.didError = false;
  clearPing(root, suspendedTime);

  // First, check the known pending levels and update them if needed.
  var earliestPendingTime = root.earliestPendingTime;
  var latestPendingTime = root.latestPendingTime;
  if (earliestPendingTime === suspendedTime) {
    if (latestPendingTime === suspendedTime) {
      // Both known pending levels were suspended. Clear them.
      root.earliestPendingTime = root.latestPendingTime = NoWork;
    } else {
      // The earliest pending level was suspended. Clear by setting it to the
      // latest pending level.
      root.earliestPendingTime = latestPendingTime;
    }
  } else if (latestPendingTime === suspendedTime) {
    // The latest pending level was suspended. Clear by setting it to the
    // latest pending level.
    root.latestPendingTime = earliestPendingTime;
  }

  // Finally, update the known suspended levels.
  var earliestSuspendedTime = root.earliestSuspendedTime;
  var latestSuspendedTime = root.latestSuspendedTime;
  if (earliestSuspendedTime === NoWork) {
    // No other suspended levels.
    root.earliestSuspendedTime = root.latestSuspendedTime = suspendedTime;
  } else {
    if (earliestSuspendedTime < suspendedTime) {
      // This is the earliest suspended level.
      root.earliestSuspendedTime = suspendedTime;
    } else if (latestSuspendedTime > suspendedTime) {
      // This is the latest suspended level
      root.latestSuspendedTime = suspendedTime;
    }
  }

  findNextExpirationTimeToWorkOn(suspendedTime, root);
}

function markPingedPriorityLevel(root, pingedTime) {
  root.didError = false;

  // TODO: When we add back resuming, we need to ensure the progressed work
  // is thrown out and not reused during the restarted render. One way to
  // invalidate the progressed work is to restart at expirationTime + 1.
  var latestPingedTime = root.latestPingedTime;
  if (latestPingedTime === NoWork || latestPingedTime > pingedTime) {
    root.latestPingedTime = pingedTime;
  }
  findNextExpirationTimeToWorkOn(pingedTime, root);
}

function clearPing(root, completedTime) {
  // TODO: Track whether the root was pinged during the render phase. If so,
  // we need to make sure we don't lose track of it.
  var latestPingedTime = root.latestPingedTime;
  if (latestPingedTime !== NoWork && latestPingedTime >= completedTime) {
    root.latestPingedTime = NoWork;
  }
}

function findEarliestOutstandingPriorityLevel(root, renderExpirationTime) {
  var earliestExpirationTime = renderExpirationTime;

  var earliestPendingTime = root.earliestPendingTime;
  var earliestSuspendedTime = root.earliestSuspendedTime;
  if (earliestPendingTime > earliestExpirationTime) {
    earliestExpirationTime = earliestPendingTime;
  }
  if (earliestSuspendedTime > earliestExpirationTime) {
    earliestExpirationTime = earliestSuspendedTime;
  }
  return earliestExpirationTime;
}

function didExpireAtExpirationTime(root, currentTime) {
  var expirationTime = root.expirationTime;
  if (expirationTime !== NoWork && currentTime <= expirationTime) {
    // The root has expired. Flush all work up to the current time.
    root.nextExpirationTimeToWorkOn = currentTime;
  }
}

function findNextExpirationTimeToWorkOn(completedExpirationTime, root) {
  var earliestSuspendedTime = root.earliestSuspendedTime;
  var latestSuspendedTime = root.latestSuspendedTime;
  var earliestPendingTime = root.earliestPendingTime;
  var latestPingedTime = root.latestPingedTime;

  // Work on the earliest pending time. Failing that, work on the latest
  // pinged time.
  var nextExpirationTimeToWorkOn = earliestPendingTime !== NoWork ? earliestPendingTime : latestPingedTime;

  // If there is no pending or pinged work, check if there's suspended work
  // that's lower priority than what we just completed.
  if (nextExpirationTimeToWorkOn === NoWork && (completedExpirationTime === NoWork || latestSuspendedTime < completedExpirationTime)) {
    // The lowest priority suspended work is the work most likely to be
    // committed next. Let's start rendering it again, so that if it times out,
    // it's ready to commit.
    nextExpirationTimeToWorkOn = latestSuspendedTime;
  }

  var expirationTime = nextExpirationTimeToWorkOn;
  if (expirationTime !== NoWork && earliestSuspendedTime > expirationTime) {
    // Expire using the earliest known expiration time.
    expirationTime = earliestSuspendedTime;
  }

  root.nextExpirationTimeToWorkOn = nextExpirationTimeToWorkOn;
  root.expirationTime = expirationTime;
}

// UpdateQueue is a linked list of prioritized updates.
//
// Like fibers, update queues come in pairs: a current queue, which represents
// the visible state of the screen, and a work-in-progress queue, which is
// can be mutated and processed asynchronously before it is committed — a form
// of double buffering. If a work-in-progress render is discarded before
// finishing, we create a new work-in-progress by cloning the current queue.
//
// Both queues share a persistent, singly-linked list structure. To schedule an
// update, we append it to the end of both queues. Each queue maintains a
// pointer to first update in the persistent list that hasn't been processed.
// The work-in-progress pointer always has a position equal to or greater than
// the current queue, since we always work on that one. The current queue's
// pointer is only updated during the commit phase, when we swap in the
// work-in-progress.
//
// For example:
//
//   Current pointer:           A - B - C - D - E - F
//   Work-in-progress pointer:              D - E - F
//                                          ^
//                                          The work-in-progress queue has
//                                          processed more updates than current.
//
// The reason we append to both queues is because otherwise we might drop
// updates without ever processing them. For example, if we only add updates to
// the work-in-progress queue, some updates could be lost whenever a work-in
// -progress render restarts by cloning from current. Similarly, if we only add
// updates to the current queue, the updates will be lost whenever an already
// in-progress queue commits and swaps with the current queue. However, by
// adding to both queues, we guarantee that the update will be part of the next
// work-in-progress. (And because the work-in-progress queue becomes the
// current queue once it commits, there's no danger of applying the same
// update twice.)
//
// Prioritization
// --------------
//
// Updates are not sorted by priority, but by insertion; new updates are always
// appended to the end of the list.
//
// The priority is still important, though. When processing the update queue
// during the render phase, only the updates with sufficient priority are
// included in the result. If we skip an update because it has insufficient
// priority, it remains in the queue to be processed later, during a lower
// priority render. Crucially, all updates subsequent to a skipped update also
// remain in the queue *regardless of their priority*. That means high priority
// updates are sometimes processed twice, at two separate priorities. We also
// keep track of a base state, that represents the state before the first
// update in the queue is applied.
//
// For example:
//
//   Given a base state of '', and the following queue of updates
//
//     A1 - B2 - C1 - D2
//
//   where the number indicates the priority, and the update is applied to the
//   previous state by appending a letter, React will process these updates as
//   two separate renders, one per distinct priority level:
//
//   First render, at priority 1:
//     Base state: ''
//     Updates: [A1, C1]
//     Result state: 'AC'
//
//   Second render, at priority 2:
//     Base state: 'A'            <-  The base state does not include C1,
//                                    because B2 was skipped.
//     Updates: [B2, C1, D2]      <-  C1 was rebased on top of B2
//     Result state: 'ABCD'
//
// Because we process updates in insertion order, and rebase high priority
// updates when preceding updates are skipped, the final result is deterministic
// regardless of priority. Intermediate state may vary according to system
// resources, but the final state is always the same.

var UpdateState = 0;
var ReplaceState = 1;
var ForceUpdate = 2;
var CaptureUpdate = 3;

// Global state that is reset at the beginning of calling `processUpdateQueue`.
// It should only be read right after calling `processUpdateQueue`, via
// `checkHasForceUpdateAfterProcessing`.
var hasForceUpdate = false;

var didWarnUpdateInsideUpdate = void 0;
var currentlyProcessingQueue = void 0;
var resetCurrentlyProcessingQueue = void 0;
{
  didWarnUpdateInsideUpdate = false;
  currentlyProcessingQueue = null;
  resetCurrentlyProcessingQueue = function () {
    currentlyProcessingQueue = null;
  };
}

function createUpdateQueue(baseState) {
  var queue = {
    baseState: baseState,
    firstUpdate: null,
    lastUpdate: null,
    firstCapturedUpdate: null,
    lastCapturedUpdate: null,
    firstEffect: null,
    lastEffect: null,
    firstCapturedEffect: null,
    lastCapturedEffect: null
  };
  return queue;
}

function cloneUpdateQueue(currentQueue) {
  var queue = {
    baseState: currentQueue.baseState,
    firstUpdate: currentQueue.firstUpdate,
    lastUpdate: currentQueue.lastUpdate,

    // TODO: With resuming, if we bail out and resuse the child tree, we should
    // keep these effects.
    firstCapturedUpdate: null,
    lastCapturedUpdate: null,

    firstEffect: null,
    lastEffect: null,

    firstCapturedEffect: null,
    lastCapturedEffect: null
  };
  return queue;
}

function createUpdate(expirationTime) {
  return {
    expirationTime: expirationTime,

    tag: UpdateState,
    payload: null,
    callback: null,

    next: null,
    nextEffect: null
  };
}

function appendUpdateToQueue(queue, update) {
  // Append the update to the end of the list.
  if (queue.lastUpdate === null) {
    // Queue is empty
    queue.firstUpdate = queue.lastUpdate = update;
  } else {
    queue.lastUpdate.next = update;
    queue.lastUpdate = update;
  }
}

function enqueueUpdate(fiber, update) {
  // Update queues are created lazily.
  var alternate = fiber.alternate;
  var queue1 = void 0;
  var queue2 = void 0;
  if (alternate === null) {
    // There's only one fiber.
    queue1 = fiber.updateQueue;
    queue2 = null;
    if (queue1 === null) {
      queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState);
    }
  } else {
    // There are two owners.
    queue1 = fiber.updateQueue;
    queue2 = alternate.updateQueue;
    if (queue1 === null) {
      if (queue2 === null) {
        // Neither fiber has an update queue. Create new ones.
        queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState);
        queue2 = alternate.updateQueue = createUpdateQueue(alternate.memoizedState);
      } else {
        // Only one fiber has an update queue. Clone to create a new one.
        queue1 = fiber.updateQueue = cloneUpdateQueue(queue2);
      }
    } else {
      if (queue2 === null) {
        // Only one fiber has an update queue. Clone to create a new one.
        queue2 = alternate.updateQueue = cloneUpdateQueue(queue1);
      } else {
        // Both owners have an update queue.
      }
    }
  }
  if (queue2 === null || queue1 === queue2) {
    // There's only a single queue.
    appendUpdateToQueue(queue1, update);
  } else {
    // There are two queues. We need to append the update to both queues,
    // while accounting for the persistent structure of the list — we don't
    // want the same update to be added multiple times.
    if (queue1.lastUpdate === null || queue2.lastUpdate === null) {
      // One of the queues is not empty. We must add the update to both queues.
      appendUpdateToQueue(queue1, update);
      appendUpdateToQueue(queue2, update);
    } else {
      // Both queues are non-empty. The last update is the same in both lists,
      // because of structural sharing. So, only append to one of the lists.
      appendUpdateToQueue(queue1, update);
      // But we still need to update the `lastUpdate` pointer of queue2.
      queue2.lastUpdate = update;
    }
  }

  {
    if (fiber.tag === ClassComponent && (currentlyProcessingQueue === queue1 || queue2 !== null && currentlyProcessingQueue === queue2) && !didWarnUpdateInsideUpdate) {
      warningWithoutStack$1(false, 'An update (setState, replaceState, or forceUpdate) was scheduled ' + 'from inside an update function. Update functions should be pure, ' + 'with zero side-effects. Consider using componentDidUpdate or a ' + 'callback.');
      didWarnUpdateInsideUpdate = true;
    }
  }
}

function enqueueCapturedUpdate(workInProgress, update) {
  // Captured updates go into a separate list, and only on the work-in-
  // progress queue.
  var workInProgressQueue = workInProgress.updateQueue;
  if (workInProgressQueue === null) {
    workInProgressQueue = workInProgress.updateQueue = createUpdateQueue(workInProgress.memoizedState);
  } else {
    // TODO: I put this here rather than createWorkInProgress so that we don't
    // clone the queue unnecessarily. There's probably a better way to
    // structure this.
    workInProgressQueue = ensureWorkInProgressQueueIsAClone(workInProgress, workInProgressQueue);
  }

  // Append the update to the end of the list.
  if (workInProgressQueue.lastCapturedUpdate === null) {
    // This is the first render phase update
    workInProgressQueue.firstCapturedUpdate = workInProgressQueue.lastCapturedUpdate = update;
  } else {
    workInProgressQueue.lastCapturedUpdate.next = update;
    workInProgressQueue.lastCapturedUpdate = update;
  }
}

function ensureWorkInProgressQueueIsAClone(workInProgress, queue) {
  var current = workInProgress.alternate;
  if (current !== null) {
    // If the work-in-progress queue is equal to the current queue,
    // we need to clone it first.
    if (queue === current.updateQueue) {
      queue = workInProgress.updateQueue = cloneUpdateQueue(queue);
    }
  }
  return queue;
}

function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) {
  switch (update.tag) {
    case ReplaceState:
      {
        var _payload = update.payload;
        if (typeof _payload === 'function') {
          // Updater function
          {
            if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
              _payload.call(instance, prevState, nextProps);
            }
          }
          return _payload.call(instance, prevState, nextProps);
        }
        // State object
        return _payload;
      }
    case CaptureUpdate:
      {
        workInProgress.effectTag = workInProgress.effectTag & ~ShouldCapture | DidCapture;
      }
    // Intentional fallthrough
    case UpdateState:
      {
        var _payload2 = update.payload;
        var partialState = void 0;
        if (typeof _payload2 === 'function') {
          // Updater function
          {
            if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
              _payload2.call(instance, prevState, nextProps);
            }
          }
          partialState = _payload2.call(instance, prevState, nextProps);
        } else {
          // Partial state object
          partialState = _payload2;
        }
        if (partialState === null || partialState === undefined) {
          // Null and undefined are treated as no-ops.
          return prevState;
        }
        // Merge the partial state and the previous state.
        return _assign({}, prevState, partialState);
      }
    case ForceUpdate:
      {
        hasForceUpdate = true;
        return prevState;
      }
  }
  return prevState;
}

function processUpdateQueue(workInProgress, queue, props, instance, renderExpirationTime) {
  hasForceUpdate = false;

  queue = ensureWorkInProgressQueueIsAClone(workInProgress, queue);

  {
    currentlyProcessingQueue = queue;
  }

  // These values may change as we process the queue.
  var newBaseState = queue.baseState;
  var newFirstUpdate = null;
  var newExpirationTime = NoWork;

  // Iterate through the list of updates to compute the result.
  var update = queue.firstUpdate;
  var resultState = newBaseState;
  while (update !== null) {
    var updateExpirationTime = update.expirationTime;
    if (updateExpirationTime < renderExpirationTime) {
      // This update does not have sufficient priority. Skip it.
      if (newFirstUpdate === null) {
        // This is the first skipped update. It will be the first update in
        // the new list.
        newFirstUpdate = update;
        // Since this is the first update that was skipped, the current result
        // is the new base state.
        newBaseState = resultState;
      }
      // Since this update will remain in the list, update the remaining
      // expiration time.
      if (newExpirationTime < updateExpirationTime) {
        newExpirationTime = updateExpirationTime;
      }
    } else {
      // This update does have sufficient priority. Process it and compute
      // a new result.
      resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance);
      var _callback = update.callback;
      if (_callback !== null) {
        workInProgress.effectTag |= Callback;
        // Set this to null, in case it was mutated during an aborted render.
        update.nextEffect = null;
        if (queue.lastEffect === null) {
          queue.firstEffect = queue.lastEffect = update;
        } else {
          queue.lastEffect.nextEffect = update;
          queue.lastEffect = update;
        }
      }
    }
    // Continue to the next update.
    update = update.next;
  }

  // Separately, iterate though the list of captured updates.
  var newFirstCapturedUpdate = null;
  update = queue.firstCapturedUpdate;
  while (update !== null) {
    var _updateExpirationTime = update.expirationTime;
    if (_updateExpirationTime < renderExpirationTime) {
      // This update does not have sufficient priority. Skip it.
      if (newFirstCapturedUpdate === null) {
        // This is the first skipped captured update. It will be the first
        // update in the new list.
        newFirstCapturedUpdate = update;
        // If this is the first update that was skipped, the current result is
        // the new base state.
        if (newFirstUpdate === null) {
          newBaseState = resultState;
        }
      }
      // Since this update will remain in the list, update the remaining
      // expiration time.
      if (newExpirationTime < _updateExpirationTime) {
        newExpirationTime = _updateExpirationTime;
      }
    } else {
      // This update does have sufficient priority. Process it and compute
      // a new result.
      resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance);
      var _callback2 = update.callback;
      if (_callback2 !== null) {
        workInProgress.effectTag |= Callback;
        // Set this to null, in case it was mutated during an aborted render.
        update.nextEffect = null;
        if (queue.lastCapturedEffect === null) {
          queue.firstCapturedEffect = queue.lastCapturedEffect = update;
        } else {
          queue.lastCapturedEffect.nextEffect = update;
          queue.lastCapturedEffect = update;
        }
      }
    }
    update = update.next;
  }

  if (newFirstUpdate === null) {
    queue.lastUpdate = null;
  }
  if (newFirstCapturedUpdate === null) {
    queue.lastCapturedUpdate = null;
  } else {
    workInProgress.effectTag |= Callback;
  }
  if (newFirstUpdate === null && newFirstCapturedUpdate === null) {
    // We processed every update, without skipping. That means the new base
    // state is the same as the result state.
    newBaseState = resultState;
  }

  queue.baseState = newBaseState;
  queue.firstUpdate = newFirstUpdate;
  queue.firstCapturedUpdate = newFirstCapturedUpdate;

  // Set the remaining expiration time to be whatever is remaining in the queue.
  // This should be fine because the only two other things that contribute to
  // expiration time are props and context. We're already in the middle of the
  // begin phase by the time we start processing the queue, so we've already
  // dealt with the props. Context in components that specify
  // shouldComponentUpdate is tricky; but we'll have to account for
  // that regardless.
  workInProgress.expirationTime = newExpirationTime;
  workInProgress.memoizedState = resultState;

  {
    currentlyProcessingQueue = null;
  }
}

function callCallback(callback, context) {
  !(typeof callback === 'function') ? invariant(false, 'Invalid argument passed as callback. Expected a function. Instead received: %s', callback) : void 0;
  callback.call(context);
}

function resetHasForceUpdateBeforeProcessing() {
  hasForceUpdate = false;
}

function checkHasForceUpdateAfterProcessing() {
  return hasForceUpdate;
}

function commitUpdateQueue(finishedWork, finishedQueue, instance, renderExpirationTime) {
  // If the finished render included captured updates, and there are still
  // lower priority updates left over, we need to keep the captured updates
  // in the queue so that they are rebased and not dropped once we process the
  // queue again at the lower priority.
  if (finishedQueue.firstCapturedUpdate !== null) {
    // Join the captured update list to the end of the normal list.
    if (finishedQueue.lastUpdate !== null) {
      finishedQueue.lastUpdate.next = finishedQueue.firstCapturedUpdate;
      finishedQueue.lastUpdate = finishedQueue.lastCapturedUpdate;
    }
    // Clear the list of captured updates.
    finishedQueue.firstCapturedUpdate = finishedQueue.lastCapturedUpdate = null;
  }

  // Commit the effects
  commitUpdateEffects(finishedQueue.firstEffect, instance);
  finishedQueue.firstEffect = finishedQueue.lastEffect = null;

  commitUpdateEffects(finishedQueue.firstCapturedEffect, instance);
  finishedQueue.firstCapturedEffect = finishedQueue.lastCapturedEffect = null;
}

function commitUpdateEffects(effect, instance) {
  while (effect !== null) {
    var _callback3 = effect.callback;
    if (_callback3 !== null) {
      effect.callback = null;
      callCallback(_callback3, instance);
    }
    effect = effect.nextEffect;
  }
}

function createCapturedValue(value, source) {
  // If the value is an error, call this function immediately after it is thrown
  // so the stack is accurate.
  return {
    value: value,
    source: source,
    stack: getStackByFiberInDevAndProd(source)
  };
}

var valueCursor = createCursor(null);

var rendererSigil = void 0;
{
  // Use this to detect multiple renderers using the same context
  rendererSigil = {};
}

var currentlyRenderingFiber = null;
var lastContextDependency = null;
var lastContextWithAllBitsObserved = null;

function resetContextDependences() {
  // This is called right before React yields execution, to ensure `readContext`
  // cannot be called outside the render phase.
  currentlyRenderingFiber = null;
  lastContextDependency = null;
  lastContextWithAllBitsObserved = null;
}

function pushProvider(providerFiber, nextValue) {
  var context = providerFiber.type._context;

  if (isPrimaryRenderer) {
    push(valueCursor, context._currentValue, providerFiber);

    context._currentValue = nextValue;
    {
      !(context._currentRenderer === undefined || context._currentRenderer === null || context._currentRenderer === rendererSigil) ? warningWithoutStack$1(false, 'Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.') : void 0;
      context._currentRenderer = rendererSigil;
    }
  } else {
    push(valueCursor, context._currentValue2, providerFiber);

    context._currentValue2 = nextValue;
    {
      !(context._currentRenderer2 === undefined || context._currentRenderer2 === null || context._currentRenderer2 === rendererSigil) ? warningWithoutStack$1(false, 'Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.') : void 0;
      context._currentRenderer2 = rendererSigil;
    }
  }
}

function popProvider(providerFiber) {
  var currentValue = valueCursor.current;

  pop(valueCursor, providerFiber);

  var context = providerFiber.type._context;
  if (isPrimaryRenderer) {
    context._currentValue = currentValue;
  } else {
    context._currentValue2 = currentValue;
  }
}

function calculateChangedBits(context, newValue, oldValue) {
  // Use Object.is to compare the new context value to the old value. Inlined
  // Object.is polyfill.
  // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  if (oldValue === newValue && (oldValue !== 0 || 1 / oldValue === 1 / newValue) || oldValue !== oldValue && newValue !== newValue // eslint-disable-line no-self-compare
  ) {
      // No change
      return 0;
    } else {
    var changedBits = typeof context._calculateChangedBits === 'function' ? context._calculateChangedBits(oldValue, newValue) : maxSigned31BitInt;

    {
      !((changedBits & maxSigned31BitInt) === changedBits) ? warning$1(false, 'calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: %s', changedBits) : void 0;
    }
    return changedBits | 0;
  }
}

function propagateContextChange(workInProgress, context, changedBits, renderExpirationTime) {
  var fiber = workInProgress.child;
  if (fiber !== null) {
    // Set the return pointer of the child to the work-in-progress fiber.
    fiber.return = workInProgress;
  }
  while (fiber !== null) {
    var nextFiber = void 0;

    // Visit this fiber.
    var dependency = fiber.firstContextDependency;
    if (dependency !== null) {
      do {
        // Check if the context matches.
        if (dependency.context === context && (dependency.observedBits & changedBits) !== 0) {
          // Match! Schedule an update on this fiber.

          if (fiber.tag === ClassComponent) {
            // Schedule a force update on the work-in-progress.
            var update = createUpdate(renderExpirationTime);
            update.tag = ForceUpdate;
            // TODO: Because we don't have a work-in-progress, this will add the
            // update to the current fiber, too, which means it will persist even if
            // this render is thrown away. Since it's a race condition, not sure it's
            // worth fixing.
            enqueueUpdate(fiber, update);
          }

          if (fiber.expirationTime < renderExpirationTime) {
            fiber.expirationTime = renderExpirationTime;
          }
          var alternate = fiber.alternate;
          if (alternate !== null && alternate.expirationTime < renderExpirationTime) {
            alternate.expirationTime = renderExpirationTime;
          }
          // Update the child expiration time of all the ancestors, including
          // the alternates.
          var node = fiber.return;
          while (node !== null) {
            alternate = node.alternate;
            if (node.childExpirationTime < renderExpirationTime) {
              node.childExpirationTime = renderExpirationTime;
              if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) {
                alternate.childExpirationTime = renderExpirationTime;
              }
            } else if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) {
              alternate.childExpirationTime = renderExpirationTime;
            } else {
              // Neither alternate was updated, which means the rest of the
              // ancestor path already has sufficient priority.
              break;
            }
            node = node.return;
          }
        }
        nextFiber = fiber.child;
        dependency = dependency.next;
      } while (dependency !== null);
    } else if (fiber.tag === ContextProvider) {
      // Don't scan deeper if this is a matching provider
      nextFiber = fiber.type === workInProgress.type ? null : fiber.child;
    } else {
      // Traverse down.
      nextFiber = fiber.child;
    }

    if (nextFiber !== null) {
      // Set the return pointer of the child to the work-in-progress fiber.
      nextFiber.return = fiber;
    } else {
      // No child. Traverse to next sibling.
      nextFiber = fiber;
      while (nextFiber !== null) {
        if (nextFiber === workInProgress) {
          // We're back to the root of this subtree. Exit.
          nextFiber = null;
          break;
        }
        var sibling = nextFiber.sibling;
        if (sibling !== null) {
          // Set the return pointer of the sibling to the work-in-progress fiber.
          sibling.return = nextFiber.return;
          nextFiber = sibling;
          break;
        }
        // No more siblings. Traverse up.
        nextFiber = nextFiber.return;
      }
    }
    fiber = nextFiber;
  }
}

function prepareToReadContext(workInProgress, renderExpirationTime) {
  currentlyRenderingFiber = workInProgress;
  lastContextDependency = null;
  lastContextWithAllBitsObserved = null;

  // Reset the work-in-progress list
  workInProgress.firstContextDependency = null;
}

function readContext(context, observedBits) {
  if (lastContextWithAllBitsObserved === context) {
    // Nothing to do. We already observe everything in this context.
  } else if (observedBits === false || observedBits === 0) {
    // Do not observe any updates.
  } else {
    var resolvedObservedBits = void 0; // Avoid deopting on observable arguments or heterogeneous types.
    if (typeof observedBits !== 'number' || observedBits === maxSigned31BitInt) {
      // Observe all updates.
      lastContextWithAllBitsObserved = context;
      resolvedObservedBits = maxSigned31BitInt;
    } else {
      resolvedObservedBits = observedBits;
    }

    var contextItem = {
      context: context,
      observedBits: resolvedObservedBits,
      next: null
    };

    if (lastContextDependency === null) {
      !(currentlyRenderingFiber !== null) ? invariant(false, 'Context can only be read while React is rendering, e.g. inside the render method or getDerivedStateFromProps.') : void 0;
      // This is the first dependency in the list
      currentlyRenderingFiber.firstContextDependency = lastContextDependency = contextItem;
    } else {
      // Append a new context item.
      lastContextDependency = lastContextDependency.next = contextItem;
    }
  }
  return isPrimaryRenderer ? context._currentValue : context._currentValue2;
}

var NoEffect$1 = /*             */0;
var UnmountSnapshot = /*      */2;
var UnmountMutation = /*      */4;
var MountMutation = /*        */8;
var UnmountLayout = /*        */16;
var MountLayout = /*          */32;
var MountPassive = /*         */64;
var UnmountPassive = /*       */128;

function areHookInputsEqual(arr1, arr2) {
  // Don't bother comparing lengths in prod because these arrays should be
  // passed inline.
  {
    !(arr1.length === arr2.length) ? warning$1(false, 'Detected a variable number of hook dependencies. The length of the ' + 'dependencies array should be constant between renders.\n\n' + 'Previous: %s\n' + 'Incoming: %s', arr1.join(', '), arr2.join(', ')) : void 0;
  }
  for (var i = 0; i < arr1.length; i++) {
    // Inlined Object.is polyfill.
    // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
    var val1 = arr1[i];
    var val2 = arr2[i];
    if (val1 === val2 && (val1 !== 0 || 1 / val1 === 1 / val2) || val1 !== val1 && val2 !== val2 // eslint-disable-line no-self-compare
    ) {
        continue;
      }
    return false;
  }
  return true;
}

// These are set right before calling the component.
var renderExpirationTime = NoWork;
// The work-in-progress fiber. I've named it differently to distinguish it from
// the work-in-progress hook.
var currentlyRenderingFiber$1 = null;

// Hooks are stored as a linked list on the fiber's memoizedState field. The
// current hook list is the list that belongs to the current fiber. The
// work-in-progress hook list is a new list that will be added to the
// work-in-progress fiber.
var firstCurrentHook = null;
var currentHook = null;
var firstWorkInProgressHook = null;
var workInProgressHook = null;

var remainingExpirationTime = NoWork;
var componentUpdateQueue = null;

// Updates scheduled during render will trigger an immediate re-render at the
// end of the current pass. We can't store these updates on the normal queue,
// because if the work is aborted, they should be discarded. Because this is
// a relatively rare case, we also don't want to add an additional field to
// either the hook or queue object types. So we store them in a lazily create
// map of queue -> render-phase updates, which are discarded once the component
// completes without re-rendering.

// Whether the work-in-progress hook is a re-rendered hook
var isReRender = false;
// Whether an update was scheduled during the currently executing render pass.
var didScheduleRenderPhaseUpdate = false;
// Lazily created map of render-phase updates
var renderPhaseUpdates = null;
// Counter to prevent infinite loops.
var numberOfReRenders = 0;
var RE_RENDER_LIMIT = 25;

function resolveCurrentlyRenderingFiber() {
  !(currentlyRenderingFiber$1 !== null) ? invariant(false, 'Hooks can only be called inside the body of a function component.') : void 0;
  return currentlyRenderingFiber$1;
}

function prepareToUseHooks(current, workInProgress, nextRenderExpirationTime) {
  if (!enableHooks) {
    return;
  }
  renderExpirationTime = nextRenderExpirationTime;
  currentlyRenderingFiber$1 = workInProgress;
  firstCurrentHook = current !== null ? current.memoizedState : null;

  // The following should have already been reset
  // currentHook = null;
  // workInProgressHook = null;

  // remainingExpirationTime = NoWork;
  // componentUpdateQueue = null;

  // isReRender = false;
  // didScheduleRenderPhaseUpdate = false;
  // renderPhaseUpdates = null;
  // numberOfReRenders = 0;
}

function finishHooks(Component, props, children, refOrContext) {
  if (!enableHooks) {
    return children;
  }

  // This must be called after every function component to prevent hooks from
  // being used in classes.

  while (didScheduleRenderPhaseUpdate) {
    // Updates were scheduled during the render phase. They are stored in
    // the `renderPhaseUpdates` map. Call the component again, reusing the
    // work-in-progress hooks and applying the additional updates on top. Keep
    // restarting until no more updates are scheduled.
    didScheduleRenderPhaseUpdate = false;
    numberOfReRenders += 1;

    // Start over from the beginning of the list
    currentHook = null;
    workInProgressHook = null;
    componentUpdateQueue = null;

    children = Component(props, refOrContext);
  }
  renderPhaseUpdates = null;
  numberOfReRenders = 0;

  var renderedWork = currentlyRenderingFiber$1;

  renderedWork.memoizedState = firstWorkInProgressHook;
  renderedWork.expirationTime = remainingExpirationTime;
  renderedWork.updateQueue = componentUpdateQueue;

  var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null;

  renderExpirationTime = NoWork;
  currentlyRenderingFiber$1 = null;

  firstCurrentHook = null;
  currentHook = null;
  firstWorkInProgressHook = null;
  workInProgressHook = null;

  remainingExpirationTime = NoWork;
  componentUpdateQueue = null;

  // Always set during createWorkInProgress
  // isReRender = false;

  // These were reset above
  // didScheduleRenderPhaseUpdate = false;
  // renderPhaseUpdates = null;
  // numberOfReRenders = 0;

  !!didRenderTooFewHooks ? invariant(false, 'Rendered fewer hooks than expected. This may be caused by an accidental early return statement.') : void 0;

  return children;
}

function resetHooks() {
  if (!enableHooks) {
    return;
  }

  // This is called instead of `finishHooks` if the component throws. It's also
  // called inside mountIndeterminateComponent if we determine the component
  // is a module-style component.
  renderExpirationTime = NoWork;
  currentlyRenderingFiber$1 = null;

  firstCurrentHook = null;
  currentHook = null;
  firstWorkInProgressHook = null;
  workInProgressHook = null;

  remainingExpirationTime = NoWork;
  componentUpdateQueue = null;

  // Always set during createWorkInProgress
  // isReRender = false;

  didScheduleRenderPhaseUpdate = false;
  renderPhaseUpdates = null;
  numberOfReRenders = 0;
}

function createHook() {
  return {
    memoizedState: null,

    baseState: null,
    queue: null,
    baseUpdate: null,

    next: null
  };
}

function cloneHook(hook) {
  return {
    memoizedState: hook.memoizedState,

    baseState: hook.memoizedState,
    queue: hook.queue,
    baseUpdate: hook.baseUpdate,

    next: null
  };
}

function createWorkInProgressHook() {
  if (workInProgressHook === null) {
    // This is the first hook in the list
    if (firstWorkInProgressHook === null) {
      isReRender = false;
      currentHook = firstCurrentHook;
      if (currentHook === null) {
        // This is a newly mounted hook
        workInProgressHook = createHook();
      } else {
        // Clone the current hook.
        workInProgressHook = cloneHook(currentHook);
      }
      firstWorkInProgressHook = workInProgressHook;
    } else {
      // There's already a work-in-progress. Reuse it.
      isReRender = true;
      currentHook = firstCurrentHook;
      workInProgressHook = firstWorkInProgressHook;
    }
  } else {
    if (workInProgressHook.next === null) {
      isReRender = false;
      var hook = void 0;
      if (currentHook === null) {
        // This is a newly mounted hook
        hook = createHook();
      } else {
        currentHook = currentHook.next;
        if (currentHook === null) {
          // This is a newly mounted hook
          hook = createHook();
        } else {
          // Clone the current hook.
          hook = cloneHook(currentHook);
        }
      }
      // Append to the end of the list
      workInProgressHook = workInProgressHook.next = hook;
    } else {
      // There's already a work-in-progress. Reuse it.
      isReRender = true;
      workInProgressHook = workInProgressHook.next;
      currentHook = currentHook !== null ? currentHook.next : null;
    }
  }
  return workInProgressHook;
}

function createFunctionComponentUpdateQueue() {
  return {
    lastEffect: null
  };
}

function basicStateReducer(state, action) {
  return typeof action === 'function' ? action(state) : action;
}

function useContext(context, observedBits) {
  // Ensure we're in a function component (class components support only the
  // .unstable_read() form)
  resolveCurrentlyRenderingFiber();
  return readContext(context, observedBits);
}

function useState(initialState) {
  return useReducer(basicStateReducer,
  // useReducer has a special case to support lazy useState initializers
  initialState);
}

function useReducer(reducer, initialState, initialAction) {
  currentlyRenderingFiber$1 = resolveCurrentlyRenderingFiber();
  workInProgressHook = createWorkInProgressHook();
  var queue = workInProgressHook.queue;
  if (queue !== null) {
    // Already have a queue, so this is an update.
    if (isReRender) {
      // This is a re-render. Apply the new render phase updates to the previous
      var _dispatch2 = queue.dispatch;
      if (renderPhaseUpdates !== null) {
        // Render phase updates are stored in a map of queue -> linked list
        var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue);
        if (firstRenderPhaseUpdate !== undefined) {
          renderPhaseUpdates.delete(queue);
          var newState = workInProgressHook.memoizedState;
          var update = firstRenderPhaseUpdate;
          do {
            // Process this render phase update. We don't have to check the
            // priority because it will always be the same as the current
            // render's.
            var _action = update.action;
            newState = reducer(newState, _action);
            update = update.next;
          } while (update !== null);

          workInProgressHook.memoizedState = newState;

          // Don't persist the state accumlated from the render phase updates to
          // the base state unless the queue is empty.
          // TODO: Not sure if this is the desired semantics, but it's what we
          // do for gDSFP. I can't remember why.
          if (workInProgressHook.baseUpdate === queue.last) {
            workInProgressHook.baseState = newState;
          }

          return [newState, _dispatch2];
        }
      }
      return [workInProgressHook.memoizedState, _dispatch2];
    }

    // The last update in the entire queue
    var _last = queue.last;
    // The last update that is part of the base state.
    var _baseUpdate = workInProgressHook.baseUpdate;

    // Find the first unprocessed update.
    var first = void 0;
    if (_baseUpdate !== null) {
      if (_last !== null) {
        // For the first update, the queue is a circular linked list where
        // `queue.last.next = queue.first`. Once the first update commits, and
        // the `baseUpdate` is no longer empty, we can unravel the list.
        _last.next = null;
      }
      first = _baseUpdate.next;
    } else {
      first = _last !== null ? _last.next : null;
    }
    if (first !== null) {
      var _newState = workInProgressHook.baseState;
      var newBaseState = null;
      var newBaseUpdate = null;
      var prevUpdate = _baseUpdate;
      var _update = first;
      var didSkip = false;
      do {
        var updateExpirationTime = _update.expirationTime;
        if (updateExpirationTime < renderExpirationTime) {
          // Priority is insufficient. Skip this update. If this is the first
          // skipped update, the previous update/state is the new base
          // update/state.
          if (!didSkip) {
            didSkip = true;
            newBaseUpdate = prevUpdate;
            newBaseState = _newState;
          }
          // Update the remaining priority in the queue.
          if (updateExpirationTime > remainingExpirationTime) {
            remainingExpirationTime = updateExpirationTime;
          }
        } else {
          // Process this update.
          var _action2 = _update.action;
          _newState = reducer(_newState, _action2);
        }
        prevUpdate = _update;
        _update = _update.next;
      } while (_update !== null && _update !== first);

      if (!didSkip) {
        newBaseUpdate = prevUpdate;
        newBaseState = _newState;
      }

      workInProgressHook.memoizedState = _newState;
      workInProgressHook.baseUpdate = newBaseUpdate;
      workInProgressHook.baseState = newBaseState;
    }

    var _dispatch = queue.dispatch;
    return [workInProgressHook.memoizedState, _dispatch];
  }

  // There's no existing queue, so this is the initial render.
  if (reducer === basicStateReducer) {
    // Special case for `useState`.
    if (typeof initialState === 'function') {
      initialState = initialState();
    }
  } else if (initialAction !== undefined && initialAction !== null) {
    initialState = reducer(initialState, initialAction);
  }
  workInProgressHook.memoizedState = workInProgressHook.baseState = initialState;
  queue = workInProgressHook.queue = {
    last: null,
    dispatch: null
  };
  var dispatch = queue.dispatch = dispatchAction.bind(null, currentlyRenderingFiber$1, queue);
  return [workInProgressHook.memoizedState, dispatch];
}

function pushEffect(tag, create, destroy, inputs) {
  var effect = {
    tag: tag,
    create: create,
    destroy: destroy,
    inputs: inputs,
    // Circular
    next: null
  };
  if (componentUpdateQueue === null) {
    componentUpdateQueue = createFunctionComponentUpdateQueue();
    componentUpdateQueue.lastEffect = effect.next = effect;
  } else {
    var _lastEffect = componentUpdateQueue.lastEffect;
    if (_lastEffect === null) {
      componentUpdateQueue.lastEffect = effect.next = effect;
    } else {
      var firstEffect = _lastEffect.next;
      _lastEffect.next = effect;
      effect.next = firstEffect;
      componentUpdateQueue.lastEffect = effect;
    }
  }
  return effect;
}

function useRef(initialValue) {
  currentlyRenderingFiber$1 = resolveCurrentlyRenderingFiber();
  workInProgressHook = createWorkInProgressHook();
  var ref = void 0;

  if (workInProgressHook.memoizedState === null) {
    ref = { current: initialValue };
    {
      Object.seal(ref);
    }
    workInProgressHook.memoizedState = ref;
  } else {
    ref = workInProgressHook.memoizedState;
  }
  return ref;
}

function useMutationEffect(create, inputs) {
  useEffectImpl(Snapshot | Update, UnmountSnapshot | MountMutation, create, inputs);
}

function useLayoutEffect(create, inputs) {
  useEffectImpl(Update, UnmountMutation | MountLayout, create, inputs);
}

function useEffect(create, inputs) {
  useEffectImpl(Update | Passive, UnmountPassive | MountPassive, create, inputs);
}

function useEffectImpl(fiberEffectTag, hookEffectTag, create, inputs) {
  currentlyRenderingFiber$1 = resolveCurrentlyRenderingFiber();
  workInProgressHook = createWorkInProgressHook();

  var nextInputs = inputs !== undefined && inputs !== null ? inputs : [create];
  var destroy = null;
  if (currentHook !== null) {
    var prevEffect = currentHook.memoizedState;
    destroy = prevEffect.destroy;
    if (areHookInputsEqual(nextInputs, prevEffect.inputs)) {
      pushEffect(NoEffect$1, create, destroy, nextInputs);
      return;
    }
  }

  currentlyRenderingFiber$1.effectTag |= fiberEffectTag;
  workInProgressHook.memoizedState = pushEffect(hookEffectTag, create, destroy, nextInputs);
}

function useImperativeMethods(ref, create, inputs) {
  // TODO: If inputs are provided, should we skip comparing the ref itself?
  var nextInputs = inputs !== null && inputs !== undefined ? inputs.concat([ref]) : [ref, create];

  // TODO: I've implemented this on top of useEffect because it's almost the
  // same thing, and it would require an equal amount of code. It doesn't seem
  // like a common enough use case to justify the additional size.
  useEffectImpl(Update, UnmountMutation | MountLayout, function () {
    if (typeof ref === 'function') {
      var refCallback = ref;
      var _inst = create();
      refCallback(_inst);
      return function () {
        return refCallback(null);
      };
    } else if (ref !== null && ref !== undefined) {
      var refObject = ref;
      var _inst2 = create();
      refObject.current = _inst2;
      return function () {
        refObject.current = null;
      };
    }
  }, nextInputs);
}

function useCallback(callback, inputs) {
  currentlyRenderingFiber$1 = resolveCurrentlyRenderingFiber();
  workInProgressHook = createWorkInProgressHook();

  var nextInputs = inputs !== undefined && inputs !== null ? inputs : [callback];

  var prevState = workInProgressHook.memoizedState;
  if (prevState !== null) {
    var prevInputs = prevState[1];
    if (areHookInputsEqual(nextInputs, prevInputs)) {
      return prevState[0];
    }
  }
  workInProgressHook.memoizedState = [callback, nextInputs];
  return callback;
}

function useMemo(nextCreate, inputs) {
  currentlyRenderingFiber$1 = resolveCurrentlyRenderingFiber();
  workInProgressHook = createWorkInProgressHook();

  var nextInputs = inputs !== undefined && inputs !== null ? inputs : [nextCreate];

  var prevState = workInProgressHook.memoizedState;
  if (prevState !== null) {
    var prevInputs = prevState[1];
    if (areHookInputsEqual(nextInputs, prevInputs)) {
      return prevState[0];
    }
  }

  var nextValue = nextCreate();
  workInProgressHook.memoizedState = [nextValue, nextInputs];
  return nextValue;
}

function dispatchAction(fiber, queue, action) {
  !(numberOfReRenders < RE_RENDER_LIMIT) ? invariant(false, 'Too many re-renders. React limits the number of renders to prevent an infinite loop.') : void 0;

  var alternate = fiber.alternate;
  if (fiber === currentlyRenderingFiber$1 || alternate !== null && alternate === currentlyRenderingFiber$1) {
    // This is a render phase update. Stash it in a lazily-created map of
    // queue -> linked list of updates. After this render pass, we'll restart
    // and apply the stashed updates on top of the work-in-progress hook.
    didScheduleRenderPhaseUpdate = true;
    var update = {
      expirationTime: renderExpirationTime,
      action: action,
      next: null
    };
    if (renderPhaseUpdates === null) {
      renderPhaseUpdates = new Map();
    }
    var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue);
    if (firstRenderPhaseUpdate === undefined) {
      renderPhaseUpdates.set(queue, update);
    } else {
      // Append the update to the end of the list.
      var lastRenderPhaseUpdate = firstRenderPhaseUpdate;
      while (lastRenderPhaseUpdate.next !== null) {
        lastRenderPhaseUpdate = lastRenderPhaseUpdate.next;
      }
      lastRenderPhaseUpdate.next = update;
    }
  } else {
    var currentTime = requestCurrentTime();
    var _expirationTime = computeExpirationForFiber(currentTime, fiber);
    var _update2 = {
      expirationTime: _expirationTime,
      action: action,
      next: null
    };
    flushPassiveEffects();
    // Append the update to the end of the list.
    var _last2 = queue.last;
    if (_last2 === null) {
      // This is the first update. Create a circular list.
      _update2.next = _update2;
    } else {
      var first = _last2.next;
      if (first !== null) {
        // Still circular.
        _update2.next = first;
      }
      _last2.next = _update2;
    }
    queue.last = _update2;
    scheduleWork(fiber, _expirationTime);
  }
}

var NO_CONTEXT = {};

var contextStackCursor$1 = createCursor(NO_CONTEXT);
var contextFiberStackCursor = createCursor(NO_CONTEXT);
var rootInstanceStackCursor = createCursor(NO_CONTEXT);

function requiredContext(c) {
  !(c !== NO_CONTEXT) ? invariant(false, 'Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  return c;
}

function getRootHostContainer() {
  var rootInstance = requiredContext(rootInstanceStackCursor.current);
  return rootInstance;
}

function pushHostContainer(fiber, nextRootInstance) {
  // Push current root instance onto the stack;
  // This allows us to reset root when portals are popped.
  push(rootInstanceStackCursor, nextRootInstance, fiber);
  // Track the context and the Fiber that provided it.
  // This enables us to pop only Fibers that provide unique contexts.
  push(contextFiberStackCursor, fiber, fiber);

  // Finally, we need to push the host context to the stack.
  // However, we can't just call getRootHostContext() and push it because
  // we'd have a different number of entries on the stack depending on
  // whether getRootHostContext() throws somewhere in renderer code or not.
  // So we push an empty value first. This lets us safely unwind on errors.
  push(contextStackCursor$1, NO_CONTEXT, fiber);
  var nextRootContext = getRootHostContext(nextRootInstance);
  // Now that we know this function doesn't throw, replace it.
  pop(contextStackCursor$1, fiber);
  push(contextStackCursor$1, nextRootContext, fiber);
}

function popHostContainer(fiber) {
  pop(contextStackCursor$1, fiber);
  pop(contextFiberStackCursor, fiber);
  pop(rootInstanceStackCursor, fiber);
}

function getHostContext() {
  var context = requiredContext(contextStackCursor$1.current);
  return context;
}

function pushHostContext(fiber) {
  var rootInstance = requiredContext(rootInstanceStackCursor.current);
  var context = requiredContext(contextStackCursor$1.current);
  var nextContext = getChildHostContext(context, fiber.type, rootInstance);

  // Don't push this Fiber's context unless it's unique.
  if (context === nextContext) {
    return;
  }

  // Track the context and the Fiber that provided it.
  // This enables us to pop only Fibers that provide unique contexts.
  push(contextFiberStackCursor, fiber, fiber);
  push(contextStackCursor$1, nextContext, fiber);
}

function popHostContext(fiber) {
  // Do not pop unless this Fiber provided the current context.
  // pushHostContext() only pushes Fibers that provide unique contexts.
  if (contextFiberStackCursor.current !== fiber) {
    return;
  }

  pop(contextStackCursor$1, fiber);
  pop(contextFiberStackCursor, fiber);
}

var commitTime = 0;
var profilerStartTime = -1;

function getCommitTime() {
  return commitTime;
}

function recordCommitTime() {
  if (!enableProfilerTimer) {
    return;
  }
  commitTime = scheduler.unstable_now();
}

function startProfilerTimer(fiber) {
  if (!enableProfilerTimer) {
    return;
  }

  profilerStartTime = scheduler.unstable_now();

  if (fiber.actualStartTime < 0) {
    fiber.actualStartTime = scheduler.unstable_now();
  }
}

function stopProfilerTimerIfRunning(fiber) {
  if (!enableProfilerTimer) {
    return;
  }
  profilerStartTime = -1;
}

function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) {
  if (!enableProfilerTimer) {
    return;
  }

  if (profilerStartTime >= 0) {
    var elapsedTime = scheduler.unstable_now() - profilerStartTime;
    fiber.actualDuration += elapsedTime;
    if (overrideBaseTime) {
      fiber.selfBaseDuration = elapsedTime;
    }
    profilerStartTime = -1;
  }
}

function resolveDefaultProps(Component, baseProps) {
  if (Component && Component.defaultProps) {
    // Resolve default props. Taken from ReactElement
    var props = _assign({}, baseProps);
    var defaultProps = Component.defaultProps;
    for (var propName in defaultProps) {
      if (props[propName] === undefined) {
        props[propName] = defaultProps[propName];
      }
    }
    return props;
  }
  return baseProps;
}

function readLazyComponentType(lazyComponent) {
  var status = lazyComponent._status;
  var result = lazyComponent._result;
  switch (status) {
    case Resolved:
      {
        var Component = result;
        return Component;
      }
    case Rejected:
      {
        var error = result;
        throw error;
      }
    case Pending:
      {
        var thenable = result;
        throw thenable;
      }
    default:
      {
        lazyComponent._status = Pending;
        var ctor = lazyComponent._ctor;
        var _thenable = ctor();
        _thenable.then(function (moduleObject) {
          if (lazyComponent._status === Pending) {
            var defaultExport = moduleObject.default;
            {
              if (defaultExport === undefined) {
                warning$1(false, 'lazy: Expected the result of a dynamic import() call. ' + 'Instead received: %s\n\nYour code should look like: \n  ' + "const MyComponent = lazy(() => import('./MyComponent'))", moduleObject);
              }
            }
            lazyComponent._status = Resolved;
            lazyComponent._result = defaultExport;
          }
        }, function (error) {
          if (lazyComponent._status === Pending) {
            lazyComponent._status = Rejected;
            lazyComponent._result = error;
          }
        });
        lazyComponent._result = _thenable;
        throw _thenable;
      }
  }
}

var ReactCurrentOwner$4 = ReactSharedInternals.ReactCurrentOwner;

function readContext$1(contextType) {
  var dispatcher = ReactCurrentOwner$4.currentDispatcher;
  return dispatcher.readContext(contextType);
}

var fakeInternalInstance = {};
var isArray$1 = Array.isArray;

// React.Component uses a shared frozen object by default.
// We'll use it to determine whether we need to initialize legacy refs.
var emptyRefsObject = new React.Component().refs;

var didWarnAboutStateAssignmentForComponent = void 0;
var didWarnAboutUninitializedState = void 0;
var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = void 0;
var didWarnAboutLegacyLifecyclesAndDerivedState = void 0;
var didWarnAboutUndefinedDerivedState = void 0;
var warnOnUndefinedDerivedState = void 0;
var warnOnInvalidCallback$1 = void 0;
var didWarnAboutDirectlyAssigningPropsToState = void 0;
var didWarnAboutContextTypeAndContextTypes = void 0;
var didWarnAboutInvalidateContextType = void 0;

{
  didWarnAboutStateAssignmentForComponent = new Set();
  didWarnAboutUninitializedState = new Set();
  didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set();
  didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
  didWarnAboutDirectlyAssigningPropsToState = new Set();
  didWarnAboutUndefinedDerivedState = new Set();
  didWarnAboutContextTypeAndContextTypes = new Set();
  didWarnAboutInvalidateContextType = new Set();

  var didWarnOnInvalidCallback = new Set();

  warnOnInvalidCallback$1 = function (callback, callerName) {
    if (callback === null || typeof callback === 'function') {
      return;
    }
    var key = callerName + '_' + callback;
    if (!didWarnOnInvalidCallback.has(key)) {
      didWarnOnInvalidCallback.add(key);
      warningWithoutStack$1(false, '%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
    }
  };

  warnOnUndefinedDerivedState = function (type, partialState) {
    if (partialState === undefined) {
      var componentName = getComponentName(type) || 'Component';
      if (!didWarnAboutUndefinedDerivedState.has(componentName)) {
        didWarnAboutUndefinedDerivedState.add(componentName);
        warningWithoutStack$1(false, '%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. ' + 'You have returned undefined.', componentName);
      }
    }
  };

  // This is so gross but it's at least non-critical and can be removed if
  // it causes problems. This is meant to give a nicer error message for
  // ReactDOM15.unstable_renderSubtreeIntoContainer(reactDOM16Component,
  // ...)) which otherwise throws a "_processChildContext is not a function"
  // exception.
  Object.defineProperty(fakeInternalInstance, '_processChildContext', {
    enumerable: false,
    value: function () {
      invariant(false, '_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn\'t supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).');
    }
  });
  Object.freeze(fakeInternalInstance);
}

function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) {
  var prevState = workInProgress.memoizedState;

  {
    if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
      // Invoke the function an extra time to help detect side-effects.
      getDerivedStateFromProps(nextProps, prevState);
    }
  }

  var partialState = getDerivedStateFromProps(nextProps, prevState);

  {
    warnOnUndefinedDerivedState(ctor, partialState);
  }
  // Merge the partial state and the previous state.
  var memoizedState = partialState === null || partialState === undefined ? prevState : _assign({}, prevState, partialState);
  workInProgress.memoizedState = memoizedState;

  // Once the update queue is empty, persist the derived state onto the
  // base state.
  var updateQueue = workInProgress.updateQueue;
  if (updateQueue !== null && workInProgress.expirationTime === NoWork) {
    updateQueue.baseState = memoizedState;
  }
}

var classComponentUpdater = {
  isMounted: isMounted,
  enqueueSetState: function (inst, payload, callback) {
    var fiber = get(inst);
    var currentTime = requestCurrentTime();
    var expirationTime = computeExpirationForFiber(currentTime, fiber);

    var update = createUpdate(expirationTime);
    update.payload = payload;
    if (callback !== undefined && callback !== null) {
      {
        warnOnInvalidCallback$1(callback, 'setState');
      }
      update.callback = callback;
    }

    flushPassiveEffects();
    enqueueUpdate(fiber, update);
    scheduleWork(fiber, expirationTime);
  },
  enqueueReplaceState: function (inst, payload, callback) {
    var fiber = get(inst);
    var currentTime = requestCurrentTime();
    var expirationTime = computeExpirationForFiber(currentTime, fiber);

    var update = createUpdate(expirationTime);
    update.tag = ReplaceState;
    update.payload = payload;

    if (callback !== undefined && callback !== null) {
      {
        warnOnInvalidCallback$1(callback, 'replaceState');
      }
      update.callback = callback;
    }

    flushPassiveEffects();
    enqueueUpdate(fiber, update);
    scheduleWork(fiber, expirationTime);
  },
  enqueueForceUpdate: function (inst, callback) {
    var fiber = get(inst);
    var currentTime = requestCurrentTime();
    var expirationTime = computeExpirationForFiber(currentTime, fiber);

    var update = createUpdate(expirationTime);
    update.tag = ForceUpdate;

    if (callback !== undefined && callback !== null) {
      {
        warnOnInvalidCallback$1(callback, 'forceUpdate');
      }
      update.callback = callback;
    }

    flushPassiveEffects();
    enqueueUpdate(fiber, update);
    scheduleWork(fiber, expirationTime);
  }
};

function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) {
  var instance = workInProgress.stateNode;
  if (typeof instance.shouldComponentUpdate === 'function') {
    startPhaseTimer(workInProgress, 'shouldComponentUpdate');
    var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext);
    stopPhaseTimer();

    {
      !(shouldUpdate !== undefined) ? warningWithoutStack$1(false, '%s.shouldComponentUpdate(): Returned undefined instead of a ' + 'boolean value. Make sure to return true or false.', getComponentName(ctor) || 'Component') : void 0;
    }

    return shouldUpdate;
  }

  if (ctor.prototype && ctor.prototype.isPureReactComponent) {
    return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState);
  }

  return true;
}

function checkClassInstance(workInProgress, ctor, newProps) {
  var instance = workInProgress.stateNode;
  {
    var name = getComponentName(ctor) || 'Component';
    var renderPresent = instance.render;

    if (!renderPresent) {
      if (ctor.prototype && typeof ctor.prototype.render === 'function') {
        warningWithoutStack$1(false, '%s(...): No `render` method found on the returned component ' + 'instance: did you accidentally return an object from the constructor?', name);
      } else {
        warningWithoutStack$1(false, '%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name);
      }
    }

    var noGetInitialStateOnES6 = !instance.getInitialState || instance.getInitialState.isReactClassApproved || instance.state;
    !noGetInitialStateOnES6 ? warningWithoutStack$1(false, 'getInitialState was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Did you mean to define a state property instead?', name) : void 0;
    var noGetDefaultPropsOnES6 = !instance.getDefaultProps || instance.getDefaultProps.isReactClassApproved;
    !noGetDefaultPropsOnES6 ? warningWithoutStack$1(false, 'getDefaultProps was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Use a static property to define defaultProps instead.', name) : void 0;
    var noInstancePropTypes = !instance.propTypes;
    !noInstancePropTypes ? warningWithoutStack$1(false, 'propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name) : void 0;
    var noInstanceContextType = !instance.contextType;
    !noInstanceContextType ? warningWithoutStack$1(false, 'contextType was defined as an instance property on %s. Use a static ' + 'property to define contextType instead.', name) : void 0;
    var noInstanceContextTypes = !instance.contextTypes;
    !noInstanceContextTypes ? warningWithoutStack$1(false, 'contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name) : void 0;

    if (ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor)) {
      didWarnAboutContextTypeAndContextTypes.add(ctor);
      warningWithoutStack$1(false, '%s declares both contextTypes and contextType static properties. ' + 'The legacy contextTypes property will be ignored.', name);
    }

    var noComponentShouldUpdate = typeof instance.componentShouldUpdate !== 'function';
    !noComponentShouldUpdate ? warningWithoutStack$1(false, '%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', name) : void 0;
    if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== 'undefined') {
      warningWithoutStack$1(false, '%s has a method called shouldComponentUpdate(). ' + 'shouldComponentUpdate should not be used when extending React.PureComponent. ' + 'Please extend React.Component if shouldComponentUpdate is used.', getComponentName(ctor) || 'A pure component');
    }
    var noComponentDidUnmount = typeof instance.componentDidUnmount !== 'function';
    !noComponentDidUnmount ? warningWithoutStack$1(false, '%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name) : void 0;
    var noComponentDidReceiveProps = typeof instance.componentDidReceiveProps !== 'function';
    !noComponentDidReceiveProps ? warningWithoutStack$1(false, '%s has a method called ' + 'componentDidReceiveProps(). But there is no such lifecycle method. ' + 'If you meant to update the state in response to changing props, ' + 'use componentWillReceiveProps(). If you meant to fetch data or ' + 'run side-effects or mutations after React has updated the UI, use componentDidUpdate().', name) : void 0;
    var noComponentWillRecieveProps = typeof instance.componentWillRecieveProps !== 'function';
    !noComponentWillRecieveProps ? warningWithoutStack$1(false, '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name) : void 0;
    var noUnsafeComponentWillRecieveProps = typeof instance.UNSAFE_componentWillRecieveProps !== 'function';
    !noUnsafeComponentWillRecieveProps ? warningWithoutStack$1(false, '%s has a method called ' + 'UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?', name) : void 0;
    var hasMutatedProps = instance.props !== newProps;
    !(instance.props === undefined || !hasMutatedProps) ? warningWithoutStack$1(false, '%s(...): When calling super() in `%s`, make sure to pass ' + "up the same props that your component's constructor was passed.", name, name) : void 0;
    var noInstanceDefaultProps = !instance.defaultProps;
    !noInstanceDefaultProps ? warningWithoutStack$1(false, 'Setting defaultProps as an instance property on %s is not supported and will be ignored.' + ' Instead, define defaultProps as a static property on %s.', name, name) : void 0;

    if (typeof instance.getSnapshotBeforeUpdate === 'function' && typeof instance.componentDidUpdate !== 'function' && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) {
      didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor);
      warningWithoutStack$1(false, '%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). ' + 'This component defines getSnapshotBeforeUpdate() only.', getComponentName(ctor));
    }

    var noInstanceGetDerivedStateFromProps = typeof instance.getDerivedStateFromProps !== 'function';
    !noInstanceGetDerivedStateFromProps ? warningWithoutStack$1(false, '%s: getDerivedStateFromProps() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name) : void 0;
    var noInstanceGetDerivedStateFromCatch = typeof instance.getDerivedStateFromError !== 'function';
    !noInstanceGetDerivedStateFromCatch ? warningWithoutStack$1(false, '%s: getDerivedStateFromError() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name) : void 0;
    var noStaticGetSnapshotBeforeUpdate = typeof ctor.getSnapshotBeforeUpdate !== 'function';
    !noStaticGetSnapshotBeforeUpdate ? warningWithoutStack$1(false, '%s: getSnapshotBeforeUpdate() is defined as a static method ' + 'and will be ignored. Instead, declare it as an instance method.', name) : void 0;
    var _state = instance.state;
    if (_state && (typeof _state !== 'object' || isArray$1(_state))) {
      warningWithoutStack$1(false, '%s.state: must be set to an object or null', name);
    }
    if (typeof instance.getChildContext === 'function') {
      !(typeof ctor.childContextTypes === 'object') ? warningWithoutStack$1(false, '%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', name) : void 0;
    }
  }
}

function adoptClassInstance(workInProgress, instance) {
  instance.updater = classComponentUpdater;
  workInProgress.stateNode = instance;
  // The instance needs access to the fiber so that it can schedule updates
  set(instance, workInProgress);
  {
    instance._reactInternalInstance = fakeInternalInstance;
  }
}

function constructClassInstance(workInProgress, ctor, props, renderExpirationTime) {
  var isLegacyContextConsumer = false;
  var unmaskedContext = emptyContextObject;
  var context = null;
  var contextType = ctor.contextType;
  if (typeof contextType === 'object' && contextType !== null) {
    {
      if (contextType.$$typeof !== REACT_CONTEXT_TYPE && !didWarnAboutInvalidateContextType.has(ctor)) {
        didWarnAboutInvalidateContextType.add(ctor);
        warningWithoutStack$1(false, '%s defines an invalid contextType. ' + 'contextType should point to the Context object returned by React.createContext(). ' + 'Did you accidentally pass the Context.Provider instead?', getComponentName(ctor) || 'Component');
      }
    }

    context = readContext$1(contextType);
  } else {
    unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
    var contextTypes = ctor.contextTypes;
    isLegacyContextConsumer = contextTypes !== null && contextTypes !== undefined;
    context = isLegacyContextConsumer ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject;
  }

  // Instantiate twice to help detect side-effects.
  {
    if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
      new ctor(props, context); // eslint-disable-line no-new
    }
  }

  var instance = new ctor(props, context);
  var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null;
  adoptClassInstance(workInProgress, instance);

  {
    if (typeof ctor.getDerivedStateFromProps === 'function' && state === null) {
      var componentName = getComponentName(ctor) || 'Component';
      if (!didWarnAboutUninitializedState.has(componentName)) {
        didWarnAboutUninitializedState.add(componentName);
        warningWithoutStack$1(false, '`%s` uses `getDerivedStateFromProps` but its initial state is ' + '%s. This is not recommended. Instead, define the initial state by ' + 'assigning an object to `this.state` in the constructor of `%s`. ' + 'This ensures that `getDerivedStateFromProps` arguments have a consistent shape.', componentName, instance.state === null ? 'null' : 'undefined', componentName);
      }
    }

    // If new component APIs are defined, "unsafe" lifecycles won't be called.
    // Warn about these lifecycles if they are present.
    // Don't warn about react-lifecycles-compat polyfilled methods though.
    if (typeof ctor.getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function') {
      var foundWillMountName = null;
      var foundWillReceivePropsName = null;
      var foundWillUpdateName = null;
      if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {
        foundWillMountName = 'componentWillMount';
      } else if (typeof instance.UNSAFE_componentWillMount === 'function') {
        foundWillMountName = 'UNSAFE_componentWillMount';
      }
      if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
        foundWillReceivePropsName = 'componentWillReceiveProps';
      } else if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
        foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';
      }
      if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
        foundWillUpdateName = 'componentWillUpdate';
      } else if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
        foundWillUpdateName = 'UNSAFE_componentWillUpdate';
      }
      if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {
        var _componentName = getComponentName(ctor) || 'Component';
        var newApiName = typeof ctor.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()';
        if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) {
          didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName);
          warningWithoutStack$1(false, 'Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' + '%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n' + 'The above lifecycles should be removed. Learn more about this warning here:\n' + 'https://fb.me/react-async-component-lifecycle-hooks', _componentName, newApiName, foundWillMountName !== null ? '\n  ' + foundWillMountName : '', foundWillReceivePropsName !== null ? '\n  ' + foundWillReceivePropsName : '', foundWillUpdateName !== null ? '\n  ' + foundWillUpdateName : '');
        }
      }
    }
  }

  // Cache unmasked context so we can avoid recreating masked context unless necessary.
  // ReactFiberContext usually updates this cache but can't for newly-created instances.
  if (isLegacyContextConsumer) {
    cacheContext(workInProgress, unmaskedContext, context);
  }

  return instance;
}

function callComponentWillMount(workInProgress, instance) {
  startPhaseTimer(workInProgress, 'componentWillMount');
  var oldState = instance.state;

  if (typeof instance.componentWillMount === 'function') {
    instance.componentWillMount();
  }
  if (typeof instance.UNSAFE_componentWillMount === 'function') {
    instance.UNSAFE_componentWillMount();
  }

  stopPhaseTimer();

  if (oldState !== instance.state) {
    {
      warningWithoutStack$1(false, '%s.componentWillMount(): Assigning directly to this.state is ' + "deprecated (except inside a component's " + 'constructor). Use setState instead.', getComponentName(workInProgress.type) || 'Component');
    }
    classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
  }
}

function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) {
  var oldState = instance.state;
  startPhaseTimer(workInProgress, 'componentWillReceiveProps');
  if (typeof instance.componentWillReceiveProps === 'function') {
    instance.componentWillReceiveProps(newProps, nextContext);
  }
  if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
    instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
  }
  stopPhaseTimer();

  if (instance.state !== oldState) {
    {
      var componentName = getComponentName(workInProgress.type) || 'Component';
      if (!didWarnAboutStateAssignmentForComponent.has(componentName)) {
        didWarnAboutStateAssignmentForComponent.add(componentName);
        warningWithoutStack$1(false, '%s.componentWillReceiveProps(): Assigning directly to ' + "this.state is deprecated (except inside a component's " + 'constructor). Use setState instead.', componentName);
      }
    }
    classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
  }
}

// Invokes the mount life-cycles on a previously never rendered instance.
function mountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) {
  {
    checkClassInstance(workInProgress, ctor, newProps);
  }

  var instance = workInProgress.stateNode;
  instance.props = newProps;
  instance.state = workInProgress.memoizedState;
  instance.refs = emptyRefsObject;

  var contextType = ctor.contextType;
  if (typeof contextType === 'object' && contextType !== null) {
    instance.context = readContext$1(contextType);
  } else {
    var unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
    instance.context = getMaskedContext(workInProgress, unmaskedContext);
  }

  {
    if (instance.state === newProps) {
      var componentName = getComponentName(ctor) || 'Component';
      if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) {
        didWarnAboutDirectlyAssigningPropsToState.add(componentName);
        warningWithoutStack$1(false, '%s: It is not recommended to assign props directly to state ' + "because updates to props won't be reflected in state. " + 'In most cases, it is better to use props directly.', componentName);
      }
    }

    if (workInProgress.mode & StrictMode) {
      ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance);

      ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance);
    }

    if (warnAboutDeprecatedLifecycles) {
      ReactStrictModeWarnings.recordDeprecationWarnings(workInProgress, instance);
    }
  }

  var updateQueue = workInProgress.updateQueue;
  if (updateQueue !== null) {
    processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
    instance.state = workInProgress.memoizedState;
  }

  var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  if (typeof getDerivedStateFromProps === 'function') {
    applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
    instance.state = workInProgress.memoizedState;
  }

  // In order to support react-lifecycles-compat polyfilled components,
  // Unsafe lifecycles should not be invoked for components using the new APIs.
  if (typeof ctor.getDerivedStateFromProps !== 'function' && typeof instance.getSnapshotBeforeUpdate !== 'function' && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
    callComponentWillMount(workInProgress, instance);
    // If we had additional state updates during this life-cycle, let's
    // process them now.
    updateQueue = workInProgress.updateQueue;
    if (updateQueue !== null) {
      processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
      instance.state = workInProgress.memoizedState;
    }
  }

  if (typeof instance.componentDidMount === 'function') {
    workInProgress.effectTag |= Update;
  }
}

function resumeMountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) {
  var instance = workInProgress.stateNode;

  var oldProps = workInProgress.memoizedProps;
  instance.props = oldProps;

  var oldContext = instance.context;
  var contextType = ctor.contextType;
  var nextContext = void 0;
  if (typeof contextType === 'object' && contextType !== null) {
    nextContext = readContext$1(contextType);
  } else {
    var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
    nextContext = getMaskedContext(workInProgress, nextLegacyUnmaskedContext);
  }

  var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function';

  // Note: During these life-cycles, instance.props/instance.state are what
  // ever the previously attempted to render - not the "current". However,
  // during componentDidUpdate we pass the "current" props.

  // In order to support react-lifecycles-compat polyfilled components,
  // Unsafe lifecycles should not be invoked for components using the new APIs.
  if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
    if (oldProps !== newProps || oldContext !== nextContext) {
      callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
    }
  }

  resetHasForceUpdateBeforeProcessing();

  var oldState = workInProgress.memoizedState;
  var newState = instance.state = oldState;
  var updateQueue = workInProgress.updateQueue;
  if (updateQueue !== null) {
    processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
    newState = workInProgress.memoizedState;
  }
  if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
    // If an update was already in progress, we should schedule an Update
    // effect even though we're bailing out, so that cWU/cDU are called.
    if (typeof instance.componentDidMount === 'function') {
      workInProgress.effectTag |= Update;
    }
    return false;
  }

  if (typeof getDerivedStateFromProps === 'function') {
    applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
    newState = workInProgress.memoizedState;
  }

  var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);

  if (shouldUpdate) {
    // In order to support react-lifecycles-compat polyfilled components,
    // Unsafe lifecycles should not be invoked for components using the new APIs.
    if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
      startPhaseTimer(workInProgress, 'componentWillMount');
      if (typeof instance.componentWillMount === 'function') {
        instance.componentWillMount();
      }
      if (typeof instance.UNSAFE_componentWillMount === 'function') {
        instance.UNSAFE_componentWillMount();
      }
      stopPhaseTimer();
    }
    if (typeof instance.componentDidMount === 'function') {
      workInProgress.effectTag |= Update;
    }
  } else {
    // If an update was already in progress, we should schedule an Update
    // effect even though we're bailing out, so that cWU/cDU are called.
    if (typeof instance.componentDidMount === 'function') {
      workInProgress.effectTag |= Update;
    }

    // If shouldComponentUpdate returned false, we should still update the
    // memoized state to indicate that this work can be reused.
    workInProgress.memoizedProps = newProps;
    workInProgress.memoizedState = newState;
  }

  // Update the existing instance's state, props, and context pointers even
  // if shouldComponentUpdate returns false.
  instance.props = newProps;
  instance.state = newState;
  instance.context = nextContext;

  return shouldUpdate;
}

// Invokes the update life-cycles and returns false if it shouldn't rerender.
function updateClassInstance(current, workInProgress, ctor, newProps, renderExpirationTime) {
  var instance = workInProgress.stateNode;

  var oldProps = workInProgress.memoizedProps;
  instance.props = workInProgress.type === workInProgress.elementType ? oldProps : resolveDefaultProps(workInProgress.type, oldProps);

  var oldContext = instance.context;
  var contextType = ctor.contextType;
  var nextContext = void 0;
  if (typeof contextType === 'object' && contextType !== null) {
    nextContext = readContext$1(contextType);
  } else {
    var nextUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
    nextContext = getMaskedContext(workInProgress, nextUnmaskedContext);
  }

  var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function';

  // Note: During these life-cycles, instance.props/instance.state are what
  // ever the previously attempted to render - not the "current". However,
  // during componentDidUpdate we pass the "current" props.

  // In order to support react-lifecycles-compat polyfilled components,
  // Unsafe lifecycles should not be invoked for components using the new APIs.
  if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
    if (oldProps !== newProps || oldContext !== nextContext) {
      callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
    }
  }

  resetHasForceUpdateBeforeProcessing();

  var oldState = workInProgress.memoizedState;
  var newState = instance.state = oldState;
  var updateQueue = workInProgress.updateQueue;
  if (updateQueue !== null) {
    processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
    newState = workInProgress.memoizedState;
  }

  if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
    // If an update was already in progress, we should schedule an Update
    // effect even though we're bailing out, so that cWU/cDU are called.
    if (typeof instance.componentDidUpdate === 'function') {
      if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
        workInProgress.effectTag |= Update;
      }
    }
    if (typeof instance.getSnapshotBeforeUpdate === 'function') {
      if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
        workInProgress.effectTag |= Snapshot;
      }
    }
    return false;
  }

  if (typeof getDerivedStateFromProps === 'function') {
    applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
    newState = workInProgress.memoizedState;
  }

  var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);

  if (shouldUpdate) {
    // In order to support react-lifecycles-compat polyfilled components,
    // Unsafe lifecycles should not be invoked for components using the new APIs.
    if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === 'function' || typeof instance.componentWillUpdate === 'function')) {
      startPhaseTimer(workInProgress, 'componentWillUpdate');
      if (typeof instance.componentWillUpdate === 'function') {
        instance.componentWillUpdate(newProps, newState, nextContext);
      }
      if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
        instance.UNSAFE_componentWillUpdate(newProps, newState, nextContext);
      }
      stopPhaseTimer();
    }
    if (typeof instance.componentDidUpdate === 'function') {
      workInProgress.effectTag |= Update;
    }
    if (typeof instance.getSnapshotBeforeUpdate === 'function') {
      workInProgress.effectTag |= Snapshot;
    }
  } else {
    // If an update was already in progress, we should schedule an Update
    // effect even though we're bailing out, so that cWU/cDU are called.
    if (typeof instance.componentDidUpdate === 'function') {
      if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
        workInProgress.effectTag |= Update;
      }
    }
    if (typeof instance.getSnapshotBeforeUpdate === 'function') {
      if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
        workInProgress.effectTag |= Snapshot;
      }
    }

    // If shouldComponentUpdate returned false, we should still update the
    // memoized props/state to indicate that this work can be reused.
    workInProgress.memoizedProps = newProps;
    workInProgress.memoizedState = newState;
  }

  // Update the existing instance's state, props, and context pointers even
  // if shouldComponentUpdate returns false.
  instance.props = newProps;
  instance.state = newState;
  instance.context = nextContext;

  return shouldUpdate;
}

var didWarnAboutMaps = void 0;
var didWarnAboutGenerators = void 0;
var didWarnAboutStringRefInStrictMode = void 0;
var ownerHasKeyUseWarning = void 0;
var ownerHasFunctionTypeWarning = void 0;
var warnForMissingKey = function (child) {};

{
  didWarnAboutMaps = false;
  didWarnAboutGenerators = false;
  didWarnAboutStringRefInStrictMode = {};

  /**
   * Warn if there's no key explicitly set on dynamic arrays of children or
   * object keys are not valid. This allows us to keep track of children between
   * updates.
   */
  ownerHasKeyUseWarning = {};
  ownerHasFunctionTypeWarning = {};

  warnForMissingKey = function (child) {
    if (child === null || typeof child !== 'object') {
      return;
    }
    if (!child._store || child._store.validated || child.key != null) {
      return;
    }
    !(typeof child._store === 'object') ? invariant(false, 'React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.') : void 0;
    child._store.validated = true;

    var currentComponentErrorInfo = 'Each child in an array or iterator should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.' + getCurrentFiberStackInDev();
    if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
      return;
    }
    ownerHasKeyUseWarning[currentComponentErrorInfo] = true;

    warning$1(false, 'Each child in an array or iterator should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.');
  };
}

var isArray = Array.isArray;

function coerceRef(returnFiber, current$$1, element) {
  var mixedRef = element.ref;
  if (mixedRef !== null && typeof mixedRef !== 'function' && typeof mixedRef !== 'object') {
    {
      if (returnFiber.mode & StrictMode) {
        var componentName = getComponentName(returnFiber.type) || 'Component';
        if (!didWarnAboutStringRefInStrictMode[componentName]) {
          warningWithoutStack$1(false, 'A string ref, "%s", has been found within a strict mode tree. ' + 'String refs are a source of potential bugs and should be avoided. ' + 'We recommend using createRef() instead.' + '\n%s' + '\n\nLearn more about using refs safely here:' + '\nhttps://fb.me/react-strict-mode-string-ref', mixedRef, getStackByFiberInDevAndProd(returnFiber));
          didWarnAboutStringRefInStrictMode[componentName] = true;
        }
      }
    }

    if (element._owner) {
      var owner = element._owner;
      var inst = void 0;
      if (owner) {
        var ownerFiber = owner;
        !(ownerFiber.tag === ClassComponent) ? invariant(false, 'Function components cannot have refs.') : void 0;
        inst = ownerFiber.stateNode;
      }
      !inst ? invariant(false, 'Missing owner for string ref %s. This error is likely caused by a bug in React. Please file an issue.', mixedRef) : void 0;
      var stringRef = '' + mixedRef;
      // Check if previous string ref matches new string ref
      if (current$$1 !== null && current$$1.ref !== null && typeof current$$1.ref === 'function' && current$$1.ref._stringRef === stringRef) {
        return current$$1.ref;
      }
      var ref = function (value) {
        var refs = inst.refs;
        if (refs === emptyRefsObject) {
          // This is a lazy pooled frozen object, so we need to initialize.
          refs = inst.refs = {};
        }
        if (value === null) {
          delete refs[stringRef];
        } else {
          refs[stringRef] = value;
        }
      };
      ref._stringRef = stringRef;
      return ref;
    } else {
      !(typeof mixedRef === 'string') ? invariant(false, 'Expected ref to be a function, a string, an object returned by React.createRef(), or null.') : void 0;
      !element._owner ? invariant(false, 'Element ref was specified as a string (%s) but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component\'s render method\n3. You have multiple copies of React loaded\nSee https://fb.me/react-refs-must-have-owner for more information.', mixedRef) : void 0;
    }
  }
  return mixedRef;
}

function throwOnInvalidObjectType(returnFiber, newChild) {
  if (returnFiber.type !== 'textarea') {
    var addendum = '';
    {
      addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + getCurrentFiberStackInDev();
    }
    invariant(false, 'Objects are not valid as a React child (found: %s).%s', Object.prototype.toString.call(newChild) === '[object Object]' ? 'object with keys {' + Object.keys(newChild).join(', ') + '}' : newChild, addendum);
  }
}

function warnOnFunctionType() {
  var currentComponentErrorInfo = 'Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.' + getCurrentFiberStackInDev();

  if (ownerHasFunctionTypeWarning[currentComponentErrorInfo]) {
    return;
  }
  ownerHasFunctionTypeWarning[currentComponentErrorInfo] = true;

  warning$1(false, 'Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.');
}

// This wrapper function exists because I expect to clone the code in each path
// to be able to optimize each path individually by branching early. This needs
// a compiler or we can do it manually. Helpers that don't need this branching
// live outside of this function.
function ChildReconciler(shouldTrackSideEffects) {
  function deleteChild(returnFiber, childToDelete) {
    if (!shouldTrackSideEffects) {
      // Noop.
      return;
    }
    // Deletions are added in reversed order so we add it to the front.
    // At this point, the return fiber's effect list is empty except for
    // deletions, so we can just append the deletion to the list. The remaining
    // effects aren't added until the complete phase. Once we implement
    // resuming, this may not be true.
    var last = returnFiber.lastEffect;
    if (last !== null) {
      last.nextEffect = childToDelete;
      returnFiber.lastEffect = childToDelete;
    } else {
      returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
    }
    childToDelete.nextEffect = null;
    childToDelete.effectTag = Deletion;
  }

  function deleteRemainingChildren(returnFiber, currentFirstChild) {
    if (!shouldTrackSideEffects) {
      // Noop.
      return null;
    }

    // TODO: For the shouldClone case, this could be micro-optimized a bit by
    // assuming that after the first child we've already added everything.
    var childToDelete = currentFirstChild;
    while (childToDelete !== null) {
      deleteChild(returnFiber, childToDelete);
      childToDelete = childToDelete.sibling;
    }
    return null;
  }

  function mapRemainingChildren(returnFiber, currentFirstChild) {
    // Add the remaining children to a temporary map so that we can find them by
    // keys quickly. Implicit (null) keys get added to this set with their index
    var existingChildren = new Map();

    var existingChild = currentFirstChild;
    while (existingChild !== null) {
      if (existingChild.key !== null) {
        existingChildren.set(existingChild.key, existingChild);
      } else {
        existingChildren.set(existingChild.index, existingChild);
      }
      existingChild = existingChild.sibling;
    }
    return existingChildren;
  }

  function useFiber(fiber, pendingProps, expirationTime) {
    // We currently set sibling to null and index to 0 here because it is easy
    // to forget to do before returning it. E.g. for the single child case.
    var clone = createWorkInProgress(fiber, pendingProps, expirationTime);
    clone.index = 0;
    clone.sibling = null;
    return clone;
  }

  function placeChild(newFiber, lastPlacedIndex, newIndex) {
    newFiber.index = newIndex;
    if (!shouldTrackSideEffects) {
      // Noop.
      return lastPlacedIndex;
    }
    var current$$1 = newFiber.alternate;
    if (current$$1 !== null) {
      var oldIndex = current$$1.index;
      if (oldIndex < lastPlacedIndex) {
        // This is a move.
        newFiber.effectTag = Placement;
        return lastPlacedIndex;
      } else {
        // This item can stay in place.
        return oldIndex;
      }
    } else {
      // This is an insertion.
      newFiber.effectTag = Placement;
      return lastPlacedIndex;
    }
  }

  function placeSingleChild(newFiber) {
    // This is simpler for the single child case. We only need to do a
    // placement for inserting new children.
    if (shouldTrackSideEffects && newFiber.alternate === null) {
      newFiber.effectTag = Placement;
    }
    return newFiber;
  }

  function updateTextNode(returnFiber, current$$1, textContent, expirationTime) {
    if (current$$1 === null || current$$1.tag !== HostText) {
      // Insert
      var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
      created.return = returnFiber;
      return created;
    } else {
      // Update
      var existing = useFiber(current$$1, textContent, expirationTime);
      existing.return = returnFiber;
      return existing;
    }
  }

  function updateElement(returnFiber, current$$1, element, expirationTime) {
    if (current$$1 !== null && current$$1.elementType === element.type) {
      // Move based on index
      var existing = useFiber(current$$1, element.props, expirationTime);
      existing.ref = coerceRef(returnFiber, current$$1, element);
      existing.return = returnFiber;
      {
        existing._debugSource = element._source;
        existing._debugOwner = element._owner;
      }
      return existing;
    } else {
      // Insert
      var created = createFiberFromElement(element, returnFiber.mode, expirationTime);
      created.ref = coerceRef(returnFiber, current$$1, element);
      created.return = returnFiber;
      return created;
    }
  }

  function updatePortal(returnFiber, current$$1, portal, expirationTime) {
    if (current$$1 === null || current$$1.tag !== HostPortal || current$$1.stateNode.containerInfo !== portal.containerInfo || current$$1.stateNode.implementation !== portal.implementation) {
      // Insert
      var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);
      created.return = returnFiber;
      return created;
    } else {
      // Update
      var existing = useFiber(current$$1, portal.children || [], expirationTime);
      existing.return = returnFiber;
      return existing;
    }
  }

  function updateFragment(returnFiber, current$$1, fragment, expirationTime, key) {
    if (current$$1 === null || current$$1.tag !== Fragment) {
      // Insert
      var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key);
      created.return = returnFiber;
      return created;
    } else {
      // Update
      var existing = useFiber(current$$1, fragment, expirationTime);
      existing.return = returnFiber;
      return existing;
    }
  }

  function createChild(returnFiber, newChild, expirationTime) {
    if (typeof newChild === 'string' || typeof newChild === 'number') {
      // Text nodes don't have keys. If the previous node is implicitly keyed
      // we can continue to replace it without aborting even if it is not a text
      // node.
      var created = createFiberFromText('' + newChild, returnFiber.mode, expirationTime);
      created.return = returnFiber;
      return created;
    }

    if (typeof newChild === 'object' && newChild !== null) {
      switch (newChild.$$typeof) {
        case REACT_ELEMENT_TYPE:
          {
            var _created = createFiberFromElement(newChild, returnFiber.mode, expirationTime);
            _created.ref = coerceRef(returnFiber, null, newChild);
            _created.return = returnFiber;
            return _created;
          }
        case REACT_PORTAL_TYPE:
          {
            var _created2 = createFiberFromPortal(newChild, returnFiber.mode, expirationTime);
            _created2.return = returnFiber;
            return _created2;
          }
      }

      if (isArray(newChild) || getIteratorFn(newChild)) {
        var _created3 = createFiberFromFragment(newChild, returnFiber.mode, expirationTime, null);
        _created3.return = returnFiber;
        return _created3;
      }

      throwOnInvalidObjectType(returnFiber, newChild);
    }

    {
      if (typeof newChild === 'function') {
        warnOnFunctionType();
      }
    }

    return null;
  }

  function updateSlot(returnFiber, oldFiber, newChild, expirationTime) {
    // Update the fiber if the keys match, otherwise return null.

    var key = oldFiber !== null ? oldFiber.key : null;

    if (typeof newChild === 'string' || typeof newChild === 'number') {
      // Text nodes don't have keys. If the previous node is implicitly keyed
      // we can continue to replace it without aborting even if it is not a text
      // node.
      if (key !== null) {
        return null;
      }
      return updateTextNode(returnFiber, oldFiber, '' + newChild, expirationTime);
    }

    if (typeof newChild === 'object' && newChild !== null) {
      switch (newChild.$$typeof) {
        case REACT_ELEMENT_TYPE:
          {
            if (newChild.key === key) {
              if (newChild.type === REACT_FRAGMENT_TYPE) {
                return updateFragment(returnFiber, oldFiber, newChild.props.children, expirationTime, key);
              }
              return updateElement(returnFiber, oldFiber, newChild, expirationTime);
            } else {
              return null;
            }
          }
        case REACT_PORTAL_TYPE:
          {
            if (newChild.key === key) {
              return updatePortal(returnFiber, oldFiber, newChild, expirationTime);
            } else {
              return null;
            }
          }
      }

      if (isArray(newChild) || getIteratorFn(newChild)) {
        if (key !== null) {
          return null;
        }

        return updateFragment(returnFiber, oldFiber, newChild, expirationTime, null);
      }

      throwOnInvalidObjectType(returnFiber, newChild);
    }

    {
      if (typeof newChild === 'function') {
        warnOnFunctionType();
      }
    }

    return null;
  }

  function updateFromMap(existingChildren, returnFiber, newIdx, newChild, expirationTime) {
    if (typeof newChild === 'string' || typeof newChild === 'number') {
      // Text nodes don't have keys, so we neither have to check the old nor
      // new node for the key. If both are text nodes, they match.
      var matchedFiber = existingChildren.get(newIdx) || null;
      return updateTextNode(returnFiber, matchedFiber, '' + newChild, expirationTime);
    }

    if (typeof newChild === 'object' && newChild !== null) {
      switch (newChild.$$typeof) {
        case REACT_ELEMENT_TYPE:
          {
            var _matchedFiber = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
            if (newChild.type === REACT_FRAGMENT_TYPE) {
              return updateFragment(returnFiber, _matchedFiber, newChild.props.children, expirationTime, newChild.key);
            }
            return updateElement(returnFiber, _matchedFiber, newChild, expirationTime);
          }
        case REACT_PORTAL_TYPE:
          {
            var _matchedFiber2 = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
            return updatePortal(returnFiber, _matchedFiber2, newChild, expirationTime);
          }
      }

      if (isArray(newChild) || getIteratorFn(newChild)) {
        var _matchedFiber3 = existingChildren.get(newIdx) || null;
        return updateFragment(returnFiber, _matchedFiber3, newChild, expirationTime, null);
      }

      throwOnInvalidObjectType(returnFiber, newChild);
    }

    {
      if (typeof newChild === 'function') {
        warnOnFunctionType();
      }
    }

    return null;
  }

  /**
   * Warns if there is a duplicate or missing key
   */
  function warnOnInvalidKey(child, knownKeys) {
    {
      if (typeof child !== 'object' || child === null) {
        return knownKeys;
      }
      switch (child.$$typeof) {
        case REACT_ELEMENT_TYPE:
        case REACT_PORTAL_TYPE:
          warnForMissingKey(child);
          var key = child.key;
          if (typeof key !== 'string') {
            break;
          }
          if (knownKeys === null) {
            knownKeys = new Set();
            knownKeys.add(key);
            break;
          }
          if (!knownKeys.has(key)) {
            knownKeys.add(key);
            break;
          }
          warning$1(false, 'Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.', key);
          break;
        default:
          break;
      }
    }
    return knownKeys;
  }

  function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, expirationTime) {
    // This algorithm can't optimize by searching from boths ends since we
    // don't have backpointers on fibers. I'm trying to see how far we can get
    // with that model. If it ends up not being worth the tradeoffs, we can
    // add it later.

    // Even with a two ended optimization, we'd want to optimize for the case
    // where there are few changes and brute force the comparison instead of
    // going for the Map. It'd like to explore hitting that path first in
    // forward-only mode and only go for the Map once we notice that we need
    // lots of look ahead. This doesn't handle reversal as well as two ended
    // search but that's unusual. Besides, for the two ended optimization to
    // work on Iterables, we'd need to copy the whole set.

    // In this first iteration, we'll just live with hitting the bad case
    // (adding everything to a Map) in for every insert/move.

    // If you change this code, also update reconcileChildrenIterator() which
    // uses the same algorithm.

    {
      // First, validate keys.
      var knownKeys = null;
      for (var i = 0; i < newChildren.length; i++) {
        var child = newChildren[i];
        knownKeys = warnOnInvalidKey(child, knownKeys);
      }
    }

    var resultingFirstChild = null;
    var previousNewFiber = null;

    var oldFiber = currentFirstChild;
    var lastPlacedIndex = 0;
    var newIdx = 0;
    var nextOldFiber = null;
    for (; oldFiber !== null && newIdx < newChildren.length; newIdx++) {
      if (oldFiber.index > newIdx) {
        nextOldFiber = oldFiber;
        oldFiber = null;
      } else {
        nextOldFiber = oldFiber.sibling;
      }
      var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], expirationTime);
      if (newFiber === null) {
        // TODO: This breaks on empty slots like null children. That's
        // unfortunate because it triggers the slow path all the time. We need
        // a better way to communicate whether this was a miss or null,
        // boolean, undefined, etc.
        if (oldFiber === null) {
          oldFiber = nextOldFiber;
        }
        break;
      }
      if (shouldTrackSideEffects) {
        if (oldFiber && newFiber.alternate === null) {
          // We matched the slot, but we didn't reuse the existing fiber, so we
          // need to delete the existing child.
          deleteChild(returnFiber, oldFiber);
        }
      }
      lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
      if (previousNewFiber === null) {
        // TODO: Move out of the loop. This only happens for the first run.
        resultingFirstChild = newFiber;
      } else {
        // TODO: Defer siblings if we're not at the right index for this slot.
        // I.e. if we had null values before, then we want to defer this
        // for each null value. However, we also don't want to call updateSlot
        // with the previous one.
        previousNewFiber.sibling = newFiber;
      }
      previousNewFiber = newFiber;
      oldFiber = nextOldFiber;
    }

    if (newIdx === newChildren.length) {
      // We've reached the end of the new children. We can delete the rest.
      deleteRemainingChildren(returnFiber, oldFiber);
      return resultingFirstChild;
    }

    if (oldFiber === null) {
      // If we don't have any more existing children we can choose a fast path
      // since the rest will all be insertions.
      for (; newIdx < newChildren.length; newIdx++) {
        var _newFiber = createChild(returnFiber, newChildren[newIdx], expirationTime);
        if (!_newFiber) {
          continue;
        }
        lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx);
        if (previousNewFiber === null) {
          // TODO: Move out of the loop. This only happens for the first run.
          resultingFirstChild = _newFiber;
        } else {
          previousNewFiber.sibling = _newFiber;
        }
        previousNewFiber = _newFiber;
      }
      return resultingFirstChild;
    }

    // Add all children to a key map for quick lookups.
    var existingChildren = mapRemainingChildren(returnFiber, oldFiber);

    // Keep scanning and use the map to restore deleted items as moves.
    for (; newIdx < newChildren.length; newIdx++) {
      var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], expirationTime);
      if (_newFiber2) {
        if (shouldTrackSideEffects) {
          if (_newFiber2.alternate !== null) {
            // The new fiber is a work in progress, but if there exists a
            // current, that means that we reused the fiber. We need to delete
            // it from the child list so that we don't add it to the deletion
            // list.
            existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key);
          }
        }
        lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx);
        if (previousNewFiber === null) {
          resultingFirstChild = _newFiber2;
        } else {
          previousNewFiber.sibling = _newFiber2;
        }
        previousNewFiber = _newFiber2;
      }
    }

    if (shouldTrackSideEffects) {
      // Any existing children that weren't consumed above were deleted. We need
      // to add them to the deletion list.
      existingChildren.forEach(function (child) {
        return deleteChild(returnFiber, child);
      });
    }

    return resultingFirstChild;
  }

  function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, expirationTime) {
    // This is the same implementation as reconcileChildrenArray(),
    // but using the iterator instead.

    var iteratorFn = getIteratorFn(newChildrenIterable);
    !(typeof iteratorFn === 'function') ? invariant(false, 'An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.') : void 0;

    {
      // We don't support rendering Generators because it's a mutation.
      // See https://github.com/facebook/react/issues/12995
      if (typeof Symbol === 'function' &&
      // $FlowFixMe Flow doesn't know about toStringTag
      newChildrenIterable[Symbol.toStringTag] === 'Generator') {
        !didWarnAboutGenerators ? warning$1(false, 'Using Generators as children is unsupported and will likely yield ' + 'unexpected results because enumerating a generator mutates it. ' + 'You may convert it to an array with `Array.from()` or the ' + '`[...spread]` operator before rendering. Keep in mind ' + 'you might need to polyfill these features for older browsers.') : void 0;
        didWarnAboutGenerators = true;
      }

      // Warn about using Maps as children
      if (newChildrenIterable.entries === iteratorFn) {
        !didWarnAboutMaps ? warning$1(false, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.') : void 0;
        didWarnAboutMaps = true;
      }

      // First, validate keys.
      // We'll get a different iterator later for the main pass.
      var _newChildren = iteratorFn.call(newChildrenIterable);
      if (_newChildren) {
        var knownKeys = null;
        var _step = _newChildren.next();
        for (; !_step.done; _step = _newChildren.next()) {
          var child = _step.value;
          knownKeys = warnOnInvalidKey(child, knownKeys);
        }
      }
    }

    var newChildren = iteratorFn.call(newChildrenIterable);
    !(newChildren != null) ? invariant(false, 'An iterable object provided no iterator.') : void 0;

    var resultingFirstChild = null;
    var previousNewFiber = null;

    var oldFiber = currentFirstChild;
    var lastPlacedIndex = 0;
    var newIdx = 0;
    var nextOldFiber = null;

    var step = newChildren.next();
    for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) {
      if (oldFiber.index > newIdx) {
        nextOldFiber = oldFiber;
        oldFiber = null;
      } else {
        nextOldFiber = oldFiber.sibling;
      }
      var newFiber = updateSlot(returnFiber, oldFiber, step.value, expirationTime);
      if (newFiber === null) {
        // TODO: This breaks on empty slots like null children. That's
        // unfortunate because it triggers the slow path all the time. We need
        // a better way to communicate whether this was a miss or null,
        // boolean, undefined, etc.
        if (!oldFiber) {
          oldFiber = nextOldFiber;
        }
        break;
      }
      if (shouldTrackSideEffects) {
        if (oldFiber && newFiber.alternate === null) {
          // We matched the slot, but we didn't reuse the existing fiber, so we
          // need to delete the existing child.
          deleteChild(returnFiber, oldFiber);
        }
      }
      lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
      if (previousNewFiber === null) {
        // TODO: Move out of the loop. This only happens for the first run.
        resultingFirstChild = newFiber;
      } else {
        // TODO: Defer siblings if we're not at the right index for this slot.
        // I.e. if we had null values before, then we want to defer this
        // for each null value. However, we also don't want to call updateSlot
        // with the previous one.
        previousNewFiber.sibling = newFiber;
      }
      previousNewFiber = newFiber;
      oldFiber = nextOldFiber;
    }

    if (step.done) {
      // We've reached the end of the new children. We can delete the rest.
      deleteRemainingChildren(returnFiber, oldFiber);
      return resultingFirstChild;
    }

    if (oldFiber === null) {
      // If we don't have any more existing children we can choose a fast path
      // since the rest will all be insertions.
      for (; !step.done; newIdx++, step = newChildren.next()) {
        var _newFiber3 = createChild(returnFiber, step.value, expirationTime);
        if (_newFiber3 === null) {
          continue;
        }
        lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx);
        if (previousNewFiber === null) {
          // TODO: Move out of the loop. This only happens for the first run.
          resultingFirstChild = _newFiber3;
        } else {
          previousNewFiber.sibling = _newFiber3;
        }
        previousNewFiber = _newFiber3;
      }
      return resultingFirstChild;
    }

    // Add all children to a key map for quick lookups.
    var existingChildren = mapRemainingChildren(returnFiber, oldFiber);

    // Keep scanning and use the map to restore deleted items as moves.
    for (; !step.done; newIdx++, step = newChildren.next()) {
      var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, expirationTime);
      if (_newFiber4 !== null) {
        if (shouldTrackSideEffects) {
          if (_newFiber4.alternate !== null) {
            // The new fiber is a work in progress, but if there exists a
            // current, that means that we reused the fiber. We need to delete
            // it from the child list so that we don't add it to the deletion
            // list.
            existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key);
          }
        }
        lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx);
        if (previousNewFiber === null) {
          resultingFirstChild = _newFiber4;
        } else {
          previousNewFiber.sibling = _newFiber4;
        }
        previousNewFiber = _newFiber4;
      }
    }

    if (shouldTrackSideEffects) {
      // Any existing children that weren't consumed above were deleted. We need
      // to add them to the deletion list.
      existingChildren.forEach(function (child) {
        return deleteChild(returnFiber, child);
      });
    }

    return resultingFirstChild;
  }

  function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, expirationTime) {
    // There's no need to check for keys on text nodes since we don't have a
    // way to define them.
    if (currentFirstChild !== null && currentFirstChild.tag === HostText) {
      // We already have an existing node so let's just update it and delete
      // the rest.
      deleteRemainingChildren(returnFiber, currentFirstChild.sibling);
      var existing = useFiber(currentFirstChild, textContent, expirationTime);
      existing.return = returnFiber;
      return existing;
    }
    // The existing first child is not a text node so we need to create one
    // and delete the existing ones.
    deleteRemainingChildren(returnFiber, currentFirstChild);
    var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
    created.return = returnFiber;
    return created;
  }

  function reconcileSingleElement(returnFiber, currentFirstChild, element, expirationTime) {
    var key = element.key;
    var child = currentFirstChild;
    while (child !== null) {
      // TODO: If key === null and child.key === null, then this only applies to
      // the first item in the list.
      if (child.key === key) {
        if (child.tag === Fragment ? element.type === REACT_FRAGMENT_TYPE : child.elementType === element.type) {
          deleteRemainingChildren(returnFiber, child.sibling);
          var existing = useFiber(child, element.type === REACT_FRAGMENT_TYPE ? element.props.children : element.props, expirationTime);
          existing.ref = coerceRef(returnFiber, child, element);
          existing.return = returnFiber;
          {
            existing._debugSource = element._source;
            existing._debugOwner = element._owner;
          }
          return existing;
        } else {
          deleteRemainingChildren(returnFiber, child);
          break;
        }
      } else {
        deleteChild(returnFiber, child);
      }
      child = child.sibling;
    }

    if (element.type === REACT_FRAGMENT_TYPE) {
      var created = createFiberFromFragment(element.props.children, returnFiber.mode, expirationTime, element.key);
      created.return = returnFiber;
      return created;
    } else {
      var _created4 = createFiberFromElement(element, returnFiber.mode, expirationTime);
      _created4.ref = coerceRef(returnFiber, currentFirstChild, element);
      _created4.return = returnFiber;
      return _created4;
    }
  }

  function reconcileSinglePortal(returnFiber, currentFirstChild, portal, expirationTime) {
    var key = portal.key;
    var child = currentFirstChild;
    while (child !== null) {
      // TODO: If key === null and child.key === null, then this only applies to
      // the first item in the list.
      if (child.key === key) {
        if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) {
          deleteRemainingChildren(returnFiber, child.sibling);
          var existing = useFiber(child, portal.children || [], expirationTime);
          existing.return = returnFiber;
          return existing;
        } else {
          deleteRemainingChildren(returnFiber, child);
          break;
        }
      } else {
        deleteChild(returnFiber, child);
      }
      child = child.sibling;
    }

    var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);
    created.return = returnFiber;
    return created;
  }

  // This API will tag the children with the side-effect of the reconciliation
  // itself. They will be added to the side-effect list as we pass through the
  // children and the parent.
  function reconcileChildFibers(returnFiber, currentFirstChild, newChild, expirationTime) {
    // This function is not recursive.
    // If the top level item is an array, we treat it as a set of children,
    // not as a fragment. Nested arrays on the other hand will be treated as
    // fragment nodes. Recursion happens at the normal flow.

    // Handle top level unkeyed fragments as if they were arrays.
    // This leads to an ambiguity between <>{[...]}</> and <>...</>.
    // We treat the ambiguous cases above the same.
    var isUnkeyedTopLevelFragment = typeof newChild === 'object' && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null;
    if (isUnkeyedTopLevelFragment) {
      newChild = newChild.props.children;
    }

    // Handle object types
    var isObject = typeof newChild === 'object' && newChild !== null;

    if (isObject) {
      switch (newChild.$$typeof) {
        case REACT_ELEMENT_TYPE:
          return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, expirationTime));
        case REACT_PORTAL_TYPE:
          return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, expirationTime));
      }
    }

    if (typeof newChild === 'string' || typeof newChild === 'number') {
      return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, '' + newChild, expirationTime));
    }

    if (isArray(newChild)) {
      return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, expirationTime);
    }

    if (getIteratorFn(newChild)) {
      return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, expirationTime);
    }

    if (isObject) {
      throwOnInvalidObjectType(returnFiber, newChild);
    }

    {
      if (typeof newChild === 'function') {
        warnOnFunctionType();
      }
    }
    if (typeof newChild === 'undefined' && !isUnkeyedTopLevelFragment) {
      // If the new child is undefined, and the return fiber is a composite
      // component, throw an error. If Fiber return types are disabled,
      // we already threw above.
      switch (returnFiber.tag) {
        case ClassComponent:
          {
            {
              var instance = returnFiber.stateNode;
              if (instance.render._isMockFunction) {
                // We allow auto-mocks to proceed as if they're returning null.
                break;
              }
            }
          }
        // Intentionally fall through to the next case, which handles both
        // functions and classes
        // eslint-disable-next-lined no-fallthrough
        case FunctionComponent:
          {
            var Component = returnFiber.type;
            invariant(false, '%s(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.', Component.displayName || Component.name || 'Component');
          }
      }
    }

    // Remaining cases are all treated as empty.
    return deleteRemainingChildren(returnFiber, currentFirstChild);
  }

  return reconcileChildFibers;
}

var reconcileChildFibers = ChildReconciler(true);
var mountChildFibers = ChildReconciler(false);

function cloneChildFibers(current$$1, workInProgress) {
  !(current$$1 === null || workInProgress.child === current$$1.child) ? invariant(false, 'Resuming work not yet implemented.') : void 0;

  if (workInProgress.child === null) {
    return;
  }

  var currentChild = workInProgress.child;
  var newChild = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime);
  workInProgress.child = newChild;

  newChild.return = workInProgress;
  while (currentChild.sibling !== null) {
    currentChild = currentChild.sibling;
    newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime);
    newChild.return = workInProgress;
  }
  newChild.sibling = null;
}

// The deepest Fiber on the stack involved in a hydration context.
// This may have been an insertion or a hydration.
var hydrationParentFiber = null;
var nextHydratableInstance = null;
var isHydrating = false;

function enterHydrationState(fiber) {
  if (!supportsHydration) {
    return false;
  }

  var parentInstance = fiber.stateNode.containerInfo;
  nextHydratableInstance = getFirstHydratableChild(parentInstance);
  hydrationParentFiber = fiber;
  isHydrating = true;
  return true;
}

function deleteHydratableInstance(returnFiber, instance) {
  {
    switch (returnFiber.tag) {
      case HostRoot:
        didNotHydrateContainerInstance(returnFiber.stateNode.containerInfo, instance);
        break;
      case HostComponent:
        didNotHydrateInstance(returnFiber.type, returnFiber.memoizedProps, returnFiber.stateNode, instance);
        break;
    }
  }

  var childToDelete = createFiberFromHostInstanceForDeletion();
  childToDelete.stateNode = instance;
  childToDelete.return = returnFiber;
  childToDelete.effectTag = Deletion;

  // This might seem like it belongs on progressedFirstDeletion. However,
  // these children are not part of the reconciliation list of children.
  // Even if we abort and rereconcile the children, that will try to hydrate
  // again and the nodes are still in the host tree so these will be
  // recreated.
  if (returnFiber.lastEffect !== null) {
    returnFiber.lastEffect.nextEffect = childToDelete;
    returnFiber.lastEffect = childToDelete;
  } else {
    returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
  }
}

function insertNonHydratedInstance(returnFiber, fiber) {
  fiber.effectTag |= Placement;
  {
    switch (returnFiber.tag) {
      case HostRoot:
        {
          var parentContainer = returnFiber.stateNode.containerInfo;
          switch (fiber.tag) {
            case HostComponent:
              var type = fiber.type;
              var props = fiber.pendingProps;
              didNotFindHydratableContainerInstance(parentContainer, type, props);
              break;
            case HostText:
              var text = fiber.pendingProps;
              didNotFindHydratableContainerTextInstance(parentContainer, text);
              break;
          }
          break;
        }
      case HostComponent:
        {
          var parentType = returnFiber.type;
          var parentProps = returnFiber.memoizedProps;
          var parentInstance = returnFiber.stateNode;
          switch (fiber.tag) {
            case HostComponent:
              var _type = fiber.type;
              var _props = fiber.pendingProps;
              didNotFindHydratableInstance(parentType, parentProps, parentInstance, _type, _props);
              break;
            case HostText:
              var _text = fiber.pendingProps;
              didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, _text);
              break;
          }
          break;
        }
      default:
        return;
    }
  }
}

function tryHydrate(fiber, nextInstance) {
  switch (fiber.tag) {
    case HostComponent:
      {
        var type = fiber.type;
        var props = fiber.pendingProps;
        var instance = canHydrateInstance(nextInstance, type, props);
        if (instance !== null) {
          fiber.stateNode = instance;
          return true;
        }
        return false;
      }
    case HostText:
      {
        var text = fiber.pendingProps;
        var textInstance = canHydrateTextInstance(nextInstance, text);
        if (textInstance !== null) {
          fiber.stateNode = textInstance;
          return true;
        }
        return false;
      }
    default:
      return false;
  }
}

function tryToClaimNextHydratableInstance(fiber) {
  if (!isHydrating) {
    return;
  }
  var nextInstance = nextHydratableInstance;
  if (!nextInstance) {
    // Nothing to hydrate. Make it an insertion.
    insertNonHydratedInstance(hydrationParentFiber, fiber);
    isHydrating = false;
    hydrationParentFiber = fiber;
    return;
  }
  var firstAttemptedInstance = nextInstance;
  if (!tryHydrate(fiber, nextInstance)) {
    // If we can't hydrate this instance let's try the next one.
    // We use this as a heuristic. It's based on intuition and not data so it
    // might be flawed or unnecessary.
    nextInstance = getNextHydratableSibling(firstAttemptedInstance);
    if (!nextInstance || !tryHydrate(fiber, nextInstance)) {
      // Nothing to hydrate. Make it an insertion.
      insertNonHydratedInstance(hydrationParentFiber, fiber);
      isHydrating = false;
      hydrationParentFiber = fiber;
      return;
    }
    // We matched the next one, we'll now assume that the first one was
    // superfluous and we'll delete it. Since we can't eagerly delete it
    // we'll have to schedule a deletion. To do that, this node needs a dummy
    // fiber associated with it.
    deleteHydratableInstance(hydrationParentFiber, firstAttemptedInstance);
  }
  hydrationParentFiber = fiber;
  nextHydratableInstance = getFirstHydratableChild(nextInstance);
}

function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) {
  if (!supportsHydration) {
    invariant(false, 'Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.');
  }

  var instance = fiber.stateNode;
  var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber);
  // TODO: Type this specific to this type of component.
  fiber.updateQueue = updatePayload;
  // If the update payload indicates that there is a change or if there
  // is a new ref we mark this as an update.
  if (updatePayload !== null) {
    return true;
  }
  return false;
}

function prepareToHydrateHostTextInstance(fiber) {
  if (!supportsHydration) {
    invariant(false, 'Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.');
  }

  var textInstance = fiber.stateNode;
  var textContent = fiber.memoizedProps;
  var shouldUpdate = hydrateTextInstance(textInstance, textContent, fiber);
  {
    if (shouldUpdate) {
      // We assume that prepareToHydrateHostTextInstance is called in a context where the
      // hydration parent is the parent host component of this host text.
      var returnFiber = hydrationParentFiber;
      if (returnFiber !== null) {
        switch (returnFiber.tag) {
          case HostRoot:
            {
              var parentContainer = returnFiber.stateNode.containerInfo;
              didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, textContent);
              break;
            }
          case HostComponent:
            {
              var parentType = returnFiber.type;
              var parentProps = returnFiber.memoizedProps;
              var parentInstance = returnFiber.stateNode;
              didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, textContent);
              break;
            }
        }
      }
    }
  }
  return shouldUpdate;
}

function popToNextHostParent(fiber) {
  var parent = fiber.return;
  while (parent !== null && parent.tag !== HostComponent && parent.tag !== HostRoot) {
    parent = parent.return;
  }
  hydrationParentFiber = parent;
}

function popHydrationState(fiber) {
  if (!supportsHydration) {
    return false;
  }
  if (fiber !== hydrationParentFiber) {
    // We're deeper than the current hydration context, inside an inserted
    // tree.
    return false;
  }
  if (!isHydrating) {
    // If we're not currently hydrating but we're in a hydration context, then
    // we were an insertion and now need to pop up reenter hydration of our
    // siblings.
    popToNextHostParent(fiber);
    isHydrating = true;
    return false;
  }

  var type = fiber.type;

  // If we have any remaining hydratable nodes, we need to delete them now.
  // We only do this deeper than head and body since they tend to have random
  // other nodes in them. We also ignore components with pure text content in
  // side of them.
  // TODO: Better heuristic.
  if (fiber.tag !== HostComponent || type !== 'head' && type !== 'body' && !shouldSetTextContent(type, fiber.memoizedProps)) {
    var nextInstance = nextHydratableInstance;
    while (nextInstance) {
      deleteHydratableInstance(fiber, nextInstance);
      nextInstance = getNextHydratableSibling(nextInstance);
    }
  }

  popToNextHostParent(fiber);
  nextHydratableInstance = hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode) : null;
  return true;
}

function resetHydrationState() {
  if (!supportsHydration) {
    return;
  }

  hydrationParentFiber = null;
  nextHydratableInstance = null;
  isHydrating = false;
}

var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner;

var didWarnAboutBadClass = void 0;
var didWarnAboutContextTypeOnFunctionComponent = void 0;
var didWarnAboutGetDerivedStateOnFunctionComponent = void 0;
var didWarnAboutFunctionRefs = void 0;

{
  didWarnAboutBadClass = {};
  didWarnAboutContextTypeOnFunctionComponent = {};
  didWarnAboutGetDerivedStateOnFunctionComponent = {};
  didWarnAboutFunctionRefs = {};
}

function reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime) {
  if (current$$1 === null) {
    // If this is a fresh new component that hasn't been rendered yet, we
    // won't update its child set by applying minimal side-effects. Instead,
    // we will add them all to the child before it gets rendered. That means
    // we can optimize this reconciliation pass by not tracking side-effects.
    workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  } else {
    // If the current child is the same as the work in progress, it means that
    // we haven't yet started any work on these children. Therefore, we use
    // the clone algorithm to create a copy of all the current children.

    // If we had any progressed work already, that is invalid at this point so
    // let's throw it out.
    workInProgress.child = reconcileChildFibers(workInProgress, current$$1.child, nextChildren, renderExpirationTime);
  }
}

function forceUnmountCurrentAndReconcile(current$$1, workInProgress, nextChildren, renderExpirationTime) {
  // This function is fork of reconcileChildren. It's used in cases where we
  // want to reconcile without matching against the existing set. This has the
  // effect of all current children being unmounted; even if the type and key
  // are the same, the old child is unmounted and a new child is created.
  //
  // To do this, we're going to go through the reconcile algorithm twice. In
  // the first pass, we schedule a deletion for all the current children by
  // passing null.
  workInProgress.child = reconcileChildFibers(workInProgress, current$$1.child, null, renderExpirationTime);
  // In the second pass, we mount the new children. The trick here is that we
  // pass null in place of where we usually pass the current child set. This has
  // the effect of remounting all children regardless of whether their their
  // identity matches.
  workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
}

function updateForwardRef(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {
  var render = Component.render;
  var ref = workInProgress.ref;

  // The rest is a fork of updateFunctionComponent
  var nextChildren = void 0;
  prepareToReadContext(workInProgress, renderExpirationTime);
  prepareToUseHooks(current$$1, workInProgress, renderExpirationTime);
  {
    ReactCurrentOwner$3.current = workInProgress;
    setCurrentPhase('render');
    nextChildren = render(nextProps, ref);
    setCurrentPhase(null);
  }
  nextChildren = finishHooks(render, nextProps, nextChildren, ref);

  // React DevTools reads this flag.
  workInProgress.effectTag |= PerformedWork;
  reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  return workInProgress.child;
}

function updateMemoComponent(current$$1, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) {
  if (current$$1 === null) {
    var type = Component.type;
    if (isSimpleFunctionComponent(type) && Component.compare === null) {
      // If this is a plain function component without default props,
      // and with only the default shallow comparison, we upgrade it
      // to a SimpleMemoComponent to allow fast path updates.
      workInProgress.tag = SimpleMemoComponent;
      workInProgress.type = type;
      return updateSimpleMemoComponent(current$$1, workInProgress, type, nextProps, updateExpirationTime, renderExpirationTime);
    }
    var child = createFiberFromTypeAndProps(Component.type, null, nextProps, null, workInProgress.mode, renderExpirationTime);
    child.ref = workInProgress.ref;
    child.return = workInProgress;
    workInProgress.child = child;
    return child;
  }
  var currentChild = current$$1.child; // This is always exactly one child
  if (updateExpirationTime < renderExpirationTime) {
    // This will be the props with resolved defaultProps,
    // unlike current.memoizedProps which will be the unresolved ones.
    var prevProps = currentChild.memoizedProps;
    // Default to shallow comparison
    var compare = Component.compare;
    compare = compare !== null ? compare : shallowEqual;
    if (compare(prevProps, nextProps) && current$$1.ref === workInProgress.ref) {
      return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
    }
  }
  var newChild = createWorkInProgress(currentChild, nextProps, renderExpirationTime);
  newChild.ref = workInProgress.ref;
  newChild.return = workInProgress;
  workInProgress.child = newChild;
  return newChild;
}

function updateSimpleMemoComponent(current$$1, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) {
  if (current$$1 !== null && updateExpirationTime < renderExpirationTime) {
    var prevProps = current$$1.memoizedProps;
    if (shallowEqual(prevProps, nextProps) && current$$1.ref === workInProgress.ref) {
      return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
    }
  }
  return updateFunctionComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime);
}

function updateFragment(current$$1, workInProgress, renderExpirationTime) {
  var nextChildren = workInProgress.pendingProps;
  reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  return workInProgress.child;
}

function updateMode(current$$1, workInProgress, renderExpirationTime) {
  var nextChildren = workInProgress.pendingProps.children;
  reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  return workInProgress.child;
}

function updateProfiler(current$$1, workInProgress, renderExpirationTime) {
  if (enableProfilerTimer) {
    workInProgress.effectTag |= Update;
  }
  var nextProps = workInProgress.pendingProps;
  var nextChildren = nextProps.children;
  reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  return workInProgress.child;
}

function markRef(current$$1, workInProgress) {
  var ref = workInProgress.ref;
  if (current$$1 === null && ref !== null || current$$1 !== null && current$$1.ref !== ref) {
    // Schedule a Ref effect
    workInProgress.effectTag |= Ref;
  }
}

function updateFunctionComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {
  var unmaskedContext = getUnmaskedContext(workInProgress, Component, true);
  var context = getMaskedContext(workInProgress, unmaskedContext);

  var nextChildren = void 0;
  prepareToReadContext(workInProgress, renderExpirationTime);
  prepareToUseHooks(current$$1, workInProgress, renderExpirationTime);
  {
    ReactCurrentOwner$3.current = workInProgress;
    setCurrentPhase('render');
    nextChildren = Component(nextProps, context);
    setCurrentPhase(null);
  }
  nextChildren = finishHooks(Component, nextProps, nextChildren, context);

  // React DevTools reads this flag.
  workInProgress.effectTag |= PerformedWork;
  reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  return workInProgress.child;
}

function updateClassComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {
  // Push context providers early to prevent context stack mismatches.
  // During mounting we don't know the child context yet as the instance doesn't exist.
  // We will invalidate the child context in finishClassComponent() right after rendering.
  var hasContext = void 0;
  if (isContextProvider(Component)) {
    hasContext = true;
    pushContextProvider(workInProgress);
  } else {
    hasContext = false;
  }
  prepareToReadContext(workInProgress, renderExpirationTime);

  var instance = workInProgress.stateNode;
  var shouldUpdate = void 0;
  if (instance === null) {
    if (current$$1 !== null) {
      // An class component without an instance only mounts if it suspended
      // inside a non- concurrent tree, in an inconsistent state. We want to
      // tree it like a new mount, even though an empty version of it already
      // committed. Disconnect the alternate pointers.
      current$$1.alternate = null;
      workInProgress.alternate = null;
      // Since this is conceptually a new fiber, schedule a Placement effect
      workInProgress.effectTag |= Placement;
    }
    // In the initial pass we might need to construct the instance.
    constructClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
    mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
    shouldUpdate = true;
  } else if (current$$1 === null) {
    // In a resume, we'll already have an instance we can reuse.
    shouldUpdate = resumeMountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  } else {
    shouldUpdate = updateClassInstance(current$$1, workInProgress, Component, nextProps, renderExpirationTime);
  }
  return finishClassComponent(current$$1, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime);
}

function finishClassComponent(current$$1, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime) {
  // Refs should update even if shouldComponentUpdate returns false
  markRef(current$$1, workInProgress);

  var didCaptureError = (workInProgress.effectTag & DidCapture) !== NoEffect;

  if (!shouldUpdate && !didCaptureError) {
    // Context providers should defer to sCU for rendering
    if (hasContext) {
      invalidateContextProvider(workInProgress, Component, false);
    }

    return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  }

  var instance = workInProgress.stateNode;

  // Rerender
  ReactCurrentOwner$3.current = workInProgress;
  var nextChildren = void 0;
  if (didCaptureError && typeof Component.getDerivedStateFromError !== 'function') {
    // If we captured an error, but getDerivedStateFrom catch is not defined,
    // unmount all the children. componentDidCatch will schedule an update to
    // re-render a fallback. This is temporary until we migrate everyone to
    // the new API.
    // TODO: Warn in a future release.
    nextChildren = null;

    if (enableProfilerTimer) {
      stopProfilerTimerIfRunning(workInProgress);
    }
  } else {
    {
      setCurrentPhase('render');
      nextChildren = instance.render();
      if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
        instance.render();
      }
      setCurrentPhase(null);
    }
  }

  // React DevTools reads this flag.
  workInProgress.effectTag |= PerformedWork;
  if (current$$1 !== null && didCaptureError) {
    // If we're recovering from an error, reconcile without reusing any of
    // the existing children. Conceptually, the normal children and the children
    // that are shown on error are two different sets, so we shouldn't reuse
    // normal children even if their identities match.
    forceUnmountCurrentAndReconcile(current$$1, workInProgress, nextChildren, renderExpirationTime);
  } else {
    reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  }

  // Memoize state using the values we just used to render.
  // TODO: Restructure so we never read values from the instance.
  workInProgress.memoizedState = instance.state;

  // The context might have changed so we need to recalculate it.
  if (hasContext) {
    invalidateContextProvider(workInProgress, Component, true);
  }

  return workInProgress.child;
}

function pushHostRootContext(workInProgress) {
  var root = workInProgress.stateNode;
  if (root.pendingContext) {
    pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context);
  } else if (root.context) {
    // Should always be set
    pushTopLevelContextObject(workInProgress, root.context, false);
  }
  pushHostContainer(workInProgress, root.containerInfo);
}

function updateHostRoot(current$$1, workInProgress, renderExpirationTime) {
  pushHostRootContext(workInProgress);
  var updateQueue = workInProgress.updateQueue;
  !(updateQueue !== null) ? invariant(false, 'If the root does not have an updateQueue, we should have already bailed out. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  var nextProps = workInProgress.pendingProps;
  var prevState = workInProgress.memoizedState;
  var prevChildren = prevState !== null ? prevState.element : null;
  processUpdateQueue(workInProgress, updateQueue, nextProps, null, renderExpirationTime);
  var nextState = workInProgress.memoizedState;
  // Caution: React DevTools currently depends on this property
  // being called "element".
  var nextChildren = nextState.element;
  if (nextChildren === prevChildren) {
    // If the state is the same as before, that's a bailout because we had
    // no work that expires at this time.
    resetHydrationState();
    return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  }
  var root = workInProgress.stateNode;
  if ((current$$1 === null || current$$1.child === null) && root.hydrate && enterHydrationState(workInProgress)) {
    // If we don't have any current children this might be the first pass.
    // We always try to hydrate. If this isn't a hydration pass there won't
    // be any children to hydrate which is effectively the same thing as
    // not hydrating.

    // This is a bit of a hack. We track the host root as a placement to
    // know that we're currently in a mounting state. That way isMounted
    // works as expected. We must reset this before committing.
    // TODO: Delete this when we delete isMounted and findDOMNode.
    workInProgress.effectTag |= Placement;

    // Ensure that children mount into this root without tracking
    // side-effects. This ensures that we don't store Placement effects on
    // nodes that will be hydrated.
    workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  } else {
    // Otherwise reset hydration state in case we aborted and resumed another
    // root.
    reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
    resetHydrationState();
  }
  return workInProgress.child;
}

function updateHostComponent(current$$1, workInProgress, renderExpirationTime) {
  pushHostContext(workInProgress);

  if (current$$1 === null) {
    tryToClaimNextHydratableInstance(workInProgress);
  }

  var type = workInProgress.type;
  var nextProps = workInProgress.pendingProps;
  var prevProps = current$$1 !== null ? current$$1.memoizedProps : null;

  var nextChildren = nextProps.children;
  var isDirectTextChild = shouldSetTextContent(type, nextProps);

  if (isDirectTextChild) {
    // We special case a direct text child of a host node. This is a common
    // case. We won't handle it as a reified child. We will instead handle
    // this in the host environment that also have access to this prop. That
    // avoids allocating another HostText fiber and traversing it.
    nextChildren = null;
  } else if (prevProps !== null && shouldSetTextContent(type, prevProps)) {
    // If we're switching from a direct text child to a normal child, or to
    // empty, we need to schedule the text content to be reset.
    workInProgress.effectTag |= ContentReset;
  }

  markRef(current$$1, workInProgress);

  // Check the host config to see if the children are offscreen/hidden.
  if (renderExpirationTime !== Never && workInProgress.mode & ConcurrentMode && shouldDeprioritizeSubtree(type, nextProps)) {
    // Schedule this fiber to re-render at offscreen priority. Then bailout.
    workInProgress.expirationTime = Never;
    return null;
  }

  reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  return workInProgress.child;
}

function updateHostText(current$$1, workInProgress) {
  if (current$$1 === null) {
    tryToClaimNextHydratableInstance(workInProgress);
  }
  // Nothing to do here. This is terminal. We'll do the completion step
  // immediately after.
  return null;
}

function mountLazyComponent(_current, workInProgress, elementType, updateExpirationTime, renderExpirationTime) {
  if (_current !== null) {
    // An lazy component only mounts if it suspended inside a non-
    // concurrent tree, in an inconsistent state. We want to tree it like
    // a new mount, even though an empty version of it already committed.
    // Disconnect the alternate pointers.
    _current.alternate = null;
    workInProgress.alternate = null;
    // Since this is conceptually a new fiber, schedule a Placement effect
    workInProgress.effectTag |= Placement;
  }

  var props = workInProgress.pendingProps;
  // We can't start a User Timing measurement with correct label yet.
  // Cancel and resume right after we know the tag.
  cancelWorkTimer(workInProgress);
  var Component = readLazyComponentType(elementType);
  // Store the unwrapped component in the type.
  workInProgress.type = Component;
  var resolvedTag = workInProgress.tag = resolveLazyComponentTag(Component);
  startWorkTimer(workInProgress);
  var resolvedProps = resolveDefaultProps(Component, props);
  var child = void 0;
  switch (resolvedTag) {
    case FunctionComponent:
      {
        child = updateFunctionComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);
        break;
      }
    case ClassComponent:
      {
        child = updateClassComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);
        break;
      }
    case ForwardRef:
      {
        child = updateForwardRef(null, workInProgress, Component, resolvedProps, renderExpirationTime);
        break;
      }
    case MemoComponent:
      {
        child = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, resolvedProps), // The inner type can have defaults too
        updateExpirationTime, renderExpirationTime);
        break;
      }
    default:
      {
        // This message intentionally doesn't metion ForwardRef or MemoComponent
        // because the fact that it's a separate type of work is an
        // implementation detail.
        invariant(false, 'Element type is invalid. Received a promise that resolves to: %s. Promise elements must resolve to a class or function.', Component);
      }
  }
  return child;
}

function mountIncompleteClassComponent(_current, workInProgress, Component, nextProps, renderExpirationTime) {
  if (_current !== null) {
    // An incomplete component only mounts if it suspended inside a non-
    // concurrent tree, in an inconsistent state. We want to tree it like
    // a new mount, even though an empty version of it already committed.
    // Disconnect the alternate pointers.
    _current.alternate = null;
    workInProgress.alternate = null;
    // Since this is conceptually a new fiber, schedule a Placement effect
    workInProgress.effectTag |= Placement;
  }

  // Promote the fiber to a class and try rendering again.
  workInProgress.tag = ClassComponent;

  // The rest of this function is a fork of `updateClassComponent`

  // Push context providers early to prevent context stack mismatches.
  // During mounting we don't know the child context yet as the instance doesn't exist.
  // We will invalidate the child context in finishClassComponent() right after rendering.
  var hasContext = void 0;
  if (isContextProvider(Component)) {
    hasContext = true;
    pushContextProvider(workInProgress);
  } else {
    hasContext = false;
  }
  prepareToReadContext(workInProgress, renderExpirationTime);

  constructClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);

  return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);
}

function mountIndeterminateComponent(_current, workInProgress, Component, renderExpirationTime) {
  if (_current !== null) {
    // An indeterminate component only mounts if it suspended inside a non-
    // concurrent tree, in an inconsistent state. We want to tree it like
    // a new mount, even though an empty version of it already committed.
    // Disconnect the alternate pointers.
    _current.alternate = null;
    workInProgress.alternate = null;
    // Since this is conceptually a new fiber, schedule a Placement effect
    workInProgress.effectTag |= Placement;
  }

  var props = workInProgress.pendingProps;
  var unmaskedContext = getUnmaskedContext(workInProgress, Component, false);
  var context = getMaskedContext(workInProgress, unmaskedContext);

  prepareToReadContext(workInProgress, renderExpirationTime);
  prepareToUseHooks(null, workInProgress, renderExpirationTime);

  var value = void 0;

  {
    if (Component.prototype && typeof Component.prototype.render === 'function') {
      var componentName = getComponentName(Component) || 'Unknown';

      if (!didWarnAboutBadClass[componentName]) {
        warningWithoutStack$1(false, "The <%s /> component appears to have a render method, but doesn't extend React.Component. " + 'This is likely to cause errors. Change %s to extend React.Component instead.', componentName, componentName);
        didWarnAboutBadClass[componentName] = true;
      }
    }

    if (workInProgress.mode & StrictMode) {
      ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null);
    }

    ReactCurrentOwner$3.current = workInProgress;
    value = Component(props, context);
  }
  // React DevTools reads this flag.
  workInProgress.effectTag |= PerformedWork;

  if (typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {
    // Proceed under the assumption that this is a class instance
    workInProgress.tag = ClassComponent;

    // Throw out any hooks that were used.
    resetHooks();

    // Push context providers early to prevent context stack mismatches.
    // During mounting we don't know the child context yet as the instance doesn't exist.
    // We will invalidate the child context in finishClassComponent() right after rendering.
    var hasContext = false;
    if (isContextProvider(Component)) {
      hasContext = true;
      pushContextProvider(workInProgress);
    } else {
      hasContext = false;
    }

    workInProgress.memoizedState = value.state !== null && value.state !== undefined ? value.state : null;

    var getDerivedStateFromProps = Component.getDerivedStateFromProps;
    if (typeof getDerivedStateFromProps === 'function') {
      applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps, props);
    }

    adoptClassInstance(workInProgress, value);
    mountClassInstance(workInProgress, Component, props, renderExpirationTime);
    return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);
  } else {
    // Proceed under the assumption that this is a function component
    workInProgress.tag = FunctionComponent;
    value = finishHooks(Component, props, value, context);
    {
      if (Component) {
        !!Component.childContextTypes ? warningWithoutStack$1(false, '%s(...): childContextTypes cannot be defined on a function component.', Component.displayName || Component.name || 'Component') : void 0;
      }
      if (workInProgress.ref !== null) {
        var info = '';
        var ownerName = getCurrentFiberOwnerNameInDevOrNull();
        if (ownerName) {
          info += '\n\nCheck the render method of `' + ownerName + '`.';
        }

        var warningKey = ownerName || workInProgress._debugID || '';
        var debugSource = workInProgress._debugSource;
        if (debugSource) {
          warningKey = debugSource.fileName + ':' + debugSource.lineNumber;
        }
        if (!didWarnAboutFunctionRefs[warningKey]) {
          didWarnAboutFunctionRefs[warningKey] = true;
          warning$1(false, 'Function components cannot be given refs. ' + 'Attempts to access this ref will fail.%s', info);
        }
      }

      if (typeof Component.getDerivedStateFromProps === 'function') {
        var _componentName = getComponentName(Component) || 'Unknown';

        if (!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName]) {
          warningWithoutStack$1(false, '%s: Function components do not support getDerivedStateFromProps.', _componentName);
          didWarnAboutGetDerivedStateOnFunctionComponent[_componentName] = true;
        }
      }

      if (typeof Component.contextType === 'object' && Component.contextType !== null) {
        var _componentName2 = getComponentName(Component) || 'Unknown';

        if (!didWarnAboutContextTypeOnFunctionComponent[_componentName2]) {
          warningWithoutStack$1(false, '%s: Function components do not support contextType.', _componentName2);
          didWarnAboutContextTypeOnFunctionComponent[_componentName2] = true;
        }
      }
    }
    reconcileChildren(null, workInProgress, value, renderExpirationTime);
    return workInProgress.child;
  }
}

function updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime) {
  var mode = workInProgress.mode;
  var nextProps = workInProgress.pendingProps;

  // We should attempt to render the primary children unless this boundary
  // already suspended during this render (`alreadyCaptured` is true).
  var nextState = workInProgress.memoizedState;

  var nextDidTimeout = void 0;
  if ((workInProgress.effectTag & DidCapture) === NoEffect) {
    // This is the first attempt.
    nextState = null;
    nextDidTimeout = false;
  } else {
    // Something in this boundary's subtree already suspended. Switch to
    // rendering the fallback children.
    nextState = {
      timedOutAt: nextState !== null ? nextState.timedOutAt : NoWork
    };
    nextDidTimeout = true;
    workInProgress.effectTag &= ~DidCapture;
  }

  // This next part is a bit confusing. If the children timeout, we switch to
  // showing the fallback children in place of the "primary" children.
  // However, we don't want to delete the primary children because then their
  // state will be lost (both the React state and the host state, e.g.
  // uncontrolled form inputs). Instead we keep them mounted and hide them.
  // Both the fallback children AND the primary children are rendered at the
  // same time. Once the primary children are un-suspended, we can delete
  // the fallback children — don't need to preserve their state.
  //
  // The two sets of children are siblings in the host environment, but
  // semantically, for purposes of reconciliation, they are two separate sets.
  // So we store them using two fragment fibers.
  //
  // However, we want to avoid allocating extra fibers for every placeholder.
  // They're only necessary when the children time out, because that's the
  // only time when both sets are mounted.
  //
  // So, the extra fragment fibers are only used if the children time out.
  // Otherwise, we render the primary children directly. This requires some
  // custom reconciliation logic to preserve the state of the primary
  // children. It's essentially a very basic form of re-parenting.

  // `child` points to the child fiber. In the normal case, this is the first
  // fiber of the primary children set. In the timed-out case, it's a
  // a fragment fiber containing the primary children.
  var child = void 0;
  // `next` points to the next fiber React should render. In the normal case,
  // it's the same as `child`: the first fiber of the primary children set.
  // In the timed-out case, it's a fragment fiber containing the *fallback*
  // children -- we skip over the primary children entirely.
  var next = void 0;
  if (current$$1 === null) {
    // This is the initial mount. This branch is pretty simple because there's
    // no previous state that needs to be preserved.
    if (nextDidTimeout) {
      // Mount separate fragments for primary and fallback children.
      var nextFallbackChildren = nextProps.fallback;
      var primaryChildFragment = createFiberFromFragment(null, mode, NoWork, null);

      if ((workInProgress.mode & ConcurrentMode) === NoContext) {
        // Outside of concurrent mode, we commit the effects from the
        var progressedState = workInProgress.memoizedState;
        var progressedPrimaryChild = progressedState !== null ? workInProgress.child.child : workInProgress.child;
        reuseProgressedPrimaryChild(workInProgress, primaryChildFragment, progressedPrimaryChild);
      }

      var fallbackChildFragment = createFiberFromFragment(nextFallbackChildren, mode, renderExpirationTime, null);
      primaryChildFragment.sibling = fallbackChildFragment;
      child = primaryChildFragment;
      // Skip the primary children, and continue working on the
      // fallback children.
      next = fallbackChildFragment;
      child.return = next.return = workInProgress;
    } else {
      // Mount the primary children without an intermediate fragment fiber.
      var nextPrimaryChildren = nextProps.children;
      child = next = mountChildFibers(workInProgress, null, nextPrimaryChildren, renderExpirationTime);
    }
  } else {
    // This is an update. This branch is more complicated because we need to
    // ensure the state of the primary children is preserved.
    var prevState = current$$1.memoizedState;
    var prevDidTimeout = prevState !== null;
    if (prevDidTimeout) {
      // The current tree already timed out. That means each child set is
      var currentPrimaryChildFragment = current$$1.child;
      var currentFallbackChildFragment = currentPrimaryChildFragment.sibling;
      if (nextDidTimeout) {
        // Still timed out. Reuse the current primary children by cloning
        // its fragment. We're going to skip over these entirely.
        var _nextFallbackChildren = nextProps.fallback;
        var _primaryChildFragment = createWorkInProgress(currentPrimaryChildFragment, currentPrimaryChildFragment.pendingProps, NoWork);
        _primaryChildFragment.effectTag |= Placement;

        if ((workInProgress.mode & ConcurrentMode) === NoContext) {
          // Outside of concurrent mode, we commit the effects from the
          var _progressedState = workInProgress.memoizedState;
          var _progressedPrimaryChild = _progressedState !== null ? workInProgress.child.child : workInProgress.child;
          if (_progressedPrimaryChild !== currentPrimaryChildFragment.child) {
            reuseProgressedPrimaryChild(workInProgress, _primaryChildFragment, _progressedPrimaryChild);
          }
        }

        // Clone the fallback child fragment, too. These we'll continue
        // working on.
        var _fallbackChildFragment = _primaryChildFragment.sibling = createWorkInProgress(currentFallbackChildFragment, _nextFallbackChildren, currentFallbackChildFragment.expirationTime);
        _fallbackChildFragment.effectTag |= Placement;
        child = _primaryChildFragment;
        _primaryChildFragment.childExpirationTime = NoWork;
        // Skip the primary children, and continue working on the
        // fallback children.
        next = _fallbackChildFragment;
        child.return = next.return = workInProgress;
      } else {
        // No longer suspended. Switch back to showing the primary children,
        // and remove the intermediate fragment fiber.
        var _nextPrimaryChildren = nextProps.children;
        var currentPrimaryChild = currentPrimaryChildFragment.child;
        var currentFallbackChild = currentFallbackChildFragment.child;
        var primaryChild = reconcileChildFibers(workInProgress, currentPrimaryChild, _nextPrimaryChildren, renderExpirationTime);
        // Delete the fallback children.
        reconcileChildFibers(workInProgress, currentFallbackChild, null, renderExpirationTime);
        // Continue rendering the children, like we normally do.
        child = next = primaryChild;
      }
    } else {
      // The current tree has not already timed out. That means the primary
      var _currentPrimaryChild = current$$1.child;
      if (nextDidTimeout) {
        // Timed out. Wrap the children in a fragment fiber to keep them
        // separate from the fallback children.
        var _nextFallbackChildren2 = nextProps.fallback;
        var _primaryChildFragment2 = createFiberFromFragment(
        // It shouldn't matter what the pending props are because we aren't
        // going to render this fragment.
        null, mode, NoWork, null);
        _primaryChildFragment2.effectTag |= Placement;
        _primaryChildFragment2.child = _currentPrimaryChild;
        _currentPrimaryChild.return = _primaryChildFragment2;

        if ((workInProgress.mode & ConcurrentMode) === NoContext) {
          // Outside of concurrent mode, we commit the effects from the
          var _progressedState2 = workInProgress.memoizedState;
          var _progressedPrimaryChild2 = _progressedState2 !== null ? workInProgress.child.child : workInProgress.child;
          reuseProgressedPrimaryChild(workInProgress, _primaryChildFragment2, _progressedPrimaryChild2);
        }

        // Create a fragment from the fallback children, too.
        var _fallbackChildFragment2 = _primaryChildFragment2.sibling = createFiberFromFragment(_nextFallbackChildren2, mode, renderExpirationTime, null);
        _fallbackChildFragment2.effectTag |= Placement;
        child = _primaryChildFragment2;
        _primaryChildFragment2.childExpirationTime = NoWork;
        // Skip the primary children, and continue working on the
        // fallback children.
        next = _fallbackChildFragment2;
        child.return = next.return = workInProgress;
      } else {
        // Still haven't timed out.  Continue rendering the children, like we
        // normally do.
        var _nextPrimaryChildren2 = nextProps.children;
        next = child = reconcileChildFibers(workInProgress, _currentPrimaryChild, _nextPrimaryChildren2, renderExpirationTime);
      }
    }
  }

  workInProgress.memoizedState = nextState;
  workInProgress.child = child;
  return next;
}

function reuseProgressedPrimaryChild(workInProgress, primaryChildFragment, progressedChild) {
  // This function is only called outside concurrent mode. Usually, if a work-
  // in-progress primary tree suspends, we throw it out and revert back to
  // current. Outside concurrent mode, though, we commit the suspended work-in-
  // progress, even though it didn't complete. This function reuses the children
  // and transfers the effects.
  var child = primaryChildFragment.child = progressedChild;
  while (child !== null) {
    // Ensure that the first and last effect of the parent corresponds
    // to the children's first and last effect.
    if (primaryChildFragment.firstEffect === null) {
      primaryChildFragment.firstEffect = child.firstEffect;
    }
    if (child.lastEffect !== null) {
      if (primaryChildFragment.lastEffect !== null) {
        primaryChildFragment.lastEffect.nextEffect = child.firstEffect;
      }
      primaryChildFragment.lastEffect = child.lastEffect;
    }

    // Append all the effects of the subtree and this fiber onto the effect
    // list of the parent. The completion order of the children affects the
    // side-effect order.
    if (child.effectTag > PerformedWork) {
      if (primaryChildFragment.lastEffect !== null) {
        primaryChildFragment.lastEffect.nextEffect = child;
      } else {
        primaryChildFragment.firstEffect = child;
      }
      primaryChildFragment.lastEffect = child;
    }
    child.return = primaryChildFragment;
    child = child.sibling;
  }

  workInProgress.firstEffect = primaryChildFragment.firstEffect;
  workInProgress.lastEffect = primaryChildFragment.lastEffect;
}

function updatePortalComponent(current$$1, workInProgress, renderExpirationTime) {
  pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
  var nextChildren = workInProgress.pendingProps;
  if (current$$1 === null) {
    // Portals are special because we don't append the children during mount
    // but at commit. Therefore we need to track insertions which the normal
    // flow doesn't do during mount. This doesn't happen at the root because
    // the root always starts with a "current" with a null child.
    // TODO: Consider unifying this with how the root works.
    workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  } else {
    reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  }
  return workInProgress.child;
}

function updateContextProvider(current$$1, workInProgress, renderExpirationTime) {
  var providerType = workInProgress.type;
  var context = providerType._context;

  var newProps = workInProgress.pendingProps;
  var oldProps = workInProgress.memoizedProps;

  var newValue = newProps.value;

  {
    var providerPropTypes = workInProgress.type.propTypes;

    if (providerPropTypes) {
      checkPropTypes(providerPropTypes, newProps, 'prop', 'Context.Provider', getCurrentFiberStackInDev);
    }
  }

  pushProvider(workInProgress, newValue);

  if (oldProps !== null) {
    var oldValue = oldProps.value;
    var changedBits = calculateChangedBits(context, newValue, oldValue);
    if (changedBits === 0) {
      // No change. Bailout early if children are the same.
      if (oldProps.children === newProps.children && !hasContextChanged()) {
        return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
      }
    } else {
      // The context value changed. Search for matching consumers and schedule
      // them to update.
      propagateContextChange(workInProgress, context, changedBits, renderExpirationTime);
    }
  }

  var newChildren = newProps.children;
  reconcileChildren(current$$1, workInProgress, newChildren, renderExpirationTime);
  return workInProgress.child;
}

var hasWarnedAboutUsingContextAsConsumer = false;

function updateContextConsumer(current$$1, workInProgress, renderExpirationTime) {
  var context = workInProgress.type;
  // The logic below for Context differs depending on PROD or DEV mode. In
  // DEV mode, we create a separate object for Context.Consumer that acts
  // like a proxy to Context. This proxy object adds unnecessary code in PROD
  // so we use the old behaviour (Context.Consumer references Context) to
  // reduce size and overhead. The separate object references context via
  // a property called "_context", which also gives us the ability to check
  // in DEV mode if this property exists or not and warn if it does not.
  {
    if (context._context === undefined) {
      // This may be because it's a Context (rather than a Consumer).
      // Or it may be because it's older React where they're the same thing.
      // We only want to warn if we're sure it's a new React.
      if (context !== context.Consumer) {
        if (!hasWarnedAboutUsingContextAsConsumer) {
          hasWarnedAboutUsingContextAsConsumer = true;
          warning$1(false, 'Rendering <Context> directly is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
        }
      }
    } else {
      context = context._context;
    }
  }
  var newProps = workInProgress.pendingProps;
  var render = newProps.children;

  {
    !(typeof render === 'function') ? warningWithoutStack$1(false, 'A context consumer was rendered with multiple children, or a child ' + "that isn't a function. A context consumer expects a single child " + 'that is a function. If you did pass a function, make sure there ' + 'is no trailing or leading whitespace around it.') : void 0;
  }

  prepareToReadContext(workInProgress, renderExpirationTime);
  var newValue = readContext(context, newProps.unstable_observedBits);
  var newChildren = void 0;
  {
    ReactCurrentOwner$3.current = workInProgress;
    setCurrentPhase('render');
    newChildren = render(newValue);
    setCurrentPhase(null);
  }

  // React DevTools reads this flag.
  workInProgress.effectTag |= PerformedWork;
  reconcileChildren(current$$1, workInProgress, newChildren, renderExpirationTime);
  return workInProgress.child;
}

function bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime) {
  cancelWorkTimer(workInProgress);

  if (current$$1 !== null) {
    // Reuse previous context list
    workInProgress.firstContextDependency = current$$1.firstContextDependency;
  }

  if (enableProfilerTimer) {
    // Don't update "base" render times for bailouts.
    stopProfilerTimerIfRunning(workInProgress);
  }

  // Check if the children have any pending work.
  var childExpirationTime = workInProgress.childExpirationTime;
  if (childExpirationTime < renderExpirationTime) {
    // The children don't have any work either. We can skip them.
    // TODO: Once we add back resuming, we should check if the children are
    // a work-in-progress set. If so, we need to transfer their effects.
    return null;
  } else {
    // This fiber doesn't have work, but its subtree does. Clone the child
    // fibers and continue.
    cloneChildFibers(current$$1, workInProgress);
    return workInProgress.child;
  }
}

function beginWork(current$$1, workInProgress, renderExpirationTime) {
  var updateExpirationTime = workInProgress.expirationTime;

  if (current$$1 !== null) {
    var oldProps = current$$1.memoizedProps;
    var newProps = workInProgress.pendingProps;
    if (oldProps === newProps && !hasContextChanged() && updateExpirationTime < renderExpirationTime) {
      // This fiber does not have any pending work. Bailout without entering
      // the begin phase. There's still some bookkeeping we that needs to be done
      // in this optimized path, mostly pushing stuff onto the stack.
      switch (workInProgress.tag) {
        case HostRoot:
          pushHostRootContext(workInProgress);
          resetHydrationState();
          break;
        case HostComponent:
          pushHostContext(workInProgress);
          break;
        case ClassComponent:
          {
            var Component = workInProgress.type;
            if (isContextProvider(Component)) {
              pushContextProvider(workInProgress);
            }
            break;
          }
        case HostPortal:
          pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
          break;
        case ContextProvider:
          {
            var newValue = workInProgress.memoizedProps.value;
            pushProvider(workInProgress, newValue);
            break;
          }
        case Profiler:
          if (enableProfilerTimer) {
            workInProgress.effectTag |= Update;
          }
          break;
        case SuspenseComponent:
          {
            var state = workInProgress.memoizedState;
            var didTimeout = state !== null;
            if (didTimeout) {
              // If this boundary is currently timed out, we need to decide
              // whether to retry the primary children, or to skip over it and
              // go straight to the fallback. Check the priority of the primary
              var primaryChildFragment = workInProgress.child;
              var primaryChildExpirationTime = primaryChildFragment.childExpirationTime;
              if (primaryChildExpirationTime !== NoWork && primaryChildExpirationTime >= renderExpirationTime) {
                // The primary children have pending work. Use the normal path
                // to attempt to render the primary children again.
                return updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime);
              } else {
                // The primary children do not have pending work with sufficient
                // priority. Bailout.
                var child = bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
                if (child !== null) {
                  // The fallback children have pending work. Skip over the
                  // primary children and work on the fallback.
                  return child.sibling;
                } else {
                  return null;
                }
              }
            }
            break;
          }
      }
      return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
    }
  }

  // Before entering the begin phase, clear the expiration time.
  workInProgress.expirationTime = NoWork;

  switch (workInProgress.tag) {
    case IndeterminateComponent:
      {
        var elementType = workInProgress.elementType;
        return mountIndeterminateComponent(current$$1, workInProgress, elementType, renderExpirationTime);
      }
    case LazyComponent:
      {
        var _elementType = workInProgress.elementType;
        return mountLazyComponent(current$$1, workInProgress, _elementType, updateExpirationTime, renderExpirationTime);
      }
    case FunctionComponent:
      {
        var _Component = workInProgress.type;
        var unresolvedProps = workInProgress.pendingProps;
        var resolvedProps = workInProgress.elementType === _Component ? unresolvedProps : resolveDefaultProps(_Component, unresolvedProps);
        return updateFunctionComponent(current$$1, workInProgress, _Component, resolvedProps, renderExpirationTime);
      }
    case ClassComponent:
      {
        var _Component2 = workInProgress.type;
        var _unresolvedProps = workInProgress.pendingProps;
        var _resolvedProps = workInProgress.elementType === _Component2 ? _unresolvedProps : resolveDefaultProps(_Component2, _unresolvedProps);
        return updateClassComponent(current$$1, workInProgress, _Component2, _resolvedProps, renderExpirationTime);
      }
    case HostRoot:
      return updateHostRoot(current$$1, workInProgress, renderExpirationTime);
    case HostComponent:
      return updateHostComponent(current$$1, workInProgress, renderExpirationTime);
    case HostText:
      return updateHostText(current$$1, workInProgress);
    case SuspenseComponent:
      return updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime);
    case HostPortal:
      return updatePortalComponent(current$$1, workInProgress, renderExpirationTime);
    case ForwardRef:
      {
        var type = workInProgress.type;
        var _unresolvedProps2 = workInProgress.pendingProps;
        var _resolvedProps2 = workInProgress.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2);
        return updateForwardRef(current$$1, workInProgress, type, _resolvedProps2, renderExpirationTime);
      }
    case Fragment:
      return updateFragment(current$$1, workInProgress, renderExpirationTime);
    case Mode:
      return updateMode(current$$1, workInProgress, renderExpirationTime);
    case Profiler:
      return updateProfiler(current$$1, workInProgress, renderExpirationTime);
    case ContextProvider:
      return updateContextProvider(current$$1, workInProgress, renderExpirationTime);
    case ContextConsumer:
      return updateContextConsumer(current$$1, workInProgress, renderExpirationTime);
    case MemoComponent:
      {
        var _type = workInProgress.type;
        var _unresolvedProps3 = workInProgress.pendingProps;
        var _resolvedProps3 = resolveDefaultProps(_type.type, _unresolvedProps3);
        return updateMemoComponent(current$$1, workInProgress, _type, _resolvedProps3, updateExpirationTime, renderExpirationTime);
      }
    case SimpleMemoComponent:
      {
        return updateSimpleMemoComponent(current$$1, workInProgress, workInProgress.type, workInProgress.pendingProps, updateExpirationTime, renderExpirationTime);
      }
    case IncompleteClassComponent:
      {
        var _Component3 = workInProgress.type;
        var _unresolvedProps4 = workInProgress.pendingProps;
        var _resolvedProps4 = workInProgress.elementType === _Component3 ? _unresolvedProps4 : resolveDefaultProps(_Component3, _unresolvedProps4);
        return mountIncompleteClassComponent(current$$1, workInProgress, _Component3, _resolvedProps4, renderExpirationTime);
      }
    default:
      invariant(false, 'Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.');
  }
}

function markUpdate(workInProgress) {
  // Tag the fiber with an update effect. This turns a Placement into
  // a PlacementAndUpdate.
  workInProgress.effectTag |= Update;
}

function markRef$1(workInProgress) {
  workInProgress.effectTag |= Ref;
}

var appendAllChildren = void 0;
var updateHostContainer = void 0;
var updateHostComponent$1 = void 0;
var updateHostText$1 = void 0;
if (supportsMutation) {
  // Mutation mode

  appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {
    // We only have the top Fiber that was created but we need recurse down its
    // children to find all the terminal nodes.
    var node = workInProgress.child;
    while (node !== null) {
      if (node.tag === HostComponent || node.tag === HostText) {
        appendInitialChild(parent, node.stateNode);
      } else if (node.tag === HostPortal) {
        // If we have a portal child, then we don't want to traverse
        // down its children. Instead, we'll get insertions from each child in
        // the portal directly.
      } else if (node.child !== null) {
        node.child.return = node;
        node = node.child;
        continue;
      }
      if (node === workInProgress) {
        return;
      }
      while (node.sibling === null) {
        if (node.return === null || node.return === workInProgress) {
          return;
        }
        node = node.return;
      }
      node.sibling.return = node.return;
      node = node.sibling;
    }
  };

  updateHostContainer = function (workInProgress) {
    // Noop
  };
  updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
    // If we have an alternate, that means this is an update and we need to
    // schedule a side-effect to do the updates.
    var oldProps = current.memoizedProps;
    if (oldProps === newProps) {
      // In mutation mode, this is sufficient for a bailout because
      // we won't touch this node even if children changed.
      return;
    }

    // If we get updated because one of our children updated, we don't
    // have newProps so we'll have to reuse them.
    // TODO: Split the update API as separate for the props vs. children.
    // Even better would be if children weren't special cased at all tho.
    var instance = workInProgress.stateNode;
    var currentHostContext = getHostContext();
    // TODO: Experiencing an error where oldProps is null. Suggests a host
    // component is hitting the resume path. Figure out why. Possibly
    // related to `hidden`.
    var updatePayload = prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, currentHostContext);
    // TODO: Type this specific to this type of component.
    workInProgress.updateQueue = updatePayload;
    // If the update payload indicates that there is a change or if there
    // is a new ref we mark this as an update. All the work is done in commitWork.
    if (updatePayload) {
      markUpdate(workInProgress);
    }
  };
  updateHostText$1 = function (current, workInProgress, oldText, newText) {
    // If the text differs, mark it as an update. All the work in done in commitWork.
    if (oldText !== newText) {
      markUpdate(workInProgress);
    }
  };
} else if (supportsPersistence) {
  // Persistent host tree mode

  appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {
    // We only have the top Fiber that was created but we need recurse down its
    // children to find all the terminal nodes.
    var node = workInProgress.child;
    while (node !== null) {
      // eslint-disable-next-line no-labels
      branches: if (node.tag === HostComponent) {
        var instance = node.stateNode;
        if (needsVisibilityToggle) {
          var props = node.memoizedProps;
          var type = node.type;
          if (isHidden) {
            // This child is inside a timed out tree. Hide it.
            instance = cloneHiddenInstance(instance, type, props, node);
          } else {
            // This child was previously inside a timed out tree. If it was not
            // updated during this render, it may need to be unhidden. Clone
            // again to be sure.
            instance = cloneUnhiddenInstance(instance, type, props, node);
          }
          node.stateNode = instance;
        }
        appendInitialChild(parent, instance);
      } else if (node.tag === HostText) {
        var _instance = node.stateNode;
        if (needsVisibilityToggle) {
          var text = node.memoizedProps;
          var rootContainerInstance = getRootHostContainer();
          var currentHostContext = getHostContext();
          if (isHidden) {
            _instance = createHiddenTextInstance(text, rootContainerInstance, currentHostContext, workInProgress);
          } else {
            _instance = createTextInstance(text, rootContainerInstance, currentHostContext, workInProgress);
          }
          node.stateNode = _instance;
        }
        appendInitialChild(parent, _instance);
      } else if (node.tag === HostPortal) {
        // If we have a portal child, then we don't want to traverse
        // down its children. Instead, we'll get insertions from each child in
        // the portal directly.
      } else if (node.tag === SuspenseComponent) {
        var current = node.alternate;
        if (current !== null) {
          var oldState = current.memoizedState;
          var newState = node.memoizedState;
          var oldIsHidden = oldState !== null;
          var newIsHidden = newState !== null;
          if (oldIsHidden !== newIsHidden) {
            // The placeholder either just timed out or switched back to the normal
            // children after having previously timed out. Toggle the visibility of
            // the direct host children.
            var primaryChildParent = newIsHidden ? node.child : node;
            if (primaryChildParent !== null) {
              appendAllChildren(parent, primaryChildParent, true, newIsHidden);
            }
            // eslint-disable-next-line no-labels
            break branches;
          }
        }
        if (node.child !== null) {
          // Continue traversing like normal
          node.child.return = node;
          node = node.child;
          continue;
        }
      } else if (node.child !== null) {
        node.child.return = node;
        node = node.child;
        continue;
      }
      // $FlowFixMe This is correct but Flow is confused by the labeled break.
      node = node;
      if (node === workInProgress) {
        return;
      }
      while (node.sibling === null) {
        if (node.return === null || node.return === workInProgress) {
          return;
        }
        node = node.return;
      }
      node.sibling.return = node.return;
      node = node.sibling;
    }
  };

  // An unfortunate fork of appendAllChildren because we have two different parent types.
  var appendAllChildrenToContainer = function (containerChildSet, workInProgress, needsVisibilityToggle, isHidden) {
    // We only have the top Fiber that was created but we need recurse down its
    // children to find all the terminal nodes.
    var node = workInProgress.child;
    while (node !== null) {
      // eslint-disable-next-line no-labels
      branches: if (node.tag === HostComponent) {
        var instance = node.stateNode;
        if (needsVisibilityToggle) {
          var props = node.memoizedProps;
          var type = node.type;
          if (isHidden) {
            // This child is inside a timed out tree. Hide it.
            instance = cloneHiddenInstance(instance, type, props, node);
          } else {
            // This child was previously inside a timed out tree. If it was not
            // updated during this render, it may need to be unhidden. Clone
            // again to be sure.
            instance = cloneUnhiddenInstance(instance, type, props, node);
          }
          node.stateNode = instance;
        }
        appendChildToContainerChildSet(containerChildSet, instance);
      } else if (node.tag === HostText) {
        var _instance2 = node.stateNode;
        if (needsVisibilityToggle) {
          var text = node.memoizedProps;
          var rootContainerInstance = getRootHostContainer();
          var currentHostContext = getHostContext();
          if (isHidden) {
            _instance2 = createHiddenTextInstance(text, rootContainerInstance, currentHostContext, workInProgress);
          } else {
            _instance2 = createTextInstance(text, rootContainerInstance, currentHostContext, workInProgress);
          }
          node.stateNode = _instance2;
        }
        appendChildToContainerChildSet(containerChildSet, _instance2);
      } else if (node.tag === HostPortal) {
        // If we have a portal child, then we don't want to traverse
        // down its children. Instead, we'll get insertions from each child in
        // the portal directly.
      } else if (node.tag === SuspenseComponent) {
        var current = node.alternate;
        if (current !== null) {
          var oldState = current.memoizedState;
          var newState = node.memoizedState;
          var oldIsHidden = oldState !== null;
          var newIsHidden = newState !== null;
          if (oldIsHidden !== newIsHidden) {
            // The placeholder either just timed out or switched back to the normal
            // children after having previously timed out. Toggle the visibility of
            // the direct host children.
            var primaryChildParent = newIsHidden ? node.child : node;
            if (primaryChildParent !== null) {
              appendAllChildrenToContainer(containerChildSet, primaryChildParent, true, newIsHidden);
            }
            // eslint-disable-next-line no-labels
            break branches;
          }
        }
        if (node.child !== null) {
          // Continue traversing like normal
          node.child.return = node;
          node = node.child;
          continue;
        }
      } else if (node.child !== null) {
        node.child.return = node;
        node = node.child;
        continue;
      }
      // $FlowFixMe This is correct but Flow is confused by the labeled break.
      node = node;
      if (node === workInProgress) {
        return;
      }
      while (node.sibling === null) {
        if (node.return === null || node.return === workInProgress) {
          return;
        }
        node = node.return;
      }
      node.sibling.return = node.return;
      node = node.sibling;
    }
  };
  updateHostContainer = function (workInProgress) {
    var portalOrRoot = workInProgress.stateNode;
    var childrenUnchanged = workInProgress.firstEffect === null;
    if (childrenUnchanged) {
      // No changes, just reuse the existing instance.
    } else {
      var container = portalOrRoot.containerInfo;
      var newChildSet = createContainerChildSet(container);
      // If children might have changed, we have to add them all to the set.
      appendAllChildrenToContainer(newChildSet, workInProgress, false, false);
      portalOrRoot.pendingChildren = newChildSet;
      // Schedule an update on the container to swap out the container.
      markUpdate(workInProgress);
      finalizeContainerChildren(container, newChildSet);
    }
  };
  updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
    var currentInstance = current.stateNode;
    var oldProps = current.memoizedProps;
    // If there are no effects associated with this node, then none of our children had any updates.
    // This guarantees that we can reuse all of them.
    var childrenUnchanged = workInProgress.firstEffect === null;
    if (childrenUnchanged && oldProps === newProps) {
      // No changes, just reuse the existing instance.
      // Note that this might release a previous clone.
      workInProgress.stateNode = currentInstance;
      return;
    }
    var recyclableInstance = workInProgress.stateNode;
    var currentHostContext = getHostContext();
    var updatePayload = null;
    if (oldProps !== newProps) {
      updatePayload = prepareUpdate(recyclableInstance, type, oldProps, newProps, rootContainerInstance, currentHostContext);
    }
    if (childrenUnchanged && updatePayload === null) {
      // No changes, just reuse the existing instance.
      // Note that this might release a previous clone.
      workInProgress.stateNode = currentInstance;
      return;
    }
    var newInstance = cloneInstance(currentInstance, updatePayload, type, oldProps, newProps, workInProgress, childrenUnchanged, recyclableInstance);
    if (finalizeInitialChildren(newInstance, type, newProps, rootContainerInstance, currentHostContext)) {
      markUpdate(workInProgress);
    }
    workInProgress.stateNode = newInstance;
    if (childrenUnchanged) {
      // If there are no other effects in this tree, we need to flag this node as having one.
      // Even though we're not going to use it for anything.
      // Otherwise parents won't know that there are new children to propagate upwards.
      markUpdate(workInProgress);
    } else {
      // If children might have changed, we have to add them all to the set.
      appendAllChildren(newInstance, workInProgress, false, false);
    }
  };
  updateHostText$1 = function (current, workInProgress, oldText, newText) {
    if (oldText !== newText) {
      // If the text content differs, we'll create a new text instance for it.
      var rootContainerInstance = getRootHostContainer();
      var currentHostContext = getHostContext();
      workInProgress.stateNode = createTextInstance(newText, rootContainerInstance, currentHostContext, workInProgress);
      // We'll have to mark it as having an effect, even though we won't use the effect for anything.
      // This lets the parents know that at least one of their children has changed.
      markUpdate(workInProgress);
    }
  };
} else {
  // No host operations
  updateHostContainer = function (workInProgress) {
    // Noop
  };
  updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
    // Noop
  };
  updateHostText$1 = function (current, workInProgress, oldText, newText) {
    // Noop
  };
}

function completeWork(current, workInProgress, renderExpirationTime) {
  var newProps = workInProgress.pendingProps;

  switch (workInProgress.tag) {
    case IndeterminateComponent:
      break;
    case LazyComponent:
      break;
    case SimpleMemoComponent:
    case FunctionComponent:
      break;
    case ClassComponent:
      {
        var Component = workInProgress.type;
        if (isContextProvider(Component)) {
          popContext(workInProgress);
        }
        break;
      }
    case HostRoot:
      {
        popHostContainer(workInProgress);
        popTopLevelContextObject(workInProgress);
        var fiberRoot = workInProgress.stateNode;
        if (fiberRoot.pendingContext) {
          fiberRoot.context = fiberRoot.pendingContext;
          fiberRoot.pendingContext = null;
        }
        if (current === null || current.child === null) {
          // If we hydrated, pop so that we can delete any remaining children
          // that weren't hydrated.
          popHydrationState(workInProgress);
          // This resets the hacky state to fix isMounted before committing.
          // TODO: Delete this when we delete isMounted and findDOMNode.
          workInProgress.effectTag &= ~Placement;
        }
        updateHostContainer(workInProgress);
        break;
      }
    case HostComponent:
      {
        popHostContext(workInProgress);
        var rootContainerInstance = getRootHostContainer();
        var type = workInProgress.type;
        if (current !== null && workInProgress.stateNode != null) {
          updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance);

          if (current.ref !== workInProgress.ref) {
            markRef$1(workInProgress);
          }
        } else {
          if (!newProps) {
            !(workInProgress.stateNode !== null) ? invariant(false, 'We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.') : void 0;
            // This can happen when we abort work.
            break;
          }

          var currentHostContext = getHostContext();
          // TODO: Move createInstance to beginWork and keep it on a context
          // "stack" as the parent. Then append children as we go in beginWork
          // or completeWork depending on we want to add then top->down or
          // bottom->up. Top->down is faster in IE11.
          var wasHydrated = popHydrationState(workInProgress);
          if (wasHydrated) {
            // TODO: Move this and createInstance step into the beginPhase
            // to consolidate.
            if (prepareToHydrateHostInstance(workInProgress, rootContainerInstance, currentHostContext)) {
              // If changes to the hydrated node needs to be applied at the
              // commit-phase we mark this as such.
              markUpdate(workInProgress);
            }
          } else {
            var instance = createInstance(type, newProps, rootContainerInstance, currentHostContext, workInProgress);

            appendAllChildren(instance, workInProgress, false, false);

            // Certain renderers require commit-time effects for initial mount.
            // (eg DOM renderer supports auto-focus for certain elements).
            // Make sure such renderers get scheduled for later work.
            if (finalizeInitialChildren(instance, type, newProps, rootContainerInstance, currentHostContext)) {
              markUpdate(workInProgress);
            }
            workInProgress.stateNode = instance;
          }

          if (workInProgress.ref !== null) {
            // If there is a ref on a host node we need to schedule a callback
            markRef$1(workInProgress);
          }
        }
        break;
      }
    case HostText:
      {
        var newText = newProps;
        if (current && workInProgress.stateNode != null) {
          var oldText = current.memoizedProps;
          // If we have an alternate, that means this is an update and we need
          // to schedule a side-effect to do the updates.
          updateHostText$1(current, workInProgress, oldText, newText);
        } else {
          if (typeof newText !== 'string') {
            !(workInProgress.stateNode !== null) ? invariant(false, 'We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.') : void 0;
            // This can happen when we abort work.
          }
          var _rootContainerInstance = getRootHostContainer();
          var _currentHostContext = getHostContext();
          var _wasHydrated = popHydrationState(workInProgress);
          if (_wasHydrated) {
            if (prepareToHydrateHostTextInstance(workInProgress)) {
              markUpdate(workInProgress);
            }
          } else {
            workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext, workInProgress);
          }
        }
        break;
      }
    case ForwardRef:
      break;
    case SuspenseComponent:
      {
        var nextState = workInProgress.memoizedState;
        if ((workInProgress.effectTag & DidCapture) !== NoEffect) {
          // Something suspended. Re-render with the fallback children.
          workInProgress.expirationTime = renderExpirationTime;
          workInProgress.firstEffect = workInProgress.lastEffect = null;
          return workInProgress;
        }

        var nextDidTimeout = nextState !== null;
        var prevDidTimeout = current !== null && current.memoizedState !== null;
        // The children either timed out after previously being visible, or
        // were restored after previously being hidden. Schedule an effect
        // to update their visiblity.
        if (
        //
        nextDidTimeout !== prevDidTimeout ||
        // Outside concurrent mode, the primary children commit in an
        // inconsistent state, even if they are hidden. So if they are hidden,
        // we need to schedule an effect to re-hide them, just in case.
        (workInProgress.effectTag & ConcurrentMode) === NoContext && nextDidTimeout) {
          workInProgress.effectTag |= Update;
        }
        break;
      }
    case Fragment:
      break;
    case Mode:
      break;
    case Profiler:
      break;
    case HostPortal:
      popHostContainer(workInProgress);
      updateHostContainer(workInProgress);
      break;
    case ContextProvider:
      // Pop provider fiber
      popProvider(workInProgress);
      break;
    case ContextConsumer:
      break;
    case MemoComponent:
      break;
    case IncompleteClassComponent:
      {
        // Same as class component case. I put it down here so that the tags are
        // sequential to ensure this switch is compiled to a jump table.
        var _Component = workInProgress.type;
        if (isContextProvider(_Component)) {
          popContext(workInProgress);
        }
        break;
      }
    default:
      invariant(false, 'Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.');
  }

  return null;
}

function shouldCaptureSuspense(current, workInProgress) {
  // In order to capture, the Suspense component must have a fallback prop.
  if (workInProgress.memoizedProps.fallback === undefined) {
    return false;
  }
  // If it was the primary children that just suspended, capture and render the
  // fallback. Otherwise, don't capture and bubble to the next boundary.
  var nextState = workInProgress.memoizedState;
  return nextState === null;
}

// This module is forked in different environments.
// By default, return `true` to log errors to the console.
// Forks can return `false` if this isn't desirable.
function showErrorDialog(capturedError) {
  return true;
}

function logCapturedError(capturedError) {
  var logError = showErrorDialog(capturedError);

  // Allow injected showErrorDialog() to prevent default console.error logging.
  // This enables renderers like ReactNative to better manage redbox behavior.
  if (logError === false) {
    return;
  }

  var error = capturedError.error;
  {
    var componentName = capturedError.componentName,
        componentStack = capturedError.componentStack,
        errorBoundaryName = capturedError.errorBoundaryName,
        errorBoundaryFound = capturedError.errorBoundaryFound,
        willRetry = capturedError.willRetry;

    // Browsers support silencing uncaught errors by calling
    // `preventDefault()` in window `error` handler.
    // We record this information as an expando on the error.

    if (error != null && error._suppressLogging) {
      if (errorBoundaryFound && willRetry) {
        // The error is recoverable and was silenced.
        // Ignore it and don't print the stack addendum.
        // This is handy for testing error boundaries without noise.
        return;
      }
      // The error is fatal. Since the silencing might have
      // been accidental, we'll surface it anyway.
      // However, the browser would have silenced the original error
      // so we'll print it first, and then print the stack addendum.
      console.error(error);
      // For a more detailed description of this block, see:
      // https://github.com/facebook/react/pull/13384
    }

    var componentNameMessage = componentName ? 'The above error occurred in the <' + componentName + '> component:' : 'The above error occurred in one of your React components:';

    var errorBoundaryMessage = void 0;
    // errorBoundaryFound check is sufficient; errorBoundaryName check is to satisfy Flow.
    if (errorBoundaryFound && errorBoundaryName) {
      if (willRetry) {
        errorBoundaryMessage = 'React will try to recreate this component tree from scratch ' + ('using the error boundary you provided, ' + errorBoundaryName + '.');
      } else {
        errorBoundaryMessage = 'This error was initially handled by the error boundary ' + errorBoundaryName + '.\n' + 'Recreating the tree from scratch failed so React will unmount the tree.';
      }
    } else {
      errorBoundaryMessage = 'Consider adding an error boundary to your tree to customize error handling behavior.\n' + 'Visit https://fb.me/react-error-boundaries to learn more about error boundaries.';
    }
    var combinedMessage = '' + componentNameMessage + componentStack + '\n\n' + ('' + errorBoundaryMessage);

    // In development, we provide our own message with just the component stack.
    // We don't include the original error message and JS stack because the browser
    // has already printed it. Even if the application swallows the error, it is still
    // displayed by the browser thanks to the DEV-only fake event trick in ReactErrorUtils.
    console.error(combinedMessage);
  }
}

var didWarnAboutUndefinedSnapshotBeforeUpdate = null;
{
  didWarnAboutUndefinedSnapshotBeforeUpdate = new Set();
}

function logError(boundary, errorInfo) {
  var source = errorInfo.source;
  var stack = errorInfo.stack;
  if (stack === null && source !== null) {
    stack = getStackByFiberInDevAndProd(source);
  }

  var capturedError = {
    componentName: source !== null ? getComponentName(source.type) : null,
    componentStack: stack !== null ? stack : '',
    error: errorInfo.value,
    errorBoundary: null,
    errorBoundaryName: null,
    errorBoundaryFound: false,
    willRetry: false
  };

  if (boundary !== null && boundary.tag === ClassComponent) {
    capturedError.errorBoundary = boundary.stateNode;
    capturedError.errorBoundaryName = getComponentName(boundary.type);
    capturedError.errorBoundaryFound = true;
    capturedError.willRetry = true;
  }

  try {
    logCapturedError(capturedError);
  } catch (e) {
    // This method must not throw, or React internal state will get messed up.
    // If console.error is overridden, or logCapturedError() shows a dialog that throws,
    // we want to report this error outside of the normal stack as a last resort.
    // https://github.com/facebook/react/issues/13188
    setTimeout(function () {
      throw e;
    });
  }
}

var callComponentWillUnmountWithTimer = function (current$$1, instance) {
  startPhaseTimer(current$$1, 'componentWillUnmount');
  instance.props = current$$1.memoizedProps;
  instance.state = current$$1.memoizedState;
  instance.componentWillUnmount();
  stopPhaseTimer();
};

// Capture errors so they don't interrupt unmounting.
function safelyCallComponentWillUnmount(current$$1, instance) {
  {
    invokeGuardedCallback(null, callComponentWillUnmountWithTimer, null, current$$1, instance);
    if (hasCaughtError()) {
      var unmountError = clearCaughtError();
      captureCommitPhaseError(current$$1, unmountError);
    }
  }
}

function safelyDetachRef(current$$1) {
  var ref = current$$1.ref;
  if (ref !== null) {
    if (typeof ref === 'function') {
      {
        invokeGuardedCallback(null, ref, null, null);
        if (hasCaughtError()) {
          var refError = clearCaughtError();
          captureCommitPhaseError(current$$1, refError);
        }
      }
    } else {
      ref.current = null;
    }
  }
}

function safelyCallDestroy(current$$1, destroy) {
  {
    invokeGuardedCallback(null, destroy, null);
    if (hasCaughtError()) {
      var error = clearCaughtError();
      captureCommitPhaseError(current$$1, error);
    }
  }
}

function commitBeforeMutationLifeCycles(current$$1, finishedWork) {
  switch (finishedWork.tag) {
    case FunctionComponent:
    case ForwardRef:
    case SimpleMemoComponent:
      {
        commitHookEffectList(UnmountSnapshot, NoEffect$1, finishedWork);
        return;
      }
    case ClassComponent:
      {
        if (finishedWork.effectTag & Snapshot) {
          if (current$$1 !== null) {
            var prevProps = current$$1.memoizedProps;
            var prevState = current$$1.memoizedState;
            startPhaseTimer(finishedWork, 'getSnapshotBeforeUpdate');
            var instance = finishedWork.stateNode;
            // We could update instance props and state here,
            // but instead we rely on them being set during last render.
            // TODO: revisit this when we implement resuming.
            {
              if (finishedWork.type === finishedWork.elementType) {
                !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected instance props to match memoized props before ' + 'getSnapshotBeforeUpdate. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0;
                !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected instance state to match memoized state before ' + 'getSnapshotBeforeUpdate. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0;
              }
            }
            var snapshot = instance.getSnapshotBeforeUpdate(finishedWork.elementType === finishedWork.type ? prevProps : resolveDefaultProps(finishedWork.type, prevProps), prevState);
            {
              var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate;
              if (snapshot === undefined && !didWarnSet.has(finishedWork.type)) {
                didWarnSet.add(finishedWork.type);
                warningWithoutStack$1(false, '%s.getSnapshotBeforeUpdate(): A snapshot value (or null) ' + 'must be returned. You have returned undefined.', getComponentName(finishedWork.type));
              }
            }
            instance.__reactInternalSnapshotBeforeUpdate = snapshot;
            stopPhaseTimer();
          }
        }
        return;
      }
    case HostRoot:
    case HostComponent:
    case HostText:
    case HostPortal:
    case IncompleteClassComponent:
      // Nothing to do for these component types
      return;
    default:
      {
        invariant(false, 'This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.');
      }
  }
}

function commitHookEffectList(unmountTag, mountTag, finishedWork) {
  if (!enableHooks) {
    return;
  }
  var updateQueue = finishedWork.updateQueue;
  var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;
  if (lastEffect !== null) {
    var firstEffect = lastEffect.next;
    var effect = firstEffect;
    do {
      if ((effect.tag & unmountTag) !== NoEffect$1) {
        // Unmount
        var destroy = effect.destroy;
        effect.destroy = null;
        if (destroy !== null) {
          destroy();
        }
      }
      if ((effect.tag & mountTag) !== NoEffect$1) {
        // Mount
        var create = effect.create;
        var _destroy = create();
        if (typeof _destroy !== 'function') {
          {
            if (_destroy !== null && _destroy !== undefined) {
              warningWithoutStack$1(false, 'useEffect function must return a cleanup function or ' + 'nothing.%s%s', typeof _destroy.then === 'function' ? ' Promises and useEffect(async () => ...) are not ' + 'supported, but you can call an async function inside an ' + 'effect.' : '', getStackByFiberInDevAndProd(finishedWork));
            }
          }
          _destroy = null;
        }
        effect.destroy = _destroy;
      }
      effect = effect.next;
    } while (effect !== firstEffect);
  }
}

function commitPassiveHookEffects(finishedWork) {
  commitHookEffectList(UnmountPassive, NoEffect$1, finishedWork);
  commitHookEffectList(NoEffect$1, MountPassive, finishedWork);
}

function commitLifeCycles(finishedRoot, current$$1, finishedWork, committedExpirationTime) {
  switch (finishedWork.tag) {
    case FunctionComponent:
    case ForwardRef:
    case SimpleMemoComponent:
      {
        commitHookEffectList(UnmountLayout, MountLayout, finishedWork);
        break;
      }
    case ClassComponent:
      {
        var instance = finishedWork.stateNode;
        if (finishedWork.effectTag & Update) {
          if (current$$1 === null) {
            startPhaseTimer(finishedWork, 'componentDidMount');
            // We could update instance props and state here,
            // but instead we rely on them being set during last render.
            // TODO: revisit this when we implement resuming.
            {
              if (finishedWork.type === finishedWork.elementType) {
                !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected instance props to match memoized props before ' + 'componentDidMount. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0;
                !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected instance state to match memoized state before ' + 'componentDidMount. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0;
              }
            }
            instance.componentDidMount();
            stopPhaseTimer();
          } else {
            var prevProps = finishedWork.elementType === finishedWork.type ? current$$1.memoizedProps : resolveDefaultProps(finishedWork.type, current$$1.memoizedProps);
            var prevState = current$$1.memoizedState;
            startPhaseTimer(finishedWork, 'componentDidUpdate');
            // We could update instance props and state here,
            // but instead we rely on them being set during last render.
            // TODO: revisit this when we implement resuming.
            {
              if (finishedWork.type === finishedWork.elementType) {
                !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected instance props to match memoized props before ' + 'componentDidUpdate. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0;
                !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected instance state to match memoized state before ' + 'componentDidUpdate. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0;
              }
            }
            instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate);
            stopPhaseTimer();
          }
        }
        var updateQueue = finishedWork.updateQueue;
        if (updateQueue !== null) {
          {
            if (finishedWork.type === finishedWork.elementType) {
              !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected instance props to match memoized props before ' + 'processing the update queue. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0;
              !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected instance state to match memoized state before ' + 'processing the update queue. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0;
            }
          }
          // We could update instance props and state here,
          // but instead we rely on them being set during last render.
          // TODO: revisit this when we implement resuming.
          commitUpdateQueue(finishedWork, updateQueue, instance, committedExpirationTime);
        }
        return;
      }
    case HostRoot:
      {
        var _updateQueue = finishedWork.updateQueue;
        if (_updateQueue !== null) {
          var _instance = null;
          if (finishedWork.child !== null) {
            switch (finishedWork.child.tag) {
              case HostComponent:
                _instance = getPublicInstance(finishedWork.child.stateNode);
                break;
              case ClassComponent:
                _instance = finishedWork.child.stateNode;
                break;
            }
          }
          commitUpdateQueue(finishedWork, _updateQueue, _instance, committedExpirationTime);
        }
        return;
      }
    case HostComponent:
      {
        var _instance2 = finishedWork.stateNode;

        // Renderers may schedule work to be done after host components are mounted
        // (eg DOM renderer may schedule auto-focus for inputs and form controls).
        // These effects should only be committed when components are first mounted,
        // aka when there is no current/alternate.
        if (current$$1 === null && finishedWork.effectTag & Update) {
          var type = finishedWork.type;
          var props = finishedWork.memoizedProps;
          commitMount(_instance2, type, props, finishedWork);
        }

        return;
      }
    case HostText:
      {
        // We have no life-cycles associated with text.
        return;
      }
    case HostPortal:
      {
        // We have no life-cycles associated with portals.
        return;
      }
    case Profiler:
      {
        if (enableProfilerTimer) {
          var onRender = finishedWork.memoizedProps.onRender;

          if (enableSchedulerTracing) {
            onRender(finishedWork.memoizedProps.id, current$$1 === null ? 'mount' : 'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, getCommitTime(), finishedRoot.memoizedInteractions);
          } else {
            onRender(finishedWork.memoizedProps.id, current$$1 === null ? 'mount' : 'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, getCommitTime());
          }
        }
        return;
      }
    case SuspenseComponent:
      break;
    case IncompleteClassComponent:
      break;
    default:
      {
        invariant(false, 'This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.');
      }
  }
}

function hideOrUnhideAllChildren(finishedWork, isHidden) {
  if (supportsMutation) {
    // We only have the top Fiber that was inserted but we need recurse down its
    var node = finishedWork;
    while (true) {
      if (node.tag === HostComponent) {
        var instance = node.stateNode;
        if (isHidden) {
          hideInstance(instance);
        } else {
          unhideInstance(node.stateNode, node.memoizedProps);
        }
      } else if (node.tag === HostText) {
        var _instance3 = node.stateNode;
        if (isHidden) {
          hideTextInstance(_instance3);
        } else {
          unhideTextInstance(_instance3, node.memoizedProps);
        }
      } else if (node.child !== null) {
        node.child.return = node;
        node = node.child;
        continue;
      }
      if (node === finishedWork) {
        return;
      }
      while (node.sibling === null) {
        if (node.return === null || node.return === finishedWork) {
          return;
        }
        node = node.return;
      }
      node.sibling.return = node.return;
      node = node.sibling;
    }
  }
}

function commitAttachRef(finishedWork) {
  var ref = finishedWork.ref;
  if (ref !== null) {
    var instance = finishedWork.stateNode;
    var instanceToUse = void 0;
    switch (finishedWork.tag) {
      case HostComponent:
        instanceToUse = getPublicInstance(instance);
        break;
      default:
        instanceToUse = instance;
    }
    if (typeof ref === 'function') {
      ref(instanceToUse);
    } else {
      {
        if (!ref.hasOwnProperty('current')) {
          warningWithoutStack$1(false, 'Unexpected ref object provided for %s. ' + 'Use either a ref-setter function or React.createRef().%s', getComponentName(finishedWork.type), getStackByFiberInDevAndProd(finishedWork));
        }
      }

      ref.current = instanceToUse;
    }
  }
}

function commitDetachRef(current$$1) {
  var currentRef = current$$1.ref;
  if (currentRef !== null) {
    if (typeof currentRef === 'function') {
      currentRef(null);
    } else {
      currentRef.current = null;
    }
  }
}

// User-originating errors (lifecycles and refs) should not interrupt
// deletion, so don't let them throw. Host-originating errors should
// interrupt deletion, so it's okay
function commitUnmount(current$$1) {
  onCommitUnmount(current$$1);

  switch (current$$1.tag) {
    case FunctionComponent:
    case ForwardRef:
    case MemoComponent:
    case SimpleMemoComponent:
      {
        var updateQueue = current$$1.updateQueue;
        if (updateQueue !== null) {
          var lastEffect = updateQueue.lastEffect;
          if (lastEffect !== null) {
            var firstEffect = lastEffect.next;
            var effect = firstEffect;
            do {
              var destroy = effect.destroy;
              if (destroy !== null) {
                safelyCallDestroy(current$$1, destroy);
              }
              effect = effect.next;
            } while (effect !== firstEffect);
          }
        }
        break;
      }
    case ClassComponent:
      {
        safelyDetachRef(current$$1);
        var instance = current$$1.stateNode;
        if (typeof instance.componentWillUnmount === 'function') {
          safelyCallComponentWillUnmount(current$$1, instance);
        }
        return;
      }
    case HostComponent:
      {
        safelyDetachRef(current$$1);
        return;
      }
    case HostPortal:
      {
        // TODO: this is recursive.
        // We are also not using this parent because
        // the portal will get pushed immediately.
        if (supportsMutation) {
          unmountHostComponents(current$$1);
        } else if (supportsPersistence) {
          emptyPortalContainer(current$$1);
        }
        return;
      }
  }
}

function commitNestedUnmounts(root) {
  // While we're inside a removed host node we don't want to call
  // removeChild on the inner nodes because they're removed by the top
  // call anyway. We also want to call componentWillUnmount on all
  // composites before this host node is removed from the tree. Therefore
  var node = root;
  while (true) {
    commitUnmount(node);
    // Visit children because they may contain more composite or host nodes.
    // Skip portals because commitUnmount() currently visits them recursively.
    if (node.child !== null && (
    // If we use mutation we drill down into portals using commitUnmount above.
    // If we don't use mutation we drill down into portals here instead.
    !supportsMutation || node.tag !== HostPortal)) {
      node.child.return = node;
      node = node.child;
      continue;
    }
    if (node === root) {
      return;
    }
    while (node.sibling === null) {
      if (node.return === null || node.return === root) {
        return;
      }
      node = node.return;
    }
    node.sibling.return = node.return;
    node = node.sibling;
  }
}

function detachFiber(current$$1) {
  // Cut off the return pointers to disconnect it from the tree. Ideally, we
  // should clear the child pointer of the parent alternate to let this
  // get GC:ed but we don't know which for sure which parent is the current
  // one so we'll settle for GC:ing the subtree of this child. This child
  // itself will be GC:ed when the parent updates the next time.
  current$$1.return = null;
  current$$1.child = null;
  if (current$$1.alternate) {
    current$$1.alternate.child = null;
    current$$1.alternate.return = null;
  }
}

function emptyPortalContainer(current$$1) {
  if (!supportsPersistence) {
    return;
  }

  var portal = current$$1.stateNode;
  var containerInfo = portal.containerInfo;

  var emptyChildSet = createContainerChildSet(containerInfo);
  replaceContainerChildren(containerInfo, emptyChildSet);
}

function commitContainer(finishedWork) {
  if (!supportsPersistence) {
    return;
  }

  switch (finishedWork.tag) {
    case ClassComponent:
      {
        return;
      }
    case HostComponent:
      {
        return;
      }
    case HostText:
      {
        return;
      }
    case HostRoot:
    case HostPortal:
      {
        var portalOrRoot = finishedWork.stateNode;
        var containerInfo = portalOrRoot.containerInfo,
            _pendingChildren = portalOrRoot.pendingChildren;

        replaceContainerChildren(containerInfo, _pendingChildren);
        return;
      }
    default:
      {
        invariant(false, 'This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.');
      }
  }
}

function getHostParentFiber(fiber) {
  var parent = fiber.return;
  while (parent !== null) {
    if (isHostParent(parent)) {
      return parent;
    }
    parent = parent.return;
  }
  invariant(false, 'Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.');
}

function isHostParent(fiber) {
  return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal;
}

function getHostSibling(fiber) {
  // We're going to search forward into the tree until we find a sibling host
  // node. Unfortunately, if multiple insertions are done in a row we have to
  // search past them. This leads to exponential search for the next sibling.
  var node = fiber;
  siblings: while (true) {
    // If we didn't find anything, let's try the next sibling.
    while (node.sibling === null) {
      if (node.return === null || isHostParent(node.return)) {
        // If we pop out of the root or hit the parent the fiber we are the
        // last sibling.
        return null;
      }
      node = node.return;
    }
    node.sibling.return = node.return;
    node = node.sibling;
    while (node.tag !== HostComponent && node.tag !== HostText) {
      // If it is not host node and, we might have a host node inside it.
      // Try to search down until we find one.
      if (node.effectTag & Placement) {
        // If we don't have a child, try the siblings instead.
        continue siblings;
      }
      // If we don't have a child, try the siblings instead.
      // We also skip portals because they are not part of this host tree.
      if (node.child === null || node.tag === HostPortal) {
        continue siblings;
      } else {
        node.child.return = node;
        node = node.child;
      }
    }
    // Check if this host node is stable or about to be placed.
    if (!(node.effectTag & Placement)) {
      // Found it!
      return node.stateNode;
    }
  }
}

function commitPlacement(finishedWork) {
  if (!supportsMutation) {
    return;
  }

  // Recursively insert all host nodes into the parent.
  var parentFiber = getHostParentFiber(finishedWork);

  // Note: these two variables *must* always be updated together.
  var parent = void 0;
  var isContainer = void 0;

  switch (parentFiber.tag) {
    case HostComponent:
      parent = parentFiber.stateNode;
      isContainer = false;
      break;
    case HostRoot:
      parent = parentFiber.stateNode.containerInfo;
      isContainer = true;
      break;
    case HostPortal:
      parent = parentFiber.stateNode.containerInfo;
      isContainer = true;
      break;
    default:
      invariant(false, 'Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.');
  }
  if (parentFiber.effectTag & ContentReset) {
    // Reset the text content of the parent before doing any insertions
    resetTextContent(parent);
    // Clear ContentReset from the effect tag
    parentFiber.effectTag &= ~ContentReset;
  }

  var before = getHostSibling(finishedWork);
  // We only have the top Fiber that was inserted but we need recurse down its
  // children to find all the terminal nodes.
  var node = finishedWork;
  while (true) {
    if (node.tag === HostComponent || node.tag === HostText) {
      if (before) {
        if (isContainer) {
          insertInContainerBefore(parent, node.stateNode, before);
        } else {
          insertBefore(parent, node.stateNode, before);
        }
      } else {
        if (isContainer) {
          appendChildToContainer(parent, node.stateNode);
        } else {
          appendChild(parent, node.stateNode);
        }
      }
    } else if (node.tag === HostPortal) {
      // If the insertion itself is a portal, then we don't want to traverse
      // down its children. Instead, we'll get insertions from each child in
      // the portal directly.
    } else if (node.child !== null) {
      node.child.return = node;
      node = node.child;
      continue;
    }
    if (node === finishedWork) {
      return;
    }
    while (node.sibling === null) {
      if (node.return === null || node.return === finishedWork) {
        return;
      }
      node = node.return;
    }
    node.sibling.return = node.return;
    node = node.sibling;
  }
}

function unmountHostComponents(current$$1) {
  // We only have the top Fiber that was deleted but we need recurse down its
  var node = current$$1;

  // Each iteration, currentParent is populated with node's host parent if not
  // currentParentIsValid.
  var currentParentIsValid = false;

  // Note: these two variables *must* always be updated together.
  var currentParent = void 0;
  var currentParentIsContainer = void 0;

  while (true) {
    if (!currentParentIsValid) {
      var parent = node.return;
      findParent: while (true) {
        !(parent !== null) ? invariant(false, 'Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.') : void 0;
        switch (parent.tag) {
          case HostComponent:
            currentParent = parent.stateNode;
            currentParentIsContainer = false;
            break findParent;
          case HostRoot:
            currentParent = parent.stateNode.containerInfo;
            currentParentIsContainer = true;
            break findParent;
          case HostPortal:
            currentParent = parent.stateNode.containerInfo;
            currentParentIsContainer = true;
            break findParent;
        }
        parent = parent.return;
      }
      currentParentIsValid = true;
    }

    if (node.tag === HostComponent || node.tag === HostText) {
      commitNestedUnmounts(node);
      // After all the children have unmounted, it is now safe to remove the
      // node from the tree.
      if (currentParentIsContainer) {
        removeChildFromContainer(currentParent, node.stateNode);
      } else {
        removeChild(currentParent, node.stateNode);
      }
      // Don't visit children because we already visited them.
    } else if (node.tag === HostPortal) {
      // When we go into a portal, it becomes the parent to remove from.
      // We will reassign it back when we pop the portal on the way up.
      currentParent = node.stateNode.containerInfo;
      currentParentIsContainer = true;
      // Visit children because portals might contain host components.
      if (node.child !== null) {
        node.child.return = node;
        node = node.child;
        continue;
      }
    } else {
      commitUnmount(node);
      // Visit children because we may find more host components below.
      if (node.child !== null) {
        node.child.return = node;
        node = node.child;
        continue;
      }
    }
    if (node === current$$1) {
      return;
    }
    while (node.sibling === null) {
      if (node.return === null || node.return === current$$1) {
        return;
      }
      node = node.return;
      if (node.tag === HostPortal) {
        // When we go out of the portal, we need to restore the parent.
        // Since we don't keep a stack of them, we will search for it.
        currentParentIsValid = false;
      }
    }
    node.sibling.return = node.return;
    node = node.sibling;
  }
}

function commitDeletion(current$$1) {
  if (supportsMutation) {
    // Recursively delete all host nodes from the parent.
    // Detach refs and call componentWillUnmount() on the whole subtree.
    unmountHostComponents(current$$1);
  } else {
    // Detach refs and call componentWillUnmount() on the whole subtree.
    commitNestedUnmounts(current$$1);
  }
  detachFiber(current$$1);
}

function commitWork(current$$1, finishedWork) {
  if (!supportsMutation) {
    switch (finishedWork.tag) {
      case FunctionComponent:
      case ForwardRef:
      case MemoComponent:
      case SimpleMemoComponent:
        {
          commitHookEffectList(UnmountMutation, MountMutation, finishedWork);
          return;
        }
    }

    commitContainer(finishedWork);
    return;
  }

  switch (finishedWork.tag) {
    case FunctionComponent:
    case ForwardRef:
    case MemoComponent:
    case SimpleMemoComponent:
      {
        commitHookEffectList(UnmountMutation, MountMutation, finishedWork);
        return;
      }
    case ClassComponent:
      {
        return;
      }
    case HostComponent:
      {
        var instance = finishedWork.stateNode;
        if (instance != null) {
          // Commit the work prepared earlier.
          var newProps = finishedWork.memoizedProps;
          // For hydration we reuse the update path but we treat the oldProps
          // as the newProps. The updatePayload will contain the real change in
          // this case.
          var oldProps = current$$1 !== null ? current$$1.memoizedProps : newProps;
          var type = finishedWork.type;
          // TODO: Type the updateQueue to be specific to host components.
          var updatePayload = finishedWork.updateQueue;
          finishedWork.updateQueue = null;
          if (updatePayload !== null) {
            commitUpdate(instance, updatePayload, type, oldProps, newProps, finishedWork);
          }
        }
        return;
      }
    case HostText:
      {
        !(finishedWork.stateNode !== null) ? invariant(false, 'This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.') : void 0;
        var textInstance = finishedWork.stateNode;
        var newText = finishedWork.memoizedProps;
        // For hydration we reuse the update path but we treat the oldProps
        // as the newProps. The updatePayload will contain the real change in
        // this case.
        var oldText = current$$1 !== null ? current$$1.memoizedProps : newText;
        commitTextUpdate(textInstance, oldText, newText);
        return;
      }
    case HostRoot:
      {
        return;
      }
    case Profiler:
      {
        return;
      }
    case SuspenseComponent:
      {
        var newState = finishedWork.memoizedState;

        var newDidTimeout = void 0;
        var primaryChildParent = finishedWork;
        if (newState === null) {
          newDidTimeout = false;
        } else {
          newDidTimeout = true;
          primaryChildParent = finishedWork.child;
          if (newState.timedOutAt === NoWork) {
            // If the children had not already timed out, record the time.
            // This is used to compute the elapsed time during subsequent
            // attempts to render the children.
            newState.timedOutAt = requestCurrentTime();
          }
        }

        if (primaryChildParent !== null) {
          hideOrUnhideAllChildren(primaryChildParent, newDidTimeout);
        }
        return;
      }
    case IncompleteClassComponent:
      {
        return;
      }
    default:
      {
        invariant(false, 'This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.');
      }
  }
}

function commitResetTextContent(current$$1) {
  if (!supportsMutation) {
    return;
  }
  resetTextContent(current$$1.stateNode);
}

function createRootErrorUpdate(fiber, errorInfo, expirationTime) {
  var update = createUpdate(expirationTime);
  // Unmount the root by rendering null.
  update.tag = CaptureUpdate;
  // Caution: React DevTools currently depends on this property
  // being called "element".
  update.payload = { element: null };
  var error = errorInfo.value;
  update.callback = function () {
    onUncaughtError(error);
    logError(fiber, errorInfo);
  };
  return update;
}

function createClassErrorUpdate(fiber, errorInfo, expirationTime) {
  var update = createUpdate(expirationTime);
  update.tag = CaptureUpdate;
  var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
  if (typeof getDerivedStateFromError === 'function') {
    var error = errorInfo.value;
    update.payload = function () {
      return getDerivedStateFromError(error);
    };
  }

  var inst = fiber.stateNode;
  if (inst !== null && typeof inst.componentDidCatch === 'function') {
    update.callback = function callback() {
      if (typeof getDerivedStateFromError !== 'function') {
        // To preserve the preexisting retry behavior of error boundaries,
        // we keep track of which ones already failed during this batch.
        // This gets reset before we yield back to the browser.
        // TODO: Warn in strict mode if getDerivedStateFromError is
        // not defined.
        markLegacyErrorBoundaryAsFailed(this);
      }
      var error = errorInfo.value;
      var stack = errorInfo.stack;
      logError(fiber, errorInfo);
      this.componentDidCatch(error, {
        componentStack: stack !== null ? stack : ''
      });
      {
        if (typeof getDerivedStateFromError !== 'function') {
          // If componentDidCatch is the only error boundary method defined,
          // then it needs to call setState to recover from errors.
          // If no state update is scheduled then the boundary will swallow the error.
          !(fiber.expirationTime === Sync) ? warningWithoutStack$1(false, '%s: Error boundaries should implement getDerivedStateFromError(). ' + 'In that method, return a state update to display an error message or fallback UI.', getComponentName(fiber.type) || 'Unknown') : void 0;
        }
      }
    };
  }
  return update;
}

function throwException(root, returnFiber, sourceFiber, value, renderExpirationTime) {
  // The source fiber did not complete.
  sourceFiber.effectTag |= Incomplete;
  // Its effect list is no longer valid.
  sourceFiber.firstEffect = sourceFiber.lastEffect = null;

  if (value !== null && typeof value === 'object' && typeof value.then === 'function') {
    // This is a thenable.
    var thenable = value;

    // Find the earliest timeout threshold of all the placeholders in the
    // ancestor path. We could avoid this traversal by storing the thresholds on
    // the stack, but we choose not to because we only hit this path if we're
    // IO-bound (i.e. if something suspends). Whereas the stack is used even in
    // the non-IO- bound case.
    var _workInProgress = returnFiber;
    var earliestTimeoutMs = -1;
    var startTimeMs = -1;
    do {
      if (_workInProgress.tag === SuspenseComponent) {
        var current$$1 = _workInProgress.alternate;
        if (current$$1 !== null) {
          var currentState = current$$1.memoizedState;
          if (currentState !== null) {
            // Reached a boundary that already timed out. Do not search
            // any further.
            var timedOutAt = currentState.timedOutAt;
            startTimeMs = expirationTimeToMs(timedOutAt);
            // Do not search any further.
            break;
          }
        }
        var timeoutPropMs = _workInProgress.pendingProps.maxDuration;
        if (typeof timeoutPropMs === 'number') {
          if (timeoutPropMs <= 0) {
            earliestTimeoutMs = 0;
          } else if (earliestTimeoutMs === -1 || timeoutPropMs < earliestTimeoutMs) {
            earliestTimeoutMs = timeoutPropMs;
          }
        }
      }
      _workInProgress = _workInProgress.return;
    } while (_workInProgress !== null);

    // Schedule the nearest Suspense to re-render the timed out view.
    _workInProgress = returnFiber;
    do {
      if (_workInProgress.tag === SuspenseComponent && shouldCaptureSuspense(_workInProgress.alternate, _workInProgress)) {
        // Found the nearest boundary.

        // If the boundary is not in concurrent mode, we should not suspend, and
        // likewise, when the promise resolves, we should ping synchronously.
        var pingTime = (_workInProgress.mode & ConcurrentMode) === NoEffect ? Sync : renderExpirationTime;

        // Attach a listener to the promise to "ping" the root and retry.
        var onResolveOrReject = retrySuspendedRoot.bind(null, root, _workInProgress, sourceFiber, pingTime);
        if (enableSchedulerTracing) {
          onResolveOrReject = tracing.unstable_wrap(onResolveOrReject);
        }
        thenable.then(onResolveOrReject, onResolveOrReject);

        // If the boundary is outside of concurrent mode, we should *not*
        // suspend the commit. Pretend as if the suspended component rendered
        // null and keep rendering. In the commit phase, we'll schedule a
        // subsequent synchronous update to re-render the Suspense.
        //
        // Note: It doesn't matter whether the component that suspended was
        // inside a concurrent mode tree. If the Suspense is outside of it, we
        // should *not* suspend the commit.
        if ((_workInProgress.mode & ConcurrentMode) === NoEffect) {
          _workInProgress.effectTag |= DidCapture;

          // Unmount the source fiber's children
          var nextChildren = null;
          reconcileChildren(sourceFiber.alternate, sourceFiber, nextChildren, renderExpirationTime);
          sourceFiber.effectTag &= ~Incomplete;

          // We're going to commit this fiber even though it didn't complete.
          // But we shouldn't call any lifecycle methods or callbacks. Remove
          // all lifecycle effect tags.
          sourceFiber.effectTag &= ~LifecycleEffectMask;

          if (sourceFiber.tag === ClassComponent) {
            var _current = sourceFiber.alternate;
            if (_current === null) {
              // This is a new mount. Change the tag so it's not mistaken for a
              // completed class component. For example, we should not call
              // componentWillUnmount if it is deleted.
              sourceFiber.tag = IncompleteClassComponent;
            }
          }

          // The source fiber did not complete. Mark it with the current
          // render priority to indicate that it still has pending work.
          sourceFiber.expirationTime = renderExpirationTime;

          // Exit without suspending.
          return;
        }

        // Confirmed that the boundary is in a concurrent mode tree. Continue
        // with the normal suspend path.

        var absoluteTimeoutMs = void 0;
        if (earliestTimeoutMs === -1) {
          // If no explicit threshold is given, default to an abitrarily large
          // value. The actual size doesn't matter because the threshold for the
          // whole tree will be clamped to the expiration time.
          absoluteTimeoutMs = maxSigned31BitInt;
        } else {
          if (startTimeMs === -1) {
            // This suspend happened outside of any already timed-out
            // placeholders. We don't know exactly when the update was
            // scheduled, but we can infer an approximate start time from the
            // expiration time. First, find the earliest uncommitted expiration
            // time in the tree, including work that is suspended. Then subtract
            // the offset used to compute an async update's expiration time.
            // This will cause high priority (interactive) work to expire
            // earlier than necessary, but we can account for this by adjusting
            // for the Just Noticeable Difference.
            var earliestExpirationTime = findEarliestOutstandingPriorityLevel(root, renderExpirationTime);
            var earliestExpirationTimeMs = expirationTimeToMs(earliestExpirationTime);
            startTimeMs = earliestExpirationTimeMs - LOW_PRIORITY_EXPIRATION;
          }
          absoluteTimeoutMs = startTimeMs + earliestTimeoutMs;
        }

        // Mark the earliest timeout in the suspended fiber's ancestor path.
        // After completing the root, we'll take the largest of all the
        // suspended fiber's timeouts and use it to compute a timeout for the
        // whole tree.
        renderDidSuspend(root, absoluteTimeoutMs, renderExpirationTime);

        _workInProgress.effectTag |= ShouldCapture;
        _workInProgress.expirationTime = renderExpirationTime;
        return;
      }
      // This boundary already captured during this render. Continue to the next
      // boundary.
      _workInProgress = _workInProgress.return;
    } while (_workInProgress !== null);
    // No boundary was found. Fallthrough to error mode.
    // TODO: Use invariant so the message is stripped in prod?
    value = new Error((getComponentName(sourceFiber.type) || 'A React component') + ' suspended while rendering, but no fallback UI was specified.\n' + '\n' + 'Add a <Suspense fallback=...> component higher in the tree to ' + 'provide a loading indicator or placeholder to display.' + getStackByFiberInDevAndProd(sourceFiber));
  }

  // We didn't find a boundary that could handle this type of exception. Start
  // over and traverse parent path again, this time treating the exception
  // as an error.
  renderDidError();
  value = createCapturedValue(value, sourceFiber);
  var workInProgress = returnFiber;
  do {
    switch (workInProgress.tag) {
      case HostRoot:
        {
          var _errorInfo = value;
          workInProgress.effectTag |= ShouldCapture;
          workInProgress.expirationTime = renderExpirationTime;
          var update = createRootErrorUpdate(workInProgress, _errorInfo, renderExpirationTime);
          enqueueCapturedUpdate(workInProgress, update);
          return;
        }
      case ClassComponent:
        // Capture and retry
        var errorInfo = value;
        var ctor = workInProgress.type;
        var instance = workInProgress.stateNode;
        if ((workInProgress.effectTag & DidCapture) === NoEffect && (typeof ctor.getDerivedStateFromError === 'function' || instance !== null && typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance))) {
          workInProgress.effectTag |= ShouldCapture;
          workInProgress.expirationTime = renderExpirationTime;
          // Schedule the error boundary to re-render using updated state
          var _update = createClassErrorUpdate(workInProgress, errorInfo, renderExpirationTime);
          enqueueCapturedUpdate(workInProgress, _update);
          return;
        }
        break;
      default:
        break;
    }
    workInProgress = workInProgress.return;
  } while (workInProgress !== null);
}

function unwindWork(workInProgress, renderExpirationTime) {
  switch (workInProgress.tag) {
    case ClassComponent:
      {
        var Component = workInProgress.type;
        if (isContextProvider(Component)) {
          popContext(workInProgress);
        }
        var effectTag = workInProgress.effectTag;
        if (effectTag & ShouldCapture) {
          workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture;
          return workInProgress;
        }
        return null;
      }
    case HostRoot:
      {
        popHostContainer(workInProgress);
        popTopLevelContextObject(workInProgress);
        var _effectTag = workInProgress.effectTag;
        !((_effectTag & DidCapture) === NoEffect) ? invariant(false, 'The root failed to unmount after an error. This is likely a bug in React. Please file an issue.') : void 0;
        workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture;
        return workInProgress;
      }
    case HostComponent:
      {
        popHostContext(workInProgress);
        return null;
      }
    case SuspenseComponent:
      {
        var _effectTag2 = workInProgress.effectTag;
        if (_effectTag2 & ShouldCapture) {
          workInProgress.effectTag = _effectTag2 & ~ShouldCapture | DidCapture;
          // Captured a suspense effect. Re-render the boundary.
          return workInProgress;
        }
        return null;
      }
    case HostPortal:
      popHostContainer(workInProgress);
      return null;
    case ContextProvider:
      popProvider(workInProgress);
      return null;
    default:
      return null;
  }
}

function unwindInterruptedWork(interruptedWork) {
  switch (interruptedWork.tag) {
    case ClassComponent:
      {
        var childContextTypes = interruptedWork.type.childContextTypes;
        if (childContextTypes !== null && childContextTypes !== undefined) {
          popContext(interruptedWork);
        }
        break;
      }
    case HostRoot:
      {
        popHostContainer(interruptedWork);
        popTopLevelContextObject(interruptedWork);
        break;
      }
    case HostComponent:
      {
        popHostContext(interruptedWork);
        break;
      }
    case HostPortal:
      popHostContainer(interruptedWork);
      break;
    case ContextProvider:
      popProvider(interruptedWork);
      break;
    default:
      break;
  }
}

var Dispatcher = {
  readContext: readContext,
  useCallback: useCallback,
  useContext: useContext,
  useEffect: useEffect,
  useImperativeMethods: useImperativeMethods,
  useLayoutEffect: useLayoutEffect,
  useMemo: useMemo,
  useMutationEffect: useMutationEffect,
  useReducer: useReducer,
  useRef: useRef,
  useState: useState
};
var DispatcherWithoutHooks = {
  readContext: readContext
};

var ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner;


var didWarnAboutStateTransition = void 0;
var didWarnSetStateChildContext = void 0;
var warnAboutUpdateOnUnmounted = void 0;
var warnAboutInvalidUpdates = void 0;

if (enableSchedulerTracing) {
  // Provide explicit error message when production+profiling bundle of e.g. react-dom
  // is used with production (non-profiling) bundle of schedule/tracing
  !(tracing.__interactionsRef != null && tracing.__interactionsRef.current != null) ? invariant(false, 'It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `schedule/tracing` module with `schedule/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at http://fb.me/react-profiling') : void 0;
}

{
  didWarnAboutStateTransition = false;
  didWarnSetStateChildContext = false;
  var didWarnStateUpdateForUnmountedComponent = {};

  warnAboutUpdateOnUnmounted = function (fiber, isClass) {
    // We show the whole stack but dedupe on the top component's name because
    // the problematic code almost always lies inside that component.
    var componentName = getComponentName(fiber.type) || 'ReactComponent';
    if (didWarnStateUpdateForUnmountedComponent[componentName]) {
      return;
    }
    warningWithoutStack$1(false, "Can't perform a React state update on an unmounted component. This " + 'is a no-op, but it indicates a memory leak in your application. To ' + 'fix, cancel all subscriptions and asynchronous tasks in %s.%s', isClass ? 'the componentWillUnmount method' : 'a useEffect cleanup function', getStackByFiberInDevAndProd(fiber));
    didWarnStateUpdateForUnmountedComponent[componentName] = true;
  };

  warnAboutInvalidUpdates = function (instance) {
    switch (phase) {
      case 'getChildContext':
        if (didWarnSetStateChildContext) {
          return;
        }
        warningWithoutStack$1(false, 'setState(...): Cannot call setState() inside getChildContext()');
        didWarnSetStateChildContext = true;
        break;
      case 'render':
        if (didWarnAboutStateTransition) {
          return;
        }
        warningWithoutStack$1(false, 'Cannot update during an existing state transition (such as within ' + '`render`). Render methods should be a pure function of props and state.');
        didWarnAboutStateTransition = true;
        break;
    }
  };
}

// Used to ensure computeUniqueAsyncExpiration is monotonically decreasing.
var lastUniqueAsyncExpiration = Sync - 1;

// Represents the expiration time that incoming updates should use. (If this
// is NoWork, use the default strategy: async updates in async mode, sync
// updates in sync mode.)
var expirationContext = NoWork;

var isWorking = false;

// The next work in progress fiber that we're currently working on.
var nextUnitOfWork = null;
var nextRoot = null;
// The time at which we're currently rendering work.
var nextRenderExpirationTime = NoWork;
var nextLatestAbsoluteTimeoutMs = -1;
var nextRenderDidError = false;

// The next fiber with an effect that we're currently committing.
var nextEffect = null;

var isCommitting$1 = false;
var rootWithPendingPassiveEffects = null;
var passiveEffectCallbackHandle = null;
var passiveEffectCallback = null;

var legacyErrorBoundariesThatAlreadyFailed = null;

// Used for performance tracking.
var interruptedBy = null;

var stashedWorkInProgressProperties = void 0;
var replayUnitOfWork = void 0;
var mayReplayFailedUnitOfWork = void 0;
var isReplayingFailedUnitOfWork = void 0;
var originalReplayError = void 0;
var rethrowOriginalError = void 0;
if (true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
  stashedWorkInProgressProperties = null;
  mayReplayFailedUnitOfWork = true;
  isReplayingFailedUnitOfWork = false;
  originalReplayError = null;
  replayUnitOfWork = function (failedUnitOfWork, thrownValue, isYieldy) {
    if (thrownValue !== null && typeof thrownValue === 'object' && typeof thrownValue.then === 'function') {
      // Don't replay promises. Treat everything else like an error.
      // TODO: Need to figure out a different strategy if/when we add
      // support for catching other types.
      return;
    }

    // Restore the original state of the work-in-progress
    if (stashedWorkInProgressProperties === null) {
      // This should never happen. Don't throw because this code is DEV-only.
      warningWithoutStack$1(false, 'Could not replay rendering after an error. This is likely a bug in React. ' + 'Please file an issue.');
      return;
    }
    assignFiberPropertiesInDEV(failedUnitOfWork, stashedWorkInProgressProperties);

    switch (failedUnitOfWork.tag) {
      case HostRoot:
        popHostContainer(failedUnitOfWork);
        popTopLevelContextObject(failedUnitOfWork);
        break;
      case HostComponent:
        popHostContext(failedUnitOfWork);
        break;
      case ClassComponent:
        {
          var Component = failedUnitOfWork.type;
          if (isContextProvider(Component)) {
            popContext(failedUnitOfWork);
          }
          break;
        }
      case HostPortal:
        popHostContainer(failedUnitOfWork);
        break;
      case ContextProvider:
        popProvider(failedUnitOfWork);
        break;
    }
    // Replay the begin phase.
    isReplayingFailedUnitOfWork = true;
    originalReplayError = thrownValue;
    invokeGuardedCallback(null, workLoop, null, isYieldy);
    isReplayingFailedUnitOfWork = false;
    originalReplayError = null;
    if (hasCaughtError()) {
      var replayError = clearCaughtError();
      if (replayError != null && thrownValue != null) {
        try {
          // Reading the expando property is intentionally
          // inside `try` because it might be a getter or Proxy.
          if (replayError._suppressLogging) {
            // Also suppress logging for the original error.
            thrownValue._suppressLogging = true;
          }
        } catch (inner) {
          // Ignore.
        }
      }
    } else {
      // If the begin phase did not fail the second time, set this pointer
      // back to the original value.
      nextUnitOfWork = failedUnitOfWork;
    }
  };
  rethrowOriginalError = function () {
    throw originalReplayError;
  };
}

function resetStack() {
  if (nextUnitOfWork !== null) {
    var interruptedWork = nextUnitOfWork.return;
    while (interruptedWork !== null) {
      unwindInterruptedWork(interruptedWork);
      interruptedWork = interruptedWork.return;
    }
  }

  {
    ReactStrictModeWarnings.discardPendingWarnings();
    checkThatStackIsEmpty();
  }

  nextRoot = null;
  nextRenderExpirationTime = NoWork;
  nextLatestAbsoluteTimeoutMs = -1;
  nextRenderDidError = false;
  nextUnitOfWork = null;
}

function commitAllHostEffects() {
  while (nextEffect !== null) {
    {
      setCurrentFiber(nextEffect);
    }
    recordEffect();

    var effectTag = nextEffect.effectTag;

    if (effectTag & ContentReset) {
      commitResetTextContent(nextEffect);
    }

    if (effectTag & Ref) {
      var current$$1 = nextEffect.alternate;
      if (current$$1 !== null) {
        commitDetachRef(current$$1);
      }
    }

    // The following switch statement is only concerned about placement,
    // updates, and deletions. To avoid needing to add a case for every
    // possible bitmap value, we remove the secondary effects from the
    // effect tag and switch on that value.
    var primaryEffectTag = effectTag & (Placement | Update | Deletion);
    switch (primaryEffectTag) {
      case Placement:
        {
          commitPlacement(nextEffect);
          // Clear the "placement" from effect tag so that we know that this is inserted, before
          // any life-cycles like componentDidMount gets called.
          // TODO: findDOMNode doesn't rely on this any more but isMounted
          // does and isMounted is deprecated anyway so we should be able
          // to kill this.
          nextEffect.effectTag &= ~Placement;
          break;
        }
      case PlacementAndUpdate:
        {
          // Placement
          commitPlacement(nextEffect);
          // Clear the "placement" from effect tag so that we know that this is inserted, before
          // any life-cycles like componentDidMount gets called.
          nextEffect.effectTag &= ~Placement;

          // Update
          var _current = nextEffect.alternate;
          commitWork(_current, nextEffect);
          break;
        }
      case Update:
        {
          var _current2 = nextEffect.alternate;
          commitWork(_current2, nextEffect);
          break;
        }
      case Deletion:
        {
          commitDeletion(nextEffect);
          break;
        }
    }
    nextEffect = nextEffect.nextEffect;
  }

  {
    resetCurrentFiber();
  }
}

function commitBeforeMutationLifecycles() {
  while (nextEffect !== null) {
    {
      setCurrentFiber(nextEffect);
    }

    var effectTag = nextEffect.effectTag;
    if (effectTag & Snapshot) {
      recordEffect();
      var current$$1 = nextEffect.alternate;
      commitBeforeMutationLifeCycles(current$$1, nextEffect);
    }

    nextEffect = nextEffect.nextEffect;
  }

  {
    resetCurrentFiber();
  }
}

function commitAllLifeCycles(finishedRoot, committedExpirationTime) {
  {
    ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();
    ReactStrictModeWarnings.flushLegacyContextWarning();

    if (warnAboutDeprecatedLifecycles) {
      ReactStrictModeWarnings.flushPendingDeprecationWarnings();
    }
  }
  while (nextEffect !== null) {
    var effectTag = nextEffect.effectTag;

    if (effectTag & (Update | Callback)) {
      recordEffect();
      var current$$1 = nextEffect.alternate;
      commitLifeCycles(finishedRoot, current$$1, nextEffect, committedExpirationTime);
    }

    if (effectTag & Ref) {
      recordEffect();
      commitAttachRef(nextEffect);
    }

    if (enableHooks && effectTag & Passive) {
      rootWithPendingPassiveEffects = finishedRoot;
    }

    nextEffect = nextEffect.nextEffect;
  }
}

function commitPassiveEffects(root, firstEffect) {
  rootWithPendingPassiveEffects = null;
  passiveEffectCallbackHandle = null;
  passiveEffectCallback = null;

  // Set this to true to prevent re-entrancy
  var previousIsRendering = isRendering;
  isRendering = true;

  var effect = firstEffect;
  do {
    if (effect.effectTag & Passive) {
      var didError = false;
      var error = void 0;
      {
        invokeGuardedCallback(null, commitPassiveHookEffects, null, effect);
        if (hasCaughtError()) {
          didError = true;
          error = clearCaughtError();
        }
      }
      if (didError) {
        captureCommitPhaseError(effect, error);
      }
    }
    effect = effect.nextEffect;
  } while (effect !== null);

  isRendering = previousIsRendering;

  // Check if work was scheduled by one of the effects
  var rootExpirationTime = root.expirationTime;
  if (rootExpirationTime !== NoWork) {
    requestWork(root, rootExpirationTime);
  }
}

function isAlreadyFailedLegacyErrorBoundary(instance) {
  return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance);
}

function markLegacyErrorBoundaryAsFailed(instance) {
  if (legacyErrorBoundariesThatAlreadyFailed === null) {
    legacyErrorBoundariesThatAlreadyFailed = new Set([instance]);
  } else {
    legacyErrorBoundariesThatAlreadyFailed.add(instance);
  }
}

function flushPassiveEffects() {
  if (passiveEffectCallback !== null) {
    scheduler.unstable_cancelCallback(passiveEffectCallbackHandle);
    // We call the scheduled callback instead of commitPassiveEffects directly
    // to ensure tracing works correctly.
    passiveEffectCallback();
  }
}

function commitRoot(root, finishedWork) {
  isWorking = true;
  isCommitting$1 = true;
  startCommitTimer();

  !(root.current !== finishedWork) ? invariant(false, 'Cannot commit the same tree as before. This is probably a bug related to the return field. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  var committedExpirationTime = root.pendingCommitExpirationTime;
  !(committedExpirationTime !== NoWork) ? invariant(false, 'Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  root.pendingCommitExpirationTime = NoWork;

  // Update the pending priority levels to account for the work that we are
  // about to commit. This needs to happen before calling the lifecycles, since
  // they may schedule additional updates.
  var updateExpirationTimeBeforeCommit = finishedWork.expirationTime;
  var childExpirationTimeBeforeCommit = finishedWork.childExpirationTime;
  var earliestRemainingTimeBeforeCommit = childExpirationTimeBeforeCommit > updateExpirationTimeBeforeCommit ? childExpirationTimeBeforeCommit : updateExpirationTimeBeforeCommit;
  markCommittedPriorityLevels(root, earliestRemainingTimeBeforeCommit);

  var prevInteractions = null;
  if (enableSchedulerTracing) {
    // Restore any pending interactions at this point,
    // So that cascading work triggered during the render phase will be accounted for.
    prevInteractions = tracing.__interactionsRef.current;
    tracing.__interactionsRef.current = root.memoizedInteractions;
  }

  // Reset this to null before calling lifecycles
  ReactCurrentOwner$2.current = null;

  var firstEffect = void 0;
  if (finishedWork.effectTag > PerformedWork) {
    // A fiber's effect list consists only of its children, not itself. So if
    // the root has an effect, we need to add it to the end of the list. The
    // resulting list is the set that would belong to the root's parent, if
    // it had one; that is, all the effects in the tree including the root.
    if (finishedWork.lastEffect !== null) {
      finishedWork.lastEffect.nextEffect = finishedWork;
      firstEffect = finishedWork.firstEffect;
    } else {
      firstEffect = finishedWork;
    }
  } else {
    // There is no effect on the root.
    firstEffect = finishedWork.firstEffect;
  }

  prepareForCommit(root.containerInfo);

  // Invoke instances of getSnapshotBeforeUpdate before mutation.
  nextEffect = firstEffect;
  startCommitSnapshotEffectsTimer();
  while (nextEffect !== null) {
    var didError = false;
    var error = void 0;
    {
      invokeGuardedCallback(null, commitBeforeMutationLifecycles, null);
      if (hasCaughtError()) {
        didError = true;
        error = clearCaughtError();
      }
    }
    if (didError) {
      !(nextEffect !== null) ? invariant(false, 'Should have next effect. This error is likely caused by a bug in React. Please file an issue.') : void 0;
      captureCommitPhaseError(nextEffect, error);
      // Clean-up
      if (nextEffect !== null) {
        nextEffect = nextEffect.nextEffect;
      }
    }
  }
  stopCommitSnapshotEffectsTimer();

  if (enableProfilerTimer) {
    // Mark the current commit time to be shared by all Profilers in this batch.
    // This enables them to be grouped later.
    recordCommitTime();
  }

  // Commit all the side-effects within a tree. We'll do this in two passes.
  // The first pass performs all the host insertions, updates, deletions and
  // ref unmounts.
  nextEffect = firstEffect;
  startCommitHostEffectsTimer();
  while (nextEffect !== null) {
    var _didError = false;
    var _error = void 0;
    {
      invokeGuardedCallback(null, commitAllHostEffects, null);
      if (hasCaughtError()) {
        _didError = true;
        _error = clearCaughtError();
      }
    }
    if (_didError) {
      !(nextEffect !== null) ? invariant(false, 'Should have next effect. This error is likely caused by a bug in React. Please file an issue.') : void 0;
      captureCommitPhaseError(nextEffect, _error);
      // Clean-up
      if (nextEffect !== null) {
        nextEffect = nextEffect.nextEffect;
      }
    }
  }
  stopCommitHostEffectsTimer();

  resetAfterCommit(root.containerInfo);

  // The work-in-progress tree is now the current tree. This must come after
  // the first pass of the commit phase, so that the previous tree is still
  // current during componentWillUnmount, but before the second pass, so that
  // the finished work is current during componentDidMount/Update.
  root.current = finishedWork;

  // In the second pass we'll perform all life-cycles and ref callbacks.
  // Life-cycles happen as a separate pass so that all placements, updates,
  // and deletions in the entire tree have already been invoked.
  // This pass also triggers any renderer-specific initial effects.
  nextEffect = firstEffect;
  startCommitLifeCyclesTimer();
  while (nextEffect !== null) {
    var _didError2 = false;
    var _error2 = void 0;
    {
      invokeGuardedCallback(null, commitAllLifeCycles, null, root, committedExpirationTime);
      if (hasCaughtError()) {
        _didError2 = true;
        _error2 = clearCaughtError();
      }
    }
    if (_didError2) {
      !(nextEffect !== null) ? invariant(false, 'Should have next effect. This error is likely caused by a bug in React. Please file an issue.') : void 0;
      captureCommitPhaseError(nextEffect, _error2);
      if (nextEffect !== null) {
        nextEffect = nextEffect.nextEffect;
      }
    }
  }

  if (enableHooks && firstEffect !== null && rootWithPendingPassiveEffects !== null) {
    // This commit included a passive effect. These do not need to fire until
    // after the next paint. Schedule an callback to fire them in an async
    // event. To ensure serial execution, the callback will be flushed early if
    // we enter rootWithPendingPassiveEffects commit phase before then.
    var callback = commitPassiveEffects.bind(null, root, firstEffect);
    if (enableSchedulerTracing) {
      // TODO: Avoid this extra callback by mutating the tracing ref directly,
      // like we do at the beginning of commitRoot. I've opted not to do that
      // here because that code is still in flux.
      callback = tracing.unstable_wrap(callback);
    }
    passiveEffectCallbackHandle = scheduler.unstable_scheduleCallback(callback);
    passiveEffectCallback = callback;
  }

  isCommitting$1 = false;
  isWorking = false;
  stopCommitLifeCyclesTimer();
  stopCommitTimer();
  onCommitRoot(finishedWork.stateNode);
  if (true && ReactFiberInstrumentation_1.debugTool) {
    ReactFiberInstrumentation_1.debugTool.onCommitWork(finishedWork);
  }

  var updateExpirationTimeAfterCommit = finishedWork.expirationTime;
  var childExpirationTimeAfterCommit = finishedWork.childExpirationTime;
  var earliestRemainingTimeAfterCommit = childExpirationTimeAfterCommit > updateExpirationTimeAfterCommit ? childExpirationTimeAfterCommit : updateExpirationTimeAfterCommit;
  if (earliestRemainingTimeAfterCommit === NoWork) {
    // If there's no remaining work, we can clear the set of already failed
    // error boundaries.
    legacyErrorBoundariesThatAlreadyFailed = null;
  }
  onCommit(root, earliestRemainingTimeAfterCommit);

  if (enableSchedulerTracing) {
    tracing.__interactionsRef.current = prevInteractions;

    var subscriber = void 0;

    try {
      subscriber = tracing.__subscriberRef.current;
      if (subscriber !== null && root.memoizedInteractions.size > 0) {
        var threadID = computeThreadID(committedExpirationTime, root.interactionThreadID);
        subscriber.onWorkStopped(root.memoizedInteractions, threadID);
      }
    } catch (error) {
      // It's not safe for commitRoot() to throw.
      // Store the error for now and we'll re-throw in finishRendering().
      if (!hasUnhandledError) {
        hasUnhandledError = true;
        unhandledError = error;
      }
    } finally {
      // Clear completed interactions from the pending Map.
      // Unless the render was suspended or cascading work was scheduled,
      // In which case– leave pending interactions until the subsequent render.
      var pendingInteractionMap = root.pendingInteractionMap;
      pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) {
        // Only decrement the pending interaction count if we're done.
        // If there's still work at the current priority,
        // That indicates that we are waiting for suspense data.
        if (scheduledExpirationTime > earliestRemainingTimeAfterCommit) {
          pendingInteractionMap.delete(scheduledExpirationTime);

          scheduledInteractions.forEach(function (interaction) {
            interaction.__count--;

            if (subscriber !== null && interaction.__count === 0) {
              try {
                subscriber.onInteractionScheduledWorkCompleted(interaction);
              } catch (error) {
                // It's not safe for commitRoot() to throw.
                // Store the error for now and we'll re-throw in finishRendering().
                if (!hasUnhandledError) {
                  hasUnhandledError = true;
                  unhandledError = error;
                }
              }
            }
          });
        }
      });
    }
  }
}

function resetChildExpirationTime(workInProgress, renderTime) {
  if (renderTime !== Never && workInProgress.childExpirationTime === Never) {
    // The children of this component are hidden. Don't bubble their
    // expiration times.
    return;
  }

  var newChildExpirationTime = NoWork;

  // Bubble up the earliest expiration time.
  if (enableProfilerTimer && workInProgress.mode & ProfileMode) {
    // We're in profiling mode.
    // Let's use this same traversal to update the render durations.
    var actualDuration = workInProgress.actualDuration;
    var treeBaseDuration = workInProgress.selfBaseDuration;

    // When a fiber is cloned, its actualDuration is reset to 0.
    // This value will only be updated if work is done on the fiber (i.e. it doesn't bailout).
    // When work is done, it should bubble to the parent's actualDuration.
    // If the fiber has not been cloned though, (meaning no work was done),
    // Then this value will reflect the amount of time spent working on a previous render.
    // In that case it should not bubble.
    // We determine whether it was cloned by comparing the child pointer.
    var shouldBubbleActualDurations = workInProgress.alternate === null || workInProgress.child !== workInProgress.alternate.child;

    var child = workInProgress.child;
    while (child !== null) {
      var childUpdateExpirationTime = child.expirationTime;
      var childChildExpirationTime = child.childExpirationTime;
      if (childUpdateExpirationTime > newChildExpirationTime) {
        newChildExpirationTime = childUpdateExpirationTime;
      }
      if (childChildExpirationTime > newChildExpirationTime) {
        newChildExpirationTime = childChildExpirationTime;
      }
      if (shouldBubbleActualDurations) {
        actualDuration += child.actualDuration;
      }
      treeBaseDuration += child.treeBaseDuration;
      child = child.sibling;
    }
    workInProgress.actualDuration = actualDuration;
    workInProgress.treeBaseDuration = treeBaseDuration;
  } else {
    var _child = workInProgress.child;
    while (_child !== null) {
      var _childUpdateExpirationTime = _child.expirationTime;
      var _childChildExpirationTime = _child.childExpirationTime;
      if (_childUpdateExpirationTime > newChildExpirationTime) {
        newChildExpirationTime = _childUpdateExpirationTime;
      }
      if (_childChildExpirationTime > newChildExpirationTime) {
        newChildExpirationTime = _childChildExpirationTime;
      }
      _child = _child.sibling;
    }
  }

  workInProgress.childExpirationTime = newChildExpirationTime;
}

function completeUnitOfWork(workInProgress) {
  // Attempt to complete the current unit of work, then move to the
  // next sibling. If there are no more siblings, return to the
  // parent fiber.
  while (true) {
    // The current, flushed, state of this fiber is the alternate.
    // Ideally nothing should rely on this, but relying on it here
    // means that we don't need an additional field on the work in
    // progress.
    var current$$1 = workInProgress.alternate;
    {
      setCurrentFiber(workInProgress);
    }

    var returnFiber = workInProgress.return;
    var siblingFiber = workInProgress.sibling;

    if ((workInProgress.effectTag & Incomplete) === NoEffect) {
      if (true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
        // Don't replay if it fails during completion phase.
        mayReplayFailedUnitOfWork = false;
      }
      // This fiber completed.
      // Remember we're completing this unit so we can find a boundary if it fails.
      nextUnitOfWork = workInProgress;
      if (enableProfilerTimer) {
        if (workInProgress.mode & ProfileMode) {
          startProfilerTimer(workInProgress);
        }
        nextUnitOfWork = completeWork(current$$1, workInProgress, nextRenderExpirationTime);
        if (workInProgress.mode & ProfileMode) {
          // Update render duration assuming we didn't error.
          stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false);
        }
      } else {
        nextUnitOfWork = completeWork(current$$1, workInProgress, nextRenderExpirationTime);
      }
      if (true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
        // We're out of completion phase so replaying is fine now.
        mayReplayFailedUnitOfWork = true;
      }
      stopWorkTimer(workInProgress);
      resetChildExpirationTime(workInProgress, nextRenderExpirationTime);
      {
        resetCurrentFiber();
      }

      if (nextUnitOfWork !== null) {
        // Completing this fiber spawned new work. Work on that next.
        nextUnitOfWork.firstEffect = nextUnitOfWork.lastEffect = null;
        return nextUnitOfWork;
      }

      if (returnFiber !== null &&
      // Do not append effects to parents if a sibling failed to complete
      (returnFiber.effectTag & Incomplete) === NoEffect) {
        // Append all the effects of the subtree and this fiber onto the effect
        // list of the parent. The completion order of the children affects the
        // side-effect order.
        if (returnFiber.firstEffect === null) {
          returnFiber.firstEffect = workInProgress.firstEffect;
        }
        if (workInProgress.lastEffect !== null) {
          if (returnFiber.lastEffect !== null) {
            returnFiber.lastEffect.nextEffect = workInProgress.firstEffect;
          }
          returnFiber.lastEffect = workInProgress.lastEffect;
        }

        // If this fiber had side-effects, we append it AFTER the children's
        // side-effects. We can perform certain side-effects earlier if
        // needed, by doing multiple passes over the effect list. We don't want
        // to schedule our own side-effect on our own list because if end up
        // reusing children we'll schedule this effect onto itself since we're
        // at the end.
        var effectTag = workInProgress.effectTag;
        // Skip both NoWork and PerformedWork tags when creating the effect list.
        // PerformedWork effect is read by React DevTools but shouldn't be committed.
        if (effectTag > PerformedWork) {
          if (returnFiber.lastEffect !== null) {
            returnFiber.lastEffect.nextEffect = workInProgress;
          } else {
            returnFiber.firstEffect = workInProgress;
          }
          returnFiber.lastEffect = workInProgress;
        }
      }

      if (true && ReactFiberInstrumentation_1.debugTool) {
        ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress);
      }

      if (siblingFiber !== null) {
        // If there is more work to do in this returnFiber, do that next.
        return siblingFiber;
      } else if (returnFiber !== null) {
        // If there's no more work in this returnFiber. Complete the returnFiber.
        workInProgress = returnFiber;
        continue;
      } else {
        // We've reached the root.
        return null;
      }
    } else {
      if (workInProgress.mode & ProfileMode) {
        // Record the render duration for the fiber that errored.
        stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false);
      }

      // This fiber did not complete because something threw. Pop values off
      // the stack without entering the complete phase. If this is a boundary,
      // capture values if possible.
      var next = unwindWork(workInProgress, nextRenderExpirationTime);
      // Because this fiber did not complete, don't reset its expiration time.
      if (workInProgress.effectTag & DidCapture) {
        // Restarting an error boundary
        stopFailedWorkTimer(workInProgress);
      } else {
        stopWorkTimer(workInProgress);
      }

      {
        resetCurrentFiber();
      }

      if (next !== null) {
        stopWorkTimer(workInProgress);
        if (true && ReactFiberInstrumentation_1.debugTool) {
          ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress);
        }

        if (enableProfilerTimer) {
          // Include the time spent working on failed children before continuing.
          if (next.mode & ProfileMode) {
            var actualDuration = next.actualDuration;
            var child = next.child;
            while (child !== null) {
              actualDuration += child.actualDuration;
              child = child.sibling;
            }
            next.actualDuration = actualDuration;
          }
        }

        // If completing this work spawned new work, do that next. We'll come
        // back here again.
        // Since we're restarting, remove anything that is not a host effect
        // from the effect tag.
        next.effectTag &= HostEffectMask;
        return next;
      }

      if (returnFiber !== null) {
        // Mark the parent fiber as incomplete and clear its effect list.
        returnFiber.firstEffect = returnFiber.lastEffect = null;
        returnFiber.effectTag |= Incomplete;
      }

      if (true && ReactFiberInstrumentation_1.debugTool) {
        ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress);
      }

      if (siblingFiber !== null) {
        // If there is more work to do in this returnFiber, do that next.
        return siblingFiber;
      } else if (returnFiber !== null) {
        // If there's no more work in this returnFiber. Complete the returnFiber.
        workInProgress = returnFiber;
        continue;
      } else {
        return null;
      }
    }
  }

  // Without this explicit null return Flow complains of invalid return type
  // TODO Remove the above while(true) loop
  // eslint-disable-next-line no-unreachable
  return null;
}

function performUnitOfWork(workInProgress) {
  // The current, flushed, state of this fiber is the alternate.
  // Ideally nothing should rely on this, but relying on it here
  // means that we don't need an additional field on the work in
  // progress.
  var current$$1 = workInProgress.alternate;

  // See if beginning this work spawns more work.
  startWorkTimer(workInProgress);
  {
    setCurrentFiber(workInProgress);
  }

  if (true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
    stashedWorkInProgressProperties = assignFiberPropertiesInDEV(stashedWorkInProgressProperties, workInProgress);
  }

  var next = void 0;
  if (enableProfilerTimer) {
    if (workInProgress.mode & ProfileMode) {
      startProfilerTimer(workInProgress);
    }

    next = beginWork(current$$1, workInProgress, nextRenderExpirationTime);
    workInProgress.memoizedProps = workInProgress.pendingProps;

    if (workInProgress.mode & ProfileMode) {
      // Record the render duration assuming we didn't bailout (or error).
      stopProfilerTimerIfRunningAndRecordDelta(workInProgress, true);
    }
  } else {
    next = beginWork(current$$1, workInProgress, nextRenderExpirationTime);
    workInProgress.memoizedProps = workInProgress.pendingProps;
  }

  {
    resetCurrentFiber();
    if (isReplayingFailedUnitOfWork) {
      // Currently replaying a failed unit of work. This should be unreachable,
      // because the render phase is meant to be idempotent, and it should
      // have thrown again. Since it didn't, rethrow the original error, so
      // React's internal stack is not misaligned.
      rethrowOriginalError();
    }
  }
  if (true && ReactFiberInstrumentation_1.debugTool) {
    ReactFiberInstrumentation_1.debugTool.onBeginWork(workInProgress);
  }

  if (next === null) {
    // If this doesn't spawn new work, complete the current work.
    next = completeUnitOfWork(workInProgress);
  }

  ReactCurrentOwner$2.current = null;

  return next;
}

function workLoop(isYieldy) {
  if (!isYieldy) {
    // Flush work without yielding
    while (nextUnitOfWork !== null) {
      nextUnitOfWork = performUnitOfWork(nextUnitOfWork);
    }
  } else {
    // Flush asynchronous work until there's a higher priority event
    while (nextUnitOfWork !== null && !shouldYieldToRenderer()) {
      nextUnitOfWork = performUnitOfWork(nextUnitOfWork);
    }
  }
}

function renderRoot(root, isYieldy) {
  !!isWorking ? invariant(false, 'renderRoot was called recursively. This error is likely caused by a bug in React. Please file an issue.') : void 0;

  flushPassiveEffects();

  isWorking = true;
  if (enableHooks) {
    ReactCurrentOwner$2.currentDispatcher = Dispatcher;
  } else {
    ReactCurrentOwner$2.currentDispatcher = DispatcherWithoutHooks;
  }

  var expirationTime = root.nextExpirationTimeToWorkOn;

  // Check if we're starting from a fresh stack, or if we're resuming from
  // previously yielded work.
  if (expirationTime !== nextRenderExpirationTime || root !== nextRoot || nextUnitOfWork === null) {
    // Reset the stack and start working from the root.
    resetStack();
    nextRoot = root;
    nextRenderExpirationTime = expirationTime;
    nextUnitOfWork = createWorkInProgress(nextRoot.current, null, nextRenderExpirationTime);
    root.pendingCommitExpirationTime = NoWork;

    if (enableSchedulerTracing) {
      // Determine which interactions this batch of work currently includes,
      // So that we can accurately attribute time spent working on it,
      var interactions = new Set();
      root.pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) {
        if (scheduledExpirationTime >= expirationTime) {
          scheduledInteractions.forEach(function (interaction) {
            return interactions.add(interaction);
          });
        }
      });

      // Store the current set of interactions on the FiberRoot for a few reasons:
      // We can re-use it in hot functions like renderRoot() without having to recalculate it.
      // We will also use it in commitWork() to pass to any Profiler onRender() hooks.
      // This also provides DevTools with a way to access it when the onCommitRoot() hook is called.
      root.memoizedInteractions = interactions;

      if (interactions.size > 0) {
        var subscriber = tracing.__subscriberRef.current;
        if (subscriber !== null) {
          var threadID = computeThreadID(expirationTime, root.interactionThreadID);
          try {
            subscriber.onWorkStarted(interactions, threadID);
          } catch (error) {
            // Work thrown by an interaction tracing subscriber should be rethrown,
            // But only once it's safe (to avoid leaveing the scheduler in an invalid state).
            // Store the error for now and we'll re-throw in finishRendering().
            if (!hasUnhandledError) {
              hasUnhandledError = true;
              unhandledError = error;
            }
          }
        }
      }
    }
  }

  var prevInteractions = null;
  if (enableSchedulerTracing) {
    // We're about to start new traced work.
    // Restore pending interactions so cascading work triggered during the render phase will be accounted for.
    prevInteractions = tracing.__interactionsRef.current;
    tracing.__interactionsRef.current = root.memoizedInteractions;
  }

  var didFatal = false;

  startWorkLoopTimer(nextUnitOfWork);

  do {
    try {
      workLoop(isYieldy);
    } catch (thrownValue) {
      resetContextDependences();
      resetHooks();

      // Reset in case completion throws.
      // This is only used in DEV and when replaying is on.
      var mayReplay = void 0;
      if (true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
        mayReplay = mayReplayFailedUnitOfWork;
        mayReplayFailedUnitOfWork = true;
      }

      if (nextUnitOfWork === null) {
        // This is a fatal error.
        didFatal = true;
        onUncaughtError(thrownValue);
      } else {
        {
          // Reset global debug state
          // We assume this is defined in DEV
          resetCurrentlyProcessingQueue();
        }

        if (true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
          if (mayReplay) {
            var failedUnitOfWork = nextUnitOfWork;
            replayUnitOfWork(failedUnitOfWork, thrownValue, isYieldy);
          }
        }

        // TODO: we already know this isn't true in some cases.
        // At least this shows a nicer error message until we figure out the cause.
        // https://github.com/facebook/react/issues/12449#issuecomment-386727431
        !(nextUnitOfWork !== null) ? invariant(false, 'Failed to replay rendering after an error. This is likely caused by a bug in React. Please file an issue with a reproducing case to help us find it.') : void 0;

        var sourceFiber = nextUnitOfWork;
        var returnFiber = sourceFiber.return;
        if (returnFiber === null) {
          // This is the root. The root could capture its own errors. However,
          // we don't know if it errors before or after we pushed the host
          // context. This information is needed to avoid a stack mismatch.
          // Because we're not sure, treat this as a fatal error. We could track
          // which phase it fails in, but doesn't seem worth it. At least
          // for now.
          didFatal = true;
          onUncaughtError(thrownValue);
        } else {
          throwException(root, returnFiber, sourceFiber, thrownValue, nextRenderExpirationTime);
          nextUnitOfWork = completeUnitOfWork(sourceFiber);
          continue;
        }
      }
    }
    break;
  } while (true);

  if (enableSchedulerTracing) {
    // Traced work is done for now; restore the previous interactions.
    tracing.__interactionsRef.current = prevInteractions;
  }

  // We're done performing work. Time to clean up.
  isWorking = false;
  ReactCurrentOwner$2.currentDispatcher = null;
  resetContextDependences();
  resetHooks();

  // Yield back to main thread.
  if (didFatal) {
    var _didCompleteRoot = false;
    stopWorkLoopTimer(interruptedBy, _didCompleteRoot);
    interruptedBy = null;
    // There was a fatal error.
    {
      resetStackAfterFatalErrorInDev();
    }
    // `nextRoot` points to the in-progress root. A non-null value indicates
    // that we're in the middle of an async render. Set it to null to indicate
    // there's no more work to be done in the current batch.
    nextRoot = null;
    onFatal(root);
    return;
  }

  if (nextUnitOfWork !== null) {
    // There's still remaining async work in this tree, but we ran out of time
    // in the current frame. Yield back to the renderer. Unless we're
    // interrupted by a higher priority update, we'll continue later from where
    // we left off.
    var _didCompleteRoot2 = false;
    stopWorkLoopTimer(interruptedBy, _didCompleteRoot2);
    interruptedBy = null;
    onYield(root);
    return;
  }

  // We completed the whole tree.
  var didCompleteRoot = true;
  stopWorkLoopTimer(interruptedBy, didCompleteRoot);
  var rootWorkInProgress = root.current.alternate;
  !(rootWorkInProgress !== null) ? invariant(false, 'Finished root should have a work-in-progress. This error is likely caused by a bug in React. Please file an issue.') : void 0;

  // `nextRoot` points to the in-progress root. A non-null value indicates
  // that we're in the middle of an async render. Set it to null to indicate
  // there's no more work to be done in the current batch.
  nextRoot = null;
  interruptedBy = null;

  if (nextRenderDidError) {
    // There was an error
    if (hasLowerPriorityWork(root, expirationTime)) {
      // There's lower priority work. If so, it may have the effect of fixing
      // the exception that was just thrown. Exit without committing. This is
      // similar to a suspend, but without a timeout because we're not waiting
      // for a promise to resolve. React will restart at the lower
      // priority level.
      markSuspendedPriorityLevel(root, expirationTime);
      var suspendedExpirationTime = expirationTime;
      var rootExpirationTime = root.expirationTime;
      onSuspend(root, rootWorkInProgress, suspendedExpirationTime, rootExpirationTime, -1 // Indicates no timeout
      );
      return;
    } else if (
    // There's no lower priority work, but we're rendering asynchronously.
    // Synchronsouly attempt to render the same level one more time. This is
    // similar to a suspend, but without a timeout because we're not waiting
    // for a promise to resolve.
    !root.didError && isYieldy) {
      root.didError = true;
      var _suspendedExpirationTime = root.nextExpirationTimeToWorkOn = expirationTime;
      var _rootExpirationTime = root.expirationTime = Sync;
      onSuspend(root, rootWorkInProgress, _suspendedExpirationTime, _rootExpirationTime, -1 // Indicates no timeout
      );
      return;
    }
  }

  if (isYieldy && nextLatestAbsoluteTimeoutMs !== -1) {
    // The tree was suspended.
    var _suspendedExpirationTime2 = expirationTime;
    markSuspendedPriorityLevel(root, _suspendedExpirationTime2);

    // Find the earliest uncommitted expiration time in the tree, including
    // work that is suspended. The timeout threshold cannot be longer than
    // the overall expiration.
    var earliestExpirationTime = findEarliestOutstandingPriorityLevel(root, expirationTime);
    var earliestExpirationTimeMs = expirationTimeToMs(earliestExpirationTime);
    if (earliestExpirationTimeMs < nextLatestAbsoluteTimeoutMs) {
      nextLatestAbsoluteTimeoutMs = earliestExpirationTimeMs;
    }

    // Subtract the current time from the absolute timeout to get the number
    // of milliseconds until the timeout. In other words, convert an absolute
    // timestamp to a relative time. This is the value that is passed
    // to `setTimeout`.
    var currentTimeMs = expirationTimeToMs(requestCurrentTime());
    var msUntilTimeout = nextLatestAbsoluteTimeoutMs - currentTimeMs;
    msUntilTimeout = msUntilTimeout < 0 ? 0 : msUntilTimeout;

    // TODO: Account for the Just Noticeable Difference

    var _rootExpirationTime2 = root.expirationTime;
    onSuspend(root, rootWorkInProgress, _suspendedExpirationTime2, _rootExpirationTime2, msUntilTimeout);
    return;
  }

  // Ready to commit.
  onComplete(root, rootWorkInProgress, expirationTime);
}

function captureCommitPhaseError(sourceFiber, value) {
  var expirationTime = Sync;
  var fiber = sourceFiber.return;
  while (fiber !== null) {
    switch (fiber.tag) {
      case ClassComponent:
        var ctor = fiber.type;
        var instance = fiber.stateNode;
        if (typeof ctor.getDerivedStateFromError === 'function' || typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance)) {
          var errorInfo = createCapturedValue(value, sourceFiber);
          var update = createClassErrorUpdate(fiber, errorInfo, expirationTime);
          enqueueUpdate(fiber, update);
          scheduleWork(fiber, expirationTime);
          return;
        }
        break;
      case HostRoot:
        {
          var _errorInfo = createCapturedValue(value, sourceFiber);
          var _update = createRootErrorUpdate(fiber, _errorInfo, expirationTime);
          enqueueUpdate(fiber, _update);
          scheduleWork(fiber, expirationTime);
          return;
        }
    }
    fiber = fiber.return;
  }

  if (sourceFiber.tag === HostRoot) {
    // Error was thrown at the root. There is no parent, so the root
    // itself should capture it.
    var rootFiber = sourceFiber;
    var _errorInfo2 = createCapturedValue(value, rootFiber);
    var _update2 = createRootErrorUpdate(rootFiber, _errorInfo2, expirationTime);
    enqueueUpdate(rootFiber, _update2);
    scheduleWork(rootFiber, expirationTime);
  }
}

function computeThreadID(expirationTime, interactionThreadID) {
  // Interaction threads are unique per root and expiration time.
  return expirationTime * 1000 + interactionThreadID;
}

// Creates a unique async expiration time.
function computeUniqueAsyncExpiration() {
  var currentTime = requestCurrentTime();
  var result = computeAsyncExpiration(currentTime);
  if (result >= lastUniqueAsyncExpiration) {
    // Since we assume the current time monotonically increases, we only hit
    // this branch when computeUniqueAsyncExpiration is fired multiple times
    // within a 200ms window (or whatever the async bucket size is).
    result = lastUniqueAsyncExpiration - 1;
  }
  lastUniqueAsyncExpiration = result;
  return lastUniqueAsyncExpiration;
}

function computeExpirationForFiber(currentTime, fiber) {
  var expirationTime = void 0;
  if (expirationContext !== NoWork) {
    // An explicit expiration context was set;
    expirationTime = expirationContext;
  } else if (isWorking) {
    if (isCommitting$1) {
      // Updates that occur during the commit phase should have sync priority
      // by default.
      expirationTime = Sync;
    } else {
      // Updates during the render phase should expire at the same time as
      // the work that is being rendered.
      expirationTime = nextRenderExpirationTime;
    }
  } else {
    // No explicit expiration context was set, and we're not currently
    // performing work. Calculate a new expiration time.
    if (fiber.mode & ConcurrentMode) {
      if (isBatchingInteractiveUpdates) {
        // This is an interactive update
        expirationTime = computeInteractiveExpiration(currentTime);
      } else {
        // This is an async update
        expirationTime = computeAsyncExpiration(currentTime);
      }
      // If we're in the middle of rendering a tree, do not update at the same
      // expiration time that is already rendering.
      if (nextRoot !== null && expirationTime === nextRenderExpirationTime) {
        expirationTime -= 1;
      }
    } else {
      // This is a sync update
      expirationTime = Sync;
    }
  }
  if (isBatchingInteractiveUpdates) {
    // This is an interactive update. Keep track of the lowest pending
    // interactive expiration time. This allows us to synchronously flush
    // all interactive updates when needed.
    if (lowestPriorityPendingInteractiveExpirationTime === NoWork || expirationTime < lowestPriorityPendingInteractiveExpirationTime) {
      lowestPriorityPendingInteractiveExpirationTime = expirationTime;
    }
  }
  return expirationTime;
}

function renderDidSuspend(root, absoluteTimeoutMs, suspendedTime) {
  // Schedule the timeout.
  if (absoluteTimeoutMs >= 0 && nextLatestAbsoluteTimeoutMs < absoluteTimeoutMs) {
    nextLatestAbsoluteTimeoutMs = absoluteTimeoutMs;
  }
}

function renderDidError() {
  nextRenderDidError = true;
}

function retrySuspendedRoot(root, boundaryFiber, sourceFiber, suspendedTime) {
  var retryTime = void 0;

  if (isPriorityLevelSuspended(root, suspendedTime)) {
    // Ping at the original level
    retryTime = suspendedTime;

    markPingedPriorityLevel(root, retryTime);
  } else {
    // Suspense already timed out. Compute a new expiration time
    var currentTime = requestCurrentTime();
    retryTime = computeExpirationForFiber(currentTime, boundaryFiber);
    markPendingPriorityLevel(root, retryTime);
  }

  // TODO: If the suspense fiber has already rendered the primary children
  // without suspending (that is, all of the promises have already resolved),
  // we should not trigger another update here. One case this happens is when
  // we are in sync mode and a single promise is thrown both on initial render
  // and on update; we attach two .then(retrySuspendedRoot) callbacks and each
  // one performs Sync work, rerendering the Suspense.

  if ((boundaryFiber.mode & ConcurrentMode) !== NoContext) {
    if (root === nextRoot && nextRenderExpirationTime === suspendedTime) {
      // Received a ping at the same priority level at which we're currently
      // rendering. Restart from the root.
      nextRoot = null;
    }
  }

  scheduleWorkToRoot(boundaryFiber, retryTime);
  if ((boundaryFiber.mode & ConcurrentMode) === NoContext) {
    // Outside of concurrent mode, we must schedule an update on the source
    // fiber, too, since it already committed in an inconsistent state and
    // therefore does not have any pending work.
    scheduleWorkToRoot(sourceFiber, retryTime);
    var sourceTag = sourceFiber.tag;
    if (sourceTag === ClassComponent && sourceFiber.stateNode !== null) {
      // When we try rendering again, we should not reuse the current fiber,
      // since it's known to be in an inconsistent state. Use a force updte to
      // prevent a bail out.
      var update = createUpdate(retryTime);
      update.tag = ForceUpdate;
      enqueueUpdate(sourceFiber, update);
    }
  }

  var rootExpirationTime = root.expirationTime;
  if (rootExpirationTime !== NoWork) {
    requestWork(root, rootExpirationTime);
  }
}

function scheduleWorkToRoot(fiber, expirationTime) {
  recordScheduleUpdate();

  {
    if (fiber.tag === ClassComponent) {
      var instance = fiber.stateNode;
      warnAboutInvalidUpdates(instance);
    }
  }

  // Update the source fiber's expiration time
  if (fiber.expirationTime < expirationTime) {
    fiber.expirationTime = expirationTime;
  }
  var alternate = fiber.alternate;
  if (alternate !== null && alternate.expirationTime < expirationTime) {
    alternate.expirationTime = expirationTime;
  }
  // Walk the parent path to the root and update the child expiration time.
  var node = fiber.return;
  var root = null;
  if (node === null && fiber.tag === HostRoot) {
    root = fiber.stateNode;
  } else {
    while (node !== null) {
      alternate = node.alternate;
      if (node.childExpirationTime < expirationTime) {
        node.childExpirationTime = expirationTime;
        if (alternate !== null && alternate.childExpirationTime < expirationTime) {
          alternate.childExpirationTime = expirationTime;
        }
      } else if (alternate !== null && alternate.childExpirationTime < expirationTime) {
        alternate.childExpirationTime = expirationTime;
      }
      if (node.return === null && node.tag === HostRoot) {
        root = node.stateNode;
        break;
      }
      node = node.return;
    }
  }

  if (root === null) {
    {
      switch (fiber.tag) {
        case ClassComponent:
          warnAboutUpdateOnUnmounted(fiber, true);
          break;
        case FunctionComponent:
        case ForwardRef:
        case MemoComponent:
        case SimpleMemoComponent:
          warnAboutUpdateOnUnmounted(fiber, false);
          break;
      }
    }
    return null;
  }

  if (enableSchedulerTracing) {
    var interactions = tracing.__interactionsRef.current;
    if (interactions.size > 0) {
      var pendingInteractionMap = root.pendingInteractionMap;
      var pendingInteractions = pendingInteractionMap.get(expirationTime);
      if (pendingInteractions != null) {
        interactions.forEach(function (interaction) {
          if (!pendingInteractions.has(interaction)) {
            // Update the pending async work count for previously unscheduled interaction.
            interaction.__count++;
          }

          pendingInteractions.add(interaction);
        });
      } else {
        pendingInteractionMap.set(expirationTime, new Set(interactions));

        // Update the pending async work count for the current interactions.
        interactions.forEach(function (interaction) {
          interaction.__count++;
        });
      }

      var subscriber = tracing.__subscriberRef.current;
      if (subscriber !== null) {
        var threadID = computeThreadID(expirationTime, root.interactionThreadID);
        subscriber.onWorkScheduled(interactions, threadID);
      }
    }
  }

  return root;
}

function scheduleWork(fiber, expirationTime) {
  var root = scheduleWorkToRoot(fiber, expirationTime);
  if (root === null) {
    return;
  }

  if (!isWorking && nextRenderExpirationTime !== NoWork && expirationTime > nextRenderExpirationTime) {
    // This is an interruption. (Used for performance tracking.)
    interruptedBy = fiber;
    resetStack();
  }
  markPendingPriorityLevel(root, expirationTime);
  if (
  // If we're in the render phase, we don't need to schedule this root
  // for an update, because we'll do it before we exit...
  !isWorking || isCommitting$1 ||
  // ...unless this is a different root than the one we're rendering.
  nextRoot !== root) {
    var rootExpirationTime = root.expirationTime;
    requestWork(root, rootExpirationTime);
  }
  if (nestedUpdateCount > NESTED_UPDATE_LIMIT) {
    // Reset this back to zero so subsequent updates don't throw.
    nestedUpdateCount = 0;
    invariant(false, 'Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.');
  }
}

function syncUpdates(fn, a, b, c, d) {
  var previousExpirationContext = expirationContext;
  expirationContext = Sync;
  try {
    return fn(a, b, c, d);
  } finally {
    expirationContext = previousExpirationContext;
  }
}

// TODO: Everything below this is written as if it has been lifted to the
// renderers. I'll do this in a follow-up.

// Linked-list of roots
var firstScheduledRoot = null;
var lastScheduledRoot = null;

var callbackExpirationTime = NoWork;
var callbackID = void 0;
var isRendering = false;
var nextFlushedRoot = null;
var nextFlushedExpirationTime = NoWork;
var lowestPriorityPendingInteractiveExpirationTime = NoWork;
var hasUnhandledError = false;
var unhandledError = null;

var isBatchingUpdates = false;
var isUnbatchingUpdates = false;
var isBatchingInteractiveUpdates = false;

var completedBatches = null;

var originalStartTimeMs = scheduler.unstable_now();
var currentRendererTime = msToExpirationTime(originalStartTimeMs);
var currentSchedulerTime = currentRendererTime;

// Use these to prevent an infinite loop of nested updates
var NESTED_UPDATE_LIMIT = 50;
var nestedUpdateCount = 0;
var lastCommittedRootDuringThisBatch = null;

function recomputeCurrentRendererTime() {
  var currentTimeMs = scheduler.unstable_now() - originalStartTimeMs;
  currentRendererTime = msToExpirationTime(currentTimeMs);
}

function scheduleCallbackWithExpirationTime(root, expirationTime) {
  if (callbackExpirationTime !== NoWork) {
    // A callback is already scheduled. Check its expiration time (timeout).
    if (expirationTime < callbackExpirationTime) {
      // Existing callback has sufficient timeout. Exit.
      return;
    } else {
      if (callbackID !== null) {
        // Existing callback has insufficient timeout. Cancel and schedule a
        // new one.
        scheduler.unstable_cancelCallback(callbackID);
      }
    }
    // The request callback timer is already running. Don't start a new one.
  } else {
    startRequestCallbackTimer();
  }

  callbackExpirationTime = expirationTime;
  var currentMs = scheduler.unstable_now() - originalStartTimeMs;
  var expirationTimeMs = expirationTimeToMs(expirationTime);
  var timeout = expirationTimeMs - currentMs;
  callbackID = scheduler.unstable_scheduleCallback(performAsyncWork, { timeout: timeout });
}

// For every call to renderRoot, one of onFatal, onComplete, onSuspend, and
// onYield is called upon exiting. We use these in lieu of returning a tuple.
// I've also chosen not to inline them into renderRoot because these will
// eventually be lifted into the renderer.
function onFatal(root) {
  root.finishedWork = null;
}

function onComplete(root, finishedWork, expirationTime) {
  root.pendingCommitExpirationTime = expirationTime;
  root.finishedWork = finishedWork;
}

function onSuspend(root, finishedWork, suspendedExpirationTime, rootExpirationTime, msUntilTimeout) {
  root.expirationTime = rootExpirationTime;
  if (msUntilTimeout === 0 && !shouldYieldToRenderer()) {
    // Don't wait an additional tick. Commit the tree immediately.
    root.pendingCommitExpirationTime = suspendedExpirationTime;
    root.finishedWork = finishedWork;
  } else if (msUntilTimeout > 0) {
    // Wait `msUntilTimeout` milliseconds before committing.
    root.timeoutHandle = scheduleTimeout(onTimeout.bind(null, root, finishedWork, suspendedExpirationTime), msUntilTimeout);
  }
}

function onYield(root) {
  root.finishedWork = null;
}

function onTimeout(root, finishedWork, suspendedExpirationTime) {
  // The root timed out. Commit it.
  root.pendingCommitExpirationTime = suspendedExpirationTime;
  root.finishedWork = finishedWork;
  // Read the current time before entering the commit phase. We can be
  // certain this won't cause tearing related to batching of event updates
  // because we're at the top of a timer event.
  recomputeCurrentRendererTime();
  currentSchedulerTime = currentRendererTime;
  flushRoot(root, suspendedExpirationTime);
}

function onCommit(root, expirationTime) {
  root.expirationTime = expirationTime;
  root.finishedWork = null;
}

function requestCurrentTime() {
  // requestCurrentTime is called by the scheduler to compute an expiration
  // time.
  //
  // Expiration times are computed by adding to the current time (the start
  // time). However, if two updates are scheduled within the same event, we
  // should treat their start times as simultaneous, even if the actual clock
  // time has advanced between the first and second call.

  // In other words, because expiration times determine how updates are batched,
  // we want all updates of like priority that occur within the same event to
  // receive the same expiration time. Otherwise we get tearing.
  //
  // We keep track of two separate times: the current "renderer" time and the
  // current "scheduler" time. The renderer time can be updated whenever; it
  // only exists to minimize the calls performance.now.
  //
  // But the scheduler time can only be updated if there's no pending work, or
  // if we know for certain that we're not in the middle of an event.

  if (isRendering) {
    // We're already rendering. Return the most recently read time.
    return currentSchedulerTime;
  }
  // Check if there's pending work.
  findHighestPriorityRoot();
  if (nextFlushedExpirationTime === NoWork || nextFlushedExpirationTime === Never) {
    // If there's no pending work, or if the pending work is offscreen, we can
    // read the current time without risk of tearing.
    recomputeCurrentRendererTime();
    currentSchedulerTime = currentRendererTime;
    return currentSchedulerTime;
  }
  // There's already pending work. We might be in the middle of a browser
  // event. If we were to read the current time, it could cause multiple updates
  // within the same event to receive different expiration times, leading to
  // tearing. Return the last read time. During the next idle callback, the
  // time will be updated.
  return currentSchedulerTime;
}

// requestWork is called by the scheduler whenever a root receives an update.
// It's up to the renderer to call renderRoot at some point in the future.
function requestWork(root, expirationTime) {
  addRootToSchedule(root, expirationTime);
  if (isRendering) {
    // Prevent reentrancy. Remaining work will be scheduled at the end of
    // the currently rendering batch.
    return;
  }

  if (isBatchingUpdates) {
    // Flush work at the end of the batch.
    if (isUnbatchingUpdates) {
      // ...unless we're inside unbatchedUpdates, in which case we should
      // flush it now.
      nextFlushedRoot = root;
      nextFlushedExpirationTime = Sync;
      performWorkOnRoot(root, Sync, false);
    }
    return;
  }

  // TODO: Get rid of Sync and use current time?
  if (expirationTime === Sync) {
    performSyncWork();
  } else {
    scheduleCallbackWithExpirationTime(root, expirationTime);
  }
}

function addRootToSchedule(root, expirationTime) {
  // Add the root to the schedule.
  // Check if this root is already part of the schedule.
  if (root.nextScheduledRoot === null) {
    // This root is not already scheduled. Add it.
    root.expirationTime = expirationTime;
    if (lastScheduledRoot === null) {
      firstScheduledRoot = lastScheduledRoot = root;
      root.nextScheduledRoot = root;
    } else {
      lastScheduledRoot.nextScheduledRoot = root;
      lastScheduledRoot = root;
      lastScheduledRoot.nextScheduledRoot = firstScheduledRoot;
    }
  } else {
    // This root is already scheduled, but its priority may have increased.
    var remainingExpirationTime = root.expirationTime;
    if (expirationTime > remainingExpirationTime) {
      // Update the priority.
      root.expirationTime = expirationTime;
    }
  }
}

function findHighestPriorityRoot() {
  var highestPriorityWork = NoWork;
  var highestPriorityRoot = null;
  if (lastScheduledRoot !== null) {
    var previousScheduledRoot = lastScheduledRoot;
    var root = firstScheduledRoot;
    while (root !== null) {
      var remainingExpirationTime = root.expirationTime;
      if (remainingExpirationTime === NoWork) {
        // This root no longer has work. Remove it from the scheduler.

        // TODO: This check is redudant, but Flow is confused by the branch
        // below where we set lastScheduledRoot to null, even though we break
        // from the loop right after.
        !(previousScheduledRoot !== null && lastScheduledRoot !== null) ? invariant(false, 'Should have a previous and last root. This error is likely caused by a bug in React. Please file an issue.') : void 0;
        if (root === root.nextScheduledRoot) {
          // This is the only root in the list.
          root.nextScheduledRoot = null;
          firstScheduledRoot = lastScheduledRoot = null;
          break;
        } else if (root === firstScheduledRoot) {
          // This is the first root in the list.
          var next = root.nextScheduledRoot;
          firstScheduledRoot = next;
          lastScheduledRoot.nextScheduledRoot = next;
          root.nextScheduledRoot = null;
        } else if (root === lastScheduledRoot) {
          // This is the last root in the list.
          lastScheduledRoot = previousScheduledRoot;
          lastScheduledRoot.nextScheduledRoot = firstScheduledRoot;
          root.nextScheduledRoot = null;
          break;
        } else {
          previousScheduledRoot.nextScheduledRoot = root.nextScheduledRoot;
          root.nextScheduledRoot = null;
        }
        root = previousScheduledRoot.nextScheduledRoot;
      } else {
        if (remainingExpirationTime > highestPriorityWork) {
          // Update the priority, if it's higher
          highestPriorityWork = remainingExpirationTime;
          highestPriorityRoot = root;
        }
        if (root === lastScheduledRoot) {
          break;
        }
        if (highestPriorityWork === Sync) {
          // Sync is highest priority by definition so
          // we can stop searching.
          break;
        }
        previousScheduledRoot = root;
        root = root.nextScheduledRoot;
      }
    }
  }

  nextFlushedRoot = highestPriorityRoot;
  nextFlushedExpirationTime = highestPriorityWork;
}

// TODO: This wrapper exists because many of the older tests (the ones that use
// flushDeferredPri) rely on the number of times `shouldYield` is called. We
// should get rid of it.
var didYield = false;
function shouldYieldToRenderer() {
  if (didYield) {
    return true;
  }
  if (scheduler.unstable_shouldYield()) {
    didYield = true;
    return true;
  }
  return false;
}

function performAsyncWork() {
  try {
    if (!shouldYieldToRenderer()) {
      // The callback timed out. That means at least one update has expired.
      // Iterate through the root schedule. If they contain expired work, set
      // the next render expiration time to the current time. This has the effect
      // of flushing all expired work in a single batch, instead of flushing each
      // level one at a time.
      if (firstScheduledRoot !== null) {
        recomputeCurrentRendererTime();
        var root = firstScheduledRoot;
        do {
          didExpireAtExpirationTime(root, currentRendererTime);
          // The root schedule is circular, so this is never null.
          root = root.nextScheduledRoot;
        } while (root !== firstScheduledRoot);
      }
    }
    performWork(NoWork, true);
  } finally {
    didYield = false;
  }
}

function performSyncWork() {
  performWork(Sync, false);
}

function performWork(minExpirationTime, isYieldy) {
  // Keep working on roots until there's no more work, or until there's a higher
  // priority event.
  findHighestPriorityRoot();

  if (isYieldy) {
    recomputeCurrentRendererTime();
    currentSchedulerTime = currentRendererTime;

    if (enableUserTimingAPI) {
      var didExpire = nextFlushedExpirationTime > currentRendererTime;
      var timeout = expirationTimeToMs(nextFlushedExpirationTime);
      stopRequestCallbackTimer(didExpire, timeout);
    }

    while (nextFlushedRoot !== null && nextFlushedExpirationTime !== NoWork && minExpirationTime <= nextFlushedExpirationTime && !(didYield && currentRendererTime > nextFlushedExpirationTime)) {
      performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, currentRendererTime > nextFlushedExpirationTime);
      findHighestPriorityRoot();
      recomputeCurrentRendererTime();
      currentSchedulerTime = currentRendererTime;
    }
  } else {
    while (nextFlushedRoot !== null && nextFlushedExpirationTime !== NoWork && minExpirationTime <= nextFlushedExpirationTime) {
      performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, false);
      findHighestPriorityRoot();
    }
  }

  // We're done flushing work. Either we ran out of time in this callback,
  // or there's no more work left with sufficient priority.

  // If we're inside a callback, set this to false since we just completed it.
  if (isYieldy) {
    callbackExpirationTime = NoWork;
    callbackID = null;
  }
  // If there's work left over, schedule a new callback.
  if (nextFlushedExpirationTime !== NoWork) {
    scheduleCallbackWithExpirationTime(nextFlushedRoot, nextFlushedExpirationTime);
  }

  // Clean-up.
  finishRendering();
}

function flushRoot(root, expirationTime) {
  !!isRendering ? invariant(false, 'work.commit(): Cannot commit while already rendering. This likely means you attempted to commit from inside a lifecycle method.') : void 0;
  // Perform work on root as if the given expiration time is the current time.
  // This has the effect of synchronously flushing all work up to and
  // including the given time.
  nextFlushedRoot = root;
  nextFlushedExpirationTime = expirationTime;
  performWorkOnRoot(root, expirationTime, false);
  // Flush any sync work that was scheduled by lifecycles
  performSyncWork();
}

function finishRendering() {
  nestedUpdateCount = 0;
  lastCommittedRootDuringThisBatch = null;

  if (completedBatches !== null) {
    var batches = completedBatches;
    completedBatches = null;
    for (var i = 0; i < batches.length; i++) {
      var batch = batches[i];
      try {
        batch._onComplete();
      } catch (error) {
        if (!hasUnhandledError) {
          hasUnhandledError = true;
          unhandledError = error;
        }
      }
    }
  }

  if (hasUnhandledError) {
    var error = unhandledError;
    unhandledError = null;
    hasUnhandledError = false;
    throw error;
  }
}

function performWorkOnRoot(root, expirationTime, isYieldy) {
  !!isRendering ? invariant(false, 'performWorkOnRoot was called recursively. This error is likely caused by a bug in React. Please file an issue.') : void 0;

  isRendering = true;

  // Check if this is async work or sync/expired work.
  if (!isYieldy) {
    // Flush work without yielding.
    // TODO: Non-yieldy work does not necessarily imply expired work. A renderer
    // may want to perform some work without yielding, but also without
    // requiring the root to complete (by triggering placeholders).

    var finishedWork = root.finishedWork;
    if (finishedWork !== null) {
      // This root is already complete. We can commit it.
      completeRoot(root, finishedWork, expirationTime);
    } else {
      root.finishedWork = null;
      // If this root previously suspended, clear its existing timeout, since
      // we're about to try rendering again.
      var timeoutHandle = root.timeoutHandle;
      if (timeoutHandle !== noTimeout) {
        root.timeoutHandle = noTimeout;
        // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above
        cancelTimeout(timeoutHandle);
      }
      renderRoot(root, isYieldy);
      finishedWork = root.finishedWork;
      if (finishedWork !== null) {
        // We've completed the root. Commit it.
        completeRoot(root, finishedWork, expirationTime);
      }
    }
  } else {
    // Flush async work.
    var _finishedWork = root.finishedWork;
    if (_finishedWork !== null) {
      // This root is already complete. We can commit it.
      completeRoot(root, _finishedWork, expirationTime);
    } else {
      root.finishedWork = null;
      // If this root previously suspended, clear its existing timeout, since
      // we're about to try rendering again.
      var _timeoutHandle = root.timeoutHandle;
      if (_timeoutHandle !== noTimeout) {
        root.timeoutHandle = noTimeout;
        // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above
        cancelTimeout(_timeoutHandle);
      }
      renderRoot(root, isYieldy);
      _finishedWork = root.finishedWork;
      if (_finishedWork !== null) {
        // We've completed the root. Check the if we should yield one more time
        // before committing.
        if (!shouldYieldToRenderer()) {
          // Still time left. Commit the root.
          completeRoot(root, _finishedWork, expirationTime);
        } else {
          // There's no time left. Mark this root as complete. We'll come
          // back and commit it later.
          root.finishedWork = _finishedWork;
        }
      }
    }
  }

  isRendering = false;
}

function completeRoot(root, finishedWork, expirationTime) {
  // Check if there's a batch that matches this expiration time.
  var firstBatch = root.firstBatch;
  if (firstBatch !== null && firstBatch._expirationTime >= expirationTime) {
    if (completedBatches === null) {
      completedBatches = [firstBatch];
    } else {
      completedBatches.push(firstBatch);
    }
    if (firstBatch._defer) {
      // This root is blocked from committing by a batch. Unschedule it until
      // we receive another update.
      root.finishedWork = finishedWork;
      root.expirationTime = NoWork;
      return;
    }
  }

  // Commit the root.
  root.finishedWork = null;

  // Check if this is a nested update (a sync update scheduled during the
  // commit phase).
  if (root === lastCommittedRootDuringThisBatch) {
    // If the next root is the same as the previous root, this is a nested
    // update. To prevent an infinite loop, increment the nested update count.
    nestedUpdateCount++;
  } else {
    // Reset whenever we switch roots.
    lastCommittedRootDuringThisBatch = root;
    nestedUpdateCount = 0;
  }
  commitRoot(root, finishedWork);
}

function onUncaughtError(error) {
  !(nextFlushedRoot !== null) ? invariant(false, 'Should be working on a root. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  // Unschedule this root so we don't work on it again until there's
  // another update.
  nextFlushedRoot.expirationTime = NoWork;
  if (!hasUnhandledError) {
    hasUnhandledError = true;
    unhandledError = error;
  }
}

// TODO: Batching should be implemented at the renderer level, not inside
// the reconciler.
function batchedUpdates$1(fn, a) {
  var previousIsBatchingUpdates = isBatchingUpdates;
  isBatchingUpdates = true;
  try {
    return fn(a);
  } finally {
    isBatchingUpdates = previousIsBatchingUpdates;
    if (!isBatchingUpdates && !isRendering) {
      performSyncWork();
    }
  }
}

// TODO: Batching should be implemented at the renderer level, not inside
// the reconciler.
function unbatchedUpdates(fn, a) {
  if (isBatchingUpdates && !isUnbatchingUpdates) {
    isUnbatchingUpdates = true;
    try {
      return fn(a);
    } finally {
      isUnbatchingUpdates = false;
    }
  }
  return fn(a);
}

// TODO: Batching should be implemented at the renderer level, not within
// the reconciler.
function flushSync(fn, a) {
  !!isRendering ? invariant(false, 'flushSync was called from inside a lifecycle method. It cannot be called when React is already rendering.') : void 0;
  var previousIsBatchingUpdates = isBatchingUpdates;
  isBatchingUpdates = true;
  try {
    return syncUpdates(fn, a);
  } finally {
    isBatchingUpdates = previousIsBatchingUpdates;
    performSyncWork();
  }
}

function interactiveUpdates$1(fn, a, b) {
  if (isBatchingInteractiveUpdates) {
    return fn(a, b);
  }
  // If there are any pending interactive updates, synchronously flush them.
  // This needs to happen before we read any handlers, because the effect of
  // the previous event may influence which handlers are called during
  // this event.
  if (!isBatchingUpdates && !isRendering && lowestPriorityPendingInteractiveExpirationTime !== NoWork) {
    // Synchronously flush pending interactive updates.
    performWork(lowestPriorityPendingInteractiveExpirationTime, false);
    lowestPriorityPendingInteractiveExpirationTime = NoWork;
  }
  var previousIsBatchingInteractiveUpdates = isBatchingInteractiveUpdates;
  var previousIsBatchingUpdates = isBatchingUpdates;
  isBatchingInteractiveUpdates = true;
  isBatchingUpdates = true;
  try {
    return fn(a, b);
  } finally {
    isBatchingInteractiveUpdates = previousIsBatchingInteractiveUpdates;
    isBatchingUpdates = previousIsBatchingUpdates;
    if (!isBatchingUpdates && !isRendering) {
      performSyncWork();
    }
  }
}

function flushInteractiveUpdates$1() {
  if (!isRendering && lowestPriorityPendingInteractiveExpirationTime !== NoWork) {
    // Synchronously flush pending interactive updates.
    performWork(lowestPriorityPendingInteractiveExpirationTime, false);
    lowestPriorityPendingInteractiveExpirationTime = NoWork;
  }
}

function flushControlled(fn) {
  var previousIsBatchingUpdates = isBatchingUpdates;
  isBatchingUpdates = true;
  try {
    syncUpdates(fn);
  } finally {
    isBatchingUpdates = previousIsBatchingUpdates;
    if (!isBatchingUpdates && !isRendering) {
      performSyncWork();
    }
  }
}

// 0 is PROD, 1 is DEV.
// Might add PROFILE later.


var didWarnAboutNestedUpdates = void 0;
var didWarnAboutFindNodeInStrictMode = void 0;

{
  didWarnAboutNestedUpdates = false;
  didWarnAboutFindNodeInStrictMode = {};
}

function getContextForSubtree(parentComponent) {
  if (!parentComponent) {
    return emptyContextObject;
  }

  var fiber = get(parentComponent);
  var parentContext = findCurrentUnmaskedContext(fiber);

  if (fiber.tag === ClassComponent) {
    var Component = fiber.type;
    if (isContextProvider(Component)) {
      return processChildContext(fiber, Component, parentContext);
    }
  }

  return parentContext;
}

function scheduleRootUpdate(current$$1, element, expirationTime, callback) {
  {
    if (phase === 'render' && current !== null && !didWarnAboutNestedUpdates) {
      didWarnAboutNestedUpdates = true;
      warningWithoutStack$1(false, 'Render methods should be a pure function of props and state; ' + 'triggering nested component updates from render is not allowed. ' + 'If necessary, trigger nested updates in componentDidUpdate.\n\n' + 'Check the render method of %s.', getComponentName(current.type) || 'Unknown');
    }
  }

  var update = createUpdate(expirationTime);
  // Caution: React DevTools currently depends on this property
  // being called "element".
  update.payload = { element: element };

  callback = callback === undefined ? null : callback;
  if (callback !== null) {
    !(typeof callback === 'function') ? warningWithoutStack$1(false, 'render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback) : void 0;
    update.callback = callback;
  }

  flushPassiveEffects();
  enqueueUpdate(current$$1, update);
  scheduleWork(current$$1, expirationTime);

  return expirationTime;
}

function updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, callback) {
  // TODO: If this is a nested container, this won't be the root.
  var current$$1 = container.current;

  {
    if (ReactFiberInstrumentation_1.debugTool) {
      if (current$$1.alternate === null) {
        ReactFiberInstrumentation_1.debugTool.onMountContainer(container);
      } else if (element === null) {
        ReactFiberInstrumentation_1.debugTool.onUnmountContainer(container);
      } else {
        ReactFiberInstrumentation_1.debugTool.onUpdateContainer(container);
      }
    }
  }

  var context = getContextForSubtree(parentComponent);
  if (container.context === null) {
    container.context = context;
  } else {
    container.pendingContext = context;
  }

  return scheduleRootUpdate(current$$1, element, expirationTime, callback);
}

function findHostInstance(component) {
  var fiber = get(component);
  if (fiber === undefined) {
    if (typeof component.render === 'function') {
      invariant(false, 'Unable to find node on an unmounted component.');
    } else {
      invariant(false, 'Argument appears to not be a ReactComponent. Keys: %s', Object.keys(component));
    }
  }
  var hostFiber = findCurrentHostFiber(fiber);
  if (hostFiber === null) {
    return null;
  }
  return hostFiber.stateNode;
}

function findHostInstanceWithWarning(component, methodName) {
  {
    var fiber = get(component);
    if (fiber === undefined) {
      if (typeof component.render === 'function') {
        invariant(false, 'Unable to find node on an unmounted component.');
      } else {
        invariant(false, 'Argument appears to not be a ReactComponent. Keys: %s', Object.keys(component));
      }
    }
    var hostFiber = findCurrentHostFiber(fiber);
    if (hostFiber === null) {
      return null;
    }
    if (hostFiber.mode & StrictMode) {
      var componentName = getComponentName(fiber.type) || 'Component';
      if (!didWarnAboutFindNodeInStrictMode[componentName]) {
        didWarnAboutFindNodeInStrictMode[componentName] = true;
        if (fiber.mode & StrictMode) {
          warningWithoutStack$1(false, '%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which is inside StrictMode. ' + 'Instead, add a ref directly to the element you want to reference.' + '\n%s' + '\n\nLearn more about using refs safely here:' + '\nhttps://fb.me/react-strict-mode-find-node', methodName, methodName, componentName, getStackByFiberInDevAndProd(hostFiber));
        } else {
          warningWithoutStack$1(false, '%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which renders StrictMode children. ' + 'Instead, add a ref directly to the element you want to reference.' + '\n%s' + '\n\nLearn more about using refs safely here:' + '\nhttps://fb.me/react-strict-mode-find-node', methodName, methodName, componentName, getStackByFiberInDevAndProd(hostFiber));
        }
      }
    }
    return hostFiber.stateNode;
  }
  return findHostInstance(component);
}

function createContainer(containerInfo, isConcurrent, hydrate) {
  return createFiberRoot(containerInfo, isConcurrent, hydrate);
}

function updateContainer(element, container, parentComponent, callback) {
  var current$$1 = container.current;
  var currentTime = requestCurrentTime();
  var expirationTime = computeExpirationForFiber(currentTime, current$$1);
  return updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, callback);
}

function getPublicRootInstance(container) {
  var containerFiber = container.current;
  if (!containerFiber.child) {
    return null;
  }
  switch (containerFiber.child.tag) {
    case HostComponent:
      return getPublicInstance(containerFiber.child.stateNode);
    default:
      return containerFiber.child.stateNode;
  }
}

function findHostInstanceWithNoPortals(fiber) {
  var hostFiber = findCurrentHostFiberWithNoPortals(fiber);
  if (hostFiber === null) {
    return null;
  }
  return hostFiber.stateNode;
}

function injectIntoDevTools(devToolsConfig) {
  var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance;

  return injectInternals(_assign({}, devToolsConfig, {
    findHostInstanceByFiber: function (fiber) {
      var hostFiber = findCurrentHostFiber(fiber);
      if (hostFiber === null) {
        return null;
      }
      return hostFiber.stateNode;
    },
    findFiberByHostInstance: function (instance) {
      if (!findFiberByHostInstance) {
        // Might not be implemented by the renderer.
        return null;
      }
      return findFiberByHostInstance(instance);
    }
  }));
}

// This file intentionally does *not* have the Flow annotation.
// Don't add it. See `./inline-typed.js` for an explanation.

function createPortal$1(children, containerInfo,
// TODO: figure out the API for cross-renderer implementation.
implementation) {
  var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;

  return {
    // This tag allow us to uniquely identify this as a React Portal
    $$typeof: REACT_PORTAL_TYPE,
    key: key == null ? null : '' + key,
    children: children,
    containerInfo: containerInfo,
    implementation: implementation
  };
}

// TODO: this is special because it gets imported during build.

var ReactVersion = '16.6.1';

// TODO: This type is shared between the reconciler and ReactDOM, but will
// eventually be lifted out to the renderer.
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;

var topLevelUpdateWarnings = void 0;
var warnOnInvalidCallback = void 0;
var didWarnAboutUnstableCreatePortal = false;

{
  if (typeof Map !== 'function' ||
  // $FlowIssue Flow incorrectly thinks Map has no prototype
  Map.prototype == null || typeof Map.prototype.forEach !== 'function' || typeof Set !== 'function' ||
  // $FlowIssue Flow incorrectly thinks Set has no prototype
  Set.prototype == null || typeof Set.prototype.clear !== 'function' || typeof Set.prototype.forEach !== 'function') {
    warningWithoutStack$1(false, 'React depends on Map and Set built-in types. Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
  }

  topLevelUpdateWarnings = function (container) {
    if (container._reactRootContainer && container.nodeType !== COMMENT_NODE) {
      var hostInstance = findHostInstanceWithNoPortals(container._reactRootContainer._internalRoot.current);
      if (hostInstance) {
        !(hostInstance.parentNode === container) ? warningWithoutStack$1(false, 'render(...): It looks like the React-rendered content of this ' + 'container was removed without using React. This is not ' + 'supported and will cause errors. Instead, call ' + 'ReactDOM.unmountComponentAtNode to empty a container.') : void 0;
      }
    }

    var isRootRenderedBySomeReact = !!container._reactRootContainer;
    var rootEl = getReactRootElementInContainer(container);
    var hasNonRootReactChild = !!(rootEl && getInstanceFromNode$1(rootEl));

    !(!hasNonRootReactChild || isRootRenderedBySomeReact) ? warningWithoutStack$1(false, 'render(...): Replacing React-rendered children with a new root ' + 'component. If you intended to update the children of this node, ' + 'you should instead have the existing children update their state ' + 'and render the new components instead of calling ReactDOM.render.') : void 0;

    !(container.nodeType !== ELEMENT_NODE || !container.tagName || container.tagName.toUpperCase() !== 'BODY') ? warningWithoutStack$1(false, 'render(): Rendering components directly into document.body is ' + 'discouraged, since its children are often manipulated by third-party ' + 'scripts and browser extensions. This may lead to subtle ' + 'reconciliation issues. Try rendering into a container element created ' + 'for your app.') : void 0;
  };

  warnOnInvalidCallback = function (callback, callerName) {
    !(callback === null || typeof callback === 'function') ? warningWithoutStack$1(false, '%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback) : void 0;
  };
}

setRestoreImplementation(restoreControlledState$1);

function ReactBatch(root) {
  var expirationTime = computeUniqueAsyncExpiration();
  this._expirationTime = expirationTime;
  this._root = root;
  this._next = null;
  this._callbacks = null;
  this._didComplete = false;
  this._hasChildren = false;
  this._children = null;
  this._defer = true;
}
ReactBatch.prototype.render = function (children) {
  !this._defer ? invariant(false, 'batch.render: Cannot render a batch that already committed.') : void 0;
  this._hasChildren = true;
  this._children = children;
  var internalRoot = this._root._internalRoot;
  var expirationTime = this._expirationTime;
  var work = new ReactWork();
  updateContainerAtExpirationTime(children, internalRoot, null, expirationTime, work._onCommit);
  return work;
};
ReactBatch.prototype.then = function (onComplete) {
  if (this._didComplete) {
    onComplete();
    return;
  }
  var callbacks = this._callbacks;
  if (callbacks === null) {
    callbacks = this._callbacks = [];
  }
  callbacks.push(onComplete);
};
ReactBatch.prototype.commit = function () {
  var internalRoot = this._root._internalRoot;
  var firstBatch = internalRoot.firstBatch;
  !(this._defer && firstBatch !== null) ? invariant(false, 'batch.commit: Cannot commit a batch multiple times.') : void 0;

  if (!this._hasChildren) {
    // This batch is empty. Return.
    this._next = null;
    this._defer = false;
    return;
  }

  var expirationTime = this._expirationTime;

  // Ensure this is the first batch in the list.
  if (firstBatch !== this) {
    // This batch is not the earliest batch. We need to move it to the front.
    // Update its expiration time to be the expiration time of the earliest
    // batch, so that we can flush it without flushing the other batches.
    if (this._hasChildren) {
      expirationTime = this._expirationTime = firstBatch._expirationTime;
      // Rendering this batch again ensures its children will be the final state
      // when we flush (updates are processed in insertion order: last
      // update wins).
      // TODO: This forces a restart. Should we print a warning?
      this.render(this._children);
    }

    // Remove the batch from the list.
    var previous = null;
    var batch = firstBatch;
    while (batch !== this) {
      previous = batch;
      batch = batch._next;
    }
    !(previous !== null) ? invariant(false, 'batch.commit: Cannot commit a batch multiple times.') : void 0;
    previous._next = batch._next;

    // Add it to the front.
    this._next = firstBatch;
    firstBatch = internalRoot.firstBatch = this;
  }

  // Synchronously flush all the work up to this batch's expiration time.
  this._defer = false;
  flushRoot(internalRoot, expirationTime);

  // Pop the batch from the list.
  var next = this._next;
  this._next = null;
  firstBatch = internalRoot.firstBatch = next;

  // Append the next earliest batch's children to the update queue.
  if (firstBatch !== null && firstBatch._hasChildren) {
    firstBatch.render(firstBatch._children);
  }
};
ReactBatch.prototype._onComplete = function () {
  if (this._didComplete) {
    return;
  }
  this._didComplete = true;
  var callbacks = this._callbacks;
  if (callbacks === null) {
    return;
  }
  // TODO: Error handling.
  for (var i = 0; i < callbacks.length; i++) {
    var _callback = callbacks[i];
    _callback();
  }
};

function ReactWork() {
  this._callbacks = null;
  this._didCommit = false;
  // TODO: Avoid need to bind by replacing callbacks in the update queue with
  // list of Work objects.
  this._onCommit = this._onCommit.bind(this);
}
ReactWork.prototype.then = function (onCommit) {
  if (this._didCommit) {
    onCommit();
    return;
  }
  var callbacks = this._callbacks;
  if (callbacks === null) {
    callbacks = this._callbacks = [];
  }
  callbacks.push(onCommit);
};
ReactWork.prototype._onCommit = function () {
  if (this._didCommit) {
    return;
  }
  this._didCommit = true;
  var callbacks = this._callbacks;
  if (callbacks === null) {
    return;
  }
  // TODO: Error handling.
  for (var i = 0; i < callbacks.length; i++) {
    var _callback2 = callbacks[i];
    !(typeof _callback2 === 'function') ? invariant(false, 'Invalid argument passed as callback. Expected a function. Instead received: %s', _callback2) : void 0;
    _callback2();
  }
};

function ReactRoot(container, isConcurrent, hydrate) {
  var root = createContainer(container, isConcurrent, hydrate);
  this._internalRoot = root;
}
ReactRoot.prototype.render = function (children, callback) {
  var root = this._internalRoot;
  var work = new ReactWork();
  callback = callback === undefined ? null : callback;
  {
    warnOnInvalidCallback(callback, 'render');
  }
  if (callback !== null) {
    work.then(callback);
  }
  updateContainer(children, root, null, work._onCommit);
  return work;
};
ReactRoot.prototype.unmount = function (callback) {
  var root = this._internalRoot;
  var work = new ReactWork();
  callback = callback === undefined ? null : callback;
  {
    warnOnInvalidCallback(callback, 'render');
  }
  if (callback !== null) {
    work.then(callback);
  }
  updateContainer(null, root, null, work._onCommit);
  return work;
};
ReactRoot.prototype.legacy_renderSubtreeIntoContainer = function (parentComponent, children, callback) {
  var root = this._internalRoot;
  var work = new ReactWork();
  callback = callback === undefined ? null : callback;
  {
    warnOnInvalidCallback(callback, 'render');
  }
  if (callback !== null) {
    work.then(callback);
  }
  updateContainer(children, root, parentComponent, work._onCommit);
  return work;
};
ReactRoot.prototype.createBatch = function () {
  var batch = new ReactBatch(this);
  var expirationTime = batch._expirationTime;

  var internalRoot = this._internalRoot;
  var firstBatch = internalRoot.firstBatch;
  if (firstBatch === null) {
    internalRoot.firstBatch = batch;
    batch._next = null;
  } else {
    // Insert sorted by expiration time then insertion order
    var insertAfter = null;
    var insertBefore = firstBatch;
    while (insertBefore !== null && insertBefore._expirationTime >= expirationTime) {
      insertAfter = insertBefore;
      insertBefore = insertBefore._next;
    }
    batch._next = insertBefore;
    if (insertAfter !== null) {
      insertAfter._next = batch;
    }
  }

  return batch;
};

/**
 * True if the supplied DOM node is a valid node element.
 *
 * @param {?DOMElement} node The candidate DOM node.
 * @return {boolean} True if the DOM is a valid DOM node.
 * @internal
 */
function isValidContainer(node) {
  return !!(node && (node.nodeType === ELEMENT_NODE || node.nodeType === DOCUMENT_NODE || node.nodeType === DOCUMENT_FRAGMENT_NODE || node.nodeType === COMMENT_NODE && node.nodeValue === ' react-mount-point-unstable '));
}

function getReactRootElementInContainer(container) {
  if (!container) {
    return null;
  }

  if (container.nodeType === DOCUMENT_NODE) {
    return container.documentElement;
  } else {
    return container.firstChild;
  }
}

function shouldHydrateDueToLegacyHeuristic(container) {
  var rootElement = getReactRootElementInContainer(container);
  return !!(rootElement && rootElement.nodeType === ELEMENT_NODE && rootElement.hasAttribute(ROOT_ATTRIBUTE_NAME));
}

setBatchingImplementation(batchedUpdates$1, interactiveUpdates$1, flushInteractiveUpdates$1);

var warnedAboutHydrateAPI = false;

function legacyCreateRootFromDOMContainer(container, forceHydrate) {
  var shouldHydrate = forceHydrate || shouldHydrateDueToLegacyHeuristic(container);
  // First clear any existing content.
  if (!shouldHydrate) {
    var warned = false;
    var rootSibling = void 0;
    while (rootSibling = container.lastChild) {
      {
        if (!warned && rootSibling.nodeType === ELEMENT_NODE && rootSibling.hasAttribute(ROOT_ATTRIBUTE_NAME)) {
          warned = true;
          warningWithoutStack$1(false, 'render(): Target node has markup rendered by React, but there ' + 'are unrelated nodes as well. This is most commonly caused by ' + 'white-space inserted around server-rendered markup.');
        }
      }
      container.removeChild(rootSibling);
    }
  }
  {
    if (shouldHydrate && !forceHydrate && !warnedAboutHydrateAPI) {
      warnedAboutHydrateAPI = true;
      lowPriorityWarning$1(false, 'render(): Calling ReactDOM.render() to hydrate server-rendered markup ' + 'will stop working in React v17. Replace the ReactDOM.render() call ' + 'with ReactDOM.hydrate() if you want React to attach to the server HTML.');
    }
  }
  // Legacy roots are not async by default.
  var isConcurrent = false;
  return new ReactRoot(container, isConcurrent, shouldHydrate);
}

function legacyRenderSubtreeIntoContainer(parentComponent, children, container, forceHydrate, callback) {
  // TODO: Ensure all entry points contain this check
  !isValidContainer(container) ? invariant(false, 'Target container is not a DOM element.') : void 0;

  {
    topLevelUpdateWarnings(container);
  }

  // TODO: Without `any` type, Flow says "Property cannot be accessed on any
  // member of intersection type." Whyyyyyy.
  var root = container._reactRootContainer;
  if (!root) {
    // Initial mount
    root = container._reactRootContainer = legacyCreateRootFromDOMContainer(container, forceHydrate);
    if (typeof callback === 'function') {
      var originalCallback = callback;
      callback = function () {
        var instance = getPublicRootInstance(root._internalRoot);
        originalCallback.call(instance);
      };
    }
    // Initial mount should not be batched.
    unbatchedUpdates(function () {
      if (parentComponent != null) {
        root.legacy_renderSubtreeIntoContainer(parentComponent, children, callback);
      } else {
        root.render(children, callback);
      }
    });
  } else {
    if (typeof callback === 'function') {
      var _originalCallback = callback;
      callback = function () {
        var instance = getPublicRootInstance(root._internalRoot);
        _originalCallback.call(instance);
      };
    }
    // Update
    if (parentComponent != null) {
      root.legacy_renderSubtreeIntoContainer(parentComponent, children, callback);
    } else {
      root.render(children, callback);
    }
  }
  return getPublicRootInstance(root._internalRoot);
}

function createPortal(children, container) {
  var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;

  !isValidContainer(container) ? invariant(false, 'Target container is not a DOM element.') : void 0;
  // TODO: pass ReactDOM portal implementation as third argument
  return createPortal$1(children, container, null, key);
}

var ReactDOM = {
  createPortal: createPortal,

  findDOMNode: function (componentOrElement) {
    {
      var owner = ReactCurrentOwner.current;
      if (owner !== null && owner.stateNode !== null) {
        var warnedAboutRefsInRender = owner.stateNode._warnedAboutRefsInRender;
        !warnedAboutRefsInRender ? warningWithoutStack$1(false, '%s is accessing findDOMNode inside its render(). ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName(owner.type) || 'A component') : void 0;
        owner.stateNode._warnedAboutRefsInRender = true;
      }
    }
    if (componentOrElement == null) {
      return null;
    }
    if (componentOrElement.nodeType === ELEMENT_NODE) {
      return componentOrElement;
    }
    {
      return findHostInstanceWithWarning(componentOrElement, 'findDOMNode');
    }
    return findHostInstance(componentOrElement);
  },
  hydrate: function (element, container, callback) {
    // TODO: throw or warn if we couldn't hydrate?
    return legacyRenderSubtreeIntoContainer(null, element, container, true, callback);
  },
  render: function (element, container, callback) {
    return legacyRenderSubtreeIntoContainer(null, element, container, false, callback);
  },
  unstable_renderSubtreeIntoContainer: function (parentComponent, element, containerNode, callback) {
    !(parentComponent != null && has(parentComponent)) ? invariant(false, 'parentComponent must be a valid React Component') : void 0;
    return legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, false, callback);
  },
  unmountComponentAtNode: function (container) {
    !isValidContainer(container) ? invariant(false, 'unmountComponentAtNode(...): Target container is not a DOM element.') : void 0;

    if (container._reactRootContainer) {
      {
        var rootEl = getReactRootElementInContainer(container);
        var renderedByDifferentReact = rootEl && !getInstanceFromNode$1(rootEl);
        !!renderedByDifferentReact ? warningWithoutStack$1(false, "unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by another copy of React.') : void 0;
      }

      // Unmount should not be batched.
      unbatchedUpdates(function () {
        legacyRenderSubtreeIntoContainer(null, null, container, false, function () {
          container._reactRootContainer = null;
        });
      });
      // If you call unmountComponentAtNode twice in quick succession, you'll
      // get `true` twice. That's probably fine?
      return true;
    } else {
      {
        var _rootEl = getReactRootElementInContainer(container);
        var hasNonRootReactChild = !!(_rootEl && getInstanceFromNode$1(_rootEl));

        // Check if the container itself is a React root node.
        var isContainerReactRoot = container.nodeType === ELEMENT_NODE && isValidContainer(container.parentNode) && !!container.parentNode._reactRootContainer;

        !!hasNonRootReactChild ? warningWithoutStack$1(false, "unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by React and is not a top-level container. %s', isContainerReactRoot ? 'You may have accidentally passed in a React root node instead ' + 'of its container.' : 'Instead, have the parent component update its state and ' + 'rerender in order to remove this component.') : void 0;
      }

      return false;
    }
  },


  // Temporary alias since we already shipped React 16 RC with it.
  // TODO: remove in React 17.
  unstable_createPortal: function () {
    if (!didWarnAboutUnstableCreatePortal) {
      didWarnAboutUnstableCreatePortal = true;
      lowPriorityWarning$1(false, 'The ReactDOM.unstable_createPortal() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactDOM.createPortal() instead. It has the exact same API, ' + 'but without the "unstable_" prefix.');
    }
    return createPortal.apply(undefined, arguments);
  },


  unstable_batchedUpdates: batchedUpdates$1,

  unstable_interactiveUpdates: interactiveUpdates$1,

  flushSync: flushSync,

  unstable_flushControlled: flushControlled,

  __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
    // Keep in sync with ReactDOMUnstableNativeDependencies.js
    // and ReactTestUtils.js. This is an array for better minification.
    Events: [getInstanceFromNode$1, getNodeFromInstance$1, getFiberCurrentPropsFromNode$1, injection.injectEventPluginsByName, eventNameDispatchConfigs, accumulateTwoPhaseDispatches, accumulateDirectDispatches, enqueueStateRestore, restoreStateIfNeeded, dispatchEvent, runEventsInBatch]
  }
};

function createRoot(container, options) {
  var functionName = enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot';
  !isValidContainer(container) ? invariant(false, '%s(...): Target container is not a DOM element.', functionName) : void 0;
  var hydrate = options != null && options.hydrate === true;
  return new ReactRoot(container, true, hydrate);
}

if (enableStableConcurrentModeAPIs) {
  ReactDOM.createRoot = createRoot;
} else {
  ReactDOM.unstable_createRoot = createRoot;
}

var foundDevTools = injectIntoDevTools({
  findFiberByHostInstance: getClosestInstanceFromNode,
  bundleType: 1,
  version: ReactVersion,
  rendererPackageName: 'react-dom'
});

{
  if (!foundDevTools && canUseDOM && window.top === window.self) {
    // If we're in Chrome or Firefox, provide a download link if not installed.
    if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) {
      var protocol = window.location.protocol;
      // Don't warn in exotic cases like chrome-extension://.
      if (/^(https?|file):$/.test(protocol)) {
        console.info('%cDownload the React DevTools ' + 'for a better development experience: ' + 'https://fb.me/react-devtools' + (protocol === 'file:' ? '\nYou might need to use a local HTTP server (instead of file://): ' + 'https://fb.me/react-devtools-faq' : ''), 'font-weight:bold');
      }
    }
  }
}



var ReactDOM$2 = Object.freeze({
	default: ReactDOM
});

var ReactDOM$3 = ( ReactDOM$2 && ReactDOM ) || ReactDOM$2;

// TODO: decide on the top-level export form.
// This is hacky but makes it work with both Rollup and Jest.
var reactDom = ReactDOM$3.default || ReactDOM$3;

module.exports = reactDom;
  })();
}


/***/ }),

/***/ "./node_modules/react-dom/index.js":
/*!*****************************************!*\
  !*** ./node_modules/react-dom/index.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


function checkDCE() {
  /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
  if (
    typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
    typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
  ) {
    return;
  }
  if (true) {
    // This branch is unreachable because this function is only called
    // in production, but the condition is true only in development.
    // Therefore if the branch is still here, dead code elimination wasn't
    // properly applied.
    // Don't change the message. React DevTools relies on it. Also make sure
    // this message doesn't occur elsewhere in this function, or it will cause
    // a false positive.
    throw new Error('^_^');
  }
  try {
    // Verify that the code above has been dead code eliminated (DCE'd).
    __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
  } catch (err) {
    // DevTools shouldn't crash React, no matter what.
    // We should still report in case we break this code.
    console.error(err);
  }
}

if (false) {} else {
  module.exports = __webpack_require__(/*! ./cjs/react-dom.development.js */ "./node_modules/react-dom/cjs/react-dom.development.js");
}


/***/ }),

/***/ "./node_modules/react-fontawesome/lib/index.js":
/*!*****************************************************!*\
  !*** ./node_modules/react-fontawesome/lib/index.js ***!
  \*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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; };

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 = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _screenReaderStyles = __webpack_require__(/*! ./screen-reader-styles */ "./node_modules/react-fontawesome/lib/screen-reader-styles.js");

var _screenReaderStyles2 = _interopRequireDefault(_screenReaderStyles);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

/**
 * A React component for the font-awesome icon library.
 *
 * @param {String} [ariaLabel] An extra accessibility label to put on the icon
 * @param {Boolean} [border=false] Whether or not to show a border radius
 * @param {String} [className] An extra set of CSS classes to add to the component
 * @param {Object} [cssModule] Option to pass FontAwesome CSS as a module
 * @param {Boolean} [fixedWidth=false] Make buttons fixed width
 * @param {String} [flip=false] Flip the icon's orientation.
 * @param {Boolean} [inverse=false]Inverse the icon's color
 * @param {String} name Name of the icon to use
 * @param {Boolean} [pulse=false] Rotate icon with 8 steps, rather than smoothly
 * @param {Number} [rotate] The degress to rotate the icon by
 * @param {String} [size] The icon scaling size
 * @param {Boolean} [spin=false] Spin the icon
 * @param {String} [stack] Stack an icon on top of another
 * @param {String} [tag=span] The HTML tag to use as a string, eg 'i' or 'em'
 * @module FontAwesome
 * @type {ReactClass}
 */
var FontAwesome = function (_React$Component) {
  _inherits(FontAwesome, _React$Component);

  function FontAwesome() {
    _classCallCheck(this, FontAwesome);

    var _this = _possibleConstructorReturn(this, (FontAwesome.__proto__ || Object.getPrototypeOf(FontAwesome)).call(this));

    _this.displayName = 'FontAwesome';
    return _this;
  }

  _createClass(FontAwesome, [{
    key: 'render',
    value: function render() {
      var _props = this.props,
          border = _props.border,
          cssModule = _props.cssModule,
          className = _props.className,
          fixedWidth = _props.fixedWidth,
          flip = _props.flip,
          inverse = _props.inverse,
          name = _props.name,
          pulse = _props.pulse,
          rotate = _props.rotate,
          size = _props.size,
          spin = _props.spin,
          stack = _props.stack,
          _props$tag = _props.tag,
          tag = _props$tag === undefined ? 'span' : _props$tag,
          ariaLabel = _props.ariaLabel,
          props = _objectWithoutProperties(_props, ['border', 'cssModule', 'className', 'fixedWidth', 'flip', 'inverse', 'name', 'pulse', 'rotate', 'size', 'spin', 'stack', 'tag', 'ariaLabel']);

      var classNames = [];

      if (cssModule) {
        classNames.push(cssModule['fa']);
        classNames.push(cssModule['fa-' + name]);
        size && classNames.push(cssModule['fa-' + size]);
        spin && classNames.push(cssModule['fa-spin']);
        pulse && classNames.push(cssModule['fa-pulse']);
        border && classNames.push(cssModule['fa-border']);
        fixedWidth && classNames.push(cssModule['fa-fw']);
        inverse && classNames.push(cssModule['fa-inverse']);
        flip && classNames.push(cssModule['fa-flip-' + flip]);
        rotate && classNames.push(cssModule['fa-rotate-' + rotate]);
        stack && classNames.push(cssModule['fa-stack-' + stack]);
      } else {
        classNames.push('fa');
        classNames.push('fa-' + name);
        size && classNames.push('fa-' + size);
        spin && classNames.push('fa-spin');
        pulse && classNames.push('fa-pulse');
        border && classNames.push('fa-border');
        fixedWidth && classNames.push('fa-fw');
        inverse && classNames.push('fa-inverse');
        flip && classNames.push('fa-flip-' + flip);
        rotate && classNames.push('fa-rotate-' + rotate);
        stack && classNames.push('fa-stack-' + stack);
      }

      // Add any custom class names at the end.
      className && classNames.push(className);
      return _react2.default.createElement(tag, _extends({}, props, { 'aria-hidden': true, className: classNames.join(' ') }), ariaLabel ? _react2.default.createElement('span', { style: _screenReaderStyles2.default }, ariaLabel) : null);
    }
  }]);

  return FontAwesome;
}(_react2.default.Component);

FontAwesome.propTypes = {
  ariaLabel: _propTypes2.default.string,
  border: _propTypes2.default.bool,
  className: _propTypes2.default.string,
  cssModule: _propTypes2.default.object,
  fixedWidth: _propTypes2.default.bool,
  flip: _propTypes2.default.oneOf(['horizontal', 'vertical']),
  inverse: _propTypes2.default.bool,
  name: _propTypes2.default.string.isRequired,
  pulse: _propTypes2.default.bool,
  rotate: _propTypes2.default.oneOf([90, 180, 270]),
  size: _propTypes2.default.oneOf(['lg', '2x', '3x', '4x', '5x']),
  spin: _propTypes2.default.bool,
  stack: _propTypes2.default.oneOf(['1x', '2x']),
  tag: _propTypes2.default.string
};

exports.default = FontAwesome;
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/react-fontawesome/lib/screen-reader-styles.js":
/*!********************************************************************!*\
  !*** ./node_modules/react-fontawesome/lib/screen-reader-styles.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = {
  position: 'absolute',
  width: '1px',
  height: '1px',
  padding: '0px',
  margin: '-1px',
  overflow: 'hidden',
  clip: 'rect(0px, 0px, 0px, 0px)',
  border: '0px'
};
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/react-is/cjs/react-is.development.js":
/*!***********************************************************!*\
  !*** ./node_modules/react-is/cjs/react-is.development.js ***!
  \***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/** @license React v16.6.1
 * react-is.development.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */





if (true) {
  (function() {
'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
// nor polyfill, then a plain number is used for performance.
var hasSymbol = typeof Symbol === 'function' && Symbol.for;

var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;

function isValidElementType(type) {
  return typeof type === 'string' || typeof type === 'function' ||
  // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
  type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE);
}

/**
 * Forked from fbjs/warning:
 * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
 *
 * Only change is we use console.warn instead of console.error,
 * and do nothing when 'console' is not supported.
 * This really simplifies the code.
 * ---
 * Similar to invariant but only logs a warning if the condition is not met.
 * This can be used to log issues in development environments in critical
 * paths. Removing the logging code for production environments will keep the
 * same logic and follow the same code paths.
 */

var lowPriorityWarning = function () {};

{
  var printWarning = function (format) {
    for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
      args[_key - 1] = arguments[_key];
    }

    var argIndex = 0;
    var message = 'Warning: ' + format.replace(/%s/g, function () {
      return args[argIndex++];
    });
    if (typeof console !== 'undefined') {
      console.warn(message);
    }
    try {
      // --- Welcome to debugging React ---
      // This error was thrown as a convenience so that you can use this stack
      // to find the callsite that caused this warning to fire.
      throw new Error(message);
    } catch (x) {}
  };

  lowPriorityWarning = function (condition, format) {
    if (format === undefined) {
      throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
    }
    if (!condition) {
      for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
        args[_key2 - 2] = arguments[_key2];
      }

      printWarning.apply(undefined, [format].concat(args));
    }
  };
}

var lowPriorityWarning$1 = lowPriorityWarning;

function typeOf(object) {
  if (typeof object === 'object' && object !== null) {
    var $$typeof = object.$$typeof;

    switch ($$typeof) {
      case REACT_ELEMENT_TYPE:
        var type = object.type;

        switch (type) {
          case REACT_ASYNC_MODE_TYPE:
          case REACT_CONCURRENT_MODE_TYPE:
          case REACT_FRAGMENT_TYPE:
          case REACT_PROFILER_TYPE:
          case REACT_STRICT_MODE_TYPE:
            return type;
          default:
            var $$typeofType = type && type.$$typeof;

            switch ($$typeofType) {
              case REACT_CONTEXT_TYPE:
              case REACT_FORWARD_REF_TYPE:
              case REACT_PROVIDER_TYPE:
                return $$typeofType;
              default:
                return $$typeof;
            }
        }
      case REACT_PORTAL_TYPE:
        return $$typeof;
    }
  }

  return undefined;
}

// AsyncMode is deprecated along with isAsyncMode
var AsyncMode = REACT_ASYNC_MODE_TYPE;
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
var ContextConsumer = REACT_CONTEXT_TYPE;
var ContextProvider = REACT_PROVIDER_TYPE;
var Element = REACT_ELEMENT_TYPE;
var ForwardRef = REACT_FORWARD_REF_TYPE;
var Fragment = REACT_FRAGMENT_TYPE;
var Profiler = REACT_PROFILER_TYPE;
var Portal = REACT_PORTAL_TYPE;
var StrictMode = REACT_STRICT_MODE_TYPE;

var hasWarnedAboutDeprecatedIsAsyncMode = false;

// AsyncMode should be deprecated
function isAsyncMode(object) {
  {
    if (!hasWarnedAboutDeprecatedIsAsyncMode) {
      hasWarnedAboutDeprecatedIsAsyncMode = true;
      lowPriorityWarning$1(false, 'The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
    }
  }
  return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
}
function isConcurrentMode(object) {
  return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
}
function isContextConsumer(object) {
  return typeOf(object) === REACT_CONTEXT_TYPE;
}
function isContextProvider(object) {
  return typeOf(object) === REACT_PROVIDER_TYPE;
}
function isElement(object) {
  return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
}
function isForwardRef(object) {
  return typeOf(object) === REACT_FORWARD_REF_TYPE;
}
function isFragment(object) {
  return typeOf(object) === REACT_FRAGMENT_TYPE;
}
function isProfiler(object) {
  return typeOf(object) === REACT_PROFILER_TYPE;
}
function isPortal(object) {
  return typeOf(object) === REACT_PORTAL_TYPE;
}
function isStrictMode(object) {
  return typeOf(object) === REACT_STRICT_MODE_TYPE;
}

exports.typeOf = typeOf;
exports.AsyncMode = AsyncMode;
exports.ConcurrentMode = ConcurrentMode;
exports.ContextConsumer = ContextConsumer;
exports.ContextProvider = ContextProvider;
exports.Element = Element;
exports.ForwardRef = ForwardRef;
exports.Fragment = Fragment;
exports.Profiler = Profiler;
exports.Portal = Portal;
exports.StrictMode = StrictMode;
exports.isValidElementType = isValidElementType;
exports.isAsyncMode = isAsyncMode;
exports.isConcurrentMode = isConcurrentMode;
exports.isContextConsumer = isContextConsumer;
exports.isContextProvider = isContextProvider;
exports.isElement = isElement;
exports.isForwardRef = isForwardRef;
exports.isFragment = isFragment;
exports.isProfiler = isProfiler;
exports.isPortal = isPortal;
exports.isStrictMode = isStrictMode;
  })();
}


/***/ }),

/***/ "./node_modules/react-is/index.js":
/*!****************************************!*\
  !*** ./node_modules/react-is/index.js ***!
  \****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


if (false) {} else {
  module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "./node_modules/react-is/cjs/react-is.development.js");
}


/***/ }),

/***/ "./node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js":
/*!****************************************************************************!*\
  !*** ./node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js ***!
  \****************************************************************************/
/*! exports provided: polyfill */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyfill", function() { return polyfill; });
/**
 * Copyright (c) 2013-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

function componentWillMount() {
  // Call this.constructor.gDSFP to support sub-classes.
  var state = this.constructor.getDerivedStateFromProps(this.props, this.state);
  if (state !== null && state !== undefined) {
    this.setState(state);
  }
}

function componentWillReceiveProps(nextProps) {
  // Call this.constructor.gDSFP to support sub-classes.
  // Use the setState() updater to ensure state isn't stale in certain edge cases.
  function updater(prevState) {
    var state = this.constructor.getDerivedStateFromProps(nextProps, prevState);
    return state !== null && state !== undefined ? state : null;
  }
  // Binding "this" is important for shallow renderer support.
  this.setState(updater.bind(this));
}

function componentWillUpdate(nextProps, nextState) {
  try {
    var prevProps = this.props;
    var prevState = this.state;
    this.props = nextProps;
    this.state = nextState;
    this.__reactInternalSnapshotFlag = true;
    this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(
      prevProps,
      prevState
    );
  } finally {
    this.props = prevProps;
    this.state = prevState;
  }
}

// React may warn about cWM/cWRP/cWU methods being deprecated.
// Add a flag to suppress these warnings for this special case.
componentWillMount.__suppressDeprecationWarning = true;
componentWillReceiveProps.__suppressDeprecationWarning = true;
componentWillUpdate.__suppressDeprecationWarning = true;

function polyfill(Component) {
  var prototype = Component.prototype;

  if (!prototype || !prototype.isReactComponent) {
    throw new Error('Can only polyfill class components');
  }

  if (
    typeof Component.getDerivedStateFromProps !== 'function' &&
    typeof prototype.getSnapshotBeforeUpdate !== 'function'
  ) {
    return Component;
  }

  // If new component APIs are defined, "unsafe" lifecycles won't be called.
  // Error if any of these lifecycles are present,
  // Because they would work differently between older and newer (16.3+) versions of React.
  var foundWillMountName = null;
  var foundWillReceivePropsName = null;
  var foundWillUpdateName = null;
  if (typeof prototype.componentWillMount === 'function') {
    foundWillMountName = 'componentWillMount';
  } else if (typeof prototype.UNSAFE_componentWillMount === 'function') {
    foundWillMountName = 'UNSAFE_componentWillMount';
  }
  if (typeof prototype.componentWillReceiveProps === 'function') {
    foundWillReceivePropsName = 'componentWillReceiveProps';
  } else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') {
    foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';
  }
  if (typeof prototype.componentWillUpdate === 'function') {
    foundWillUpdateName = 'componentWillUpdate';
  } else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') {
    foundWillUpdateName = 'UNSAFE_componentWillUpdate';
  }
  if (
    foundWillMountName !== null ||
    foundWillReceivePropsName !== null ||
    foundWillUpdateName !== null
  ) {
    var componentName = Component.displayName || Component.name;
    var newApiName =
      typeof Component.getDerivedStateFromProps === 'function'
        ? 'getDerivedStateFromProps()'
        : 'getSnapshotBeforeUpdate()';

    throw Error(
      'Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' +
        componentName +
        ' uses ' +
        newApiName +
        ' but also contains the following legacy lifecycles:' +
        (foundWillMountName !== null ? '\n  ' + foundWillMountName : '') +
        (foundWillReceivePropsName !== null
          ? '\n  ' + foundWillReceivePropsName
          : '') +
        (foundWillUpdateName !== null ? '\n  ' + foundWillUpdateName : '') +
        '\n\nThe above lifecycles should be removed. Learn more about this warning here:\n' +
        'https://fb.me/react-async-component-lifecycle-hooks'
    );
  }

  // React <= 16.2 does not support static getDerivedStateFromProps.
  // As a workaround, use cWM and cWRP to invoke the new static lifecycle.
  // Newer versions of React will ignore these lifecycles if gDSFP exists.
  if (typeof Component.getDerivedStateFromProps === 'function') {
    prototype.componentWillMount = componentWillMount;
    prototype.componentWillReceiveProps = componentWillReceiveProps;
  }

  // React <= 16.2 does not support getSnapshotBeforeUpdate.
  // As a workaround, use cWU to invoke the new lifecycle.
  // Newer versions of React will ignore that lifecycle if gSBU exists.
  if (typeof prototype.getSnapshotBeforeUpdate === 'function') {
    if (typeof prototype.componentDidUpdate !== 'function') {
      throw new Error(
        'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype'
      );
    }

    prototype.componentWillUpdate = componentWillUpdate;

    var componentDidUpdate = prototype.componentDidUpdate;

    prototype.componentDidUpdate = function componentDidUpdatePolyfill(
      prevProps,
      prevState,
      maybeSnapshot
    ) {
      // 16.3+ will not execute our will-update method;
      // It will pass a snapshot value to did-update though.
      // Older versions will require our polyfilled will-update value.
      // We need to handle both cases, but can't just check for the presence of "maybeSnapshot",
      // Because for <= 15.x versions this might be a "prevContext" object.
      // We also can't just check "__reactInternalSnapshot",
      // Because get-snapshot might return a falsy value.
      // So check for the explicit __reactInternalSnapshotFlag flag to determine behavior.
      var snapshot = this.__reactInternalSnapshotFlag
        ? this.__reactInternalSnapshot
        : maybeSnapshot;

      componentDidUpdate.call(this, prevProps, prevState, snapshot);
    };
  }

  return Component;
}




/***/ }),

/***/ "./node_modules/react-motion/lib/Motion.js":
/*!*************************************************!*\
  !*** ./node_modules/react-motion/lib/Motion.js ***!
  \*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

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; };

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; }; })();

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }

function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

var _mapToZero = __webpack_require__(/*! ./mapToZero */ "./node_modules/react-motion/lib/mapToZero.js");

var _mapToZero2 = _interopRequireDefault(_mapToZero);

var _stripStyle = __webpack_require__(/*! ./stripStyle */ "./node_modules/react-motion/lib/stripStyle.js");

var _stripStyle2 = _interopRequireDefault(_stripStyle);

var _stepper3 = __webpack_require__(/*! ./stepper */ "./node_modules/react-motion/lib/stepper.js");

var _stepper4 = _interopRequireDefault(_stepper3);

var _performanceNow = __webpack_require__(/*! performance-now */ "./node_modules/performance-now/lib/performance-now.js");

var _performanceNow2 = _interopRequireDefault(_performanceNow);

var _raf = __webpack_require__(/*! raf */ "./node_modules/raf/index.js");

var _raf2 = _interopRequireDefault(_raf);

var _shouldStopAnimation = __webpack_require__(/*! ./shouldStopAnimation */ "./node_modules/react-motion/lib/shouldStopAnimation.js");

var _shouldStopAnimation2 = _interopRequireDefault(_shouldStopAnimation);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var msPerFrame = 1000 / 60;

var Motion = (function (_React$Component) {
  _inherits(Motion, _React$Component);

  _createClass(Motion, null, [{
    key: 'propTypes',
    value: {
      // TOOD: warn against putting a config in here
      defaultStyle: _propTypes2['default'].objectOf(_propTypes2['default'].number),
      style: _propTypes2['default'].objectOf(_propTypes2['default'].oneOfType([_propTypes2['default'].number, _propTypes2['default'].object])).isRequired,
      children: _propTypes2['default'].func.isRequired,
      onRest: _propTypes2['default'].func
    },
    enumerable: true
  }]);

  function Motion(props) {
    var _this = this;

    _classCallCheck(this, Motion);

    _React$Component.call(this, props);
    this.wasAnimating = false;
    this.animationID = null;
    this.prevTime = 0;
    this.accumulatedTime = 0;
    this.unreadPropStyle = null;

    this.clearUnreadPropStyle = function (destStyle) {
      var dirty = false;
      var _state = _this.state;
      var currentStyle = _state.currentStyle;
      var currentVelocity = _state.currentVelocity;
      var lastIdealStyle = _state.lastIdealStyle;
      var lastIdealVelocity = _state.lastIdealVelocity;

      for (var key in destStyle) {
        if (!Object.prototype.hasOwnProperty.call(destStyle, key)) {
          continue;
        }

        var styleValue = destStyle[key];
        if (typeof styleValue === 'number') {
          if (!dirty) {
            dirty = true;
            currentStyle = _extends({}, currentStyle);
            currentVelocity = _extends({}, currentVelocity);
            lastIdealStyle = _extends({}, lastIdealStyle);
            lastIdealVelocity = _extends({}, lastIdealVelocity);
          }

          currentStyle[key] = styleValue;
          currentVelocity[key] = 0;
          lastIdealStyle[key] = styleValue;
          lastIdealVelocity[key] = 0;
        }
      }

      if (dirty) {
        _this.setState({ currentStyle: currentStyle, currentVelocity: currentVelocity, lastIdealStyle: lastIdealStyle, lastIdealVelocity: lastIdealVelocity });
      }
    };

    this.startAnimationIfNecessary = function () {
      // TODO: when config is {a: 10} and dest is {a: 10} do we raf once and
      // call cb? No, otherwise accidental parent rerender causes cb trigger
      _this.animationID = _raf2['default'](function (timestamp) {
        // check if we need to animate in the first place
        var propsStyle = _this.props.style;
        if (_shouldStopAnimation2['default'](_this.state.currentStyle, propsStyle, _this.state.currentVelocity)) {
          if (_this.wasAnimating && _this.props.onRest) {
            _this.props.onRest();
          }

          // no need to cancel animationID here; shouldn't have any in flight
          _this.animationID = null;
          _this.wasAnimating = false;
          _this.accumulatedTime = 0;
          return;
        }

        _this.wasAnimating = true;

        var currentTime = timestamp || _performanceNow2['default']();
        var timeDelta = currentTime - _this.prevTime;
        _this.prevTime = currentTime;
        _this.accumulatedTime = _this.accumulatedTime + timeDelta;
        // more than 10 frames? prolly switched browser tab. Restart
        if (_this.accumulatedTime > msPerFrame * 10) {
          _this.accumulatedTime = 0;
        }

        if (_this.accumulatedTime === 0) {
          // no need to cancel animationID here; shouldn't have any in flight
          _this.animationID = null;
          _this.startAnimationIfNecessary();
          return;
        }

        var currentFrameCompletion = (_this.accumulatedTime - Math.floor(_this.accumulatedTime / msPerFrame) * msPerFrame) / msPerFrame;
        var framesToCatchUp = Math.floor(_this.accumulatedTime / msPerFrame);

        var newLastIdealStyle = {};
        var newLastIdealVelocity = {};
        var newCurrentStyle = {};
        var newCurrentVelocity = {};

        for (var key in propsStyle) {
          if (!Object.prototype.hasOwnProperty.call(propsStyle, key)) {
            continue;
          }

          var styleValue = propsStyle[key];
          if (typeof styleValue === 'number') {
            newCurrentStyle[key] = styleValue;
            newCurrentVelocity[key] = 0;
            newLastIdealStyle[key] = styleValue;
            newLastIdealVelocity[key] = 0;
          } else {
            var newLastIdealStyleValue = _this.state.lastIdealStyle[key];
            var newLastIdealVelocityValue = _this.state.lastIdealVelocity[key];
            for (var i = 0; i < framesToCatchUp; i++) {
              var _stepper = _stepper4['default'](msPerFrame / 1000, newLastIdealStyleValue, newLastIdealVelocityValue, styleValue.val, styleValue.stiffness, styleValue.damping, styleValue.precision);

              newLastIdealStyleValue = _stepper[0];
              newLastIdealVelocityValue = _stepper[1];
            }

            var _stepper2 = _stepper4['default'](msPerFrame / 1000, newLastIdealStyleValue, newLastIdealVelocityValue, styleValue.val, styleValue.stiffness, styleValue.damping, styleValue.precision);

            var nextIdealX = _stepper2[0];
            var nextIdealV = _stepper2[1];

            newCurrentStyle[key] = newLastIdealStyleValue + (nextIdealX - newLastIdealStyleValue) * currentFrameCompletion;
            newCurrentVelocity[key] = newLastIdealVelocityValue + (nextIdealV - newLastIdealVelocityValue) * currentFrameCompletion;
            newLastIdealStyle[key] = newLastIdealStyleValue;
            newLastIdealVelocity[key] = newLastIdealVelocityValue;
          }
        }

        _this.animationID = null;
        // the amount we're looped over above
        _this.accumulatedTime -= framesToCatchUp * msPerFrame;

        _this.setState({
          currentStyle: newCurrentStyle,
          currentVelocity: newCurrentVelocity,
          lastIdealStyle: newLastIdealStyle,
          lastIdealVelocity: newLastIdealVelocity
        });

        _this.unreadPropStyle = null;

        _this.startAnimationIfNecessary();
      });
    };

    this.state = this.defaultState();
  }

  Motion.prototype.defaultState = function defaultState() {
    var _props = this.props;
    var defaultStyle = _props.defaultStyle;
    var style = _props.style;

    var currentStyle = defaultStyle || _stripStyle2['default'](style);
    var currentVelocity = _mapToZero2['default'](currentStyle);
    return {
      currentStyle: currentStyle,
      currentVelocity: currentVelocity,
      lastIdealStyle: currentStyle,
      lastIdealVelocity: currentVelocity
    };
  };

  // it's possible that currentStyle's value is stale: if props is immediately
  // changed from 0 to 400 to spring(0) again, the async currentStyle is still
  // at 0 (didn't have time to tick and interpolate even once). If we naively
  // compare currentStyle with destVal it'll be 0 === 0 (no animation, stop).
  // In reality currentStyle should be 400

  Motion.prototype.componentDidMount = function componentDidMount() {
    this.prevTime = _performanceNow2['default']();
    this.startAnimationIfNecessary();
  };

  Motion.prototype.componentWillReceiveProps = function componentWillReceiveProps(props) {
    if (this.unreadPropStyle != null) {
      // previous props haven't had the chance to be set yet; set them here
      this.clearUnreadPropStyle(this.unreadPropStyle);
    }

    this.unreadPropStyle = props.style;
    if (this.animationID == null) {
      this.prevTime = _performanceNow2['default']();
      this.startAnimationIfNecessary();
    }
  };

  Motion.prototype.componentWillUnmount = function componentWillUnmount() {
    if (this.animationID != null) {
      _raf2['default'].cancel(this.animationID);
      this.animationID = null;
    }
  };

  Motion.prototype.render = function render() {
    var renderedChildren = this.props.children(this.state.currentStyle);
    return renderedChildren && _react2['default'].Children.only(renderedChildren);
  };

  return Motion;
})(_react2['default'].Component);

exports['default'] = Motion;
module.exports = exports['default'];

// after checking for unreadPropStyle != null, we manually go set the
// non-interpolating values (those that are a number, without a spring
// config)

/***/ }),

/***/ "./node_modules/react-motion/lib/StaggeredMotion.js":
/*!**********************************************************!*\
  !*** ./node_modules/react-motion/lib/StaggeredMotion.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

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; };

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; }; })();

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }

function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

var _mapToZero = __webpack_require__(/*! ./mapToZero */ "./node_modules/react-motion/lib/mapToZero.js");

var _mapToZero2 = _interopRequireDefault(_mapToZero);

var _stripStyle = __webpack_require__(/*! ./stripStyle */ "./node_modules/react-motion/lib/stripStyle.js");

var _stripStyle2 = _interopRequireDefault(_stripStyle);

var _stepper3 = __webpack_require__(/*! ./stepper */ "./node_modules/react-motion/lib/stepper.js");

var _stepper4 = _interopRequireDefault(_stepper3);

var _performanceNow = __webpack_require__(/*! performance-now */ "./node_modules/performance-now/lib/performance-now.js");

var _performanceNow2 = _interopRequireDefault(_performanceNow);

var _raf = __webpack_require__(/*! raf */ "./node_modules/raf/index.js");

var _raf2 = _interopRequireDefault(_raf);

var _shouldStopAnimation = __webpack_require__(/*! ./shouldStopAnimation */ "./node_modules/react-motion/lib/shouldStopAnimation.js");

var _shouldStopAnimation2 = _interopRequireDefault(_shouldStopAnimation);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var msPerFrame = 1000 / 60;

function shouldStopAnimationAll(currentStyles, styles, currentVelocities) {
  for (var i = 0; i < currentStyles.length; i++) {
    if (!_shouldStopAnimation2['default'](currentStyles[i], styles[i], currentVelocities[i])) {
      return false;
    }
  }
  return true;
}

var StaggeredMotion = (function (_React$Component) {
  _inherits(StaggeredMotion, _React$Component);

  _createClass(StaggeredMotion, null, [{
    key: 'propTypes',
    value: {
      // TOOD: warn against putting a config in here
      defaultStyles: _propTypes2['default'].arrayOf(_propTypes2['default'].objectOf(_propTypes2['default'].number)),
      styles: _propTypes2['default'].func.isRequired,
      children: _propTypes2['default'].func.isRequired
    },
    enumerable: true
  }]);

  function StaggeredMotion(props) {
    var _this = this;

    _classCallCheck(this, StaggeredMotion);

    _React$Component.call(this, props);
    this.animationID = null;
    this.prevTime = 0;
    this.accumulatedTime = 0;
    this.unreadPropStyles = null;

    this.clearUnreadPropStyle = function (unreadPropStyles) {
      var _state = _this.state;
      var currentStyles = _state.currentStyles;
      var currentVelocities = _state.currentVelocities;
      var lastIdealStyles = _state.lastIdealStyles;
      var lastIdealVelocities = _state.lastIdealVelocities;

      var someDirty = false;
      for (var i = 0; i < unreadPropStyles.length; i++) {
        var unreadPropStyle = unreadPropStyles[i];
        var dirty = false;

        for (var key in unreadPropStyle) {
          if (!Object.prototype.hasOwnProperty.call(unreadPropStyle, key)) {
            continue;
          }

          var styleValue = unreadPropStyle[key];
          if (typeof styleValue === 'number') {
            if (!dirty) {
              dirty = true;
              someDirty = true;
              currentStyles[i] = _extends({}, currentStyles[i]);
              currentVelocities[i] = _extends({}, currentVelocities[i]);
              lastIdealStyles[i] = _extends({}, lastIdealStyles[i]);
              lastIdealVelocities[i] = _extends({}, lastIdealVelocities[i]);
            }
            currentStyles[i][key] = styleValue;
            currentVelocities[i][key] = 0;
            lastIdealStyles[i][key] = styleValue;
            lastIdealVelocities[i][key] = 0;
          }
        }
      }

      if (someDirty) {
        _this.setState({ currentStyles: currentStyles, currentVelocities: currentVelocities, lastIdealStyles: lastIdealStyles, lastIdealVelocities: lastIdealVelocities });
      }
    };

    this.startAnimationIfNecessary = function () {
      // TODO: when config is {a: 10} and dest is {a: 10} do we raf once and
      // call cb? No, otherwise accidental parent rerender causes cb trigger
      _this.animationID = _raf2['default'](function (timestamp) {
        var destStyles = _this.props.styles(_this.state.lastIdealStyles);

        // check if we need to animate in the first place
        if (shouldStopAnimationAll(_this.state.currentStyles, destStyles, _this.state.currentVelocities)) {
          // no need to cancel animationID here; shouldn't have any in flight
          _this.animationID = null;
          _this.accumulatedTime = 0;
          return;
        }

        var currentTime = timestamp || _performanceNow2['default']();
        var timeDelta = currentTime - _this.prevTime;
        _this.prevTime = currentTime;
        _this.accumulatedTime = _this.accumulatedTime + timeDelta;
        // more than 10 frames? prolly switched browser tab. Restart
        if (_this.accumulatedTime > msPerFrame * 10) {
          _this.accumulatedTime = 0;
        }

        if (_this.accumulatedTime === 0) {
          // no need to cancel animationID here; shouldn't have any in flight
          _this.animationID = null;
          _this.startAnimationIfNecessary();
          return;
        }

        var currentFrameCompletion = (_this.accumulatedTime - Math.floor(_this.accumulatedTime / msPerFrame) * msPerFrame) / msPerFrame;
        var framesToCatchUp = Math.floor(_this.accumulatedTime / msPerFrame);

        var newLastIdealStyles = [];
        var newLastIdealVelocities = [];
        var newCurrentStyles = [];
        var newCurrentVelocities = [];

        for (var i = 0; i < destStyles.length; i++) {
          var destStyle = destStyles[i];
          var newCurrentStyle = {};
          var newCurrentVelocity = {};
          var newLastIdealStyle = {};
          var newLastIdealVelocity = {};

          for (var key in destStyle) {
            if (!Object.prototype.hasOwnProperty.call(destStyle, key)) {
              continue;
            }

            var styleValue = destStyle[key];
            if (typeof styleValue === 'number') {
              newCurrentStyle[key] = styleValue;
              newCurrentVelocity[key] = 0;
              newLastIdealStyle[key] = styleValue;
              newLastIdealVelocity[key] = 0;
            } else {
              var newLastIdealStyleValue = _this.state.lastIdealStyles[i][key];
              var newLastIdealVelocityValue = _this.state.lastIdealVelocities[i][key];
              for (var j = 0; j < framesToCatchUp; j++) {
                var _stepper = _stepper4['default'](msPerFrame / 1000, newLastIdealStyleValue, newLastIdealVelocityValue, styleValue.val, styleValue.stiffness, styleValue.damping, styleValue.precision);

                newLastIdealStyleValue = _stepper[0];
                newLastIdealVelocityValue = _stepper[1];
              }

              var _stepper2 = _stepper4['default'](msPerFrame / 1000, newLastIdealStyleValue, newLastIdealVelocityValue, styleValue.val, styleValue.stiffness, styleValue.damping, styleValue.precision);

              var nextIdealX = _stepper2[0];
              var nextIdealV = _stepper2[1];

              newCurrentStyle[key] = newLastIdealStyleValue + (nextIdealX - newLastIdealStyleValue) * currentFrameCompletion;
              newCurrentVelocity[key] = newLastIdealVelocityValue + (nextIdealV - newLastIdealVelocityValue) * currentFrameCompletion;
              newLastIdealStyle[key] = newLastIdealStyleValue;
              newLastIdealVelocity[key] = newLastIdealVelocityValue;
            }
          }

          newCurrentStyles[i] = newCurrentStyle;
          newCurrentVelocities[i] = newCurrentVelocity;
          newLastIdealStyles[i] = newLastIdealStyle;
          newLastIdealVelocities[i] = newLastIdealVelocity;
        }

        _this.animationID = null;
        // the amount we're looped over above
        _this.accumulatedTime -= framesToCatchUp * msPerFrame;

        _this.setState({
          currentStyles: newCurrentStyles,
          currentVelocities: newCurrentVelocities,
          lastIdealStyles: newLastIdealStyles,
          lastIdealVelocities: newLastIdealVelocities
        });

        _this.unreadPropStyles = null;

        _this.startAnimationIfNecessary();
      });
    };

    this.state = this.defaultState();
  }

  StaggeredMotion.prototype.defaultState = function defaultState() {
    var _props = this.props;
    var defaultStyles = _props.defaultStyles;
    var styles = _props.styles;

    var currentStyles = defaultStyles || styles().map(_stripStyle2['default']);
    var currentVelocities = currentStyles.map(function (currentStyle) {
      return _mapToZero2['default'](currentStyle);
    });
    return {
      currentStyles: currentStyles,
      currentVelocities: currentVelocities,
      lastIdealStyles: currentStyles,
      lastIdealVelocities: currentVelocities
    };
  };

  StaggeredMotion.prototype.componentDidMount = function componentDidMount() {
    this.prevTime = _performanceNow2['default']();
    this.startAnimationIfNecessary();
  };

  StaggeredMotion.prototype.componentWillReceiveProps = function componentWillReceiveProps(props) {
    if (this.unreadPropStyles != null) {
      // previous props haven't had the chance to be set yet; set them here
      this.clearUnreadPropStyle(this.unreadPropStyles);
    }

    this.unreadPropStyles = props.styles(this.state.lastIdealStyles);
    if (this.animationID == null) {
      this.prevTime = _performanceNow2['default']();
      this.startAnimationIfNecessary();
    }
  };

  StaggeredMotion.prototype.componentWillUnmount = function componentWillUnmount() {
    if (this.animationID != null) {
      _raf2['default'].cancel(this.animationID);
      this.animationID = null;
    }
  };

  StaggeredMotion.prototype.render = function render() {
    var renderedChildren = this.props.children(this.state.currentStyles);
    return renderedChildren && _react2['default'].Children.only(renderedChildren);
  };

  return StaggeredMotion;
})(_react2['default'].Component);

exports['default'] = StaggeredMotion;
module.exports = exports['default'];

// it's possible that currentStyle's value is stale: if props is immediately
// changed from 0 to 400 to spring(0) again, the async currentStyle is still
// at 0 (didn't have time to tick and interpolate even once). If we naively
// compare currentStyle with destVal it'll be 0 === 0 (no animation, stop).
// In reality currentStyle should be 400

// after checking for unreadPropStyles != null, we manually go set the
// non-interpolating values (those that are a number, without a spring
// config)

/***/ }),

/***/ "./node_modules/react-motion/lib/TransitionMotion.js":
/*!***********************************************************!*\
  !*** ./node_modules/react-motion/lib/TransitionMotion.js ***!
  \***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

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; };

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; }; })();

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }

function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

var _mapToZero = __webpack_require__(/*! ./mapToZero */ "./node_modules/react-motion/lib/mapToZero.js");

var _mapToZero2 = _interopRequireDefault(_mapToZero);

var _stripStyle = __webpack_require__(/*! ./stripStyle */ "./node_modules/react-motion/lib/stripStyle.js");

var _stripStyle2 = _interopRequireDefault(_stripStyle);

var _stepper3 = __webpack_require__(/*! ./stepper */ "./node_modules/react-motion/lib/stepper.js");

var _stepper4 = _interopRequireDefault(_stepper3);

var _mergeDiff = __webpack_require__(/*! ./mergeDiff */ "./node_modules/react-motion/lib/mergeDiff.js");

var _mergeDiff2 = _interopRequireDefault(_mergeDiff);

var _performanceNow = __webpack_require__(/*! performance-now */ "./node_modules/performance-now/lib/performance-now.js");

var _performanceNow2 = _interopRequireDefault(_performanceNow);

var _raf = __webpack_require__(/*! raf */ "./node_modules/raf/index.js");

var _raf2 = _interopRequireDefault(_raf);

var _shouldStopAnimation = __webpack_require__(/*! ./shouldStopAnimation */ "./node_modules/react-motion/lib/shouldStopAnimation.js");

var _shouldStopAnimation2 = _interopRequireDefault(_shouldStopAnimation);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var msPerFrame = 1000 / 60;

// the children function & (potential) styles function asks as param an
// Array<TransitionPlainStyle>, where each TransitionPlainStyle is of the format
// {key: string, data?: any, style: PlainStyle}. However, the way we keep
// internal states doesn't contain such a data structure (check the state and
// TransitionMotionState). So when children function and others ask for such
// data we need to generate them on the fly by combining mergedPropsStyles and
// currentStyles/lastIdealStyles
function rehydrateStyles(mergedPropsStyles, unreadPropStyles, plainStyles) {
  // Copy the value to a `const` so that Flow understands that the const won't
  // change and will be non-nullable in the callback below.
  var cUnreadPropStyles = unreadPropStyles;
  if (cUnreadPropStyles == null) {
    return mergedPropsStyles.map(function (mergedPropsStyle, i) {
      return {
        key: mergedPropsStyle.key,
        data: mergedPropsStyle.data,
        style: plainStyles[i]
      };
    });
  }
  return mergedPropsStyles.map(function (mergedPropsStyle, i) {
    for (var j = 0; j < cUnreadPropStyles.length; j++) {
      if (cUnreadPropStyles[j].key === mergedPropsStyle.key) {
        return {
          key: cUnreadPropStyles[j].key,
          data: cUnreadPropStyles[j].data,
          style: plainStyles[i]
        };
      }
    }
    return { key: mergedPropsStyle.key, data: mergedPropsStyle.data, style: plainStyles[i] };
  });
}

function shouldStopAnimationAll(currentStyles, destStyles, currentVelocities, mergedPropsStyles) {
  if (mergedPropsStyles.length !== destStyles.length) {
    return false;
  }

  for (var i = 0; i < mergedPropsStyles.length; i++) {
    if (mergedPropsStyles[i].key !== destStyles[i].key) {
      return false;
    }
  }

  // we have the invariant that mergedPropsStyles and
  // currentStyles/currentVelocities/last* are synced in terms of cells, see
  // mergeAndSync comment for more info
  for (var i = 0; i < mergedPropsStyles.length; i++) {
    if (!_shouldStopAnimation2['default'](currentStyles[i], destStyles[i].style, currentVelocities[i])) {
      return false;
    }
  }

  return true;
}

// core key merging logic

// things to do: say previously merged style is {a, b}, dest style (prop) is {b,
// c}, previous current (interpolating) style is {a, b}
// **invariant**: current[i] corresponds to merged[i] in terms of key

// steps:
// turn merged style into {a?, b, c}
//    add c, value of c is destStyles.c
//    maybe remove a, aka call willLeave(a), then merged is either {b, c} or {a, b, c}
// turn current (interpolating) style from {a, b} into {a?, b, c}
//    maybe remove a
//    certainly add c, value of c is willEnter(c)
// loop over merged and construct new current
// dest doesn't change, that's owner's
function mergeAndSync(willEnter, willLeave, didLeave, oldMergedPropsStyles, destStyles, oldCurrentStyles, oldCurrentVelocities, oldLastIdealStyles, oldLastIdealVelocities) {
  var newMergedPropsStyles = _mergeDiff2['default'](oldMergedPropsStyles, destStyles, function (oldIndex, oldMergedPropsStyle) {
    var leavingStyle = willLeave(oldMergedPropsStyle);
    if (leavingStyle == null) {
      didLeave({ key: oldMergedPropsStyle.key, data: oldMergedPropsStyle.data });
      return null;
    }
    if (_shouldStopAnimation2['default'](oldCurrentStyles[oldIndex], leavingStyle, oldCurrentVelocities[oldIndex])) {
      didLeave({ key: oldMergedPropsStyle.key, data: oldMergedPropsStyle.data });
      return null;
    }
    return { key: oldMergedPropsStyle.key, data: oldMergedPropsStyle.data, style: leavingStyle };
  });

  var newCurrentStyles = [];
  var newCurrentVelocities = [];
  var newLastIdealStyles = [];
  var newLastIdealVelocities = [];
  for (var i = 0; i < newMergedPropsStyles.length; i++) {
    var newMergedPropsStyleCell = newMergedPropsStyles[i];
    var foundOldIndex = null;
    for (var j = 0; j < oldMergedPropsStyles.length; j++) {
      if (oldMergedPropsStyles[j].key === newMergedPropsStyleCell.key) {
        foundOldIndex = j;
        break;
      }
    }
    // TODO: key search code
    if (foundOldIndex == null) {
      var plainStyle = willEnter(newMergedPropsStyleCell);
      newCurrentStyles[i] = plainStyle;
      newLastIdealStyles[i] = plainStyle;

      var velocity = _mapToZero2['default'](newMergedPropsStyleCell.style);
      newCurrentVelocities[i] = velocity;
      newLastIdealVelocities[i] = velocity;
    } else {
      newCurrentStyles[i] = oldCurrentStyles[foundOldIndex];
      newLastIdealStyles[i] = oldLastIdealStyles[foundOldIndex];
      newCurrentVelocities[i] = oldCurrentVelocities[foundOldIndex];
      newLastIdealVelocities[i] = oldLastIdealVelocities[foundOldIndex];
    }
  }

  return [newMergedPropsStyles, newCurrentStyles, newCurrentVelocities, newLastIdealStyles, newLastIdealVelocities];
}

var TransitionMotion = (function (_React$Component) {
  _inherits(TransitionMotion, _React$Component);

  _createClass(TransitionMotion, null, [{
    key: 'propTypes',
    value: {
      defaultStyles: _propTypes2['default'].arrayOf(_propTypes2['default'].shape({
        key: _propTypes2['default'].string.isRequired,
        data: _propTypes2['default'].any,
        style: _propTypes2['default'].objectOf(_propTypes2['default'].number).isRequired
      })),
      styles: _propTypes2['default'].oneOfType([_propTypes2['default'].func, _propTypes2['default'].arrayOf(_propTypes2['default'].shape({
        key: _propTypes2['default'].string.isRequired,
        data: _propTypes2['default'].any,
        style: _propTypes2['default'].objectOf(_propTypes2['default'].oneOfType([_propTypes2['default'].number, _propTypes2['default'].object])).isRequired
      }))]).isRequired,
      children: _propTypes2['default'].func.isRequired,
      willEnter: _propTypes2['default'].func,
      willLeave: _propTypes2['default'].func,
      didLeave: _propTypes2['default'].func
    },
    enumerable: true
  }, {
    key: 'defaultProps',
    value: {
      willEnter: function willEnter(styleThatEntered) {
        return _stripStyle2['default'](styleThatEntered.style);
      },
      // recall: returning null makes the current unmounting TransitionStyle
      // disappear immediately
      willLeave: function willLeave() {
        return null;
      },
      didLeave: function didLeave() {}
    },
    enumerable: true
  }]);

  function TransitionMotion(props) {
    var _this = this;

    _classCallCheck(this, TransitionMotion);

    _React$Component.call(this, props);
    this.unmounting = false;
    this.animationID = null;
    this.prevTime = 0;
    this.accumulatedTime = 0;
    this.unreadPropStyles = null;

    this.clearUnreadPropStyle = function (unreadPropStyles) {
      var _mergeAndSync = mergeAndSync(_this.props.willEnter, _this.props.willLeave, _this.props.didLeave, _this.state.mergedPropsStyles, unreadPropStyles, _this.state.currentStyles, _this.state.currentVelocities, _this.state.lastIdealStyles, _this.state.lastIdealVelocities);

      var mergedPropsStyles = _mergeAndSync[0];
      var currentStyles = _mergeAndSync[1];
      var currentVelocities = _mergeAndSync[2];
      var lastIdealStyles = _mergeAndSync[3];
      var lastIdealVelocities = _mergeAndSync[4];

      for (var i = 0; i < unreadPropStyles.length; i++) {
        var unreadPropStyle = unreadPropStyles[i].style;
        var dirty = false;

        for (var key in unreadPropStyle) {
          if (!Object.prototype.hasOwnProperty.call(unreadPropStyle, key)) {
            continue;
          }

          var styleValue = unreadPropStyle[key];
          if (typeof styleValue === 'number') {
            if (!dirty) {
              dirty = true;
              currentStyles[i] = _extends({}, currentStyles[i]);
              currentVelocities[i] = _extends({}, currentVelocities[i]);
              lastIdealStyles[i] = _extends({}, lastIdealStyles[i]);
              lastIdealVelocities[i] = _extends({}, lastIdealVelocities[i]);
              mergedPropsStyles[i] = {
                key: mergedPropsStyles[i].key,
                data: mergedPropsStyles[i].data,
                style: _extends({}, mergedPropsStyles[i].style)
              };
            }
            currentStyles[i][key] = styleValue;
            currentVelocities[i][key] = 0;
            lastIdealStyles[i][key] = styleValue;
            lastIdealVelocities[i][key] = 0;
            mergedPropsStyles[i].style[key] = styleValue;
          }
        }
      }

      // unlike the other 2 components, we can't detect staleness and optionally
      // opt out of setState here. each style object's data might contain new
      // stuff we're not/cannot compare
      _this.setState({
        currentStyles: currentStyles,
        currentVelocities: currentVelocities,
        mergedPropsStyles: mergedPropsStyles,
        lastIdealStyles: lastIdealStyles,
        lastIdealVelocities: lastIdealVelocities
      });
    };

    this.startAnimationIfNecessary = function () {
      if (_this.unmounting) {
        return;
      }

      // TODO: when config is {a: 10} and dest is {a: 10} do we raf once and
      // call cb? No, otherwise accidental parent rerender causes cb trigger
      _this.animationID = _raf2['default'](function (timestamp) {
        // https://github.com/chenglou/react-motion/pull/420
        // > if execution passes the conditional if (this.unmounting), then
        // executes async defaultRaf and after that component unmounts and after
        // that the callback of defaultRaf is called, then setState will be called
        // on unmounted component.
        if (_this.unmounting) {
          return;
        }

        var propStyles = _this.props.styles;
        var destStyles = typeof propStyles === 'function' ? propStyles(rehydrateStyles(_this.state.mergedPropsStyles, _this.unreadPropStyles, _this.state.lastIdealStyles)) : propStyles;

        // check if we need to animate in the first place
        if (shouldStopAnimationAll(_this.state.currentStyles, destStyles, _this.state.currentVelocities, _this.state.mergedPropsStyles)) {
          // no need to cancel animationID here; shouldn't have any in flight
          _this.animationID = null;
          _this.accumulatedTime = 0;
          return;
        }

        var currentTime = timestamp || _performanceNow2['default']();
        var timeDelta = currentTime - _this.prevTime;
        _this.prevTime = currentTime;
        _this.accumulatedTime = _this.accumulatedTime + timeDelta;
        // more than 10 frames? prolly switched browser tab. Restart
        if (_this.accumulatedTime > msPerFrame * 10) {
          _this.accumulatedTime = 0;
        }

        if (_this.accumulatedTime === 0) {
          // no need to cancel animationID here; shouldn't have any in flight
          _this.animationID = null;
          _this.startAnimationIfNecessary();
          return;
        }

        var currentFrameCompletion = (_this.accumulatedTime - Math.floor(_this.accumulatedTime / msPerFrame) * msPerFrame) / msPerFrame;
        var framesToCatchUp = Math.floor(_this.accumulatedTime / msPerFrame);

        var _mergeAndSync2 = mergeAndSync(_this.props.willEnter, _this.props.willLeave, _this.props.didLeave, _this.state.mergedPropsStyles, destStyles, _this.state.currentStyles, _this.state.currentVelocities, _this.state.lastIdealStyles, _this.state.lastIdealVelocities);

        var newMergedPropsStyles = _mergeAndSync2[0];
        var newCurrentStyles = _mergeAndSync2[1];
        var newCurrentVelocities = _mergeAndSync2[2];
        var newLastIdealStyles = _mergeAndSync2[3];
        var newLastIdealVelocities = _mergeAndSync2[4];

        for (var i = 0; i < newMergedPropsStyles.length; i++) {
          var newMergedPropsStyle = newMergedPropsStyles[i].style;
          var newCurrentStyle = {};
          var newCurrentVelocity = {};
          var newLastIdealStyle = {};
          var newLastIdealVelocity = {};

          for (var key in newMergedPropsStyle) {
            if (!Object.prototype.hasOwnProperty.call(newMergedPropsStyle, key)) {
              continue;
            }

            var styleValue = newMergedPropsStyle[key];
            if (typeof styleValue === 'number') {
              newCurrentStyle[key] = styleValue;
              newCurrentVelocity[key] = 0;
              newLastIdealStyle[key] = styleValue;
              newLastIdealVelocity[key] = 0;
            } else {
              var newLastIdealStyleValue = newLastIdealStyles[i][key];
              var newLastIdealVelocityValue = newLastIdealVelocities[i][key];
              for (var j = 0; j < framesToCatchUp; j++) {
                var _stepper = _stepper4['default'](msPerFrame / 1000, newLastIdealStyleValue, newLastIdealVelocityValue, styleValue.val, styleValue.stiffness, styleValue.damping, styleValue.precision);

                newLastIdealStyleValue = _stepper[0];
                newLastIdealVelocityValue = _stepper[1];
              }

              var _stepper2 = _stepper4['default'](msPerFrame / 1000, newLastIdealStyleValue, newLastIdealVelocityValue, styleValue.val, styleValue.stiffness, styleValue.damping, styleValue.precision);

              var nextIdealX = _stepper2[0];
              var nextIdealV = _stepper2[1];

              newCurrentStyle[key] = newLastIdealStyleValue + (nextIdealX - newLastIdealStyleValue) * currentFrameCompletion;
              newCurrentVelocity[key] = newLastIdealVelocityValue + (nextIdealV - newLastIdealVelocityValue) * currentFrameCompletion;
              newLastIdealStyle[key] = newLastIdealStyleValue;
              newLastIdealVelocity[key] = newLastIdealVelocityValue;
            }
          }

          newLastIdealStyles[i] = newLastIdealStyle;
          newLastIdealVelocities[i] = newLastIdealVelocity;
          newCurrentStyles[i] = newCurrentStyle;
          newCurrentVelocities[i] = newCurrentVelocity;
        }

        _this.animationID = null;
        // the amount we're looped over above
        _this.accumulatedTime -= framesToCatchUp * msPerFrame;

        _this.setState({
          currentStyles: newCurrentStyles,
          currentVelocities: newCurrentVelocities,
          lastIdealStyles: newLastIdealStyles,
          lastIdealVelocities: newLastIdealVelocities,
          mergedPropsStyles: newMergedPropsStyles
        });

        _this.unreadPropStyles = null;

        _this.startAnimationIfNecessary();
      });
    };

    this.state = this.defaultState();
  }

  TransitionMotion.prototype.defaultState = function defaultState() {
    var _props = this.props;
    var defaultStyles = _props.defaultStyles;
    var styles = _props.styles;
    var willEnter = _props.willEnter;
    var willLeave = _props.willLeave;
    var didLeave = _props.didLeave;

    var destStyles = typeof styles === 'function' ? styles(defaultStyles) : styles;

    // this is special. for the first time around, we don't have a comparison
    // between last (no last) and current merged props. we'll compute last so:
    // say default is {a, b} and styles (dest style) is {b, c}, we'll
    // fabricate last as {a, b}
    var oldMergedPropsStyles = undefined;
    if (defaultStyles == null) {
      oldMergedPropsStyles = destStyles;
    } else {
      oldMergedPropsStyles = defaultStyles.map(function (defaultStyleCell) {
        // TODO: key search code
        for (var i = 0; i < destStyles.length; i++) {
          if (destStyles[i].key === defaultStyleCell.key) {
            return destStyles[i];
          }
        }
        return defaultStyleCell;
      });
    }
    var oldCurrentStyles = defaultStyles == null ? destStyles.map(function (s) {
      return _stripStyle2['default'](s.style);
    }) : defaultStyles.map(function (s) {
      return _stripStyle2['default'](s.style);
    });
    var oldCurrentVelocities = defaultStyles == null ? destStyles.map(function (s) {
      return _mapToZero2['default'](s.style);
    }) : defaultStyles.map(function (s) {
      return _mapToZero2['default'](s.style);
    });

    var _mergeAndSync3 = mergeAndSync(
    // Because this is an old-style createReactClass component, Flow doesn't
    // understand that the willEnter and willLeave props have default values
    // and will always be present.
    willEnter, willLeave, didLeave, oldMergedPropsStyles, destStyles, oldCurrentStyles, oldCurrentVelocities, oldCurrentStyles, // oldLastIdealStyles really
    oldCurrentVelocities);

    var mergedPropsStyles = _mergeAndSync3[0];
    var currentStyles = _mergeAndSync3[1];
    var currentVelocities = _mergeAndSync3[2];
    var lastIdealStyles = _mergeAndSync3[3];
    var lastIdealVelocities = _mergeAndSync3[4];
    // oldLastIdealVelocities really

    return {
      currentStyles: currentStyles,
      currentVelocities: currentVelocities,
      lastIdealStyles: lastIdealStyles,
      lastIdealVelocities: lastIdealVelocities,
      mergedPropsStyles: mergedPropsStyles
    };
  };

  // after checking for unreadPropStyles != null, we manually go set the
  // non-interpolating values (those that are a number, without a spring
  // config)

  TransitionMotion.prototype.componentDidMount = function componentDidMount() {
    this.prevTime = _performanceNow2['default']();
    this.startAnimationIfNecessary();
  };

  TransitionMotion.prototype.componentWillReceiveProps = function componentWillReceiveProps(props) {
    if (this.unreadPropStyles) {
      // previous props haven't had the chance to be set yet; set them here
      this.clearUnreadPropStyle(this.unreadPropStyles);
    }

    var styles = props.styles;
    if (typeof styles === 'function') {
      this.unreadPropStyles = styles(rehydrateStyles(this.state.mergedPropsStyles, this.unreadPropStyles, this.state.lastIdealStyles));
    } else {
      this.unreadPropStyles = styles;
    }

    if (this.animationID == null) {
      this.prevTime = _performanceNow2['default']();
      this.startAnimationIfNecessary();
    }
  };

  TransitionMotion.prototype.componentWillUnmount = function componentWillUnmount() {
    this.unmounting = true;
    if (this.animationID != null) {
      _raf2['default'].cancel(this.animationID);
      this.animationID = null;
    }
  };

  TransitionMotion.prototype.render = function render() {
    var hydratedStyles = rehydrateStyles(this.state.mergedPropsStyles, this.unreadPropStyles, this.state.currentStyles);
    var renderedChildren = this.props.children(hydratedStyles);
    return renderedChildren && _react2['default'].Children.only(renderedChildren);
  };

  return TransitionMotion;
})(_react2['default'].Component);

exports['default'] = TransitionMotion;
module.exports = exports['default'];

// list of styles, each containing interpolating values. Part of what's passed
// to children function. Notice that this is
// Array<ActualInterpolatingStyleObject>, without the wrapper that is {key: ...,
// data: ... style: ActualInterpolatingStyleObject}. Only mergedPropsStyles
// contains the key & data info (so that we only have a single source of truth
// for these, and to save space). Check the comment for `rehydrateStyles` to
// see how we regenerate the entirety of what's passed to children function

// the array that keeps track of currently rendered stuff! Including stuff
// that you've unmounted but that's still animating. This is where it lives

// it's possible that currentStyle's value is stale: if props is immediately
// changed from 0 to 400 to spring(0) again, the async currentStyle is still
// at 0 (didn't have time to tick and interpolate even once). If we naively
// compare currentStyle with destVal it'll be 0 === 0 (no animation, stop).
// In reality currentStyle should be 400

/***/ }),

/***/ "./node_modules/react-motion/lib/mapToZero.js":
/*!****************************************************!*\
  !*** ./node_modules/react-motion/lib/mapToZero.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


// currently used to initiate the velocity style object to 0


exports.__esModule = true;
exports['default'] = mapToZero;

function mapToZero(obj) {
  var ret = {};
  for (var key in obj) {
    if (Object.prototype.hasOwnProperty.call(obj, key)) {
      ret[key] = 0;
    }
  }
  return ret;
}

module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/react-motion/lib/mergeDiff.js":
/*!****************************************************!*\
  !*** ./node_modules/react-motion/lib/mergeDiff.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


// core keys merging algorithm. If previous render's keys are [a, b], and the
// next render's [c, b, d], what's the final merged keys and ordering?

// - c and a must both be before b
// - b before d
// - ordering between a and c ambiguous

// this reduces to merging two partially ordered lists (e.g. lists where not
// every item has a definite ordering, like comparing a and c above). For the
// ambiguous ordering we deterministically choose to place the next render's
// item after the previous'; so c after a

// this is called a topological sorting. Except the existing algorithms don't
// work well with js bc of the amount of allocation, and isn't optimized for our
// current use-case bc the runtime is linear in terms of edges (see wiki for
// meaning), which is huge when two lists have many common elements


exports.__esModule = true;
exports['default'] = mergeDiff;

function mergeDiff(prev, next, onRemove) {
  // bookkeeping for easier access of a key's index below. This is 2 allocations +
  // potentially triggering chrome hash map mode for objs (so it might be faster

  var prevKeyIndex = {};
  for (var i = 0; i < prev.length; i++) {
    prevKeyIndex[prev[i].key] = i;
  }
  var nextKeyIndex = {};
  for (var i = 0; i < next.length; i++) {
    nextKeyIndex[next[i].key] = i;
  }

  // first, an overly elaborate way of merging prev and next, eliminating
  // duplicates (in terms of keys). If there's dupe, keep the item in next).
  // This way of writing it saves allocations
  var ret = [];
  for (var i = 0; i < next.length; i++) {
    ret[i] = next[i];
  }
  for (var i = 0; i < prev.length; i++) {
    if (!Object.prototype.hasOwnProperty.call(nextKeyIndex, prev[i].key)) {
      // this is called my TM's `mergeAndSync`, which calls willLeave. We don't
      // merge in keys that the user desires to kill
      var fill = onRemove(i, prev[i]);
      if (fill != null) {
        ret.push(fill);
      }
    }
  }

  // now all the items all present. Core sorting logic to have the right order
  return ret.sort(function (a, b) {
    var nextOrderA = nextKeyIndex[a.key];
    var nextOrderB = nextKeyIndex[b.key];
    var prevOrderA = prevKeyIndex[a.key];
    var prevOrderB = prevKeyIndex[b.key];

    if (nextOrderA != null && nextOrderB != null) {
      // both keys in next
      return nextKeyIndex[a.key] - nextKeyIndex[b.key];
    } else if (prevOrderA != null && prevOrderB != null) {
      // both keys in prev
      return prevKeyIndex[a.key] - prevKeyIndex[b.key];
    } else if (nextOrderA != null) {
      // key a in next, key b in prev

      // how to determine the order between a and b? We find a "pivot" (term
      // abuse), a key present in both prev and next, that is sandwiched between
      // a and b. In the context of our above example, if we're comparing a and
      // d, b's (the only) pivot
      for (var i = 0; i < next.length; i++) {
        var pivot = next[i].key;
        if (!Object.prototype.hasOwnProperty.call(prevKeyIndex, pivot)) {
          continue;
        }

        if (nextOrderA < nextKeyIndex[pivot] && prevOrderB > prevKeyIndex[pivot]) {
          return -1;
        } else if (nextOrderA > nextKeyIndex[pivot] && prevOrderB < prevKeyIndex[pivot]) {
          return 1;
        }
      }
      // pluggable. default to: next bigger than prev
      return 1;
    }
    // prevOrderA, nextOrderB
    for (var i = 0; i < next.length; i++) {
      var pivot = next[i].key;
      if (!Object.prototype.hasOwnProperty.call(prevKeyIndex, pivot)) {
        continue;
      }
      if (nextOrderB < nextKeyIndex[pivot] && prevOrderA > prevKeyIndex[pivot]) {
        return 1;
      } else if (nextOrderB > nextKeyIndex[pivot] && prevOrderA < prevKeyIndex[pivot]) {
        return -1;
      }
    }
    // pluggable. default to: next bigger than prev
    return -1;
  });
}

module.exports = exports['default'];
// to loop through and find a key's index each time), but I no longer care

/***/ }),

/***/ "./node_modules/react-motion/lib/presets.js":
/*!**************************************************!*\
  !*** ./node_modules/react-motion/lib/presets.js ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports["default"] = {
  noWobble: { stiffness: 170, damping: 26 }, // the default, if nothing provided
  gentle: { stiffness: 120, damping: 14 },
  wobbly: { stiffness: 180, damping: 12 },
  stiff: { stiffness: 210, damping: 20 }
};
module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/react-motion/lib/react-motion.js":
/*!*******************************************************!*\
  !*** ./node_modules/react-motion/lib/react-motion.js ***!
  \*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

function _interopRequire(obj) { return obj && obj.__esModule ? obj['default'] : obj; }

var _Motion = __webpack_require__(/*! ./Motion */ "./node_modules/react-motion/lib/Motion.js");

exports.Motion = _interopRequire(_Motion);

var _StaggeredMotion = __webpack_require__(/*! ./StaggeredMotion */ "./node_modules/react-motion/lib/StaggeredMotion.js");

exports.StaggeredMotion = _interopRequire(_StaggeredMotion);

var _TransitionMotion = __webpack_require__(/*! ./TransitionMotion */ "./node_modules/react-motion/lib/TransitionMotion.js");

exports.TransitionMotion = _interopRequire(_TransitionMotion);

var _spring = __webpack_require__(/*! ./spring */ "./node_modules/react-motion/lib/spring.js");

exports.spring = _interopRequire(_spring);

var _presets = __webpack_require__(/*! ./presets */ "./node_modules/react-motion/lib/presets.js");

exports.presets = _interopRequire(_presets);

var _stripStyle = __webpack_require__(/*! ./stripStyle */ "./node_modules/react-motion/lib/stripStyle.js");

exports.stripStyle = _interopRequire(_stripStyle);

// deprecated, dummy warning function

var _reorderKeys = __webpack_require__(/*! ./reorderKeys */ "./node_modules/react-motion/lib/reorderKeys.js");

exports.reorderKeys = _interopRequire(_reorderKeys);

/***/ }),

/***/ "./node_modules/react-motion/lib/reorderKeys.js":
/*!******************************************************!*\
  !*** ./node_modules/react-motion/lib/reorderKeys.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports['default'] = reorderKeys;

var hasWarned = false;

function reorderKeys() {
  if (true) {
    if (!hasWarned) {
      hasWarned = true;
      console.error('`reorderKeys` has been removed, since it is no longer needed for TransitionMotion\'s new styles array API.');
    }
  }
}

module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/react-motion/lib/shouldStopAnimation.js":
/*!**************************************************************!*\
  !*** ./node_modules/react-motion/lib/shouldStopAnimation.js ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


// usage assumption: currentStyle values have already been rendered but it says
// nothing of whether currentStyle is stale (see unreadPropStyle)


exports.__esModule = true;
exports['default'] = shouldStopAnimation;

function shouldStopAnimation(currentStyle, style, currentVelocity) {
  for (var key in style) {
    if (!Object.prototype.hasOwnProperty.call(style, key)) {
      continue;
    }

    if (currentVelocity[key] !== 0) {
      return false;
    }

    var styleValue = typeof style[key] === 'number' ? style[key] : style[key].val;
    // stepper will have already taken care of rounding precision errors, so
    // won't have such thing as 0.9999 !=== 1
    if (currentStyle[key] !== styleValue) {
      return false;
    }
  }

  return true;
}

module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/react-motion/lib/spring.js":
/*!*************************************************!*\
  !*** ./node_modules/react-motion/lib/spring.js ***!
  \*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

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; };

exports['default'] = spring;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

var _presets = __webpack_require__(/*! ./presets */ "./node_modules/react-motion/lib/presets.js");

var _presets2 = _interopRequireDefault(_presets);

var defaultConfig = _extends({}, _presets2['default'].noWobble, {
  precision: 0.01
});

function spring(val, config) {
  return _extends({}, defaultConfig, config, { val: val });
}

module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/react-motion/lib/stepper.js":
/*!**************************************************!*\
  !*** ./node_modules/react-motion/lib/stepper.js ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


// stepper is used a lot. Saves allocation to return the same array wrapper.
// This is fine and danger-free against mutations because the callsite
// immediately destructures it and gets the numbers inside without passing the


exports.__esModule = true;
exports["default"] = stepper;

var reusedTuple = [0, 0];

function stepper(secondPerFrame, x, v, destX, k, b, precision) {
  // Spring stiffness, in kg / s^2

  // for animations, destX is really spring length (spring at rest). initial
  // position is considered as the stretched/compressed position of a spring
  var Fspring = -k * (x - destX);

  // Damping, in kg / s
  var Fdamper = -b * v;

  // usually we put mass here, but for animation purposes, specifying mass is a
  // bit redundant. you could simply adjust k and b accordingly
  // let a = (Fspring + Fdamper) / mass;
  var a = Fspring + Fdamper;

  var newV = v + a * secondPerFrame;
  var newX = x + newV * secondPerFrame;

  if (Math.abs(newV) < precision && Math.abs(newX - destX) < precision) {
    reusedTuple[0] = destX;
    reusedTuple[1] = 0;
    return reusedTuple;
  }

  reusedTuple[0] = newX;
  reusedTuple[1] = newV;
  return reusedTuple;
}

module.exports = exports["default"];
// array reference around.

/***/ }),

/***/ "./node_modules/react-motion/lib/stripStyle.js":
/*!*****************************************************!*\
  !*** ./node_modules/react-motion/lib/stripStyle.js ***!
  \*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// turn {x: {val: 1, stiffness: 1, damping: 2}, y: 2} generated by
// `{x: spring(1, {stiffness: 1, damping: 2}), y: 2}` into {x: 1, y: 2}



exports.__esModule = true;
exports['default'] = stripStyle;

function stripStyle(style) {
  var ret = {};
  for (var key in style) {
    if (!Object.prototype.hasOwnProperty.call(style, key)) {
      continue;
    }
    ret[key] = typeof style[key] === 'number' ? style[key] : style[key].val;
  }
  return ret;
}

module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/react-onclickoutside/dist/react-onclickoutside.es.js":
/*!***************************************************************************!*\
  !*** ./node_modules/react-onclickoutside/dist/react-onclickoutside.es.js ***!
  \***************************************************************************/
/*! exports provided: IGNORE_CLASS_NAME, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IGNORE_CLASS_NAME", function() { return IGNORE_CLASS_NAME; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__);



function _inheritsLoose(subClass, superClass) {
  subClass.prototype = Object.create(superClass.prototype);
  subClass.prototype.constructor = subClass;
  subClass.__proto__ = superClass;
}

function _objectWithoutProperties(source, excluded) {
  if (source == null) return {};
  var target = {};
  var sourceKeys = Object.keys(source);
  var key, i;

  for (i = 0; i < sourceKeys.length; i++) {
    key = sourceKeys[i];
    if (excluded.indexOf(key) >= 0) continue;
    target[key] = source[key];
  }

  if (Object.getOwnPropertySymbols) {
    var sourceSymbolKeys = Object.getOwnPropertySymbols(source);

    for (i = 0; i < sourceSymbolKeys.length; i++) {
      key = sourceSymbolKeys[i];
      if (excluded.indexOf(key) >= 0) continue;
      if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
      target[key] = source[key];
    }
  }

  return target;
}

/**
 * Check whether some DOM node is our Component's node.
 */
function isNodeFound(current, componentNode, ignoreClass) {
  if (current === componentNode) {
    return true;
  } // SVG <use/> elements do not technically reside in the rendered DOM, so
  // they do not have classList directly, but they offer a link to their
  // corresponding element, which can have classList. This extra check is for
  // that case.
  // See: http://www.w3.org/TR/SVG11/struct.html#InterfaceSVGUseElement
  // Discussion: https://github.com/Pomax/react-onclickoutside/pull/17


  if (current.correspondingElement) {
    return current.correspondingElement.classList.contains(ignoreClass);
  }

  return current.classList.contains(ignoreClass);
}
/**
 * Try to find our node in a hierarchy of nodes, returning the document
 * node as highest node if our node is not found in the path up.
 */

function findHighest(current, componentNode, ignoreClass) {
  if (current === componentNode) {
    return true;
  } // If source=local then this event came from 'somewhere'
  // inside and should be ignored. We could handle this with
  // a layered approach, too, but that requires going back to
  // thinking in terms of Dom node nesting, running counter
  // to React's 'you shouldn't care about the DOM' philosophy.


  while (current.parentNode) {
    if (isNodeFound(current, componentNode, ignoreClass)) {
      return true;
    }

    current = current.parentNode;
  }

  return current;
}
/**
 * Check if the browser scrollbar was clicked
 */

function clickedScrollbar(evt) {
  return document.documentElement.clientWidth <= evt.clientX || document.documentElement.clientHeight <= evt.clientY;
}

// ideally will get replaced with external dep
// when rafrex/detect-passive-events#4 and rafrex/detect-passive-events#5 get merged in
var testPassiveEventSupport = function testPassiveEventSupport() {
  if (typeof window === 'undefined' || typeof window.addEventListener !== 'function') {
    return;
  }

  var passive = false;
  var options = Object.defineProperty({}, 'passive', {
    get: function get() {
      passive = true;
    }
  });

  var noop = function noop() {};

  window.addEventListener('testPassiveEventSupport', noop, options);
  window.removeEventListener('testPassiveEventSupport', noop, options);
  return passive;
};

function autoInc(seed) {
  if (seed === void 0) {
    seed = 0;
  }

  return function () {
    return ++seed;
  };
}

var uid = autoInc();

var passiveEventSupport;
var handlersMap = {};
var enabledInstances = {};
var touchEvents = ['touchstart', 'touchmove'];
var IGNORE_CLASS_NAME = 'ignore-react-onclickoutside';
/**
 * Options for addEventHandler and removeEventHandler
 */

function getEventHandlerOptions(instance, eventName) {
  var handlerOptions = null;
  var isTouchEvent = touchEvents.indexOf(eventName) !== -1;

  if (isTouchEvent && passiveEventSupport) {
    handlerOptions = {
      passive: !instance.props.preventDefault
    };
  }

  return handlerOptions;
}
/**
 * This function generates the HOC function that you'll use
 * in order to impart onOutsideClick listening to an
 * arbitrary component. It gets called at the end of the
 * bootstrapping code to yield an instance of the
 * onClickOutsideHOC function defined inside setupHOC().
 */


function onClickOutsideHOC(WrappedComponent, config) {
  var _class, _temp;

  return _temp = _class =
  /*#__PURE__*/
  function (_Component) {
    _inheritsLoose(onClickOutside, _Component);

    function onClickOutside(props) {
      var _this;

      _this = _Component.call(this, props) || this;

      _this.__outsideClickHandler = function (event) {
        if (typeof _this.__clickOutsideHandlerProp === 'function') {
          _this.__clickOutsideHandlerProp(event);

          return;
        }

        var instance = _this.getInstance();

        if (typeof instance.props.handleClickOutside === 'function') {
          instance.props.handleClickOutside(event);
          return;
        }

        if (typeof instance.handleClickOutside === 'function') {
          instance.handleClickOutside(event);
          return;
        }

        throw new Error('WrappedComponent lacks a handleClickOutside(event) function for processing outside click events.');
      };

      _this.enableOnClickOutside = function () {
        if (typeof document === 'undefined' || enabledInstances[_this._uid]) {
          return;
        }

        if (typeof passiveEventSupport === 'undefined') {
          passiveEventSupport = testPassiveEventSupport();
        }

        enabledInstances[_this._uid] = true;
        var events = _this.props.eventTypes;

        if (!events.forEach) {
          events = [events];
        }

        handlersMap[_this._uid] = function (event) {
          if (_this.props.disableOnClickOutside) return;
          if (_this.componentNode === null) return;

          if (_this.props.preventDefault) {
            event.preventDefault();
          }

          if (_this.props.stopPropagation) {
            event.stopPropagation();
          }

          if (_this.props.excludeScrollbar && clickedScrollbar(event)) return;
          var current = event.target;

          if (findHighest(current, _this.componentNode, _this.props.outsideClickIgnoreClass) !== document) {
            return;
          }

          _this.__outsideClickHandler(event);
        };

        events.forEach(function (eventName) {
          document.addEventListener(eventName, handlersMap[_this._uid], getEventHandlerOptions(_this, eventName));
        });
      };

      _this.disableOnClickOutside = function () {
        delete enabledInstances[_this._uid];
        var fn = handlersMap[_this._uid];

        if (fn && typeof document !== 'undefined') {
          var events = _this.props.eventTypes;

          if (!events.forEach) {
            events = [events];
          }

          events.forEach(function (eventName) {
            return document.removeEventListener(eventName, fn, getEventHandlerOptions(_this, eventName));
          });
          delete handlersMap[_this._uid];
        }
      };

      _this.getRef = function (ref) {
        return _this.instanceRef = ref;
      };

      _this._uid = uid();
      return _this;
    }
    /**
     * Access the WrappedComponent's instance.
     */


    var _proto = onClickOutside.prototype;

    _proto.getInstance = function getInstance() {
      if (!WrappedComponent.prototype.isReactComponent) {
        return this;
      }

      var ref = this.instanceRef;
      return ref.getInstance ? ref.getInstance() : ref;
    };

    /**
     * Add click listeners to the current document,
     * linked to this component's state.
     */
    _proto.componentDidMount = function componentDidMount() {
      // If we are in an environment without a DOM such
      // as shallow rendering or snapshots then we exit
      // early to prevent any unhandled errors being thrown.
      if (typeof document === 'undefined' || !document.createElement) {
        return;
      }

      var instance = this.getInstance();

      if (config && typeof config.handleClickOutside === 'function') {
        this.__clickOutsideHandlerProp = config.handleClickOutside(instance);

        if (typeof this.__clickOutsideHandlerProp !== 'function') {
          throw new Error('WrappedComponent lacks a function for processing outside click events specified by the handleClickOutside config option.');
        }
      }

      this.componentNode = Object(react_dom__WEBPACK_IMPORTED_MODULE_1__["findDOMNode"])(this.getInstance());
      this.enableOnClickOutside();
    };

    _proto.componentDidUpdate = function componentDidUpdate() {
      this.componentNode = Object(react_dom__WEBPACK_IMPORTED_MODULE_1__["findDOMNode"])(this.getInstance());
    };
    /**
     * Remove all document's event listeners for this component
     */


    _proto.componentWillUnmount = function componentWillUnmount() {
      this.disableOnClickOutside();
    };
    /**
     * Can be called to explicitly enable event listening
     * for clicks and touches outside of this element.
     */


    /**
     * Pass-through render
     */
    _proto.render = function render() {
      // eslint-disable-next-line no-unused-vars
      var _props = this.props,
          excludeScrollbar = _props.excludeScrollbar,
          props = _objectWithoutProperties(_props, ["excludeScrollbar"]);

      if (WrappedComponent.prototype.isReactComponent) {
        props.ref = this.getRef;
      } else {
        props.wrappedRef = this.getRef;
      }

      props.disableOnClickOutside = this.disableOnClickOutside;
      props.enableOnClickOutside = this.enableOnClickOutside;
      return Object(react__WEBPACK_IMPORTED_MODULE_0__["createElement"])(WrappedComponent, props);
    };

    return onClickOutside;
  }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]), _class.displayName = "OnClickOutside(" + (WrappedComponent.displayName || WrappedComponent.name || 'Component') + ")", _class.defaultProps = {
    eventTypes: ['mousedown', 'touchstart'],
    excludeScrollbar: config && config.excludeScrollbar || false,
    outsideClickIgnoreClass: IGNORE_CLASS_NAME,
    preventDefault: false,
    stopPropagation: false
  }, _class.getClass = function () {
    return WrappedComponent.getClass ? WrappedComponent.getClass() : WrappedComponent;
  }, _temp;
}


/* harmony default export */ __webpack_exports__["default"] = (onClickOutsideHOC);


/***/ }),

/***/ "./node_modules/react-overlays/lib/LegacyPortal.js":
/*!*********************************************************!*\
  !*** ./node_modules/react-overlays/lib/LegacyPortal.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _componentOrElement = __webpack_require__(/*! prop-types-extra/lib/componentOrElement */ "./node_modules/prop-types-extra/lib/componentOrElement.js");

var _componentOrElement2 = _interopRequireDefault(_componentOrElement);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

var _reactDom2 = _interopRequireDefault(_reactDom);

var _getContainer = __webpack_require__(/*! ./utils/getContainer */ "./node_modules/react-overlays/lib/utils/getContainer.js");

var _getContainer2 = _interopRequireDefault(_getContainer);

var _ownerDocument = __webpack_require__(/*! ./utils/ownerDocument */ "./node_modules/react-overlays/lib/utils/ownerDocument.js");

var _ownerDocument2 = _interopRequireDefault(_ownerDocument);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

/**
 * The `<Portal/>` component renders its children into a new "subtree" outside of current component hierarchy.
 * You can think of it as a declarative `appendChild()`, or jQuery's `$.fn.appendTo()`.
 * The children of `<Portal/>` component will be appended to the `container` specified.
 */
var Portal = function (_React$Component) {
  _inherits(Portal, _React$Component);

  function Portal() {
    var _temp, _this, _ret;

    _classCallCheck(this, Portal);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this._mountOverlayTarget = function () {
      if (!_this._overlayTarget) {
        _this._overlayTarget = document.createElement('div');
        _this._portalContainerNode = (0, _getContainer2.default)(_this.props.container, (0, _ownerDocument2.default)(_this).body);
        _this._portalContainerNode.appendChild(_this._overlayTarget);
      }
    }, _this._unmountOverlayTarget = function () {
      if (_this._overlayTarget) {
        _this._portalContainerNode.removeChild(_this._overlayTarget);
        _this._overlayTarget = null;
      }
      _this._portalContainerNode = null;
    }, _this._renderOverlay = function () {
      var overlay = !_this.props.children ? null : _react2.default.Children.only(_this.props.children);

      // Save reference for future access.
      if (overlay !== null) {
        _this._mountOverlayTarget();

        var initialRender = !_this._overlayInstance;

        _this._overlayInstance = _reactDom2.default.unstable_renderSubtreeIntoContainer(_this, overlay, _this._overlayTarget, function () {
          if (initialRender && _this.props.onRendered) {
            _this.props.onRendered();
          }
        });
      } else {
        // Unrender if the component is null for transitions to null
        _this._unrenderOverlay();
        _this._unmountOverlayTarget();
      }
    }, _this._unrenderOverlay = function () {
      if (_this._overlayTarget) {
        _reactDom2.default.unmountComponentAtNode(_this._overlayTarget);
        _this._overlayInstance = null;
      }
    }, _this.getMountNode = function () {
      return _this._overlayTarget;
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  Portal.prototype.componentDidMount = function componentDidMount() {
    this._isMounted = true;
    this._renderOverlay();
  };

  Portal.prototype.componentDidUpdate = function componentDidUpdate() {
    this._renderOverlay();
  };

  Portal.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
    if (this._overlayTarget && nextProps.container !== this.props.container) {
      this._portalContainerNode.removeChild(this._overlayTarget);
      this._portalContainerNode = (0, _getContainer2.default)(nextProps.container, (0, _ownerDocument2.default)(this).body);
      this._portalContainerNode.appendChild(this._overlayTarget);
    }
  };

  Portal.prototype.componentWillUnmount = function componentWillUnmount() {
    this._isMounted = false;
    this._unrenderOverlay();
    this._unmountOverlayTarget();
  };

  Portal.prototype.render = function render() {
    return null;
  };

  return Portal;
}(_react2.default.Component);

Portal.displayName = 'Portal';
Portal.propTypes = {
  /**
   * A Node, Component instance, or function that returns either. The `container` will have the Portal children
   * appended to it.
   */
  container: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]),

  onRendered: _propTypes2.default.func
};
exports.default = Portal;
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/react-overlays/lib/Modal.js":
/*!**************************************************!*\
  !*** ./node_modules/react-overlays/lib/Modal.js ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

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; };

var _activeElement = __webpack_require__(/*! dom-helpers/activeElement */ "./node_modules/dom-helpers/activeElement.js");

var _activeElement2 = _interopRequireDefault(_activeElement);

var _contains = __webpack_require__(/*! dom-helpers/query/contains */ "./node_modules/dom-helpers/query/contains.js");

var _contains2 = _interopRequireDefault(_contains);

var _inDOM = __webpack_require__(/*! dom-helpers/util/inDOM */ "./node_modules/dom-helpers/util/inDOM.js");

var _inDOM2 = _interopRequireDefault(_inDOM);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _componentOrElement = __webpack_require__(/*! prop-types-extra/lib/componentOrElement */ "./node_modules/prop-types-extra/lib/componentOrElement.js");

var _componentOrElement2 = _interopRequireDefault(_componentOrElement);

var _deprecated = __webpack_require__(/*! prop-types-extra/lib/deprecated */ "./node_modules/prop-types-extra/lib/deprecated.js");

var _deprecated2 = _interopRequireDefault(_deprecated);

var _elementType = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");

var _elementType2 = _interopRequireDefault(_elementType);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

var _reactDom2 = _interopRequireDefault(_reactDom);

var _warning = __webpack_require__(/*! warning */ "./node_modules/warning/browser.js");

var _warning2 = _interopRequireDefault(_warning);

var _ModalManager = __webpack_require__(/*! ./ModalManager */ "./node_modules/react-overlays/lib/ModalManager.js");

var _ModalManager2 = _interopRequireDefault(_ModalManager);

var _Portal = __webpack_require__(/*! ./Portal */ "./node_modules/react-overlays/lib/Portal.js");

var _Portal2 = _interopRequireDefault(_Portal);

var _RefHolder = __webpack_require__(/*! ./RefHolder */ "./node_modules/react-overlays/lib/RefHolder.js");

var _RefHolder2 = _interopRequireDefault(_RefHolder);

var _addEventListener = __webpack_require__(/*! ./utils/addEventListener */ "./node_modules/react-overlays/lib/utils/addEventListener.js");

var _addEventListener2 = _interopRequireDefault(_addEventListener);

var _addFocusListener = __webpack_require__(/*! ./utils/addFocusListener */ "./node_modules/react-overlays/lib/utils/addFocusListener.js");

var _addFocusListener2 = _interopRequireDefault(_addFocusListener);

var _getContainer = __webpack_require__(/*! ./utils/getContainer */ "./node_modules/react-overlays/lib/utils/getContainer.js");

var _getContainer2 = _interopRequireDefault(_getContainer);

var _ownerDocument = __webpack_require__(/*! ./utils/ownerDocument */ "./node_modules/react-overlays/lib/utils/ownerDocument.js");

var _ownerDocument2 = _interopRequireDefault(_ownerDocument);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint-disable react/prop-types */

var modalManager = new _ModalManager2.default();

/**
 * Love them or hate them, `<Modal/>` provides a solid foundation for creating dialogs, lightboxes, or whatever else.
 * The Modal component renders its `children` node in front of a backdrop component.
 *
 * The Modal offers a few helpful features over using just a `<Portal/>` component and some styles:
 *
 * - Manages dialog stacking when one-at-a-time just isn't enough.
 * - Creates a backdrop, for disabling interaction below the modal.
 * - It properly manages focus; moving to the modal content, and keeping it there until the modal is closed.
 * - It disables scrolling of the page content while open.
 * - Adds the appropriate ARIA roles are automatically.
 * - Easily pluggable animations via a `<Transition/>` component.
 *
 * Note that, in the same way the backdrop element prevents users from clicking or interacting
 * with the page content underneath the Modal, Screen readers also need to be signaled to not to
 * interact with page content while the Modal is open. To do this, we use a common technique of applying
 * the `aria-hidden='true'` attribute to the non-Modal elements in the Modal `container`. This means that for
 * a Modal to be truly modal, it should have a `container` that is _outside_ your app's
 * React hierarchy (such as the default: document.body).
 */

var Modal = function (_React$Component) {
  _inherits(Modal, _React$Component);

  function Modal() {
    var _temp, _this, _ret;

    _classCallCheck(this, Modal);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _initialiseProps.call(_this), _temp), _possibleConstructorReturn(_this, _ret);
  }

  Modal.prototype.omitProps = function omitProps(props, propTypes) {

    var keys = Object.keys(props);
    var newProps = {};
    keys.map(function (prop) {
      if (!Object.prototype.hasOwnProperty.call(propTypes, prop)) {
        newProps[prop] = props[prop];
      }
    });

    return newProps;
  };

  Modal.prototype.render = function render() {
    var _props = this.props,
        show = _props.show,
        container = _props.container,
        children = _props.children,
        Transition = _props.transition,
        backdrop = _props.backdrop,
        className = _props.className,
        style = _props.style,
        onExit = _props.onExit,
        onExiting = _props.onExiting,
        onEnter = _props.onEnter,
        onEntering = _props.onEntering,
        onEntered = _props.onEntered;


    var dialog = _react2.default.Children.only(children);
    var filteredProps = this.omitProps(this.props, Modal.propTypes);

    var mountModal = show || Transition && !this.state.exited;
    if (!mountModal) {
      return null;
    }

    var _dialog$props = dialog.props,
        role = _dialog$props.role,
        tabIndex = _dialog$props.tabIndex;


    if (role === undefined || tabIndex === undefined) {
      dialog = (0, _react.cloneElement)(dialog, {
        role: role === undefined ? 'document' : role,
        tabIndex: tabIndex == null ? '-1' : tabIndex
      });
    }

    if (Transition) {
      dialog = _react2.default.createElement(
        Transition,
        {
          appear: true,
          unmountOnExit: true,
          'in': show,
          onExit: onExit,
          onExiting: onExiting,
          onExited: this.handleHidden,
          onEnter: onEnter,
          onEntering: onEntering,
          onEntered: onEntered
        },
        dialog
      );
    }

    return _react2.default.createElement(
      _Portal2.default,
      {
        ref: this.setMountNode,
        container: container,
        onRendered: this.onPortalRendered
      },
      _react2.default.createElement(
        'div',
        _extends({
          ref: this.setModalNodeRef,
          role: role || 'dialog'
        }, filteredProps, {
          style: style,
          className: className
        }),
        backdrop && this.renderBackdrop(),
        _react2.default.createElement(
          _RefHolder2.default,
          { ref: this.setDialogRef },
          dialog
        )
      )
    );
  };

  Modal.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
    if (nextProps.show) {
      this.setState({ exited: false });
    } else if (!nextProps.transition) {
      // Otherwise let handleHidden take care of marking exited.
      this.setState({ exited: true });
    }
  };

  Modal.prototype.componentWillUpdate = function componentWillUpdate(nextProps) {
    if (!this.props.show && nextProps.show) {
      this.checkForFocus();
    }
  };

  Modal.prototype.componentDidMount = function componentDidMount() {
    this._isMounted = true;
    if (this.props.show) {
      this.onShow();
    }
  };

  Modal.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {
    var transition = this.props.transition;


    if (prevProps.show && !this.props.show && !transition) {
      // Otherwise handleHidden will call this.
      this.onHide();
    } else if (!prevProps.show && this.props.show) {
      this.onShow();
    }
  };

  Modal.prototype.componentWillUnmount = function componentWillUnmount() {
    var _props2 = this.props,
        show = _props2.show,
        transition = _props2.transition;


    this._isMounted = false;

    if (show || transition && !this.state.exited) {
      this.onHide();
    }
  };

  Modal.prototype.autoFocus = function autoFocus() {
    if (!this.props.autoFocus) {
      return;
    }

    var dialogElement = this.getDialogElement();
    var currentActiveElement = (0, _activeElement2.default)((0, _ownerDocument2.default)(this));

    if (dialogElement && !(0, _contains2.default)(dialogElement, currentActiveElement)) {
      this.lastFocus = currentActiveElement;

      if (!dialogElement.hasAttribute('tabIndex')) {
        (0, _warning2.default)(false, 'The modal content node does not accept focus. For the benefit of ' + 'assistive technologies, the tabIndex of the node is being set ' + 'to "-1".');

        dialogElement.setAttribute('tabIndex', -1);
      }

      dialogElement.focus();
    }
  };

  Modal.prototype.restoreLastFocus = function restoreLastFocus() {
    // Support: <=IE11 doesn't support `focus()` on svg elements (RB: #917)
    if (this.lastFocus && this.lastFocus.focus) {
      this.lastFocus.focus();
      this.lastFocus = null;
    }
  };

  Modal.prototype.getDialogElement = function getDialogElement() {
    return _reactDom2.default.findDOMNode(this.dialog);
  };

  Modal.prototype.isTopModal = function isTopModal() {
    return this.props.manager.isTopModal(this);
  };

  return Modal;
}(_react2.default.Component);

Modal.propTypes = _extends({}, _Portal2.default.propTypes, {

  /**
   * Set the visibility of the Modal
   */
  show: _propTypes2.default.bool,

  /**
   * A Node, Component instance, or function that returns either. The Modal is appended to it's container element.
   *
   * For the sake of assistive technologies, the container should usually be the document body, so that the rest of the
   * page content can be placed behind a virtual backdrop as well as a visual one.
   */
  container: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]),

  /**
   * A callback fired when the Modal is opening.
   */
  onShow: _propTypes2.default.func,

  /**
   * A callback fired when either the backdrop is clicked, or the escape key is pressed.
   *
   * The `onHide` callback only signals intent from the Modal,
   * you must actually set the `show` prop to `false` for the Modal to close.
   */
  onHide: _propTypes2.default.func,

  /**
   * Include a backdrop component.
   */
  backdrop: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.oneOf(['static'])]),

  /**
   * A function that returns a backdrop component. Useful for custom
   * backdrop rendering.
   *
   * ```js
   *  renderBackdrop={props => <MyBackdrop {...props} />}
   * ```
   */
  renderBackdrop: _propTypes2.default.func,

  /**
   * A callback fired when the escape key, if specified in `keyboard`, is pressed.
   */
  onEscapeKeyDown: _propTypes2.default.func,

  /**
   * Support for this function will be deprecated. Please use `onEscapeKeyDown` instead
   * A callback fired when the escape key, if specified in `keyboard`, is pressed.
   * @deprecated
   */
  onEscapeKeyUp: (0, _deprecated2.default)(_propTypes2.default.func, 'Please use onEscapeKeyDown instead for consistency'),

  /**
   * A callback fired when the backdrop, if specified, is clicked.
   */
  onBackdropClick: _propTypes2.default.func,

  /**
   * A style object for the backdrop component.
   */
  backdropStyle: _propTypes2.default.object,

  /**
   * A css class or classes for the backdrop component.
   */
  backdropClassName: _propTypes2.default.string,

  /**
   * A css class or set of classes applied to the modal container when the modal is open,
   * and removed when it is closed.
   */
  containerClassName: _propTypes2.default.string,

  /**
   * Close the modal when escape key is pressed
   */
  keyboard: _propTypes2.default.bool,

  /**
   * A `react-transition-group@2.0.0` `<Transition/>` component used
   * to control animations for the dialog component.
   */
  transition: _elementType2.default,

  /**
   * A `react-transition-group@2.0.0` `<Transition/>` component used
   * to control animations for the backdrop components.
   */
  backdropTransition: _elementType2.default,

  /**
   * When `true` The modal will automatically shift focus to itself when it opens, and
   * replace it to the last focused element when it closes. This also
   * works correctly with any Modal children that have the `autoFocus` prop.
   *
   * Generally this should never be set to `false` as it makes the Modal less
   * accessible to assistive technologies, like screen readers.
   */
  autoFocus: _propTypes2.default.bool,

  /**
   * When `true` The modal will prevent focus from leaving the Modal while open.
   *
   * Generally this should never be set to `false` as it makes the Modal less
   * accessible to assistive technologies, like screen readers.
   */
  enforceFocus: _propTypes2.default.bool,

  /**
   * When `true` The modal will restore focus to previously focused element once
   * modal is hidden
   */
  restoreFocus: _propTypes2.default.bool,

  /**
   * Callback fired before the Modal transitions in
   */
  onEnter: _propTypes2.default.func,

  /**
   * Callback fired as the Modal begins to transition in
   */
  onEntering: _propTypes2.default.func,

  /**
   * Callback fired after the Modal finishes transitioning in
   */
  onEntered: _propTypes2.default.func,

  /**
   * Callback fired right before the Modal transitions out
   */
  onExit: _propTypes2.default.func,

  /**
   * Callback fired as the Modal begins to transition out
   */
  onExiting: _propTypes2.default.func,

  /**
   * Callback fired after the Modal finishes transitioning out
   */
  onExited: _propTypes2.default.func,

  /**
   * A ModalManager instance used to track and manage the state of open
   * Modals. Useful when customizing how modals interact within a container
   */
  manager: _propTypes2.default.object.isRequired
});
Modal.defaultProps = {
  show: false,
  backdrop: true,
  keyboard: true,
  autoFocus: true,
  enforceFocus: true,
  restoreFocus: true,
  onHide: function onHide() {},
  manager: modalManager,
  renderBackdrop: function renderBackdrop(props) {
    return _react2.default.createElement('div', props);
  }
};

var _initialiseProps = function _initialiseProps() {
  var _this2 = this;

  this.state = { exited: !this.props.show };

  this.renderBackdrop = function () {
    var _props3 = _this2.props,
        backdropStyle = _props3.backdropStyle,
        backdropClassName = _props3.backdropClassName,
        renderBackdrop = _props3.renderBackdrop,
        Transition = _props3.backdropTransition;


    var backdropRef = function backdropRef(ref) {
      return _this2.backdrop = ref;
    };

    var backdrop = renderBackdrop({
      ref: backdropRef,
      style: backdropStyle,
      className: backdropClassName,
      onClick: _this2.handleBackdropClick
    });

    if (Transition) {
      backdrop = _react2.default.createElement(
        Transition,
        {
          appear: true,
          'in': _this2.props.show
        },
        backdrop
      );
    }

    return backdrop;
  };

  this.onPortalRendered = function () {
    _this2.autoFocus();

    if (_this2.props.onShow) {
      _this2.props.onShow();
    }
  };

  this.onShow = function () {
    var doc = (0, _ownerDocument2.default)(_this2);
    var container = (0, _getContainer2.default)(_this2.props.container, doc.body);

    _this2.props.manager.add(_this2, container, _this2.props.containerClassName);

    _this2._onDocumentKeydownListener = (0, _addEventListener2.default)(doc, 'keydown', _this2.handleDocumentKeyDown);

    _this2._onDocumentKeyupListener = (0, _addEventListener2.default)(doc, 'keyup', _this2.handleDocumentKeyUp);

    _this2._onFocusinListener = (0, _addFocusListener2.default)(_this2.enforceFocus);
  };

  this.onHide = function () {
    _this2.props.manager.remove(_this2);

    _this2._onDocumentKeydownListener.remove();

    _this2._onDocumentKeyupListener.remove();

    _this2._onFocusinListener.remove();

    if (_this2.props.restoreFocus) {
      _this2.restoreLastFocus();
    }
  };

  this.setMountNode = function (ref) {
    _this2.mountNode = ref ? ref.getMountNode() : ref;
  };

  this.setModalNodeRef = function (ref) {
    _this2.modalNode = ref;
  };

  this.setDialogRef = function (ref) {
    _this2.dialog = ref;
  };

  this.handleHidden = function () {
    _this2.setState({ exited: true });
    _this2.onHide();

    if (_this2.props.onExited) {
      var _props4;

      (_props4 = _this2.props).onExited.apply(_props4, arguments);
    }
  };

  this.handleBackdropClick = function (e) {
    if (e.target !== e.currentTarget) {
      return;
    }

    if (_this2.props.onBackdropClick) {
      _this2.props.onBackdropClick(e);
    }

    if (_this2.props.backdrop === true) {
      _this2.props.onHide();
    }
  };

  this.handleDocumentKeyDown = function (e) {
    if (_this2.props.keyboard && e.keyCode === 27 && _this2.isTopModal()) {
      if (_this2.props.onEscapeKeyDown) {
        _this2.props.onEscapeKeyDown(e);
      }

      _this2.props.onHide();
    }
  };

  this.handleDocumentKeyUp = function (e) {
    if (_this2.props.keyboard && e.keyCode === 27 && _this2.isTopModal()) {
      if (_this2.props.onEscapeKeyUp) {
        _this2.props.onEscapeKeyUp(e);
      }
    }
  };

  this.checkForFocus = function () {
    if (_inDOM2.default) {
      _this2.lastFocus = (0, _activeElement2.default)();
    }
  };

  this.enforceFocus = function () {
    if (!_this2.props.enforceFocus || !_this2._isMounted || !_this2.isTopModal()) {
      return;
    }

    var dialogElement = _this2.getDialogElement();
    var currentActiveElement = (0, _activeElement2.default)((0, _ownerDocument2.default)(_this2));

    if (dialogElement && !(0, _contains2.default)(dialogElement, currentActiveElement)) {
      dialogElement.focus();
    }
  };
};

Modal.Manager = _ModalManager2.default;

exports.default = Modal;
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/react-overlays/lib/ModalManager.js":
/*!*********************************************************!*\
  !*** ./node_modules/react-overlays/lib/ModalManager.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _class = __webpack_require__(/*! dom-helpers/class */ "./node_modules/dom-helpers/class/index.js");

var _class2 = _interopRequireDefault(_class);

var _style = __webpack_require__(/*! dom-helpers/style */ "./node_modules/dom-helpers/style/index.js");

var _style2 = _interopRequireDefault(_style);

var _scrollbarSize = __webpack_require__(/*! dom-helpers/util/scrollbarSize */ "./node_modules/dom-helpers/util/scrollbarSize.js");

var _scrollbarSize2 = _interopRequireDefault(_scrollbarSize);

var _isOverflowing = __webpack_require__(/*! ./utils/isOverflowing */ "./node_modules/react-overlays/lib/utils/isOverflowing.js");

var _isOverflowing2 = _interopRequireDefault(_isOverflowing);

var _manageAriaHidden = __webpack_require__(/*! ./utils/manageAriaHidden */ "./node_modules/react-overlays/lib/utils/manageAriaHidden.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function findIndexOf(arr, cb) {
  var idx = -1;
  arr.some(function (d, i) {
    if (cb(d, i)) {
      idx = i;
      return true;
    }
  });
  return idx;
}

function findContainer(data, modal) {
  return findIndexOf(data, function (d) {
    return d.modals.indexOf(modal) !== -1;
  });
}

function setContainerStyle(state, container) {
  var style = { overflow: 'hidden' };

  // we are only interested in the actual `style` here
  // becasue we will override it
  state.style = {
    overflow: container.style.overflow,
    paddingRight: container.style.paddingRight
  };

  if (state.overflowing) {
    // use computed style, here to get the real padding
    // to add our scrollbar width
    style.paddingRight = parseInt((0, _style2.default)(container, 'paddingRight') || 0, 10) + (0, _scrollbarSize2.default)() + 'px';
  }

  (0, _style2.default)(container, style);
}

function removeContainerStyle(_ref, container) {
  var style = _ref.style;


  Object.keys(style).forEach(function (key) {
    return container.style[key] = style[key];
  });
}
/**
 * Proper state managment for containers and the modals in those containers.
 *
 * @internal Used by the Modal to ensure proper styling of containers.
 */

var ModalManager = function ModalManager() {
  var _this = this;

  var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
      _ref2$hideSiblingNode = _ref2.hideSiblingNodes,
      hideSiblingNodes = _ref2$hideSiblingNode === undefined ? true : _ref2$hideSiblingNode,
      _ref2$handleContainer = _ref2.handleContainerOverflow,
      handleContainerOverflow = _ref2$handleContainer === undefined ? true : _ref2$handleContainer;

  _classCallCheck(this, ModalManager);

  this.add = function (modal, container, className) {
    var modalIdx = _this.modals.indexOf(modal);
    var containerIdx = _this.containers.indexOf(container);

    if (modalIdx !== -1) {
      return modalIdx;
    }

    modalIdx = _this.modals.length;
    _this.modals.push(modal);

    if (_this.hideSiblingNodes) {
      (0, _manageAriaHidden.hideSiblings)(container, modal.mountNode);
    }

    if (containerIdx !== -1) {
      _this.data[containerIdx].modals.push(modal);
      return modalIdx;
    }

    var data = {
      modals: [modal],
      //right now only the first modal of a container will have its classes applied
      classes: className ? className.split(/\s+/) : [],

      overflowing: (0, _isOverflowing2.default)(container)
    };

    if (_this.handleContainerOverflow) {
      setContainerStyle(data, container);
    }

    data.classes.forEach(_class2.default.addClass.bind(null, container));

    _this.containers.push(container);
    _this.data.push(data);

    return modalIdx;
  };

  this.remove = function (modal) {
    var modalIdx = _this.modals.indexOf(modal);

    if (modalIdx === -1) {
      return;
    }

    var containerIdx = findContainer(_this.data, modal);
    var data = _this.data[containerIdx];
    var container = _this.containers[containerIdx];

    data.modals.splice(data.modals.indexOf(modal), 1);

    _this.modals.splice(modalIdx, 1);

    // if that was the last modal in a container,
    // clean up the container
    if (data.modals.length === 0) {
      data.classes.forEach(_class2.default.removeClass.bind(null, container));

      if (_this.handleContainerOverflow) {
        removeContainerStyle(data, container);
      }

      if (_this.hideSiblingNodes) {
        (0, _manageAriaHidden.showSiblings)(container, modal.mountNode);
      }
      _this.containers.splice(containerIdx, 1);
      _this.data.splice(containerIdx, 1);
    } else if (_this.hideSiblingNodes) {
      //otherwise make sure the next top modal is visible to a SR
      (0, _manageAriaHidden.ariaHidden)(false, data.modals[data.modals.length - 1].mountNode);
    }
  };

  this.isTopModal = function (modal) {
    return !!_this.modals.length && _this.modals[_this.modals.length - 1] === modal;
  };

  this.hideSiblingNodes = hideSiblingNodes;
  this.handleContainerOverflow = handleContainerOverflow;
  this.modals = [];
  this.containers = [];
  this.data = [];
};

exports.default = ModalManager;
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/react-overlays/lib/Overlay.js":
/*!****************************************************!*\
  !*** ./node_modules/react-overlays/lib/Overlay.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

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; };

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _elementType = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");

var _elementType2 = _interopRequireDefault(_elementType);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _Portal = __webpack_require__(/*! ./Portal */ "./node_modules/react-overlays/lib/Portal.js");

var _Portal2 = _interopRequireDefault(_Portal);

var _Position = __webpack_require__(/*! ./Position */ "./node_modules/react-overlays/lib/Position.js");

var _Position2 = _interopRequireDefault(_Position);

var _RootCloseWrapper = __webpack_require__(/*! ./RootCloseWrapper */ "./node_modules/react-overlays/lib/RootCloseWrapper.js");

var _RootCloseWrapper2 = _interopRequireDefault(_RootCloseWrapper);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

/**
 * Built on top of `<Position/>` and `<Portal/>`, the overlay component is great for custom tooltip overlays.
 */
var Overlay = function (_React$Component) {
  _inherits(Overlay, _React$Component);

  function Overlay(props, context) {
    _classCallCheck(this, Overlay);

    var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context));

    _this.handleHidden = function () {
      _this.setState({ exited: true });

      if (_this.props.onExited) {
        var _this$props;

        (_this$props = _this.props).onExited.apply(_this$props, arguments);
      }
    };

    _this.state = { exited: !props.show };
    _this.onHiddenListener = _this.handleHidden.bind(_this);
    return _this;
  }

  Overlay.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
    if (nextProps.show) {
      this.setState({ exited: false });
    } else if (!nextProps.transition) {
      // Otherwise let handleHidden take care of marking exited.
      this.setState({ exited: true });
    }
  };

  Overlay.prototype.render = function render() {
    var _props = this.props,
        container = _props.container,
        containerPadding = _props.containerPadding,
        target = _props.target,
        placement = _props.placement,
        shouldUpdatePosition = _props.shouldUpdatePosition,
        rootClose = _props.rootClose,
        children = _props.children,
        Transition = _props.transition,
        props = _objectWithoutProperties(_props, ['container', 'containerPadding', 'target', 'placement', 'shouldUpdatePosition', 'rootClose', 'children', 'transition']);

    // Don't un-render the overlay while it's transitioning out.


    var mountOverlay = props.show || Transition && !this.state.exited;
    if (!mountOverlay) {
      // Don't bother showing anything if we don't have to.
      return null;
    }

    var child = children;

    // Position is be inner-most because it adds inline styles into the child,
    // which the other wrappers don't forward correctly.
    child = _react2.default.createElement(
      _Position2.default,
      { container: container, containerPadding: containerPadding, target: target, placement: placement, shouldUpdatePosition: shouldUpdatePosition },
      child
    );

    if (Transition) {
      var onExit = props.onExit,
          onExiting = props.onExiting,
          onEnter = props.onEnter,
          onEntering = props.onEntering,
          onEntered = props.onEntered;

      // This animates the child node by injecting props, so it must precede
      // anything that adds a wrapping div.

      child = _react2.default.createElement(
        Transition,
        {
          'in': props.show,
          appear: true,
          onExit: onExit,
          onExiting: onExiting,
          onExited: this.onHiddenListener,
          onEnter: onEnter,
          onEntering: onEntering,
          onEntered: onEntered
        },
        child
      );
    }

    // This goes after everything else because it adds a wrapping div.
    if (rootClose) {
      child = _react2.default.createElement(
        _RootCloseWrapper2.default,
        { onRootClose: props.onHide },
        child
      );
    }

    return _react2.default.createElement(
      _Portal2.default,
      { container: container },
      child
    );
  };

  return Overlay;
}(_react2.default.Component);

Overlay.propTypes = _extends({}, _Portal2.default.propTypes, _Position2.default.propTypes, {

  /**
   * Set the visibility of the Overlay
   */
  show: _propTypes2.default.bool,

  /**
   * Specify whether the overlay should trigger `onHide` when the user clicks outside the overlay
   */
  rootClose: _propTypes2.default.bool,

  /**
   * A Callback fired by the Overlay when it wishes to be hidden.
   *
   * __required__ when `rootClose` is `true`.
   *
   * @type func
   */
  onHide: function onHide(props) {
    var propType = _propTypes2.default.func;
    if (props.rootClose) {
      propType = propType.isRequired;
    }

    for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
      args[_key - 1] = arguments[_key];
    }

    return propType.apply(undefined, [props].concat(args));
  },


  /**
   * A `react-transition-group@2.0.0` `<Transition/>` component
   * used to animate the overlay as it changes visibility.
   */
  transition: _elementType2.default,

  /**
   * Callback fired before the Overlay transitions in
   */
  onEnter: _propTypes2.default.func,

  /**
   * Callback fired as the Overlay begins to transition in
   */
  onEntering: _propTypes2.default.func,

  /**
   * Callback fired after the Overlay finishes transitioning in
   */
  onEntered: _propTypes2.default.func,

  /**
   * Callback fired right before the Overlay transitions out
   */
  onExit: _propTypes2.default.func,

  /**
   * Callback fired as the Overlay begins to transition out
   */
  onExiting: _propTypes2.default.func,

  /**
   * Callback fired after the Overlay finishes transitioning out
   */
  onExited: _propTypes2.default.func
});

exports.default = Overlay;
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/react-overlays/lib/Portal.js":
/*!***************************************************!*\
  !*** ./node_modules/react-overlays/lib/Portal.js ***!
  \***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _componentOrElement = __webpack_require__(/*! prop-types-extra/lib/componentOrElement */ "./node_modules/prop-types-extra/lib/componentOrElement.js");

var _componentOrElement2 = _interopRequireDefault(_componentOrElement);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

var _reactDom2 = _interopRequireDefault(_reactDom);

var _getContainer = __webpack_require__(/*! ./utils/getContainer */ "./node_modules/react-overlays/lib/utils/getContainer.js");

var _getContainer2 = _interopRequireDefault(_getContainer);

var _ownerDocument = __webpack_require__(/*! ./utils/ownerDocument */ "./node_modules/react-overlays/lib/utils/ownerDocument.js");

var _ownerDocument2 = _interopRequireDefault(_ownerDocument);

var _LegacyPortal = __webpack_require__(/*! ./LegacyPortal */ "./node_modules/react-overlays/lib/LegacyPortal.js");

var _LegacyPortal2 = _interopRequireDefault(_LegacyPortal);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

/**
 * The `<Portal/>` component renders its children into a new "subtree" outside of current component hierarchy.
 * You can think of it as a declarative `appendChild()`, or jQuery's `$.fn.appendTo()`.
 * The children of `<Portal/>` component will be appended to the `container` specified.
 */
var Portal = function (_React$Component) {
  _inherits(Portal, _React$Component);

  function Portal() {
    var _temp, _this, _ret;

    _classCallCheck(this, Portal);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.setContainer = function () {
      var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _this.props;

      _this._portalContainerNode = (0, _getContainer2.default)(props.container, (0, _ownerDocument2.default)(_this).body);
    }, _this.getMountNode = function () {
      return _this._portalContainerNode;
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  Portal.prototype.componentDidMount = function componentDidMount() {
    this.setContainer();
    this.forceUpdate(this.props.onRendered);
  };

  Portal.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
    if (nextProps.container !== this.props.container) {
      this.setContainer(nextProps);
    }
  };

  Portal.prototype.componentWillUnmount = function componentWillUnmount() {
    this._portalContainerNode = null;
  };

  Portal.prototype.render = function render() {
    return this.props.children && this._portalContainerNode ? _reactDom2.default.createPortal(this.props.children, this._portalContainerNode) : null;
  };

  return Portal;
}(_react2.default.Component);

Portal.displayName = 'Portal';
Portal.propTypes = {
  /**
   * A Node, Component instance, or function that returns either. The `container` will have the Portal children
   * appended to it.
   */
  container: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]),

  onRendered: _propTypes2.default.func
};
exports.default = _reactDom2.default.createPortal ? Portal : _LegacyPortal2.default;
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/react-overlays/lib/Position.js":
/*!*****************************************************!*\
  !*** ./node_modules/react-overlays/lib/Position.js ***!
  \*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

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; };

var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");

var _classnames2 = _interopRequireDefault(_classnames);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _componentOrElement = __webpack_require__(/*! prop-types-extra/lib/componentOrElement */ "./node_modules/prop-types-extra/lib/componentOrElement.js");

var _componentOrElement2 = _interopRequireDefault(_componentOrElement);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

var _reactDom2 = _interopRequireDefault(_reactDom);

var _calculatePosition = __webpack_require__(/*! ./utils/calculatePosition */ "./node_modules/react-overlays/lib/utils/calculatePosition.js");

var _calculatePosition2 = _interopRequireDefault(_calculatePosition);

var _getContainer = __webpack_require__(/*! ./utils/getContainer */ "./node_modules/react-overlays/lib/utils/getContainer.js");

var _getContainer2 = _interopRequireDefault(_getContainer);

var _ownerDocument = __webpack_require__(/*! ./utils/ownerDocument */ "./node_modules/react-overlays/lib/utils/ownerDocument.js");

var _ownerDocument2 = _interopRequireDefault(_ownerDocument);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

/**
 * The Position component calculates the coordinates for its child, to position
 * it relative to a `target` component or node. Useful for creating callouts
 * and tooltips, the Position component injects a `style` props with `left` and
 * `top` values for positioning your component.
 *
 * It also injects "arrow" `left`, and `top` values for styling callout arrows
 * for giving your components a sense of directionality.
 */
var Position = function (_React$Component) {
  _inherits(Position, _React$Component);

  function Position(props, context) {
    _classCallCheck(this, Position);

    var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context));

    _this.getTarget = function () {
      var target = _this.props.target;

      var targetElement = typeof target === 'function' ? target() : target;
      return targetElement && _reactDom2.default.findDOMNode(targetElement) || null;
    };

    _this.maybeUpdatePosition = function (placementChanged) {
      var target = _this.getTarget();

      if (!_this.props.shouldUpdatePosition && target === _this._lastTarget && !placementChanged) {
        return;
      }

      _this.updatePosition(target);
    };

    _this.state = {
      positionLeft: 0,
      positionTop: 0,
      arrowOffsetLeft: null,
      arrowOffsetTop: null
    };

    _this._needsFlush = false;
    _this._lastTarget = null;
    return _this;
  }

  Position.prototype.componentDidMount = function componentDidMount() {
    this.updatePosition(this.getTarget());
  };

  Position.prototype.componentWillReceiveProps = function componentWillReceiveProps() {
    this._needsFlush = true;
  };

  Position.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {
    if (this._needsFlush) {
      this._needsFlush = false;
      this.maybeUpdatePosition(this.props.placement !== prevProps.placement);
    }
  };

  Position.prototype.render = function render() {
    var _props = this.props,
        children = _props.children,
        className = _props.className,
        props = _objectWithoutProperties(_props, ['children', 'className']);

    var _state = this.state,
        positionLeft = _state.positionLeft,
        positionTop = _state.positionTop,
        arrowPosition = _objectWithoutProperties(_state, ['positionLeft', 'positionTop']);

    // These should not be forwarded to the child.


    delete props.target;
    delete props.container;
    delete props.containerPadding;
    delete props.shouldUpdatePosition;

    var child = _react2.default.Children.only(children);
    return (0, _react.cloneElement)(child, _extends({}, props, arrowPosition, {
      // FIXME: Don't forward `positionLeft` and `positionTop` via both props
      // and `props.style`.
      positionLeft: positionLeft,
      positionTop: positionTop,
      className: (0, _classnames2.default)(className, child.props.className),
      style: _extends({}, child.props.style, {
        left: positionLeft,
        top: positionTop
      })
    }));
  };

  Position.prototype.updatePosition = function updatePosition(target) {
    this._lastTarget = target;

    if (!target) {
      this.setState({
        positionLeft: 0,
        positionTop: 0,
        arrowOffsetLeft: null,
        arrowOffsetTop: null
      });

      return;
    }

    var overlay = _reactDom2.default.findDOMNode(this);
    var container = (0, _getContainer2.default)(this.props.container, (0, _ownerDocument2.default)(this).body);

    this.setState((0, _calculatePosition2.default)(this.props.placement, overlay, target, container, this.props.containerPadding));
  };

  return Position;
}(_react2.default.Component);

Position.propTypes = {
  /**
   * A node, element, or function that returns either. The child will be
   * be positioned next to the `target` specified.
   */
  target: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]),

  /**
   * "offsetParent" of the component
   */
  container: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]),
  /**
   * Minimum spacing in pixels between container border and component border
   */
  containerPadding: _propTypes2.default.number,
  /**
   * How to position the component relative to the target
   */
  placement: _propTypes2.default.oneOf(['top', 'right', 'bottom', 'left']),
  /**
   * Whether the position should be changed on each update
   */
  shouldUpdatePosition: _propTypes2.default.bool
};

Position.displayName = 'Position';

Position.defaultProps = {
  containerPadding: 0,
  placement: 'right',
  shouldUpdatePosition: false
};

exports.default = Position;
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/react-overlays/lib/RefHolder.js":
/*!******************************************************!*\
  !*** ./node_modules/react-overlays/lib/RefHolder.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

var propTypes = {
  children: _propTypes2.default.node
};

/**
 * Internal helper component to allow attaching a non-conflicting ref to a
 * child element that may not accept refs.
 */

var RefHolder = function (_React$Component) {
  _inherits(RefHolder, _React$Component);

  function RefHolder() {
    _classCallCheck(this, RefHolder);

    return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
  }

  RefHolder.prototype.render = function render() {
    return this.props.children;
  };

  return RefHolder;
}(_react2.default.Component);

RefHolder.propTypes = propTypes;

exports.default = RefHolder;
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/react-overlays/lib/RootCloseWrapper.js":
/*!*************************************************************!*\
  !*** ./node_modules/react-overlays/lib/RootCloseWrapper.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _contains = __webpack_require__(/*! dom-helpers/query/contains */ "./node_modules/dom-helpers/query/contains.js");

var _contains2 = _interopRequireDefault(_contains);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

var _reactDom2 = _interopRequireDefault(_reactDom);

var _addEventListener = __webpack_require__(/*! ./utils/addEventListener */ "./node_modules/react-overlays/lib/utils/addEventListener.js");

var _addEventListener2 = _interopRequireDefault(_addEventListener);

var _ownerDocument = __webpack_require__(/*! ./utils/ownerDocument */ "./node_modules/react-overlays/lib/utils/ownerDocument.js");

var _ownerDocument2 = _interopRequireDefault(_ownerDocument);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

var escapeKeyCode = 27;

function isLeftClickEvent(event) {
  return event.button === 0;
}

function isModifiedEvent(event) {
  return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
}

/**
 * The `<RootCloseWrapper/>` component registers your callback on the document
 * when rendered. Powers the `<Overlay/>` component. This is used achieve modal
 * style behavior where your callback is triggered when the user tries to
 * interact with the rest of the document or hits the `esc` key.
 */

var RootCloseWrapper = function (_React$Component) {
  _inherits(RootCloseWrapper, _React$Component);

  function RootCloseWrapper(props, context) {
    _classCallCheck(this, RootCloseWrapper);

    var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context));

    _this.addEventListeners = function () {
      var event = _this.props.event;

      var doc = (0, _ownerDocument2.default)(_this);

      // Use capture for this listener so it fires before React's listener, to
      // avoid false positives in the contains() check below if the target DOM
      // element is removed in the React mouse callback.
      _this.documentMouseCaptureListener = (0, _addEventListener2.default)(doc, event, _this.handleMouseCapture, true);

      _this.documentMouseListener = (0, _addEventListener2.default)(doc, event, _this.handleMouse);

      _this.documentKeyupListener = (0, _addEventListener2.default)(doc, 'keyup', _this.handleKeyUp);
    };

    _this.removeEventListeners = function () {
      if (_this.documentMouseCaptureListener) {
        _this.documentMouseCaptureListener.remove();
      }

      if (_this.documentMouseListener) {
        _this.documentMouseListener.remove();
      }

      if (_this.documentKeyupListener) {
        _this.documentKeyupListener.remove();
      }
    };

    _this.handleMouseCapture = function (e) {
      _this.preventMouseRootClose = isModifiedEvent(e) || !isLeftClickEvent(e) || (0, _contains2.default)(_reactDom2.default.findDOMNode(_this), e.target);
    };

    _this.handleMouse = function (e) {
      if (!_this.preventMouseRootClose && _this.props.onRootClose) {
        _this.props.onRootClose(e);
      }
    };

    _this.handleKeyUp = function (e) {
      if (e.keyCode === escapeKeyCode && _this.props.onRootClose) {
        _this.props.onRootClose(e);
      }
    };

    _this.preventMouseRootClose = false;
    return _this;
  }

  RootCloseWrapper.prototype.componentDidMount = function componentDidMount() {
    if (!this.props.disabled) {
      this.addEventListeners();
    }
  };

  RootCloseWrapper.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {
    if (!this.props.disabled && prevProps.disabled) {
      this.addEventListeners();
    } else if (this.props.disabled && !prevProps.disabled) {
      this.removeEventListeners();
    }
  };

  RootCloseWrapper.prototype.componentWillUnmount = function componentWillUnmount() {
    if (!this.props.disabled) {
      this.removeEventListeners();
    }
  };

  RootCloseWrapper.prototype.render = function render() {
    return this.props.children;
  };

  return RootCloseWrapper;
}(_react2.default.Component);

RootCloseWrapper.displayName = 'RootCloseWrapper';

RootCloseWrapper.propTypes = {
  /**
   * Callback fired after click or mousedown. Also triggers when user hits `esc`.
   */
  onRootClose: _propTypes2.default.func,
  /**
   * Children to render.
   */
  children: _propTypes2.default.element,
  /**
   * Disable the the RootCloseWrapper, preventing it from triggering `onRootClose`.
   */
  disabled: _propTypes2.default.bool,
  /**
   * Choose which document mouse event to bind to.
   */
  event: _propTypes2.default.oneOf(['click', 'mousedown'])
};

RootCloseWrapper.defaultProps = {
  event: 'click'
};

exports.default = RootCloseWrapper;
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/react-overlays/lib/utils/addEventListener.js":
/*!*******************************************************************!*\
  !*** ./node_modules/react-overlays/lib/utils/addEventListener.js ***!
  \*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

exports.default = function (node, event, handler, capture) {
  (0, _on2.default)(node, event, handler, capture);

  return {
    remove: function remove() {
      (0, _off2.default)(node, event, handler, capture);
    }
  };
};

var _on = __webpack_require__(/*! dom-helpers/events/on */ "./node_modules/dom-helpers/events/on.js");

var _on2 = _interopRequireDefault(_on);

var _off = __webpack_require__(/*! dom-helpers/events/off */ "./node_modules/dom-helpers/events/off.js");

var _off2 = _interopRequireDefault(_off);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/react-overlays/lib/utils/addFocusListener.js":
/*!*******************************************************************!*\
  !*** ./node_modules/react-overlays/lib/utils/addFocusListener.js ***!
  \*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = addFocusListener;
/**
 * Firefox doesn't have a focusin event so using capture is easiest way to get bubbling
 * IE8 can't do addEventListener, but does have onfocusin, so we use that in ie8
 *
 * We only allow one Listener at a time to avoid stack overflows
 */
function addFocusListener(handler) {
  var useFocusin = !document.addEventListener;
  var remove = void 0;

  if (useFocusin) {
    document.attachEvent('onfocusin', handler);
    remove = function remove() {
      return document.detachEvent('onfocusin', handler);
    };
  } else {
    document.addEventListener('focus', handler, true);
    remove = function remove() {
      return document.removeEventListener('focus', handler, true);
    };
  }

  return { remove: remove };
}
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/react-overlays/lib/utils/calculatePosition.js":
/*!********************************************************************!*\
  !*** ./node_modules/react-overlays/lib/utils/calculatePosition.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = calculatePosition;

var _offset = __webpack_require__(/*! dom-helpers/query/offset */ "./node_modules/dom-helpers/query/offset.js");

var _offset2 = _interopRequireDefault(_offset);

var _position = __webpack_require__(/*! dom-helpers/query/position */ "./node_modules/dom-helpers/query/position.js");

var _position2 = _interopRequireDefault(_position);

var _scrollTop = __webpack_require__(/*! dom-helpers/query/scrollTop */ "./node_modules/dom-helpers/query/scrollTop.js");

var _scrollTop2 = _interopRequireDefault(_scrollTop);

var _ownerDocument = __webpack_require__(/*! ./ownerDocument */ "./node_modules/react-overlays/lib/utils/ownerDocument.js");

var _ownerDocument2 = _interopRequireDefault(_ownerDocument);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function getContainerDimensions(containerNode) {
  var width = void 0,
      height = void 0,
      scroll = void 0;

  if (containerNode.tagName === 'BODY') {
    width = window.innerWidth;
    height = window.innerHeight;

    scroll = (0, _scrollTop2.default)((0, _ownerDocument2.default)(containerNode).documentElement) || (0, _scrollTop2.default)(containerNode);
  } else {
    var _getOffset = (0, _offset2.default)(containerNode);

    width = _getOffset.width;
    height = _getOffset.height;

    scroll = (0, _scrollTop2.default)(containerNode);
  }

  return { width: width, height: height, scroll: scroll };
}

function getTopDelta(top, overlayHeight, container, padding) {
  var containerDimensions = getContainerDimensions(container);
  var containerScroll = containerDimensions.scroll;
  var containerHeight = containerDimensions.height;

  var topEdgeOffset = top - padding - containerScroll;
  var bottomEdgeOffset = top + padding - containerScroll + overlayHeight;

  if (topEdgeOffset < 0) {
    return -topEdgeOffset;
  } else if (bottomEdgeOffset > containerHeight) {
    return containerHeight - bottomEdgeOffset;
  } else {
    return 0;
  }
}

function getLeftDelta(left, overlayWidth, container, padding) {
  var containerDimensions = getContainerDimensions(container);
  var containerWidth = containerDimensions.width;

  var leftEdgeOffset = left - padding;
  var rightEdgeOffset = left + padding + overlayWidth;

  if (leftEdgeOffset < 0) {
    return -leftEdgeOffset;
  } else if (rightEdgeOffset > containerWidth) {
    return containerWidth - rightEdgeOffset;
  }

  return 0;
}

function calculatePosition(placement, overlayNode, target, container, padding) {
  var childOffset = container.tagName === 'BODY' ? (0, _offset2.default)(target) : (0, _position2.default)(target, container);

  var _getOffset2 = (0, _offset2.default)(overlayNode),
      overlayHeight = _getOffset2.height,
      overlayWidth = _getOffset2.width;

  var positionLeft = void 0,
      positionTop = void 0,
      arrowOffsetLeft = void 0,
      arrowOffsetTop = void 0;

  if (placement === 'left' || placement === 'right') {
    positionTop = childOffset.top + (childOffset.height - overlayHeight) / 2;

    if (placement === 'left') {
      positionLeft = childOffset.left - overlayWidth;
    } else {
      positionLeft = childOffset.left + childOffset.width;
    }

    var topDelta = getTopDelta(positionTop, overlayHeight, container, padding);

    positionTop += topDelta;
    arrowOffsetTop = 50 * (1 - 2 * topDelta / overlayHeight) + '%';
    arrowOffsetLeft = void 0;
  } else if (placement === 'top' || placement === 'bottom') {
    positionLeft = childOffset.left + (childOffset.width - overlayWidth) / 2;

    if (placement === 'top') {
      positionTop = childOffset.top - overlayHeight;
    } else {
      positionTop = childOffset.top + childOffset.height;
    }

    var leftDelta = getLeftDelta(positionLeft, overlayWidth, container, padding);

    positionLeft += leftDelta;
    arrowOffsetLeft = 50 * (1 - 2 * leftDelta / overlayWidth) + '%';
    arrowOffsetTop = void 0;
  } else {
    throw new Error('calcOverlayPosition(): No such placement of "' + placement + '" found.');
  }

  return { positionLeft: positionLeft, positionTop: positionTop, arrowOffsetLeft: arrowOffsetLeft, arrowOffsetTop: arrowOffsetTop };
}
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/react-overlays/lib/utils/getContainer.js":
/*!***************************************************************!*\
  !*** ./node_modules/react-overlays/lib/utils/getContainer.js ***!
  \***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = getContainer;

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

var _reactDom2 = _interopRequireDefault(_reactDom);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function getContainer(container, defaultContainer) {
  container = typeof container === 'function' ? container() : container;
  return _reactDom2.default.findDOMNode(container) || defaultContainer;
}
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/react-overlays/lib/utils/isOverflowing.js":
/*!****************************************************************!*\
  !*** ./node_modules/react-overlays/lib/utils/isOverflowing.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = isOverflowing;

var _isWindow = __webpack_require__(/*! dom-helpers/query/isWindow */ "./node_modules/dom-helpers/query/isWindow.js");

var _isWindow2 = _interopRequireDefault(_isWindow);

var _ownerDocument = __webpack_require__(/*! dom-helpers/ownerDocument */ "./node_modules/dom-helpers/ownerDocument.js");

var _ownerDocument2 = _interopRequireDefault(_ownerDocument);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function isBody(node) {
  return node && node.tagName.toLowerCase() === 'body';
}

function bodyIsOverflowing(node) {
  var doc = (0, _ownerDocument2.default)(node);
  var win = (0, _isWindow2.default)(doc);
  var fullWidth = win.innerWidth;

  // Support: ie8, no innerWidth
  if (!fullWidth) {
    var documentElementRect = doc.documentElement.getBoundingClientRect();
    fullWidth = documentElementRect.right - Math.abs(documentElementRect.left);
  }

  return doc.body.clientWidth < fullWidth;
}

function isOverflowing(container) {
  var win = (0, _isWindow2.default)(container);

  return win || isBody(container) ? bodyIsOverflowing(container) : container.scrollHeight > container.clientHeight;
}
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/react-overlays/lib/utils/manageAriaHidden.js":
/*!*******************************************************************!*\
  !*** ./node_modules/react-overlays/lib/utils/manageAriaHidden.js ***!
  \*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.ariaHidden = ariaHidden;
exports.hideSiblings = hideSiblings;
exports.showSiblings = showSiblings;

var BLACKLIST = ['template', 'script', 'style'];

var isHidable = function isHidable(_ref) {
  var nodeType = _ref.nodeType,
      tagName = _ref.tagName;
  return nodeType === 1 && BLACKLIST.indexOf(tagName.toLowerCase()) === -1;
};

var siblings = function siblings(container, mount, cb) {
  mount = [].concat(mount);

  [].forEach.call(container.children, function (node) {
    if (mount.indexOf(node) === -1 && isHidable(node)) {
      cb(node);
    }
  });
};

function ariaHidden(show, node) {
  if (!node) {
    return;
  }
  if (show) {
    node.setAttribute('aria-hidden', 'true');
  } else {
    node.removeAttribute('aria-hidden');
  }
}

function hideSiblings(container, mountNode) {
  siblings(container, mountNode, function (node) {
    return ariaHidden(true, node);
  });
}

function showSiblings(container, mountNode) {
  siblings(container, mountNode, function (node) {
    return ariaHidden(false, node);
  });
}

/***/ }),

/***/ "./node_modules/react-overlays/lib/utils/ownerDocument.js":
/*!****************************************************************!*\
  !*** ./node_modules/react-overlays/lib/utils/ownerDocument.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

exports.default = function (componentOrElement) {
  return (0, _ownerDocument2.default)(_reactDom2.default.findDOMNode(componentOrElement));
};

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

var _reactDom2 = _interopRequireDefault(_reactDom);

var _ownerDocument = __webpack_require__(/*! dom-helpers/ownerDocument */ "./node_modules/dom-helpers/ownerDocument.js");

var _ownerDocument2 = _interopRequireDefault(_ownerDocument);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/react-popper/lib/cjs/Manager.js":
/*!******************************************************!*\
  !*** ./node_modules/react-popper/lib/cjs/Manager.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.ManagerContext = undefined;

var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");

var _extends3 = _interopRequireDefault(_extends2);

var _classCallCheck2 = __webpack_require__(/*! babel-runtime/helpers/classCallCheck */ "./node_modules/babel-runtime/helpers/classCallCheck.js");

var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);

var _possibleConstructorReturn2 = __webpack_require__(/*! babel-runtime/helpers/possibleConstructorReturn */ "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js");

var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);

var _inherits2 = __webpack_require__(/*! babel-runtime/helpers/inherits */ "./node_modules/babel-runtime/helpers/inherits.js");

var _inherits3 = _interopRequireDefault(_inherits2);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var React = _interopRequireWildcard(_react);

var _createReactContext = __webpack_require__(/*! create-react-context */ "./node_modules/create-react-context/lib/index.js");

var _createReactContext2 = _interopRequireDefault(_createReactContext);

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var ManagerContext = exports.ManagerContext = (0, _createReactContext2.default)({ getReferenceRef: undefined, referenceNode: undefined });

var Manager = function (_React$Component) {
  (0, _inherits3.default)(Manager, _React$Component);

  function Manager() {
    (0, _classCallCheck3.default)(this, Manager);

    var _this = (0, _possibleConstructorReturn3.default)(this, _React$Component.call(this));

    _this.getReferenceRef = function (referenceNode) {
      return _this.setState(function (_ref) {
        var context = _ref.context;
        return {
          context: (0, _extends3.default)({}, context, { referenceNode: referenceNode })
        };
      });
    };

    _this.state = {
      context: {
        getReferenceRef: _this.getReferenceRef,
        referenceNode: undefined
      }
    };
    return _this;
  }

  Manager.prototype.render = function render() {
    return React.createElement(
      ManagerContext.Provider,
      { value: this.state.context },
      this.props.children
    );
  };

  return Manager;
}(React.Component);

exports.default = Manager;

/***/ }),

/***/ "./node_modules/react-popper/lib/cjs/Popper.js":
/*!*****************************************************!*\
  !*** ./node_modules/react-popper/lib/cjs/Popper.js ***!
  \*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.placements = exports.InnerPopper = undefined;

var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");

var _extends3 = _interopRequireDefault(_extends2);

var _classCallCheck2 = __webpack_require__(/*! babel-runtime/helpers/classCallCheck */ "./node_modules/babel-runtime/helpers/classCallCheck.js");

var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);

var _possibleConstructorReturn2 = __webpack_require__(/*! babel-runtime/helpers/possibleConstructorReturn */ "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js");

var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);

var _inherits2 = __webpack_require__(/*! babel-runtime/helpers/inherits */ "./node_modules/babel-runtime/helpers/inherits.js");

var _inherits3 = _interopRequireDefault(_inherits2);

exports.default = Popper;

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var React = _interopRequireWildcard(_react);

var _popper = __webpack_require__(/*! popper.js */ "./node_modules/popper.js/dist/esm/popper.js");

var _popper2 = _interopRequireDefault(_popper);

var _Manager = __webpack_require__(/*! ./Manager */ "./node_modules/react-popper/lib/cjs/Manager.js");

var _utils = __webpack_require__(/*! ./utils */ "./node_modules/react-popper/lib/cjs/utils.js");

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var initialStyle = {
  position: 'absolute',
  top: 0,
  left: 0,
  opacity: 0,
  pointerEvents: 'none'
};

var initialArrowStyle = {};

var InnerPopper = exports.InnerPopper = function (_React$Component) {
  (0, _inherits3.default)(InnerPopper, _React$Component);

  function InnerPopper() {
    var _temp, _this, _ret;

    (0, _classCallCheck3.default)(this, InnerPopper);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = (0, _possibleConstructorReturn3.default)(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = {
      data: undefined,
      placement: undefined
    }, _this.popperNode = null, _this.arrowNode = null, _this.setPopperNode = function (popperNode) {
      if (_this.popperNode === popperNode) return;

      (0, _utils.safeInvoke)(_this.props.innerRef, popperNode);
      _this.popperNode = popperNode;

      _this.updatePopperInstance();
    }, _this.setArrowNode = function (arrowNode) {
      if (_this.arrowNode === arrowNode) return;
      _this.arrowNode = arrowNode;

      if (!_this.popperInstance) _this.updatePopperInstance();
    }, _this.updateStateModifier = {
      enabled: true,
      order: 900,
      fn: function fn(data) {
        var placement = data.placement;

        _this.setState({ data: data, placement: placement }, placement !== _this.state.placement ? _this.scheduleUpdate : undefined);
        return data;
      }
    }, _this.getOptions = function () {
      return {
        placement: _this.props.placement,
        eventsEnabled: _this.props.eventsEnabled,
        positionFixed: _this.props.positionFixed,
        modifiers: (0, _extends3.default)({}, _this.props.modifiers, {
          arrow: (0, _extends3.default)({}, _this.props.modifiers && _this.props.modifiers.arrow, {
            enabled: !!_this.arrowNode,
            element: _this.arrowNode
          }),
          applyStyle: { enabled: false },
          updateStateModifier: _this.updateStateModifier
        })
      };
    }, _this.getPopperStyle = function () {
      return !_this.popperNode || !_this.state.data ? initialStyle : (0, _extends3.default)({
        position: _this.state.data.offsets.popper.position
      }, _this.state.data.styles);
    }, _this.getPopperPlacement = function () {
      return !_this.state.data ? undefined : _this.state.placement;
    }, _this.getArrowStyle = function () {
      return !_this.arrowNode || !_this.state.data ? initialArrowStyle : _this.state.data.arrowStyles;
    }, _this.getOutOfBoundariesState = function () {
      return _this.state.data ? _this.state.data.hide : undefined;
    }, _this.destroyPopperInstance = function () {
      if (!_this.popperInstance) return;

      _this.popperInstance.destroy();
      _this.popperInstance = null;
    }, _this.updatePopperInstance = function () {
      _this.destroyPopperInstance();

      var _this2 = _this,
          popperNode = _this2.popperNode;
      var referenceElement = _this.props.referenceElement;


      if (!referenceElement || !popperNode) return;

      _this.popperInstance = new _popper2.default(referenceElement, popperNode, _this.getOptions());
    }, _this.scheduleUpdate = function () {
      if (_this.popperInstance) {
        _this.popperInstance.scheduleUpdate();
      }
    }, _temp), (0, _possibleConstructorReturn3.default)(_this, _ret);
  }

  InnerPopper.prototype.componentDidUpdate = function componentDidUpdate(prevProps, prevState) {
    // If the Popper.js options have changed, update the instance (destroy + create)
    if (this.props.placement !== prevProps.placement || this.props.referenceElement !== prevProps.referenceElement || this.props.positionFixed !== prevProps.positionFixed) {
      this.updatePopperInstance();
    } else if (this.props.eventsEnabled !== prevProps.eventsEnabled && this.popperInstance) {
      this.props.eventsEnabled ? this.popperInstance.enableEventListeners() : this.popperInstance.disableEventListeners();
    }

    // A placement difference in state means popper determined a new placement
    // apart from the props value. By the time the popper element is rendered with
    // the new position Popper has already measured it, if the place change triggers
    // a size change it will result in a misaligned popper. So we schedule an update to be sure.
    if (prevState.placement !== this.state.placement) {
      this.scheduleUpdate();
    }
  };

  InnerPopper.prototype.componentWillUnmount = function componentWillUnmount() {
    this.destroyPopperInstance();
  };

  InnerPopper.prototype.render = function render() {
    return (0, _utils.unwrapArray)(this.props.children)({
      ref: this.setPopperNode,
      style: this.getPopperStyle(),
      placement: this.getPopperPlacement(),
      outOfBoundaries: this.getOutOfBoundariesState(),
      scheduleUpdate: this.scheduleUpdate,
      arrowProps: {
        ref: this.setArrowNode,
        style: this.getArrowStyle()
      }
    });
  };

  return InnerPopper;
}(React.Component);

InnerPopper.defaultProps = {
  placement: 'bottom',
  eventsEnabled: true,
  referenceElement: undefined,
  positionFixed: false
};


var placements = _popper2.default.placements;
exports.placements = placements;
function Popper(props) {
  return React.createElement(
    _Manager.ManagerContext.Consumer,
    null,
    function (_ref) {
      var referenceNode = _ref.referenceNode;
      return React.createElement(InnerPopper, (0, _extends3.default)({ referenceElement: referenceNode }, props));
    }
  );
}

/***/ }),

/***/ "./node_modules/react-popper/lib/cjs/utils.js":
/*!****************************************************!*\
  !*** ./node_modules/react-popper/lib/cjs/utils.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});


/**
 * Takes an argument and if it's an array, returns the first item in the array,
 * otherwise returns the argument. Used for Preact compatibility.
 */
var unwrapArray = exports.unwrapArray = function unwrapArray(arg) {
  return Array.isArray(arg) ? arg[0] : arg;
};

/**
 * Takes a maybe-undefined function and arbitrary args and invokes the function
 * only if it is defined.
 */
var safeInvoke = exports.safeInvoke = function safeInvoke(fn) {
  for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
    args[_key - 1] = arguments[_key];
  }

  if (typeof fn === "function") {
    return fn.apply(undefined, args);
  }
};

/***/ }),

/***/ "./node_modules/react-switch/dist/react-switch.dev.js":
/*!************************************************************!*\
  !*** ./node_modules/react-switch/dist/react-switch.dev.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

Object.defineProperty(exports, '__esModule', { value: true });

var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
var PropTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

function _extends() {
  _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;
  };

  return _extends.apply(this, arguments);
}

/*
The MIT License (MIT)

Copyright (c) 2015 instructure-react

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
var uncheckedIcon = React.createElement('svg', {
  viewBox: "-2 -5 14 20",
  height: "100%",
  width: "100%",
  style: {
    position: "absolute",
    top: 0
  }
}, React.createElement('path', {
  d: "M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12",
  fill: "#fff",
  fillRule: "evenodd"
}));
var checkedIcon = React.createElement('svg', {
  height: "100%",
  width: "100%",
  viewBox: "-2 -5 17 21",
  style: {
    position: "absolute",
    top: 0
  }
}, React.createElement('path', {
  d: "M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0",
  fill: "#fff",
  fillRule: "evenodd"
}));

function createBackgroundColor(pos, checkedPos, uncheckedPos, offColor, onColor) {
  var relativePos = (pos - uncheckedPos) / (checkedPos - uncheckedPos);

  if (relativePos === 0) {
    return offColor;
  }

  if (relativePos === 1) {
    return onColor;
  }

  var newColor = "#";

  for (var i = 1; i < 6; i += 2) {
    var offComponent = parseInt(offColor.substr(i, 2), 16);
    var onComponent = parseInt(onColor.substr(i, 2), 16);
    var weightedValue = Math.round((1 - relativePos) * offComponent + relativePos * onComponent);
    var newComponent = weightedValue.toString(16);

    if (newComponent.length === 1) {
      newComponent = "0" + newComponent;
    }

    newColor += newComponent;
  }

  return newColor;
}

function convertShorthandColor(color) {
  if (color.length === 7) {
    return color;
  }

  var sixDigitColor = "#";

  for (var i = 1; i < 4; i += 1) {
    sixDigitColor += color[i] + color[i];
  }

  return sixDigitColor;
}

function getBackgroundColor(pos, checkedPos, uncheckedPos, offColor, onColor) {
  var sixDigitOffColor = convertShorthandColor(offColor);
  var sixDigitOnColor = convertShorthandColor(onColor);
  return createBackgroundColor(pos, checkedPos, uncheckedPos, sixDigitOffColor, sixDigitOnColor);
}

// Make sure color props are strings that start with "#" since other ways to write colors are not supported.
var hexColorPropType = function (props, propName, componentName) {
  var prop = props[propName];

  if (typeof prop !== "string" || prop[0] !== "#" || prop.length !== 4 && prop.length !== 7) {
    return new Error("Invalid prop '" + propName + "' supplied to '" + componentName + "'. '" + propName + "' has to be either a 3-digit or 6-digit hex-color string. Valid examples: '#abc', '#123456'");
  }

  return null;
};

function objectWithoutProperties(obj, exclude) {
  var target = {};

  for (var k in obj) if (Object.prototype.hasOwnProperty.call(obj, k) && exclude.indexOf(k) === -1) target[k] = obj[k];

  return target;
}

var ReactSwitch =
/*@__PURE__*/
function (Component) {
  function ReactSwitch(props) {
    Component.call(this, props);
    var height = props.height;
    var width = props.width;
    var handleDiameter = props.handleDiameter;
    var checked = props.checked;
    this.$handleDiameter = handleDiameter || height - 2;
    this.$checkedPos = Math.max(width - height, width - (height + this.$handleDiameter) / 2);
    this.$uncheckedPos = Math.max(0, (height - this.$handleDiameter) / 2);
    this.state = {
      $pos: checked ? this.$checkedPos : this.$uncheckedPos
    };
    this.$lastDragAt = 0;
    this.$lastKeyUpAt = 0;
    this.$onMouseDown = this.$onMouseDown.bind(this);
    this.$onMouseMove = this.$onMouseMove.bind(this);
    this.$onMouseUp = this.$onMouseUp.bind(this);
    this.$onTouchStart = this.$onTouchStart.bind(this);
    this.$onTouchMove = this.$onTouchMove.bind(this);
    this.$onTouchEnd = this.$onTouchEnd.bind(this);
    this.$onClick = this.$onClick.bind(this);
    this.$onInputChange = this.$onInputChange.bind(this);
    this.$onKeyUp = this.$onKeyUp.bind(this);
    this.$setHasOutline = this.$setHasOutline.bind(this);
    this.$unsetHasOutline = this.$unsetHasOutline.bind(this);
    this.$getInputRef = this.$getInputRef.bind(this);
  }

  if (Component) ReactSwitch.__proto__ = Component;
  ReactSwitch.prototype = Object.create(Component && Component.prototype);
  ReactSwitch.prototype.constructor = ReactSwitch;

  ReactSwitch.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {
    if (prevProps.checked === this.props.checked) {
      return;
    }

    var $pos = this.props.checked ? this.$checkedPos : this.$uncheckedPos;
    this.setState({
      $pos: $pos
    });
  };

  ReactSwitch.prototype.$onDragStart = function $onDragStart(clientX) {
    this.$inputRef.focus();
    this.setState({
      $startX: clientX,
      $hasOutline: true,
      $dragStartingTime: Date.now()
    });
  };

  ReactSwitch.prototype.$onDrag = function $onDrag(clientX) {
    var ref = this.state;
    var $startX = ref.$startX;
    var $isDragging = ref.$isDragging;
    var $pos = ref.$pos;
    var ref$1 = this.props;
    var checked = ref$1.checked;
    var startPos = checked ? this.$checkedPos : this.$uncheckedPos;
    var mousePos = startPos + clientX - $startX; // We need this check to fix a windows glitch where onDrag is triggered onMouseDown in some cases

    if (!$isDragging && clientX !== $startX) {
      this.setState({
        $isDragging: true
      });
    }

    var newPos = Math.min(this.$checkedPos, Math.max(this.$uncheckedPos, mousePos)); // Prevent unnecessary rerenders

    if (newPos !== $pos) {
      this.setState({
        $pos: newPos
      });
    }
  };

  ReactSwitch.prototype.$onDragStop = function $onDragStop(event) {
    var ref = this.state;
    var $pos = ref.$pos;
    var $isDragging = ref.$isDragging;
    var $dragStartingTime = ref.$dragStartingTime;
    var ref$1 = this.props;
    var checked = ref$1.checked;
    var halfwayCheckpoint = (this.$checkedPos + this.$uncheckedPos) / 2; // Simulate clicking the handle

    var timeSinceStart = Date.now() - $dragStartingTime;

    if (!$isDragging || timeSinceStart < 250) {
      this.$onChange(event); // Handle dragging from checked position
    } else if (checked) {
      if ($pos > halfwayCheckpoint) {
        this.setState({
          $pos: this.$checkedPos
        });
      } else {
        this.$onChange(event);
      } // Handle dragging from unchecked position

    } else if ($pos < halfwayCheckpoint) {
      this.setState({
        $pos: this.$uncheckedPos
      });
    } else {
      this.$onChange(event);
    }

    this.setState({
      $isDragging: false,
      $hasOutline: false
    });
    this.$lastDragAt = Date.now();
  };

  ReactSwitch.prototype.$onMouseDown = function $onMouseDown(event) {
    event.preventDefault(); // Ignore right click and scroll

    if (typeof event.button === "number" && event.button !== 0) {
      return;
    }

    this.$onDragStart(event.clientX);
    window.addEventListener("mousemove", this.$onMouseMove);
    window.addEventListener("mouseup", this.$onMouseUp);
  };

  ReactSwitch.prototype.$onMouseMove = function $onMouseMove(event) {
    event.preventDefault();
    this.$onDrag(event.clientX);
  };

  ReactSwitch.prototype.$onMouseUp = function $onMouseUp(event) {
    this.$onDragStop(event);
    window.removeEventListener("mousemove", this.$onMouseMove);
    window.removeEventListener("mouseup", this.$onMouseUp);
  };

  ReactSwitch.prototype.$onTouchStart = function $onTouchStart(event) {
    this.$checkedStateFromDragging = null;
    this.$onDragStart(event.touches[0].clientX);
  };

  ReactSwitch.prototype.$onTouchMove = function $onTouchMove(event) {
    this.$onDrag(event.touches[0].clientX);
  };

  ReactSwitch.prototype.$onTouchEnd = function $onTouchEnd(event) {
    event.preventDefault();
    this.$onDragStop(event);
  };

  ReactSwitch.prototype.$onInputChange = function $onInputChange(event) {
    // This condition is unfortunately needed in some browsers where the input's change event might get triggered
    // right after the dragstop event is triggered (occurs when dropping over a label element)
    if (Date.now() - this.$lastDragAt > 50) {
      this.$onChange(event); // Prevent clicking label, but not key activation from setting outline to true - yes, this is absurd

      if (Date.now() - this.$lastKeyUpAt > 50) {
        this.setState({
          $hasOutline: false
        });
      }
    }
  };

  ReactSwitch.prototype.$onKeyUp = function $onKeyUp() {
    this.$lastKeyUpAt = Date.now();
  };

  ReactSwitch.prototype.$setHasOutline = function $setHasOutline() {
    this.setState({
      $hasOutline: true
    });
  };

  ReactSwitch.prototype.$unsetHasOutline = function $unsetHasOutline() {
    this.setState({
      $hasOutline: false
    });
  };

  ReactSwitch.prototype.$getInputRef = function $getInputRef(el) {
    this.$inputRef = el;
  };

  ReactSwitch.prototype.$onClick = function $onClick(event) {
    event.preventDefault();
    this.$inputRef.focus();
    this.$onChange(event);
    this.setState({
      $hasOutline: false
    });
  };

  ReactSwitch.prototype.$onChange = function $onChange(event) {
    var ref = this.props;
    var checked = ref.checked;
    var onChange = ref.onChange;
    var id = ref.id;
    onChange(!checked, event, id);
  };

  ReactSwitch.prototype.render = function render() {
    var ref = this.props;
    var disabled = ref.disabled;
    var className = ref.className;
    var offColor = ref.offColor;
    var onColor = ref.onColor;
    var offHandleColor = ref.offHandleColor;
    var onHandleColor = ref.onHandleColor;
    var checkedIcon$$1 = ref.checkedIcon;
    var uncheckedIcon$$1 = ref.uncheckedIcon;
    var boxShadow = ref.boxShadow;
    var activeBoxShadow = ref.activeBoxShadow;
    var height = ref.height;
    var width = ref.width;
    var handleDiameter = ref.handleDiameter;
    var rest$1 = objectWithoutProperties(ref, ["disabled", "className", "offColor", "onColor", "offHandleColor", "onHandleColor", "checkedIcon", "uncheckedIcon", "boxShadow", "activeBoxShadow", "height", "width", "handleDiameter"]);
    var rest = rest$1;
    var ref$1 = this.state;
    var $pos = ref$1.$pos;
    var $isDragging = ref$1.$isDragging;
    var $hasOutline = ref$1.$hasOutline;
    var rootStyle = {
      position: "relative",
      display: "inline-block",
      textAlign: "left",
      opacity: disabled ? 0.5 : 1,
      direction: "ltr",
      borderRadius: height / 2,
      WebkitTransition: "opacity 0.25s",
      MozTransition: "opacity 0.25s",
      transition: "opacity 0.25s",
      touchAction: "none",
      WebkitTapHighlightColor: "rgba(0, 0, 0, 0)",
      WebkitUserSelect: "none",
      MozUserSelect: "none",
      msUserSelect: "none",
      userSelect: "none"
    };
    var backgroundStyle = {
      height: height,
      width: width,
      margin: Math.max(0, (this.$handleDiameter - height) / 2),
      position: "relative",
      background: getBackgroundColor($pos, this.$checkedPos, this.$uncheckedPos, offColor, onColor),
      borderRadius: height / 2,
      cursor: disabled ? "default" : "pointer",
      WebkitTransition: $isDragging ? null : "background 0.25s",
      MozTransition: $isDragging ? null : "background 0.25s",
      transition: $isDragging ? null : "background 0.25s"
    };
    var checkedIconStyle = {
      height: height,
      width: Math.min(height * 1.5, width - (this.$handleDiameter + height) / 2 + 1),
      position: "relative",
      opacity: ($pos - this.$uncheckedPos) / (this.$checkedPos - this.$uncheckedPos),
      pointerEvents: "none",
      WebkitTransition: $isDragging ? null : "opacity 0.25s",
      MozTransition: $isDragging ? null : "opacity 0.25s",
      transition: $isDragging ? null : "opacity 0.25s"
    };
    var uncheckedIconStyle = {
      height: height,
      width: Math.min(height * 1.5, width - (this.$handleDiameter + height) / 2 + 1),
      position: "absolute",
      opacity: 1 - ($pos - this.$uncheckedPos) / (this.$checkedPos - this.$uncheckedPos),
      right: 0,
      top: 0,
      pointerEvents: "none",
      WebkitTransition: $isDragging ? null : "opacity 0.25s",
      MozTransition: $isDragging ? null : "opacity 0.25s",
      transition: $isDragging ? null : "opacity 0.25s"
    };
    var handleStyle = {
      height: this.$handleDiameter,
      width: this.$handleDiameter,
      background: getBackgroundColor($pos, this.$checkedPos, this.$uncheckedPos, offHandleColor, onHandleColor),
      display: "inline-block",
      cursor: disabled ? "default" : "pointer",
      borderRadius: "50%",
      position: "absolute",
      transform: "translateX(" + $pos + "px)",
      top: Math.max(0, (height - this.$handleDiameter) / 2),
      outline: 0,
      boxShadow: $hasOutline ? activeBoxShadow : boxShadow,
      border: 0,
      WebkitTransition: $isDragging ? null : "background-color 0.25s, transform 0.25s, box-shadow 0.15s",
      MozTransition: $isDragging ? null : "background-color 0.25s, transform 0.25s, box-shadow 0.15s",
      transition: $isDragging ? null : "background-color 0.25s, transform 0.25s, box-shadow 0.15s"
    };
    var inputStyle = {
      border: 0,
      clip: "rect(0 0 0 0)",
      height: 1,
      margin: -1,
      overflow: "hidden",
      padding: 0,
      position: "absolute",
      width: 1
    };
    return React.createElement('div', {
      className: className,
      style: rootStyle
    }, React.createElement('div', {
      className: "react-switch-bg",
      style: backgroundStyle,
      onClick: disabled ? null : this.$onClick,
      onMouseDown: function (e) {
        return e.preventDefault();
      }
    }, checkedIcon$$1 && React.createElement('div', {
      style: checkedIconStyle
    }, checkedIcon$$1), uncheckedIcon$$1 && React.createElement('div', {
      style: uncheckedIconStyle
    }, uncheckedIcon$$1)), React.createElement('div', {
      className: "react-switch-handle",
      style: handleStyle,
      onClick: function (e) {
        return e.preventDefault();
      },
      onMouseDown: disabled ? null : this.$onMouseDown,
      onTouchStart: disabled ? null : this.$onTouchStart,
      onTouchMove: disabled ? null : this.$onTouchMove,
      onTouchEnd: disabled ? null : this.$onTouchEnd,
      onTouchCancel: disabled ? null : this.$unsetHasOutline
    }), React.createElement('input', _extends({}, {
      type: "checkbox",
      role: "switch",
      disabled: disabled,
      style: inputStyle
    }, rest, {
      ref: this.$getInputRef,
      onFocus: this.$setHasOutline,
      onBlur: this.$unsetHasOutline,
      onKeyUp: this.$onKeyUp,
      onChange: this.$onInputChange
    })));
  };

  return ReactSwitch;
}(React.Component);

ReactSwitch.propTypes = {
  checked: PropTypes.bool.isRequired,
  onChange: PropTypes.func.isRequired,
  disabled: PropTypes.bool,
  offColor: hexColorPropType,
  onColor: hexColorPropType,
  offHandleColor: hexColorPropType,
  onHandleColor: hexColorPropType,
  handleDiameter: PropTypes.number,
  uncheckedIcon: PropTypes.oneOfType([PropTypes.bool, PropTypes.element]),
  checkedIcon: PropTypes.oneOfType([PropTypes.bool, PropTypes.element]),
  boxShadow: PropTypes.string,
  activeBoxShadow: PropTypes.string,
  height: PropTypes.number,
  width: PropTypes.number,
  id: PropTypes.string,
  className: PropTypes.string
};
ReactSwitch.defaultProps = {
  disabled: false,
  offColor: "#888",
  onColor: "#080",
  offHandleColor: "#fff",
  onHandleColor: "#fff",
  uncheckedIcon: uncheckedIcon,
  checkedIcon: checkedIcon,
  boxShadow: null,
  activeBoxShadow: "0 0 2px 3px #3bf",
  height: 28,
  width: 56
};

exports.default = ReactSwitch;


/***/ }),

/***/ "./node_modules/react-switch/index.js":
/*!********************************************!*\
  !*** ./node_modules/react-switch/index.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

if (false) {} else {
  module.exports = __webpack_require__(/*! ./dist/react-switch.dev.js */ "./node_modules/react-switch/dist/react-switch.dev.js");
}


/***/ }),

/***/ "./node_modules/react-transition-group/Transition.js":
/*!***********************************************************!*\
  !*** ./node_modules/react-transition-group/Transition.js ***!
  \***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = void 0;

var PropTypes = _interopRequireWildcard(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _reactDom = _interopRequireDefault(__webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js"));

var _reactLifecyclesCompat = __webpack_require__(/*! react-lifecycles-compat */ "./node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js");

var _PropTypes = __webpack_require__(/*! ./utils/PropTypes */ "./node_modules/react-transition-group/utils/PropTypes.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }

function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }

function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }

var UNMOUNTED = 'unmounted';
exports.UNMOUNTED = UNMOUNTED;
var EXITED = 'exited';
exports.EXITED = EXITED;
var ENTERING = 'entering';
exports.ENTERING = ENTERING;
var ENTERED = 'entered';
exports.ENTERED = ENTERED;
var EXITING = 'exiting';
/**
 * The Transition component lets you describe a transition from one component
 * state to another _over time_ with a simple declarative API. Most commonly
 * it's used to animate the mounting and unmounting of a component, but can also
 * be used to describe in-place transition states as well.
 *
 * By default the `Transition` component does not alter the behavior of the
 * component it renders, it only tracks "enter" and "exit" states for the components.
 * It's up to you to give meaning and effect to those states. For example we can
 * add styles to a component when it enters or exits:
 *
 * ```jsx
 * import Transition from 'react-transition-group/Transition';
 *
 * const duration = 300;
 *
 * const defaultStyle = {
 *   transition: `opacity ${duration}ms ease-in-out`,
 *   opacity: 0,
 * }
 *
 * const transitionStyles = {
 *   entering: { opacity: 0 },
 *   entered:  { opacity: 1 },
 * };
 *
 * const Fade = ({ in: inProp }) => (
 *   <Transition in={inProp} timeout={duration}>
 *     {(state) => (
 *       <div style={{
 *         ...defaultStyle,
 *         ...transitionStyles[state]
 *       }}>
 *         I'm a fade Transition!
 *       </div>
 *     )}
 *   </Transition>
 * );
 * ```
 *
 * As noted the `Transition` component doesn't _do_ anything by itself to its child component.
 * What it does do is track transition states over time so you can update the
 * component (such as by adding styles or classes) when it changes states.
 *
 * There are 4 main states a Transition can be in:
 *  - `'entering'`
 *  - `'entered'`
 *  - `'exiting'`
 *  - `'exited'`
 *
 * Transition state is toggled via the `in` prop. When `true` the component begins the
 * "Enter" stage. During this stage, the component will shift from its current transition state,
 * to `'entering'` for the duration of the transition and then to the `'entered'` stage once
 * it's complete. Let's take the following example:
 *
 * ```jsx
 * state = { in: false };
 *
 * toggleEnterState = () => {
 *   this.setState({ in: true });
 * }
 *
 * render() {
 *   return (
 *     <div>
 *       <Transition in={this.state.in} timeout={500} />
 *       <button onClick={this.toggleEnterState}>Click to Enter</button>
 *     </div>
 *   );
 * }
 * ```
 *
 * When the button is clicked the component will shift to the `'entering'` state and
 * stay there for 500ms (the value of `timeout`) before it finally switches to `'entered'`.
 *
 * When `in` is `false` the same thing happens except the state moves from `'exiting'` to `'exited'`.
 *
 * ## Timing
 *
 * Timing is often the trickiest part of animation, mistakes can result in slight delays
 * that are hard to pin down. A common example is when you want to add an exit transition,
 * you should set the desired final styles when the state is `'exiting'`. That's when the
 * transition to those styles will start and, if you matched the `timeout` prop with the
 * CSS Transition duration, it will end exactly when the state changes to `'exited'`.
 *
 * > **Note**: For simpler transitions the `Transition` component might be enough, but
 * > take into account that it's platform-agnostic, while the `CSSTransition` component
 * > [forces reflows](https://github.com/reactjs/react-transition-group/blob/5007303e729a74be66a21c3e2205e4916821524b/src/CSSTransition.js#L208-L215)
 * > in order to make more complex transitions more predictable. For example, even though
 * > classes `example-enter` and `example-enter-active` are applied immediately one after
 * > another, you can still transition from one to the other because of the forced reflow
 * > (read [this issue](https://github.com/reactjs/react-transition-group/issues/159#issuecomment-322761171)
 * > for more info). Take this into account when choosing between `Transition` and
 * > `CSSTransition`.
 */

exports.EXITING = EXITING;

var Transition =
/*#__PURE__*/
function (_React$Component) {
  _inheritsLoose(Transition, _React$Component);

  function Transition(props, context) {
    var _this;

    _this = _React$Component.call(this, props, context) || this;
    var parentGroup = context.transitionGroup; // In the context of a TransitionGroup all enters are really appears

    var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;
    var initialStatus;
    _this.appearStatus = null;

    if (props.in) {
      if (appear) {
        initialStatus = EXITED;
        _this.appearStatus = ENTERING;
      } else {
        initialStatus = ENTERED;
      }
    } else {
      if (props.unmountOnExit || props.mountOnEnter) {
        initialStatus = UNMOUNTED;
      } else {
        initialStatus = EXITED;
      }
    }

    _this.state = {
      status: initialStatus
    };
    _this.nextCallback = null;
    return _this;
  }

  var _proto = Transition.prototype;

  _proto.getChildContext = function getChildContext() {
    return {
      transitionGroup: null // allows for nested Transitions

    };
  };

  Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {
    var nextIn = _ref.in;

    if (nextIn && prevState.status === UNMOUNTED) {
      return {
        status: EXITED
      };
    }

    return null;
  }; // getSnapshotBeforeUpdate(prevProps) {
  //   let nextStatus = null
  //   if (prevProps !== this.props) {
  //     const { status } = this.state
  //     if (this.props.in) {
  //       if (status !== ENTERING && status !== ENTERED) {
  //         nextStatus = ENTERING
  //       }
  //     } else {
  //       if (status === ENTERING || status === ENTERED) {
  //         nextStatus = EXITING
  //       }
  //     }
  //   }
  //   return { nextStatus }
  // }


  _proto.componentDidMount = function componentDidMount() {
    this.updateStatus(true, this.appearStatus);
  };

  _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
    var nextStatus = null;

    if (prevProps !== this.props) {
      var status = this.state.status;

      if (this.props.in) {
        if (status !== ENTERING && status !== ENTERED) {
          nextStatus = ENTERING;
        }
      } else {
        if (status === ENTERING || status === ENTERED) {
          nextStatus = EXITING;
        }
      }
    }

    this.updateStatus(false, nextStatus);
  };

  _proto.componentWillUnmount = function componentWillUnmount() {
    this.cancelNextCallback();
  };

  _proto.getTimeouts = function getTimeouts() {
    var timeout = this.props.timeout;
    var exit, enter, appear;
    exit = enter = appear = timeout;

    if (timeout != null && typeof timeout !== 'number') {
      exit = timeout.exit;
      enter = timeout.enter;
      appear = timeout.appear;
    }

    return {
      exit: exit,
      enter: enter,
      appear: appear
    };
  };

  _proto.updateStatus = function updateStatus(mounting, nextStatus) {
    if (mounting === void 0) {
      mounting = false;
    }

    if (nextStatus !== null) {
      // nextStatus will always be ENTERING or EXITING.
      this.cancelNextCallback();

      var node = _reactDom.default.findDOMNode(this);

      if (nextStatus === ENTERING) {
        this.performEnter(node, mounting);
      } else {
        this.performExit(node);
      }
    } else if (this.props.unmountOnExit && this.state.status === EXITED) {
      this.setState({
        status: UNMOUNTED
      });
    }
  };

  _proto.performEnter = function performEnter(node, mounting) {
    var _this2 = this;

    var enter = this.props.enter;
    var appearing = this.context.transitionGroup ? this.context.transitionGroup.isMounting : mounting;
    var timeouts = this.getTimeouts(); // no enter animation skip right to ENTERED
    // if we are mounting and running this it means appear _must_ be set

    if (!mounting && !enter) {
      this.safeSetState({
        status: ENTERED
      }, function () {
        _this2.props.onEntered(node);
      });
      return;
    }

    this.props.onEnter(node, appearing);
    this.safeSetState({
      status: ENTERING
    }, function () {
      _this2.props.onEntering(node, appearing); // FIXME: appear timeout?


      _this2.onTransitionEnd(node, timeouts.enter, function () {
        _this2.safeSetState({
          status: ENTERED
        }, function () {
          _this2.props.onEntered(node, appearing);
        });
      });
    });
  };

  _proto.performExit = function performExit(node) {
    var _this3 = this;

    var exit = this.props.exit;
    var timeouts = this.getTimeouts(); // no exit animation skip right to EXITED

    if (!exit) {
      this.safeSetState({
        status: EXITED
      }, function () {
        _this3.props.onExited(node);
      });
      return;
    }

    this.props.onExit(node);
    this.safeSetState({
      status: EXITING
    }, function () {
      _this3.props.onExiting(node);

      _this3.onTransitionEnd(node, timeouts.exit, function () {
        _this3.safeSetState({
          status: EXITED
        }, function () {
          _this3.props.onExited(node);
        });
      });
    });
  };

  _proto.cancelNextCallback = function cancelNextCallback() {
    if (this.nextCallback !== null) {
      this.nextCallback.cancel();
      this.nextCallback = null;
    }
  };

  _proto.safeSetState = function safeSetState(nextState, callback) {
    // This shouldn't be necessary, but there are weird race conditions with
    // setState callbacks and unmounting in testing, so always make sure that
    // we can cancel any pending setState callbacks after we unmount.
    callback = this.setNextCallback(callback);
    this.setState(nextState, callback);
  };

  _proto.setNextCallback = function setNextCallback(callback) {
    var _this4 = this;

    var active = true;

    this.nextCallback = function (event) {
      if (active) {
        active = false;
        _this4.nextCallback = null;
        callback(event);
      }
    };

    this.nextCallback.cancel = function () {
      active = false;
    };

    return this.nextCallback;
  };

  _proto.onTransitionEnd = function onTransitionEnd(node, timeout, handler) {
    this.setNextCallback(handler);

    if (node) {
      if (this.props.addEndListener) {
        this.props.addEndListener(node, this.nextCallback);
      }

      if (timeout != null) {
        setTimeout(this.nextCallback, timeout);
      }
    } else {
      setTimeout(this.nextCallback, 0);
    }
  };

  _proto.render = function render() {
    var status = this.state.status;

    if (status === UNMOUNTED) {
      return null;
    }

    var _this$props = this.props,
        children = _this$props.children,
        childProps = _objectWithoutPropertiesLoose(_this$props, ["children"]); // filter props for Transtition


    delete childProps.in;
    delete childProps.mountOnEnter;
    delete childProps.unmountOnExit;
    delete childProps.appear;
    delete childProps.enter;
    delete childProps.exit;
    delete childProps.timeout;
    delete childProps.addEndListener;
    delete childProps.onEnter;
    delete childProps.onEntering;
    delete childProps.onEntered;
    delete childProps.onExit;
    delete childProps.onExiting;
    delete childProps.onExited;

    if (typeof children === 'function') {
      return children(status, childProps);
    }

    var child = _react.default.Children.only(children);

    return _react.default.cloneElement(child, childProps);
  };

  return Transition;
}(_react.default.Component);

Transition.contextTypes = {
  transitionGroup: PropTypes.object
};
Transition.childContextTypes = {
  transitionGroup: function transitionGroup() {}
};
Transition.propTypes =  true ? {
  /**
   * A `function` child can be used instead of a React element.
   * This function is called with the current transition status
   * ('entering', 'entered', 'exiting', 'exited', 'unmounted'), which can be used
   * to apply context specific props to a component.
   *
   * ```jsx
   * <Transition timeout={150}>
   *   {(status) => (
   *     <MyComponent className={`fade fade-${status}`} />
   *   )}
   * </Transition>
   * ```
   */
  children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,

  /**
   * Show the component; triggers the enter or exit states
   */
  in: PropTypes.bool,

  /**
   * By default the child component is mounted immediately along with
   * the parent `Transition` component. If you want to "lazy mount" the component on the
   * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
   * mounted, even on "exited", unless you also specify `unmountOnExit`.
   */
  mountOnEnter: PropTypes.bool,

  /**
   * By default the child component stays mounted after it reaches the `'exited'` state.
   * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
   */
  unmountOnExit: PropTypes.bool,

  /**
   * Normally a component is not transitioned if it is shown when the `<Transition>` component mounts.
   * If you want to transition on the first mount set `appear` to `true`, and the
   * component will transition in as soon as the `<Transition>` mounts.
   *
   * > Note: there are no specific "appear" states. `appear` only adds an additional `enter` transition.
   */
  appear: PropTypes.bool,

  /**
   * Enable or disable enter transitions.
   */
  enter: PropTypes.bool,

  /**
   * Enable or disable exit transitions.
   */
  exit: PropTypes.bool,

  /**
   * The duration of the transition, in milliseconds.
   * Required unless `addEndListener` is provided
   *
   * You may specify a single timeout for all transitions like: `timeout={500}`,
   * or individually like:
   *
   * ```jsx
   * timeout={{
   *  enter: 300,
   *  exit: 500,
   * }}
   * ```
   *
   * @type {number | { enter?: number, exit?: number }}
   */
  timeout: function timeout(props) {
    var pt =  true ? _PropTypes.timeoutsShape : undefined;;
    if (!props.addEndListener) pt = pt.isRequired;

    for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
      args[_key - 1] = arguments[_key];
    }

    return pt.apply(void 0, [props].concat(args));
  },

  /**
   * Add a custom transition end trigger. Called with the transitioning
   * DOM node and a `done` callback. Allows for more fine grained transition end
   * logic. **Note:** Timeouts are still used as a fallback if provided.
   *
   * ```jsx
   * addEndListener={(node, done) => {
   *   // use the css transitionend event to mark the finish of a transition
   *   node.addEventListener('transitionend', done, false);
   * }}
   * ```
   */
  addEndListener: PropTypes.func,

  /**
   * Callback fired before the "entering" status is applied. An extra parameter
   * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
   *
   * @type Function(node: HtmlElement, isAppearing: bool) -> void
   */
  onEnter: PropTypes.func,

  /**
   * Callback fired after the "entering" status is applied. An extra parameter
   * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
   *
   * @type Function(node: HtmlElement, isAppearing: bool)
   */
  onEntering: PropTypes.func,

  /**
   * Callback fired after the "entered" status is applied. An extra parameter
   * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
   *
   * @type Function(node: HtmlElement, isAppearing: bool) -> void
   */
  onEntered: PropTypes.func,

  /**
   * Callback fired before the "exiting" status is applied.
   *
   * @type Function(node: HtmlElement) -> void
   */
  onExit: PropTypes.func,

  /**
   * Callback fired after the "exiting" status is applied.
   *
   * @type Function(node: HtmlElement) -> void
   */
  onExiting: PropTypes.func,

  /**
   * Callback fired after the "exited" status is applied.
   *
   * @type Function(node: HtmlElement) -> void
   */
  onExited: PropTypes.func // Name the function so it is clearer in the documentation

} : undefined;

function noop() {}

Transition.defaultProps = {
  in: false,
  mountOnEnter: false,
  unmountOnExit: false,
  appear: false,
  enter: true,
  exit: true,
  onEnter: noop,
  onEntering: noop,
  onEntered: noop,
  onExit: noop,
  onExiting: noop,
  onExited: noop
};
Transition.UNMOUNTED = 0;
Transition.EXITED = 1;
Transition.ENTERING = 2;
Transition.ENTERED = 3;
Transition.EXITING = 4;

var _default = (0, _reactLifecyclesCompat.polyfill)(Transition);

exports.default = _default;

/***/ }),

/***/ "./node_modules/react-transition-group/utils/PropTypes.js":
/*!****************************************************************!*\
  !*** ./node_modules/react-transition-group/utils/PropTypes.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.transitionTimeout = transitionTimeout;
exports.classNamesShape = exports.timeoutsShape = void 0;

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function transitionTimeout(transitionType) {
  var timeoutPropName = 'transition' + transitionType + 'Timeout';
  var enabledPropName = 'transition' + transitionType;
  return function (props) {
    // If the transition is enabled
    if (props[enabledPropName]) {
      // If no timeout duration is provided
      if (props[timeoutPropName] == null) {
        return new Error(timeoutPropName + ' wasn\'t supplied to CSSTransitionGroup: ' + 'this can cause unreliable animations and won\'t be supported in ' + 'a future version of React. See ' + 'https://fb.me/react-animation-transition-group-timeout for more ' + 'information.'); // If the duration isn't a number
      } else if (typeof props[timeoutPropName] !== 'number') {
        return new Error(timeoutPropName + ' must be a number (in milliseconds)');
      }
    }

    return null;
  };
}

var timeoutsShape = _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({
  enter: _propTypes.default.number,
  exit: _propTypes.default.number
}).isRequired]);

exports.timeoutsShape = timeoutsShape;

var classNamesShape = _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.shape({
  enter: _propTypes.default.string,
  exit: _propTypes.default.string,
  active: _propTypes.default.string
}), _propTypes.default.shape({
  enter: _propTypes.default.string,
  enterDone: _propTypes.default.string,
  enterActive: _propTypes.default.string,
  exit: _propTypes.default.string,
  exitDone: _propTypes.default.string,
  exitActive: _propTypes.default.string
})]);

exports.classNamesShape = classNamesShape;

/***/ }),

/***/ "./node_modules/react/cjs/react.development.js":
/*!*****************************************************!*\
  !*** ./node_modules/react/cjs/react.development.js ***!
  \*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/** @license React v16.6.1
 * react.development.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */





if (true) {
  (function() {
'use strict';

var _assign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js");
var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "./node_modules/prop-types/checkPropTypes.js");

// TODO: this is special because it gets imported during build.

var ReactVersion = '16.6.1';

// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
// nor polyfill, then a plain number is used for performance.
var hasSymbol = typeof Symbol === 'function' && Symbol.for;

var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;

var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;

var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
var FAUX_ITERATOR_SYMBOL = '@@iterator';

function getIteratorFn(maybeIterable) {
  if (maybeIterable === null || typeof maybeIterable !== 'object') {
    return null;
  }
  var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
  if (typeof maybeIterator === 'function') {
    return maybeIterator;
  }
  return null;
}

var enableHooks = false;
// Helps identify side effects in begin-phase lifecycle hooks and setState reducers:


// In some cases, StrictMode should also double-render lifecycles.
// This can be confusing for tests though,
// And it can be bad for performance in production.
// This feature flag can be used to control the behavior:


// To preserve the "Pause on caught exceptions" behavior of the debugger, we
// replay the begin phase of a failed component inside invokeGuardedCallback.


// Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:


// Gather advanced timing metrics for Profiler subtrees.


// Trace which interactions trigger each commit.


// Only used in www builds.


// Only used in www builds.


// React Fire: prevent the value and checked attributes from syncing
// with their related DOM properties


// These APIs will no longer be "unstable" in the upcoming 16.7 release,
// Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
var enableStableConcurrentModeAPIs = false;

/**
 * Use invariant() to assert state which your program assumes to be true.
 *
 * Provide sprintf-style format (only %s is supported) and arguments
 * to provide information about what broke and what you were
 * expecting.
 *
 * The invariant message will be stripped in production, but the invariant
 * will remain to ensure logic does not differ in production.
 */

var validateFormat = function () {};

{
  validateFormat = function (format) {
    if (format === undefined) {
      throw new Error('invariant requires an error message argument');
    }
  };
}

function invariant(condition, format, a, b, c, d, e, f) {
  validateFormat(format);

  if (!condition) {
    var error = void 0;
    if (format === undefined) {
      error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
    } else {
      var args = [a, b, c, d, e, f];
      var argIndex = 0;
      error = new Error(format.replace(/%s/g, function () {
        return args[argIndex++];
      }));
      error.name = 'Invariant Violation';
    }

    error.framesToPop = 1; // we don't care about invariant's own frame
    throw error;
  }
}

// Relying on the `invariant()` implementation lets us
// preserve the format and params in the www builds.

/**
 * Forked from fbjs/warning:
 * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
 *
 * Only change is we use console.warn instead of console.error,
 * and do nothing when 'console' is not supported.
 * This really simplifies the code.
 * ---
 * Similar to invariant but only logs a warning if the condition is not met.
 * This can be used to log issues in development environments in critical
 * paths. Removing the logging code for production environments will keep the
 * same logic and follow the same code paths.
 */

var lowPriorityWarning = function () {};

{
  var printWarning = function (format) {
    for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
      args[_key - 1] = arguments[_key];
    }

    var argIndex = 0;
    var message = 'Warning: ' + format.replace(/%s/g, function () {
      return args[argIndex++];
    });
    if (typeof console !== 'undefined') {
      console.warn(message);
    }
    try {
      // --- Welcome to debugging React ---
      // This error was thrown as a convenience so that you can use this stack
      // to find the callsite that caused this warning to fire.
      throw new Error(message);
    } catch (x) {}
  };

  lowPriorityWarning = function (condition, format) {
    if (format === undefined) {
      throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
    }
    if (!condition) {
      for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
        args[_key2 - 2] = arguments[_key2];
      }

      printWarning.apply(undefined, [format].concat(args));
    }
  };
}

var lowPriorityWarning$1 = lowPriorityWarning;

/**
 * Similar to invariant but only logs a warning if the condition is not met.
 * This can be used to log issues in development environments in critical
 * paths. Removing the logging code for production environments will keep the
 * same logic and follow the same code paths.
 */

var warningWithoutStack = function () {};

{
  warningWithoutStack = function (condition, format) {
    for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
      args[_key - 2] = arguments[_key];
    }

    if (format === undefined) {
      throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
    }
    if (args.length > 8) {
      // Check before the condition to catch violations early.
      throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
    }
    if (condition) {
      return;
    }
    if (typeof console !== 'undefined') {
      var argsWithFormat = args.map(function (item) {
        return '' + item;
      });
      argsWithFormat.unshift('Warning: ' + format);

      // We intentionally don't use spread (or .apply) directly because it
      // breaks IE9: https://github.com/facebook/react/issues/13610
      Function.prototype.apply.call(console.error, console, argsWithFormat);
    }
    try {
      // --- Welcome to debugging React ---
      // This error was thrown as a convenience so that you can use this stack
      // to find the callsite that caused this warning to fire.
      var argIndex = 0;
      var message = 'Warning: ' + format.replace(/%s/g, function () {
        return args[argIndex++];
      });
      throw new Error(message);
    } catch (x) {}
  };
}

var warningWithoutStack$1 = warningWithoutStack;

var didWarnStateUpdateForUnmountedComponent = {};

function warnNoop(publicInstance, callerName) {
  {
    var _constructor = publicInstance.constructor;
    var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
    var warningKey = componentName + '.' + callerName;
    if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
      return;
    }
    warningWithoutStack$1(false, "Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);
    didWarnStateUpdateForUnmountedComponent[warningKey] = true;
  }
}

/**
 * This is the abstract API for an update queue.
 */
var ReactNoopUpdateQueue = {
  /**
   * Checks whether or not this composite component is mounted.
   * @param {ReactClass} publicInstance The instance we want to test.
   * @return {boolean} True if mounted, false otherwise.
   * @protected
   * @final
   */
  isMounted: function (publicInstance) {
    return false;
  },

  /**
   * Forces an update. This should only be invoked when it is known with
   * certainty that we are **not** in a DOM transaction.
   *
   * You may want to call this when you know that some deeper aspect of the
   * component's state has changed but `setState` was not called.
   *
   * This will not invoke `shouldComponentUpdate`, but it will invoke
   * `componentWillUpdate` and `componentDidUpdate`.
   *
   * @param {ReactClass} publicInstance The instance that should rerender.
   * @param {?function} callback Called after component is updated.
   * @param {?string} callerName name of the calling function in the public API.
   * @internal
   */
  enqueueForceUpdate: function (publicInstance, callback, callerName) {
    warnNoop(publicInstance, 'forceUpdate');
  },

  /**
   * Replaces all of the state. Always use this or `setState` to mutate state.
   * You should treat `this.state` as immutable.
   *
   * There is no guarantee that `this.state` will be immediately updated, so
   * accessing `this.state` after calling this method may return the old value.
   *
   * @param {ReactClass} publicInstance The instance that should rerender.
   * @param {object} completeState Next state.
   * @param {?function} callback Called after component is updated.
   * @param {?string} callerName name of the calling function in the public API.
   * @internal
   */
  enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
    warnNoop(publicInstance, 'replaceState');
  },

  /**
   * Sets a subset of the state. This only exists because _pendingState is
   * internal. This provides a merging strategy that is not available to deep
   * properties which is confusing. TODO: Expose pendingState or don't use it
   * during the merge.
   *
   * @param {ReactClass} publicInstance The instance that should rerender.
   * @param {object} partialState Next partial state to be merged with state.
   * @param {?function} callback Called after component is updated.
   * @param {?string} Name of the calling function in the public API.
   * @internal
   */
  enqueueSetState: function (publicInstance, partialState, callback, callerName) {
    warnNoop(publicInstance, 'setState');
  }
};

var emptyObject = {};
{
  Object.freeze(emptyObject);
}

/**
 * Base class helpers for the updating state of a component.
 */
function Component(props, context, updater) {
  this.props = props;
  this.context = context;
  // If a component has string refs, we will assign a different object later.
  this.refs = emptyObject;
  // We initialize the default updater but the real one gets injected by the
  // renderer.
  this.updater = updater || ReactNoopUpdateQueue;
}

Component.prototype.isReactComponent = {};

/**
 * Sets a subset of the state. Always use this to mutate
 * state. You should treat `this.state` as immutable.
 *
 * There is no guarantee that `this.state` will be immediately updated, so
 * accessing `this.state` after calling this method may return the old value.
 *
 * There is no guarantee that calls to `setState` will run synchronously,
 * as they may eventually be batched together.  You can provide an optional
 * callback that will be executed when the call to setState is actually
 * completed.
 *
 * When a function is provided to setState, it will be called at some point in
 * the future (not synchronously). It will be called with the up to date
 * component arguments (state, props, context). These values can be different
 * from this.* because your function may be called after receiveProps but before
 * shouldComponentUpdate, and this new state, props, and context will not yet be
 * assigned to this.
 *
 * @param {object|function} partialState Next partial state or function to
 *        produce next partial state to be merged with current state.
 * @param {?function} callback Called after state is updated.
 * @final
 * @protected
 */
Component.prototype.setState = function (partialState, callback) {
  !(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? invariant(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : void 0;
  this.updater.enqueueSetState(this, partialState, callback, 'setState');
};

/**
 * Forces an update. This should only be invoked when it is known with
 * certainty that we are **not** in a DOM transaction.
 *
 * You may want to call this when you know that some deeper aspect of the
 * component's state has changed but `setState` was not called.
 *
 * This will not invoke `shouldComponentUpdate`, but it will invoke
 * `componentWillUpdate` and `componentDidUpdate`.
 *
 * @param {?function} callback Called after update is complete.
 * @final
 * @protected
 */
Component.prototype.forceUpdate = function (callback) {
  this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
};

/**
 * Deprecated APIs. These APIs used to exist on classic React classes but since
 * we would like to deprecate them, we're not going to move them over to this
 * modern base class. Instead, we define a getter that warns if it's accessed.
 */
{
  var deprecatedAPIs = {
    isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
    replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
  };
  var defineDeprecationWarning = function (methodName, info) {
    Object.defineProperty(Component.prototype, methodName, {
      get: function () {
        lowPriorityWarning$1(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
        return undefined;
      }
    });
  };
  for (var fnName in deprecatedAPIs) {
    if (deprecatedAPIs.hasOwnProperty(fnName)) {
      defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
    }
  }
}

function ComponentDummy() {}
ComponentDummy.prototype = Component.prototype;

/**
 * Convenience component with default shallow equality check for sCU.
 */
function PureComponent(props, context, updater) {
  this.props = props;
  this.context = context;
  // If a component has string refs, we will assign a different object later.
  this.refs = emptyObject;
  this.updater = updater || ReactNoopUpdateQueue;
}

var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
pureComponentPrototype.constructor = PureComponent;
// Avoid an extra prototype jump for these methods.
_assign(pureComponentPrototype, Component.prototype);
pureComponentPrototype.isPureReactComponent = true;

// an immutable object with a single mutable value
function createRef() {
  var refObject = {
    current: null
  };
  {
    Object.seal(refObject);
  }
  return refObject;
}

/**
 * Keeps track of the current owner.
 *
 * The current owner is the component who should own any components that are
 * currently being constructed.
 */
var ReactCurrentOwner = {
  /**
   * @internal
   * @type {ReactComponent}
   */
  current: null,
  currentDispatcher: null
};

var BEFORE_SLASH_RE = /^(.*)[\\\/]/;

var describeComponentFrame = function (name, source, ownerName) {
  var sourceInfo = '';
  if (source) {
    var path = source.fileName;
    var fileName = path.replace(BEFORE_SLASH_RE, '');
    {
      // In DEV, include code for a common special case:
      // prefer "folder/index.js" instead of just "index.js".
      if (/^index\./.test(fileName)) {
        var match = path.match(BEFORE_SLASH_RE);
        if (match) {
          var pathBeforeSlash = match[1];
          if (pathBeforeSlash) {
            var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
            fileName = folderName + '/' + fileName;
          }
        }
      }
    }
    sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
  } else if (ownerName) {
    sourceInfo = ' (created by ' + ownerName + ')';
  }
  return '\n    in ' + (name || 'Unknown') + sourceInfo;
};

var Resolved = 1;


function refineResolvedLazyComponent(lazyComponent) {
  return lazyComponent._status === Resolved ? lazyComponent._result : null;
}

function getWrappedName(outerType, innerType, wrapperName) {
  var functionName = innerType.displayName || innerType.name || '';
  return outerType.displayName || (functionName !== '' ? wrapperName + '(' + functionName + ')' : wrapperName);
}

function getComponentName(type) {
  if (type == null) {
    // Host root, text node or just invalid type.
    return null;
  }
  {
    if (typeof type.tag === 'number') {
      warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
    }
  }
  if (typeof type === 'function') {
    return type.displayName || type.name || null;
  }
  if (typeof type === 'string') {
    return type;
  }
  switch (type) {
    case REACT_CONCURRENT_MODE_TYPE:
      return 'ConcurrentMode';
    case REACT_FRAGMENT_TYPE:
      return 'Fragment';
    case REACT_PORTAL_TYPE:
      return 'Portal';
    case REACT_PROFILER_TYPE:
      return 'Profiler';
    case REACT_STRICT_MODE_TYPE:
      return 'StrictMode';
    case REACT_SUSPENSE_TYPE:
      return 'Suspense';
  }
  if (typeof type === 'object') {
    switch (type.$$typeof) {
      case REACT_CONTEXT_TYPE:
        return 'Context.Consumer';
      case REACT_PROVIDER_TYPE:
        return 'Context.Provider';
      case REACT_FORWARD_REF_TYPE:
        return getWrappedName(type, type.render, 'ForwardRef');
      case REACT_MEMO_TYPE:
        return getComponentName(type.type);
      case REACT_LAZY_TYPE:
        {
          var thenable = type;
          var resolvedThenable = refineResolvedLazyComponent(thenable);
          if (resolvedThenable) {
            return getComponentName(resolvedThenable);
          }
        }
    }
  }
  return null;
}

var ReactDebugCurrentFrame = {};

var currentlyValidatingElement = null;

function setCurrentlyValidatingElement(element) {
  {
    currentlyValidatingElement = element;
  }
}

{
  // Stack implementation injected by the current renderer.
  ReactDebugCurrentFrame.getCurrentStack = null;

  ReactDebugCurrentFrame.getStackAddendum = function () {
    var stack = '';

    // Add an extra top frame while an element is being validated
    if (currentlyValidatingElement) {
      var name = getComponentName(currentlyValidatingElement.type);
      var owner = currentlyValidatingElement._owner;
      stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
    }

    // Delegate to the injected renderer-specific implementation
    var impl = ReactDebugCurrentFrame.getCurrentStack;
    if (impl) {
      stack += impl() || '';
    }

    return stack;
  };
}

var ReactSharedInternals = {
  ReactCurrentOwner: ReactCurrentOwner,
  // Used by renderers to avoid bundling object-assign twice in UMD bundles:
  assign: _assign
};

{
  _assign(ReactSharedInternals, {
    // These should not be included in production.
    ReactDebugCurrentFrame: ReactDebugCurrentFrame,
    // Shim for React DOM 16.0.0 which still destructured (but not used) this.
    // TODO: remove in React 17.0.
    ReactComponentTreeHook: {}
  });
}

/**
 * Similar to invariant but only logs a warning if the condition is not met.
 * This can be used to log issues in development environments in critical
 * paths. Removing the logging code for production environments will keep the
 * same logic and follow the same code paths.
 */

var warning = warningWithoutStack$1;

{
  warning = function (condition, format) {
    if (condition) {
      return;
    }
    var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
    var stack = ReactDebugCurrentFrame.getStackAddendum();
    // eslint-disable-next-line react-internal/warning-and-invariant-args

    for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
      args[_key - 2] = arguments[_key];
    }

    warningWithoutStack$1.apply(undefined, [false, format + '%s'].concat(args, [stack]));
  };
}

var warning$1 = warning;

var hasOwnProperty = Object.prototype.hasOwnProperty;

var RESERVED_PROPS = {
  key: true,
  ref: true,
  __self: true,
  __source: true
};

var specialPropKeyWarningShown = void 0;
var specialPropRefWarningShown = void 0;

function hasValidRef(config) {
  {
    if (hasOwnProperty.call(config, 'ref')) {
      var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
      if (getter && getter.isReactWarning) {
        return false;
      }
    }
  }
  return config.ref !== undefined;
}

function hasValidKey(config) {
  {
    if (hasOwnProperty.call(config, 'key')) {
      var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
      if (getter && getter.isReactWarning) {
        return false;
      }
    }
  }
  return config.key !== undefined;
}

function defineKeyPropWarningGetter(props, displayName) {
  var warnAboutAccessingKey = function () {
    if (!specialPropKeyWarningShown) {
      specialPropKeyWarningShown = true;
      warningWithoutStack$1(false, '%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
    }
  };
  warnAboutAccessingKey.isReactWarning = true;
  Object.defineProperty(props, 'key', {
    get: warnAboutAccessingKey,
    configurable: true
  });
}

function defineRefPropWarningGetter(props, displayName) {
  var warnAboutAccessingRef = function () {
    if (!specialPropRefWarningShown) {
      specialPropRefWarningShown = true;
      warningWithoutStack$1(false, '%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
    }
  };
  warnAboutAccessingRef.isReactWarning = true;
  Object.defineProperty(props, 'ref', {
    get: warnAboutAccessingRef,
    configurable: true
  });
}

/**
 * Factory method to create a new React element. This no longer adheres to
 * the class pattern, so do not use new to call it. Also, no instanceof check
 * will work. Instead test $$typeof field against Symbol.for('react.element') to check
 * if something is a React Element.
 *
 * @param {*} type
 * @param {*} key
 * @param {string|object} ref
 * @param {*} self A *temporary* helper to detect places where `this` is
 * different from the `owner` when React.createElement is called, so that we
 * can warn. We want to get rid of owner and replace string `ref`s with arrow
 * functions, and as long as `this` and owner are the same, there will be no
 * change in behavior.
 * @param {*} source An annotation object (added by a transpiler or otherwise)
 * indicating filename, line number, and/or other information.
 * @param {*} owner
 * @param {*} props
 * @internal
 */
var ReactElement = function (type, key, ref, self, source, owner, props) {
  var element = {
    // This tag allows us to uniquely identify this as a React Element
    $$typeof: REACT_ELEMENT_TYPE,

    // Built-in properties that belong on the element
    type: type,
    key: key,
    ref: ref,
    props: props,

    // Record the component responsible for creating this element.
    _owner: owner
  };

  {
    // The validation flag is currently mutative. We put it on
    // an external backing store so that we can freeze the whole object.
    // This can be replaced with a WeakMap once they are implemented in
    // commonly used development environments.
    element._store = {};

    // To make comparing ReactElements easier for testing purposes, we make
    // the validation flag non-enumerable (where possible, which should
    // include every environment we run tests in), so the test framework
    // ignores it.
    Object.defineProperty(element._store, 'validated', {
      configurable: false,
      enumerable: false,
      writable: true,
      value: false
    });
    // self and source are DEV only properties.
    Object.defineProperty(element, '_self', {
      configurable: false,
      enumerable: false,
      writable: false,
      value: self
    });
    // Two elements created in two different places should be considered
    // equal for testing purposes and therefore we hide it from enumeration.
    Object.defineProperty(element, '_source', {
      configurable: false,
      enumerable: false,
      writable: false,
      value: source
    });
    if (Object.freeze) {
      Object.freeze(element.props);
      Object.freeze(element);
    }
  }

  return element;
};

/**
 * Create and return a new ReactElement of the given type.
 * See https://reactjs.org/docs/react-api.html#createelement
 */
function createElement(type, config, children) {
  var propName = void 0;

  // Reserved names are extracted
  var props = {};

  var key = null;
  var ref = null;
  var self = null;
  var source = null;

  if (config != null) {
    if (hasValidRef(config)) {
      ref = config.ref;
    }
    if (hasValidKey(config)) {
      key = '' + config.key;
    }

    self = config.__self === undefined ? null : config.__self;
    source = config.__source === undefined ? null : config.__source;
    // Remaining properties are added to a new props object
    for (propName in config) {
      if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
        props[propName] = config[propName];
      }
    }
  }

  // Children can be more than one argument, and those are transferred onto
  // the newly allocated props object.
  var childrenLength = arguments.length - 2;
  if (childrenLength === 1) {
    props.children = children;
  } else if (childrenLength > 1) {
    var childArray = Array(childrenLength);
    for (var i = 0; i < childrenLength; i++) {
      childArray[i] = arguments[i + 2];
    }
    {
      if (Object.freeze) {
        Object.freeze(childArray);
      }
    }
    props.children = childArray;
  }

  // Resolve default props
  if (type && type.defaultProps) {
    var defaultProps = type.defaultProps;
    for (propName in defaultProps) {
      if (props[propName] === undefined) {
        props[propName] = defaultProps[propName];
      }
    }
  }
  {
    if (key || ref) {
      var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
      if (key) {
        defineKeyPropWarningGetter(props, displayName);
      }
      if (ref) {
        defineRefPropWarningGetter(props, displayName);
      }
    }
  }
  return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
}

/**
 * Return a function that produces ReactElements of a given type.
 * See https://reactjs.org/docs/react-api.html#createfactory
 */


function cloneAndReplaceKey(oldElement, newKey) {
  var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);

  return newElement;
}

/**
 * Clone and return a new ReactElement using element as the starting point.
 * See https://reactjs.org/docs/react-api.html#cloneelement
 */
function cloneElement(element, config, children) {
  !!(element === null || element === undefined) ? invariant(false, 'React.cloneElement(...): The argument must be a React element, but you passed %s.', element) : void 0;

  var propName = void 0;

  // Original props are copied
  var props = _assign({}, element.props);

  // Reserved names are extracted
  var key = element.key;
  var ref = element.ref;
  // Self is preserved since the owner is preserved.
  var self = element._self;
  // Source is preserved since cloneElement is unlikely to be targeted by a
  // transpiler, and the original source is probably a better indicator of the
  // true owner.
  var source = element._source;

  // Owner will be preserved, unless ref is overridden
  var owner = element._owner;

  if (config != null) {
    if (hasValidRef(config)) {
      // Silently steal the ref from the parent.
      ref = config.ref;
      owner = ReactCurrentOwner.current;
    }
    if (hasValidKey(config)) {
      key = '' + config.key;
    }

    // Remaining properties override existing props
    var defaultProps = void 0;
    if (element.type && element.type.defaultProps) {
      defaultProps = element.type.defaultProps;
    }
    for (propName in config) {
      if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
        if (config[propName] === undefined && defaultProps !== undefined) {
          // Resolve default props
          props[propName] = defaultProps[propName];
        } else {
          props[propName] = config[propName];
        }
      }
    }
  }

  // Children can be more than one argument, and those are transferred onto
  // the newly allocated props object.
  var childrenLength = arguments.length - 2;
  if (childrenLength === 1) {
    props.children = children;
  } else if (childrenLength > 1) {
    var childArray = Array(childrenLength);
    for (var i = 0; i < childrenLength; i++) {
      childArray[i] = arguments[i + 2];
    }
    props.children = childArray;
  }

  return ReactElement(element.type, key, ref, self, source, owner, props);
}

/**
 * Verifies the object is a ReactElement.
 * See https://reactjs.org/docs/react-api.html#isvalidelement
 * @param {?object} object
 * @return {boolean} True if `object` is a ReactElement.
 * @final
 */
function isValidElement(object) {
  return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
}

var SEPARATOR = '.';
var SUBSEPARATOR = ':';

/**
 * Escape and wrap key so it is safe to use as a reactid
 *
 * @param {string} key to be escaped.
 * @return {string} the escaped key.
 */
function escape(key) {
  var escapeRegex = /[=:]/g;
  var escaperLookup = {
    '=': '=0',
    ':': '=2'
  };
  var escapedString = ('' + key).replace(escapeRegex, function (match) {
    return escaperLookup[match];
  });

  return '$' + escapedString;
}

/**
 * TODO: Test that a single child and an array with one item have the same key
 * pattern.
 */

var didWarnAboutMaps = false;

var userProvidedKeyEscapeRegex = /\/+/g;
function escapeUserProvidedKey(text) {
  return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
}

var POOL_SIZE = 10;
var traverseContextPool = [];
function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {
  if (traverseContextPool.length) {
    var traverseContext = traverseContextPool.pop();
    traverseContext.result = mapResult;
    traverseContext.keyPrefix = keyPrefix;
    traverseContext.func = mapFunction;
    traverseContext.context = mapContext;
    traverseContext.count = 0;
    return traverseContext;
  } else {
    return {
      result: mapResult,
      keyPrefix: keyPrefix,
      func: mapFunction,
      context: mapContext,
      count: 0
    };
  }
}

function releaseTraverseContext(traverseContext) {
  traverseContext.result = null;
  traverseContext.keyPrefix = null;
  traverseContext.func = null;
  traverseContext.context = null;
  traverseContext.count = 0;
  if (traverseContextPool.length < POOL_SIZE) {
    traverseContextPool.push(traverseContext);
  }
}

/**
 * @param {?*} children Children tree container.
 * @param {!string} nameSoFar Name of the key path so far.
 * @param {!function} callback Callback to invoke with each child found.
 * @param {?*} traverseContext Used to pass information throughout the traversal
 * process.
 * @return {!number} The number of children in this subtree.
 */
function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
  var type = typeof children;

  if (type === 'undefined' || type === 'boolean') {
    // All of the above are perceived as null.
    children = null;
  }

  var invokeCallback = false;

  if (children === null) {
    invokeCallback = true;
  } else {
    switch (type) {
      case 'string':
      case 'number':
        invokeCallback = true;
        break;
      case 'object':
        switch (children.$$typeof) {
          case REACT_ELEMENT_TYPE:
          case REACT_PORTAL_TYPE:
            invokeCallback = true;
        }
    }
  }

  if (invokeCallback) {
    callback(traverseContext, children,
    // If it's the only child, treat the name as if it was wrapped in an array
    // so that it's consistent if the number of children grows.
    nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
    return 1;
  }

  var child = void 0;
  var nextName = void 0;
  var subtreeCount = 0; // Count of children found in the current subtree.
  var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;

  if (Array.isArray(children)) {
    for (var i = 0; i < children.length; i++) {
      child = children[i];
      nextName = nextNamePrefix + getComponentKey(child, i);
      subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
    }
  } else {
    var iteratorFn = getIteratorFn(children);
    if (typeof iteratorFn === 'function') {
      {
        // Warn about using Maps as children
        if (iteratorFn === children.entries) {
          !didWarnAboutMaps ? warning$1(false, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.') : void 0;
          didWarnAboutMaps = true;
        }
      }

      var iterator = iteratorFn.call(children);
      var step = void 0;
      var ii = 0;
      while (!(step = iterator.next()).done) {
        child = step.value;
        nextName = nextNamePrefix + getComponentKey(child, ii++);
        subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
      }
    } else if (type === 'object') {
      var addendum = '';
      {
        addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum();
      }
      var childrenString = '' + children;
      invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum);
    }
  }

  return subtreeCount;
}

/**
 * Traverses children that are typically specified as `props.children`, but
 * might also be specified through attributes:
 *
 * - `traverseAllChildren(this.props.children, ...)`
 * - `traverseAllChildren(this.props.leftPanelChildren, ...)`
 *
 * The `traverseContext` is an optional argument that is passed through the
 * entire traversal. It can be used to store accumulations or anything else that
 * the callback might find relevant.
 *
 * @param {?*} children Children tree object.
 * @param {!function} callback To invoke upon traversing each child.
 * @param {?*} traverseContext Context for traversal.
 * @return {!number} The number of children in this subtree.
 */
function traverseAllChildren(children, callback, traverseContext) {
  if (children == null) {
    return 0;
  }

  return traverseAllChildrenImpl(children, '', callback, traverseContext);
}

/**
 * Generate a key string that identifies a component within a set.
 *
 * @param {*} component A component that could contain a manual key.
 * @param {number} index Index that is used if a manual key is not provided.
 * @return {string}
 */
function getComponentKey(component, index) {
  // Do some typechecking here since we call this blindly. We want to ensure
  // that we don't block potential future ES APIs.
  if (typeof component === 'object' && component !== null && component.key != null) {
    // Explicit key
    return escape(component.key);
  }
  // Implicit key determined by the index in the set
  return index.toString(36);
}

function forEachSingleChild(bookKeeping, child, name) {
  var func = bookKeeping.func,
      context = bookKeeping.context;

  func.call(context, child, bookKeeping.count++);
}

/**
 * Iterates through children that are typically specified as `props.children`.
 *
 * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
 *
 * The provided forEachFunc(child, index) will be called for each
 * leaf child.
 *
 * @param {?*} children Children tree container.
 * @param {function(*, int)} forEachFunc
 * @param {*} forEachContext Context for forEachContext.
 */
function forEachChildren(children, forEachFunc, forEachContext) {
  if (children == null) {
    return children;
  }
  var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);
  traverseAllChildren(children, forEachSingleChild, traverseContext);
  releaseTraverseContext(traverseContext);
}

function mapSingleChildIntoContext(bookKeeping, child, childKey) {
  var result = bookKeeping.result,
      keyPrefix = bookKeeping.keyPrefix,
      func = bookKeeping.func,
      context = bookKeeping.context;


  var mappedChild = func.call(context, child, bookKeeping.count++);
  if (Array.isArray(mappedChild)) {
    mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) {
      return c;
    });
  } else if (mappedChild != null) {
    if (isValidElement(mappedChild)) {
      mappedChild = cloneAndReplaceKey(mappedChild,
      // Keep both the (mapped) and old keys if they differ, just as
      // traverseAllChildren used to do for objects as children
      keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);
    }
    result.push(mappedChild);
  }
}

function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
  var escapedPrefix = '';
  if (prefix != null) {
    escapedPrefix = escapeUserProvidedKey(prefix) + '/';
  }
  var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
  traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
  releaseTraverseContext(traverseContext);
}

/**
 * Maps children that are typically specified as `props.children`.
 *
 * See https://reactjs.org/docs/react-api.html#reactchildrenmap
 *
 * The provided mapFunction(child, key, index) will be called for each
 * leaf child.
 *
 * @param {?*} children Children tree container.
 * @param {function(*, int)} func The map function.
 * @param {*} context Context for mapFunction.
 * @return {object} Object containing the ordered map of results.
 */
function mapChildren(children, func, context) {
  if (children == null) {
    return children;
  }
  var result = [];
  mapIntoWithKeyPrefixInternal(children, result, null, func, context);
  return result;
}

/**
 * Count the number of children that are typically specified as
 * `props.children`.
 *
 * See https://reactjs.org/docs/react-api.html#reactchildrencount
 *
 * @param {?*} children Children tree container.
 * @return {number} The number of children.
 */
function countChildren(children) {
  return traverseAllChildren(children, function () {
    return null;
  }, null);
}

/**
 * Flatten a children object (typically specified as `props.children`) and
 * return an array with appropriately re-keyed children.
 *
 * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
 */
function toArray(children) {
  var result = [];
  mapIntoWithKeyPrefixInternal(children, result, null, function (child) {
    return child;
  });
  return result;
}

/**
 * Returns the first child in a collection of children and verifies that there
 * is only one child in the collection.
 *
 * See https://reactjs.org/docs/react-api.html#reactchildrenonly
 *
 * The current implementation of this function assumes that a single child gets
 * passed without a wrapper, but the purpose of this helper function is to
 * abstract away the particular structure of children.
 *
 * @param {?object} children Child collection structure.
 * @return {ReactElement} The first and only `ReactElement` contained in the
 * structure.
 */
function onlyChild(children) {
  !isValidElement(children) ? invariant(false, 'React.Children.only expected to receive a single React element child.') : void 0;
  return children;
}

function createContext(defaultValue, calculateChangedBits) {
  if (calculateChangedBits === undefined) {
    calculateChangedBits = null;
  } else {
    {
      !(calculateChangedBits === null || typeof calculateChangedBits === 'function') ? warningWithoutStack$1(false, 'createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits) : void 0;
    }
  }

  var context = {
    $$typeof: REACT_CONTEXT_TYPE,
    _calculateChangedBits: calculateChangedBits,
    // As a workaround to support multiple concurrent renderers, we categorize
    // some renderers as primary and others as secondary. We only expect
    // there to be two concurrent renderers at most: React Native (primary) and
    // Fabric (secondary); React DOM (primary) and React ART (secondary).
    // Secondary renderers store their context values on separate fields.
    _currentValue: defaultValue,
    _currentValue2: defaultValue,
    // These are circular
    Provider: null,
    Consumer: null
  };

  context.Provider = {
    $$typeof: REACT_PROVIDER_TYPE,
    _context: context
  };

  var hasWarnedAboutUsingNestedContextConsumers = false;
  var hasWarnedAboutUsingConsumerProvider = false;

  {
    // A separate object, but proxies back to the original context object for
    // backwards compatibility. It has a different $$typeof, so we can properly
    // warn for the incorrect usage of Context as a Consumer.
    var Consumer = {
      $$typeof: REACT_CONTEXT_TYPE,
      _context: context,
      _calculateChangedBits: context._calculateChangedBits
    };
    // $FlowFixMe: Flow complains about not setting a value, which is intentional here
    Object.defineProperties(Consumer, {
      Provider: {
        get: function () {
          if (!hasWarnedAboutUsingConsumerProvider) {
            hasWarnedAboutUsingConsumerProvider = true;
            warning$1(false, 'Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');
          }
          return context.Provider;
        },
        set: function (_Provider) {
          context.Provider = _Provider;
        }
      },
      _currentValue: {
        get: function () {
          return context._currentValue;
        },
        set: function (_currentValue) {
          context._currentValue = _currentValue;
        }
      },
      _currentValue2: {
        get: function () {
          return context._currentValue2;
        },
        set: function (_currentValue2) {
          context._currentValue2 = _currentValue2;
        }
      },
      Consumer: {
        get: function () {
          if (!hasWarnedAboutUsingNestedContextConsumers) {
            hasWarnedAboutUsingNestedContextConsumers = true;
            warning$1(false, 'Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
          }
          return context.Consumer;
        }
      }
    });
    // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
    context.Consumer = Consumer;
  }

  {
    context._currentRenderer = null;
    context._currentRenderer2 = null;
  }

  return context;
}

function lazy(ctor) {
  return {
    $$typeof: REACT_LAZY_TYPE,
    _ctor: ctor,
    // React uses these fields to store the result.
    _status: -1,
    _result: null
  };
}

function forwardRef(render) {
  {
    if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
      warningWithoutStack$1(false, 'forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
    } else if (typeof render !== 'function') {
      warningWithoutStack$1(false, 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
    } else {
      !(
      // Do not warn for 0 arguments because it could be due to usage of the 'arguments' object
      render.length === 0 || render.length === 2) ? warningWithoutStack$1(false, 'forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.') : void 0;
    }

    if (render != null) {
      !(render.defaultProps == null && render.propTypes == null) ? warningWithoutStack$1(false, 'forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?') : void 0;
    }
  }

  return {
    $$typeof: REACT_FORWARD_REF_TYPE,
    render: render
  };
}

function isValidElementType(type) {
  return typeof type === 'string' || typeof type === 'function' ||
  // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
  type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE);
}

function memo(type, compare) {
  {
    if (!isValidElementType(type)) {
      warningWithoutStack$1(false, 'memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
    }
  }
  return {
    $$typeof: REACT_MEMO_TYPE,
    type: type,
    compare: compare === undefined ? null : compare
  };
}

function resolveDispatcher() {
  var dispatcher = ReactCurrentOwner.currentDispatcher;
  !(dispatcher !== null) ? invariant(false, 'Hooks can only be called inside the body of a function component.') : void 0;
  return dispatcher;
}

function useContext(Context, observedBits) {
  var dispatcher = resolveDispatcher();
  {
    // TODO: add a more generic warning for invalid values.
    if (Context._context !== undefined) {
      var realContext = Context._context;
      // Don't deduplicate because this legitimately causes bugs
      // and nobody should be using this in existing code.
      if (realContext.Consumer === Context) {
        warning$1(false, 'Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');
      } else if (realContext.Provider === Context) {
        warning$1(false, 'Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
      }
    }
  }
  return dispatcher.useContext(Context, observedBits);
}

function useState(initialState) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useState(initialState);
}

function useReducer(reducer, initialState, initialAction) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useReducer(reducer, initialState, initialAction);
}

function useRef(initialValue) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useRef(initialValue);
}

function useEffect(create, inputs) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useEffect(create, inputs);
}

function useMutationEffect(create, inputs) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useMutationEffect(create, inputs);
}

function useLayoutEffect(create, inputs) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useLayoutEffect(create, inputs);
}

function useCallback(callback, inputs) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useCallback(callback, inputs);
}

function useMemo(create, inputs) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useMemo(create, inputs);
}

function useImperativeMethods(ref, create, inputs) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useImperativeMethods(ref, create, inputs);
}

/**
 * ReactElementValidator provides a wrapper around a element factory
 * which validates the props passed to the element. This is intended to be
 * used only in DEV and could be replaced by a static type checker for languages
 * that support it.
 */

var propTypesMisspellWarningShown = void 0;

{
  propTypesMisspellWarningShown = false;
}

function getDeclarationErrorAddendum() {
  if (ReactCurrentOwner.current) {
    var name = getComponentName(ReactCurrentOwner.current.type);
    if (name) {
      return '\n\nCheck the render method of `' + name + '`.';
    }
  }
  return '';
}

function getSourceInfoErrorAddendum(elementProps) {
  if (elementProps !== null && elementProps !== undefined && elementProps.__source !== undefined) {
    var source = elementProps.__source;
    var fileName = source.fileName.replace(/^.*[\\\/]/, '');
    var lineNumber = source.lineNumber;
    return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
  }
  return '';
}

/**
 * Warn if there's no key explicitly set on dynamic arrays of children or
 * object keys are not valid. This allows us to keep track of children between
 * updates.
 */
var ownerHasKeyUseWarning = {};

function getCurrentComponentErrorInfo(parentType) {
  var info = getDeclarationErrorAddendum();

  if (!info) {
    var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
    if (parentName) {
      info = '\n\nCheck the top-level render call using <' + parentName + '>.';
    }
  }
  return info;
}

/**
 * Warn if the element doesn't have an explicit key assigned to it.
 * This element is in an array. The array could grow and shrink or be
 * reordered. All children that haven't already been validated are required to
 * have a "key" property assigned to it. Error statuses are cached so a warning
 * will only be shown once.
 *
 * @internal
 * @param {ReactElement} element Element that requires a key.
 * @param {*} parentType element's parent's type.
 */
function validateExplicitKey(element, parentType) {
  if (!element._store || element._store.validated || element.key != null) {
    return;
  }
  element._store.validated = true;

  var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
  if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
    return;
  }
  ownerHasKeyUseWarning[currentComponentErrorInfo] = true;

  // Usually the current owner is the offender, but if it accepts children as a
  // property, it may be the creator of the child that's responsible for
  // assigning it a key.
  var childOwner = '';
  if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
    // Give the component that originally created this child.
    childOwner = ' It was passed a child from ' + getComponentName(element._owner.type) + '.';
  }

  setCurrentlyValidatingElement(element);
  {
    warning$1(false, 'Each child in an array or iterator should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner);
  }
  setCurrentlyValidatingElement(null);
}

/**
 * Ensure that every element either is passed in a static location, in an
 * array with an explicit keys property defined, or in an object literal
 * with valid key property.
 *
 * @internal
 * @param {ReactNode} node Statically passed child of any type.
 * @param {*} parentType node's parent's type.
 */
function validateChildKeys(node, parentType) {
  if (typeof node !== 'object') {
    return;
  }
  if (Array.isArray(node)) {
    for (var i = 0; i < node.length; i++) {
      var child = node[i];
      if (isValidElement(child)) {
        validateExplicitKey(child, parentType);
      }
    }
  } else if (isValidElement(node)) {
    // This element was passed in a valid location.
    if (node._store) {
      node._store.validated = true;
    }
  } else if (node) {
    var iteratorFn = getIteratorFn(node);
    if (typeof iteratorFn === 'function') {
      // Entry iterators used to provide implicit keys,
      // but now we print a separate warning for them later.
      if (iteratorFn !== node.entries) {
        var iterator = iteratorFn.call(node);
        var step = void 0;
        while (!(step = iterator.next()).done) {
          if (isValidElement(step.value)) {
            validateExplicitKey(step.value, parentType);
          }
        }
      }
    }
  }
}

/**
 * Given an element, validate that its props follow the propTypes definition,
 * provided by the type.
 *
 * @param {ReactElement} element
 */
function validatePropTypes(element) {
  var type = element.type;
  var name = void 0,
      propTypes = void 0;
  if (typeof type === 'function') {
    // Class or function component
    name = type.displayName || type.name;
    propTypes = type.propTypes;
  } else if (typeof type === 'object' && type !== null && type.$$typeof === REACT_FORWARD_REF_TYPE) {
    // ForwardRef
    var functionName = type.render.displayName || type.render.name || '';
    name = type.displayName || (functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef');
    propTypes = type.propTypes;
  } else {
    return;
  }
  if (propTypes) {
    setCurrentlyValidatingElement(element);
    checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum);
    setCurrentlyValidatingElement(null);
  } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
    propTypesMisspellWarningShown = true;
    warningWithoutStack$1(false, 'Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
  }
  if (typeof type.getDefaultProps === 'function') {
    !type.getDefaultProps.isReactClassApproved ? warningWithoutStack$1(false, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0;
  }
}

/**
 * Given a fragment, validate that it can only be provided with fragment props
 * @param {ReactElement} fragment
 */
function validateFragmentProps(fragment) {
  setCurrentlyValidatingElement(fragment);

  var keys = Object.keys(fragment.props);
  for (var i = 0; i < keys.length; i++) {
    var key = keys[i];
    if (key !== 'children' && key !== 'key') {
      warning$1(false, 'Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
      break;
    }
  }

  if (fragment.ref !== null) {
    warning$1(false, 'Invalid attribute `ref` supplied to `React.Fragment`.');
  }

  setCurrentlyValidatingElement(null);
}

function createElementWithValidation(type, props, children) {
  var validType = isValidElementType(type);

  // We warn in this case but don't throw. We expect the element creation to
  // succeed and there will likely be errors in render.
  if (!validType) {
    var info = '';
    if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
      info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
    }

    var sourceInfo = getSourceInfoErrorAddendum(props);
    if (sourceInfo) {
      info += sourceInfo;
    } else {
      info += getDeclarationErrorAddendum();
    }

    var typeString = void 0;
    if (type === null) {
      typeString = 'null';
    } else if (Array.isArray(type)) {
      typeString = 'array';
    } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
      typeString = '<' + (getComponentName(type.type) || 'Unknown') + ' />';
      info = ' Did you accidentally export a JSX literal instead of a component?';
    } else {
      typeString = typeof type;
    }

    warning$1(false, 'React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
  }

  var element = createElement.apply(this, arguments);

  // The result can be nullish if a mock or a custom function is used.
  // TODO: Drop this when these are no longer allowed as the type argument.
  if (element == null) {
    return element;
  }

  // Skip key warning if the type isn't valid since our key validation logic
  // doesn't expect a non-string/function type and can throw confusing errors.
  // We don't want exception behavior to differ between dev and prod.
  // (Rendering will throw with a helpful message and as soon as the type is
  // fixed, the key warnings will appear.)
  if (validType) {
    for (var i = 2; i < arguments.length; i++) {
      validateChildKeys(arguments[i], type);
    }
  }

  if (type === REACT_FRAGMENT_TYPE) {
    validateFragmentProps(element);
  } else {
    validatePropTypes(element);
  }

  return element;
}

function createFactoryWithValidation(type) {
  var validatedFactory = createElementWithValidation.bind(null, type);
  validatedFactory.type = type;
  // Legacy hook: remove it
  {
    Object.defineProperty(validatedFactory, 'type', {
      enumerable: false,
      get: function () {
        lowPriorityWarning$1(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
        Object.defineProperty(this, 'type', {
          value: type
        });
        return type;
      }
    });
  }

  return validatedFactory;
}

function cloneElementWithValidation(element, props, children) {
  var newElement = cloneElement.apply(this, arguments);
  for (var i = 2; i < arguments.length; i++) {
    validateChildKeys(arguments[i], newElement.type);
  }
  validatePropTypes(newElement);
  return newElement;
}

var React = {
  Children: {
    map: mapChildren,
    forEach: forEachChildren,
    count: countChildren,
    toArray: toArray,
    only: onlyChild
  },

  createRef: createRef,
  Component: Component,
  PureComponent: PureComponent,

  createContext: createContext,
  forwardRef: forwardRef,
  lazy: lazy,
  memo: memo,

  Fragment: REACT_FRAGMENT_TYPE,
  StrictMode: REACT_STRICT_MODE_TYPE,
  Suspense: REACT_SUSPENSE_TYPE,

  createElement: createElementWithValidation,
  cloneElement: cloneElementWithValidation,
  createFactory: createFactoryWithValidation,
  isValidElement: isValidElement,

  version: ReactVersion,

  __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ReactSharedInternals
};

if (enableStableConcurrentModeAPIs) {
  React.ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
  React.Profiler = REACT_PROFILER_TYPE;
} else {
  React.unstable_ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
  React.unstable_Profiler = REACT_PROFILER_TYPE;
}

if (enableHooks) {
  React.useCallback = useCallback;
  React.useContext = useContext;
  React.useEffect = useEffect;
  React.useImperativeMethods = useImperativeMethods;
  React.useLayoutEffect = useLayoutEffect;
  React.useMemo = useMemo;
  React.useMutationEffect = useMutationEffect;
  React.useReducer = useReducer;
  React.useRef = useRef;
  React.useState = useState;
}



var React$2 = Object.freeze({
	default: React
});

var React$3 = ( React$2 && React ) || React$2;

// TODO: decide on the top-level export form.
// This is hacky but makes it work with both Rollup and Jest.
var react = React$3.default || React$3;

module.exports = react;
  })();
}


/***/ }),

/***/ "./node_modules/react/index.js":
/*!*************************************!*\
  !*** ./node_modules/react/index.js ***!
  \*************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


if (false) {} else {
  module.exports = __webpack_require__(/*! ./cjs/react.development.js */ "./node_modules/react/cjs/react.development.js");
}


/***/ }),

/***/ "./node_modules/reactabular-table/dist/body-row.js":
/*!*********************************************************!*\
  !*** ./node_modules/reactabular-table/dist/body-row.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _isFunction2 = __webpack_require__(/*! lodash/isFunction */ "./node_modules/lodash/isFunction.js");

var _isFunction3 = _interopRequireDefault(_isFunction2);

var _isEqual2 = __webpack_require__(/*! lodash/isEqual */ "./node_modules/lodash/isEqual.js");

var _isEqual3 = _interopRequireDefault(_isEqual2);

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; };

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 = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _columnsAreEqual = __webpack_require__(/*! ./columns-are-equal */ "./node_modules/reactabular-table/dist/columns-are-equal.js");

var _columnsAreEqual2 = _interopRequireDefault(_columnsAreEqual);

var _evaluateFormatters = __webpack_require__(/*! ./evaluate-formatters */ "./node_modules/reactabular-table/dist/evaluate-formatters.js");

var _evaluateFormatters2 = _interopRequireDefault(_evaluateFormatters);

var _evaluateTransforms = __webpack_require__(/*! ./evaluate-transforms */ "./node_modules/reactabular-table/dist/evaluate-transforms.js");

var _evaluateTransforms2 = _interopRequireDefault(_evaluateTransforms);

var _mergeProps = __webpack_require__(/*! ./merge-props */ "./node_modules/reactabular-table/dist/merge-props.js");

var _mergeProps2 = _interopRequireDefault(_mergeProps);

var _types = __webpack_require__(/*! ./types */ "./node_modules/reactabular-table/dist/types.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

var BodyRow = function (_React$Component) {
  _inherits(BodyRow, _React$Component);

  function BodyRow() {
    _classCallCheck(this, BodyRow);

    return _possibleConstructorReturn(this, (BodyRow.__proto__ || Object.getPrototypeOf(BodyRow)).apply(this, arguments));
  }

  _createClass(BodyRow, [{
    key: 'shouldComponentUpdate',
    value: function shouldComponentUpdate(nextProps) {
      // eslint-disable-line no-unused-vars
      var previousProps = this.props;

      // Check for row based override.
      var renderers = nextProps.renderers;


      if (renderers && renderers.row && renderers.row.shouldComponentUpdate) {
        if ((0, _isFunction3.default)(renderers.row.shouldComponentUpdate)) {
          return renderers.row.shouldComponentUpdate.call(this, nextProps);
        }

        return true;
      }

      return !((0, _columnsAreEqual2.default)(previousProps.columns, nextProps.columns) && (0, _isEqual3.default)(previousProps.rowData, nextProps.rowData));
    }
  }, {
    key: 'render',
    value: function render() {
      var _props = this.props,
          columns = _props.columns,
          renderers = _props.renderers,
          onRow = _props.onRow,
          rowKey = _props.rowKey,
          rowIndex = _props.rowIndex,
          rowData = _props.rowData;


      return _react2.default.createElement(renderers.row, onRow(rowData, { rowIndex: rowIndex, rowKey: rowKey }), columns.map(function (column, columnIndex) {
        var property = column.property,
            cell = column.cell,
            props = column.props;

        var evaluatedProperty = property || cell && cell.property;

        var _ref = cell || {},
            _ref$transforms = _ref.transforms,
            transforms = _ref$transforms === undefined ? [] : _ref$transforms,
            _ref$formatters = _ref.formatters,
            formatters = _ref$formatters === undefined ? [] : _ref$formatters; // TODO: test against this case


        var extraParameters = {
          columnIndex: columnIndex,
          property: evaluatedProperty,
          column: column,
          rowData: rowData,
          rowIndex: rowIndex,
          rowKey: rowKey
        };
        var transformed = (0, _evaluateTransforms2.default)(transforms, rowData[evaluatedProperty], extraParameters);

        if (!transformed) {
          console.warn('Table.Body - Failed to receive a transformed result'); // eslint-disable-line max-len, no-console
        }

        return _react2.default.createElement(renderers.cell, _extends({
          key: columnIndex + '-cell'
        }, (0, _mergeProps2.default)(props, cell && cell.props, transformed)), transformed.children || (0, _evaluateFormatters2.default)(formatters)(rowData['_' + evaluatedProperty] || rowData[evaluatedProperty], extraParameters));
      }));
    }
  }]);

  return BodyRow;
}(_react2.default.Component);

BodyRow.defaultProps = _types.tableBodyRowDefaults;
 true ? BodyRow.propTypes = _types.tableBodyRowTypes : undefined;

exports.default = BodyRow;

/***/ }),

/***/ "./node_modules/reactabular-table/dist/body.js":
/*!*****************************************************!*\
  !*** ./node_modules/reactabular-table/dist/body.js ***!
  \*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _isFunction2 = __webpack_require__(/*! lodash/isFunction */ "./node_modules/lodash/isFunction.js");

var _isFunction3 = _interopRequireDefault(_isFunction2);

var _isEqual2 = __webpack_require__(/*! lodash/isEqual */ "./node_modules/lodash/isEqual.js");

var _isEqual3 = _interopRequireDefault(_isEqual2);

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 = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _types = __webpack_require__(/*! ./types */ "./node_modules/reactabular-table/dist/types.js");

var _bodyRow = __webpack_require__(/*! ./body-row */ "./node_modules/reactabular-table/dist/body-row.js");

var _bodyRow2 = _interopRequireDefault(_bodyRow);

var _resolveRowKey = __webpack_require__(/*! ./resolve-row-key */ "./node_modules/reactabular-table/dist/resolve-row-key.js");

var _resolveRowKey2 = _interopRequireDefault(_resolveRowKey);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

var Body = function (_React$Component) {
  _inherits(Body, _React$Component);

  function Body(props) {
    _classCallCheck(this, Body);

    var _this = _possibleConstructorReturn(this, (Body.__proto__ || Object.getPrototypeOf(Body)).call(this, props));

    _this.ref = null;
    return _this;
  }

  _createClass(Body, [{
    key: 'shouldComponentUpdate',
    value: function shouldComponentUpdate(nextProps, nextState, nextContext) {
      // eslint-disable-line no-unused-vars
      // Skip checking props against `onRow` since that can be bound at render().
      // That's not particularly good practice but you never know how the users
      // prefer to define the handler.

      // Check for wrapper based override.
      var renderers = nextContext.renderers;


      if (renderers && renderers.body && renderers.body.wrapper.shouldComponentUpdate) {
        if ((0, _isFunction3.default)(renderers.body.wrapper.shouldComponentUpdate)) {
          return renderers.body.wrapper.shouldComponentUpdate.call(this, nextProps, nextState, nextContext);
        }

        return true;
      }

      return !((0, _isEqual3.default)(omitOnRow(this.props), omitOnRow(nextProps)) && (0, _isEqual3.default)(this.context, nextContext));
    }
  }, {
    key: 'render',
    value: function render() {
      var _this2 = this;

      var _props = this.props,
          onRow = _props.onRow,
          rows = _props.rows,
          rowKey = _props.rowKey,
          props = _objectWithoutProperties(_props, ['onRow', 'rows', 'rowKey']);

      var _context = this.context,
          columns = _context.columns,
          renderers = _context.renderers;


      props.ref = function (body) {
        _this2.ref = body;
      };

      return _react2.default.createElement(renderers.body.wrapper, props, rows.map(function (rowData, index) {
        var rowIndex = rowData._index || index;
        var key = (0, _resolveRowKey2.default)({ rowData: rowData, rowIndex: rowIndex, rowKey: rowKey });

        return _react2.default.createElement(_bodyRow2.default, {
          key: key,
          renderers: renderers.body,
          onRow: onRow,
          rowKey: key,
          rowIndex: rowIndex,
          rowData: rowData,
          columns: columns
        });
      }));
    }
  }, {
    key: 'getRef',
    value: function getRef() {
      return this.ref;
    }
  }]);

  return Body;
}(_react2.default.Component);

 true ? Body.propTypes = _types.tableBodyTypes : undefined;
Body.defaultProps = _types.tableBodyDefaults;
Body.contextTypes = _types.tableBodyContextTypes;

function omitOnRow(props) {
  var onRow = props.onRow,
      ret = _objectWithoutProperties(props, ['onRow']); // eslint-disable-line no-unused-vars

  return ret;
}

exports.default = Body;

/***/ }),

/***/ "./node_modules/reactabular-table/dist/columns-are-equal.js":
/*!******************************************************************!*\
  !*** ./node_modules/reactabular-table/dist/columns-are-equal.js ***!
  \******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _isEqualWith2 = __webpack_require__(/*! lodash/isEqualWith */ "./node_modules/lodash/isEqualWith.js");

var _isEqualWith3 = _interopRequireDefault(_isEqualWith2);

var _isFunction2 = __webpack_require__(/*! lodash/isFunction */ "./node_modules/lodash/isFunction.js");

var _isFunction3 = _interopRequireDefault(_isFunction2);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function columnsAreEqual(oldColumns, newColumns) {
  return (0, _isEqualWith3.default)(oldColumns, newColumns, function (a, b) {
    if ((0, _isFunction3.default)(a) && (0, _isFunction3.default)(b)) {
      return true;
    }

    return undefined;
  });
}

exports.default = columnsAreEqual;

/***/ }),

/***/ "./node_modules/reactabular-table/dist/evaluate-formatters.js":
/*!********************************************************************!*\
  !*** ./node_modules/reactabular-table/dist/evaluate-formatters.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
function evaluateFormatters(formatters) {
  return function (value, extra) {
    return formatters.reduce(function (parameters, formatter) {
      return {
        value: formatter(parameters.value, parameters.extra),
        extra: extra
      };
    }, { value: value, extra: extra }).value;
  };
}

exports.default = evaluateFormatters;

/***/ }),

/***/ "./node_modules/reactabular-table/dist/evaluate-transforms.js":
/*!********************************************************************!*\
  !*** ./node_modules/reactabular-table/dist/evaluate-transforms.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _isFunction2 = __webpack_require__(/*! lodash/isFunction */ "./node_modules/lodash/isFunction.js");

var _isFunction3 = _interopRequireDefault(_isFunction2);

var _mergeProps = __webpack_require__(/*! ./merge-props */ "./node_modules/reactabular-table/dist/merge-props.js");

var _mergeProps2 = _interopRequireDefault(_mergeProps);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }

function evaluateTransforms() {
  var transforms = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  var value = arguments[1];
  var extraParameters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};

  if (true) {
    if (!transforms.every(_isFunction3.default)) {
      throw new Error('All transforms weren\'t functions!', transforms);
    }
  }

  if (transforms.length === 0) {
    return {};
  }

  return _mergeProps2.default.apply(undefined, _toConsumableArray(transforms.map(function (transform) {
    return transform(value, extraParameters);
  })));
}

exports.default = evaluateTransforms;

/***/ }),

/***/ "./node_modules/reactabular-table/dist/header-row.js":
/*!***********************************************************!*\
  !*** ./node_modules/reactabular-table/dist/header-row.js ***!
  \***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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; };

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _evaluateFormatters = __webpack_require__(/*! ./evaluate-formatters */ "./node_modules/reactabular-table/dist/evaluate-formatters.js");

var _evaluateFormatters2 = _interopRequireDefault(_evaluateFormatters);

var _evaluateTransforms = __webpack_require__(/*! ./evaluate-transforms */ "./node_modules/reactabular-table/dist/evaluate-transforms.js");

var _evaluateTransforms2 = _interopRequireDefault(_evaluateTransforms);

var _mergeProps = __webpack_require__(/*! ./merge-props */ "./node_modules/reactabular-table/dist/merge-props.js");

var _mergeProps2 = _interopRequireDefault(_mergeProps);

var _types = __webpack_require__(/*! ./types */ "./node_modules/reactabular-table/dist/types.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var HeaderRow = function HeaderRow(_ref) {
  var rowData = _ref.rowData,
      rowIndex = _ref.rowIndex,
      renderers = _ref.renderers,
      onRow = _ref.onRow;
  return _react2.default.createElement(renderers.row, onRow(rowData, { rowIndex: rowIndex }), rowData.map(function (column, columnIndex) {
    var property = column.property,
        _column$header = column.header,
        header = _column$header === undefined ? {} : _column$header,
        _column$props = column.props,
        props = _column$props === undefined ? {} : _column$props;

    var evaluatedProperty = property || header && header.property;
    var label = header.label,
        _header$transforms = header.transforms,
        transforms = _header$transforms === undefined ? [] : _header$transforms,
        _header$formatters = header.formatters,
        formatters = _header$formatters === undefined ? [] : _header$formatters;

    var extraParameters = {
      columnIndex: columnIndex,
      property: evaluatedProperty,
      column: column
    };
    var transformedProps = (0, _evaluateTransforms2.default)(transforms, label, extraParameters);

    if (!transformedProps) {
      console.warn('Table.Header - Failed to receive a transformed result'); // eslint-disable-line max-len, no-console
    }

    return _react2.default.createElement(renderers.cell, _extends({
      key: columnIndex + '-header'
    }, (0, _mergeProps2.default)(props, header && header.props, transformedProps)), transformedProps.children || (0, _evaluateFormatters2.default)(formatters)(label, extraParameters));
  }));
};
HeaderRow.defaultProps = _types.tableHeaderRowDefaults;
 true ? HeaderRow.propTypes = _types.tableHeaderRowTypes : undefined;

exports.default = HeaderRow;

/***/ }),

/***/ "./node_modules/reactabular-table/dist/header.js":
/*!*******************************************************!*\
  !*** ./node_modules/reactabular-table/dist/header.js ***!
  \*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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 = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _types = __webpack_require__(/*! ./types */ "./node_modules/reactabular-table/dist/types.js");

var _headerRow = __webpack_require__(/*! ./header-row */ "./node_modules/reactabular-table/dist/header-row.js");

var _headerRow2 = _interopRequireDefault(_headerRow);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

var Header = function (_React$Component) {
  _inherits(Header, _React$Component);

  // eslint-disable-line max-len, react/prefer-stateless-function
  function Header(props) {
    _classCallCheck(this, Header);

    var _this = _possibleConstructorReturn(this, (Header.__proto__ || Object.getPrototypeOf(Header)).call(this, props));

    _this.ref = null;
    return _this;
  }

  _createClass(Header, [{
    key: 'render',
    value: function render() {
      var _this2 = this;

      var _props = this.props,
          children = _props.children,
          headerRows = _props.headerRows,
          onRow = _props.onRow,
          props = _objectWithoutProperties(_props, ['children', 'headerRows', 'onRow']);

      var _context = this.context,
          renderers = _context.renderers,
          columns = _context.columns;


      props.ref = function (header) {
        _this2.ref = header;
      };

      // If headerRows aren't passed, default to bodyColumns as header rows
      return _react2.default.createElement(renderers.header.wrapper, props, [(headerRows || [columns]).map(function (rowData, rowIndex) {
        return _react2.default.createElement(_headerRow2.default, {
          key: rowIndex + '-header-row',
          renderers: renderers.header,
          onRow: onRow,
          rowData: rowData,
          rowIndex: rowIndex
        });
      })].concat(children));
    }
  }, {
    key: 'getRef',
    value: function getRef() {
      return this.ref;
    }
  }]);

  return Header;
}(_react2.default.Component);

 true ? Header.propTypes = _types.tableHeaderTypes : undefined;
Header.contextTypes = _types.tableHeaderContextTypes;

exports.default = Header;

/***/ }),

/***/ "./node_modules/reactabular-table/dist/index.js":
/*!******************************************************!*\
  !*** ./node_modules/reactabular-table/dist/index.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _provider = __webpack_require__(/*! ./provider */ "./node_modules/reactabular-table/dist/provider.js");

Object.defineProperty(exports, 'Provider', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_provider).default;
  }
});

var _header = __webpack_require__(/*! ./header */ "./node_modules/reactabular-table/dist/header.js");

Object.defineProperty(exports, 'Header', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_header).default;
  }
});

var _body = __webpack_require__(/*! ./body */ "./node_modules/reactabular-table/dist/body.js");

Object.defineProperty(exports, 'Body', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_body).default;
  }
});

var _bodyRow = __webpack_require__(/*! ./body-row */ "./node_modules/reactabular-table/dist/body-row.js");

Object.defineProperty(exports, 'BodyRow', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_bodyRow).default;
  }
});

var _evaluateFormatters = __webpack_require__(/*! ./evaluate-formatters */ "./node_modules/reactabular-table/dist/evaluate-formatters.js");

Object.defineProperty(exports, 'evaluateFormatters', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_evaluateFormatters).default;
  }
});

var _evaluateTransforms = __webpack_require__(/*! ./evaluate-transforms */ "./node_modules/reactabular-table/dist/evaluate-transforms.js");

Object.defineProperty(exports, 'evaluateTransforms', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_evaluateTransforms).default;
  }
});

var _mergeProps = __webpack_require__(/*! ./merge-props */ "./node_modules/reactabular-table/dist/merge-props.js");

Object.defineProperty(exports, 'mergeProps', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_mergeProps).default;
  }
});

var _columnsAreEqual = __webpack_require__(/*! ./columns-are-equal */ "./node_modules/reactabular-table/dist/columns-are-equal.js");

Object.defineProperty(exports, 'columnsAreEqual', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_columnsAreEqual).default;
  }
});

var _resolveRowKey = __webpack_require__(/*! ./resolve-row-key */ "./node_modules/reactabular-table/dist/resolve-row-key.js");

Object.defineProperty(exports, 'resolveRowKey', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_resolveRowKey).default;
  }
});

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/***/ }),

/***/ "./node_modules/reactabular-table/dist/merge-props.js":
/*!************************************************************!*\
  !*** ./node_modules/reactabular-table/dist/merge-props.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _mergeWith2 = __webpack_require__(/*! lodash/mergeWith */ "./node_modules/lodash/mergeWith.js");

var _mergeWith3 = _interopRequireDefault(_mergeWith2);

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; };

var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");

var _classnames2 = _interopRequireDefault(_classnames);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }

function mergePropPair() {
  for (var _len = arguments.length, props = Array(_len), _key = 0; _key < _len; _key++) {
    props[_key] = arguments[_key];
  }

  var firstProps = props[0];
  var restProps = props.slice(1);

  if (!restProps.length) {
    return (0, _mergeWith3.default)({}, firstProps);
  }

  // Avoid mutating the first prop collection
  return _mergeWith3.default.apply(undefined, [(0, _mergeWith3.default)({}, firstProps)].concat(_toConsumableArray(restProps), [function (a, b, key) {
    if (key === 'children') {
      // Children have to be merged in reverse order for Reactabular
      // logic to work.
      return _extends({}, b, a);
    }

    if (key === 'className') {
      // Process class names through classNames to merge properly
      // as a string.
      return (0, _classnames2.default)(a, b);
    }

    return undefined;
  }]));
}

exports.default = mergePropPair;

/***/ }),

/***/ "./node_modules/reactabular-table/dist/provider.js":
/*!*********************************************************!*\
  !*** ./node_modules/reactabular-table/dist/provider.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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; };

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 = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _types = __webpack_require__(/*! ./types */ "./node_modules/reactabular-table/dist/types.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

var componentDefaults = _types.tableDefaults.renderers;

var Provider = function (_React$Component) {
  _inherits(Provider, _React$Component);

  function Provider() {
    _classCallCheck(this, Provider);

    return _possibleConstructorReturn(this, (Provider.__proto__ || Object.getPrototypeOf(Provider)).apply(this, arguments));
  }

  _createClass(Provider, [{
    key: 'getChildContext',
    value: function getChildContext() {
      var _props = this.props,
          columns = _props.columns,
          components = _props.components,
          renderers = _props.renderers;

      var finalRenderers = renderers;

      // XXXXX: Drop in the next major version
      if (components) {
        // eslint-disable-next-line no-console
        console.warn('`components` have been deprecated in favor of `renderers` and will be removed in the next major version, please rename!');

        finalRenderers = components;
      }

      return {
        columns: columns,
        renderers: {
          table: finalRenderers.table || componentDefaults.table,
          header: _extends({}, componentDefaults.header, finalRenderers.header),
          body: _extends({}, componentDefaults.body, finalRenderers.body)
        }
      };
    }
  }, {
    key: 'render',
    value: function render() {
      var _props2 = this.props,
          columns = _props2.columns,
          renderers = _props2.renderers,
          components = _props2.components,
          children = _props2.children,
          props = _objectWithoutProperties(_props2, ['columns', 'renderers', 'components', 'children']);

      return _react2.default.createElement(renderers.table || _types.tableDefaults.renderers.table, props, children);
    }
  }]);

  return Provider;
}(_react2.default.Component);

exports.default = Provider;

 true ? Provider.propTypes = _extends({}, _types.tableTypes, {
  children: _propTypes2.default.any
}) : undefined;
Provider.defaultProps = _extends({}, _types.tableDefaults);
Provider.childContextTypes = _types.tableContextTypes;

/***/ }),

/***/ "./node_modules/reactabular-table/dist/resolve-row-key.js":
/*!****************************************************************!*\
  !*** ./node_modules/reactabular-table/dist/resolve-row-key.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _isArray2 = __webpack_require__(/*! lodash/isArray */ "./node_modules/lodash/isArray.js");

var _isArray3 = _interopRequireDefault(_isArray2);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function resolveRowKey(_ref) {
  var rowData = _ref.rowData,
      rowIndex = _ref.rowIndex,
      rowKey = _ref.rowKey;

  if (typeof rowKey === 'function') {
    return rowKey({ rowData: rowData, rowIndex: rowIndex }) + '-row';
  } else if (true) {
    // Arrays cannot have rowKeys by definition so we have to go by index there.
    if (!(0, _isArray3.default)(rowData) && rowData[rowKey] === undefined) {
      console.warn( // eslint-disable-line no-console
      'Table.Body - Missing valid rowKey!', rowData, rowKey);
    }
  }

  if (rowData[rowKey] === 0) {
    return rowData[rowKey] + '-row';
  }

  return (rowData[rowKey] || rowIndex) + '-row';
}

exports.default = resolveRowKey;

/***/ }),

/***/ "./node_modules/reactabular-table/dist/types.js":
/*!******************************************************!*\
  !*** ./node_modules/reactabular-table/dist/types.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.tableDefaults = exports.tableHeaderRowDefaults = exports.tableHeaderRowTypes = exports.tableHeaderContextTypes = exports.tableHeaderTypes = exports.tableBodyRowDefaults = exports.tableBodyRowTypes = exports.tableBodyContextTypes = exports.tableBodyDefaults = exports.tableBodyTypes = exports.tableContextTypes = exports.tableTypes = undefined;

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var arrayOfObjectColumns = _propTypes2.default.arrayOf(_propTypes2.default.shape({
  header: _propTypes2.default.shape({
    label: _propTypes2.default.string,
    transforms: _propTypes2.default.arrayOf(_propTypes2.default.func),
    formatters: _propTypes2.default.arrayOf(_propTypes2.default.func),
    props: _propTypes2.default.object
  }),
  cell: _propTypes2.default.shape({
    property: _propTypes2.default.oneOfType([_propTypes2.default.number, _propTypes2.default.string]),
    transforms: _propTypes2.default.arrayOf(_propTypes2.default.func),
    formatters: _propTypes2.default.arrayOf(_propTypes2.default.func),
    props: _propTypes2.default.object
  })
}));
var arrayOfArrayColumns = _propTypes2.default.arrayOf(_propTypes2.default.array);
var rowsType = _propTypes2.default.oneOfType([arrayOfObjectColumns, arrayOfArrayColumns]);
var rowKeyType = _propTypes2.default.oneOfType([_propTypes2.default.func, _propTypes2.default.string]);
var rowDataType = _propTypes2.default.oneOfType([_propTypes2.default.array, _propTypes2.default.object]);
var tableTypes = {
  columns: _propTypes2.default.array.isRequired,
  renderers: _propTypes2.default.object,
  components: _propTypes2.default.object // XXXXX: Deprecated in favor of renderers, remove in the next major!
};
var tableContextTypes = {
  columns: _propTypes2.default.array.isRequired,
  renderers: _propTypes2.default.object
};
var tableBodyDefaults = {
  onRow: function onRow() {}
};
var tableBodyTypes = {
  onRow: _propTypes2.default.func,
  rows: rowsType.isRequired,
  rowKey: rowKeyType
};
var tableBodyContextTypes = {
  columns: _propTypes2.default.array.isRequired,
  renderers: _propTypes2.default.object
};
var tableBodyRowDefaults = {
  onRow: function onRow() {
    return {};
  }
};
var tableBodyRowTypes = {
  columns: _propTypes2.default.array.isRequired,
  renderers: _propTypes2.default.object,
  onRow: _propTypes2.default.func,
  rowIndex: _propTypes2.default.number.isRequired,
  rowData: rowDataType.isRequired,
  rowKey: _propTypes2.default.string.isRequired
};
var tableHeaderTypes = {
  headerRows: _propTypes2.default.arrayOf(arrayOfObjectColumns),
  children: _propTypes2.default.any
};
var tableHeaderContextTypes = {
  columns: _propTypes2.default.array.isRequired,
  renderers: _propTypes2.default.object
};
var tableHeaderRowDefaults = {
  onRow: function onRow() {
    return {};
  }
};
var tableHeaderRowTypes = {
  renderers: _propTypes2.default.object,
  onRow: _propTypes2.default.func,
  rowIndex: _propTypes2.default.number.isRequired,
  rowData: rowDataType.isRequired
};
var tableDefaults = {
  renderers: {
    table: 'table',
    header: {
      wrapper: 'thead',
      row: 'tr',
      cell: 'th'
    },
    body: {
      wrapper: 'tbody',
      row: 'tr',
      cell: 'td'
    }
  }
};

exports.tableTypes = tableTypes;
exports.tableContextTypes = tableContextTypes;
exports.tableBodyTypes = tableBodyTypes;
exports.tableBodyDefaults = tableBodyDefaults;
exports.tableBodyContextTypes = tableBodyContextTypes;
exports.tableBodyRowTypes = tableBodyRowTypes;
exports.tableBodyRowDefaults = tableBodyRowDefaults;
exports.tableHeaderTypes = tableHeaderTypes;
exports.tableHeaderContextTypes = tableHeaderContextTypes;
exports.tableHeaderRowTypes = tableHeaderRowTypes;
exports.tableHeaderRowDefaults = tableHeaderRowDefaults;
exports.tableDefaults = tableDefaults;

/***/ }),

/***/ "./node_modules/recompose/dist/Recompose.esm.js":
/*!******************************************************!*\
  !*** ./node_modules/recompose/dist/Recompose.esm.js ***!
  \******************************************************/
/*! exports provided: mapProps, withProps, withPropsOnChange, withHandlers, defaultProps, renameProp, renameProps, flattenProp, withState, withStateHandlers, withReducer, branch, renderComponent, renderNothing, shouldUpdate, pure, onlyUpdateForKeys, onlyUpdateForPropTypes, withContext, getContext, lifecycle, toClass, toRenderProps, fromRenderProps, setStatic, setPropTypes, setDisplayName, compose, getDisplayName, wrapDisplayName, shallowEqual, isClassComponent, createSink, componentFromProp, nest, hoistStatics, componentFromStream, componentFromStreamWithConfig, mapPropsStream, mapPropsStreamWithConfig, createEventHandler, createEventHandlerWithConfig, setObservableConfig */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mapProps", function() { return mapProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withProps", function() { return withProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withPropsOnChange", function() { return withPropsOnChange; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withHandlers", function() { return withHandlers; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultProps", function() { return defaultProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "renameProp", function() { return renameProp; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "renameProps", function() { return renameProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "flattenProp", function() { return flattenProp; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withState", function() { return withState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withStateHandlers", function() { return withStateHandlers; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withReducer", function() { return withReducer; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "branch", function() { return branch; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "renderComponent", function() { return renderComponent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "renderNothing", function() { return renderNothing; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "shouldUpdate", function() { return shouldUpdate; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pure", function() { return pure; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "onlyUpdateForKeys", function() { return onlyUpdateForKeys; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "onlyUpdateForPropTypes", function() { return onlyUpdateForPropTypes; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withContext", function() { return withContext; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getContext", function() { return getContext; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lifecycle", function() { return lifecycle; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toClass", function() { return toClass; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toRenderProps", function() { return toRenderProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromRenderProps", function() { return fromRenderProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setStatic", function() { return setStatic; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setPropTypes", function() { return setPropTypes; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setDisplayName", function() { return setDisplayName; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "compose", function() { return compose; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDisplayName", function() { return getDisplayName; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrapDisplayName", function() { return wrapDisplayName; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isClassComponent", function() { return isClassComponent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createSink", function() { return createSink; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "componentFromProp", function() { return componentFromProp; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nest", function() { return nest; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hoistStatics", function() { return hoistStatics; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "componentFromStream", function() { return componentFromStream; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "componentFromStreamWithConfig", function() { return componentFromStreamWithConfig; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mapPropsStream", function() { return mapPropsStream; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mapPropsStreamWithConfig", function() { return mapPropsStreamWithConfig; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createEventHandler", function() { return createEventHandler; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createEventHandlerWithConfig", function() { return createEventHandlerWithConfig; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setObservableConfig", function() { return configureObservable; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var fbjs_lib_shallowEqual__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! fbjs/lib/shallowEqual */ "./node_modules/fbjs/lib/shallowEqual.js");
/* harmony import */ var fbjs_lib_shallowEqual__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(fbjs_lib_shallowEqual__WEBPACK_IMPORTED_MODULE_2__);
/* harmony reexport (default from non-harmony) */ __webpack_require__.d(__webpack_exports__, "shallowEqual", function() { return fbjs_lib_shallowEqual__WEBPACK_IMPORTED_MODULE_2___default.a; });
/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
/* harmony import */ var react_lifecycles_compat__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-lifecycles-compat */ "./node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! hoist-non-react-statics */ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js");
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var change_emitter__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! change-emitter */ "./node_modules/change-emitter/lib/index.js");
/* harmony import */ var change_emitter__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(change_emitter__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var symbol_observable__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! symbol-observable */ "./node_modules/symbol-observable/es/index.js");










var setStatic = function setStatic(key, value) {
  return function (BaseComponent) {
    /* eslint-disable no-param-reassign */
    BaseComponent[key] = value;
    /* eslint-enable no-param-reassign */

    return BaseComponent;
  };
};

var setDisplayName = function setDisplayName(displayName) {
  return setStatic('displayName', displayName);
};

var getDisplayName = function getDisplayName(Component$$1) {
  if (typeof Component$$1 === 'string') {
    return Component$$1;
  }

  if (!Component$$1) {
    return undefined;
  }

  return Component$$1.displayName || Component$$1.name || 'Component';
};

var wrapDisplayName = function wrapDisplayName(BaseComponent, hocName) {
  return hocName + "(" + getDisplayName(BaseComponent) + ")";
};

var mapProps = function mapProps(propsMapper) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    var MapProps = function MapProps(props) {
      return factory(propsMapper(props));
    };

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'mapProps'))(MapProps);
    }

    return MapProps;
  };
};

var withProps = function withProps(input) {
  var hoc = mapProps(function (props) {
    return Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, props, typeof input === 'function' ? input(props) : input);
  });

  if (true) {
    return function (BaseComponent) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'withProps'))(hoc(BaseComponent));
    };
  }

  return hoc;
};

var pick = function pick(obj, keys) {
  var result = {};

  for (var i = 0; i < keys.length; i++) {
    var key = keys[i];

    if (obj.hasOwnProperty(key)) {
      result[key] = obj[key];
    }
  }

  return result;
};

var withPropsOnChange = function withPropsOnChange(shouldMapOrKeys, propsMapper) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);
    var shouldMap = typeof shouldMapOrKeys === 'function' ? shouldMapOrKeys : function (props, nextProps) {
      return !fbjs_lib_shallowEqual__WEBPACK_IMPORTED_MODULE_2___default()(pick(props, shouldMapOrKeys), pick(nextProps, shouldMapOrKeys));
    };

    var WithPropsOnChange =
    /*#__PURE__*/
    function (_Component) {
      Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(WithPropsOnChange, _Component);

      function WithPropsOnChange() {
        var _this;

        for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
          args[_key] = arguments[_key];
        }

        _this = _Component.call.apply(_Component, [this].concat(args)) || this;
        _this.state = {
          computedProps: propsMapper(_this.props),
          prevProps: _this.props
        };
        return _this;
      }

      WithPropsOnChange.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {
        if (shouldMap(prevState.prevProps, nextProps)) {
          return {
            computedProps: propsMapper(nextProps),
            prevProps: nextProps
          };
        }

        return {
          prevProps: nextProps
        };
      };

      var _proto = WithPropsOnChange.prototype;

      _proto.render = function render() {
        return factory(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, this.props, this.state.computedProps));
      };

      return WithPropsOnChange;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

    Object(react_lifecycles_compat__WEBPACK_IMPORTED_MODULE_4__["polyfill"])(WithPropsOnChange);

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'withPropsOnChange'))(WithPropsOnChange);
    }

    return WithPropsOnChange;
  };
};

var mapValues = function mapValues(obj, func) {
  var result = {};
  /* eslint-disable no-restricted-syntax */

  for (var key in obj) {
    if (obj.hasOwnProperty(key)) {
      result[key] = func(obj[key], key);
    }
  }
  /* eslint-enable no-restricted-syntax */


  return result;
};

var withHandlers = function withHandlers(handlers) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    var WithHandlers =
    /*#__PURE__*/
    function (_Component) {
      Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(WithHandlers, _Component);

      function WithHandlers() {
        var _this;

        for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
          _args[_key] = arguments[_key];
        }

        _this = _Component.call.apply(_Component, [this].concat(_args)) || this;
        _this.handlers = mapValues(typeof handlers === 'function' ? handlers(_this.props) : handlers, function (createHandler) {
          return function () {
            var handler = createHandler(_this.props);

            if (true && typeof handler !== 'function') {
              console.error( // eslint-disable-line no-console
              'withHandlers(): Expected a map of higher-order functions. ' + 'Refer to the docs for more info.');
            }

            return handler.apply(void 0, arguments);
          };
        });
        return _this;
      }

      var _proto = WithHandlers.prototype;

      _proto.render = function render() {
        return factory(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, this.props, this.handlers));
      };

      return WithHandlers;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'withHandlers'))(WithHandlers);
    }

    return WithHandlers;
  };
};

var defaultProps = function defaultProps(props) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    var DefaultProps = function DefaultProps(ownerProps) {
      return factory(ownerProps);
    };

    DefaultProps.defaultProps = props;

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'defaultProps'))(DefaultProps);
    }

    return DefaultProps;
  };
};

var omit = function omit(obj, keys) {
  var rest = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, obj);

  for (var i = 0; i < keys.length; i++) {
    var key = keys[i];

    if (rest.hasOwnProperty(key)) {
      delete rest[key];
    }
  }

  return rest;
};

var renameProp = function renameProp(oldName, newName) {
  var hoc = mapProps(function (props) {
    var _extends2;

    return Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, omit(props, [oldName]), (_extends2 = {}, _extends2[newName] = props[oldName], _extends2));
  });

  if (true) {
    return function (BaseComponent) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'renameProp'))(hoc(BaseComponent));
    };
  }

  return hoc;
};

var keys = Object.keys;

var mapKeys = function mapKeys(obj, func) {
  return keys(obj).reduce(function (result, key) {
    var val = obj[key];
    /* eslint-disable no-param-reassign */

    result[func(val, key)] = val;
    /* eslint-enable no-param-reassign */

    return result;
  }, {});
};

var renameProps = function renameProps(nameMap) {
  var hoc = mapProps(function (props) {
    return Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, omit(props, keys(nameMap)), mapKeys(pick(props, keys(nameMap)), function (_, oldName) {
      return nameMap[oldName];
    }));
  });

  if (true) {
    return function (BaseComponent) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'renameProps'))(hoc(BaseComponent));
    };
  }

  return hoc;
};

var flattenProp = function flattenProp(propName) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    var FlattenProp = function FlattenProp(props) {
      return factory(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, props, props[propName]));
    };

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'flattenProp'))(FlattenProp);
    }

    return FlattenProp;
  };
};

var withState = function withState(stateName, stateUpdaterName, initialState) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    var WithState =
    /*#__PURE__*/
    function (_Component) {
      Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(WithState, _Component);

      function WithState() {
        var _this;

        for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
          args[_key] = arguments[_key];
        }

        _this = _Component.call.apply(_Component, [this].concat(args)) || this;
        _this.state = {
          stateValue: typeof initialState === 'function' ? initialState(_this.props) : initialState
        };

        _this.updateStateValue = function (updateFn, callback) {
          return _this.setState(function (_ref) {
            var stateValue = _ref.stateValue;
            return {
              stateValue: typeof updateFn === 'function' ? updateFn(stateValue) : updateFn
            };
          }, callback);
        };

        return _this;
      }

      var _proto = WithState.prototype;

      _proto.render = function render() {
        var _extends2;

        return factory(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, this.props, (_extends2 = {}, _extends2[stateName] = this.state.stateValue, _extends2[stateUpdaterName] = this.updateStateValue, _extends2)));
      };

      return WithState;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'withState'))(WithState);
    }

    return WithState;
  };
};

var withStateHandlers = function withStateHandlers(initialState, stateUpdaters) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    var WithStateHandlers =
    /*#__PURE__*/
    function (_Component) {
      Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(WithStateHandlers, _Component);

      function WithStateHandlers() {
        var _this;

        for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
          _args[_key] = arguments[_key];
        }

        _this = _Component.call.apply(_Component, [this].concat(_args)) || this;
        _this.state = typeof initialState === 'function' ? initialState(_this.props) : initialState;
        _this.stateUpdaters = mapValues(stateUpdaters, function (handler) {
          return function (mayBeEvent) {
            for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
              args[_key2 - 1] = arguments[_key2];
            }

            // Having that functional form of setState can be called async
            // we need to persist SyntheticEvent
            if (mayBeEvent && typeof mayBeEvent.persist === 'function') {
              mayBeEvent.persist();
            }

            _this.setState(function (state, props) {
              return handler(state, props).apply(void 0, [mayBeEvent].concat(args));
            });
          };
        });
        return _this;
      }

      var _proto = WithStateHandlers.prototype;

      _proto.render = function render() {
        return factory(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, this.props, this.state, this.stateUpdaters));
      };

      return WithStateHandlers;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'withStateHandlers'))(WithStateHandlers);
    }

    return WithStateHandlers;
  };
};

var noop = function noop() {};

var withReducer = function withReducer(stateName, dispatchName, reducer, initialState) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    var WithReducer =
    /*#__PURE__*/
    function (_Component) {
      Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(WithReducer, _Component);

      function WithReducer() {
        var _this;

        for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
          args[_key] = arguments[_key];
        }

        _this = _Component.call.apply(_Component, [this].concat(args)) || this;
        _this.state = {
          stateValue: _this.initializeStateValue()
        };

        _this.dispatch = function (action, callback) {
          if (callback === void 0) {
            callback = noop;
          }

          return _this.setState(function (_ref) {
            var stateValue = _ref.stateValue;
            return {
              stateValue: reducer(stateValue, action)
            };
          }, function () {
            return callback(_this.state.stateValue);
          });
        };

        return _this;
      }

      var _proto = WithReducer.prototype;

      _proto.initializeStateValue = function initializeStateValue() {
        if (initialState !== undefined) {
          return typeof initialState === 'function' ? initialState(this.props) : initialState;
        }

        return reducer(undefined, {
          type: '@@recompose/INIT'
        });
      };

      _proto.render = function render() {
        var _extends2;

        return factory(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, this.props, (_extends2 = {}, _extends2[stateName] = this.state.stateValue, _extends2[dispatchName] = this.dispatch, _extends2)));
      };

      return WithReducer;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'withReducer'))(WithReducer);
    }

    return WithReducer;
  };
};

var identity = function identity(Component$$1) {
  return Component$$1;
};

var branch = function branch(test, left, right) {
  if (right === void 0) {
    right = identity;
  }

  return function (BaseComponent) {
    var leftFactory;
    var rightFactory;

    var Branch = function Branch(props) {
      if (test(props)) {
        leftFactory = leftFactory || Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(left(BaseComponent));
        return leftFactory(props);
      }

      rightFactory = rightFactory || Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(right(BaseComponent));
      return rightFactory(props);
    };

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'branch'))(Branch);
    }

    return Branch;
  };
};

var renderComponent = function renderComponent(Component$$1) {
  return function (_) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(Component$$1);

    var RenderComponent = function RenderComponent(props) {
      return factory(props);
    };

    if (true) {
      RenderComponent.displayName = wrapDisplayName(Component$$1, 'renderComponent');
    }

    return RenderComponent;
  };
};

var Nothing =
/*#__PURE__*/
function (_Component) {
  Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(Nothing, _Component);

  function Nothing() {
    return _Component.apply(this, arguments) || this;
  }

  var _proto = Nothing.prototype;

  _proto.render = function render() {
    return null;
  };

  return Nothing;
}(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

var renderNothing = function renderNothing(_) {
  return Nothing;
};

var shouldUpdate = function shouldUpdate(test) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    var ShouldUpdate =
    /*#__PURE__*/
    function (_Component) {
      Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(ShouldUpdate, _Component);

      function ShouldUpdate() {
        return _Component.apply(this, arguments) || this;
      }

      var _proto = ShouldUpdate.prototype;

      _proto.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {
        return test(this.props, nextProps);
      };

      _proto.render = function render() {
        return factory(this.props);
      };

      return ShouldUpdate;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'shouldUpdate'))(ShouldUpdate);
    }

    return ShouldUpdate;
  };
};

var pure = function pure(BaseComponent) {
  var hoc = shouldUpdate(function (props, nextProps) {
    return !fbjs_lib_shallowEqual__WEBPACK_IMPORTED_MODULE_2___default()(props, nextProps);
  });

  if (true) {
    return setDisplayName(wrapDisplayName(BaseComponent, 'pure'))(hoc(BaseComponent));
  }

  return hoc(BaseComponent);
};

var onlyUpdateForKeys = function onlyUpdateForKeys(propKeys) {
  var hoc = shouldUpdate(function (props, nextProps) {
    return !fbjs_lib_shallowEqual__WEBPACK_IMPORTED_MODULE_2___default()(pick(nextProps, propKeys), pick(props, propKeys));
  });

  if (true) {
    return function (BaseComponent) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'onlyUpdateForKeys'))(hoc(BaseComponent));
    };
  }

  return hoc;
};

var onlyUpdateForPropTypes = function onlyUpdateForPropTypes(BaseComponent) {
  var propTypes = BaseComponent.propTypes;

  if (true) {
    if (!propTypes) {
      /* eslint-disable */
      console.error('A component without any `propTypes` was passed to ' + '`onlyUpdateForPropTypes()`. Check the implementation of the ' + ("component with display name \"" + getDisplayName(BaseComponent) + "\"."));
      /* eslint-enable */
    }
  }

  var propKeys = Object.keys(propTypes || {});
  var OnlyUpdateForPropTypes = onlyUpdateForKeys(propKeys)(BaseComponent);

  if (true) {
    return setDisplayName(wrapDisplayName(BaseComponent, 'onlyUpdateForPropTypes'))(OnlyUpdateForPropTypes);
  }

  return OnlyUpdateForPropTypes;
};

var withContext = function withContext(childContextTypes, getChildContext) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    var WithContext =
    /*#__PURE__*/
    function (_Component) {
      Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(WithContext, _Component);

      function WithContext() {
        var _this;

        for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
          args[_key] = arguments[_key];
        }

        _this = _Component.call.apply(_Component, [this].concat(args)) || this;

        _this.getChildContext = function () {
          return getChildContext(_this.props);
        };

        return _this;
      }

      var _proto = WithContext.prototype;

      _proto.render = function render() {
        return factory(this.props);
      };

      return WithContext;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

    WithContext.childContextTypes = childContextTypes;

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'withContext'))(WithContext);
    }

    return WithContext;
  };
};

var getContext = function getContext(contextTypes) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    var GetContext = function GetContext(ownerProps, context) {
      return factory(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, ownerProps, context));
    };

    GetContext.contextTypes = contextTypes;

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'getContext'))(GetContext);
    }

    return GetContext;
  };
};

var lifecycle = function lifecycle(spec) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    if (true && spec.hasOwnProperty('render')) {
      console.error('lifecycle() does not support the render method; its behavior is to ' + 'pass all props and state to the base component.');
    }

    var Lifecycle =
    /*#__PURE__*/
    function (_Component) {
      Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(Lifecycle, _Component);

      function Lifecycle() {
        return _Component.apply(this, arguments) || this;
      }

      var _proto = Lifecycle.prototype;

      _proto.render = function render() {
        return factory(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, this.props, this.state));
      };

      return Lifecycle;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

    Object.keys(spec).forEach(function (hook) {
      return Lifecycle.prototype[hook] = spec[hook];
    });

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'lifecycle'))(Lifecycle);
    }

    return Lifecycle;
  };
};

var isClassComponent = function isClassComponent(Component$$1) {
  return Boolean(Component$$1 && Component$$1.prototype && typeof Component$$1.prototype.render === 'function');
};

var toClass = function toClass(baseComponent) {
  var _class, _temp;

  return isClassComponent(baseComponent) ? baseComponent : (_temp = _class =
  /*#__PURE__*/
  function (_Component) {
    Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(ToClass, _Component);

    function ToClass() {
      return _Component.apply(this, arguments) || this;
    }

    var _proto = ToClass.prototype;

    _proto.render = function render() {
      if (typeof baseComponent === 'string') {
        return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(baseComponent, this.props);
      }

      return baseComponent(this.props, this.context);
    };

    return ToClass;
  }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]), _class.displayName = getDisplayName(baseComponent), _class.propTypes = baseComponent.propTypes, _class.contextTypes = baseComponent.contextTypes, _class.defaultProps = baseComponent.defaultProps, _temp);
};

function toRenderProps(hoc) {
  var RenderPropsComponent = function RenderPropsComponent(props) {
    return props.children(props);
  };

  return hoc(RenderPropsComponent);
}

var fromRenderProps = function fromRenderProps(RenderPropsComponent, propsMapper, renderPropName) {
  if (renderPropName === void 0) {
    renderPropName = 'children';
  }

  return function (BaseComponent) {
    var baseFactory = react__WEBPACK_IMPORTED_MODULE_0___default.a.createFactory(BaseComponent);
    var renderPropsFactory = react__WEBPACK_IMPORTED_MODULE_0___default.a.createFactory(RenderPropsComponent);

    var FromRenderProps = function FromRenderProps(ownerProps) {
      var _renderPropsFactory;

      return renderPropsFactory((_renderPropsFactory = {}, _renderPropsFactory[renderPropName] = function () {
        return baseFactory(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, ownerProps, propsMapper.apply(void 0, arguments)));
      }, _renderPropsFactory));
    };

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'fromRenderProps'))(FromRenderProps);
    }

    return FromRenderProps;
  };
};

var setPropTypes = function setPropTypes(propTypes) {
  return setStatic('propTypes', propTypes);
};

var compose = function compose() {
  for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
    funcs[_key] = arguments[_key];
  }

  return funcs.reduce(function (a, b) {
    return function () {
      return a(b.apply(void 0, arguments));
    };
  }, function (arg) {
    return arg;
  });
};

var createSink = function createSink(callback) {
  var Sink =
  /*#__PURE__*/
  function (_Component) {
    Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(Sink, _Component);

    function Sink() {
      var _this;

      for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      _this = _Component.call.apply(_Component, [this].concat(args)) || this;
      _this.state = {};
      return _this;
    }

    Sink.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps) {
      callback(nextProps);
      return null;
    };

    var _proto = Sink.prototype;

    _proto.render = function render() {
      return null;
    };

    return Sink;
  }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

  Object(react_lifecycles_compat__WEBPACK_IMPORTED_MODULE_4__["polyfill"])(Sink);
  return Sink;
};

var componentFromProp = function componentFromProp(propName) {
  var Component$$1 = function Component$$1(props) {
    return Object(react__WEBPACK_IMPORTED_MODULE_0__["createElement"])(props[propName], omit(props, [propName]));
  };

  Component$$1.displayName = "componentFromProp(" + propName + ")";
  return Component$$1;
};

var nest = function nest() {
  for (var _len = arguments.length, Components = new Array(_len), _key = 0; _key < _len; _key++) {
    Components[_key] = arguments[_key];
  }

  var factories = Components.map(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"]);

  var Nest = function Nest(_ref) {
    var children = _ref.children,
        props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_5__["default"])(_ref, ["children"]);

    return factories.reduceRight(function (child, factory) {
      return factory(props, child);
    }, children);
  };

  if (true) {
    var displayNames = Components.map(getDisplayName);
    Nest.displayName = "nest(" + displayNames.join(', ') + ")";
  }

  return Nest;
};

var hoistStatics = function hoistStatics(higherOrderComponent, blacklist) {
  return function (BaseComponent) {
    var NewComponent = higherOrderComponent(BaseComponent);
    hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_6___default()(NewComponent, BaseComponent, blacklist);
    return NewComponent;
  };
};

var _config = {
  fromESObservable: null,
  toESObservable: null
};

var configureObservable = function configureObservable(c) {
  _config = c;
};

var config = {
  fromESObservable: function fromESObservable(observable) {
    return typeof _config.fromESObservable === 'function' ? _config.fromESObservable(observable) : observable;
  },
  toESObservable: function toESObservable(stream) {
    return typeof _config.toESObservable === 'function' ? _config.toESObservable(stream) : stream;
  }
};

var componentFromStreamWithConfig = function componentFromStreamWithConfig(config$$1) {
  return function (propsToVdom) {
    return (
      /*#__PURE__*/
      function (_Component) {
        Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(ComponentFromStream, _Component);

        function ComponentFromStream() {
          var _config$fromESObserva;

          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Component.call.apply(_Component, [this].concat(args)) || this;
          _this.state = {
            vdom: null
          };
          _this.propsEmitter = Object(change_emitter__WEBPACK_IMPORTED_MODULE_7__["createChangeEmitter"])();
          _this.props$ = config$$1.fromESObservable((_config$fromESObserva = {
            subscribe: function subscribe(observer) {
              var unsubscribe = _this.propsEmitter.listen(function (props) {
                if (props) {
                  observer.next(props);
                } else {
                  observer.complete();
                }
              });

              return {
                unsubscribe: unsubscribe
              };
            }
          }, _config$fromESObserva[symbol_observable__WEBPACK_IMPORTED_MODULE_8__["default"]] = function () {
            return this;
          }, _config$fromESObserva));
          _this.vdom$ = config$$1.toESObservable(propsToVdom(_this.props$));
          return _this;
        }

        var _proto = ComponentFromStream.prototype;

        _proto.componentWillMount = function componentWillMount() {
          var _this2 = this;

          // Subscribe to child prop changes so we know when to re-render
          this.subscription = this.vdom$.subscribe({
            next: function next(vdom) {
              _this2.setState({
                vdom: vdom
              });
            }
          });
          this.propsEmitter.emit(this.props);
        };

        _proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
          // Receive new props from the owner
          this.propsEmitter.emit(nextProps);
        };

        _proto.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {
          return nextState.vdom !== this.state.vdom;
        };

        _proto.componentWillUnmount = function componentWillUnmount() {
          // Call without arguments to complete stream
          this.propsEmitter.emit(); // Clean-up subscription before un-mounting

          this.subscription.unsubscribe();
        };

        _proto.render = function render() {
          return this.state.vdom;
        };

        return ComponentFromStream;
      }(react__WEBPACK_IMPORTED_MODULE_0__["Component"])
    );
  };
};

var componentFromStream = function componentFromStream(propsToVdom) {
  return componentFromStreamWithConfig(config)(propsToVdom);
};

var identity$1 = function identity(t) {
  return t;
};

var mapPropsStreamWithConfig = function mapPropsStreamWithConfig(config$$1) {
  var componentFromStream$$1 = componentFromStreamWithConfig({
    fromESObservable: identity$1,
    toESObservable: identity$1
  });
  return function (transform) {
    return function (BaseComponent) {
      var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);
      var fromESObservable = config$$1.fromESObservable,
          toESObservable = config$$1.toESObservable;
      return componentFromStream$$1(function (props$) {
        var _ref;

        return _ref = {
          subscribe: function subscribe(observer) {
            var subscription = toESObservable(transform(fromESObservable(props$))).subscribe({
              next: function next(childProps) {
                return observer.next(factory(childProps));
              }
            });
            return {
              unsubscribe: function unsubscribe() {
                return subscription.unsubscribe();
              }
            };
          }
        }, _ref[symbol_observable__WEBPACK_IMPORTED_MODULE_8__["default"]] = function () {
          return this;
        }, _ref;
      });
    };
  };
};

var mapPropsStream = function mapPropsStream(transform) {
  var hoc = mapPropsStreamWithConfig(config)(transform);

  if (true) {
    return function (BaseComponent) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'mapPropsStream'))(hoc(BaseComponent));
    };
  }

  return hoc;
};

var createEventHandlerWithConfig = function createEventHandlerWithConfig(config$$1) {
  return function () {
    var _config$fromESObserva;

    var emitter = Object(change_emitter__WEBPACK_IMPORTED_MODULE_7__["createChangeEmitter"])();
    var stream = config$$1.fromESObservable((_config$fromESObserva = {
      subscribe: function subscribe(observer) {
        var unsubscribe = emitter.listen(function (value) {
          return observer.next(value);
        });
        return {
          unsubscribe: unsubscribe
        };
      }
    }, _config$fromESObserva[symbol_observable__WEBPACK_IMPORTED_MODULE_8__["default"]] = function () {
      return this;
    }, _config$fromESObserva));
    return {
      handler: emitter.emit,
      stream: stream
    };
  };
};
var createEventHandler = createEventHandlerWithConfig(config);

// Higher-order component helpers




/***/ }),

/***/ "./node_modules/scheduler/cjs/scheduler-tracing.development.js":
/*!*********************************************************************!*\
  !*** ./node_modules/scheduler/cjs/scheduler-tracing.development.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/** @license React v0.11.3
 * scheduler-tracing.development.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */





if (true) {
  (function() {
'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

// Helps identify side effects in begin-phase lifecycle hooks and setState reducers:


// In some cases, StrictMode should also double-render lifecycles.
// This can be confusing for tests though,
// And it can be bad for performance in production.
// This feature flag can be used to control the behavior:


// To preserve the "Pause on caught exceptions" behavior of the debugger, we
// replay the begin phase of a failed component inside invokeGuardedCallback.


// Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:


// Gather advanced timing metrics for Profiler subtrees.


// Trace which interactions trigger each commit.
var enableSchedulerTracing = true;

// Only used in www builds.


// Only used in www builds.


// React Fire: prevent the value and checked attributes from syncing
// with their related DOM properties


// These APIs will no longer be "unstable" in the upcoming 16.7 release,
// Control this behavior with a flag to support 16.6 minor releases in the meanwhile.

var DEFAULT_THREAD_ID = 0;

// Counters used to generate unique IDs.
var interactionIDCounter = 0;
var threadIDCounter = 0;

// Set of currently traced interactions.
// Interactions "stack"–
// Meaning that newly traced interactions are appended to the previously active set.
// When an interaction goes out of scope, the previous set (if any) is restored.
exports.__interactionsRef = null;

// Listener(s) to notify when interactions begin and end.
exports.__subscriberRef = null;

if (enableSchedulerTracing) {
  exports.__interactionsRef = {
    current: new Set()
  };
  exports.__subscriberRef = {
    current: null
  };
}

function unstable_clear(callback) {
  if (!enableSchedulerTracing) {
    return callback();
  }

  var prevInteractions = exports.__interactionsRef.current;
  exports.__interactionsRef.current = new Set();

  try {
    return callback();
  } finally {
    exports.__interactionsRef.current = prevInteractions;
  }
}

function unstable_getCurrent() {
  if (!enableSchedulerTracing) {
    return null;
  } else {
    return exports.__interactionsRef.current;
  }
}

function unstable_getThreadID() {
  return ++threadIDCounter;
}

function unstable_trace(name, timestamp, callback) {
  var threadID = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : DEFAULT_THREAD_ID;

  if (!enableSchedulerTracing) {
    return callback();
  }

  var interaction = {
    __count: 1,
    id: interactionIDCounter++,
    name: name,
    timestamp: timestamp
  };

  var prevInteractions = exports.__interactionsRef.current;

  // Traced interactions should stack/accumulate.
  // To do that, clone the current interactions.
  // The previous set will be restored upon completion.
  var interactions = new Set(prevInteractions);
  interactions.add(interaction);
  exports.__interactionsRef.current = interactions;

  var subscriber = exports.__subscriberRef.current;
  var returnValue = void 0;

  try {
    if (subscriber !== null) {
      subscriber.onInteractionTraced(interaction);
    }
  } finally {
    try {
      if (subscriber !== null) {
        subscriber.onWorkStarted(interactions, threadID);
      }
    } finally {
      try {
        returnValue = callback();
      } finally {
        exports.__interactionsRef.current = prevInteractions;

        try {
          if (subscriber !== null) {
            subscriber.onWorkStopped(interactions, threadID);
          }
        } finally {
          interaction.__count--;

          // If no async work was scheduled for this interaction,
          // Notify subscribers that it's completed.
          if (subscriber !== null && interaction.__count === 0) {
            subscriber.onInteractionScheduledWorkCompleted(interaction);
          }
        }
      }
    }
  }

  return returnValue;
}

function unstable_wrap(callback) {
  var threadID = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_THREAD_ID;

  if (!enableSchedulerTracing) {
    return callback;
  }

  var wrappedInteractions = exports.__interactionsRef.current;

  var subscriber = exports.__subscriberRef.current;
  if (subscriber !== null) {
    subscriber.onWorkScheduled(wrappedInteractions, threadID);
  }

  // Update the pending async work count for the current interactions.
  // Update after calling subscribers in case of error.
  wrappedInteractions.forEach(function (interaction) {
    interaction.__count++;
  });

  var hasRun = false;

  function wrapped() {
    var prevInteractions = exports.__interactionsRef.current;
    exports.__interactionsRef.current = wrappedInteractions;

    subscriber = exports.__subscriberRef.current;

    try {
      var returnValue = void 0;

      try {
        if (subscriber !== null) {
          subscriber.onWorkStarted(wrappedInteractions, threadID);
        }
      } finally {
        try {
          returnValue = callback.apply(undefined, arguments);
        } finally {
          exports.__interactionsRef.current = prevInteractions;

          if (subscriber !== null) {
            subscriber.onWorkStopped(wrappedInteractions, threadID);
          }
        }
      }

      return returnValue;
    } finally {
      if (!hasRun) {
        // We only expect a wrapped function to be executed once,
        // But in the event that it's executed more than once–
        // Only decrement the outstanding interaction counts once.
        hasRun = true;

        // Update pending async counts for all wrapped interactions.
        // If this was the last scheduled async work for any of them,
        // Mark them as completed.
        wrappedInteractions.forEach(function (interaction) {
          interaction.__count--;

          if (subscriber !== null && interaction.__count === 0) {
            subscriber.onInteractionScheduledWorkCompleted(interaction);
          }
        });
      }
    }
  }

  wrapped.cancel = function cancel() {
    subscriber = exports.__subscriberRef.current;

    try {
      if (subscriber !== null) {
        subscriber.onWorkCanceled(wrappedInteractions, threadID);
      }
    } finally {
      // Update pending async counts for all wrapped interactions.
      // If this was the last scheduled async work for any of them,
      // Mark them as completed.
      wrappedInteractions.forEach(function (interaction) {
        interaction.__count--;

        if (subscriber && interaction.__count === 0) {
          subscriber.onInteractionScheduledWorkCompleted(interaction);
        }
      });
    }
  };

  return wrapped;
}

var subscribers = null;
if (enableSchedulerTracing) {
  subscribers = new Set();
}

function unstable_subscribe(subscriber) {
  if (enableSchedulerTracing) {
    subscribers.add(subscriber);

    if (subscribers.size === 1) {
      exports.__subscriberRef.current = {
        onInteractionScheduledWorkCompleted: onInteractionScheduledWorkCompleted,
        onInteractionTraced: onInteractionTraced,
        onWorkCanceled: onWorkCanceled,
        onWorkScheduled: onWorkScheduled,
        onWorkStarted: onWorkStarted,
        onWorkStopped: onWorkStopped
      };
    }
  }
}

function unstable_unsubscribe(subscriber) {
  if (enableSchedulerTracing) {
    subscribers.delete(subscriber);

    if (subscribers.size === 0) {
      exports.__subscriberRef.current = null;
    }
  }
}

function onInteractionTraced(interaction) {
  var didCatchError = false;
  var caughtError = null;

  subscribers.forEach(function (subscriber) {
    try {
      subscriber.onInteractionTraced(interaction);
    } catch (error) {
      if (!didCatchError) {
        didCatchError = true;
        caughtError = error;
      }
    }
  });

  if (didCatchError) {
    throw caughtError;
  }
}

function onInteractionScheduledWorkCompleted(interaction) {
  var didCatchError = false;
  var caughtError = null;

  subscribers.forEach(function (subscriber) {
    try {
      subscriber.onInteractionScheduledWorkCompleted(interaction);
    } catch (error) {
      if (!didCatchError) {
        didCatchError = true;
        caughtError = error;
      }
    }
  });

  if (didCatchError) {
    throw caughtError;
  }
}

function onWorkScheduled(interactions, threadID) {
  var didCatchError = false;
  var caughtError = null;

  subscribers.forEach(function (subscriber) {
    try {
      subscriber.onWorkScheduled(interactions, threadID);
    } catch (error) {
      if (!didCatchError) {
        didCatchError = true;
        caughtError = error;
      }
    }
  });

  if (didCatchError) {
    throw caughtError;
  }
}

function onWorkStarted(interactions, threadID) {
  var didCatchError = false;
  var caughtError = null;

  subscribers.forEach(function (subscriber) {
    try {
      subscriber.onWorkStarted(interactions, threadID);
    } catch (error) {
      if (!didCatchError) {
        didCatchError = true;
        caughtError = error;
      }
    }
  });

  if (didCatchError) {
    throw caughtError;
  }
}

function onWorkStopped(interactions, threadID) {
  var didCatchError = false;
  var caughtError = null;

  subscribers.forEach(function (subscriber) {
    try {
      subscriber.onWorkStopped(interactions, threadID);
    } catch (error) {
      if (!didCatchError) {
        didCatchError = true;
        caughtError = error;
      }
    }
  });

  if (didCatchError) {
    throw caughtError;
  }
}

function onWorkCanceled(interactions, threadID) {
  var didCatchError = false;
  var caughtError = null;

  subscribers.forEach(function (subscriber) {
    try {
      subscriber.onWorkCanceled(interactions, threadID);
    } catch (error) {
      if (!didCatchError) {
        didCatchError = true;
        caughtError = error;
      }
    }
  });

  if (didCatchError) {
    throw caughtError;
  }
}

exports.unstable_clear = unstable_clear;
exports.unstable_getCurrent = unstable_getCurrent;
exports.unstable_getThreadID = unstable_getThreadID;
exports.unstable_trace = unstable_trace;
exports.unstable_wrap = unstable_wrap;
exports.unstable_subscribe = unstable_subscribe;
exports.unstable_unsubscribe = unstable_unsubscribe;
  })();
}


/***/ }),

/***/ "./node_modules/scheduler/cjs/scheduler.development.js":
/*!*************************************************************!*\
  !*** ./node_modules/scheduler/cjs/scheduler.development.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(global) {/** @license React v0.11.3
 * scheduler.development.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */





if (true) {
  (function() {
'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

/* eslint-disable no-var */

// TODO: Use symbols?
var ImmediatePriority = 1;
var UserBlockingPriority = 2;
var NormalPriority = 3;
var LowPriority = 4;
var IdlePriority = 5;

// Max 31 bit integer. The max integer size in V8 for 32-bit systems.
// Math.pow(2, 30) - 1
// 0b111111111111111111111111111111
var maxSigned31BitInt = 1073741823;

// Times out immediately
var IMMEDIATE_PRIORITY_TIMEOUT = -1;
// Eventually times out
var USER_BLOCKING_PRIORITY = 250;
var NORMAL_PRIORITY_TIMEOUT = 5000;
var LOW_PRIORITY_TIMEOUT = 10000;
// Never times out
var IDLE_PRIORITY = maxSigned31BitInt;

// Callbacks are stored as a circular, doubly linked list.
var firstCallbackNode = null;

var currentDidTimeout = false;
var currentPriorityLevel = NormalPriority;
var currentEventStartTime = -1;
var currentExpirationTime = -1;

// This is set when a callback is being executed, to prevent re-entrancy.
var isExecutingCallback = false;

var isHostCallbackScheduled = false;

var hasNativePerformanceNow = typeof performance === 'object' && typeof performance.now === 'function';

function ensureHostCallbackIsScheduled() {
  if (isExecutingCallback) {
    // Don't schedule work yet; wait until the next time we yield.
    return;
  }
  // Schedule the host callback using the earliest expiration in the list.
  var expirationTime = firstCallbackNode.expirationTime;
  if (!isHostCallbackScheduled) {
    isHostCallbackScheduled = true;
  } else {
    // Cancel the existing host callback.
    cancelHostCallback();
  }
  requestHostCallback(flushWork, expirationTime);
}

function flushFirstCallback() {
  var flushedNode = firstCallbackNode;

  // Remove the node from the list before calling the callback. That way the
  // list is in a consistent state even if the callback throws.
  var next = firstCallbackNode.next;
  if (firstCallbackNode === next) {
    // This is the last callback in the list.
    firstCallbackNode = null;
    next = null;
  } else {
    var lastCallbackNode = firstCallbackNode.previous;
    firstCallbackNode = lastCallbackNode.next = next;
    next.previous = lastCallbackNode;
  }

  flushedNode.next = flushedNode.previous = null;

  // Now it's safe to call the callback.
  var callback = flushedNode.callback;
  var expirationTime = flushedNode.expirationTime;
  var priorityLevel = flushedNode.priorityLevel;
  var previousPriorityLevel = currentPriorityLevel;
  var previousExpirationTime = currentExpirationTime;
  currentPriorityLevel = priorityLevel;
  currentExpirationTime = expirationTime;
  var continuationCallback;
  try {
    continuationCallback = callback();
  } finally {
    currentPriorityLevel = previousPriorityLevel;
    currentExpirationTime = previousExpirationTime;
  }

  // A callback may return a continuation. The continuation should be scheduled
  // with the same priority and expiration as the just-finished callback.
  if (typeof continuationCallback === 'function') {
    var continuationNode = {
      callback: continuationCallback,
      priorityLevel: priorityLevel,
      expirationTime: expirationTime,
      next: null,
      previous: null
    };

    // Insert the new callback into the list, sorted by its expiration. This is
    // almost the same as the code in `scheduleCallback`, except the callback
    // is inserted into the list *before* callbacks of equal expiration instead
    // of after.
    if (firstCallbackNode === null) {
      // This is the first callback in the list.
      firstCallbackNode = continuationNode.next = continuationNode.previous = continuationNode;
    } else {
      var nextAfterContinuation = null;
      var node = firstCallbackNode;
      do {
        if (node.expirationTime >= expirationTime) {
          // This callback expires at or after the continuation. We will insert
          // the continuation *before* this callback.
          nextAfterContinuation = node;
          break;
        }
        node = node.next;
      } while (node !== firstCallbackNode);

      if (nextAfterContinuation === null) {
        // No equal or lower priority callback was found, which means the new
        // callback is the lowest priority callback in the list.
        nextAfterContinuation = firstCallbackNode;
      } else if (nextAfterContinuation === firstCallbackNode) {
        // The new callback is the highest priority callback in the list.
        firstCallbackNode = continuationNode;
        ensureHostCallbackIsScheduled();
      }

      var previous = nextAfterContinuation.previous;
      previous.next = nextAfterContinuation.previous = continuationNode;
      continuationNode.next = nextAfterContinuation;
      continuationNode.previous = previous;
    }
  }
}

function flushImmediateWork() {
  if (
  // Confirm we've exited the outer most event handler
  currentEventStartTime === -1 && firstCallbackNode !== null && firstCallbackNode.priorityLevel === ImmediatePriority) {
    isExecutingCallback = true;
    try {
      do {
        flushFirstCallback();
      } while (
      // Keep flushing until there are no more immediate callbacks
      firstCallbackNode !== null && firstCallbackNode.priorityLevel === ImmediatePriority);
    } finally {
      isExecutingCallback = false;
      if (firstCallbackNode !== null) {
        // There's still work remaining. Request another callback.
        ensureHostCallbackIsScheduled();
      } else {
        isHostCallbackScheduled = false;
      }
    }
  }
}

function flushWork(didTimeout) {
  isExecutingCallback = true;
  var previousDidTimeout = currentDidTimeout;
  currentDidTimeout = didTimeout;
  try {
    if (didTimeout) {
      // Flush all the expired callbacks without yielding.
      while (firstCallbackNode !== null) {
        // Read the current time. Flush all the callbacks that expire at or
        // earlier than that time. Then read the current time again and repeat.
        // This optimizes for as few performance.now calls as possible.
        var currentTime = exports.unstable_now();
        if (firstCallbackNode.expirationTime <= currentTime) {
          do {
            flushFirstCallback();
          } while (firstCallbackNode !== null && firstCallbackNode.expirationTime <= currentTime);
          continue;
        }
        break;
      }
    } else {
      // Keep flushing callbacks until we run out of time in the frame.
      if (firstCallbackNode !== null) {
        do {
          flushFirstCallback();
        } while (firstCallbackNode !== null && !shouldYieldToHost());
      }
    }
  } finally {
    isExecutingCallback = false;
    currentDidTimeout = previousDidTimeout;
    if (firstCallbackNode !== null) {
      // There's still work remaining. Request another callback.
      ensureHostCallbackIsScheduled();
    } else {
      isHostCallbackScheduled = false;
    }
    // Before exiting, flush all the immediate work that was scheduled.
    flushImmediateWork();
  }
}

function unstable_runWithPriority(priorityLevel, eventHandler) {
  switch (priorityLevel) {
    case ImmediatePriority:
    case UserBlockingPriority:
    case NormalPriority:
    case LowPriority:
    case IdlePriority:
      break;
    default:
      priorityLevel = NormalPriority;
  }

  var previousPriorityLevel = currentPriorityLevel;
  var previousEventStartTime = currentEventStartTime;
  currentPriorityLevel = priorityLevel;
  currentEventStartTime = exports.unstable_now();

  try {
    return eventHandler();
  } finally {
    currentPriorityLevel = previousPriorityLevel;
    currentEventStartTime = previousEventStartTime;

    // Before exiting, flush all the immediate work that was scheduled.
    flushImmediateWork();
  }
}

function unstable_wrapCallback(callback) {
  var parentPriorityLevel = currentPriorityLevel;
  return function () {
    // This is a fork of runWithPriority, inlined for performance.
    var previousPriorityLevel = currentPriorityLevel;
    var previousEventStartTime = currentEventStartTime;
    currentPriorityLevel = parentPriorityLevel;
    currentEventStartTime = exports.unstable_now();

    try {
      return callback.apply(this, arguments);
    } finally {
      currentPriorityLevel = previousPriorityLevel;
      currentEventStartTime = previousEventStartTime;
      flushImmediateWork();
    }
  };
}

function unstable_scheduleCallback(callback, deprecated_options) {
  var startTime = currentEventStartTime !== -1 ? currentEventStartTime : exports.unstable_now();

  var expirationTime;
  if (typeof deprecated_options === 'object' && deprecated_options !== null && typeof deprecated_options.timeout === 'number') {
    // FIXME: Remove this branch once we lift expiration times out of React.
    expirationTime = startTime + deprecated_options.timeout;
  } else {
    switch (currentPriorityLevel) {
      case ImmediatePriority:
        expirationTime = startTime + IMMEDIATE_PRIORITY_TIMEOUT;
        break;
      case UserBlockingPriority:
        expirationTime = startTime + USER_BLOCKING_PRIORITY;
        break;
      case IdlePriority:
        expirationTime = startTime + IDLE_PRIORITY;
        break;
      case LowPriority:
        expirationTime = startTime + LOW_PRIORITY_TIMEOUT;
        break;
      case NormalPriority:
      default:
        expirationTime = startTime + NORMAL_PRIORITY_TIMEOUT;
    }
  }

  var newNode = {
    callback: callback,
    priorityLevel: currentPriorityLevel,
    expirationTime: expirationTime,
    next: null,
    previous: null
  };

  // Insert the new callback into the list, ordered first by expiration, then
  // by insertion. So the new callback is inserted any other callback with
  // equal expiration.
  if (firstCallbackNode === null) {
    // This is the first callback in the list.
    firstCallbackNode = newNode.next = newNode.previous = newNode;
    ensureHostCallbackIsScheduled();
  } else {
    var next = null;
    var node = firstCallbackNode;
    do {
      if (node.expirationTime > expirationTime) {
        // The new callback expires before this one.
        next = node;
        break;
      }
      node = node.next;
    } while (node !== firstCallbackNode);

    if (next === null) {
      // No callback with a later expiration was found, which means the new
      // callback has the latest expiration in the list.
      next = firstCallbackNode;
    } else if (next === firstCallbackNode) {
      // The new callback has the earliest expiration in the entire list.
      firstCallbackNode = newNode;
      ensureHostCallbackIsScheduled();
    }

    var previous = next.previous;
    previous.next = next.previous = newNode;
    newNode.next = next;
    newNode.previous = previous;
  }

  return newNode;
}

function unstable_cancelCallback(callbackNode) {
  var next = callbackNode.next;
  if (next === null) {
    // Already cancelled.
    return;
  }

  if (next === callbackNode) {
    // This is the only scheduled callback. Clear the list.
    firstCallbackNode = null;
  } else {
    // Remove the callback from its position in the list.
    if (callbackNode === firstCallbackNode) {
      firstCallbackNode = next;
    }
    var previous = callbackNode.previous;
    previous.next = next;
    next.previous = previous;
  }

  callbackNode.next = callbackNode.previous = null;
}

function unstable_getCurrentPriorityLevel() {
  return currentPriorityLevel;
}

function unstable_shouldYield() {
  return !currentDidTimeout && (firstCallbackNode !== null && firstCallbackNode.expirationTime < currentExpirationTime || shouldYieldToHost());
}

// The remaining code is essentially a polyfill for requestIdleCallback. It
// works by scheduling a requestAnimationFrame, storing the time for the start
// of the frame, then scheduling a postMessage which gets scheduled after paint.
// Within the postMessage handler do as much work as possible until time + frame
// rate. By separating the idle call into a separate event tick we ensure that
// layout, paint and other browser work is counted against the available time.
// The frame rate is dynamically adjusted.

// We capture a local reference to any global, in case it gets polyfilled after
// this module is initially evaluated. We want to be using a
// consistent implementation.
var localDate = Date;

// This initialization code may run even on server environments if a component
// just imports ReactDOM (e.g. for findDOMNode). Some environments might not
// have setTimeout or clearTimeout. However, we always expect them to be defined
// on the client. https://github.com/facebook/react/pull/13088
var localSetTimeout = typeof setTimeout === 'function' ? setTimeout : undefined;
var localClearTimeout = typeof clearTimeout === 'function' ? clearTimeout : undefined;

// We don't expect either of these to necessarily be defined, but we will error
// later if they are missing on the client.
var localRequestAnimationFrame = typeof requestAnimationFrame === 'function' ? requestAnimationFrame : undefined;
var localCancelAnimationFrame = typeof cancelAnimationFrame === 'function' ? cancelAnimationFrame : undefined;

// requestAnimationFrame does not run when the tab is in the background. If
// we're backgrounded we prefer for that work to happen so that the page
// continues to load in the background. So we also schedule a 'setTimeout' as
// a fallback.
// TODO: Need a better heuristic for backgrounded work.
var ANIMATION_FRAME_TIMEOUT = 100;
var rAFID;
var rAFTimeoutID;
var requestAnimationFrameWithTimeout = function (callback) {
  // schedule rAF and also a setTimeout
  rAFID = localRequestAnimationFrame(function (timestamp) {
    // cancel the setTimeout
    localClearTimeout(rAFTimeoutID);
    callback(timestamp);
  });
  rAFTimeoutID = localSetTimeout(function () {
    // cancel the requestAnimationFrame
    localCancelAnimationFrame(rAFID);
    callback(exports.unstable_now());
  }, ANIMATION_FRAME_TIMEOUT);
};

if (hasNativePerformanceNow) {
  var Performance = performance;
  exports.unstable_now = function () {
    return Performance.now();
  };
} else {
  exports.unstable_now = function () {
    return localDate.now();
  };
}

var requestHostCallback;
var cancelHostCallback;
var shouldYieldToHost;

var globalValue = null;
if (typeof window !== 'undefined') {
  globalValue = window;
} else if (typeof global !== 'undefined') {
  globalValue = global;
}

if (globalValue && globalValue._schedMock) {
  // Dynamic injection, only for testing purposes.
  var globalImpl = globalValue._schedMock;
  requestHostCallback = globalImpl[0];
  cancelHostCallback = globalImpl[1];
  shouldYieldToHost = globalImpl[2];
  exports.unstable_now = globalImpl[3];
} else if (
// If Scheduler runs in a non-DOM environment, it falls back to a naive
// implementation using setTimeout.
typeof window === 'undefined' ||
// Check if MessageChannel is supported, too.
typeof MessageChannel !== 'function') {
  // If this accidentally gets imported in a non-browser environment, e.g. JavaScriptCore,
  // fallback to a naive implementation.
  var _callback = null;
  var _flushCallback = function (didTimeout) {
    if (_callback !== null) {
      try {
        _callback(didTimeout);
      } finally {
        _callback = null;
      }
    }
  };
  requestHostCallback = function (cb, ms) {
    if (_callback !== null) {
      // Protect against re-entrancy.
      setTimeout(requestHostCallback, 0, cb);
    } else {
      _callback = cb;
      setTimeout(_flushCallback, 0, false);
    }
  };
  cancelHostCallback = function () {
    _callback = null;
  };
  shouldYieldToHost = function () {
    return false;
  };
} else {
  if (typeof console !== 'undefined') {
    // TODO: Remove fb.me link
    if (typeof localRequestAnimationFrame !== 'function') {
      console.error("This browser doesn't support requestAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
    }
    if (typeof localCancelAnimationFrame !== 'function') {
      console.error("This browser doesn't support cancelAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
    }
  }

  var scheduledHostCallback = null;
  var isMessageEventScheduled = false;
  var timeoutTime = -1;

  var isAnimationFrameScheduled = false;

  var isFlushingHostCallback = false;

  var frameDeadline = 0;
  // We start out assuming that we run at 30fps but then the heuristic tracking
  // will adjust this value to a faster fps if we get more frequent animation
  // frames.
  var previousFrameTime = 33;
  var activeFrameTime = 33;

  shouldYieldToHost = function () {
    return frameDeadline <= exports.unstable_now();
  };

  // We use the postMessage trick to defer idle work until after the repaint.
  var channel = new MessageChannel();
  var port = channel.port2;
  channel.port1.onmessage = function (event) {
    isMessageEventScheduled = false;

    var prevScheduledCallback = scheduledHostCallback;
    var prevTimeoutTime = timeoutTime;
    scheduledHostCallback = null;
    timeoutTime = -1;

    var currentTime = exports.unstable_now();

    var didTimeout = false;
    if (frameDeadline - currentTime <= 0) {
      // There's no time left in this idle period. Check if the callback has
      // a timeout and whether it's been exceeded.
      if (prevTimeoutTime !== -1 && prevTimeoutTime <= currentTime) {
        // Exceeded the timeout. Invoke the callback even though there's no
        // time left.
        didTimeout = true;
      } else {
        // No timeout.
        if (!isAnimationFrameScheduled) {
          // Schedule another animation callback so we retry later.
          isAnimationFrameScheduled = true;
          requestAnimationFrameWithTimeout(animationTick);
        }
        // Exit without invoking the callback.
        scheduledHostCallback = prevScheduledCallback;
        timeoutTime = prevTimeoutTime;
        return;
      }
    }

    if (prevScheduledCallback !== null) {
      isFlushingHostCallback = true;
      try {
        prevScheduledCallback(didTimeout);
      } finally {
        isFlushingHostCallback = false;
      }
    }
  };

  var animationTick = function (rafTime) {
    if (scheduledHostCallback !== null) {
      // Eagerly schedule the next animation callback at the beginning of the
      // frame. If the scheduler queue is not empty at the end of the frame, it
      // will continue flushing inside that callback. If the queue *is* empty,
      // then it will exit immediately. Posting the callback at the start of the
      // frame ensures it's fired within the earliest possible frame. If we
      // waited until the end of the frame to post the callback, we risk the
      // browser skipping a frame and not firing the callback until the frame
      // after that.
      requestAnimationFrameWithTimeout(animationTick);
    } else {
      // No pending work. Exit.
      isAnimationFrameScheduled = false;
      return;
    }

    var nextFrameTime = rafTime - frameDeadline + activeFrameTime;
    if (nextFrameTime < activeFrameTime && previousFrameTime < activeFrameTime) {
      if (nextFrameTime < 8) {
        // Defensive coding. We don't support higher frame rates than 120hz.
        // If the calculated frame time gets lower than 8, it is probably a bug.
        nextFrameTime = 8;
      }
      // If one frame goes long, then the next one can be short to catch up.
      // If two frames are short in a row, then that's an indication that we
      // actually have a higher frame rate than what we're currently optimizing.
      // We adjust our heuristic dynamically accordingly. For example, if we're
      // running on 120hz display or 90hz VR display.
      // Take the max of the two in case one of them was an anomaly due to
      // missed frame deadlines.
      activeFrameTime = nextFrameTime < previousFrameTime ? previousFrameTime : nextFrameTime;
    } else {
      previousFrameTime = nextFrameTime;
    }
    frameDeadline = rafTime + activeFrameTime;
    if (!isMessageEventScheduled) {
      isMessageEventScheduled = true;
      port.postMessage(undefined);
    }
  };

  requestHostCallback = function (callback, absoluteTimeout) {
    scheduledHostCallback = callback;
    timeoutTime = absoluteTimeout;
    if (isFlushingHostCallback || absoluteTimeout < 0) {
      // Don't wait for the next frame. Continue working ASAP, in a new event.
      port.postMessage(undefined);
    } else if (!isAnimationFrameScheduled) {
      // If rAF didn't already schedule one, we need to schedule a frame.
      // TODO: If this rAF doesn't materialize because the browser throttles, we
      // might want to still have setTimeout trigger rIC as a backup to ensure
      // that we keep performing work.
      isAnimationFrameScheduled = true;
      requestAnimationFrameWithTimeout(animationTick);
    }
  };

  cancelHostCallback = function () {
    scheduledHostCallback = null;
    isMessageEventScheduled = false;
    timeoutTime = -1;
  };
}

exports.unstable_ImmediatePriority = ImmediatePriority;
exports.unstable_UserBlockingPriority = UserBlockingPriority;
exports.unstable_NormalPriority = NormalPriority;
exports.unstable_IdlePriority = IdlePriority;
exports.unstable_LowPriority = LowPriority;
exports.unstable_runWithPriority = unstable_runWithPriority;
exports.unstable_scheduleCallback = unstable_scheduleCallback;
exports.unstable_cancelCallback = unstable_cancelCallback;
exports.unstable_wrapCallback = unstable_wrapCallback;
exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
exports.unstable_shouldYield = unstable_shouldYield;
  })();
}

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))

/***/ }),

/***/ "./node_modules/scheduler/index.js":
/*!*****************************************!*\
  !*** ./node_modules/scheduler/index.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


if (false) {} else {
  module.exports = __webpack_require__(/*! ./cjs/scheduler.development.js */ "./node_modules/scheduler/cjs/scheduler.development.js");
}


/***/ }),

/***/ "./node_modules/scheduler/tracing.js":
/*!*******************************************!*\
  !*** ./node_modules/scheduler/tracing.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


if (false) {} else {
  module.exports = __webpack_require__(/*! ./cjs/scheduler-tracing.development.js */ "./node_modules/scheduler/cjs/scheduler-tracing.development.js");
}


/***/ }),

/***/ "./node_modules/sortabular/dist/by-column.js":
/*!***************************************************!*\
  !*** ./node_modules/sortabular/dist/by-column.js ***!
  \***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _defaultOrder = __webpack_require__(/*! ./default-order */ "./node_modules/sortabular/dist/default-order.js");

var _defaultOrder2 = _interopRequireDefault(_defaultOrder);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var byColumn = function byColumn(_ref) {
  var sortingColumns = _ref.sortingColumns,
      _ref$sortingOrder = _ref.sortingOrder,
      sortingOrder = _ref$sortingOrder === undefined ? _defaultOrder2.default : _ref$sortingOrder,
      _ref$selectedColumn = _ref.selectedColumn,
      selectedColumn = _ref$selectedColumn === undefined ? -1 : _ref$selectedColumn;

  var sort = sortingOrder.FIRST;

  if (selectedColumn < 0) {
    return sortingColumns;
  }

  if (sortingColumns && {}.hasOwnProperty.call(sortingColumns, selectedColumn)) {
    sort = sortingOrder[sortingColumns[selectedColumn].direction];

    if (!sort) {
      return {};
    }
  }

  return _defineProperty({}, selectedColumn, {
    direction: sort,
    position: 0
  });
};

exports.default = byColumn;

/***/ }),

/***/ "./node_modules/sortabular/dist/by-columns-prioritize-last-sorted.js":
/*!***************************************************************************!*\
  !*** ./node_modules/sortabular/dist/by-columns-prioritize-last-sorted.js ***!
  \***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _cloneDeep2 = __webpack_require__(/*! lodash/cloneDeep */ "./node_modules/lodash/cloneDeep.js");

var _cloneDeep3 = _interopRequireDefault(_cloneDeep2);

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; };

var _defaultOrder = __webpack_require__(/*! ./default-order */ "./node_modules/sortabular/dist/default-order.js");

var _defaultOrder2 = _interopRequireDefault(_defaultOrder);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var byColumnsPrioritizeLastSorted = function byColumnsPrioritizeLastSorted(_ref) {
  var sortingColumns = _ref.sortingColumns,
      _ref$sortingOrder = _ref.sortingOrder,
      sortingOrder = _ref$sortingOrder === undefined ? _defaultOrder2.default : _ref$sortingOrder,
      _ref$selectedColumn = _ref.selectedColumn,
      selectedColumn = _ref$selectedColumn === undefined ? -1 : _ref$selectedColumn;

  var newSortingColumns = {};

  if (selectedColumn < 0) {
    return sortingColumns;
  }

  if (!sortingColumns) {
    return _defineProperty({}, selectedColumn, {
      direction: sortingOrder.FIRST,
      position: 0
    });
  } else if ({}.hasOwnProperty.call(sortingColumns, selectedColumn)) {
    // Clone to avoid mutating the original structure
    newSortingColumns = (0, _cloneDeep3.default)(sortingColumns);

    var newSort = sortingOrder[newSortingColumns[selectedColumn].direction];
    var oldPosition = newSortingColumns[selectedColumn].position;

    if (newSort) {
      // sort direction is being updated
      // demote all previously higher-priority columns by 1
      // by incrementing their position
      Object.keys(newSortingColumns).forEach(function (k) {
        var v = newSortingColumns[k];

        if (v.position < oldPosition) {
          v.position += 1;
        }
      });
      newSortingColumns[selectedColumn] = {
        direction: newSort,
        position: 0
      };
    } else {
      delete newSortingColumns[selectedColumn];

      // Update position of columns after the deleted one
      Object.keys(newSortingColumns).forEach(function (k) {
        var v = newSortingColumns[k];

        if (v.position > oldPosition) {
          v.position -= 1;
        }
      });
    }

    return newSortingColumns;
  }

  // clone and insert new column at position 0, increment all others
  newSortingColumns = (0, _cloneDeep3.default)(sortingColumns);
  Object.keys(newSortingColumns).forEach(function (k) {
    var v = newSortingColumns[k];
    v.position += 1;
  });

  return _extends({}, newSortingColumns, _defineProperty({}, selectedColumn, {
    direction: sortingOrder.FIRST,
    position: 0
  }));
};

exports.default = byColumnsPrioritizeLastSorted;

/***/ }),

/***/ "./node_modules/sortabular/dist/by-columns.js":
/*!****************************************************!*\
  !*** ./node_modules/sortabular/dist/by-columns.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _cloneDeep2 = __webpack_require__(/*! lodash/cloneDeep */ "./node_modules/lodash/cloneDeep.js");

var _cloneDeep3 = _interopRequireDefault(_cloneDeep2);

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; };

var _defaultOrder = __webpack_require__(/*! ./default-order */ "./node_modules/sortabular/dist/default-order.js");

var _defaultOrder2 = _interopRequireDefault(_defaultOrder);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var byColumns = function byColumns(_ref) {
  var sortingColumns = _ref.sortingColumns,
      _ref$sortingOrder = _ref.sortingOrder,
      sortingOrder = _ref$sortingOrder === undefined ? _defaultOrder2.default : _ref$sortingOrder,
      _ref$selectedColumn = _ref.selectedColumn,
      selectedColumn = _ref$selectedColumn === undefined ? -1 : _ref$selectedColumn;

  var newSortingColumns = {};

  if (selectedColumn < 0) {
    return sortingColumns;
  }

  if (!sortingColumns) {
    return _defineProperty({}, selectedColumn, {
      direction: sortingOrder.FIRST,
      position: 0
    });
  } else if ({}.hasOwnProperty.call(sortingColumns, selectedColumn)) {
    // Clone to avoid mutating the original structure
    newSortingColumns = (0, _cloneDeep3.default)(sortingColumns);

    var newSort = sortingOrder[newSortingColumns[selectedColumn].direction];

    if (newSort) {
      newSortingColumns[selectedColumn] = {
        direction: newSort,
        position: newSortingColumns[selectedColumn].position
      };
    } else {
      var oldPosition = newSortingColumns[selectedColumn].position;

      delete newSortingColumns[selectedColumn];

      // Update position of columns after the deleted one
      Object.keys(newSortingColumns).forEach(function (k) {
        var v = newSortingColumns[k];

        if (v.position > oldPosition) {
          v.position -= 1;
        }
      });
    }

    return newSortingColumns;
  }

  return _extends({}, sortingColumns, _defineProperty({}, selectedColumn, {
    direction: sortingOrder.FIRST,
    position: Object.keys(sortingColumns).length
  }));
};

exports.default = byColumns;

/***/ }),

/***/ "./node_modules/sortabular/dist/default-order.js":
/*!*******************************************************!*\
  !*** ./node_modules/sortabular/dist/default-order.js ***!
  \*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
var defaultOrder = {
  FIRST: 'asc',
  '': 'asc',
  asc: 'desc',
  desc: ''
};

exports.default = defaultOrder;

/***/ }),

/***/ "./node_modules/sortabular/dist/default-strategy.js":
/*!**********************************************************!*\
  !*** ./node_modules/sortabular/dist/default-strategy.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _strategies = __webpack_require__(/*! ./strategies */ "./node_modules/sortabular/dist/strategies.js");

var _strategies2 = _interopRequireDefault(_strategies);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = _strategies2.default.byIndex;

/***/ }),

/***/ "./node_modules/sortabular/dist/header.js":
/*!************************************************!*\
  !*** ./node_modules/sortabular/dist/header.js ***!
  \************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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; }; /* eslint-disable react/prop-types */


var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _defaultStrategy = __webpack_require__(/*! ./default-strategy */ "./node_modules/sortabular/dist/default-strategy.js");

var _defaultStrategy2 = _interopRequireDefault(_defaultStrategy);

var _order = __webpack_require__(/*! ./order */ "./node_modules/sortabular/dist/order.js");

var _order2 = _interopRequireDefault(_order);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var header = function header(_ref) {
  var sortable = _ref.sortable,
      getSortingColumns = _ref.getSortingColumns,
      _ref$props = _ref.props,
      props = _ref$props === undefined ? {
    container: {},
    value: {},
    order: {}
  } : _ref$props,
      _ref$strategy = _ref.strategy,
      strategy = _ref$strategy === undefined ? _defaultStrategy2.default : _ref$strategy;

  if (!getSortingColumns) {
    throw new Error('header - Missing getSortingColumns!');
  }

  return function (value, extra) {
    return _react2.default.createElement(
      'div',
      _extends({
        className: 'sort-container'
      }, props.container),
      _react2.default.createElement(
        'span',
        _extends({
          className: 'sort-value'
        }, props.value),
        value
      ),
      (0, _order2.default)({
        getSortingColumns: getSortingColumns,
        props: props.order,
        strategy: strategy
      })(value, extra),
      sortable ? _react2.default.createElement('span', sortable(value, extra)) : null
    );
  };
};

exports.default = header;

/***/ }),

/***/ "./node_modules/sortabular/dist/index.js":
/*!***********************************************!*\
  !*** ./node_modules/sortabular/dist/index.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _byColumn = __webpack_require__(/*! ./by-column */ "./node_modules/sortabular/dist/by-column.js");

Object.defineProperty(exports, 'byColumn', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_byColumn).default;
  }
});

var _byColumns = __webpack_require__(/*! ./by-columns */ "./node_modules/sortabular/dist/by-columns.js");

Object.defineProperty(exports, 'byColumns', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_byColumns).default;
  }
});

var _byColumnsPrioritizeLastSorted = __webpack_require__(/*! ./by-columns-prioritize-last-sorted */ "./node_modules/sortabular/dist/by-columns-prioritize-last-sorted.js");

Object.defineProperty(exports, 'byColumnsPrioritizeLastSorted', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_byColumnsPrioritizeLastSorted).default;
  }
});

var _header = __webpack_require__(/*! ./header */ "./node_modules/sortabular/dist/header.js");

Object.defineProperty(exports, 'header', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_header).default;
  }
});

var _sorter = __webpack_require__(/*! ./sorter */ "./node_modules/sortabular/dist/sorter.js");

Object.defineProperty(exports, 'sorter', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_sorter).default;
  }
});

var _reset = __webpack_require__(/*! ./reset */ "./node_modules/sortabular/dist/reset.js");

Object.defineProperty(exports, 'reset', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_reset).default;
  }
});

var _sort = __webpack_require__(/*! ./sort */ "./node_modules/sortabular/dist/sort.js");

Object.defineProperty(exports, 'sort', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_sort).default;
  }
});

var _strategies = __webpack_require__(/*! ./strategies */ "./node_modules/sortabular/dist/strategies.js");

Object.defineProperty(exports, 'strategies', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_strategies).default;
  }
});

var _order = __webpack_require__(/*! ./order */ "./node_modules/sortabular/dist/order.js");

Object.defineProperty(exports, 'order', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_order).default;
  }
});

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/***/ }),

/***/ "./node_modules/sortabular/dist/order.js":
/*!***********************************************!*\
  !*** ./node_modules/sortabular/dist/order.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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; }; /* eslint-disable react/prop-types */


var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _defaultStrategy = __webpack_require__(/*! ./default-strategy */ "./node_modules/sortabular/dist/default-strategy.js");

var _defaultStrategy2 = _interopRequireDefault(_defaultStrategy);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var order = function order(_ref) {
  var getSortingColumns = _ref.getSortingColumns,
      _ref$props = _ref.props,
      props = _ref$props === undefined ? {} : _ref$props,
      _ref$strategy = _ref.strategy,
      strategy = _ref$strategy === undefined ? _defaultStrategy2.default : _ref$strategy;

  if (!getSortingColumns) {
    throw new Error('order - Missing getSortingColumns!');
  }

  return function (value, extra) {
    var sortingColumns = getSortingColumns();
    var sortingColumn = sortingColumns && sortingColumns[extra[strategy.fieldName]] || {};
    var sortingPosition = sortingColumn.position;

    return {}.hasOwnProperty.call(sortingColumn, 'position') ? _react2.default.createElement(
      'span',
      _extends({ className: 'sort-order' }, props),
      sortingPosition + 1
    ) : null;
  };
};

exports.default = order;

/***/ }),

/***/ "./node_modules/sortabular/dist/reset.js":
/*!***********************************************!*\
  !*** ./node_modules/sortabular/dist/reset.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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; };

var _defaultStrategy = __webpack_require__(/*! ./default-strategy */ "./node_modules/sortabular/dist/default-strategy.js");

var _defaultStrategy2 = _interopRequireDefault(_defaultStrategy);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var reset = function reset(_ref) {
  var _ref$event = _ref.event,
      event = _ref$event === undefined ? 'onDoubleClick' : _ref$event,
      _ref$getSortingColumn = _ref.getSortingColumns,
      getSortingColumns = _ref$getSortingColumn === undefined ? function () {
    return [];
  } : _ref$getSortingColumn,
      _ref$onReset = _ref.onReset,
      onReset = _ref$onReset === undefined ? function () {} : _ref$onReset,
      _ref$strategy = _ref.strategy,
      strategy = _ref$strategy === undefined ? _defaultStrategy2.default : _ref$strategy;
  return function (value, extra) {
    return _defineProperty({}, event, function () {
      var sortingColumns = getSortingColumns();

      if (!sortingColumns || !Object.keys(sortingColumns).length) {
        return;
      }

      var field = extra[strategy.fieldName];

      // If the field doesn't exist, there's nothing to reset
      if (!sortingColumns[field]) {
        return;
      }

      var position = sortingColumns[field].position;
      var newSortingColumns = {};

      delete sortingColumns[field];

      Object.keys(sortingColumns).forEach(function (k) {
        var column = sortingColumns[k];

        if (column.position > position) {
          newSortingColumns[k] = _extends({}, column, {
            position: column.position - 1
          });
        } else {
          newSortingColumns[k] = column;
        }
      });

      onReset({
        sortingColumns: newSortingColumns
      });
    });
  };
};

exports.default = reset;

/***/ }),

/***/ "./node_modules/sortabular/dist/sort.js":
/*!**********************************************!*\
  !*** ./node_modules/sortabular/dist/sort.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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; };

var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");

var _classnames2 = _interopRequireDefault(_classnames);

var _defaultStrategy = __webpack_require__(/*! ./default-strategy */ "./node_modules/sortabular/dist/default-strategy.js");

var _defaultStrategy2 = _interopRequireDefault(_defaultStrategy);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

var sort = function sort() {
  var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
      _ref$event = _ref.event,
      event = _ref$event === undefined ? 'onClick' : _ref$event,
      _ref$getSortingColumn = _ref.getSortingColumns,
      getSortingColumns = _ref$getSortingColumn === undefined ? function () {
    return [];
  } : _ref$getSortingColumn,
      _ref$onSort = _ref.onSort,
      onSort = _ref$onSort === undefined ? function () {} : _ref$onSort,
      _ref$strategy = _ref.strategy,
      strategy = _ref$strategy === undefined ? _defaultStrategy2.default : _ref$strategy;

  return function (_value, extra) {
    var _ref2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};

    var className = _ref2.className,
        props = _objectWithoutProperties(_ref2, ['className']);

    var sortingColumns = getSortingColumns();
    var field = extra[strategy.fieldName];
    var headerClass = 'sort sort-none';

    // Check against undefined to allow zero
    if (sortingColumns[field] !== undefined) {
      headerClass = 'sort sort-' + sortingColumns[field].direction;
    }

    return _extends({}, props, _defineProperty({
      className: (0, _classnames2.default)(className, headerClass)
    }, event, function () {
      return onSort(field);
    }));
  };
};

exports.default = sort;

/***/ }),

/***/ "./node_modules/sortabular/dist/sorter.js":
/*!************************************************!*\
  !*** ./node_modules/sortabular/dist/sorter.js ***!
  \************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _result = __webpack_require__(/*! lodash/result */ "./node_modules/lodash/result.js");

var _result2 = _interopRequireDefault(_result);

var _get = __webpack_require__(/*! lodash/get */ "./node_modules/lodash/get.js");

var _get2 = _interopRequireDefault(_get);

var _defaultStrategy = __webpack_require__(/*! ./default-strategy */ "./node_modules/sortabular/dist/default-strategy.js");

var _defaultStrategy2 = _interopRequireDefault(_defaultStrategy);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

// sorter === lodash orderBy
// https://lodash.com/docs#orderBy
var sorter = function sorter() {
  var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
      columns = _ref.columns,
      sortingColumns = _ref.sortingColumns,
      sort = _ref.sort,
      _ref$strategy = _ref.strategy,
      strategy = _ref$strategy === undefined ? _defaultStrategy2.default : _ref$strategy;

  return function (data) {
    if (!columns) {
      throw new Error('sort.sorter - Missing "columns" argument!');
    }

    if (!sort) {
      throw new Error('sort.sorter - Missing "sort" argument!');
    }

    if (!sortingColumns) {
      return data;
    }

    var columnIndexList = new Array(sortingColumns.length);
    var orderList = new Array(sortingColumns.length);

    Object.keys(sortingColumns).forEach(function (sortingColumnKey) {
      var realColumn = strategy.getColumn(columns, sortingColumnKey) || {};
      var sortingColumn = sortingColumns[sortingColumnKey];

      columnIndexList[sortingColumn.position] = function (row) {
        var property = realColumn.property;
        var value = row[property];
        // Pick resolved value by convention
        var resolvedValue = (0, _get2.default)(row, '_' + property, value);

        return (0, _result2.default)(resolvedValue, 'toLowerCase', resolvedValue);
      };

      orderList[sortingColumn.position] = sortingColumn.direction;
    });

    return sort(data, columnIndexList, orderList);
  };
};

exports.default = sorter;

/***/ }),

/***/ "./node_modules/sortabular/dist/strategies.js":
/*!****************************************************!*\
  !*** ./node_modules/sortabular/dist/strategies.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _find2 = __webpack_require__(/*! lodash/find */ "./node_modules/lodash/find.js");

var _find3 = _interopRequireDefault(_find2);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var byIndex = {
  fieldName: 'columnIndex',
  getColumn: function getColumn(columns, sortingColumnKey) {
    return columns[sortingColumnKey];
  }
};

var byProperty = {
  fieldName: 'property',
  getColumn: function getColumn(columns, property) {
    return (0, _find3.default)(columns, { property: property });
  }
};

exports.default = {
  byIndex: byIndex,
  byProperty: byProperty
};

/***/ }),

/***/ "./node_modules/style-loader/lib/addStyles.js":
/*!****************************************************!*\
  !*** ./node_modules/style-loader/lib/addStyles.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

/*
	MIT License http://www.opensource.org/licenses/mit-license.php
	Author Tobias Koppers @sokra
*/

var stylesInDom = {};

var	memoize = function (fn) {
	var memo;

	return function () {
		if (typeof memo === "undefined") memo = fn.apply(this, arguments);
		return memo;
	};
};

var isOldIE = memoize(function () {
	// Test for IE <= 9 as proposed by Browserhacks
	// @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
	// Tests for existence of standard globals is to allow style-loader
	// to operate correctly into non-standard environments
	// @see https://github.com/webpack-contrib/style-loader/issues/177
	return window && document && document.all && !window.atob;
});

var getTarget = function (target, parent) {
  if (parent){
    return parent.querySelector(target);
  }
  return document.querySelector(target);
};

var getElement = (function (fn) {
	var memo = {};

	return function(target, parent) {
                // If passing function in options, then use it for resolve "head" element.
                // Useful for Shadow Root style i.e
                // {
                //   insertInto: function () { return document.querySelector("#foo").shadowRoot }
                // }
                if (typeof target === 'function') {
                        return target();
                }
                if (typeof memo[target] === "undefined") {
			var styleTarget = getTarget.call(this, target, parent);
			// Special case to return head of iframe instead of iframe itself
			if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
				try {
					// This will throw an exception if access to iframe is blocked
					// due to cross-origin restrictions
					styleTarget = styleTarget.contentDocument.head;
				} catch(e) {
					styleTarget = null;
				}
			}
			memo[target] = styleTarget;
		}
		return memo[target]
	};
})();

var singleton = null;
var	singletonCounter = 0;
var	stylesInsertedAtTop = [];

var	fixUrls = __webpack_require__(/*! ./urls */ "./node_modules/style-loader/lib/urls.js");

module.exports = function(list, options) {
	if (typeof DEBUG !== "undefined" && DEBUG) {
		if (typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");
	}

	options = options || {};

	options.attrs = typeof options.attrs === "object" ? options.attrs : {};

	// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
	// tags it will allow on a page
	if (!options.singleton && typeof options.singleton !== "boolean") options.singleton = isOldIE();

	// By default, add <style> tags to the <head> element
        if (!options.insertInto) options.insertInto = "head";

	// By default, add <style> tags to the bottom of the target
	if (!options.insertAt) options.insertAt = "bottom";

	var styles = listToStyles(list, options);

	addStylesToDom(styles, options);

	return function update (newList) {
		var mayRemove = [];

		for (var i = 0; i < styles.length; i++) {
			var item = styles[i];
			var domStyle = stylesInDom[item.id];

			domStyle.refs--;
			mayRemove.push(domStyle);
		}

		if(newList) {
			var newStyles = listToStyles(newList, options);
			addStylesToDom(newStyles, options);
		}

		for (var i = 0; i < mayRemove.length; i++) {
			var domStyle = mayRemove[i];

			if(domStyle.refs === 0) {
				for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();

				delete stylesInDom[domStyle.id];
			}
		}
	};
};

function addStylesToDom (styles, options) {
	for (var i = 0; i < styles.length; i++) {
		var item = styles[i];
		var domStyle = stylesInDom[item.id];

		if(domStyle) {
			domStyle.refs++;

			for(var j = 0; j < domStyle.parts.length; j++) {
				domStyle.parts[j](item.parts[j]);
			}

			for(; j < item.parts.length; j++) {
				domStyle.parts.push(addStyle(item.parts[j], options));
			}
		} else {
			var parts = [];

			for(var j = 0; j < item.parts.length; j++) {
				parts.push(addStyle(item.parts[j], options));
			}

			stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};
		}
	}
}

function listToStyles (list, options) {
	var styles = [];
	var newStyles = {};

	for (var i = 0; i < list.length; i++) {
		var item = list[i];
		var id = options.base ? item[0] + options.base : item[0];
		var css = item[1];
		var media = item[2];
		var sourceMap = item[3];
		var part = {css: css, media: media, sourceMap: sourceMap};

		if(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]});
		else newStyles[id].parts.push(part);
	}

	return styles;
}

function insertStyleElement (options, style) {
	var target = getElement(options.insertInto)

	if (!target) {
		throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
	}

	var lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];

	if (options.insertAt === "top") {
		if (!lastStyleElementInsertedAtTop) {
			target.insertBefore(style, target.firstChild);
		} else if (lastStyleElementInsertedAtTop.nextSibling) {
			target.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling);
		} else {
			target.appendChild(style);
		}
		stylesInsertedAtTop.push(style);
	} else if (options.insertAt === "bottom") {
		target.appendChild(style);
	} else if (typeof options.insertAt === "object" && options.insertAt.before) {
		var nextSibling = getElement(options.insertAt.before, target);
		target.insertBefore(style, nextSibling);
	} else {
		throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");
	}
}

function removeStyleElement (style) {
	if (style.parentNode === null) return false;
	style.parentNode.removeChild(style);

	var idx = stylesInsertedAtTop.indexOf(style);
	if(idx >= 0) {
		stylesInsertedAtTop.splice(idx, 1);
	}
}

function createStyleElement (options) {
	var style = document.createElement("style");

	if(options.attrs.type === undefined) {
		options.attrs.type = "text/css";
	}

	if(options.attrs.nonce === undefined) {
		var nonce = getNonce();
		if (nonce) {
			options.attrs.nonce = nonce;
		}
	}

	addAttrs(style, options.attrs);
	insertStyleElement(options, style);

	return style;
}

function createLinkElement (options) {
	var link = document.createElement("link");

	if(options.attrs.type === undefined) {
		options.attrs.type = "text/css";
	}
	options.attrs.rel = "stylesheet";

	addAttrs(link, options.attrs);
	insertStyleElement(options, link);

	return link;
}

function addAttrs (el, attrs) {
	Object.keys(attrs).forEach(function (key) {
		el.setAttribute(key, attrs[key]);
	});
}

function getNonce() {
	if (false) {}

	return __webpack_require__.nc;
}

function addStyle (obj, options) {
	var style, update, remove, result;

	// If a transform function was defined, run it on the css
	if (options.transform && obj.css) {
	    result = typeof options.transform === 'function'
		 ? options.transform(obj.css) 
		 : options.transform.default(obj.css);

	    if (result) {
	    	// If transform returns a value, use that instead of the original css.
	    	// This allows running runtime transformations on the css.
	    	obj.css = result;
	    } else {
	    	// If the transform function returns a falsy value, don't add this css.
	    	// This allows conditional loading of css
	    	return function() {
	    		// noop
	    	};
	    }
	}

	if (options.singleton) {
		var styleIndex = singletonCounter++;

		style = singleton || (singleton = createStyleElement(options));

		update = applyToSingletonTag.bind(null, style, styleIndex, false);
		remove = applyToSingletonTag.bind(null, style, styleIndex, true);

	} else if (
		obj.sourceMap &&
		typeof URL === "function" &&
		typeof URL.createObjectURL === "function" &&
		typeof URL.revokeObjectURL === "function" &&
		typeof Blob === "function" &&
		typeof btoa === "function"
	) {
		style = createLinkElement(options);
		update = updateLink.bind(null, style, options);
		remove = function () {
			removeStyleElement(style);

			if(style.href) URL.revokeObjectURL(style.href);
		};
	} else {
		style = createStyleElement(options);
		update = applyToTag.bind(null, style);
		remove = function () {
			removeStyleElement(style);
		};
	}

	update(obj);

	return function updateStyle (newObj) {
		if (newObj) {
			if (
				newObj.css === obj.css &&
				newObj.media === obj.media &&
				newObj.sourceMap === obj.sourceMap
			) {
				return;
			}

			update(obj = newObj);
		} else {
			remove();
		}
	};
}

var replaceText = (function () {
	var textStore = [];

	return function (index, replacement) {
		textStore[index] = replacement;

		return textStore.filter(Boolean).join('\n');
	};
})();

function applyToSingletonTag (style, index, remove, obj) {
	var css = remove ? "" : obj.css;

	if (style.styleSheet) {
		style.styleSheet.cssText = replaceText(index, css);
	} else {
		var cssNode = document.createTextNode(css);
		var childNodes = style.childNodes;

		if (childNodes[index]) style.removeChild(childNodes[index]);

		if (childNodes.length) {
			style.insertBefore(cssNode, childNodes[index]);
		} else {
			style.appendChild(cssNode);
		}
	}
}

function applyToTag (style, obj) {
	var css = obj.css;
	var media = obj.media;

	if(media) {
		style.setAttribute("media", media)
	}

	if(style.styleSheet) {
		style.styleSheet.cssText = css;
	} else {
		while(style.firstChild) {
			style.removeChild(style.firstChild);
		}

		style.appendChild(document.createTextNode(css));
	}
}

function updateLink (link, options, obj) {
	var css = obj.css;
	var sourceMap = obj.sourceMap;

	/*
		If convertToAbsoluteUrls isn't defined, but sourcemaps are enabled
		and there is no publicPath defined then lets turn convertToAbsoluteUrls
		on by default.  Otherwise default to the convertToAbsoluteUrls option
		directly
	*/
	var autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;

	if (options.convertToAbsoluteUrls || autoFixUrls) {
		css = fixUrls(css);
	}

	if (sourceMap) {
		// http://stackoverflow.com/a/26603875
		css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
	}

	var blob = new Blob([css], { type: "text/css" });

	var oldSrc = link.href;

	link.href = URL.createObjectURL(blob);

	if(oldSrc) URL.revokeObjectURL(oldSrc);
}


/***/ }),

/***/ "./node_modules/style-loader/lib/urls.js":
/*!***********************************************!*\
  !*** ./node_modules/style-loader/lib/urls.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports) {


/**
 * When source maps are enabled, `style-loader` uses a link element with a data-uri to
 * embed the css on the page. This breaks all relative urls because now they are relative to a
 * bundle instead of the current page.
 *
 * One solution is to only use full urls, but that may be impossible.
 *
 * Instead, this function "fixes" the relative urls to be absolute according to the current page location.
 *
 * A rudimentary test suite is located at `test/fixUrls.js` and can be run via the `npm test` command.
 *
 */

module.exports = function (css) {
  // get current location
  var location = typeof window !== "undefined" && window.location;

  if (!location) {
    throw new Error("fixUrls requires window.location");
  }

	// blank or null?
	if (!css || typeof css !== "string") {
	  return css;
  }

  var baseUrl = location.protocol + "//" + location.host;
  var currentDir = baseUrl + location.pathname.replace(/\/[^\/]*$/, "/");

	// convert each url(...)
	/*
	This regular expression is just a way to recursively match brackets within
	a string.

	 /url\s*\(  = Match on the word "url" with any whitespace after it and then a parens
	   (  = Start a capturing group
	     (?:  = Start a non-capturing group
	         [^)(]  = Match anything that isn't a parentheses
	         |  = OR
	         \(  = Match a start parentheses
	             (?:  = Start another non-capturing groups
	                 [^)(]+  = Match anything that isn't a parentheses
	                 |  = OR
	                 \(  = Match a start parentheses
	                     [^)(]*  = Match anything that isn't a parentheses
	                 \)  = Match a end parentheses
	             )  = End Group
              *\) = Match anything and then a close parens
          )  = Close non-capturing group
          *  = Match anything
       )  = Close capturing group
	 \)  = Match a close parens

	 /gi  = Get all matches, not the first.  Be case insensitive.
	 */
	var fixedCss = css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(fullMatch, origUrl) {
		// strip quotes (if they exist)
		var unquotedOrigUrl = origUrl
			.trim()
			.replace(/^"(.*)"$/, function(o, $1){ return $1; })
			.replace(/^'(.*)'$/, function(o, $1){ return $1; });

		// already a full url? no change
		if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(unquotedOrigUrl)) {
		  return fullMatch;
		}

		// convert the url to a full url
		var newUrl;

		if (unquotedOrigUrl.indexOf("//") === 0) {
		  	//TODO: should we add protocol?
			newUrl = unquotedOrigUrl;
		} else if (unquotedOrigUrl.indexOf("/") === 0) {
			// path should be relative to the base url
			newUrl = baseUrl + unquotedOrigUrl; // already starts with '/'
		} else {
			// path should be relative to current directory
			newUrl = currentDir + unquotedOrigUrl.replace(/^\.\//, ""); // Strip leading './'
		}

		// send back the fixed url(...)
		return "url(" + JSON.stringify(newUrl) + ")";
	});

	// send back the fixed css
	return fixedCss;
};


/***/ }),

/***/ "./node_modules/symbol-observable/es/index.js":
/*!****************************************************!*\
  !*** ./node_modules/symbol-observable/es/index.js ***!
  \****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* WEBPACK VAR INJECTION */(function(global, module) {/* harmony import */ var _ponyfill_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ponyfill.js */ "./node_modules/symbol-observable/es/ponyfill.js");
/* global window */


var root;

if (typeof self !== 'undefined') {
  root = self;
} else if (typeof window !== 'undefined') {
  root = window;
} else if (typeof global !== 'undefined') {
  root = global;
} else if (true) {
  root = module;
} else {}

var result = Object(_ponyfill_js__WEBPACK_IMPORTED_MODULE_0__["default"])(root);
/* harmony default export */ __webpack_exports__["default"] = (result);

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../../webpack/buildin/harmony-module.js */ "./node_modules/webpack/buildin/harmony-module.js")(module)))

/***/ }),

/***/ "./node_modules/symbol-observable/es/ponyfill.js":
/*!*******************************************************!*\
  !*** ./node_modules/symbol-observable/es/ponyfill.js ***!
  \*******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return symbolObservablePonyfill; });
function symbolObservablePonyfill(root) {
	var result;
	var Symbol = root.Symbol;

	if (typeof Symbol === 'function') {
		if (Symbol.observable) {
			result = Symbol.observable;
		} else {
			result = Symbol('observable');
			Symbol.observable = result;
		}
	} else {
		result = '@@observable';
	}

	return result;
};


/***/ }),

/***/ "./node_modules/table-resolver/dist/by-function.js":
/*!*********************************************************!*\
  !*** ./node_modules/table-resolver/dist/by-function.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _get2 = __webpack_require__(/*! lodash/get */ "./node_modules/lodash/get.js");

var _get3 = _interopRequireDefault(_get2);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function byFunction(path) {
  /* eslint no-param-reassign: "off" */

  return function (_ref) {
    var _ref$column = _ref.column,
        column = _ref$column === undefined ? {} : _ref$column;
    return function (rowData) {
      var property = column.property;

      var resolver = (0, _get3.default)(column, path);

      if (!property || !resolver) {
        return rowData;
      }

      var value = rowData[property];

      rowData['_' + property] = resolver(value, {
        property: property,
        rowData: rowData
      });

      return rowData;
    };
  };
}

exports.default = byFunction;

/***/ }),

/***/ "./node_modules/table-resolver/dist/column-children.js":
/*!*************************************************************!*\
  !*** ./node_modules/table-resolver/dist/column-children.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
function columnChildren(_ref) {
  var columns = _ref.columns,
      _ref$childrenField = _ref.childrenField,
      childrenField = _ref$childrenField === undefined ? 'children' : _ref$childrenField;

  if (!columns) {
    throw new Error('resolve.columnChildren - Missing columns!');
  }

  var ret = [];

  columns.forEach(function (column) {
    // If a column has children, skip cell specific configuration
    if (column[childrenField] && column[childrenField].length) {
      ret = ret.concat(columnChildren({
        columns: column[childrenField],
        childrenField: childrenField
      }));
    } else {
      ret.push(column);
    }
  });

  return ret;
}

exports.default = columnChildren;

/***/ }),

/***/ "./node_modules/table-resolver/dist/count-col-span.js":
/*!************************************************************!*\
  !*** ./node_modules/table-resolver/dist/count-col-span.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
function countColSpan(columns, returnCount) {
  var count = returnCount;
  if (columns && columns.length > 0) {
    columns.forEach(function (column) {
      if (column.children && column.children.length > 0) {
        count = countColSpan(column.children, count);
      } else {
        count += 1;
      }
    });
  }
  return count;
}

exports.default = countColSpan;

/***/ }),

/***/ "./node_modules/table-resolver/dist/count-row-span.js":
/*!************************************************************!*\
  !*** ./node_modules/table-resolver/dist/count-row-span.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
function countRowSpan(columns) {
  var maximumCount = 0;

  columns.forEach(function (column) {
    if (column.children && column.children.length) {
      maximumCount = Math.max(maximumCount, countRowSpan(column.children));
    }
  });

  return maximumCount + 1;
}

exports.default = countRowSpan;

/***/ }),

/***/ "./node_modules/table-resolver/dist/header-rows.js":
/*!*********************************************************!*\
  !*** ./node_modules/table-resolver/dist/header-rows.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _omit2 = __webpack_require__(/*! lodash/omit */ "./node_modules/lodash/omit.js");

var _omit3 = _interopRequireDefault(_omit2);

var _countRowSpan = __webpack_require__(/*! ./count-row-span */ "./node_modules/table-resolver/dist/count-row-span.js");

var _countRowSpan2 = _interopRequireDefault(_countRowSpan);

var _countColSpan = __webpack_require__(/*! ./count-col-span */ "./node_modules/table-resolver/dist/count-col-span.js");

var _countColSpan2 = _interopRequireDefault(_countColSpan);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }

function resolveHeaderRows(_ref) {
  var columns = _ref.columns,
      _ref$childrenField = _ref.childrenField,
      childrenField = _ref$childrenField === undefined ? 'children' : _ref$childrenField;

  var resolvedChildren = [];

  var ret = columns.map(function (column) {
    var children = column[childrenField];
    var col = (0, _omit3.default)(column, [childrenField]);

    if (children && children.length) {
      resolveHeaderRows({ columns: children, childrenField: childrenField }).forEach(function (cells, depth) {
        resolvedChildren[depth] = [].concat(_toConsumableArray(resolvedChildren[depth] || []), _toConsumableArray(cells));
      });

      return Object.assign({}, col, {
        props: Object.assign({
          colSpan: (0, _countColSpan2.default)(children, 0)
        }, col.props)
      });
    }

    return Object.assign({}, col, {
      props: Object.assign({
        rowSpan: (0, _countRowSpan2.default)(columns)
      }, col.props)
    });
  });

  return resolvedChildren.length ? [ret].concat(resolvedChildren) : [ret];
}

exports.default = resolveHeaderRows;

/***/ }),

/***/ "./node_modules/table-resolver/dist/index.js":
/*!***************************************************!*\
  !*** ./node_modules/table-resolver/dist/index.js ***!
  \***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _resolve = __webpack_require__(/*! ./resolve */ "./node_modules/table-resolver/dist/resolve.js");

Object.defineProperty(exports, 'resolve', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_resolve).default;
  }
});

var _nested = __webpack_require__(/*! ./nested */ "./node_modules/table-resolver/dist/nested.js");

Object.defineProperty(exports, 'nested', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_nested).default;
  }
});

var _byFunction = __webpack_require__(/*! ./by-function */ "./node_modules/table-resolver/dist/by-function.js");

Object.defineProperty(exports, 'byFunction', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_byFunction).default;
  }
});

var _countRowSpan = __webpack_require__(/*! ./count-row-span */ "./node_modules/table-resolver/dist/count-row-span.js");

Object.defineProperty(exports, 'countRowSpan', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_countRowSpan).default;
  }
});

var _columnChildren = __webpack_require__(/*! ./column-children */ "./node_modules/table-resolver/dist/column-children.js");

Object.defineProperty(exports, 'columnChildren', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_columnChildren).default;
  }
});

var _headerRows = __webpack_require__(/*! ./header-rows */ "./node_modules/table-resolver/dist/header-rows.js");

Object.defineProperty(exports, 'headerRows', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_headerRows).default;
  }
});

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/***/ }),

/***/ "./node_modules/table-resolver/dist/nested.js":
/*!****************************************************!*\
  !*** ./node_modules/table-resolver/dist/nested.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _isFunction2 = __webpack_require__(/*! lodash/isFunction */ "./node_modules/lodash/isFunction.js");

var _isFunction3 = _interopRequireDefault(_isFunction2);

var _has2 = __webpack_require__(/*! lodash/has */ "./node_modules/lodash/has.js");

var _has3 = _interopRequireDefault(_has2);

var _get2 = __webpack_require__(/*! lodash/get */ "./node_modules/lodash/get.js");

var _get3 = _interopRequireDefault(_get2);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var reIsPlainProp = /^\w*$/;

function nested(_ref) {
  var column = _ref.column;

  /* eslint no-param-reassign: "off" */

  var property = column.property;


  if (!property) {
    return function (rowData) {
      return rowData;
    };
  }

  // if users provide a custom getter instead of a
  // path for _.get, use that getter ...
  if ((0, _isFunction3.default)(property)) {
    // TODO: Function as key can't be right?
    return function (rowData) {
      rowData[property] = property(rowData);
      return rowData;
    };
  }

  // Make things simple if the property is simple.  No copy needed.
  if (typeof property === 'string' && reIsPlainProp.test(property)) {
    return function (rowData) {
      return rowData;
    };
  }

  return function (rowData) {
    // ... otherwise, make sure property exists, then _.get it
    if (!(0, _has3.default)(rowData, property)) {
      return rowData;
    }

    rowData[property] = (0, _get3.default)(rowData, property);
    return rowData;
  };
}

exports.default = nested;

/***/ }),

/***/ "./node_modules/table-resolver/dist/resolve.js":
/*!*****************************************************!*\
  !*** ./node_modules/table-resolver/dist/resolve.js ***!
  \*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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; };

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function resolve(_ref) {
  var columns = _ref.columns,
      _ref$method = _ref.method,
      method = _ref$method === undefined ? function () {
    return function (rowData) {
      return rowData;
    };
  } : _ref$method,
      _ref$indexKey = _ref.indexKey,
      indexKey = _ref$indexKey === undefined ? '_index' : _ref$indexKey;

  if (!columns) {
    throw new Error('resolve - Missing columns!');
  }

  return function () {
    var rows = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];

    var methodsByColumn = columns.map(function (column) {
      return method({ column: column });
    });

    return rows.map(function (rowData, rowIndex) {
      var ret = _extends(_defineProperty({}, indexKey, rowIndex), rowData);

      methodsByColumn.forEach(function (boundMethod) {
        ret = boundMethod(ret);
      });

      return ret;
    });
  };
}

exports.default = resolve;

/***/ }),

/***/ "./node_modules/uncontrollable/index.js":
/*!**********************************************!*\
  !*** ./node_modules/uncontrollable/index.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = uncontrollable;

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _invariant = _interopRequireDefault(__webpack_require__(/*! invariant */ "./node_modules/invariant/browser.js"));

var Utils = _interopRequireWildcard(__webpack_require__(/*! ./utils */ "./node_modules/uncontrollable/utils.js"));

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _extends() { _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; }; return _extends.apply(this, arguments); }

function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }

function uncontrollable(Component, controlledValues, methods) {
  if (methods === void 0) {
    methods = [];
  }

  var displayName = Component.displayName || Component.name || 'Component';
  var isCompositeComponent = Utils.isReactComponent(Component);
  var controlledProps = Object.keys(controlledValues);
  var PROPS_TO_OMIT = controlledProps.map(Utils.defaultKey);
  !(isCompositeComponent || !methods.length) ?  true ? (0, _invariant.default)(false, '[uncontrollable] stateless function components cannot pass through methods ' + 'because they have no associated instances. Check component: ' + displayName + ', ' + 'attempting to pass through methods: ' + methods.join(', ')) : undefined : void 0;

  var UncontrolledComponent =
  /*#__PURE__*/
  function (_React$Component) {
    _inheritsLoose(UncontrolledComponent, _React$Component);

    function UncontrolledComponent() {
      var _this;

      for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
      _this.handlers = Object.create(null);
      controlledProps.forEach(function (propName) {
        var handlerName = controlledValues[propName];

        var handleChange = function handleChange(value) {
          if (_this.props[handlerName]) {
            var _this$props;

            _this._notifying = true;

            for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
              args[_key2 - 1] = arguments[_key2];
            }

            (_this$props = _this.props)[handlerName].apply(_this$props, [value].concat(args));

            _this._notifying = false;
          }

          _this._values[propName] = value;
          if (!_this.unmounted) _this.forceUpdate();
        };

        _this.handlers[handlerName] = handleChange;
      });
      if (isCompositeComponent) _this.attachRef = function (ref) {
        _this.inner = ref;
      };
      return _this;
    }

    var _proto = UncontrolledComponent.prototype;

    _proto.shouldComponentUpdate = function shouldComponentUpdate() {
      //let the forceUpdate trigger the update
      return !this._notifying;
    };

    _proto.componentWillMount = function componentWillMount() {
      var _this2 = this;

      var props = this.props;
      this._values = Object.create(null);
      controlledProps.forEach(function (key) {
        _this2._values[key] = props[Utils.defaultKey(key)];
      });
    };

    _proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
      var _this3 = this;

      var props = this.props;
      controlledProps.forEach(function (key) {
        /**
         * If a prop switches from controlled to Uncontrolled
         * reset its value to the defaultValue
         */
        if (!Utils.isProp(nextProps, key) && Utils.isProp(props, key)) {
          _this3._values[key] = nextProps[Utils.defaultKey(key)];
        }
      });
    };

    _proto.componentWillUnmount = function componentWillUnmount() {
      this.unmounted = true;
    };

    _proto.getControlledInstance = function getControlledInstance() {
      return this.inner;
    };

    _proto.render = function render() {
      var _this4 = this;

      var props = _extends({}, this.props);

      PROPS_TO_OMIT.forEach(function (prop) {
        delete props[prop];
      });
      var newProps = {};
      controlledProps.forEach(function (propName) {
        var propValue = _this4.props[propName];
        newProps[propName] = propValue !== undefined ? propValue : _this4._values[propName];
      });
      return _react.default.createElement(Component, _extends({}, props, newProps, this.handlers, {
        ref: this.attachRef
      }));
    };

    return UncontrolledComponent;
  }(_react.default.Component);

  UncontrolledComponent.displayName = "Uncontrolled(" + displayName + ")";
  UncontrolledComponent.propTypes = Utils.uncontrolledPropTypes(controlledValues, displayName);
  methods.forEach(function (method) {
    UncontrolledComponent.prototype[method] = function $proxiedMethod() {
      var _inner;

      return (_inner = this.inner)[method].apply(_inner, arguments);
    };
  });
  UncontrolledComponent.ControlledComponent = Component;
  /**
   * useful when wrapping a Component and you want to control
   * everything
   */

  UncontrolledComponent.deferControlTo = function (newComponent, additions, nextMethods) {
    if (additions === void 0) {
      additions = {};
    }

    return uncontrollable(newComponent, _extends({}, controlledValues, additions), nextMethods);
  };

  return UncontrolledComponent;
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/uncontrollable/utils.js":
/*!**********************************************!*\
  !*** ./node_modules/uncontrollable/utils.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.uncontrolledPropTypes = uncontrolledPropTypes;
exports.isProp = isProp;
exports.defaultKey = defaultKey;
exports.isReactComponent = isReactComponent;

var _invariant = _interopRequireDefault(__webpack_require__(/*! invariant */ "./node_modules/invariant/browser.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var noop = function noop() {};

function readOnlyPropType(handler, name) {
  return function (props, propName) {
    if (props[propName] !== undefined) {
      if (!props[handler]) {
        return new Error("You have provided a `" + propName + "` prop to `" + name + "` " + ("without an `" + handler + "` handler prop. This will render a read-only field. ") + ("If the field should be mutable use `" + defaultKey(propName) + "`. ") + ("Otherwise, set `" + handler + "`."));
      }
    }
  };
}

function uncontrolledPropTypes(controlledValues, displayName) {
  var propTypes = {};
  Object.keys(controlledValues).forEach(function (prop) {
    // add default propTypes for folks that use runtime checks
    propTypes[defaultKey(prop)] = noop;

    if (true) {
      var handler = controlledValues[prop];
      !(typeof handler === 'string' && handler.trim().length) ?  true ? (0, _invariant.default)(false, 'Uncontrollable - [%s]: the prop `%s` needs a valid handler key name in order to make it uncontrollable', displayName, prop) : undefined : void 0;
      propTypes[prop] = readOnlyPropType(handler, displayName);
    }
  });
  return propTypes;
}

function isProp(props, prop) {
  return props[prop] !== undefined;
}

function defaultKey(key) {
  return 'default' + key.charAt(0).toUpperCase() + key.substr(1);
}
/**
 * Copyright (c) 2013-present, Facebook, Inc.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree. An additional grant
 * of patent rights can be found in the PATENTS file in the same directory.
 */


function isReactComponent(component) {
  return !!(component && component.prototype && component.prototype.isReactComponent);
}

/***/ }),

/***/ "./node_modules/uuid/lib/bytesToUuid.js":
/*!**********************************************!*\
  !*** ./node_modules/uuid/lib/bytesToUuid.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Convert array of 16 byte values to UUID string format of the form:
 * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
 */
var byteToHex = [];
for (var i = 0; i < 256; ++i) {
  byteToHex[i] = (i + 0x100).toString(16).substr(1);
}

function bytesToUuid(buf, offset) {
  var i = offset || 0;
  var bth = byteToHex;
  // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
  return ([bth[buf[i++]], bth[buf[i++]], 
	bth[buf[i++]], bth[buf[i++]], '-',
	bth[buf[i++]], bth[buf[i++]], '-',
	bth[buf[i++]], bth[buf[i++]], '-',
	bth[buf[i++]], bth[buf[i++]], '-',
	bth[buf[i++]], bth[buf[i++]],
	bth[buf[i++]], bth[buf[i++]],
	bth[buf[i++]], bth[buf[i++]]]).join('');
}

module.exports = bytesToUuid;


/***/ }),

/***/ "./node_modules/uuid/lib/rng-browser.js":
/*!**********************************************!*\
  !*** ./node_modules/uuid/lib/rng-browser.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

// Unique ID creation requires a high quality random # generator.  In the
// browser this is a little complicated due to unknown quality of Math.random()
// and inconsistent support for the `crypto` API.  We do the best we can via
// feature-detection

// getRandomValues needs to be invoked in a context where "this" is a Crypto
// implementation. Also, find the complete implementation of crypto on IE11.
var getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) ||
                      (typeof(msCrypto) != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto));

if (getRandomValues) {
  // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto
  var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef

  module.exports = function whatwgRNG() {
    getRandomValues(rnds8);
    return rnds8;
  };
} else {
  // Math.random()-based (RNG)
  //
  // If all else fails, use Math.random().  It's fast, but is of unspecified
  // quality.
  var rnds = new Array(16);

  module.exports = function mathRNG() {
    for (var i = 0, r; i < 16; i++) {
      if ((i & 0x03) === 0) r = Math.random() * 0x100000000;
      rnds[i] = r >>> ((i & 0x03) << 3) & 0xff;
    }

    return rnds;
  };
}


/***/ }),

/***/ "./node_modules/uuid/v1.js":
/*!*********************************!*\
  !*** ./node_modules/uuid/v1.js ***!
  \*********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var rng = __webpack_require__(/*! ./lib/rng */ "./node_modules/uuid/lib/rng-browser.js");
var bytesToUuid = __webpack_require__(/*! ./lib/bytesToUuid */ "./node_modules/uuid/lib/bytesToUuid.js");

// **`v1()` - Generate time-based UUID**
//
// Inspired by https://github.com/LiosK/UUID.js
// and http://docs.python.org/library/uuid.html

var _nodeId;
var _clockseq;

// Previous uuid creation time
var _lastMSecs = 0;
var _lastNSecs = 0;

// See https://github.com/broofa/node-uuid for API details
function v1(options, buf, offset) {
  var i = buf && offset || 0;
  var b = buf || [];

  options = options || {};
  var node = options.node || _nodeId;
  var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;

  // node and clockseq need to be initialized to random values if they're not
  // specified.  We do this lazily to minimize issues related to insufficient
  // system entropy.  See #189
  if (node == null || clockseq == null) {
    var seedBytes = rng();
    if (node == null) {
      // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
      node = _nodeId = [
        seedBytes[0] | 0x01,
        seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]
      ];
    }
    if (clockseq == null) {
      // Per 4.2.2, randomize (14 bit) clockseq
      clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
    }
  }

  // UUID timestamps are 100 nano-second units since the Gregorian epoch,
  // (1582-10-15 00:00).  JSNumbers aren't precise enough for this, so
  // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
  // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
  var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime();

  // Per 4.2.1.2, use count of uuid's generated during the current clock
  // cycle to simulate higher resolution clock
  var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;

  // Time since last uuid creation (in msecs)
  var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000;

  // Per 4.2.1.2, Bump clockseq on clock regression
  if (dt < 0 && options.clockseq === undefined) {
    clockseq = clockseq + 1 & 0x3fff;
  }

  // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
  // time interval
  if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
    nsecs = 0;
  }

  // Per 4.2.1.2 Throw error if too many uuids are requested
  if (nsecs >= 10000) {
    throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec');
  }

  _lastMSecs = msecs;
  _lastNSecs = nsecs;
  _clockseq = clockseq;

  // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
  msecs += 12219292800000;

  // `time_low`
  var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
  b[i++] = tl >>> 24 & 0xff;
  b[i++] = tl >>> 16 & 0xff;
  b[i++] = tl >>> 8 & 0xff;
  b[i++] = tl & 0xff;

  // `time_mid`
  var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;
  b[i++] = tmh >>> 8 & 0xff;
  b[i++] = tmh & 0xff;

  // `time_high_and_version`
  b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
  b[i++] = tmh >>> 16 & 0xff;

  // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
  b[i++] = clockseq >>> 8 | 0x80;

  // `clock_seq_low`
  b[i++] = clockseq & 0xff;

  // `node`
  for (var n = 0; n < 6; ++n) {
    b[i + n] = node[n];
  }

  return buf ? buf : bytesToUuid(b);
}

module.exports = v1;


/***/ }),

/***/ "./node_modules/warning/browser.js":
/*!*****************************************!*\
  !*** ./node_modules/warning/browser.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/**
 * Copyright 2014-2015, Facebook, Inc.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree. An additional grant
 * of patent rights can be found in the PATENTS file in the same directory.
 */



/**
 * Similar to invariant but only logs a warning if the condition is not met.
 * This can be used to log issues in development environments in critical
 * paths. Removing the logging code for production environments will keep the
 * same logic and follow the same code paths.
 */

var warning = function() {};

if (true) {
  warning = function(condition, format, args) {
    var len = arguments.length;
    args = new Array(len > 2 ? len - 2 : 0);
    for (var key = 2; key < len; key++) {
      args[key - 2] = arguments[key];
    }
    if (format === undefined) {
      throw new Error(
        '`warning(condition, format, ...args)` requires a warning ' +
        'message argument'
      );
    }

    if (format.length < 10 || (/^[s\W]*$/).test(format)) {
      throw new Error(
        'The warning format should be able to uniquely identify this ' +
        'warning. Please, use a more descriptive format than: ' + format
      );
    }

    if (!condition) {
      var argIndex = 0;
      var message = 'Warning: ' +
        format.replace(/%s/g, function() {
          return args[argIndex++];
        });
      if (typeof console !== 'undefined') {
        console.error(message);
      }
      try {
        // This error was thrown as a convenience so that you can use this stack
        // to find the callsite that caused this warning to fire.
        throw new Error(message);
      } catch(x) {}
    }
  };
}

module.exports = warning;


/***/ }),

/***/ "./node_modules/webpack/buildin/global.js":
/*!***********************************!*\
  !*** (webpack)/buildin/global.js ***!
  \***********************************/
/*! no static exports found */
/***/ (function(module, exports) {

var g;

// This works in non-strict mode
g = (function() {
	return this;
})();

try {
	// This works if eval is allowed (see CSP)
	g = g || Function("return this")() || (1, eval)("this");
} catch (e) {
	// This works if the window reference is available
	if (typeof window === "object") g = window;
}

// g can still be undefined, but nothing to do about it...
// We return undefined, instead of nothing here, so it's
// easier to handle this case. if(!global) { ...}

module.exports = g;


/***/ }),

/***/ "./node_modules/webpack/buildin/harmony-module.js":
/*!*******************************************!*\
  !*** (webpack)/buildin/harmony-module.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = function(originalModule) {
	if (!originalModule.webpackPolyfill) {
		var module = Object.create(originalModule);
		// module.parent = undefined by default
		if (!module.children) module.children = [];
		Object.defineProperty(module, "loaded", {
			enumerable: true,
			get: function() {
				return module.l;
			}
		});
		Object.defineProperty(module, "id", {
			enumerable: true,
			get: function() {
				return module.i;
			}
		});
		Object.defineProperty(module, "exports", {
			enumerable: true
		});
		module.webpackPolyfill = 1;
	}
	return module;
};


/***/ }),

/***/ "./node_modules/webpack/buildin/module.js":
/*!***********************************!*\
  !*** (webpack)/buildin/module.js ***!
  \***********************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = function(module) {
	if (!module.webpackPolyfill) {
		module.deprecate = function() {};
		module.paths = [];
		// module.parent = undefined by default
		if (!module.children) module.children = [];
		Object.defineProperty(module, "loaded", {
			enumerable: true,
			get: function() {
				return module.l;
			}
		});
		Object.defineProperty(module, "id", {
			enumerable: true,
			get: function() {
				return module.i;
			}
		});
		module.webpackPolyfill = 1;
	}
	return module;
};


/***/ }),

/***/ "./src/css/ds.css":
/*!************************!*\
  !*** ./src/css/ds.css ***!
  \************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {


var content = __webpack_require__(/*! !../../node_modules/css-loader/dist/cjs.js!./ds.css */ "./node_modules/css-loader/dist/cjs.js!./src/css/ds.css");

if(typeof content === 'string') content = [[module.i, content, '']];

var transform;
var insertInto;



var options = {"hmr":true}

options.transform = transform
options.insertInto = undefined;

var update = __webpack_require__(/*! ../../node_modules/style-loader/lib/addStyles.js */ "./node_modules/style-loader/lib/addStyles.js")(content, options);

if(content.locals) module.exports = content.locals;

if(false) {}

/***/ }),

/***/ "./src/database.jsx":
/*!**************************!*\
  !*** ./src/database.jsx ***!
  \**************************/
/*! exports provided: Database */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Database", function() { return Database; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lib/notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lib/tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _lib_database_chaining_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./lib/database/chaining.jsx */ "./src/lib/database/chaining.jsx");
/* harmony import */ var _lib_database_databaseConfig_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./lib/database/databaseConfig.jsx */ "./src/lib/database/databaseConfig.jsx");
/* harmony import */ var _lib_database_suffix_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./lib/database/suffix.jsx */ "./src/lib/database/suffix.jsx");
/* harmony import */ var _lib_database_backups_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./lib/database/backups.jsx */ "./src/lib/database/backups.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_10__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }












var DB_CONFIG = "dbconfig";
var CHAINING_CONFIG = "chaining-config";
var BACKUP_CONFIG = "backups";
var treeViewContainerStyles = {
  width: '295px'
};
var Database =
/*#__PURE__*/
function (_React$Component) {
  _inherits(Database, _React$Component);

  function Database(props) {
    var _this;

    _classCallCheck(this, Database);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(Database).call(this, props));
    _this.state = {
      notifications: [],
      errObj: {},
      nodes: [],
      node_name: "",
      node_text: "",
      dbtype: "",
      showSuffixModal: false,
      createSuffix: "",
      createBeName: "",
      createSuffixEntry: false,
      createSampleEntries: false,
      noSuffixInit: true,
      disableTree: false,
      // DB config
      globalDBConfig: {},
      configUpdated: 0,
      // Chaining Config
      chainingConfig: {},
      chainingUpdated: 0,
      // Chaining Link
      chainingLoading: false,
      // Suffix
      suffixLoading: false,
      attributes: [],
      // Loaded suffix configurations
      suffix: {},
      // Other
      LDIFRows: [],
      BackupRows: [],
      suffixList: [],
      loaded: false
    }; // General

    _this.selectNode = _this.selectNode.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.removeNotification = _this.removeNotification.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.addNotification = _this.addNotification.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleRadioChange = _this.handleRadioChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadGlobalConfig = _this.loadGlobalConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadLDIFs = _this.loadLDIFs.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadBackups = _this.loadBackups.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadSuffixList = _this.loadSuffixList.bind(_assertThisInitialized(_assertThisInitialized(_this))); // Suffix

    _this.showSuffixModal = _this.showSuffixModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeSuffixModal = _this.closeSuffixModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.createSuffix = _this.createSuffix.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadSuffix = _this.loadSuffix.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadSuffixConfig = _this.loadSuffixConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadIndexes = _this.loadIndexes.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadVLV = _this.loadVLV.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadAttrEncrypt = _this.loadAttrEncrypt.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadReferrals = _this.loadReferrals.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.getAutoTuning = _this.getAutoTuning.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadAttrs = _this.loadAttrs.bind(_assertThisInitialized(_assertThisInitialized(_this))); // ChainingConfig

    _this.loadChainingLink = _this.loadChainingLink.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadChainingConfig = _this.loadChainingConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadAvailableControls = _this.loadAvailableControls.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadDefaultConfig = _this.loadDefaultConfig.bind(_assertThisInitialized(_assertThisInitialized(_this))); // Other

    _this.loadSuffixTree = _this.loadSuffixTree.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.enableTree = _this.enableTree.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(Database, [{
    key: "componentWillMount",
    value: function componentWillMount() {
      if (!this.state.loaded) {
        this.loadGlobalConfig();
        this.loadChainingConfig();
        this.loadLDIFs();
        this.loadBackups();
        this.loadSuffixList();
      }
    }
  }, {
    key: "componentDidMount",
    value: function componentDidMount() {
      this.loadSuffixTree(false);
    }
  }, {
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps) {
      if (this.props.serverId !== prevProps.serverId) {
        this.loadSuffixTree(false);
      }
    }
  }, {
    key: "loadSuffixList",
    value: function loadSuffixList() {
      var _this2 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "suffix", "list", "--suffix"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadSuffixList", "Get a list of all the suffixes", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var suffixList = JSON.parse(content);

        _this2.setState(function () {
          return {
            suffixList: suffixList.items
          };
        });
      });
    }
  }, {
    key: "loadGlobalConfig",
    value: function loadGlobalConfig() {
      var _this3 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "config", "get"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadGlobalConfig", "Load the database global configuration", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var attrs = config.attrs;
        var db_cache_auto = false;
        var import_cache_auto = false;
        var dbhome = "";

        if ('nsslapd-db-home-directory' in attrs) {
          dbhome = attrs['nsslapd-db-home-directory'];
        }

        if (attrs['nsslapd-cache-autosize'] != "0") {
          db_cache_auto = true;
        }

        if (attrs['nsslapd-import-cache-autosize'] != "0") {
          import_cache_auto = true;
        }

        _this3.setState(function () {
          return {
            globalDBConfig: {
              loading: false,
              db_cache_auto: db_cache_auto,
              import_cache_auto: import_cache_auto,
              looklimit: attrs['nsslapd-lookthroughlimit'],
              idscanlimit: attrs['nsslapd-idlistscanlimit'],
              pagelooklimit: attrs['nsslapd-pagedlookthroughlimit'],
              pagescanlimit: attrs['nsslapd-pagedidlistscanlimit'],
              rangelooklimit: attrs['nsslapd-rangelookthroughlimit'],
              autosize: attrs['nsslapd-cache-autosize'],
              autosizesplit: attrs['nsslapd-cache-autosize-split'],
              dbcachesize: attrs['nsslapd-dbcachesize'],
              txnlogdir: attrs['nsslapd-db-logdirectory'],
              dbhomedir: dbhome,
              dblocks: attrs['nsslapd-db-locks'],
              chxpoint: attrs['nsslapd-db-checkpoint-interval'],
              compactinterval: attrs['nsslapd-db-compactdb-interval'],
              importcacheauto: attrs['nsslapd-import-cache-autosize'],
              importcachesize: attrs['nsslapd-import-cachesize']
            },
            loaded: true,
            configUpdated: 1
          };
        }, _this3.setState({
          configUpdated: 0
        }));
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.addNotification("error", "Error loading database configuration - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "loadAvailableControls",
    value: function loadAvailableControls() {
      var _this4 = this;

      // Get the available control oids from rootdse
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "chaining", "config-get", "--avail-controls"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadChainingConfig", "Get available controls", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var availableOids = config.items.filter(function (el) {
          return !_this4.state.chainingConfig.oidList.includes(el);
        });

        _this4.setState(function (prevState) {
          return {
            chainingConfig: _objectSpread({}, _this4.state.chainingConfig, {
              availableOids: availableOids
            }),
            chainingUpdated: 1
          };
        }, _this4.setState({
          chainingUpdated: 0
        }));
      });
    }
  }, {
    key: "loadDefaultConfig",
    value: function loadDefaultConfig() {
      var _this5 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "chaining", "config-get-def"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadChainingConfig", "Load chaining default configuration", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var attr = config.attrs;
        var checkAci = false;
        var proxy = false;
        var refOnScope = false;
        var useStartTLS = false;

        if (attr['nschecklocalaci'] == "on") {
          checkAci = true;
        }

        if (attr['nsproxiedauthorization'] == "on") {
          proxy = true;
        }

        if (attr['nsreferralonscopedsearch'] == "on") {
          refOnScope = true;
        }

        if (attr['nsusestarttls'] == "on") {
          useStartTLS = true;
        }

        _this5.setState(function () {
          return {
            chainingConfig: _objectSpread({}, _this5.state.chainingConfig, {
              defSearchCheck: attr['nsabandonedsearchcheckinterval'],
              defBindConnLimit: attr['nsbindconnectionslimit'],
              defBindTimeout: attr['nsbindtimeout'],
              defBindRetryLimit: attr['nsbindretrylimit'],
              defConcurLimit: attr['nsconcurrentbindlimit'],
              defConcurOpLimit: attr['nsconcurrentoperationslimit'],
              defConnLife: attr['nsconnectionlife'],
              defHopLimit: attr['nshoplimit'],
              defDelay: attr['nsmaxresponsedelay'],
              defTestDelay: attr['nsmaxtestresponsedelay'],
              defOpConnLimit: attr['nsoperationconnectionslimit'],
              defSizeLimit: attr['nsslapd-sizelimit'],
              defTimeLimit: attr['nsslapd-timelimit'],
              defProxy: proxy,
              defRefOnScoped: refOnScope,
              defCheckAci: checkAci,
              defUseStartTLS: useStartTLS
            })
          };
        }, _this5.loadAvailableControls());
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.addNotification("error", "Error loading default chaining configuration - ".concat(errMsg.desc));

        _this5.setState({
          loading: false
        });
      });
    }
  }, {
    key: "loadChainingConfig",
    value: function loadChainingConfig() {
      var _this6 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "chaining", "config-get"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadChainingConfig", "Load chaining OIDs and Controls", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var availableComps = config.attrs.nspossiblechainingcomponents;
        var compList = [];
        var oidList = [];

        if ('nsactivechainingcomponents' in config.attrs) {
          availableComps = config.attrs.nspossiblechainingcomponents.filter(function (el) {
            return !config.attrs.nsactivechainingcomponents.includes(el);
          });
          compList = config.attrs.nsactivechainingcomponents;
        }

        if ('nstransmittedcontrols' in config.attrs) {
          oidList = config.attrs.nstransmittedcontrols;
        }

        _this6.setState(function () {
          return {
            chainingConfig: _objectSpread({}, _this6.state.chainingConfig, {
              oidList: oidList,
              compList: compList,
              availableComps: availableComps
            })
          };
        }, _this6.loadDefaultConfig());
      });
    }
  }, {
    key: "loadSuffixTree",
    value: function loadSuffixTree(fullReset) {
      var _this7 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "get-tree"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadSuffixTree", "Start building the suffix tree", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var treeData = [];

        if (content != "") {
          treeData = JSON.parse(content);
        }

        var basicData = [{
          text: "Global Database Configuration",
          selectable: true,
          selected: true,
          icon: "pficon-settings",
          id: "dbconfig"
        }, {
          text: "Chaining Configuration",
          icon: "glyphicon glyphicon-link",
          selectable: true,
          id: "chaining-config"
        }, {
          text: "Backups & LDIFS",
          icon: "glyphicon glyphicon-duplicate",
          selectable: true,
          id: "backups"
        }, {
          "text": "Suffixes",
          "icon": "pficon-catalog",
          "state": {
            "expanded": true
          },
          selectable: false,
          "nodes": []
        }];
        var current_node = _this7.state.node_name;

        if (fullReset) {
          current_node = DB_CONFIG;
        }

        basicData[3].nodes = treeData;

        _this7.setState(function () {
          return {
            nodes: basicData,
            node_name: current_node
          };
        }, _this7.update_tree_nodes);
      });
    }
  }, {
    key: "loadChainingLink",
    value: function loadChainingLink(suffix) {
      var _this8 = this;

      this.setState({
        chainingLoading: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "chaining", "link-get", suffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadChainingLink", "Load chaining link configuration", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var _this8$setState;

        var config = JSON.parse(content);
        var attrs = config.attrs;
        var bindmech = "Simple";
        var usestarttls = false;
        var refOnScope = false;
        var proxiedAuth = false;
        var checkLocalAci = false; // Handler checkboxes, need to convert "on" to true

        if (config.attrs.nsreferralonscopedsearch[0] == "on") {
          refOnScope = true;
        }

        if (config.attrs.nsproxiedauthorization[0] == "on") {
          proxiedAuth = true;
        }

        if (config.attrs.nschecklocalaci[0] == "on") {
          checkLocalAci = true;
        }

        if (config.attrs.nsusestarttls[0] == "on") {
          usestarttls = true;
        }

        if (config.attrs.nsbindmechanism !== undefined) {
          bindmech = config.attrs.nsbindmechanism[0];
        }

        _this8.setState((_this8$setState = {}, _defineProperty(_this8$setState, suffix, {
          nsfarmserverurl: attrs.nsfarmserverurl[0],
          nsmultiplexorbinddn: attrs.nsmultiplexorbinddn[0],
          nsmultiplexorcredentials: attrs.nsmultiplexorcredentials[0],
          nsmultiplexorcredentials_confirm: attrs.nsmultiplexorcredentials[0],
          sizelimit: attrs['nsslapd-sizelimit'][0],
          timelimit: attrs['nsslapd-timelimit'][0],
          bindconnlimit: attrs.nsbindconnectionslimit[0],
          opconnlimit: attrs.nsoperationconnectionslimit[0],
          concurrbindlimit: attrs.nsconcurrentbindlimit[0],
          bindtimeout: attrs.nsbindtimeout[0],
          bindretrylimit: attrs.nsbindretrylimit[0],
          concurroplimit: attrs.nsconcurrentoperationslimit[0],
          connlifetime: attrs.nsconnectionlife[0],
          searchcheckinterval: attrs.nsabandonedsearchcheckinterval[0],
          hoplimit: attrs.nshoplimit[0],
          nsbindmechanism: bindmech,
          nsusestarttls: usestarttls,
          nsreferralonscopedsearch: refOnScope,
          nsproxiedauthorization: proxiedAuth,
          nschecklocalaci: checkLocalAci
        }), _defineProperty(_this8$setState, "chainingLoading", false), _this8$setState));
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this8.addNotification("error", "Error getting chaining link configuration - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "selectNode",
    value: function selectNode(selectedNode) {
      var _this9 = this;

      if (selectedNode.selected) {
        return;
      }

      this.setState({
        disableTree: true // Disable the tree to allow node to be fully loaded

      });

      if (selectedNode.id == "dbconfig" || selectedNode.id == "chaining-config" || selectedNode.id == "backups") {
        // Nothing special to do, these configurations have already been loaded
        this.setState(function (prevState) {
          return {
            nodes: _this9.nodeSelector(prevState.nodes, selectedNode),
            node_name: selectedNode.id,
            node_text: selectedNode.text,
            dbtype: selectedNode.type,
            bename: ""
          };
        });
      } else {
        if (selectedNode.id in this.state) {
          // This suffix is already cached, just use what we have...
          this.setState(function (prevState) {
            return {
              nodes: _this9.nodeSelector(prevState.nodes, selectedNode),
              node_name: selectedNode.id,
              node_text: selectedNode.text,
              dbtype: selectedNode.type,
              bename: selectedNode.be
            };
          });
        } else {
          // Load this suffix whatever it is...
          if (selectedNode.type == "dblink") {
            // Chained suffix
            this.loadChainingLink(selectedNode.id);
          } else {
            // Suffix/subsuffix
            this.loadSuffix(selectedNode.id);
          }

          this.setState(function (prevState) {
            return {
              nodes: _this9.nodeSelector(prevState.nodes, selectedNode),
              node_name: selectedNode.id,
              node_text: selectedNode.text,
              dbtype: selectedNode.type,
              bename: selectedNode.be
            };
          });
        }
      }
    }
  }, {
    key: "nodeSelector",
    value: function nodeSelector(nodes, targetNode) {
      var _this10 = this;

      return nodes.map(function (node) {
        if (node.nodes) {
          return _objectSpread({}, node, {
            nodes: _this10.nodeSelector(node.nodes, targetNode),
            selected: node.id === targetNode.id ? !node.selected : false
          });
        } else if (node.id === targetNode.id) {
          return _objectSpread({}, node, {
            selected: !node.selected
          });
        } else if (node.id !== targetNode.id && node.selected) {
          return _objectSpread({}, node, {
            selected: false
          });
        } else {
          return node;
        }
      });
    }
  }, {
    key: "addNotification",
    value: function addNotification(type, message, timerdelay, persistent) {
      this.setState(function (prevState) {
        return {
          notifications: _toConsumableArray(prevState.notifications).concat([{
            key: prevState.notifications.length + 1,
            type: type,
            persistent: persistent,
            timerdelay: timerdelay,
            message: message
          }])
        };
      });
    }
  }, {
    key: "removeNotification",
    value: function removeNotification(notificationToRemove) {
      this.setState({
        notifications: this.state.notifications.filter(function (notification) {
          return notificationToRemove.key !== notification.key;
        })
      });
    }
  }, {
    key: "update_tree_nodes",
    value: function update_tree_nodes() {
      // Set title to the text value of each suffix node.  We need to do this
      // so we can read long suffixes in the UI tree div
      var elements = document.getElementsByClassName('treeitem-row');
      var _iteratorNormalCompletion = true;
      var _didIteratorError = false;
      var _iteratorError = undefined;

      try {
        for (var _iterator = elements[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
          var el = _step.value;
          el.setAttribute('title', el.innerText);
        }
      } catch (err) {
        _didIteratorError = true;
        _iteratorError = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion && _iterator.return != null) {
            _iterator.return();
          }
        } finally {
          if (_didIteratorError) {
            throw _iteratorError;
          }
        }
      }
    }
  }, {
    key: "showSuffixModal",
    value: function showSuffixModal() {
      this.setState({
        showSuffixModal: true,
        createSuffixEntry: false,
        createSampleEntries: false,
        noSuffixInit: true,
        errObj: {}
      });
    }
  }, {
    key: "handleRadioChange",
    value: function handleRadioChange(e) {
      // Handle the create suffix init option radio button group
      var noInit = false;
      var addSuffix = false;
      var addSample = false;

      if (e.target.id == "noSuffixInit") {
        noInit = true;
      } else if (e.target.id == "createSuffixEntry") {
        addSuffix = true;
      } else {
        // createSampleEntries
        addSample = true;
      }

      this.setState({
        noSuffixInit: noInit,
        createSuffixEntry: addSuffix,
        createSampleEntries: addSample
      });
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      var _this$setState;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var valueErr = false;
      var errObj = this.state.errObj;

      if (value == "") {
        valueErr = true;
      }

      errObj[e.target.id] = valueErr;
      this.setState((_this$setState = {}, _defineProperty(_this$setState, e.target.id, value), _defineProperty(_this$setState, "errObj", errObj), _this$setState));
    }
  }, {
    key: "closeSuffixModal",
    value: function closeSuffixModal() {
      this.setState({
        showSuffixModal: false
      });
    }
  }, {
    key: "createSuffix",
    value: function createSuffix() {
      var _this11 = this;

      // validate
      var errors = false;
      var missingArgs = {
        createSuffix: false,
        createBeName: false
      };

      if (this.state.createSuffix == "") {
        this.addNotification("warning", "Missing the suffix DN");
        missingArgs.createSuffix = true;
        errors = true;
      }

      if (this.state.createBeName == "") {
        this.addNotification("warning", "Missing the suffix backend name");
        missingArgs.createBeName = true;
        errors = true;
      }

      if (errors) {
        this.setState({
          errObj: missingArgs
        });
        return;
      } // Create a new suffix


      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "create", "--be-name", this.state.createBeName, '--suffix', this.state.createSuffix];

      if (this.state.createSampleEntries) {
        cmd.push('--create-entries');
      }

      if (this.state.createSuffixEntry) {
        cmd.push('--create-suffix');
      }

      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("createSuffix", "Create a new backend", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this11.closeSuffixModal();

        _this11.addNotification("success", "Successfully create new suffix"); // Refresh tree


        _this11.loadSuffixTree(false);

        _this11.loadSuffixList();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this11.addNotification("error", "Error creating suffix - ".concat(errMsg.desc));

        _this11.closeSuffixModal();
      });
    }
  }, {
    key: "getAutoTuning",
    value: function getAutoTuning(suffix) {
      var _this12 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "config", "get"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("getAutoTuning", "Check cache auto tuning", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        if ('nsslapd-cache-autosize' in config.attrs && config.attrs['nsslapd-cache-autosize'] != "0") {
          _this12.setState(_defineProperty({}, suffix, _objectSpread({}, _this12.state[suffix], {
            autoTuning: true
          })));
        }
      });
    }
  }, {
    key: "loadSuffixConfig",
    value: function loadSuffixConfig(suffix) {
      var _this13 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "suffix", "get", suffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadSuffixConfig", "Load suffix config", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var refs = [];
        var readonly = false;
        var requireindex = false;

        if ('nsslapd-referral' in config.attrs) {
          refs = config.attrs['nsslapd-referral'];
        }

        if ('nsslapd-readonly' in config.attrs) {
          if (config.attrs['nsslapd-readonly'] == "on") {
            readonly = true;
          }
        }

        if ('nsslapd-require-index' in config.attrs) {
          if (config.attrs['nsslapd-require-index'] == "on") {
            requireindex = true;
          }
        }

        _this13.setState(_defineProperty({}, suffix, _objectSpread({}, _this13.state[suffix], {
          refRows: refs,
          cachememsize: config.attrs['nsslapd-cachememsize'][0],
          cachesize: config.attrs['nsslapd-cachesize'][0],
          dncachememsize: config.attrs['nsslapd-dncachememsize'][0],
          readOnly: readonly,
          requireIndex: requireindex
        })), _this13.getAutoTuning(suffix));
      });
    }
  }, {
    key: "loadVLV",
    value: function loadVLV(suffix) {
      var _this14 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "vlv-index", "list", suffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadVLV", "Load VLV indexes", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this14.setState(_defineProperty({}, suffix, _objectSpread({}, _this14.state[suffix], {
          vlvItems: config.items
        })));
      });
    }
  }, {
    key: "loadAttrEncrypt",
    value: function loadAttrEncrypt(suffix) {
      var _this15 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "attr-encrypt", "--list", "--just-names", suffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadAttrEncrypt", "Load encrypted attrs", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var rows = [];
        var _iteratorNormalCompletion2 = true;
        var _didIteratorError2 = false;
        var _iteratorError2 = undefined;

        try {
          for (var _iterator2 = config.items[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
            var row = _step2.value;
            rows.push({
              "name": row
            });
          }
        } catch (err) {
          _didIteratorError2 = true;
          _iteratorError2 = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
              _iterator2.return();
            }
          } finally {
            if (_didIteratorError2) {
              throw _iteratorError2;
            }
          }
        }

        _this15.setState(_defineProperty({}, suffix, _objectSpread({}, _this15.state[suffix], {
          encAttrsRows: rows
        })));
      });
    }
  }, {
    key: "loadIndexes",
    value: function loadIndexes(suffix) {
      var _this16 = this;

      // Load the suffix configurations.  Start with indexes which is the
      // most time consuming (and which controls the spinner), and spawn new
      // commands for the other areas.
      var index_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "index", "list", suffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadIndexes", "Load backend indexes", index_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(index_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        // Now do the Indexes
        var config = JSON.parse(content);
        var rows = [];
        var systemRows = [];
        var _iteratorNormalCompletion3 = true;
        var _didIteratorError3 = false;
        var _iteratorError3 = undefined;

        try {
          for (var _iterator3 = config.items[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
            var item = _step3.value;
            var index = item.attrs;
            var types = [];
            var mrs = [];

            if (index.nsindextype.length > 1) {
              types = index.nsindextype.join(', ');
            } else {
              types = index.nsindextype[0];
            }

            if ('nsmatchingrule' in index) {
              if (index.nsmatchingrule.length > 1) {
                mrs = index.nsmatchingrule.join(', ');
              } else {
                mrs = index.nsmatchingrule[0];
              }
            }

            if (index.nssystemindex[0] == 'true') {
              systemRows.push({
                'name': index.cn,
                'types': [types],
                'matchingrules': [mrs]
              });
            } else {
              rows.push({
                'name': index.cn,
                'types': [types],
                'matchingrules': [mrs]
              });
            }
          }
        } catch (err) {
          _didIteratorError3 = true;
          _iteratorError3 = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
              _iterator3.return();
            }
          } finally {
            if (_didIteratorError3) {
              throw _iteratorError3;
            }
          }
        }

        _this16.setState(_defineProperty({}, suffix, _objectSpread({}, _this16.state[suffix], {
          indexRows: rows,
          systemIndexRows: systemRows
        })));
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this16.addNotification("error", "Error loading indexes for ".concat(suffix, " - ").concat(errMsg.desc));
      });
    }
  }, {
    key: "loadReferrals",
    value: function loadReferrals(suffix) {
      var _this17 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "suffix", "get", suffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadReferrals", "get referrals", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var refs = [];

        if ('nsslapd-referral' in config.attrs) {
          refs = config.attrs['nsslapd-referral'];
        }

        _this17.setState(_defineProperty({}, suffix, _objectSpread({}, _this17.state[suffix], {
          refRows: refs
        })));
      });
    }
  }, {
    key: "loadSuffix",
    value: function loadSuffix(suffix) {
      var _this18 = this;

      // Load everything, we must nest cockpit promise so we can proper set
      // the loading is finished
      this.setState({
        activeKey: 1,
        suffixLoading: true
      }, this.loadAttrs());
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "suffix", "get", suffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadSuffix", "Load suffix config", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var refs = [];
        var readonly = false;
        var requireindex = false;

        if ('nsslapd-referral' in config.attrs) {
          refs = config.attrs['nsslapd-referral'];
        }

        if ('nsslapd-readonly' in config.attrs) {
          if (config.attrs['nsslapd-readonly'] == "on") {
            readonly = true;
          }
        }

        if ('nsslapd-require-index' in config.attrs) {
          if (config.attrs['nsslapd-require-index'] == "on") {
            requireindex = true;
          }
        }

        _this18.setState(_defineProperty({}, suffix, {
          refRows: refs,
          cachememsize: config.attrs['nsslapd-cachememsize'][0],
          cachesize: config.attrs['nsslapd-cachesize'][0],
          dncachememsize: config.attrs['nsslapd-dncachememsize'][0],
          readOnly: readonly,
          requireIndex: requireindex
        }), _this18.getAutoTuning(suffix)); // Now load VLV indexes


        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + _this18.props.serverId + ".socket", "backend", "vlv-index", "list", suffix];
        Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadVLV", "Load VLV indexes", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          var config = JSON.parse(content);

          _this18.setState(_defineProperty({}, suffix, _objectSpread({}, _this18.state[suffix], {
            vlvItems: config.items
          })));

          var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + _this18.props.serverId + ".socket", "backend", "attr-encrypt", "--list", "--just-names", suffix];
          Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadAttrEncrypt", "Load encrypted attrs", cmd);
          cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
            superuser: true,
            err: "message"
          }).done(function (content) {
            var config = JSON.parse(content);
            var rows = [];
            var _iteratorNormalCompletion4 = true;
            var _didIteratorError4 = false;
            var _iteratorError4 = undefined;

            try {
              for (var _iterator4 = config.items[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {
                var row = _step4.value;
                rows.push({
                  "name": row
                });
              }
            } catch (err) {
              _didIteratorError4 = true;
              _iteratorError4 = err;
            } finally {
              try {
                if (!_iteratorNormalCompletion4 && _iterator4.return != null) {
                  _iterator4.return();
                }
              } finally {
                if (_didIteratorError4) {
                  throw _iteratorError4;
                }
              }
            }

            _this18.setState(_defineProperty({}, suffix, _objectSpread({}, _this18.state[suffix], {
              encAttrsRows: rows
            })));

            var index_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + _this18.props.serverId + ".socket", "backend", "index", "list", suffix];
            Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadIndexes", "Load backend indexes", index_cmd);
            cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(index_cmd, {
              superuser: true,
              err: "message"
            }).done(function (content) {
              var _this18$setState4;

              // Now do the Indexes
              var config = JSON.parse(content);
              var rows = [];
              var systemRows = [];
              var _iteratorNormalCompletion5 = true;
              var _didIteratorError5 = false;
              var _iteratorError5 = undefined;

              try {
                for (var _iterator5 = config.items[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) {
                  var item = _step5.value;
                  var index = item.attrs;
                  var types = [];
                  var mrs = [];

                  if (index.nsindextype.length > 1) {
                    types = index.nsindextype.join(', ');
                  } else {
                    types = index.nsindextype[0];
                  }

                  if ('nsmatchingrule' in index) {
                    if (index.nsmatchingrule.length > 1) {
                      mrs = index.nsmatchingrule.join(', ');
                    } else {
                      mrs = index.nsmatchingrule[0];
                    }
                  }

                  if (index.nssystemindex[0] == 'true') {
                    systemRows.push({
                      'name': index.cn,
                      'types': [types],
                      'matchingrules': [mrs]
                    });
                  } else {
                    rows.push({
                      'name': index.cn,
                      'types': [types],
                      'matchingrules': [mrs]
                    });
                  }
                }
              } catch (err) {
                _didIteratorError5 = true;
                _iteratorError5 = err;
              } finally {
                try {
                  if (!_iteratorNormalCompletion5 && _iterator5.return != null) {
                    _iterator5.return();
                  }
                } finally {
                  if (_didIteratorError5) {
                    throw _iteratorError5;
                  }
                }
              }

              _this18.setState((_this18$setState4 = {}, _defineProperty(_this18$setState4, suffix, _objectSpread({}, _this18.state[suffix], {
                indexRows: rows,
                systemIndexRows: systemRows
              })), _defineProperty(_this18$setState4, "suffixLoading", false), _this18$setState4));
            }).fail(function (err) {
              var errMsg = JSON.parse(err);

              _this18.addNotification("error", "Error loading indexes for ".concat(suffix, " - ").concat(errMsg.desc));

              _this18.setState({
                suffixLoading: false
              });
            });
          }).fail(function (err) {
            var errMsg = JSON.parse(err);

            _this18.addNotification("error", "Error attribute encryption for ".concat(suffix, " - ").concat(errMsg.desc));

            _this18.setState({
              suffixLoading: false
            });
          });
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this18.addNotification("error", "Error loading VLV indexes for ".concat(suffix, " - ").concat(errMsg.desc));

          _this18.setState({
            suffixLoading: false
          });
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this18.addNotification("error", "Error loading config for ".concat(suffix, " - ").concat(errMsg.desc));

        _this18.setState({
          suffixLoading: false
        });
      });
    }
  }, {
    key: "loadLDIFs",
    value: function loadLDIFs() {
      var _this19 = this;

      var cmd = ["dsctl", "-j", this.props.serverId, "ldifs"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadLDIFs", "Load LDIF Files", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var rows = [];
        var _iteratorNormalCompletion6 = true;
        var _didIteratorError6 = false;
        var _iteratorError6 = undefined;

        try {
          for (var _iterator6 = config.items[Symbol.iterator](), _step6; !(_iteratorNormalCompletion6 = (_step6 = _iterator6.next()).done); _iteratorNormalCompletion6 = true) {
            var row = _step6.value;
            rows.push({
              'name': row[0],
              'date': [row[1]],
              'size': [row[2]],
              'suffix': [row[3]]
            });
          }
        } catch (err) {
          _didIteratorError6 = true;
          _iteratorError6 = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion6 && _iterator6.return != null) {
              _iterator6.return();
            }
          } finally {
            if (_didIteratorError6) {
              throw _iteratorError6;
            }
          }
        }

        _this19.setState({
          LDIFRows: rows
        });
      });
    }
  }, {
    key: "loadBackups",
    value: function loadBackups() {
      var _this20 = this;

      var cmd = ["dsctl", "-j", this.props.serverId, "backups"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadBackups", "Load Backups", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var rows = [];
        var _iteratorNormalCompletion7 = true;
        var _didIteratorError7 = false;
        var _iteratorError7 = undefined;

        try {
          for (var _iterator7 = config.items[Symbol.iterator](), _step7; !(_iteratorNormalCompletion7 = (_step7 = _iterator7.next()).done); _iteratorNormalCompletion7 = true) {
            var row = _step7.value;
            rows.push({
              'name': row[0],
              'date': [row[1]],
              'size': [row[2]]
            });
          }
        } catch (err) {
          _didIteratorError7 = true;
          _iteratorError7 = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion7 && _iterator7.return != null) {
              _iterator7.return();
            }
          } finally {
            if (_didIteratorError7) {
              throw _iteratorError7;
            }
          }
        }

        _this20.setState({
          BackupRows: rows
        }, _this20.loadLDIFs());
      });
    }
  }, {
    key: "loadAttrs",
    value: function loadAttrs() {
      var _this21 = this;

      // Now get the schema that various tabs use
      var attr_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "list"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("Suffixes", "Get attrs", attr_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(attr_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var attrContent = JSON.parse(content);
        var attrs = [];
        var _iteratorNormalCompletion8 = true;
        var _didIteratorError8 = false;
        var _iteratorError8 = undefined;

        try {
          for (var _iterator8 = attrContent['items'][Symbol.iterator](), _step8; !(_iteratorNormalCompletion8 = (_step8 = _iterator8.next()).done); _iteratorNormalCompletion8 = true) {
            var _content = _step8.value;
            attrs.push(_content.name);
          }
        } catch (err) {
          _didIteratorError8 = true;
          _iteratorError8 = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion8 && _iterator8.return != null) {
              _iterator8.return();
            }
          } finally {
            if (_didIteratorError8) {
              throw _iteratorError8;
            }
          }
        }

        _this21.setState({
          attributes: attrs
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this21.addNotification("error", "Failed to get attributes - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "enableTree",
    value: function enableTree() {
      this.setState({
        disableTree: false
      });
    }
  }, {
    key: "render",
    value: function render() {
      var nodes = this.state.nodes;
      var db_element = "";
      var disabled = "tree-view-container";

      if (this.state.disableTree) {
        disabled = "tree-view-container ds-disabled";
      }

      if (this.state.loaded) {
        if (this.state.node_name == DB_CONFIG || this.state.node_name == "") {
          db_element = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_database_databaseConfig_jsx__WEBPACK_IMPORTED_MODULE_5__["GlobalDatabaseConfig"], {
            serverId: this.props.serverId,
            addNotification: this.addNotification,
            reload: this.loadGlobalConfig,
            data: this.state.globalDBConfig,
            enableTree: this.enableTree,
            key: this.state.configUpdated
          });
        } else if (this.state.node_name == CHAINING_CONFIG) {
          db_element = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_database_chaining_jsx__WEBPACK_IMPORTED_MODULE_4__["ChainingDatabaseConfig"], {
            serverId: this.props.serverId,
            addNotification: this.addNotification,
            reload: this.loadChainingConfig,
            data: this.state.chainingConfig,
            enableTree: this.enableTree,
            key: this.state.chainingUpdated
          });
        } else if (this.state.node_name == BACKUP_CONFIG) {
          db_element = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_database_backups_jsx__WEBPACK_IMPORTED_MODULE_7__["Backups"], {
            serverId: this.props.serverId,
            addNotification: this.addNotification,
            backups: this.state.BackupRows,
            suffixes: this.state.suffixList,
            ldifs: this.state.LDIFRows,
            enableTree: this.enableTree,
            reload: this.loadBackups
          });
        } else if (this.state.node_name != "") {
          // We have a suffix, or database link
          if (this.state.dbtype == "suffix" || this.state.dbtype == "subsuffix") {
            if (this.state.suffixLoading) {
              db_element = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
                className: "ds-margin-top ds-loading-spinner ds-center"
              }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading suffix configuration for ", react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, this.state.node_text, " ...")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Spinner"], {
                className: "ds-margin-top-lg",
                loading: true,
                size: "md"
              }));
            } else {
              db_element = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_database_suffix_jsx__WEBPACK_IMPORTED_MODULE_6__["Suffix"], {
                serverId: this.props.serverId,
                suffix: this.state.node_text,
                bename: this.state.bename,
                loadSuffixTree: this.loadSuffixTree,
                reload: this.loadSuffix,
                reloadRefs: this.loadReferrals,
                reloadIndexes: this.loadIndexes,
                reloadVLV: this.loadVLV,
                reloadAttrEnc: this.loadAttrEncrypt,
                addNotification: this.addNotification,
                reloadLDIFs: this.loadLDIFs,
                LDIFRows: this.state.LDIFRows,
                dbtype: this.state.dbtype,
                data: this.state[this.state.node_text],
                attrs: this.state.attributes,
                enableTree: this.enableTree,
                key: this.state.node_text
              });
            }
          } else {
            // Chaining
            if (this.state.chainingLoading) {
              db_element = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
                className: "ds-margin-top ds-loading-spinner ds-center"
              }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading chaining configuration for ", react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, this.state.node_text, " ...")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Spinner"], {
                className: "ds-margin-top-lg",
                loading: true,
                size: "md"
              }));
            } else {
              db_element = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_database_chaining_jsx__WEBPACK_IMPORTED_MODULE_4__["ChainingConfig"], {
                serverId: this.props.serverId,
                suffix: this.state.node_text,
                bename: this.state.bename,
                loadSuffixTree: this.loadSuffixTree,
                addNotification: this.addNotification,
                data: this.state[this.state.node_text],
                enableTree: this.enableTree,
                reload: this.loadChainingLink
              });
            }
          }
        }
      }

      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "container-fluid"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["NotificationController"], {
        notifications: this.state.notifications,
        removeNotificationAction: this.removeNotification
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-container"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-tree"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: disabled,
        id: "db-tree",
        style: treeViewContainerStyles
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["TreeView"], {
        nodes: nodes,
        highlightOnHover: true,
        highlightOnSelect: true,
        selectNode: this.selectNode
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "btn btn-primary save-button",
        onClick: this.showSuffixModal
      }, "Create Suffix"))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-tree-content"
      }, db_element)), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(CreateSuffixModal, {
        showModal: this.state.showSuffixModal,
        closeHandler: this.closeSuffixModal,
        handleChange: this.handleChange,
        handleRadioChange: this.handleRadioChange,
        saveHandler: this.createSuffix,
        noInit: this.state.noSuffixInit,
        addSuffix: this.state.createSuffixEntry,
        addSample: this.state.createSampleEntries,
        error: this.state.errObj
      }));
    }
  }]);

  return Database;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

var CreateSuffixModal =
/*#__PURE__*/
function (_React$Component2) {
  _inherits(CreateSuffixModal, _React$Component2);

  function CreateSuffixModal() {
    _classCallCheck(this, CreateSuffixModal);

    return _possibleConstructorReturn(this, _getPrototypeOf(CreateSuffixModal).apply(this, arguments));
  }

  _createClass(CreateSuffixModal, [{
    key: "render",
    value: function render() {
      var _this$props = this.props,
          showModal = _this$props.showModal,
          closeHandler = _this$props.closeHandler,
          handleChange = _this$props.handleChange,
          handleRadioChange = _this$props.handleRadioChange,
          saveHandler = _this$props.saveHandler,
          noInit = _this$props.noInit,
          addSuffix = _this$props.addSuffix,
          addSample = _this$props.addSample,
          error = _this$props.error;
      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Modal"].Title, null, "Create New Suffix")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Row"], {
        title: "Database suffix, like 'dc=example,dc=com'.  The suffix must be a valid LDAP Distiguished Name (DN)"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["ControlLabel"], null, "Suffix DN")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Col"], {
        sm: 5
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        onChange: handleChange,
        className: error.createSuffix ? "ds-input-bad" : "ds-input",
        type: "text",
        id: "createSuffix",
        size: "40"
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Row"], {
        className: "ds-margin-top",
        title: "The name for the backend database, like 'userroot'.  The name can be a combination of alphanumeric characters, dashes (-), and underscores (_). No other characters are allowed, and the name must be unique across all backends."
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["ControlLabel"], null, "Database Name")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Col"], {
        sm: 5
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        onChange: handleChange,
        className: error.createBeName ? "ds-input-bad" : "ds-input",
        type: "text",
        id: "createBeName",
        size: "40"
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Row"], {
        className: "ds-indent"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Radio"], {
        name: "radioGroup",
        id: "noSuffixInit",
        onChange: handleRadioChange,
        checked: noInit,
        inline: true
      }, "Do Not Initialize Database")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Row"], {
        className: "ds-indent"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Radio"], {
        name: "radioGroup",
        id: "createSuffixEntry",
        onChange: handleRadioChange,
        checked: addSuffix,
        inline: true
      }, "Create The Top Suffix Entry")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Row"], {
        className: "ds-indent"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Radio"], {
        name: "radioGroup",
        id: "createSampleEntries",
        onChange: handleRadioChange,
        checked: addSample,
        inline: true
      }, "Add Sample Entries"))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Create Suffix"))));
    }
  }]);

  return CreateSuffixModal;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Property types and defaults


Database.propTypes = {
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.string
};
Database.defaultProps = {
  serverId: ""
};
CreateSuffixModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func,
  handleRadioChange: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func,
  noInit: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.bool,
  addSuffix: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.bool,
  addSample: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.bool,
  error: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.object
};
CreateSuffixModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_8__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_8__["noop"],
  handleRadioChange: patternfly_react__WEBPACK_IMPORTED_MODULE_8__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_8__["noop"],
  noInit: true,
  addSuffix: false,
  addSample: false,
  error: {}
};

/***/ }),

/***/ "./src/index.es6":
/*!***********************!*\
  !*** ./src/index.es6 ***!
  \***********************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _plugins_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./plugins.jsx */ "./src/plugins.jsx");
/* harmony import */ var _database_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./database.jsx */ "./src/database.jsx");
/* harmony import */ var _monitor_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./monitor.jsx */ "./src/monitor.jsx");
/* harmony import */ var _security_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./security.jsx */ "./src/security.jsx");
/* harmony import */ var _replication_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./replication.jsx */ "./src/replication.jsx");







var serverIdElem;

function renderReactDOM(clear) {
  // We should clear the React properties on the instance removal
  if (clear) {
    serverIdElem = "";
  } else {
    serverIdElem = document.getElementById("select-server").value.replace("slapd-", "");
  }

  var d = new Date();
  var tabKey = d.getTime(); // Plugins Tab

  react_dom__WEBPACK_IMPORTED_MODULE_1___default.a.render(react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_plugins_jsx__WEBPACK_IMPORTED_MODULE_2__["Plugins"], {
    serverId: serverIdElem,
    key: tabKey
  }), document.getElementById("plugins")); // Database tab

  react_dom__WEBPACK_IMPORTED_MODULE_1___default.a.render(react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_database_jsx__WEBPACK_IMPORTED_MODULE_3__["Database"], {
    serverId: serverIdElem,
    key: tabKey
  }), document.getElementById("database")); // Replication tab

  react_dom__WEBPACK_IMPORTED_MODULE_1___default.a.render(react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_replication_jsx__WEBPACK_IMPORTED_MODULE_6__["Replication"], {
    serverId: serverIdElem,
    key: tabKey
  }), document.getElementById("replication")); // Monitor tab

  react_dom__WEBPACK_IMPORTED_MODULE_1___default.a.render(react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitor_jsx__WEBPACK_IMPORTED_MODULE_4__["Monitor"], {
    serverId: serverIdElem,
    key: tabKey
  }), document.getElementById("monitor")); // Security tab

  react_dom__WEBPACK_IMPORTED_MODULE_1___default.a.render(react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_security_jsx__WEBPACK_IMPORTED_MODULE_5__["Security"], {
    serverId: serverIdElem,
    key: tabKey
  }), document.getElementById("security"));
} // We have to create the wrappers because this is no simple way
// to pass arguments to the listener's callback function


function renderReactWrapper() {
  renderReactDOM(false);
}

function renderClearWrapper() {
  renderReactDOM(true);
}

document.addEventListener("DOMContentLoaded", function () {
  var init_config = setInterval(function () {
    serverIdElem = document.getElementById("select-server");

    if (serverIdElem != null && serverIdElem.value.startsWith("slapd-")) {
      document.getElementById("select-server").addEventListener("change", renderReactWrapper);
      document.getElementById("reload-page").addEventListener("click", renderReactWrapper);
      document.getElementById("remove-server-btn").addEventListener("click", renderClearWrapper);
      renderReactDOM();
      clearInterval(init_config);
    }
  }, 250);
});

/***/ }),

/***/ "./src/lib/customCollapse.jsx":
/*!************************************!*\
  !*** ./src/lib/customCollapse.jsx ***!
  \************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }






var CustomCollapse =
/*#__PURE__*/
function (_React$Component) {
  _inherits(CustomCollapse, _React$Component);

  function CustomCollapse(props) {
    var _this;

    _classCallCheck(this, CustomCollapse);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(CustomCollapse).call(this, props));
    _this.state = {
      open: false
    };
    return _this;
  }

  _createClass(CustomCollapse, [{
    key: "render",
    value: function render() {
      var _this2 = this;

      var _this$props = this.props,
          children = _this$props.children,
          className = _this$props.className,
          textOpened = _this$props.textOpened,
          textClosed = _this$props.textClosed;
      var open = this.state.open;
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Button"], {
        className: classnames__WEBPACK_IMPORTED_MODULE_2___default()("ds-accordion", className),
        onClick: function onClick() {
          _this2.setState({
            open: !open
          });
        }
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
        type: "fa",
        name: open ? "caret-down" : "caret-right"
      }), " ", open ? textOpened : textClosed), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top"
      }, open && children));
    }
  }]);

  return CustomCollapse;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

CustomCollapse.propTypes = {
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.any.isRequired,

  /** Top-level custom class */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Text for the link in opened state */
  textOpened: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Text for the link in closed state */
  textClosed: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
CustomCollapse.defaultProps = {
  className: "",
  textClosed: "Show Advanced Settings",
  textOpened: "Hide Advanced Settings"
};
/* harmony default export */ __webpack_exports__["default"] = (CustomCollapse);

/***/ }),

/***/ "./src/lib/customTableToolbar.jsx":
/*!****************************************!*\
  !*** ./src/lib/customTableToolbar.jsx ***!
  \****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }






var CustomTableToolbar =
/*#__PURE__*/
function (_React$Component) {
  _inherits(CustomTableToolbar, _React$Component);

  function CustomTableToolbar() {
    _classCallCheck(this, CustomTableToolbar);

    return _possibleConstructorReturn(this, _getPrototypeOf(CustomTableToolbar).apply(this, arguments));
  }

  _createClass(CustomTableToolbar, [{
    key: "render",
    value: function render() {
      var _this$props = this.props,
          children = _this$props.children,
          className = _this$props.className,
          placeholder = _this$props.placeholder,
          modelToSearch = _this$props.modelToSearch,
          searchFilterValue = _this$props.searchFilterValue,
          handleValueChange = _this$props.handleValueChange,
          disableLoadingSpinner = _this$props.disableLoadingSpinner,
          loading = _this$props.loading;
      var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()("form-group toolbar-pf-find ds-toolbar", className);
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: classes
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Form"], {
        inline: true
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], {
        className: "ds-float-left ds-right-indent"
      }, "Filter ", modelToSearch), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-float-left"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        type: "text",
        id: "find",
        placeholder: placeholder,
        value: searchFilterValue,
        onChange: handleValueChange
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "toolbar-pf-action-right"
      }, children), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "toolbar-pf-action-right ds-right-indent"
      }, !disableLoadingSpinner && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Spinner"], {
        loading: loading,
        size: "md"
      }))));
    }
  }]);

  return CustomTableToolbar;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

CustomTableToolbar.propTypes = {
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.any,
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  placeholder: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  modelToSearch: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  searchFilterValue: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  handleValueChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  loading: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  disableLoadingSpinner: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};
CustomTableToolbar.defaultProps = {
  className: "",
  placeholder: "",
  modelToSearch: "",
  searchFilterValue: "",
  handleValueChange: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"],
  loading: false,
  disableLoadingSpinner: false
};
/* harmony default export */ __webpack_exports__["default"] = (CustomTableToolbar);

/***/ }),

/***/ "./src/lib/database/attrEncryption.jsx":
/*!*********************************************!*\
  !*** ./src/lib/database/attrEncryption.jsx ***!
  \*********************************************/
/*! exports provided: AttrEncryption */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AttrEncryption", function() { return AttrEncryption; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./databaseTables.jsx */ "./src/lib/database/databaseTables.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_8__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }










var AttrEncryption =
/*#__PURE__*/
function (_React$Component) {
  _inherits(AttrEncryption, _React$Component);

  function AttrEncryption(props) {
    var _this;

    _classCallCheck(this, AttrEncryption);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(AttrEncryption).call(this, props));
    _this.state = {
      showConfirmAttrDelete: false,
      typeahead: "",
      addAttr: "",
      delAttr: ""
    }; // Delete referral and confirmation

    _this.showConfirmAttrDelete = _this.showConfirmAttrDelete.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmAttrDelete = _this.closeConfirmAttrDelete.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleTypeaheadChange = _this.handleTypeaheadChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.addEncryptedAttr = _this.addEncryptedAttr.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.delEncryptedAttr = _this.delEncryptedAttr.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(AttrEncryption, [{
    key: "showConfirmAttrDelete",
    value: function showConfirmAttrDelete(item) {
      this.setState({
        showConfirmAttrDelete: true,
        delAttr: item.name
      });
    }
  }, {
    key: "closeConfirmAttrDelete",
    value: function closeConfirmAttrDelete() {
      this.setState({
        showConfirmAttrDelete: false
      });
    }
  }, {
    key: "handleTypeaheadChange",
    value: function handleTypeaheadChange(value) {
      this.setState({
        addAttr: value
      });
    }
  }, {
    key: "addEncryptedAttr",
    value: function addEncryptedAttr() {
      var _this2 = this;

      // reset typeahead input field
      this.typeahead.getInstance().clear();

      if (this.state.addAttr == "") {
        return;
      } // Add the new encrypted attr


      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "attr-encrypt", "--add-attr=" + this.state.addAttr, this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("addEncryptedAttr", "Delete suffix referral", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this2.props.reload(_this2.props.suffix);

        _this2.props.addNotification("success", "Successfully added encrypted attribute");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.props.reload(_this2.props.suffix);

        _this2.props.addNotification("error", "Failed to delete encrypted attribute - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "delEncryptedAttr",
    value: function delEncryptedAttr() {
      var _this3 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "attr-encrypt", "--del-attr=" + this.state.delAttr, this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("delEncryptedAttr", "Delete encrypted attribute", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this3.props.reload(_this3.props.suffix);

        _this3.props.addNotification("success", "Encrypted attribute successfully deleted");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.reload(_this3.props.suffix);

        _this3.props.addNotification("error", "Failure deleting encrypted attribute - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this4 = this;

      var delAttr = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, this.state.delAttr); // Update the available list of attrs for the Typeahead

      var fullList = [];
      var attrs = [];
      var _iteratorNormalCompletion = true;
      var _didIteratorError = false;
      var _iteratorError = undefined;

      try {
        for (var _iterator = this.props.rows[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
          var attrProp = _step.value;
          fullList.push(attrProp.name);
        }
      } catch (err) {
        _didIteratorError = true;
        _iteratorError = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion && _iterator.return != null) {
            _iterator.return();
          }
        } finally {
          if (_didIteratorError) {
            throw _iteratorError;
          }
        }
      }

      var _iteratorNormalCompletion2 = true;
      var _didIteratorError2 = false;
      var _iteratorError2 = undefined;

      try {
        for (var _iterator2 = this.props.attrs[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
          var attr = _step2.value;

          if (fullList.indexOf(attr) == -1) {
            attrs.push(attr);
          }
        }
      } catch (err) {
        _didIteratorError2 = true;
        _iteratorError2 = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
            _iterator2.return();
          }
        } finally {
          if (_didIteratorError2) {
            throw _iteratorError2;
          }
        }
      }

      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__["EncryptedAttrTable"], {
        rows: this.props.rows,
        loadModalHandler: this.showConfirmAttrDelete
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 6
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_6__["Typeahead"], {
        id: "attrEncrypt",
        onChange: function onChange(value) {
          _this4.handleTypeaheadChange(value);
        },
        maxResults: 1000,
        options: attrs,
        placeholder: "Type attribute name to be encrypted",
        ref: function ref(typeahead) {
          _this4.typeahead = typeahead;
        }
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3,
        bsClass: "ds-no-padding"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "primary",
        onClick: this.addEncryptedAttr
      }, "Add Attribute"))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showConfirmAttrDelete,
        closeHandler: this.closeConfirmAttrDelete,
        actionFunc: this.delEncryptedAttr,
        actionParam: this.state.attrName,
        msg: "Are you sure you want to remove this encrypted attribute?",
        msgContent: delAttr
      }));
    }
  }]);

  return AttrEncryption;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Property types and defaults

AttrEncryption.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.array,
  suffix: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,
  attrs: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.array,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func
};
AttrEncryption.defaultProps = {
  rows: [],
  suffix: "",
  serverId: "",
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"],
  attrs: [],
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"]
};

/***/ }),

/***/ "./src/lib/database/backups.jsx":
/*!**************************************!*\
  !*** ./src/lib/database/backups.jsx ***!
  \**************************************/
/*! exports provided: Backups, BackupModal */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Backups", function() { return Backups; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BackupModal", function() { return BackupModal; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./databaseTables.jsx */ "./src/lib/database/databaseTables.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_7__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }









var Backups =
/*#__PURE__*/
function (_React$Component) {
  _inherits(Backups, _React$Component);

  function Backups(props) {
    var _this;

    _classCallCheck(this, Backups);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(Backups).call(this, props));
    _this.state = {
      activeKey: 1,
      showConfirmBackupDelete: false,
      showConfirmBackup: false,
      showConfirmRestoreReplace: false,
      showConfirmLDIFReplace: false,
      showRestoreSpinningModal: false,
      showDelBackupSpinningModal: false,
      showBackupModal: false,
      backupSpinning: false,
      backupName: "",
      deleteBackup: "",
      // LDIF
      showConfirmLDIFDelete: false,
      showConfirmLDIFImport: false,
      showConfirmRestore: false,
      showLDIFSpinningModal: false,
      showLDIFDeleteSpinningModal: false,
      showExportModal: false,
      exportSpinner: false,
      includeReplData: false,
      ldifName: "",
      ldifSuffix: "",
      errObj: {}
    };
    _this.handleNavSelect = _this.handleNavSelect.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_assertThisInitialized(_this))); // Backups

    _this.doBackup = _this.doBackup.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.deleteBackup = _this.deleteBackup.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.restoreBackup = _this.restoreBackup.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showConfirmRestore = _this.showConfirmRestore.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmRestore = _this.closeConfirmRestore.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showConfirmBackup = _this.showConfirmBackup.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmBackup = _this.closeConfirmBackup.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showConfirmBackupDelete = _this.showConfirmBackupDelete.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmBackupDelete = _this.closeConfirmBackupDelete.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showBackupModal = _this.showBackupModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeBackupModal = _this.closeBackupModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showRestoreSpinningModal = _this.showRestoreSpinningModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeRestoreSpinningModal = _this.closeRestoreSpinningModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showDelBackupSpinningModal = _this.showDelBackupSpinningModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeDelBackupSpinningModal = _this.closeDelBackupSpinningModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.validateBackup = _this.validateBackup.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmRestoreReplace = _this.closeConfirmRestoreReplace.bind(_assertThisInitialized(_assertThisInitialized(_this))); // LDIFS

    _this.importLDIF = _this.importLDIF.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.deleteLDIF = _this.deleteLDIF.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showConfirmLDIFImport = _this.showConfirmLDIFImport.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmLDIFImport = _this.closeConfirmLDIFImport.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showConfirmLDIFDelete = _this.showConfirmLDIFDelete.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmLDIFDelete = _this.closeConfirmLDIFDelete.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showLDIFSpinningModal = _this.showLDIFSpinningModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showLDIFDeleteSpinningModal = _this.showLDIFDeleteSpinningModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.doExport = _this.doExport.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showExportModal = _this.showExportModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeExportModal = _this.closeExportModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.validateLDIF = _this.validateLDIF.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmLDIFReplace = _this.closeConfirmLDIFReplace.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(Backups, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.props.enableTree();
    }
  }, {
    key: "showExportModal",
    value: function showExportModal() {
      this.setState({
        showExportModal: true,
        exportSpinner: false,
        ldifName: "",
        ldifSuffix: this.props.suffixes[0],
        includeReplData: false
      });
    }
  }, {
    key: "closeExportModal",
    value: function closeExportModal() {
      this.setState({
        showExportModal: false
      });
    }
  }, {
    key: "closeConfirmLDIFReplace",
    value: function closeConfirmLDIFReplace() {
      this.setState({
        showConfirmLDIFReplace: false
      });
    }
  }, {
    key: "showLDIFSpinningModal",
    value: function showLDIFSpinningModal() {
      this.setState({
        showLDIFSpinningModal: true
      });
    }
  }, {
    key: "closeLDIFSpinningModal",
    value: function closeLDIFSpinningModal() {
      this.setState({
        showLDIFSpinningModal: false
      });
    }
  }, {
    key: "showLDIFDeleteSpinningModal",
    value: function showLDIFDeleteSpinningModal() {
      this.setState({
        showLDIFDeleteSpinningModal: true
      });
    }
  }, {
    key: "closeLDIFDeleteSpinningModal",
    value: function closeLDIFDeleteSpinningModal() {
      this.setState({
        showLDIFDeleteSpinningModal: false
      });
    }
  }, {
    key: "showDelBackupSpinningModal",
    value: function showDelBackupSpinningModal() {
      this.setState({
        showDelBackupSpinningModal: true
      });
    }
  }, {
    key: "closeDelBackupSpinningModal",
    value: function closeDelBackupSpinningModal() {
      this.setState({
        showDelBackupSpinningModal: false
      });
    }
  }, {
    key: "showRestoreSpinningModal",
    value: function showRestoreSpinningModal() {
      this.setState({
        showRestoreSpinningModal: true
      });
    }
  }, {
    key: "closeRestoreSpinningModal",
    value: function closeRestoreSpinningModal() {
      this.setState({
        showRestoreSpinningModal: false
      });
    }
  }, {
    key: "showBackupModal",
    value: function showBackupModal() {
      this.setState({
        showBackupModal: true,
        backupSpinning: false,
        backupName: ""
      });
    }
  }, {
    key: "closeBackupModal",
    value: function closeBackupModal() {
      this.setState({
        showBackupModal: false
      });
    }
  }, {
    key: "showConfirmLDIFImport",
    value: function showConfirmLDIFImport(item) {
      this.setState({
        showConfirmLDIFImport: true,
        ldifName: item.name,
        ldifSuffix: item.suffix[0]
      });
    }
  }, {
    key: "closeConfirmLDIFImport",
    value: function closeConfirmLDIFImport() {
      // call importLDIF
      this.setState({
        showConfirmLDIFImport: false
      });
    }
  }, {
    key: "showConfirmLDIFDelete",
    value: function showConfirmLDIFDelete(item) {
      // call deleteLDIF
      this.setState({
        showConfirmLDIFDelete: true,
        ldifName: item.name
      });
    }
  }, {
    key: "closeConfirmLDIFDelete",
    value: function closeConfirmLDIFDelete() {
      // call importLDIF
      this.setState({
        showConfirmLDIFDelete: false
      });
    }
  }, {
    key: "showConfirmBackup",
    value: function showConfirmBackup(item) {
      // call deleteLDIF
      this.setState({
        showConfirmBackup: true,
        backupName: item.name
      });
    }
  }, {
    key: "closeConfirmBackup",
    value: function closeConfirmBackup() {
      // call importLDIF
      this.setState({
        showConfirmBackup: false
      });
    }
  }, {
    key: "showConfirmRestore",
    value: function showConfirmRestore(item) {
      this.setState({
        showConfirmRestore: true,
        backupName: item.name
      });
    }
  }, {
    key: "closeConfirmRestore",
    value: function closeConfirmRestore() {
      // call importLDIF
      this.setState({
        showConfirmRestore: false
      });
    }
  }, {
    key: "showConfirmBackupDelete",
    value: function showConfirmBackupDelete(item) {
      // calls deleteBackup
      this.setState({
        showConfirmBackupDelete: true,
        backupName: item.name
      });
    }
  }, {
    key: "closeConfirmBackupDelete",
    value: function closeConfirmBackupDelete() {
      // call importLDIF
      this.setState({
        showConfirmBackupDelete: false
      });
    }
  }, {
    key: "closeConfirmRestoreReplace",
    value: function closeConfirmRestoreReplace() {
      this.setState({
        showConfirmRestoreReplace: false
      });
    }
  }, {
    key: "importLDIF",
    value: function importLDIF() {
      var _this2 = this;

      this.showLDIFSpinningModal();
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "import", this.state.ldifSuffix, this.state.ldifName, "--encrypted"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("importLDIF", "Importing LDIF", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this2.closeLDIFSpinningModal();

        _this2.props.addNotification("success", "LDIF was successfully imported");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.closeLDIFSpinningModal();

        _this2.props.addNotification("error", "Failure importing LDIF - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "deleteLDIF",
    value: function deleteLDIF(e) {
      var _this3 = this;

      this.showLDIFDeleteSpinningModal();
      var cmd = ["dsctl", this.props.serverId, "ldifs", "--delete", this.state.ldifName];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("deleteLDIF", "Deleting LDIF", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this3.props.reload();

        _this3.closeLDIFDeleteSpinningModal();

        _this3.props.addNotification("success", "LDIF file was successfully deleted");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.reload();

        _this3.closeLDIFDeleteSpinningModal();

        _this3.props.addNotification("error", "Failure deleting LDIF file - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "validateBackup",
    value: function validateBackup() {
      for (var i = 0; i < this.props.backups.length; i++) {
        if (this.state.backupName == this.props.backups[i]['name']) {
          this.setState({
            showConfirmRestoreReplace: true
          });
          return;
        }
      }

      this.doBackup();
    }
  }, {
    key: "doBackup",
    value: function doBackup() {
      var _this4 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backup", "create"];

      if (this.state.backupName != "") {
        if (Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["bad_file_name"])(this.state.backupName)) {
          this.props.addNotification("warning", "Backup name should not be a path.  All backups are stored in the server's backup directory");
          return;
        }

        cmd.push(this.state.backupName);
      }

      this.setState({
        backupSpinning: true
      });
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("doBackup", "Add backup task", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this4.props.reload();

        _this4.closeBackupModal();

        _this4.props.addNotification("success", "Server has been backed up");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this4.props.reload();

        _this4.closeBackupModal();

        _this4.props.addNotification("error", "Failure backing up server - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "restoreBackup",
    value: function restoreBackup() {
      var _this5 = this;

      if (this.props.suffixes.length == 0) {
        this.props.addNotification("error", "There are no databases defined to restore");
        return;
      }

      this.showRestoreSpinningModal();
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backup", "restore", this.state.backupName];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("restoreBackup", "Restoring server", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this5.closeRestoreSpinningModal();

        _this5.props.addNotification("success", "Server has been restored");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.closeRestoreSpinningModal();

        _this5.props.addNotification("error", "Failure restoring up server - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "deleteBackup",
    value: function deleteBackup(e) {
      var _this6 = this;

      // Show confirmation
      this.showDelBackupSpinningModal();
      var cmd = ["dsctl", this.props.serverId, "backups", "--delete", this.state.backupName];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("deleteBackup", "Deleting backup", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this6.props.reload();

        _this6.closeDelBackupSpinningModal();

        _this6.props.addNotification("success", "Backup was successfully deleted");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this6.props.reload();

        _this6.closeDelBackupSpinningModal();

        _this6.props.addNotification("error", "Failure deleting backup - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "handleNavSelect",
    value: function handleNavSelect(key) {
      this.setState({
        activeKey: key
      });
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      var _this$setState;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var valueErr = false;
      var errObj = this.state.errObj;

      if (value == "") {
        valueErr = true;
      }

      errObj[e.target.id] = valueErr;
      this.setState((_this$setState = {}, _defineProperty(_this$setState, e.target.id, value), _defineProperty(_this$setState, "errObj", errObj), _this$setState));
    }
  }, {
    key: "validateLDIF",
    value: function validateLDIF() {
      var ldifname = this.state.ldifName;

      if (!ldifname.endsWith(".ldif")) {
        // dsconf/dsctl adds ".ldif" if not set, so that's what we need to check
        ldifname = ldifname + ".ldif";
      }

      for (var i = 0; i < this.props.ldifs.length; i++) {
        if (ldifname == this.props.ldifs[i]['name']) {
          this.setState({
            showConfirmLDIFReplace: true
          });
          return;
        }
      }

      this.doExport();
    }
  }, {
    key: "doExport",
    value: function doExport() {
      var _this7 = this;

      var missingArgs = {
        ldifName: false
      };

      if (this.state.ldifName == "") {
        this.props.addNotification("warning", "LDIF name is empty");
        missingArgs.ldifName = true;
        this.setState({
          errObj: missingArgs
        });
        return;
      } // Must not be a path


      if (Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["bad_file_name"])(this.state.ldifName)) {
        this.props.addNotification("warning", "LDIF name should not be a path.  All export files are stored in the server's LDIF directory");
        missingArgs.ldifLocation = true;
        this.setState({
          errObj: missingArgs
        });
        return;
      } // Do import


      var export_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "export", this.state.ldifSuffix, "--encrypted", "--ldif=" + this.state.ldifName];

      if (this.state.includeReplData) {
        export_cmd.push("--replication");
      }

      this.setState({
        exportSpinner: true
      });
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("doExport", "Do online export", export_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(export_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this7.props.reload();

        _this7.closeExportModal();

        _this7.props.addNotification("success", "Database export complete");

        _this7.setState({
          showExportModal: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this7.props.reload();

        _this7.closeExportModal();

        _this7.props.addNotification("error", "Error exporting database - ".concat(errMsg.desc));

        _this7.setState({
          showExportModal: false
        });
      });
    }
  }, {
    key: "render",
    value: function render() {
      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["TabContainer"], {
        id: "basic-tabs-pf",
        onSelect: this.handleNavSelect,
        activeKey: this.state.activeKey
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Nav"], {
        bsClass: "nav nav-tabs nav-tabs-pf"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["NavItem"], {
        eventKey: 1
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Backups'
        }
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["NavItem"], {
        eventKey: 2
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'LDIFs'
        }
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["TabContent"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["TabPane"], {
        eventKey: 1
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__["BackupTable"], {
        rows: this.props.backups,
        confirmRestore: this.showConfirmRestore,
        confirmDelete: this.showConfirmBackupDelete
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-inline"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "primary",
        onClick: this.showBackupModal,
        className: "ds-margin-top"
      }, "Create Backup"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "default",
        onClick: this.props.reload,
        className: "ds-left-margin ds-margin-top"
      }, "Refresh Backups"))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["TabPane"], {
        eventKey: 2
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__["LDIFManageTable"], {
        rows: this.props.ldifs,
        confirmImport: this.showConfirmLDIFImport,
        confirmDelete: this.showConfirmLDIFDelete
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-inline"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "primary",
        onClick: this.showExportModal,
        className: "ds-margin-top"
      }, "Create LDIF Export"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "default",
        onClick: this.props.reload,
        className: "ds-left-margin ds-margin-top"
      }, "Refresh LDIFs")))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(ExportModal, {
        showModal: this.state.showExportModal,
        closeHandler: this.closeExportModal,
        handleChange: this.handleChange,
        saveHandler: this.validateLDIF,
        spinning: this.state.exportSpinner,
        error: this.state.errObj,
        suffixes: this.props.suffixes
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(BackupModal, {
        showModal: this.state.showBackupModal,
        closeHandler: this.closeBackupModal,
        handleChange: this.handleChange,
        saveHandler: this.validateBackup,
        spinning: this.state.backupSpinning,
        error: this.state.errObj
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(RestoreModal, {
        showModal: this.state.showRestoreSpinningModal,
        closeHandler: this.closeRestoreSpinningModal,
        msg: this.state.backupName
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(DeleteBackupModal, {
        showModal: this.state.showDelBackupSpinningModal,
        closeHandler: this.closeDelBackupSpinningModal,
        msg: this.state.backupName
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(ImportingModal, {
        showModal: this.state.showLDIFSpinningModal,
        closeHandler: this.closeLDIFSpinningModal,
        msg: this.state.ldifName
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(DeletingLDIFModal, {
        showModal: this.state.showLDIFDeleteSpinningModal,
        closeHandler: this.closeLDIFDeleteSpinningModal,
        msg: this.state.ldifName
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showConfirmLDIFDelete,
        closeHandler: this.closeConfirmLDIFDelete,
        actionFunc: this.deleteLDIF,
        actionParam: this.state.ldifName,
        msg: "Are you sure you want to delete this LDIF?",
        msgContent: this.state.ldifName
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showConfirmLDIFImport,
        closeHandler: this.closeConfirmLDIFImport,
        actionFunc: this.importLDIF,
        actionParam: this.state.ldifName,
        msg: "Are you sure you want to import this LDIF?",
        msgContent: this.state.ldifName
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showConfirmRestore,
        closeHandler: this.closeConfirmRestore,
        actionFunc: this.restoreBackup,
        actionParam: this.state.backupName,
        msg: "Are you sure you want to restore this backup?",
        msgContent: this.state.backupName
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showConfirmBackupDelete,
        closeHandler: this.closeConfirmBackupDelete,
        actionFunc: this.deleteBackup,
        actionParam: this.state.backupName,
        msg: "Are you sure you want to delete this backup?",
        msgContent: this.state.backupName
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showConfirmRestoreReplace,
        closeHandler: this.closeConfirmRestoreReplace,
        actionFunc: this.doBackup,
        msg: "Replace Existing Backup",
        msgContent: "A backup already eixsts with the same name, do you want to replace it?"
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showConfirmLDIFReplace,
        closeHandler: this.closeConfirmLDIFReplace,
        actionFunc: this.doExport,
        msg: "Replace Existing LDIF File",
        msgContent: "A LDIF file already eixsts with the same name, do you want to replace it?"
      }));
    }
  }]);

  return Backups;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

var ExportModal =
/*#__PURE__*/
function (_React$Component2) {
  _inherits(ExportModal, _React$Component2);

  function ExportModal() {
    _classCallCheck(this, ExportModal);

    return _possibleConstructorReturn(this, _getPrototypeOf(ExportModal).apply(this, arguments));
  }

  _createClass(ExportModal, [{
    key: "render",
    value: function render() {
      var _this$props = this.props,
          showModal = _this$props.showModal,
          closeHandler = _this$props.closeHandler,
          handleChange = _this$props.handleChange,
          saveHandler = _this$props.saveHandler,
          suffixes = _this$props.suffixes,
          spinning = _this$props.spinning,
          error = _this$props.error;
      var spinner = "";

      if (spinning) {
        spinner = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top ds-modal-spinner"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
          loading: true,
          inline: true,
          size: "md"
        }), "Exporting database... ", react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("font", {
          size: "2"
        }, "(You can safely close this window)")));
      }

      var suffixList = suffixes.map(function (suffix) {
        return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", {
          key: suffix,
          value: suffix
        }, suffix);
      });
      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Title, null, "Export Database To LDIF File")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], null, "Select Suffix")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
        id: "ldifSuffix",
        onChange: handleChange
      }, suffixList))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top",
        title: "Name of exported LDIF file, if left blank the data and time will be used as the file name"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], null, "LDIF File Name")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["FormControl"], {
        type: "text",
        id: "ldifName",
        className: error.ldifName ? "ds-input-bad" : "",
        onChange: handleChange
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top-xlg"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 12,
        className: "ds-margin-left"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Checkbox"], {
        id: "includeReplData",
        onChange: handleChange,
        title: "Include the replication metadata needed to restore or initialize another replica."
      }, "Include Replication Data"))), spinner)), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Create LDIF"))));
    }
  }]);

  return ExportModal;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

var BackupModal =
/*#__PURE__*/
function (_React$Component3) {
  _inherits(BackupModal, _React$Component3);

  function BackupModal() {
    _classCallCheck(this, BackupModal);

    return _possibleConstructorReturn(this, _getPrototypeOf(BackupModal).apply(this, arguments));
  }

  _createClass(BackupModal, [{
    key: "render",
    value: function render() {
      var _this$props2 = this.props,
          showModal = _this$props2.showModal,
          closeHandler = _this$props2.closeHandler,
          handleChange = _this$props2.handleChange,
          saveHandler = _this$props2.saveHandler,
          spinning = _this$props2.spinning,
          error = _this$props2.error;
      var spinner = "";

      if (spinning) {
        spinner = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top ds-modal-spinner"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
          loading: true,
          inline: true,
          size: "md"
        }), "Backing up databases... ", react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("font", {
          size: "2"
        }, "(You can safely close this window)")));
      }

      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Title, null, "Backup The Server")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        title: "Backup name, if left blank the date and time will be used as the name"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], null, "Backup Name")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["FormControl"], {
        type: "text",
        id: "backupName",
        className: error.backupName ? "ds-input-bad" : "",
        onChange: handleChange
      }))), spinner)), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Create Backup"))));
    }
  }]);

  return BackupModal;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

var RestoreModal =
/*#__PURE__*/
function (_React$Component4) {
  _inherits(RestoreModal, _React$Component4);

  function RestoreModal() {
    _classCallCheck(this, RestoreModal);

    return _possibleConstructorReturn(this, _getPrototypeOf(RestoreModal).apply(this, arguments));
  }

  _createClass(RestoreModal, [{
    key: "render",
    value: function render() {
      var _this$props3 = this.props,
          showModal = _this$props3.showModal,
          closeHandler = _this$props3.closeHandler,
          msg = _this$props3.msg;
      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Title, null, "Restoring Server From Backup")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-modal-spinner"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
        loading: true,
        inline: true,
        size: "md"
      }), " Restoring backup ", react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, msg), " ...", react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("font", {
        size: "2"
      }, " (You can safely close this window)"))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Close"))));
    }
  }]);

  return RestoreModal;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

var DeleteBackupModal =
/*#__PURE__*/
function (_React$Component5) {
  _inherits(DeleteBackupModal, _React$Component5);

  function DeleteBackupModal() {
    _classCallCheck(this, DeleteBackupModal);

    return _possibleConstructorReturn(this, _getPrototypeOf(DeleteBackupModal).apply(this, arguments));
  }

  _createClass(DeleteBackupModal, [{
    key: "render",
    value: function render() {
      var _this$props4 = this.props,
          showModal = _this$props4.showModal,
          closeHandler = _this$props4.closeHandler,
          msg = _this$props4.msg;
      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Title, null, "Delete Backup")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-modal-spinner"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
        loading: true,
        inline: true,
        size: "md"
      }), " Deleting backup ", react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, msg), " ...", react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("font", {
        size: "2"
      }, " (You can safely close this window)"))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Close"))));
    }
  }]);

  return DeleteBackupModal;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

var ImportingModal =
/*#__PURE__*/
function (_React$Component6) {
  _inherits(ImportingModal, _React$Component6);

  function ImportingModal() {
    _classCallCheck(this, ImportingModal);

    return _possibleConstructorReturn(this, _getPrototypeOf(ImportingModal).apply(this, arguments));
  }

  _createClass(ImportingModal, [{
    key: "render",
    value: function render() {
      var _this$props5 = this.props,
          showModal = _this$props5.showModal,
          closeHandler = _this$props5.closeHandler,
          msg = _this$props5.msg;
      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Title, null, "Import LDIF File")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-modal-spinner"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
        loading: true,
        inline: true,
        size: "md"
      }), " Importing LDIF ", react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, msg), " ...", react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("font", {
        size: "2"
      }, " (You can safely close this window)"))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Close"))));
    }
  }]);

  return ImportingModal;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

var DeletingLDIFModal =
/*#__PURE__*/
function (_React$Component7) {
  _inherits(DeletingLDIFModal, _React$Component7);

  function DeletingLDIFModal() {
    _classCallCheck(this, DeletingLDIFModal);

    return _possibleConstructorReturn(this, _getPrototypeOf(DeletingLDIFModal).apply(this, arguments));
  }

  _createClass(DeletingLDIFModal, [{
    key: "render",
    value: function render() {
      var _this$props6 = this.props,
          showModal = _this$props6.showModal,
          closeHandler = _this$props6.closeHandler,
          msg = _this$props6.msg;
      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Title, null, "Delete LDIF File")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-modal-spinner"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
        loading: true,
        inline: true,
        size: "md"
      }), " Deleting LDIF file ", react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, msg), " ...", react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("font", {
        size: "2"
      }, " (You can safely close this window)"))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Close"))));
    }
  }]);

  return DeletingLDIFModal;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Properties and defaults


ExportModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  error: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.object,
  suffixes: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array
};
BackupModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  error: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.object
};
DeletingLDIFModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  msg: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string
};
RestoreModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  msg: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string
};
DeleteBackupModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  msg: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string
};
ImportingModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  msg: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string
};
Backups.propTypes = {
  backups: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array,
  ldifs: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func
};
Backups.defaultProps = {
  backups: [],
  ldifs: [],
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"],
  enableTree: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"]
};

/***/ }),

/***/ "./src/lib/database/chaining.jsx":
/*!***************************************!*\
  !*** ./src/lib/database/chaining.jsx ***!
  \***************************************/
/*! exports provided: ChainingDatabaseConfig, ChainingConfig, ChainControlsModal, ChainCompsModal */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChainingDatabaseConfig", function() { return ChainingDatabaseConfig; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChainingConfig", function() { return ChainingConfig; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChainControlsModal", function() { return ChainControlsModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChainCompsModal", function() { return ChainCompsModal; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _customCollapse_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../customCollapse.jsx */ "./src/lib/customCollapse.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_7__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }








 //
// This component is the global chaining & default configuration
//

var ChainingDatabaseConfig =
/*#__PURE__*/
function (_React$Component) {
  _inherits(ChainingDatabaseConfig, _React$Component);

  function ChainingDatabaseConfig(props) {
    var _this;

    _classCallCheck(this, ChainingDatabaseConfig);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(ChainingDatabaseConfig).call(this, props));
    _this.state = {
      oids: _this.props.data.oids,
      oidList: _this.props.data.oidList,
      availableOids: _this.props.data.availableOids,
      comps: _this.props.data.comps,
      compList: _this.props.data.compList,
      availableComps: _this.props.data.availableComps,
      selectedOids: _this.props.data.selectedOids,
      selectedComps: _this.props.data.selectedComps,
      removeOids: _this.props.data.removeOids,
      removeComps: _this.props.data.removeComps,
      showConfirmCompDelete: false,
      showConfirmOidDelete: false,
      showOidModal: false,
      showCompsModal: false,
      // Chaining config settings
      defSearchCheck: _this.props.data.defSearchCheck,
      defBindConnLimit: _this.props.data.defBindConnLimit,
      defBindTimeout: _this.props.data.defBindTimeout,
      defBindRetryLimit: _this.props.data.defBindRetryLimit,
      defConcurLimit: _this.props.data.defConcurLimit,
      defConcurOpLimit: _this.props.data.defConcurOpLimit,
      defConnLife: _this.props.data.defConnLife,
      defHopLimit: _this.props.data.defHopLimit,
      defDelay: _this.props.data.defDelay,
      defTestDelay: _this.props.data.defTestDelay,
      defOpConnLimit: _this.props.data.defOpConnLimit,
      defSizeLimit: _this.props.data.defSizeLimit,
      defTimeLimit: _this.props.data.defTimeLimit,
      defProxy: _this.props.data.defProxy,
      defRefOnScoped: _this.props.data.defRefOnScoped,
      defCheckAci: _this.props.data.defCheckAci,
      defUseStartTLS: _this.props.data.defUseStartTLS,
      // Original values used for saving config
      _defSearchCheck: _this.props.data.defSearchCheck,
      _defBindConnLimit: _this.props.data.defBindConnLimit,
      _defBindTimeout: _this.props.data.defBindTimeout,
      _defBindRetryLimit: _this.props.data.defBindRetryLimit,
      _defConcurLimit: _this.props.data.defConcurLimit,
      _defConcurOpLimit: _this.props.data.defConcurOpLimit,
      _defConnLife: _this.props.data.defConnLife,
      _defHopLimit: _this.props.data.defHopLimit,
      _defDelay: _this.props.data.defDelay,
      _defTestDelay: _this.props.data.defTestDelay,
      _defOpConnLimit: _this.props.data.defOpConnLimit,
      _defSizeLimit: _this.props.data.defSizeLimit,
      _defTimeLimit: _this.props.data.defTimeLimit,
      _defProxy: _this.props.data.defProxy,
      _defRefOnScoped: _this.props.data.defRefOnScoped,
      _defCheckAci: _this.props.data.defCheckAci,
      _defUseStartTLS: _this.props.data.defUseStartTLS
    };
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.save_chaining_config = _this.save_chaining_config.bind(_assertThisInitialized(_assertThisInitialized(_this))); // Chaining Control OIDs

    _this.showOidModal = _this.showOidModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeOidModal = _this.closeOidModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleOidChange = _this.handleOidChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.saveOids = _this.saveOids.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.deleteOids = _this.deleteOids.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleSelectOids = _this.handleSelectOids.bind(_assertThisInitialized(_assertThisInitialized(_this))); // Chaining comps

    _this.showCompsModal = _this.showCompsModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeCompsModal = _this.closeCompsModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleCompsChange = _this.handleCompsChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.saveComps = _this.saveComps.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.deleteComps = _this.deleteComps.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleSelectComps = _this.handleSelectComps.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showConfirmDelete = _this.showConfirmDelete.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmOidDelete = _this.closeConfirmOidDelete.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmCompDelete = _this.closeConfirmCompDelete.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(ChainingDatabaseConfig, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.props.enableTree();
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      // Generic
      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      this.setState(_defineProperty({}, e.target.id, value));
    }
  }, {
    key: "save_chaining_config",
    value: function save_chaining_config() {
      var _this2 = this;

      // Build up the command list
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'chaining', 'config-set-def'];
      var val = "";

      if (this.state._defUseStartTLS != this.state.defUseStartTLS) {
        val = "off";

        if (this.state.defUseStartTLS) {
          val = "on";
        }

        cmd.push("--use-starttls=" + val);
      }

      if (this.state._defCheckAci != this.state.defCheckAci) {
        val = "off";

        if (this.state.defCheckAci) {
          val = "on";
        }

        cmd.push("--check-aci=" + val);
      }

      if (this.state._defRefOnScoped != this.state.defRefOnScoped) {
        val = "off";

        if (this.state.defRefOnScoped) {
          val = "on";
        }

        cmd.push("--return-ref=" + val);
      }

      if (this.state._defProxy != this.state.defProxy) {
        val = "off";

        if (this.state.defProxy) {
          val = "on";
        }

        cmd.push("--proxied-auth=" + val);
      }

      if (this.state._defTestDelay != this.state.defTestDelay) {
        cmd.push("--test-response-delay=" + this.state.defTestDelay);
      }

      if (this.state._defOpConnLimit != this.state.defOpConnLimit) {
        cmd.push("--conn-op-limit=" + this.state.defOpConnLimit);
      }

      if (this.state._defSizeLimit != this.state.defSizeLimit) {
        cmd.push("--size-limit=" + this.state.defSizeLimit);
      }

      if (this.state._defTimeLimit != this.state.defTimeLimit) {
        cmd.push("--time-limit=" + this.state.defTimeLimit);
      }

      if (this.state._defSearchCheck != this.state.defSearchCheck) {
        cmd.push("--abandon-check-interval=" + this.state.defSearchCheck);
      }

      if (this.state._defBindTimeout != this.state.defBindTimeout) {
        cmd.push("--bind-timeout=" + this.state.defBindTimeout);
      }

      if (this.state._defBindRetryLimit != this.state.defBindRetryLimit) {
        cmd.push("--bind-attempts=" + this.state.defBindRetryLimit);
      }

      if (this.state._defConcurLimit != this.state.defConcurLimit) {
        cmd.push("--bind-limit=" + this.state.defConcurLimit);
      }

      if (this.state._defConcurOpLimit != this.state.defConcurOpLimit) {
        cmd.push("--op-limit=" + this.state.defConcurOpLimit);
      }

      if (this.state._defConnLife != this.state.defConnLife) {
        cmd.push("--conn-lifetime=" + this.state.defConnLife);
      }

      if (this.state._defHopLimit != this.state.defHopLimit) {
        cmd.push("--hop-limit=" + this.state.defHopLimit);
      }

      if (this.state._defDelay != this.state.defDelay) {
        cmd.push("--response-delay=" + this.state.defDelay);
      }

      if (this.state._defBindConnLimit != this.state.defBindConnLimit) {
        cmd.push("--conn-bind-limit=" + this.state.defBindConnLimit);
      } // If we have chaining mods, then apply them...


      if (cmd.length > 5) {
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["log_cmd"])("save_chaining_config", "Applying default chaining config change", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          "err": "message"
        }).done(function (content) {
          // Continue with the next mod
          _this2.props.reload();

          _this2.props.addNotification("success", "Successfully updated chaining configuration");
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this2.props.reload();

          _this2.props.addNotification("error", "Error updating chaining configuration - ".concat(errMsg.desc));
        });
      }
    } //
    // Chaining OID modal functions
    //

  }, {
    key: "showOidModal",
    value: function showOidModal() {
      this.setState({
        showOidModal: true
      });
    }
  }, {
    key: "closeOidModal",
    value: function closeOidModal() {
      this.setState({
        showOidModal: false
      });
    }
  }, {
    key: "handleOidChange",
    value: function handleOidChange(e) {
      var options = e.target.options;
      var values = [];
      var _iteratorNormalCompletion = true;
      var _didIteratorError = false;
      var _iteratorError = undefined;

      try {
        for (var _iterator = options[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
          var option = _step.value;

          if (option.selected) {
            values.push(option.value);
          }
        }
      } catch (err) {
        _didIteratorError = true;
        _iteratorError = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion && _iterator.return != null) {
            _iterator.return();
          }
        } finally {
          if (_didIteratorError) {
            throw _iteratorError;
          }
        }
      }

      this.setState({
        selectedOids: values
      });
    }
  }, {
    key: "saveOids",
    value: function saveOids() {
      var _this3 = this;

      // Save chaining control oids
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "chaining", "config-set"];
      var _iteratorNormalCompletion2 = true;
      var _didIteratorError2 = false;
      var _iteratorError2 = undefined;

      try {
        for (var _iterator2 = this.state.selectedOids[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
          var oid = _step2.value;

          if (!this.state.oidList.includes(oid)) {
            cmd.push('--add-control=' + oid);
          }
        }
      } catch (err) {
        _didIteratorError2 = true;
        _iteratorError2 = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
            _iterator2.return();
          }
        } finally {
          if (_didIteratorError2) {
            throw _iteratorError2;
          }
        }
      }

      this.closeOidModal();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["log_cmd"])("saveOids", "Save new chaining OID controls", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this3.props.reload();

        _this3.props.addNotification("success", "Successfully updated chaining controls");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.reload();

        _this3.props.addNotification("error", "Error updating chaining controls - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "handleSelectOids",
    value: function handleSelectOids(e) {
      var options = e.target.options;
      var values = [];
      var _iteratorNormalCompletion3 = true;
      var _didIteratorError3 = false;
      var _iteratorError3 = undefined;

      try {
        for (var _iterator3 = options[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
          var option = _step3.value;

          if (option.selected) {
            values.push(option.value);
          }
        }
      } catch (err) {
        _didIteratorError3 = true;
        _iteratorError3 = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
            _iterator3.return();
          }
        } finally {
          if (_didIteratorError3) {
            throw _iteratorError3;
          }
        }
      }

      this.setState({
        removeOids: values
      });
    }
  }, {
    key: "deleteOids",
    value: function deleteOids(props) {
      var _this4 = this;

      // Remove chaining controls
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "chaining", "config-set"];
      var _iteratorNormalCompletion4 = true;
      var _didIteratorError4 = false;
      var _iteratorError4 = undefined;

      try {
        for (var _iterator4 = this.state.removeOids[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {
          var oid = _step4.value;
          cmd.push('--del-control=' + oid);
        }
      } catch (err) {
        _didIteratorError4 = true;
        _iteratorError4 = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion4 && _iterator4.return != null) {
            _iterator4.return();
          }
        } finally {
          if (_didIteratorError4) {
            throw _iteratorError4;
          }
        }
      }

      this.state.removeOids = [];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["log_cmd"])("deleteOids", "Delete chaining controls", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this4.props.reload();

        _this4.props.addNotification("success", "Successfully removed chaining controls");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this4.props.reload();

        _this4.props.addNotification("error", "Error removing chaining controls - ".concat(errMsg.desc));
      });
    } //
    // Chaining Component modal functions
    //

  }, {
    key: "showCompsModal",
    value: function showCompsModal() {
      this.setState({
        showCompsModal: true
      });
    }
  }, {
    key: "closeCompsModal",
    value: function closeCompsModal() {
      this.setState({
        showCompsModal: false
      });
    }
  }, {
    key: "handleCompsChange",
    value: function handleCompsChange(e) {
      var options = e.target.options;
      var values = [];
      var _iteratorNormalCompletion5 = true;
      var _didIteratorError5 = false;
      var _iteratorError5 = undefined;

      try {
        for (var _iterator5 = options[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) {
          var option = _step5.value;

          if (option.selected) {
            values.push(option.value);
          }
        }
      } catch (err) {
        _didIteratorError5 = true;
        _iteratorError5 = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion5 && _iterator5.return != null) {
            _iterator5.return();
          }
        } finally {
          if (_didIteratorError5) {
            throw _iteratorError5;
          }
        }
      }

      this.setState({
        selectedComps: values
      });
    }
  }, {
    key: "handleSelectComps",
    value: function handleSelectComps(e) {
      var options = e.target.options;
      var values = [];
      var _iteratorNormalCompletion6 = true;
      var _didIteratorError6 = false;
      var _iteratorError6 = undefined;

      try {
        for (var _iterator6 = options[Symbol.iterator](), _step6; !(_iteratorNormalCompletion6 = (_step6 = _iterator6.next()).done); _iteratorNormalCompletion6 = true) {
          var option = _step6.value;

          if (option.selected) {
            values.push(option.value);
          }
        }
      } catch (err) {
        _didIteratorError6 = true;
        _iteratorError6 = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion6 && _iterator6.return != null) {
            _iterator6.return();
          }
        } finally {
          if (_didIteratorError6) {
            throw _iteratorError6;
          }
        }
      }

      this.setState({
        removeComps: values
      });
    }
  }, {
    key: "saveComps",
    value: function saveComps() {
      var _this5 = this;

      // Save chaining control oids
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "chaining", "config-set"];
      var _iteratorNormalCompletion7 = true;
      var _didIteratorError7 = false;
      var _iteratorError7 = undefined;

      try {
        for (var _iterator7 = this.state.selectedComps[Symbol.iterator](), _step7; !(_iteratorNormalCompletion7 = (_step7 = _iterator7.next()).done); _iteratorNormalCompletion7 = true) {
          var comp = _step7.value;

          if (!this.state.compList.includes(comp)) {
            cmd.push('--add-comp=' + comp);
          }
        }
      } catch (err) {
        _didIteratorError7 = true;
        _iteratorError7 = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion7 && _iterator7.return != null) {
            _iterator7.return();
          }
        } finally {
          if (_didIteratorError7) {
            throw _iteratorError7;
          }
        }
      }

      this.closeCompsModal();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["log_cmd"])("saveComps", "Save new chaining components", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this5.props.reload();

        _this5.props.addNotification("success", "Successfully updated chaining components");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.props.reload();

        _this5.props.addNotification("error", "Error updating chaining components - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "deleteComps",
    value: function deleteComps(props) {
      var _this6 = this;

      // Remove chaining comps
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "chaining", "config-set"];
      var _iteratorNormalCompletion8 = true;
      var _didIteratorError8 = false;
      var _iteratorError8 = undefined;

      try {
        for (var _iterator8 = this.state.removeComps[Symbol.iterator](), _step8; !(_iteratorNormalCompletion8 = (_step8 = _iterator8.next()).done); _iteratorNormalCompletion8 = true) {
          var comp = _step8.value;
          cmd.push('--del-comp=' + comp);
        }
      } catch (err) {
        _didIteratorError8 = true;
        _iteratorError8 = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion8 && _iterator8.return != null) {
            _iterator8.return();
          }
        } finally {
          if (_didIteratorError8) {
            throw _iteratorError8;
          }
        }
      }

      this.state.removeComps = [];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["log_cmd"])("deleteComps", "Delete chaining components", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this6.props.reload();

        _this6.props.addNotification("success", "Successfully removed chaining components");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this6.props.reload();

        _this6.props.addNotification("error", "Error removing chaining components - ".concat(errMsg.desc));
      });
    } //
    // Confirm deletion functions
    //

  }, {
    key: "showConfirmDelete",
    value: function showConfirmDelete(item) {
      if (item == "oid") {
        if (this.state.removeOids.length) {
          this.setState({
            showConfirmOidDelete: true
          });
        }
      } else if (item == "comp") {
        if (this.state.removeComps.length) {
          this.setState({
            showConfirmCompDelete: true
          });
        }
      }
    }
  }, {
    key: "closeConfirmOidDelete",
    value: function closeConfirmOidDelete() {
      this.setState({
        showConfirmOidDelete: false
      });
    }
  }, {
    key: "closeConfirmCompDelete",
    value: function closeConfirmCompDelete() {
      this.setState({
        showConfirmCompDelete: false
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this7 = this;

      // Get OIDs and comps
      this.state.oids = this.state.oidList.map(function (oid) {
        return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", {
          key: oid,
          value: oid
        }, oid);
      });
      this.state.comps = this.state.compList.map(function (comp) {
        return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", {
          key: comp,
          value: comp
        }, comp);
      });
      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        id: "chaining-page"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h3", {
        className: "ds-config-header"
      }, "Database Chaining Settings"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-container"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-chaining-split"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("form", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", {
        className: "ds-config-label",
        htmlFor: "chaining-oid-list",
        title: "A list of LDAP control OIDs to be forwarded through chaining"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, "Forwarded LDAP Controls")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
        id: "chaining-oid-list",
        onChange: this.handleSelectOids,
        className: "ds-chaining-list",
        name: "nstransmittedcontrols",
        size: "10",
        multiple: true
      }, this.state.oids)), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "clearfix ds-container"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-panel-left"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        type: "button",
        onClick: this.showOidModal,
        className: "ds-button-left"
      }, "Add")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-panel-right"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        type: "button",
        onClick: function onClick(e) {
          return _this7.showConfirmDelete("oid");
        },
        className: "ds-button-right"
      }, "Delete")))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-chaining-divider"
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-chaining-split"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("form", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", {
        className: "ds-config-label",
        htmlFor: "chaining-comp-list",
        title: "A list of components to go through chaining"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, "Components to Chain")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
        id: "chaining-comp-list",
        onChange: this.handleSelectComps,
        className: "ds-chaining-list",
        name: "nsactivechainingcomponents",
        size: "10",
        multiple: true
      }, this.state.comps, "}")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "clearfix ds-container"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-panel-left"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        type: "button",
        onClick: this.showCompsModal,
        className: "ds-button-left"
      }, "Add")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-panel-right"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        type: "button",
        onClick: function onClick(e) {
          return _this7.showConfirmDelete("comp");
        },
        className: "ds-button-right"
      }, "Delete"))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", {
        className: "ds-margin-top ds-sub-header ds-center"
      }, "Default Database Link Creation Settings"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4,
        title: "The size limit of entries returned over a database link (nsslapd-sizelimit)."
      }, "Size Limit"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        id: "defSizeLimit",
        onChange: this.handleChange,
        defaultValue: this.state.defSizeLimit
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4,
        title: "The maximum number of operations per connections. (nsconcurrentoperationslimit)."
      }, "Max Operations Per Conn"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        id: "defConcurOpLimit",
        onChange: this.handleChange,
        defaultValue: this.state.defConcurOpLimit
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4,
        title: "The time limit of an operation over a database link (nsslapd-timelimit)."
      }, "Time Limit"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        id: "defTimeLimit",
        onChange: this.handleChange,
        defaultValue: this.state.defTimeLimit
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4,
        title: "The maximum number of operations per connections. (nsconcurrentoperationslimit)."
      }, "Connection Lifetime"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        id: "defConnLife",
        onChange: this.handleChange,
        defaultValue: this.state.defConnLife
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4,
        title: "The maximum number of TCP connections the database link establishes with the remote server.  (nsbindconnectionslimit)."
      }, "Max TCP Connections"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        id: "defBindConnLimit",
        onChange: this.handleChange,
        defaultValue: this.state.defBindConnLimit
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4,
        title: "The number of seconds that pass before the server checks for abandoned operations.  (nsabandonedsearchcheckinterval)."
      }, "Abandoned Op Check Interval"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        id: "defSearchCheck",
        onChange: this.handleChange,
        defaultValue: this.state.defSearchCheck
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4,
        title: "The maximum number of connections allowed over the database link.  (nsoperationconnectionslimit)."
      }, "Max LDAP Connections"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        id: "defOpConnLimit",
        onChange: this.handleChange,
        defaultValue: this.state.defOpConnLimit
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4,
        title: "The number of seconds that pass before the server checks for abandoned operations.  (nsabandonedsearchcheckinterval)."
      }, "Abandoned Op Check Interval"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        id: "defSearchCheck",
        onChange: this.handleChange,
        defaultValue: this.state.defSearchCheck
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4,
        title: "The maximum number of connections allowed over the database link.  (nsoperationconnectionslimit)."
      }, "Max Binds Per Connection"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        id: "defOpConnLimit",
        onChange: this.handleChange,
        defaultValue: this.state.defOpConnLimit
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4,
        title: "The maximum number of times a request can be forwarded from one database link to another.  (nshoplimit)."
      }, "Database Link Hop Limit"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        id: "defHopLimit",
        onChange: this.handleChange,
        defaultValue: this.state.defHopLimit
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4,
        title: "The amount of time before the bind attempt times out. (nsbindtimeout)."
      }, "Bind Timeout"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        id: "defBindTimeout",
        onChange: this.handleChange,
        defaultValue: this.state.defBindTimeout
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4,
        title: "The number of times the database link tries to bind with the remote server after a connection failure. (nsbindretrylimit)."
      }, "Bind Retry Limit"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        id: "defBindRetryLimit",
        onChange: this.handleChange,
        defaultValue: this.state.defBindRetryLimit
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4,
        title: "Sets whether ACIs are evaluated on the database link as well as the remote data server (nschecklocalaci)."
      }, "Check Local ACIs"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        type: "checkbox",
        onChange: this.handleChange,
        defaultChecked: this.state.defCheckAci,
        className: "ds-config-checkbox",
        id: "nsusdefCheckAciestarttls"
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4,
        title: "Sets whether referrals are returned by scoped searches (meaning 'one-level' or 'subtree' scoped searches). (nsreferralonscopedsearch)."
      }, "Send Referral On Scoped Search"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        type: "checkbox",
        onChange: this.handleChange,
        defaultChecked: this.state.defRefOnScoped,
        className: "ds-config-checkbox",
        id: "defRefOnScoped"
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4,
        title: "Sets whether ACIs are evaluated on the database link as well as the remote data server (nschecklocalaci)."
      }, "Allow Proxied Authentication"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        type: "checkbox",
        onChange: this.handleChange,
        defaultChecked: this.state.defProxy,
        className: "ds-config-checkbox",
        id: "defProxy"
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4,
        title: "Sets whether referrals are returned by scoped searches (meaning 'one-level' or 'subtree' scoped searches). (nsreferralonscopedsearch)."
      }, "Use StartTLS"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        type: "checkbox",
        onChange: this.handleChange,
        defaultChecked: this.state.defUseStartTLS,
        className: "ds-config-checkbox",
        id: "defUseStartTLS"
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top-lg"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 5
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "btn btn-primary save-button",
        onClick: this.save_chaining_config
      }, "Save Default Settings")))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(ChainControlsModal, {
        showModal: this.state.showOidModal,
        closeHandler: this.closeOidModal,
        handleChange: this.handleOidChange,
        saveHandler: this.saveOids,
        oidList: this.state.availableOids
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(ChainCompsModal, {
        showModal: this.state.showCompsModal,
        closeHandler: this.closeCompsModal,
        handleChange: this.handleCompsChange,
        saveHandler: this.saveComps,
        compList: this.state.availableComps
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showConfirmOidDelete,
        closeHandler: this.closeConfirmOidDelete,
        actionFunc: this.deleteOids,
        msg: "Are you sure you want to delete these OID's?",
        msgContent: this.state.removeOids
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showConfirmCompDelete,
        closeHandler: this.closeConfirmCompDelete,
        actionFunc: this.deleteComps,
        msg: "Are you sure you want to delete these components?",
        msgContent: this.state.removeComps
      }));
    }
  }]);

  return ChainingDatabaseConfig;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); //
// This is the component for the actual database link under a suffix
//

var ChainingConfig =
/*#__PURE__*/
function (_React$Component2) {
  _inherits(ChainingConfig, _React$Component2);

  function ChainingConfig(props) {
    var _this8;

    _classCallCheck(this, ChainingConfig);

    _this8 = _possibleConstructorReturn(this, _getPrototypeOf(ChainingConfig).call(this, props));

    if (_this8.props.data !== undefined) {
      _this8.state = {
        errObj: {},
        showDeleteConfirm: false,
        linkPwdMatch: true,
        modalSpinning: false,
        modalChecked: false,
        // Settings
        nsfarmserverurl: _this8.props.data.nsfarmserverurl,
        nsmultiplexorbinddn: _this8.props.data.nsmultiplexorbinddn,
        nsmultiplexorcredentials: _this8.props.data.nsmultiplexorcredentials,
        nsmultiplexorcredentials_confirm: _this8.props.data.nsmultiplexorcredentials,
        sizelimit: _this8.props.data.sizelimit,
        timelimit: _this8.props.data.timelimit,
        bindconnlimit: _this8.props.data.bindconnlimit,
        opconnlimit: _this8.props.data.opconnlimit,
        concurrbindlimit: _this8.props.data.concurrbindlimit,
        bindtimeout: _this8.props.data.bindtimeout,
        bindretrylimit: _this8.props.data.bindretrylimit,
        concurroplimit: _this8.props.data.concurroplimit,
        connlifetime: _this8.props.data.connlifetime,
        searchcheckinterval: _this8.props.data.searchcheckinterval,
        hoplimit: _this8.props.data.hoplimit,
        nsbindmechanism: _this8.props.data.nsbindmechanism,
        nsusestarttls: _this8.props.data.nsusestarttls,
        nsreferralonscopedsearch: _this8.props.data.nsreferralonscopedsearch,
        nsproxiedauthorization: _this8.props.data.nsproxiedauthorization,
        nschecklocalaci: _this8.props.data.nschecklocalaci,
        // Original settings
        _nsfarmserverurl: _this8.props.data.nsfarmserverurl,
        _nsmultiplexorbinddn: _this8.props.data.nsmultiplexorbinddn,
        _nsmultiplexorcredentials: _this8.props.data.nsmultiplexorcredentials,
        _nsmultiplexorcredentials_confirm: _this8.props.data.nsmultiplexorcredentials,
        _sizelimit: _this8.props.data.sizelimit,
        _timelimit: _this8.props.data.timelimit,
        _bindconnlimit: _this8.props.data.bindconnlimit,
        _opconnlimit: _this8.props.data.opconnlimit,
        _concurrbindlimit: _this8.props.data.concurrbindlimit,
        _bindtimeout: _this8.props.data.bindtimeout,
        _bindretrylimit: _this8.props.data.bindretrylimit,
        _concurroplimit: _this8.props.data.concurroplimit,
        _connlifetime: _this8.props.data.connlifetime,
        _searchcheckinterval: _this8.props.data.searchcheckinterval,
        _hoplimit: _this8.props.data.hoplimit,
        _nsbindmechanism: _this8.props.data.nsbindmechanism,
        _nsusestarttls: _this8.props.data.nsusestarttls,
        _nsreferralonscopedsearch: _this8.props.data.nsreferralonscopedsearch,
        _nsproxiedauthorization: _this8.props.data.nsproxiedauthorization,
        _nschecklocalaci: _this8.props.data.nschecklocalaci
      };
    } else {
      _this8.state = {
        errObj: {},
        showDeleteConfirm: false,
        linkPwdMatch: true
      };
    }

    _this8.handleChange = _this8.handleChange.bind(_assertThisInitialized(_assertThisInitialized(_this8)));
    _this8.saveLink = _this8.saveLink.bind(_assertThisInitialized(_assertThisInitialized(_this8)));
    _this8.deleteLink = _this8.deleteLink.bind(_assertThisInitialized(_assertThisInitialized(_this8)));
    _this8.showDeleteConfirm = _this8.showDeleteConfirm.bind(_assertThisInitialized(_assertThisInitialized(_this8)));
    _this8.closeDeleteConfirm = _this8.closeDeleteConfirm.bind(_assertThisInitialized(_assertThisInitialized(_this8)));
    return _this8;
  }

  _createClass(ChainingConfig, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.props.enableTree();
    }
  }, {
    key: "showDeleteConfirm",
    value: function showDeleteConfirm() {
      this.setState({
        showDeleteConfirm: true,
        modalSpinning: false,
        modalChecked: false
      });
    }
  }, {
    key: "closeDeleteConfirm",
    value: function closeDeleteConfirm() {
      this.setState({
        showDeleteConfirm: false,
        modalSpinning: false,
        modalChecked: false
      });
    }
  }, {
    key: "checkPasswords",
    value: function checkPasswords() {
      var pwdMatch = false;

      if (this.state.nsmultiplexorcredentials == this.state.nsmultiplexorcredentials_confirm) {
        pwdMatch = true;
      }

      this.setState({
        linkPwdMatch: pwdMatch
      });
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      var _this$setState2;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var valueErr = false;
      var errObj = this.state.errObj;

      if (value == "") {
        valueErr = true;
      }

      errObj[e.target.id] = valueErr;
      this.setState((_this$setState2 = {}, _defineProperty(_this$setState2, e.target.id, value), _defineProperty(_this$setState2, "errObj", errObj), _this$setState2), this.checkPasswords);
    }
  }, {
    key: "saveLink",
    value: function saveLink() {
      var _this9 = this;

      var missingArgs = {};
      var errors = false;

      if (this.state.nsfarmserverurl == "") {
        this.props.addNotification("warning", "Missing Remote Server LDAP URL");
        missingArgs.nsfarmserverurl = true;
        errors = true;
      }

      if (this.state.nsmultiplexorbinddn == "") {
        this.props.addNotification("warning", "Missing Remote Bind DN");
        missingArgs.nsmultiplexorbinddn = true;
        errors = true;
      }

      if (this.state.nsmultiplexorcredentials == "") {
        this.props.addNotification("warning", "Missing Remote Bind DN Password");
        missingArgs.nsmultiplexorcredentials = true;
        errors = true;
      }

      if (this.state.nsmultiplexorcredentials_confirm == "") {
        this.props.addNotification("warning", "Missing Remote Bind DN Password Confirmation");
        missingArgs.nsmultiplexorcredentials_confirm = true;
        errors = true;
      }

      if (this.state.nsmultiplexorcredentials != this.state.nsmultiplexorcredentials_confirm) {
        this.props.addNotification("warning", "Remote Bind DN Password Do Not Match");
        missingArgs.nsmultiplexorcredentials = true;
        missingArgs.nsmultiplexorcredentials_confirm = true;
        errors = true;
      }

      if (errors) {
        this.setState({
          errObj: missingArgs
        });
        return;
      } // Buld up the command of all the hcnge we have to do


      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "chaining", "link-set", this.props.suffix];

      if (this.state.nsfarmserverurl != this.state._nsfarmserverurl) {
        cmd.push('--server-url=' + this.state.nsfarmserverurl);
      }

      if (this.state.nsmultiplexorbinddn != this.state._nsmultiplexorbinddn) {
        cmd.push('--bind-dn=' + this.state.nsmultiplexorbinddn);
      }

      if (this.state.nsmultiplexorcredentials != this.state._nsmultiplexorcredentials) {
        cmd.push('--bind-pw=' + this.state.nsmultiplexorcredentials);
      }

      if (this.state.timelimit != this.state._timelimit) {
        cmd.push('--time-limit=' + this.state.timelimit);
      }

      if (this.state.sizelimit != this.state._sizelimit) {
        cmd.push('--size-limit=' + this.state.sizelimit);
      }

      if (this.state.bindconnlimit != this.state._bindconnlimit) {
        cmd.push('--conn-bind-limit=' + this.state.bindconnlimit);
      }

      if (this.state.opconnlimit != this.state._opconnlimit) {
        cmd.push('--conn-op-limit=' + this.state.opconnlimit);
      }

      if (this.state.concurrbindlimit != this.state._concurrbindlimit) {
        cmd.push('--bind-limit=' + this.state.concurrbindlimit);
      }

      if (this.state.bindtimeout != this.state._bindtimeout) {
        cmd.push('--bind-timeout=' + this.state.bindtimeout);
      }

      if (this.state.bindretrylimit != this.state._bindretrylimit) {
        cmd.push('--bind-attempts=' + this.state.bindretrylimit);
      }

      if (this.state.concurroplimit != this.state._concurroplimit) {
        cmd.push('--op-limit=' + this.state.concurroplimit);
      }

      if (this.state.connlifetime != this.state._connlifetime) {
        cmd.push('--conn-lifetime=' + this.state.connlifetime);
      }

      if (this.state.searchcheckinterval != this.state._searchcheckinterval) {
        cmd.push('--abandon-check-interval=' + this.state.searchcheckinterval);
      }

      if (this.state.hoplimit != this.state._hoplimit) {
        cmd.push('--hop-limit=' + this.state.hoplimit);
      }

      if (this.state.nsbindmechanism != this.state._nsbindmechanism) {
        cmd.push('--bind-mech=' + this.state.nsbindmechanism);
      }

      if (this.state.nsusestarttls != this.state._nsusestarttls) {
        if (this.state.nsusestarttls) {
          cmd.push('--use-starttls=on');
        } else {
          cmd.push('--use-starttls=off');
        }
      }

      if (this.state.nsreferralonscopedsearch != this.state._nsreferralonscopedsearch) {
        if (this.state.nsreferralonscopedsearch) {
          cmd.push('--return-ref=on');
        } else {
          cmd.push('--return-ref=off');
        }
      }

      if (this.state.nsproxiedauthorization != this.state._nsproxiedauthorization) {
        if (this.state.nsproxiedauthorization) {
          cmd.push('--proxied-auth=on');
        } else {
          cmd.push('--proxied-auth=off');
        }
      }

      if (this.state.nschecklocalaci != this.state._nschecklocalaci) {
        if (this.state.nschecklocalaci) {
          cmd.push('--check-aci=on');
        } else {
          cmd.push('--check-aci=off');
        }
      }

      if (cmd.length > 6) {
        // Something changed, perform the update
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["log_cmd"])("saveLink", "Save chaining link config", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          _this9.props.reload(_this9.props.suffix);

          _this9.props.addNotification("success", "Successfully Updated Link Configuration");
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this9.props.reload(_this9.props.suffix);

          _this9.props.addNotification("error", "Failed to update link configuration - ".concat(errMsg.desc));
        });
      }
    }
  }, {
    key: "deleteLink",
    value: function deleteLink() {
      var _this10 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "chaining", "link-delete", this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["log_cmd"])("deleteLink", "Delete database chaining link", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this10.props.loadSuffixTree(true);

        _this10.props.addNotification("success", "Successfully Deleted Database Link");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this10.props.loadSuffixTree(true);

        _this10.props.addNotification("error", "Failed to delete database link - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this11 = this;

      var error = this.state.errObj;
      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 10,
        className: "ds-word-wrap"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"], {
        className: "ds-suffix-header"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Icon"], {
        type: "fa",
        name: "link"
      }), " ", react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, this.props.suffix), " (", react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, this.props.bename), ")", react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh database link",
        onClick: function onClick() {
          return _this11.props.reload(_this11.props.suffix);
        }
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Button"], {
        bsStyle: "danger",
        onClick: this.showDeleteConfirm
      }, "Delete Link"))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Form"], {
        horizontal: true,
        autoComplete: "off",
        className: "ds-margin-top-xlg"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        title: "The LDAP URL for the remote server.  Add additional failure server URLs by separating them with a space. (nsfarmserverurl)"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Remote Server LDAP URL"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
        type: "text",
        id: "nsfarmserverurl",
        className: "ds-input-auto",
        onChange: this.handleChange,
        defaultValue: this.state.nsfarmserverurl
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "The distinguished name (DN) of the entry to authenticate to the remote server. (nsmultiplexorbinddn)"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Remote Server Bind DN"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
        type: "text",
        id: "nsmultiplexorbinddn",
        className: "ds-input-auto",
        onChange: this.handleChange,
        defaultValue: this.state.nsmultiplexorbinddn
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "The password for the authenticating entry. (nsmultiplexorcredentials)"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Bind DN Password"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
        type: "password",
        id: "nsmultiplexorcredentials",
        className: error.nsmultiplexorcredentials || !this.state.linkPwdMatch ? "ds-input-auto-bad" : "ds-input-auto",
        onChange: this.handleChange,
        defaultValue: this.state.nsmultiplexorcredentials
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "Confirm the password for the authenticating entry. (nsmultiplexorcredentials)"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Confirm Password"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
        type: "password",
        id: "nsmultiplexorcredentials_confirm",
        className: error.nsmultiplexorcredentials_confirm || !this.state.linkPwdMatch ? "ds-input-auto-bad" : "ds-input-auto",
        onChange: this.handleChange,
        defaultValue: this.state.nsmultiplexorcredentials_confirm
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "The authentication mechanism.  Simple (user name and password), SASL/DIGEST-MD5, or SASL>GSSAPI. (nsbindmechanism)"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Bind Mechanism"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
        value: this.state.nsbindmechanism,
        className: "btn btn-default dropdown ds-dblink-dropdown",
        onChange: this.handleChange,
        id: "nsbindmechanism"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "Simple"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "SASL/DIGEST-MD5"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "SASL/GSSAPI")))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "Use StartTLS for connections to the remote server. (nsusestarttls)"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Use StartTLS"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        type: "checkbox",
        onChange: this.props.handleChange,
        defaultChecked: this.state.nsusestarttls,
        className: "ds-config-checkbox",
        id: "nsusestarttls"
      })))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_customCollapse_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Form"], {
        horizontal: true,
        className: "ds-margin-top ds-margin-left"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "The size limit of entries returned over a database link (nsslapd-sizelimit)."
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Size Limit"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
        type: "text",
        id: "sizelimit",
        className: "ds-input-auto",
        onChange: this.handleChange,
        defaultValue: this.state.sizelimit
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "The time limit of an operation over a database link (nsslapd-timelimit)."
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Time Limit"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
        type: "text",
        id: "timelimit",
        className: "ds-input-auto",
        onChange: this.handleChange,
        defaultValue: this.state.timelimit
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "The maximum number of TCP connections the database link establishes with the remote server.  (nsbindconnectionslimit)."
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Max TCP Connections"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
        type: "text",
        id: "bindconnlimit",
        className: "ds-input-auto",
        onChange: this.handleChange,
        defaultValue: this.state.bindconnlimit
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "The maximum number of connections allowed over the database link.  (nsoperationconnectionslimit)."
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Max LDAP Connections"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
        type: "text",
        id: "opconnlimit",
        className: "ds-input-auto",
        onChange: this.handleChange,
        defaultValue: this.state.opconnlimit
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "The maximum number of concurrent bind operations per TCP connection. (nsconcurrentbindlimit)."
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Max Binds Per Connection"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
        type: "text",
        id: "concurrbindlimit",
        className: "ds-input-auto",
        onChange: this.handleChange,
        defaultValue: this.state.concurrbindlimit
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "The amount of time before the bind attempt times out. (nsbindtimeout)."
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Bind Timeout"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
        type: "text",
        id: "bindtimeout",
        className: "ds-input-auto",
        onChange: this.handleChange,
        defaultValue: this.state.bindtimeout
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "The number of times the database link tries to bind with the remote server after a connection failure. (nsbindretrylimit)."
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Bind Retry Limit"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
        type: "text",
        id: "bindretrylimit",
        className: "ds-input-auto",
        onChange: this.handleChange,
        defaultValue: this.state.bindretrylimit
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "The maximum number of operations per connections. (nsconcurrentoperationslimit)."
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Max Operations Per Connection"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
        type: "text",
        id: "concurroplimit",
        className: "ds-input-auto",
        onChange: this.handleChange,
        defaultValue: this.state.concurroplimit
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "The life of a database link connection to the remote server in seconds.  0 is unlimited  (nsconnectionlife)."
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Connection Lifetime"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
        type: "text",
        id: "connlifetime",
        className: "ds-input-auto",
        onChange: this.handleChange,
        defaultValue: this.state.connlifetime
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "The number of seconds that pass before the server checks for abandoned operations.  (nsabandonedsearchcheckinterval)."
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Abandoned Op Check Interval"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
        type: "text",
        id: "searchcheckinterval",
        className: "ds-input-auto",
        onChange: this.handleChange,
        defaultValue: this.state.searchcheckinterval
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "The maximum number of times a request can be forwarded from one database link to another.  (nshoplimit)."
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Hop Limit"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
        type: "text",
        id: "hoplimit",
        className: "ds-input-auto",
        onChange: this.handleChange,
        defaultValue: this.state.hoplimit
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "Allow proxied authentication to the remote server. (nsproxiedauthorization)."
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Allow Proxied Authentication"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        type: "checkbox",
        onChange: this.props.handleChange,
        defaultChecked: this.state.nsproxiedauthorization,
        className: "ds-config-checkbox",
        id: "nsproxiedauthorization"
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "Sets whether ACIs are evaluated on the database link as well as the remote data server (nschecklocalaci)."
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Check Local ACIs"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        type: "checkbox",
        onChange: this.props.handleChange,
        defaultChecked: this.state.nschecklocalaci,
        className: "ds-config-checkbox",
        id: "nschecklocalaci"
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "Sets whether referrals are returned by scoped searches (meaning 'one-level' or 'subtree' scoped searches). (nsreferralonscopedsearch)."
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Send Referral On Scoped Search"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        type: "checkbox",
        onChange: this.props.handleChange,
        defaultChecked: this.state.nsreferralonscopedsearch,
        className: "ds-config-checkbox",
        id: "nsreferralonscopedsearch"
      })))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null)), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top-lg"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        onClick: this.saveLink,
        className: "btn btn-primary"
      }, "Save Configuration")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["DoubleConfirmModal"], {
        showModal: this.state.showDeleteConfirm,
        closeHandler: this.closeDeleteConfirm,
        handleChange: this.handleChange,
        actionHandler: this.deleteLink,
        spinning: this.state.modalSpinning,
        item: this.props.suffix,
        checked: this.state.modalChecked,
        mTitle: "Delete Database Link",
        mMsg: "Are you really sure you want to delete this database link?",
        mSpinningMsg: "Deleting Database Linkt ...",
        mBtnName: "Delete Database Link"
      }));
    }
  }]);

  return ChainingConfig;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); //
// Chaining modals
//

var ChainControlsModal =
/*#__PURE__*/
function (_React$Component3) {
  _inherits(ChainControlsModal, _React$Component3);

  function ChainControlsModal() {
    _classCallCheck(this, ChainControlsModal);

    return _possibleConstructorReturn(this, _getPrototypeOf(ChainControlsModal).apply(this, arguments));
  }

  _createClass(ChainControlsModal, [{
    key: "render",
    value: function render() {
      var _this$props = this.props,
          showModal = _this$props.showModal,
          closeHandler = _this$props.closeHandler,
          handleChange = _this$props.handleChange,
          saveHandler = _this$props.saveHandler,
          oidList = _this$props.oidList;
      var oids = oidList.map(function (oid) {
        return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", {
          key: oid,
          value: oid
        }, oid);
      });
      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Modal"].Title, null, "Chaining LDAP Controls")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", {
        className: "ds-config-label",
        htmlFor: "avail-chaining-oid-list",
        title: "A list of LDAP control OIDs to be forwarded through chaining"
      }, "Available LDAP Controls"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
        id: "avail-chaining-oid-list",
        onChange: handleChange,
        className: "ds-width-auto",
        size: "10",
        multiple: true
      }, oids)))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Add & Save New Controls"))));
    }
  }]);

  return ChainControlsModal;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);
var ChainCompsModal =
/*#__PURE__*/
function (_React$Component4) {
  _inherits(ChainCompsModal, _React$Component4);

  function ChainCompsModal() {
    _classCallCheck(this, ChainCompsModal);

    return _possibleConstructorReturn(this, _getPrototypeOf(ChainCompsModal).apply(this, arguments));
  }

  _createClass(ChainCompsModal, [{
    key: "render",
    value: function render() {
      var _this$props2 = this.props,
          showModal = _this$props2.showModal,
          closeHandler = _this$props2.closeHandler,
          handleChange = _this$props2.handleChange,
          saveHandler = _this$props2.saveHandler,
          compList = _this$props2.compList;
      var comps = compList.map(function (comp) {
        return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", {
          key: comp,
          value: comp
        }, comp);
      });
      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Modal"].Title, null, "Chaining Components")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", {
        className: "ds-config-label",
        htmlFor: "avail-chaining-comp-list",
        title: "A list of LDAP control OIDs to be forwarded through chaining"
      }, "Available Components"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
        id: "avail-chaining-comp-list",
        onChange: handleChange,
        className: "ds-width-auto",
        size: "10",
        multiple: true
      }, comps)))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Add & Save New Components"))));
    }
  }]);

  return ChainCompsModal;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Property types and defaults

ChainCompsModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  compList: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array
};
ChainCompsModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["noop"],
  compList: []
};
ChainControlsModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  oidList: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array
};
ChainControlsModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["noop"],
  oidList: []
};
ChainingDatabaseConfig.propTypes = {
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  data: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.object,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func
};
ChainingDatabaseConfig.defaultProps = {
  serverId: "",
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["noop"],
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["noop"],
  data: {},
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.noop
};
ChainingConfig.propTypes = {
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  suffix: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  bename: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  loadSuffixTree: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  data: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.object,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func
};
ChainingConfig.defaultProps = {
  serverId: "",
  suffix: "",
  bename: "",
  loadSuffixTree: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["noop"],
  data: {},
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["noop"],
  enableTree: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["noop"]
};

/***/ }),

/***/ "./src/lib/database/databaseConfig.jsx":
/*!*********************************************!*\
  !*** ./src/lib/database/databaseConfig.jsx ***!
  \*********************************************/
/*! exports provided: GlobalDatabaseConfig */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GlobalDatabaseConfig", function() { return GlobalDatabaseConfig; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _customCollapse_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../customCollapse.jsx */ "./src/lib/customCollapse.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_6__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }








var GlobalDatabaseConfig =
/*#__PURE__*/
function (_React$Component) {
  _inherits(GlobalDatabaseConfig, _React$Component);

  function GlobalDatabaseConfig(props) {
    var _this;

    _classCallCheck(this, GlobalDatabaseConfig);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(GlobalDatabaseConfig).call(this, props));
    _this.state = {
      db_cache_auto: _this.props.data.db_cache_auto,
      import_cache_auto: _this.props.data.import_cache_auto,
      looklimit: _this.props.data.looklimit,
      idscanlimit: _this.props.data.idscanlimit,
      pagelooklimit: _this.props.data.pagelooklimit,
      pagescanlimit: _this.props.data.pagescanlimit,
      rangelooklimit: _this.props.data.rangelooklimit,
      autosize: _this.props.data.autosize,
      autosizesplit: _this.props.data.autosizesplit,
      dbcachesize: _this.props.data.dbcachesize,
      txnlogdir: _this.props.data.txnlogdir,
      dbhomedir: _this.props.data.dbhomedir,
      dblocks: _this.props.data.dblocks,
      chxpoint: _this.props.data.chxpoint,
      compactinterval: _this.props.data.compactinterval,
      importcachesize: _this.props.data.importcachesize,
      importcacheauto: _this.props.data.importcacheauto,
      // These variables store the original value (used for saving config)
      _looklimit: _this.props.data.looklimit,
      _idscanlimit: _this.props.data.idscanlimit,
      _pagelooklimit: _this.props.data.pagelooklimit,
      _pagescanlimit: _this.props.data.pagescanlimit,
      _rangelooklimit: _this.props.data.rangelooklimit,
      _autosize: _this.props.data.autosize,
      _autosizesplit: _this.props.data.autosizesplit,
      _dbcachesize: _this.props.data.dbcachesize,
      _txnlogdir: _this.props.data.txnlogdir,
      _dbhomedir: _this.props.data.dbhomedir,
      _dblocks: _this.props.data.dblocks,
      _chxpoint: _this.props.data.chxpoint,
      _compactinterval: _this.props.data.compactinterval,
      _importcachesize: _this.props.data.importcachesize,
      _importcacheauto: _this.props.data.importcacheauto,
      _db_cache_auto: _this.props.data.db_cache_auto,
      _import_cache_auto: _this.props.data.import_cache_auto
    };
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.select_auto_cache = _this.select_auto_cache.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.select_auto_import_cache = _this.select_auto_import_cache.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.save_db_config = _this.save_db_config.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(GlobalDatabaseConfig, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.props.enableTree();
    }
  }, {
    key: "select_auto_cache",
    value: function select_auto_cache(e) {
      this.setState({
        db_cache_auto: !this.state.db_cache_auto
      }, this.handleChange(e));
    }
  }, {
    key: "select_auto_import_cache",
    value: function select_auto_import_cache(e) {
      this.setState({
        import_cache_auto: !this.state.import_cache_auto
      }, this.handleChange(e));
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      // Generic
      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      this.setState(_defineProperty({}, e.target.id, value));
    }
  }, {
    key: "save_db_config",
    value: function save_db_config() {
      var _this2 = this;

      // Build up the command list
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'backend', 'config', 'set'];
      var requireRestart = false;

      if (this.state._looklimit != this.state.looklimit) {
        cmd.push("--lookthroughlimit=" + this.state.looklimit);
      }

      if (this.state._idscanlimit != this.state.idscanlimit) {
        cmd.push("--idlistscanlimit=" + this.state.idscanlimit);
      }

      if (this.state._pagelooklimit != this.state.pagelooklimit) {
        cmd.push("--pagedlookthroughlimit=" + this.state.pagelooklimit);
      }

      if (this.state._pagescanlimit != this.state.pagescanlimit) {
        cmd.push("--pagedidlistscanlimit=" + this.state.pagescanlimit);
      }

      if (this.state._rangelooklimit != this.state.rangelooklimit) {
        cmd.push("--rangelookthroughlimit=" + this.state.rangelooklimit);
      }

      if (this.state.db_cache_auto) {
        // Auto cache is selected
        if (this.state._db_cache_auto != this.state.db_cache_auto) {
          // We just enabled auto cache,
          if (this.state.autosize == "0") {
            cmd.push("--cache-autosize=10");
          } else {
            cmd.push("--cache-autosize=" + this.state.autosize);
          }

          requireRestart = true;
        } else if (this.state._autosize != this.state.autosize) {
          // Update auto cache settings if it changed
          cmd.push("--cache-autosize=" + this.state.autosize);
          requireRestart = true;
        }
      } else {
        // No auto cache, check if we need to reset the value
        if (this.state._db_cache_auto != this.state.db_cache_auto) {
          // We just disabled auto cache
          cmd.push("--cache-autosize=0");
          requireRestart = true;
        }
      }

      if (this.state._autosizesplit != this.state.autosizesplit) {
        cmd.push("--cache-autosize-split=" + this.state.autosizesplit);
        requireRestart = true;
      }

      if (this.state._dbcachesize != this.state.dbcachesize) {
        cmd.push("--dbcachesize=" + this.state.dbcachesize);
        requireRestart = true;
      }

      if (this.state._txnlogdir != this.state.txnlogdir) {
        cmd.push("--logdirectory=" + this.state.txnlogdir);
        requireRestart = true;
      }

      if (this.state._dbhomedir != this.state.dbhomedir) {
        cmd.push("--db-home-directory=" + this.state.dbhomedir);
        requireRestart = true;
      }

      if (this.state._dblocks != this.state.dblocks) {
        cmd.push("--locks=" + this.state.dblocks);
        requireRestart = true;
      }

      if (this.state._chxpoint != this.state.chxpoint) {
        cmd.push("--checkpoint-interval=" + this.state.chxpoint);
        requireRestart = true;
      }

      if (this.state._compactinterval != this.state.compactinterval) {
        cmd.push("--compactdb-interval=" + this.state.compactinterval);
        requireRestart = true;
      }

      if (this.state.import_cache_auto) {
        // Auto cache is selected
        if (this.state._import_cache_auto != this.state.import_cache_auto) {
          // We just enabled auto cache,
          if (this.state.importcachesize == "0") {
            cmd.push("--import-cache-autosize=-1");
          } else {
            cmd.push("--import-cache-autosize=" + this.state.importcachesize);
          }
        } else if (this.state._importcachesize != this.state.importcachesize) {
          // Update auto cache settings if it changed
          cmd.push("--import-cache-autosize=" + this.state.importcachesize);
        }
      } else {
        // Auto cache is not selected, check if we need to reset the value
        if (this.state._import_cache_auto != this.state.import_cache_auto) {
          // We just disabled auto cache
          cmd.push("--import-cache-autosize=0");
        }
      }

      if (this.state._importcachesize != this.state.importcachesize) {
        cmd.push("--import-cachesize=" + this.state.importcachesize);
      }

      if (cmd.length > 6) {
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("save_db_config", "Applying config change", cmd);
        var msg = "Successfully updated database configuration";

        if (requireRestart) {
          msg = "Successfully updated database configuration.  These " + "changes require the server to be restarted to take effect";
        }

        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          "err": "message"
        }).done(function (content) {
          // Continue with the next mod
          _this2.props.reload();

          _this2.props.addNotification("success", msg);
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this2.props.reload();

          _this2.props.addNotification("error", "Error updating configuration - ".concat(errMsg.desc));
        });
      }
    }
  }, {
    key: "render",
    value: function render() {
      var db_cache_form;
      var import_cache_form;
      var db_auto_checked = false;
      var import_auto_checked = false;

      if (this.state.db_cache_auto) {
        db_cache_form = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          id: "auto-cache-form",
          className: "ds-margin-left"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", {
          htmlFor: "autosize",
          className: "ds-config-label-xlrg",
          title: "Enable database and entry cache auto-tuning using a percentage of the system's current resources (nsslapd-cache-autosize)."
        }, "Memory Percentage"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
          className: "ds-input",
          type: "text",
          id: "autosizee",
          size: "10",
          onChange: this.handleChange,
          value: this.state.autosize
        })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", {
          htmlFor: "autosizesplit",
          className: "ds-config-label-xlrg",
          title: "Sets the percentage of memory that is used for the database cache. The remaining percentage is used for the entry cache (nsslapd-cache-autosize-split)."
        }, "DB Cache Percentage"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
          className: "ds-input",
          type: "text",
          id: "autosizesplit",
          size: "10",
          onChange: this.handleChange,
          value: this.state.autosizesplit
        })));
        db_auto_checked = true;
      } else {
        db_cache_form = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          id: "manual-cache-form",
          className: "ds-margin-left"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", {
          htmlFor: "dbcachesize",
          className: "ds-config-label-xlrg",
          title: "Specifies the database index cache size in bytes (nsslapd-dbcachesize)."
        }, "Database Cache Size"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
          className: "ds-input",
          type: "text",
          id: "dbcachesize",
          size: "10",
          onChange: this.handleChange,
          value: this.state.dbcachesize
        }));
        db_auto_checked = false;
      }

      if (this.state.import_cache_auto) {
        import_cache_form = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          id: "auto-import-cache-form",
          className: "ds-margin-left"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", {
          htmlFor: "importcacheauto",
          className: "ds-config-label-xlrg",
          title: "Enter '-1' to use 50% of available memory, '0' to disable autotuning, or enter the percentage of available memory to use.  Value range -1 through 100, default is '-1' (nsslapd-import-cache-autosize)."
        }, "Import Cache Autosize"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
          className: "ds-input",
          type: "text",
          id: "importcacheauto",
          size: "10",
          onChange: this.handleChange,
          value: this.state.importcacheauto
        }));
        import_auto_checked = true;
      } else {
        import_cache_form = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          id: "manual-import-cache-form",
          className: "ds-margin-left"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", {
          htmlFor: "importcachesize",
          className: "ds-config-label-xlrg",
          title: "The size of the database cache in bytes used in the bulk import process. (nsslapd-import-cachesize)."
        }, "Import Cache Size"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
          className: "ds-input",
          type: "text",
          id: "importcachesize",
          size: "10",
          onChange: this.handleChange,
          value: this.state.importcachesize
        }));
        import_auto_checked = false;
      }

      var spinner = "";

      if (this.state.loading) {
        spinner = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-loading-spinner ds-margin-top ds-center"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading global database configuration ..."), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
          className: "ds-margin-top",
          loading: true,
          size: "md"
        }));
      }

      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        id: "db-global-page"
      }, spinner, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: this.state.loading ? 'ds-fadeout' : 'ds-fadein'
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h3", {
        className: "ds-config-header"
      }, "Global Database Configuration"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        title: "The maximum number of entries that the Directory Server will check when examining candidate entries in response to a search request (nsslapd-lookthrough-limit).",
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 5
      }, "Database Look Though Limit"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "looklimit",
        value: this.state.looklimit,
        onChange: this.handleChange,
        className: "ds-input-auto",
        type: "text"
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        title: "The number of entry IDs that are searched during a search operation (nsslapd-idlistscanlimit).",
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 5
      }, "ID List Scan Limit"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "idscanlimit",
        value: this.state.idscanlimit,
        onChange: this.handleChange,
        className: "ds-input-auto",
        type: "text"
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        title: "The maximum number of entries that the Directory Server will check when examining candidate entries for a search which uses the simple paged results control (nsslapd-pagedlookthroughlimit).",
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 5
      }, "Paged Search Look Through Limit"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "pagelooklimit",
        value: this.state.pagelooklimit,
        onChange: this.handleChange,
        className: "ds-input-auto",
        type: "text"
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        title: "The number of entry IDs that are searched, specifically, for a search operation using the simple paged results control (nsslapd-pagedidlistscanlimit).",
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 5
      }, "Paged Search ID List Scan Limit"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "pagescanlimit",
        value: this.state.pagescanlimit,
        onChange: this.handleChange,
        className: "ds-input-auto",
        type: "text"
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        title: "The maximum number of entries that the Directory Server will check when examining candidate entries in response to a range search request (nsslapd-rangelookthroughlimit).",
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 5
      }, "Range Search Look Through Limit"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "rangelooklimit",
        value: this.state.rangelooklimit,
        onChange: this.handleChange,
        className: "ds-input-auto",
        type: "text"
      })))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-container"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", {
        className: "ds-sub-header"
      }, "Database Cache Settings"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", {
        htmlFor: "autoCacheChkbox",
        title: "Set Database/Entry to be set automatically"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: "ds-left-indent",
        type: "checkbox",
        id: "autoCacheChkbox",
        checked: db_auto_checked,
        onChange: this.select_auto_cache
      }), " Automatic Cache Tuning"), db_cache_form)), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-divider-lrg"
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", {
        className: "ds-sub-header"
      }, "Import Cache Settings"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", {
        htmlFor: "autoImportCacheChkbox",
        title: "Set Database/Entry to be set automatically"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: "ds-left-indent",
        type: "checkbox",
        id: "autoImportCacheChkbox",
        onChange: this.select_auto_import_cache,
        checked: import_auto_checked
      }), " Automatic Import Cache Tuning"), import_cache_form))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_customCollapse_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-left"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top",
        title: "Database Transaction Log Location (nsslapd-db-logdirectory)."
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 4
      }, "Transaction Logs Directory"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "txnlogdir",
        value: this.state.txnlogdir,
        onChange: this.handleChange,
        className: "ds-input-auto",
        type: "text"
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top",
        title: "Location for database memory mapped files.  You must specify a subdirectory of a tempfs type filesystem (nsslapd-db-home-directory)."
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 4
      }, "Database Home Directory"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "dbhomedir",
        value: this.state.dbhomedir,
        onChange: this.handleChange,
        className: "ds-input-auto",
        type: "text"
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top",
        title: "The number of database locks (nsslapd-db-locks)."
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 4
      }, "Database Locks"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "dblocks",
        value: this.state.dblocks,
        onChange: this.handleChange,
        className: "ds-input-auto",
        type: "text"
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top",
        title: "Amount of time in seconds after which the Directory Server sends a checkpoint entry to the database transaction log (nsslapd-db-checkpoint-interval)."
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 4
      }, "Database Checkpoint Interval"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "chxpoint",
        value: this.state.chxpoint,
        onChange: this.handleChange,
        className: "ds-input-auto",
        type: "text"
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top",
        title: "The interval in seconds when the database is compacted (nsslapd-db-compactdb-interval)."
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 4
      }, "Database Compact Interval"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "compactinterval",
        value: this.state.compactinterval,
        onChange: this.handleChange,
        className: "ds-input-auto",
        type: "text"
      }))))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top-lg"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "btn btn-primary save-button",
        onClick: this.save_db_config
      }, "Save Configuration"))));
    }
  }]);

  return GlobalDatabaseConfig;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Property types and defaults

GlobalDatabaseConfig.propTypes = {
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,
  data: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.object,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func
};
GlobalDatabaseConfig.defaultProps = {
  serverId: "",
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"],
  data: {},
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"],
  enableTree: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"]
};

/***/ }),

/***/ "./src/lib/database/databaseModal.jsx":
/*!********************************************!*\
  !*** ./src/lib/database/databaseModal.jsx ***!
  \********************************************/
/*! exports provided: ReindexModal, ImportModal, ExportModal, CreateSubSuffixModal, CreateLinkModal */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReindexModal", function() { return ReindexModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ImportModal", function() { return ImportModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExportModal", function() { return ExportModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateSubSuffixModal", function() { return CreateSubSuffixModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateLinkModal", function() { return CreateLinkModal; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _databaseTables_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./databaseTables.jsx */ "./src/lib/database/databaseTables.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_4__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }







var CreateLinkModal =
/*#__PURE__*/
function (_React$Component) {
  _inherits(CreateLinkModal, _React$Component);

  function CreateLinkModal() {
    _classCallCheck(this, CreateLinkModal);

    return _possibleConstructorReturn(this, _getPrototypeOf(CreateLinkModal).apply(this, arguments));
  }

  _createClass(CreateLinkModal, [{
    key: "render",
    value: function render() {
      var _this$props = this.props,
          showModal = _this$props.showModal,
          closeHandler = _this$props.closeHandler,
          handleChange = _this$props.handleChange,
          saveHandler = _this$props.saveHandler,
          suffix = _this$props.suffix,
          pwdMatch = _this$props.pwdMatch,
          error = _this$props.error;
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Create Database Link")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", {
        htmlFor: "createLinkSuffix",
        className: "ds-config-label",
        title: "The RDN of the link suffix"
      }, "Link Sub-Suffix"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: error.createLinkSuffix ? "ds-input-bad ds-input-right" : "ds-input ds-input-right",
        onChange: handleChange,
        type: "text",
        id: "createLinkSuffix",
        size: "12"
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("font", {
        color: "blue"
      }, " ,", suffix))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", {
        htmlFor: "createLinkName",
        className: "ds-config-label",
        title: "A name for the backend chaining database link"
      }, "Link Database Name"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        onChange: handleChange,
        className: error.createLinkName ? "ds-input-bad" : "ds-input",
        type: "text",
        id: "createLinkName",
        size: "45"
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", {
        htmlFor: "createNsfarmserverurl",
        className: "ds-config-label",
        title: "The LDAP URL for the remote server.  Add additional failover LDAP URLs separated by a space. (nsfarmserverurl)"
      }, "Remote Server URL(s)"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: error.createNsfarmserverurl ? "ds-input-bad" : "ds-input",
        onChange: handleChange,
        type: "text",
        id: "createNsfarmserverurl",
        size: "45"
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "checkbox",
        onChange: handleChange,
        className: "ds-left-indent ds-config-checkbox",
        id: "createUseStartTLS"
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", {
        htmlFor: "createUseStartTLS",
        className: "ds-label",
        title: "Use StartTLS for the remote server LDAP URL"
      }, " Use StartTLS")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", {
        htmlFor: "createNsmultiplexorbinddn",
        className: "ds-config-label",
        title: "Bind DN used to authenticate against the remote server (nsmultiplexorbinddn)."
      }, "Remote Server Bind DN"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: error.createNsmultiplexorbinddn ? "ds-input-bad" : "ds-input",
        type: "text",
        onChange: handleChange,
        placeholder: "Bind DN",
        id: "createNsmultiplexorbinddn",
        size: "45"
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", {
        htmlFor: "createNsmultiplexorcredentials",
        className: "ds-config-label",
        title: "Replication Bind DN (nsDS5ReplicaCredentials)."
      }, "Bind DN Credentials"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: error.createNsmultiplexorcredentials ? "ds-input-bad" : "ds-input",
        type: "password",
        onChange: handleChange,
        placeholder: "Enter password",
        id: "createNsmultiplexorcredentials",
        size: "45"
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", {
        htmlFor: "createNsmultiplexorcredentialsConfirm",
        className: "ds-config-label",
        title: "Confirm password"
      }, "Confirm Password"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: error.createNsmultiplexorcredentialsConfirm || !pwdMatch ? "ds-input-bad" : "ds-input",
        type: "password",
        onChange: handleChange,
        placeholder: "Confirm password",
        id: "createNsmultiplexorcredentialsConfirm",
        size: "45"
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", {
        htmlFor: "createNsbindmechanism",
        className: "ds-config-label",
        title: "The bind method for contacting the remote server  (nsbindmechanism)."
      }, "Bind Method"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
        className: "btn btn-default dropdown ds-dblink-dropdown",
        onChange: handleChange,
        id: "createNsbindmechanism"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "Simple"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "SASL/DIGEST-MD5"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "SASL/GSSAPI"))))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Create Database Link"))));
    }
  }]);

  return CreateLinkModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var CreateSubSuffixModal =
/*#__PURE__*/
function (_React$Component2) {
  _inherits(CreateSubSuffixModal, _React$Component2);

  function CreateSubSuffixModal() {
    _classCallCheck(this, CreateSubSuffixModal);

    return _possibleConstructorReturn(this, _getPrototypeOf(CreateSubSuffixModal).apply(this, arguments));
  }

  _createClass(CreateSubSuffixModal, [{
    key: "render",
    value: function render() {
      var _this$props2 = this.props,
          showModal = _this$props2.showModal,
          closeHandler = _this$props2.closeHandler,
          handleChange = _this$props2.handleChange,
          handleRadioChange = _this$props2.handleRadioChange,
          saveHandler = _this$props2.saveHandler,
          suffix = _this$props2.suffix,
          noInit = _this$props2.noInit,
          addSuffix = _this$props2.addSuffix,
          addSample = _this$props2.addSample,
          error = _this$props2.error;
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Create Sub Suffix")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        title: "Database suffix, like 'dc=example,dc=com'.  The suffix must be a valid LDAP Distiguished Name (DN)"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Sub-Suffix DN")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        id: "subSuffixValue",
        className: error.subSuffixValue ? "ds-input-bad ds-input-right" : "ds-input-right",
        onChange: handleChange
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 6,
        className: "ds-col-append"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("font", {
        color: "blue"
      }, ",", suffix))))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "The name for the backend database, like 'userroot'.  The name can be a combination of alphanumeric characters, dashes (-), and underscores (_). No other characters are allowed, and the name must be unique across all backends."
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Database Name")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        id: "subSuffixBeName",
        className: error.subSuffixBeName ? "ds-input-bad" : "",
        onChange: handleChange
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-indent"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Radio"], {
        name: "radioGroup",
        id: "noSuffixInit",
        onChange: handleRadioChange,
        checked: noInit,
        inline: true
      }, "Do Not Initialize Database")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-indent"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Radio"], {
        name: "radioGroup",
        id: "createSuffixEntry",
        onChange: handleRadioChange,
        checked: addSuffix,
        inline: true
      }, "Create The Top Sub-Suffix Entry")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-indent"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Radio"], {
        name: "radioGroup",
        id: "createSampleEntries",
        onChange: handleRadioChange,
        checked: addSample,
        inline: true
      }, "Add Sample Entries"))))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Create Sub-Suffix"))));
    }
  }]);

  return CreateSubSuffixModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var ExportModal =
/*#__PURE__*/
function (_React$Component3) {
  _inherits(ExportModal, _React$Component3);

  function ExportModal() {
    _classCallCheck(this, ExportModal);

    return _possibleConstructorReturn(this, _getPrototypeOf(ExportModal).apply(this, arguments));
  }

  _createClass(ExportModal, [{
    key: "render",
    value: function render() {
      var _this$props3 = this.props,
          showModal = _this$props3.showModal,
          closeHandler = _this$props3.closeHandler,
          handleChange = _this$props3.handleChange,
          saveHandler = _this$props3.saveHandler,
          spinning = _this$props3.spinning,
          error = _this$props3.error;
      var spinner = "";

      if (spinning) {
        spinner = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-margin-top-lg ds-modal-spinner"
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Spinner"], {
          loading: true,
          inline: true,
          size: "lg"
        }), "Exporting database... ", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("font", {
          size: "1"
        }, "(You can safely close this window)")));
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Export Database To LDIF File")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        title: "Name of exported LDIF file"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "LDIF File Name")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        id: "ldifLocation",
        className: error.ldifLocation ? "ds-input-bad" : "",
        onChange: handleChange
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top-xlg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 12,
        className: "ds-margin-left"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "includeReplData",
        onChange: handleChange,
        title: "Include the replication metadata needed to restore or initialize another replica."
      }, "Include Replication Data"))), spinner)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Export Database"))));
    }
  }]);

  return ExportModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var ImportModal =
/*#__PURE__*/
function (_React$Component4) {
  _inherits(ImportModal, _React$Component4);

  function ImportModal() {
    _classCallCheck(this, ImportModal);

    return _possibleConstructorReturn(this, _getPrototypeOf(ImportModal).apply(this, arguments));
  }

  _createClass(ImportModal, [{
    key: "render",
    value: function render() {
      var _this$props4 = this.props,
          showModal = _this$props4.showModal,
          closeHandler = _this$props4.closeHandler,
          handleChange = _this$props4.handleChange,
          saveHandler = _this$props4.saveHandler,
          spinning = _this$props4.spinning,
          rows = _this$props4.rows,
          suffix = _this$props4.suffix;
      var suffixRows = [];
      var spinner = "";

      if (spinning) {
        spinner = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-margin-top-lg ds-modal-spinner"
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Spinner"], {
          loading: true,
          inline: true,
          size: "lg"
        }), "Importing LDIF file... ", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("font", {
          size: "1"
        }, "(You can safely close this window)")));
      }

      for (var idx in rows) {
        if (rows[idx].suffix == suffix) {
          suffixRows.push(rows[idx]);
        }
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Initialize Database via LDIF File")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_databaseTables_jsx__WEBPACK_IMPORTED_MODULE_2__["LDIFTable"], {
        rows: suffixRows,
        confirmImport: this.props.showConfirmImport
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        title: "The full path to the LDIF file.  The server must have permissions to read it"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Or, enter LDIF location")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 6
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        id: "ldifLocation",
        onChange: handleChange
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Import"))), spinner)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Close"))));
    }
  }]);

  return ImportModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var ReindexModal =
/*#__PURE__*/
function (_React$Component5) {
  _inherits(ReindexModal, _React$Component5);

  function ReindexModal() {
    _classCallCheck(this, ReindexModal);

    return _possibleConstructorReturn(this, _getPrototypeOf(ReindexModal).apply(this, arguments));
  }

  _createClass(ReindexModal, [{
    key: "render",
    value: function render() {
      var _this$props5 = this.props,
          showModal = _this$props5.showModal,
          closeHandler = _this$props5.closeHandler,
          msg = _this$props5.msg;
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Index Attribute")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-modal-spinner"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Spinner"], {
        loading: true,
        inline: true,
        size: "lg"
      }), " Indexing ", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, msg), " ...", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("font", {
        size: "1"
      }, "(You can safely close this window)"))))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Close"))));
    }
  }]);

  return ReindexModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); // Property types and defaults


CreateLinkModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  suffix: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  pwdMatch: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
  error: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object
};
CreateLinkModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  suffix: "",
  pwdMatch: false,
  error: {}
};
CreateSubSuffixModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  suffix: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  error: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object
};
CreateSubSuffixModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  suffix: "",
  error: {}
};
ExportModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  error: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool
};
ExportModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  error: {},
  spinning: false
};
ImportModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
  showConfirmImport: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  suffix: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string
};
ImportModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  spinning: false,
  showConfirmImport: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  rows: [],
  suffix: ""
};
ReindexModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  msg: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string
};
ReindexModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  msg: ""
};


/***/ }),

/***/ "./src/lib/database/databaseTables.jsx":
/*!*********************************************!*\
  !*** ./src/lib/database/databaseTables.jsx ***!
  \*********************************************/
/*! exports provided: ReferralTable, IndexTable, EncryptedAttrTable, LDIFTable, LDIFManageTable, BackupTable */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReferralTable", function() { return ReferralTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IndexTable", function() { return IndexTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EncryptedAttrTable", function() { return EncryptedAttrTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LDIFTable", function() { return LDIFTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LDIFManageTable", function() { return LDIFManageTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BackupTable", function() { return BackupTable; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dsTable.jsx */ "./src/lib/dsTable.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_4__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }







var ReferralTable =
/*#__PURE__*/
function (_React$Component) {
  _inherits(ReferralTable, _React$Component);

  function ReferralTable(props) {
    var _this;

    _classCallCheck(this, ReferralTable);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(ReferralTable).call(this, props));
    _this.state = {
      rowKey: "name",
      columns: [{
        property: "name",
        header: {
          label: "Referral",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          label: "Actions",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [function (value, _ref) {
            var rowData = _ref.rowData;
            return [react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.name[0]
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
              bsStyle: "primary",
              onClick: function onClick() {
                _this.props.loadModalHandler(rowData);
              }
            }, "Delete Referral"))];
          }]
        }
      }]
    };
    _this.getColumns = _this.getColumns.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.getSingleColumn = _this.getSingleColumn.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(ReferralTable, [{
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "Referrals",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      var refTable;

      if (this.props.rows.length == 0) {
        refTable = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No referrals"
          }]
        });
      } else {
        refTable = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getColumns,
          rowKey: this.state.rowKey,
          rows: this.props.rows,
          disableLoadingSpinner: true
        });
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, refTable);
    }
  }]);

  return ReferralTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var IndexTable =
/*#__PURE__*/
function (_React$Component2) {
  _inherits(IndexTable, _React$Component2);

  function IndexTable(props) {
    var _this2;

    _classCallCheck(this, IndexTable);

    _this2 = _possibleConstructorReturn(this, _getPrototypeOf(IndexTable).call(this, props));
    _this2.state = {
      searchField: "Indexes",
      fieldsToSearch: ["name"],
      rowKey: "name",
      columns: [{
        property: "name",
        header: {
          label: "Attribute",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "types",
        header: {
          label: "Index Types",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "matchingrules",
        header: {
          label: "Matching Rules",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }]
    };

    if (_this2.props.editable) {
      _this2.state.columns.push({
        property: "actions",
        header: {
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [function (value, _ref2) {
            var rowData = _ref2.rowData;
            return [react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.name[0]
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.name[0],
              className: "ds-action-button",
              bsStyle: "primary",
              title: "Actions"
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this2.props.editIndex(rowData);
              }
            }, "Edit Index"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this2.props.reindexIndex(rowData);
              }
            }, "Reindex Index"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "3",
              onClick: function onClick() {
                _this2.props.deleteIndex(rowData);
              }
            }, "Delete Index")))];
          }]
        }
      });
    }

    _this2.getColumns = _this2.getColumns.bind(_assertThisInitialized(_assertThisInitialized(_this2)));
    return _this2;
  } // Constructor


  _createClass(IndexTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
        getColumns: this.getColumns,
        fieldsToSearch: this.state.fieldsToSearch,
        toolBarSearchField: this.state.searchField,
        rowKey: this.state.rowKey,
        rows: this.props.rows,
        disableLoadingSpinner: true,
        toolBarPagination: [6, 12, 24, 48, 96],
        toolBarPaginationPerPage: 6
      }));
    }
  }]);

  return IndexTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var EncryptedAttrTable =
/*#__PURE__*/
function (_React$Component3) {
  _inherits(EncryptedAttrTable, _React$Component3);

  function EncryptedAttrTable(props) {
    var _this3;

    _classCallCheck(this, EncryptedAttrTable);

    _this3 = _possibleConstructorReturn(this, _getPrototypeOf(EncryptedAttrTable).call(this, props));
    _this3.state = {
      rowKey: "name",
      columns: [{
        property: "name",
        header: {
          label: "Encrypted Attribute",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          label: "Actions",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [function (value, _ref3) {
            var rowData = _ref3.rowData;
            return [react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.name[0]
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
              bsStyle: "primary",
              onClick: function onClick() {
                _this3.props.loadModalHandler(rowData);
              }
            }, "Delete Attribute"))];
          }]
        }
      }]
    };
    _this3.getColumns = _this3.getColumns.bind(_assertThisInitialized(_assertThisInitialized(_this3)));
    _this3.getSingleColumn = _this3.getSingleColumn.bind(_assertThisInitialized(_assertThisInitialized(_this3)));
    return _this3;
  }

  _createClass(EncryptedAttrTable, [{
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "Encrypted Attributes",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      var attrTable;

      if (this.props.rows.length == 0) {
        attrTable = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No encrypted attributes"
          }]
        });
      } else {
        attrTable = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getColumns,
          rowKey: this.state.rowKey,
          rows: this.props.rows,
          disableLoadingSpinner: true
        });
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, attrTable);
    }
  }]);

  return EncryptedAttrTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var LDIFTable =
/*#__PURE__*/
function (_React$Component4) {
  _inherits(LDIFTable, _React$Component4);

  function LDIFTable(props) {
    var _this4;

    _classCallCheck(this, LDIFTable);

    _this4 = _possibleConstructorReturn(this, _getPrototypeOf(LDIFTable).call(this, props));
    _this4.state = {
      rowKey: "name",
      columns: [{
        property: "name",
        header: {
          label: "LDIF File",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "date",
        header: {
          label: "Creation Date",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "size",
        header: {
          label: "Size",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [function (value, _ref4) {
            var rowData = _ref4.rowData;
            return [react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.name[0]
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
              bsStyle: "primary",
              onClick: function onClick() {
                _this4.props.confirmImport(rowData);
              }
            }, "Import"))];
          }]
        }
      }]
    };
    _this4.getColumns = _this4.getColumns.bind(_assertThisInitialized(_assertThisInitialized(_this4)));
    _this4.getSingleColumn = _this4.getSingleColumn.bind(_assertThisInitialized(_assertThisInitialized(_this4)));
    return _this4;
  }

  _createClass(LDIFTable, [{
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "LDIF Files",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      var LDIFTable;

      if (this.props.rows.length == 0) {
        LDIFTable = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No LDIF files"
          }]
        });
      } else {
        LDIFTable = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          noSearchBar: true,
          getColumns: this.getColumns,
          rowKey: this.state.rowKey,
          rows: this.props.rows,
          toolBarPagination: [6, 12, 24, 48, 96],
          toolBarPaginationPerPage: 6
        });
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, LDIFTable);
    }
  }]);

  return LDIFTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var LDIFManageTable =
/*#__PURE__*/
function (_React$Component5) {
  _inherits(LDIFManageTable, _React$Component5);

  function LDIFManageTable(props) {
    var _this5;

    _classCallCheck(this, LDIFManageTable);

    _this5 = _possibleConstructorReturn(this, _getPrototypeOf(LDIFManageTable).call(this, props));
    _this5.state = {
      rowKey: "name",
      columns: [{
        property: "name",
        header: {
          label: "LDIF File",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "suffix",
        header: {
          label: "Suffix",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "date",
        header: {
          label: "Creation Date",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "size",
        header: {
          label: "Size",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [function (value, _ref5) {
            var rowData = _ref5.rowData;
            return [react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.name[0]
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.name[0],
              className: "ds-action-button",
              bsStyle: "primary",
              title: "Actions"
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this5.props.confirmImport(rowData);
              }
            }, "Import LDIF File"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "3",
              onClick: function onClick() {
                _this5.props.confirmDelete(rowData);
              }
            }, "Delete LDIF File")))];
          }]
        }
      }]
    };
    _this5.getColumns = _this5.getColumns.bind(_assertThisInitialized(_assertThisInitialized(_this5)));
    _this5.getSingleColumn = _this5.getSingleColumn.bind(_assertThisInitialized(_assertThisInitialized(_this5)));
    return _this5;
  } // Constructor


  _createClass(LDIFManageTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "LDIF Files",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "render",
    value: function render() {
      var LDIFTable;

      if (this.props.rows.length == 0) {
        LDIFTable = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No LDIF files"
          }]
        });
      } else {
        LDIFTable = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          noSearchBar: true,
          getColumns: this.getColumns,
          rowKey: this.state.rowKey,
          rows: this.props.rows,
          toolBarPagination: [6, 12, 24, 48, 96],
          toolBarPaginationPerPage: 6
        });
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, LDIFTable);
    }
  }]);

  return LDIFManageTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var BackupTable =
/*#__PURE__*/
function (_React$Component6) {
  _inherits(BackupTable, _React$Component6);

  function BackupTable(props) {
    var _this6;

    _classCallCheck(this, BackupTable);

    _this6 = _possibleConstructorReturn(this, _getPrototypeOf(BackupTable).call(this, props));
    _this6.state = {
      rowKey: "name",
      columns: [{
        property: "name",
        header: {
          label: "Backup",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "date",
        header: {
          label: "Creation Date",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "size",
        header: {
          label: "Size",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [function (value, _ref6) {
            var rowData = _ref6.rowData;
            return [react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.name[0]
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.name[0],
              className: "ds-action-button",
              bsStyle: "primary",
              title: "Actions"
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this6.props.confirmRestore(rowData);
              }
            }, "Restore Backup"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "3",
              onClick: function onClick() {
                _this6.props.confirmDelete(rowData);
              }
            }, "Delete Backup")))];
          }]
        }
      }]
    };
    _this6.getColumns = _this6.getColumns.bind(_assertThisInitialized(_assertThisInitialized(_this6)));
    _this6.getSingleColumn = _this6.getSingleColumn.bind(_assertThisInitialized(_assertThisInitialized(_this6)));
    return _this6;
  } // Constructor


  _createClass(BackupTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "Backup",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "render",
    value: function render() {
      var backupTable;

      if (this.props.rows.length == 0) {
        backupTable = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No Backups"
          }]
        });
      } else {
        backupTable = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          noSearchBar: true,
          getColumns: this.getColumns,
          rowKey: this.state.rowKey,
          rows: this.props.rows,
          toolBarPagination: [6, 12, 24, 48, 96],
          toolBarPaginationPerPage: 6
        });
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, backupTable);
    }
  }]);

  return BackupTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); // Property types and defaults


BackupTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  confirmRestore: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  confirmDelete: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
BackupTable.defaultProps = {
  rows: [],
  confirmRestore: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  confirmDelete: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
LDIFTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  confirmImport: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
LDIFTable.defaultProps = {
  rows: [],
  confirmImport: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
LDIFManageTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  confirmImport: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  confirmDelete: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
LDIFManageTable.defaultProps = {
  rows: [],
  confirmImport: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  confirmDelete: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
ReferralTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  loadModalHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
ReferralTable.defaultProps = {
  rows: [],
  loadModalHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
IndexTable.propTypes = {
  editable: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  editIndex: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  reindexIndex: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  deleteIndex: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
IndexTable.defaultProps = {
  editable: false,
  rows: [],
  editIndex: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  reindexIndex: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  deleteIndex: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
EncryptedAttrTable.propTypes = {
  loadModalHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array
};
EncryptedAttrTable.defaultProps = {
  loadModalHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  rows: []
};


/***/ }),

/***/ "./src/lib/database/indexes.jsx":
/*!**************************************!*\
  !*** ./src/lib/database/indexes.jsx ***!
  \**************************************/
/*! exports provided: SuffixIndexes */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SuffixIndexes", function() { return SuffixIndexes; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./databaseTables.jsx */ "./src/lib/database/databaseTables.jsx");
/* harmony import */ var _databaseModal_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./databaseModal.jsx */ "./src/lib/database/databaseModal.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_9__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }











var SuffixIndexes =
/*#__PURE__*/
function (_React$Component) {
  _inherits(SuffixIndexes, _React$Component);

  function SuffixIndexes(props) {
    var _this;

    _classCallCheck(this, SuffixIndexes);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(SuffixIndexes).call(this, props));
    _this.state = {
      // indexes
      showIndexModal: false,
      showEditIndexModal: false,
      showReindexModal: false,
      reindexMsg: "",
      editIndexName: "",
      types: [],
      attributes: [],
      matchingRules: [],
      mrs: [],
      _mrs: [],
      showConfirmReindex: false,
      reindexAttrName: "",
      showConfirmDeleteIndex: false,
      deleteAttrName: "",
      // Add indexes
      addIndexName: [],
      addIndexTypeEq: false,
      addIndexTypePres: false,
      addIndexTypeSub: false,
      addIndexTypeApprox: false,
      reindexOnAdd: false,
      // Edit indexes
      errObj: {},
      _isMounted: true
    };
    _this.loadIndexes = _this.loadIndexes.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showIndexModal = _this.showIndexModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeIndexModal = _this.closeIndexModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleTypeaheadChange = _this.handleTypeaheadChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.saveIndex = _this.saveIndex.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.saveEditIndex = _this.saveEditIndex.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.reindexIndex = _this.reindexIndex.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.deleteIndex = _this.deleteIndex.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showEditIndexModal = _this.showEditIndexModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeEditIndexModal = _this.closeEditIndexModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showConfirmReindex = _this.showConfirmReindex.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmReindex = _this.closeConfirmReindex.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showConfirmDeleteIndex = _this.showConfirmDeleteIndex.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmDeleteIndex = _this.closeConfirmDeleteIndex.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeReindexModal = _this.closeReindexModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(SuffixIndexes, [{
    key: "componentWillMount",
    value: function componentWillMount() {
      this.loadIndexes();
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      this.state._isMounted = false;
    }
  }, {
    key: "loadIndexes",
    value: function loadIndexes() {
      var _this2 = this;

      // Get all the attributes and matching rules now
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "matchingrules", "list"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("loadIndexes (suffix config)", "Get matching rules", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var mrContent = JSON.parse(content);
        var mrs = [];

        for (var i = 0; i < mrContent['items'].length; i++) {
          if (mrContent['items'][i].name != "") {
            mrs.push(mrContent['items'][i].name);
          }
        }

        var idx_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + _this2.props.serverId + ".socket", "backend", "index", "list", "--just-names", _this2.props.suffix];
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("loadIndexes (suffix config)", "Get current index list", idx_cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(idx_cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          var idxContent = JSON.parse(content);
          var indexList = idxContent['items'];
          var attr_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + _this2.props.serverId + ".socket", "schema", "attributetypes", "list"];
          Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("loadIndexes (suffix config)", "Get attrs", attr_cmd);
          cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(attr_cmd, {
            superuser: true,
            err: "message"
          }).done(function (content) {
            var attrContent = JSON.parse(content);
            var attrs = [];
            var _iteratorNormalCompletion = true;
            var _didIteratorError = false;
            var _iteratorError = undefined;

            try {
              for (var _iterator = attrContent['items'][Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
                var _content = _step.value;

                if (indexList.indexOf(_content.name) == -1) {
                  // Attribute is not a current index, add it to the list
                  // of available attributes to index
                  attrs.push(_content.name);
                }
              }
            } catch (err) {
              _didIteratorError = true;
              _iteratorError = err;
            } finally {
              try {
                if (!_iteratorNormalCompletion && _iterator.return != null) {
                  _iterator.return();
                }
              } finally {
                if (_didIteratorError) {
                  throw _iteratorError;
                }
              }
            }

            if (_this2.state._isMounted) {
              _this2.setState({
                matchingRules: mrs,
                attributes: attrs
              });
            }
          }).fail(function (err) {
            var errMsg = JSON.parse(err);

            _this2.props.addNotification("error", "Failed to get attributes - ".concat(errMsg.desc));
          });
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.props.addNotification("error", "Failed to get matching rules - ".concat(errMsg.desc));
      });
    } //
    // Index Modal functions
    //

  }, {
    key: "showIndexModal",
    value: function showIndexModal() {
      this.setState({
        showIndexModal: true,
        errObj: {},
        mrs: [],
        addIndexName: [],
        addIndexTypeEq: "",
        addIndexTypeSub: "",
        addIndexTypePres: "",
        addIndexTypeApprox: ""
      });
    }
  }, {
    key: "closeIndexModal",
    value: function closeIndexModal() {
      this.setState({
        showIndexModal: false
      });
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      var _this$setState;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var valueErr = false;
      var errObj = this.state.errObj;

      if (value == "") {
        valueErr = true;
      }

      errObj[e.target.id] = valueErr;
      this.setState((_this$setState = {}, _defineProperty(_this$setState, e.target.id, value), _defineProperty(_this$setState, "errObj", errObj), _this$setState));
    }
  }, {
    key: "saveIndex",
    value: function saveIndex() {
      var _this3 = this;

      // Validate the form
      if (!this.state.addIndexTypeEq && !this.state.addIndexTypePres && !this.state.addIndexTypeSub && !this.state.addIndexTypeApprox) {
        this.props.addNotification("warning", "You must select at least one 'Index Type'");
        return;
      }

      if (this.state.addIndexName == "" || this.state.addIndexName.length == 0) {
        this.props.addNotification("warning", "You must select an attribute to index");
        return;
      }

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "index", "add", "--attr=" + this.state.addIndexName[0].id, this.props.suffix];

      if (this.state.addIndexTypeEq) {
        cmd.push('--index-type=eq');
      }

      if (this.state.addIndexTypePres) {
        cmd.push('--index-type=pres');
      }

      if (this.state.addIndexTypeSub) {
        cmd.push('--index-type=sub');
      }

      if (this.state.addIndexTypeApprox) {
        cmd.push('--index-type=approx');
      }

      for (var i = 0; i < this.state.mrs.length; i++) {
        cmd.push('--matching-rule=' + this.state.mrs[i].id);
      }

      if (this.state.reindexOnAdd) {
        cmd.push('--reindex');
      }

      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("saveIndex", "Create new index", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        // this.loadIndexes();
        _this3.props.reload(_this3.props.suffix);

        _this3.closeIndexModal();

        if (_this3.state.reindexOnAdd) {
          _this3.reindexAttr(_this3.state.addIndexName[0].id);
        }

        _this3.props.addNotification("success", "Successfully created new index");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.reload(_this3.props.suffix);

        _this3.closeIndexModal();

        _this3.props.addNotification("error", "Error creating index - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "showEditIndexModal",
    value: function showEditIndexModal(item) {
      // Set the state types and matching Rules
      var currentMRS = [];

      if (item.matchingrules !== undefined && item.matchingrules.length > 0 && item.matchingrules[0].length > 0) {
        var parts = item.matchingrules[0].split(",").map(function (item) {
          return item.trim();
        });
        var _iteratorNormalCompletion2 = true;
        var _didIteratorError2 = false;
        var _iteratorError2 = undefined;

        try {
          for (var _iterator2 = parts[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
            var part = _step2.value;
            currentMRS.push({
              id: part,
              label: part
            });
          }
        } catch (err) {
          _didIteratorError2 = true;
          _iteratorError2 = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
              _iterator2.return();
            }
          } finally {
            if (_didIteratorError2) {
              throw _iteratorError2;
            }
          }
        }
      }

      this.setState({
        editIndexName: item.name[0],
        types: item.types,
        mrs: currentMRS,
        _mrs: currentMRS,
        showEditIndexModal: true,
        errObj: {},
        reindexOnAdd: false,
        editIndexTypeEq: item.types[0].includes("eq"),
        editIndexTypeSub: item.types[0].includes("sub"),
        editIndexTypePres: item.types[0].includes("pres"),
        editIndexTypeApprox: item.types[0].includes("approx"),
        _eq: item.types[0].includes("eq"),
        _sub: item.types[0].includes("sub"),
        _pres: item.types[0].includes("pres"),
        _approx: item.types[0].includes("approx")
      });
    }
  }, {
    key: "closeEditIndexModal",
    value: function closeEditIndexModal() {
      this.setState({
        showEditIndexModal: false
      });
    }
  }, {
    key: "handleTypeaheadChange",
    value: function handleTypeaheadChange(values, item) {
      if (item == "matchingRules") {
        this.setState({
          mrs: values
        });
      } else if (item == "indexName") {
        this.setState({
          addIndexName: values
        });
      }
    }
  }, {
    key: "reindexAttr",
    value: function reindexAttr(attr) {
      var _this4 = this;

      var reindex_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "index", "reindex", "--wait", "--attr=" + attr, this.props.suffix]; // Open spinner modal

      var msg = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null, "Indexing attribute:  ", react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, attr), " ...");
      this.setState({
        showReindexModal: true,
        reindexMsg: msg
      });
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("reindexAttr", "index attribute", reindex_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(reindex_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this4.props.addNotification("success", "Attribute (" + attr + ") has successfully been reindexed");

        _this4.setState({
          showReindexModal: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this4.props.addNotification("error", "Error indexing attribute ".concat(attr, " - ").concat(errMsg.desc));
      });
    }
  }, {
    key: "saveEditIndex",
    value: function saveEditIndex() {
      var _this5 = this;

      var origMRS = this.state._mrs;
      var newMRS = this.state.mrs;
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "index", "set", "--attr=" + this.state.editIndexName, this.props.suffix]; // Make sure we have at least one index type

      if (!this.state.editIndexTypeEq && !this.state.editIndexTypeSub && !this.state.editIndexTypePres && !this.state.editIndexTypeApprox) {
        this.props.addNotification("warning", "You must have at least one index type");
        return;
      } // Check if we have to add mrs


      var _iteratorNormalCompletion3 = true;
      var _didIteratorError3 = false;
      var _iteratorError3 = undefined;

      try {
        for (var _iterator3 = newMRS[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
          var newMR = _step3.value;
          var found = false;
          var _iteratorNormalCompletion5 = true;
          var _didIteratorError5 = false;
          var _iteratorError5 = undefined;

          try {
            for (var _iterator5 = origMRS[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) {
              var origMR = _step5.value;

              if (origMR.id == newMR.id) {
                found = true;
                break;
              }
            }
          } catch (err) {
            _didIteratorError5 = true;
            _iteratorError5 = err;
          } finally {
            try {
              if (!_iteratorNormalCompletion5 && _iterator5.return != null) {
                _iterator5.return();
              }
            } finally {
              if (_didIteratorError5) {
                throw _iteratorError5;
              }
            }
          }

          if (!found) {
            cmd.push('--add-mr=' + newMR.id);
          }
        } // Check if we have to remove mrs

      } catch (err) {
        _didIteratorError3 = true;
        _iteratorError3 = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
            _iterator3.return();
          }
        } finally {
          if (_didIteratorError3) {
            throw _iteratorError3;
          }
        }
      }

      var _iteratorNormalCompletion4 = true;
      var _didIteratorError4 = false;
      var _iteratorError4 = undefined;

      try {
        for (var _iterator4 = origMRS[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {
          var _origMR = _step4.value;
          var _found = false;
          var _iteratorNormalCompletion6 = true;
          var _didIteratorError6 = false;
          var _iteratorError6 = undefined;

          try {
            for (var _iterator6 = newMRS[Symbol.iterator](), _step6; !(_iteratorNormalCompletion6 = (_step6 = _iterator6.next()).done); _iteratorNormalCompletion6 = true) {
              var _newMR = _step6.value;

              if (_newMR.id == _origMR.id) {
                console.log("Found mr no need to delete");
                _found = true;
                break;
              }
            }
          } catch (err) {
            _didIteratorError6 = true;
            _iteratorError6 = err;
          } finally {
            try {
              if (!_iteratorNormalCompletion6 && _iterator6.return != null) {
                _iterator6.return();
              }
            } finally {
              if (_didIteratorError6) {
                throw _iteratorError6;
              }
            }
          }

          if (!_found) {
            cmd.push('--del-mr=' + _origMR.id);
          }
        } // Check if we have to add/delete index types

      } catch (err) {
        _didIteratorError4 = true;
        _iteratorError4 = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion4 && _iterator4.return != null) {
            _iterator4.return();
          }
        } finally {
          if (_didIteratorError4) {
            throw _iteratorError4;
          }
        }
      }

      if (this.state.editIndexTypeEq && !this.state._eq) {
        cmd.push('--add-type=eq');
      } else if (!this.state.editIndexTypeEq && this.state._eq) {
        cmd.push('--del-type=eq');
      }

      if (this.state.editIndexTypeSub && !this.state._sub) {
        cmd.push('--add-type=sub');
      } else if (!this.state.editIndexTypeSub && this.state._sub) {
        cmd.push('--del-type=sub');
      }

      if (this.state.editIndexTypePres && !this.state._pres) {
        cmd.push('--add-type=pres');
      } else if (!this.state.editIndexTypePres && this.state._pres) {
        cmd.push('--del-type=pres');
      }

      if (this.state.editIndexTypeApprox && !this.state._approx) {
        cmd.push('--add-type=approx');
      } else if (!this.state.editIndexTypeApprox && this.state._approx) {
        cmd.push('--del-type=approx');
      }

      if (cmd.length > 8) {
        // We have changes, do it
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("saveEditIndex", "Edit index", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          _this5.props.reload(_this5.props.suffix);

          _this5.closeEditIndexModal();

          _this5.props.addNotification("success", "Successfully edited index");

          if (_this5.state.reindexOnAdd) {
            _this5.reindexAttr(_this5.state.editIndexName);
          }
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this5.props.reload(_this5.props.suffix);

          _this5.closeEditIndexModal();

          _this5.props.addNotification("error", "Error editing index - ".concat(errMsg.desc));
        });
      }
    }
  }, {
    key: "showConfirmReindex",
    value: function showConfirmReindex(item) {
      this.setState({
        reindexAttrName: item.name,
        showConfirmReindex: true
      });
    }
  }, {
    key: "closeConfirmReindex",
    value: function closeConfirmReindex(item) {
      this.setState({
        reindexAttrName: "",
        showConfirmReindex: false
      });
    }
  }, {
    key: "showConfirmDeleteIndex",
    value: function showConfirmDeleteIndex(item) {
      this.setState({
        deleteAttrName: item.name,
        showConfirmDeleteIndex: true
      });
    }
  }, {
    key: "closeConfirmDeleteIndex",
    value: function closeConfirmDeleteIndex(item) {
      this.setState({
        deleteAttrName: "",
        showConfirmDeleteIndex: false
      });
    }
  }, {
    key: "reindexIndex",
    value: function reindexIndex(attr) {
      this.reindexAttr(attr);
    }
  }, {
    key: "closeReindexModal",
    value: function closeReindexModal() {
      this.setState({
        showReindexModal: false
      });
    }
  }, {
    key: "deleteIndex",
    value: function deleteIndex(idxName) {
      var _this6 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "index", "delete", "--attr=" + idxName, this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("deleteIndex", "deleteEdit index", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this6.props.reload(_this6.props.suffix);

        _this6.props.addNotification("success", "Successfully deleted index: " + idxName);
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this6.props.reload(_this6.props.suffix);

        _this6.props.addNotification("error", "Error deleting index - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var reindex_attr = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, this.state.reindexAttrName);
      var delete_attr = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, this.state.deleteAttrName);
      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Nav"], {
        bsClass: "nav nav-tabs nav-tabs-pf"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["NavItem"], {
        className: "ds-nav-med",
        eventKey: 1
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Database Indexes'
        }
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["NavItem"], {
        className: "ds-nav-med",
        eventKey: 2
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'System Indexes'
        }
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["TabContent"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["TabPane"], {
        eventKey: 1
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-indent"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__["IndexTable"], {
        editable: true,
        rows: this.props.indexRows,
        editIndex: this.showEditIndexModal,
        reindexIndex: this.showConfirmReindex,
        deleteIndex: this.showConfirmDeleteIndex
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "btn btn-primary ds-margin-top",
        type: "button",
        onClick: this.showIndexModal
      }, "Add Index"))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["TabPane"], {
        eventKey: 2
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-indent"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__["IndexTable"], {
        rows: this.props.systemIndexRows
      })))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(AddIndexModal, {
        showModal: this.state.showIndexModal,
        closeHandler: this.closeIndexModal,
        handleChange: this.handleChange,
        saveHandler: this.saveIndex,
        matchingRules: this.state.matchingRules,
        attributes: this.state.attributes,
        mrs: this.state.mrs,
        attributeName: this.state.addIndexName,
        handleTypeaheadChange: this.handleTypeaheadChange
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(EditIndexModal, {
        showModal: this.state.showEditIndexModal,
        closeHandler: this.closeEditIndexModal,
        handleChange: this.handleChange,
        saveHandler: this.saveEditIndex,
        types: this.state.types,
        mrs: this.state.mrs,
        matchingRules: this.state.matchingRules,
        indexName: this.state.editIndexName,
        handleTypeaheadChange: this.handleTypeaheadChange
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showConfirmReindex,
        closeHandler: this.closeConfirmReindex,
        actionFunc: this.reindexIndex,
        actionParam: this.state.reindexAttrName,
        msg: "Are you sure you want to reindex this attribute?",
        msgContent: reindex_attr
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showConfirmDeleteIndex,
        closeHandler: this.closeConfirmDeleteIndex,
        actionFunc: this.deleteIndex,
        actionParam: this.state.deleteAttrName,
        msg: "Are you sure you want to delete this attribute index?",
        msgContent: delete_attr
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_databaseModal_jsx__WEBPACK_IMPORTED_MODULE_4__["ReindexModal"], {
        showModal: this.state.showReindexModal,
        closeHandler: this.closeReindexModal,
        msg: this.state.reindexMsg
      }));
    }
  }]);

  return SuffixIndexes;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

var AddIndexModal =
/*#__PURE__*/
function (_React$Component2) {
  _inherits(AddIndexModal, _React$Component2);

  function AddIndexModal() {
    _classCallCheck(this, AddIndexModal);

    return _possibleConstructorReturn(this, _getPrototypeOf(AddIndexModal).apply(this, arguments));
  }

  _createClass(AddIndexModal, [{
    key: "render",
    value: function render() {
      var _this$props = this.props,
          showModal = _this$props.showModal,
          closeHandler = _this$props.closeHandler,
          handleChange = _this$props.handleChange,
          saveHandler = _this$props.saveHandler,
          matchingRules = _this$props.matchingRules,
          attributes = _this$props.attributes,
          mrs = _this$props.mrs,
          handleTypeaheadChange = _this$props.handleTypeaheadChange,
          attributeName = _this$props.attributeName;
      var availMR = [];
      var _iteratorNormalCompletion7 = true;
      var _didIteratorError7 = false;
      var _iteratorError7 = undefined;

      try {
        for (var _iterator7 = matchingRules[Symbol.iterator](), _step7; !(_iteratorNormalCompletion7 = (_step7 = _iterator7.next()).done); _iteratorNormalCompletion7 = true) {
          var mr = _step7.value;
          availMR.push({
            id: mr,
            label: mr
          });
        }
      } catch (err) {
        _didIteratorError7 = true;
        _iteratorError7 = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion7 && _iterator7.return != null) {
            _iterator7.return();
          }
        } finally {
          if (_didIteratorError7) {
            throw _iteratorError7;
          }
        }
      }

      var availAttrs = [];
      var _iteratorNormalCompletion8 = true;
      var _didIteratorError8 = false;
      var _iteratorError8 = undefined;

      try {
        for (var _iterator8 = attributes[Symbol.iterator](), _step8; !(_iteratorNormalCompletion8 = (_step8 = _iterator8.next()).done); _iteratorNormalCompletion8 = true) {
          var attr = _step8.value;
          availAttrs.push({
            id: attr,
            label: attr
          });
        }
      } catch (err) {
        _didIteratorError8 = true;
        _iteratorError8 = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion8 && _iterator8.return != null) {
            _iterator8.return();
          }
        } finally {
          if (_didIteratorError8) {
            throw _iteratorError8;
          }
        }
      }

      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Modal"].Title, null, "Add Database Index")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", {
        className: "ds-config-label",
        htmlFor: "indexAttributeName",
        title: "Select an attribute to index"
      }, "Select An Attribute"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_8__["Typeahead"], {
        id: "indexAttributeName",
        onChange: function onChange(values) {
          handleTypeaheadChange(values, "indexName");
        },
        selected: attributeName,
        maxResults: 1000,
        options: availAttrs,
        placeholder: "Type a attribute name to index..."
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, "Index Types")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-indent"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 5
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
        id: "addIndexTypeEq",
        onChange: handleChange
      }, " Equailty Indexing"))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 5
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
        id: "addIndexTypePres",
        onChange: handleChange
      }, " Presence Indexing"))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 5
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
        id: "addIndexTypeSub",
        onChange: handleChange
      }, " Substring Indexing"))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 5
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
        id: "addIndexTypeApprox",
        onChange: handleChange
      }, " Approximate Indexing")))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        className: "ds-margin-top-lg"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 12,
        title: "List of matching rules separated by a 'space'"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, "Matching Rules")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-indent"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_8__["Typeahead"], {
        multiple: true,
        id: "matchingRules",
        onChange: function onChange(values) {
          handleTypeaheadChange(values, "matchingRules");
        },
        maxResults: 1000,
        selected: mrs,
        options: availMR,
        placeholder: "Type a matching rule name..."
      })))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
        className: "ds-float-right",
        id: "reindexOnAdd",
        onChange: handleChange
      }, "Index attribute after creation"))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Create Index"))));
    }
  }]);

  return AddIndexModal;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

var EditIndexModal =
/*#__PURE__*/
function (_React$Component3) {
  _inherits(EditIndexModal, _React$Component3);

  function EditIndexModal(props) {
    var _this7;

    _classCallCheck(this, EditIndexModal);

    _this7 = _possibleConstructorReturn(this, _getPrototypeOf(EditIndexModal).call(this, props));
    _this7.state = {
      mrs: []
    };
    return _this7;
  }

  _createClass(EditIndexModal, [{
    key: "render",
    value: function render() {
      var _this$props2 = this.props,
          showModal = _this$props2.showModal,
          closeHandler = _this$props2.closeHandler,
          handleChange = _this$props2.handleChange,
          saveHandler = _this$props2.saveHandler,
          indexName = _this$props2.indexName,
          types = _this$props2.types,
          mrs = _this$props2.mrs,
          matchingRules = _this$props2.matchingRules,
          handleTypeaheadChange = _this$props2.handleTypeaheadChange;
      var attrTypes = "";

      if (types != "" && types.length > 0) {
        attrTypes = types[0].split(",").map(function (item) {
          return item.trim();
        });
      }

      var currentMrs = mrs;
      var availMR = [];
      var _iteratorNormalCompletion9 = true;
      var _didIteratorError9 = false;
      var _iteratorError9 = undefined;

      try {
        for (var _iterator9 = matchingRules[Symbol.iterator](), _step9; !(_iteratorNormalCompletion9 = (_step9 = _iterator9.next()).done); _iteratorNormalCompletion9 = true) {
          var mr = _step9.value;
          availMR.push({
            id: mr,
            label: mr
          });
        } // Default settings

      } catch (err) {
        _didIteratorError9 = true;
        _iteratorError9 = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion9 && _iterator9.return != null) {
            _iterator9.return();
          }
        } finally {
          if (_didIteratorError9) {
            throw _iteratorError9;
          }
        }
      }

      var eq = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
        id: "editIndexTypeEq",
        onChange: handleChange
      }, " Equailty Indexing"));
      var pres = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
        id: "editIndexTypePres",
        onChange: handleChange
      }, " Presence Indexing"));
      var sub = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
        id: "editIndexTypeSub",
        onChange: handleChange
      }, " Substring Indexing"));
      var approx = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
        id: "editIndexTypeApprox",
        onChange: handleChange
      }, " Approximate Indexing"));

      if (attrTypes.includes('eq')) {
        eq = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
          id: "editIndexTypeEq",
          onChange: handleChange,
          defaultChecked: true
        }, "Equality Indexing"));
      }

      if (attrTypes.includes('pres')) {
        pres = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
          id: "editIndexTypePres",
          onChange: handleChange,
          defaultChecked: true
        }, "Presence Indexing"));
      }

      if (attrTypes.includes('sub')) {
        sub = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
          id: "editIndexTypeSub",
          onChange: handleChange,
          defaultChecked: true
        }, "Substring Indexing"));
      }

      if (attrTypes.includes('approx')) {
        approx = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
          id: "editIndexTypeApprox",
          onChange: handleChange,
          defaultChecked: true
        }, "Approximate Indexing"));
      }

      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Modal"].Title, null, "Edit Database Index (", indexName, ")")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Icon"], {
        type: "pf",
        style: {
          'marginRight': '15px'
        },
        name: "edit"
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("font", {
        size: "4"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, indexName))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, "Index Types")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-indent"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 9
      }, eq)), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 9
      }, pres)), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 9
      }, sub)), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 9
      }, approx))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        className: "ds-margin-top-lg"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, "Matching Rules")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-indent"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_8__["Typeahead"], {
        multiple: true,
        id: "matchingRulesEdit",
        onChange: function onChange(values) {
          handleTypeaheadChange(values, "matchingRules");
        },
        selected: currentMrs,
        options: availMR,
        placeholder: "Type a matching rule name..."
      })))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
        className: "ds-float-right",
        id: "reindexOnAdd",
        onChange: handleChange
      }, "Reindex Attribute After Saving"))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Save Index"))));
    }
  }]);

  return EditIndexModal;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Property types and defaults


SuffixIndexes.propTypes = {
  systemIndexRows: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.array,
  indexRows: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.array,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.string,
  suffix: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.string,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func
};
SuffixIndexes.defaultProps = {
  systemIndexRows: [],
  indexRows: [],
  serverId: "",
  suffix: "",
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["noop"],
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["noop"]
};
AddIndexModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,
  matchingRules: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.array,
  attributes: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.array,
  mrs: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.array,
  attributeName: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.array,
  handleTypeaheadChange: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func
};
AddIndexModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["noop"],
  matchingRules: [],
  attributes: [],
  mrs: [],
  attributeName: [],
  handleTypeaheadChange: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["noop"]
};
EditIndexModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,
  matchingRules: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.array,
  types: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.array,
  mrs: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.array,
  indexName: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.string,
  handleTypeaheadChange: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func
};
EditIndexModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["noop"],
  matchingRules: [],
  types: [],
  mrs: [],
  indexName: "",
  handleTypeaheadChange: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["noop"]
};

/***/ }),

/***/ "./src/lib/database/referrals.jsx":
/*!****************************************!*\
  !*** ./src/lib/database/referrals.jsx ***!
  \****************************************/
/*! exports provided: SuffixReferrals */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SuffixReferrals", function() { return SuffixReferrals; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./databaseTables.jsx */ "./src/lib/database/databaseTables.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_7__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }









var SuffixReferrals =
/*#__PURE__*/
function (_React$Component) {
  _inherits(SuffixReferrals, _React$Component);

  function SuffixReferrals(props) {
    var _this;

    _classCallCheck(this, SuffixReferrals);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(SuffixReferrals).call(this, props));
    _this.state = {
      showConfirmRefDelete: false,
      showRefModal: false,
      removeRef: "",
      refProtocol: "ldap://",
      refHost: "",
      refPort: "",
      refSuffix: "",
      refFilter: "",
      refScope: "",
      refAttrs: "",
      refValue: "",
      errObj: {}
    }; // Delete referral and confirmation

    _this.showConfirmRefDelete = _this.showConfirmRefDelete.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmRefDelete = _this.closeConfirmRefDelete.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.deleteRef = _this.deleteRef.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.saveRef = _this.saveRef.bind(_assertThisInitialized(_assertThisInitialized(_this))); // Referral modal

    _this.showRefModal = _this.showRefModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeRefModal = _this.closeRefModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleRefChange = _this.handleRefChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.buildRef = _this.buildRef.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(SuffixReferrals, [{
    key: "showConfirmRefDelete",
    value: function showConfirmRefDelete(item) {
      this.setState({
        removeRef: item.name,
        showConfirmRefDelete: true
      });
    }
  }, {
    key: "showRefModal",
    value: function showRefModal() {
      this.setState({
        showRefModal: true,
        errObj: {},
        refValue: ""
      });
    }
  }, {
    key: "closeConfirmRefDelete",
    value: function closeConfirmRefDelete() {
      this.setState({
        showConfirmRefDelete: false
      });
    }
  }, {
    key: "closeRefModal",
    value: function closeRefModal() {
      this.setState({
        showRefModal: false
      });
    }
  }, {
    key: "deleteRef",
    value: function deleteRef() {
      var _this2 = this;

      // take state.removeRef and remove it from ldap
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "suffix", "set", "--del-referral=" + this.state.removeRef, this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("deleteRef", "Delete suffix referral", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this2.props.reload(_this2.props.suffix);

        _this2.props.addNotification("success", "Referral successfully deleted");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.props.reload(_this2.props.suffix);

        _this2.props.addNotification("error", "Failure deleting referral - ".concat(errMsg.desc));
      });
    } // Create referral

  }, {
    key: "saveRef",
    value: function saveRef() {
      var _this3 = this;

      // validate
      var missingArgs = {
        refHost: false,
        refPort: false
      };
      var errors = false;

      if (this.state.refHost == "") {
        this.props.addNotification("warning", "Missing hostname for LDAP URL");
        missingArgs.refHost = true;
        errors = true;
      }

      if (this.state.refPort == "") {
        this.props.addNotification("warning", "Missing port for LDAP URL");
        missingArgs.refPort = true;
        errors = true;
      } else if (!Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["valid_port"])(this.state.refPort)) {
        this.props.addNotification("error", "Invalid port number, please use a number between 1 and 65535");
        missingArgs.refPort = true;
        errors = true;
      }

      if (errors) {
        this.setState({
          errObj: missingArgs
        });
        return;
      } // Add referral


      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "suffix", "set", "--add-referral=" + this.state.refValue, this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("saveRef", "Add referral", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this3.props.reload(_this3.props.suffix);

        _this3.closeRefModal();

        _this3.props.addNotification("success", "Referral successfully created");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.reload(_this3.props.suffix);

        _this3.closeRefModal();

        _this3.props.addNotification("error", "Failure creating referral - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "buildRef",
    value: function buildRef() {
      var previewRef = this.state.refProtocol + this.state.refHost;
      var ref_port = this.state.refPort;
      var ref_suffix = this.state.refSuffix;
      var ref_attrs = this.state.refAttrs;
      var ref_filter = this.state.refFilter;
      var ref_scope = this.state.refScope;

      if (ref_port != "") {
        previewRef += ":" + ref_port;
      }

      if (ref_suffix != "" || ref_attrs != "" || ref_filter != "" || ref_scope != "") {
        previewRef += "/" + encodeURIComponent(ref_suffix);

        if (ref_attrs != "") {
          previewRef += "?" + encodeURIComponent(ref_attrs);
        } else if (ref_filter != "" || ref_scope != "") {
          previewRef += "?";
        }

        if (ref_scope != "") {
          previewRef += "?" + encodeURIComponent(ref_scope);
        } else if (ref_filter != "") {
          previewRef += "?";
        }

        if (ref_filter != "") {
          previewRef += "?" + encodeURIComponent(ref_filter);
        }
      } // Update referral value


      this.setState({
        refValue: previewRef
      });
    }
  }, {
    key: "handleRefChange",
    value: function handleRefChange(e) {
      var _this$setState;

      var value = e.target.value;
      var key = e.target.id;
      var errObj = this.state.errObj;
      var valueErr = false;

      if (value == "") {
        if (key == "refHost" || key == "refPort") {
          valueErr = true;
        }
      }

      errObj[e.target.id] = valueErr;
      this.setState((_this$setState = {}, _defineProperty(_this$setState, e.target.id, value), _defineProperty(_this$setState, "errObj", errObj), _this$setState), this.buildRef);
    }
  }, {
    key: "render",
    value: function render() {
      var refs = [];
      var _iteratorNormalCompletion = true;
      var _didIteratorError = false;
      var _iteratorError = undefined;

      try {
        for (var _iterator = this.props.rows[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
          var row = _step.value;
          refs.push({
            name: row
          });
        }
      } catch (err) {
        _didIteratorError = true;
        _iteratorError = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion && _iterator.return != null) {
            _iterator.return();
          }
        } finally {
          if (_didIteratorError) {
            throw _iteratorError;
          }
        }
      }

      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-sub-header"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__["ReferralTable"], {
        rows: refs,
        loadModalHandler: this.showConfirmRefDelete
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "btn btn-primary ds-margin-top",
        onClick: this.showRefModal,
        type: "button"
      }, "Create Referral"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showConfirmRefDelete,
        closeHandler: this.closeConfirmRefDelete,
        actionFunc: this.deleteRef,
        actionParam: this.state.removeRef,
        msg: "Are you sure you want to delete this referral?",
        msgContent: this.state.removeRef
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(AddReferralModal, {
        showModal: this.state.showRefModal,
        closeHandler: this.closeRefModal,
        handleChange: this.handleRefChange,
        saveHandler: this.saveRef,
        previewValue: this.state.refValue,
        error: this.state.errObj
      }));
    }
  }]);

  return SuffixReferrals;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

var AddReferralModal =
/*#__PURE__*/
function (_React$Component2) {
  _inherits(AddReferralModal, _React$Component2);

  function AddReferralModal() {
    _classCallCheck(this, AddReferralModal);

    return _possibleConstructorReturn(this, _getPrototypeOf(AddReferralModal).apply(this, arguments));
  }

  _createClass(AddReferralModal, [{
    key: "render",
    value: function render() {
      var _this$props = this.props,
          showModal = _this$props.showModal,
          closeHandler = _this$props.closeHandler,
          handleChange = _this$props.handleChange,
          saveHandler = _this$props.saveHandler,
          previewValue = _this$props.previewValue,
          error = _this$props.error;

      if (previewValue == "") {
        previewValue = "ldap://";
      }

      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Title, null, "Add Database Referral")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], null, "Protocol")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
        defaultValue: "ldap://",
        onChange: this.props.handleChange,
        className: "btn btn-default dropdown",
        id: "refProtocol"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "ldap://"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "ldaps://")))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], null, "Host Name")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: error.refHost ? "ds-input-auto-bad" : "ds-input-auto",
        type: "text",
        onChange: handleChange,
        id: "refHost"
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], null, "Port Number")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: error.refPort ? "ds-input-auto-bad" : "ds-input-auto",
        type: "text",
        onChange: handleChange,
        id: "refPort"
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], null, "Suffix")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: "ds-input-auto",
        onChange: handleChange,
        type: "text",
        id: "refSuffix"
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top",
        title: "Comma separated list of attributes to return"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], null, "Attributes")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: "ds-input-auto",
        onChange: handleChange,
        type: "text",
        id: "refAttrs"
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], null, "Filter")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        onChange: handleChange,
        className: "ds-input-auto",
        type: "text",
        id: "refFilter"
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], null, "Scope")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
        className: "btn btn-default dropdown",
        onChange: handleChange,
        defaultValue: "",
        id: "refScope"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "sub"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "one"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "base")))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", {
        className: "ds-label-sm"
      }, "Computed Referral")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: "ds-input-auto",
        value: previewValue,
        readOnly: true
      }))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Create Referral"))));
    }
  }]);

  return AddReferralModal;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Property types and defaults


SuffixReferrals.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array,
  suffix: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string
};
SuffixReferrals.defaultProps = {
  rows: [],
  suffix: "",
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"],
  serverId: ""
};
AddReferralModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  previewValue: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  error: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.object
};
AddReferralModal.defaultProps = {
  showModal: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"],
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"],
  previewValue: "",
  error: {}
};

/***/ }),

/***/ "./src/lib/database/suffix.jsx":
/*!*************************************!*\
  !*** ./src/lib/database/suffix.jsx ***!
  \*************************************/
/*! exports provided: Suffix */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Suffix", function() { return Suffix; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _attrEncryption_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./attrEncryption.jsx */ "./src/lib/database/attrEncryption.jsx");
/* harmony import */ var _suffixConfig_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./suffixConfig.jsx */ "./src/lib/database/suffixConfig.jsx");
/* harmony import */ var _referrals_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./referrals.jsx */ "./src/lib/database/referrals.jsx");
/* harmony import */ var _indexes_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./indexes.jsx */ "./src/lib/database/indexes.jsx");
/* harmony import */ var _vlvIndexes_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./vlvIndexes.jsx */ "./src/lib/database/vlvIndexes.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _databaseModal_jsx__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./databaseModal.jsx */ "./src/lib/database/databaseModal.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_12__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }











 // PR React 4 example
// import {
//    Dropdown,
//    DropdownToggle,
//    DropdownItem,
//    DropdownSeparator,
// } from "@patternfly/react-core";



var Suffix =
/*#__PURE__*/
function (_React$Component) {
  _inherits(Suffix, _React$Component);

  function Suffix(props) {
    var _this;

    _classCallCheck(this, Suffix);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(Suffix).call(this, props));
    _this.state = {
      loading: false,
      activeKey: 1,
      notifications: [],
      errObj: {},
      refRows: _this.props.data.refRows,
      encAttrsRows: _this.props.data.encAttrsRows,
      vlvItems: _this.props.data.vlvItems,
      autoTuning: _this.props.data.autoTuning,
      // Suffix configuration
      cachememsize: _this.props.data.cachememsize,
      cachesize: _this.props.data.cachesize,
      dncachememsize: _this.props.data.dncachememsize,
      readOnly: _this.props.data.readOnly,
      requireIndex: _this.props.data.requireIndex,
      _cachememsize: _this.props.data.cachememsize,
      _cachesize: _this.props.data.cachesize,
      _dncachememsize: _this.props.data.dncachememsize,
      _readOnly: _this.props.data.readOnly,
      _requireIndex: _this.props.data.requireIndex,
      // Import/Export modals
      showImportModal: false,
      showExportModal: false,
      ldifLocation: "",
      attrEncryption: false,
      exportSpinner: false,
      importSpinner: false,
      showConfirmLDIFImport: false,
      deleleLDIFName: "",
      modalChecked: false,
      modalSpinning: false,
      includeReplData: false,
      // Reindex all
      showReindexConfirm: false,
      // Create Sub Suffix
      showSubSuffixModal: false,
      subSuffixValue: "",
      subSuffixBeName: "",
      createSuffixEntry: false,
      noSuffixInit: true,
      createSampleEntries: false,
      // Create Link
      showLinkModal: false,
      createLinkSuffix: "",
      createLinkName: "",
      createNsfarmserverurl: "",
      createNsmultiplexorbinddn: "",
      createNsmultiplexorcredentials: "",
      createNsmultiplexorcredentialsConfirm: "",
      createUseStartTLS: false,
      createNsbindmechanism: "SIMPLE",
      linkPwdMatch: false,
      // Delete
      showDeleteConfirm: false
    }; // General bindings

    _this.handleNavSelect = _this.handleNavSelect.bind(_assertThisInitialized(_assertThisInitialized(_this))); // Import modal

    _this.showImportModal = _this.showImportModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeImportModal = _this.closeImportModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleRadioChange = _this.handleRadioChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.doImport = _this.doImport.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.importLDIF = _this.importLDIF.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showConfirmLDIFImport = _this.showConfirmLDIFImport.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmLDIFImport = _this.closeConfirmLDIFImport.bind(_assertThisInitialized(_assertThisInitialized(_this))); // Export modal

    _this.showExportModal = _this.showExportModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeExportModal = _this.closeExportModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.doExport = _this.doExport.bind(_assertThisInitialized(_assertThisInitialized(_this))); // Reindex Suffix Modal

    _this.showReindexConfirm = _this.showReindexConfirm.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeReindexConfirm = _this.closeReindexConfirm.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.doReindex = _this.doReindex.bind(_assertThisInitialized(_assertThisInitialized(_this))); // Create sub suffix modal

    _this.showSubSuffixModal = _this.showSubSuffixModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeSubSuffixModal = _this.closeSubSuffixModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.createSubSuffix = _this.createSubSuffix.bind(_assertThisInitialized(_assertThisInitialized(_this))); // Create link modal

    _this.showLinkModal = _this.showLinkModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeLinkModal = _this.closeLinkModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.createLink = _this.createLink.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleLinkChange = _this.handleLinkChange.bind(_assertThisInitialized(_assertThisInitialized(_this))); // Suffix config

    _this.saveSuffixConfig = _this.saveSuffixConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showDeleteConfirm = _this.showDeleteConfirm.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeDeleteConfirm = _this.closeDeleteConfirm.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.doDelete = _this.doDelete.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(Suffix, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.props.enableTree();
    }
  }, {
    key: "handleNavSelect",
    value: function handleNavSelect(key) {
      this.setState({
        activeKey: key
      });
    } //
    // Import Modal
    //

  }, {
    key: "showImportModal",
    value: function showImportModal() {
      this.setState({
        ldifLocation: "",
        attrEncryption: false,
        showImportModal: true,
        importSpinner: false,
        errObj: {}
      });
    }
  }, {
    key: "closeImportModal",
    value: function closeImportModal() {
      this.setState({
        showImportModal: false
      });
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      var _this$setState;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var valueErr = false;
      var errObj = this.state.errObj;

      if (value == "") {
        valueErr = true;
      }

      errObj[e.target.id] = valueErr;
      this.setState((_this$setState = {}, _defineProperty(_this$setState, e.target.id, value), _defineProperty(_this$setState, "errObj", errObj), _this$setState));
    }
  }, {
    key: "showConfirmLDIFImport",
    value: function showConfirmLDIFImport(item) {
      // call deleteLDIF
      this.setState({
        showConfirmLDIFImport: true,
        importLDIFName: item.name,
        modalChecked: false,
        modalSpinning: false
      });
    }
  }, {
    key: "closeConfirmLDIFImport",
    value: function closeConfirmLDIFImport() {
      // call importLDIF
      this.setState({
        showConfirmLDIFImport: false,
        modalChecked: false,
        modalSpinning: false
      });
    }
  }, {
    key: "importLDIF",
    value: function importLDIF(ldif) {
      var _this2 = this;

      // Do import
      var import_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "import", this.props.suffix, ldif, "--encrypted"];
      this.setState({
        importSpinner: true
      });
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("doImport", "Do online import", import_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(import_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this2.props.addNotification("success", "Import successfully initiated");

        _this2.setState({
          showImportModal: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.props.addNotification("error", "Error importing LDIF file - ".concat(errMsg.desc));

        _this2.setState({
          showImportModal: false
        });
      });
    }
  }, {
    key: "doImport",
    value: function doImport() {
      // Validate form before proceeding
      if (this.state.ldifLocation != "") {
        this.setState({
          showConfirmLDIFImport: true,
          importLDIFName: this.state.ldifLocation
        });
      }
    } //
    // Export modal
    //

  }, {
    key: "showExportModal",
    value: function showExportModal() {
      this.setState({
        ldifLocation: "",
        attrEncryption: false,
        showExportModal: true,
        exportSpinner: false,
        includeReplData: false,
        errObj: {}
      });
    }
  }, {
    key: "closeExportModal",
    value: function closeExportModal() {
      this.setState({
        showExportModal: false,
        exportSpinner: false
      });
    }
  }, {
    key: "doExport",
    value: function doExport() {
      var _this3 = this;

      var missingArgs = {
        ldifLocation: false
      };

      if (this.state.ldifLocation == "") {
        this.props.addNotification("warning", "LDIF name is empty");
        missingArgs.ldifLocation = true;
        this.setState({
          errObj: missingArgs
        });
        return;
      } // Must not be a path


      if (Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["bad_file_name"])(this.state.ldifLocation)) {
        this.props.addNotification("warning", "LDIF name should not be a path.  All export files are stored in the server's LDIF directory");
        missingArgs.ldifLocation = true;
        this.setState({
          errObj: missingArgs
        });
        return;
      } // Do Export


      var export_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "export", this.props.suffix, "--ldif=" + this.state.ldifLocation];

      if (this.state.attrEncryption) {
        export_cmd.push("--encrypted");
      }

      if (this.state.includeReplData) {
        export_cmd.push("--replication");
      }

      this.setState({
        exportSpinner: true
      });
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("doExport", "Do online export", export_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(export_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this3.props.reloadLDIFs();

        _this3.props.addNotification("success", "Database export complete");

        _this3.setState({
          showExportModal: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.reloadLDIFs();

        _this3.props.addNotification("error", "Error exporting database - ".concat(errMsg.desc));

        _this3.setState({
          showExportModal: false
        });
      });
    } //
    // Reindex entire database
    //

  }, {
    key: "showReindexConfirm",
    value: function showReindexConfirm() {
      this.setState({
        showReindexConfirm: true,
        modalChecked: false,
        modalSpinning: false
      });
    }
  }, {
    key: "closeReindexConfirm",
    value: function closeReindexConfirm() {
      this.setState({
        showReindexConfirm: false,
        modalChecked: false,
        modalSpinning: false
      });
    }
  }, {
    key: "closeReindexModal",
    value: function closeReindexModal() {
      this.setState({
        showReindexModal: false
      });
    }
  }, {
    key: "doReindex",
    value: function doReindex() {
      var _this4 = this;

      // Show index status modal
      this.setState({
        showReindexModal: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "index", "reindex", "--wait", this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("doReindex", "Reindex all attributes", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this4.props.addNotification("success", "Database has successfully been reindexed");

        _this4.setState({
          showReindexModal: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this4.props.addNotification("error", "Failed to reindex database - ".concat(errMsg.desc));

        _this4.setState({
          showReindexModal: false
        });
      });
    } //
    // Create sub suffix
    //

  }, {
    key: "showSubSuffixModal",
    value: function showSubSuffixModal() {
      this.setState({
        showSubSuffixModal: true,
        errObj: {}
      });
    }
  }, {
    key: "closeSubSuffixModal",
    value: function closeSubSuffixModal() {
      this.setState({
        showSubSuffixModal: false
      });
    }
  }, {
    key: "createSubSuffix",
    value: function createSubSuffix() {
      var _this5 = this;

      var missingArgs = {
        createSuffix: false,
        createBeName: false
      };
      var errors = false;

      if (this.state.subSuffixValue == "") {
        this.props.addNotification("warning", "Missing Suffix");
        missingArgs.subSuffixValue = true;
        errors = true;
      }

      if (this.state.subSuffixBeName == "") {
        this.props.addNotification("warning", "Missing backend name");
        missingArgs.subSuffixBeName = true;
        errors = true;
      }

      if (errors) {
        this.setState({
          errObj: missingArgs
        });
        return;
      } // Create a new suffix


      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "create", "--be-name", this.state.subSuffixBeName, "--suffix=" + this.state.subSuffixValue + "," + this.props.suffix, "--parent-suffix=" + this.props.suffix];

      if (this.state.createSampleEntries) {
        cmd.push('--create-entries');
      }

      if (this.state.createSuffixEntry) {
        cmd.push('--create-suffix');
      }

      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("createSubSuffix", "Create a sub suffix", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this5.props.loadSuffixTree(false);

        _this5.closeSubSuffixModal();

        _this5.props.addNotification("success", "Successfully created new sub-suffix");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.props.loadSuffixTree(false);

        _this5.closeSubSuffixModal();

        _this5.props.addNotification("error", "Error creating sub-suffix - ".concat(errMsg.desc));
      });
    } //
    // Create Chaining Link
    //

  }, {
    key: "showLinkModal",
    value: function showLinkModal() {
      this.setState({
        showLinkModal: true,
        linkPwdMatch: true,
        errObj: {}
      });
    }
  }, {
    key: "closeLinkModal",
    value: function closeLinkModal() {
      this.setState({
        showLinkModal: false
      });
    }
  }, {
    key: "createLink",
    value: function createLink() {
      var _this6 = this;

      // Check for required paramters
      var formError = false;
      var missingArgs = {
        createLinkSuffix: false,
        createNsfarmserverurl: false,
        createLinkName: false,
        createNsmultiplexorbinddn: false,
        createNsmultiplexorcredentials: false,
        createNsmultiplexorcredentialsConfirm: false
      };

      if (this.state.createLinkSuffix == "") {
        this.props.addNotification("warning", "Missing subsuffix!");
        missingArgs.createLinkSuffix = true;
        formError = true;
      }

      if (this.state.createNsfarmserverurl == "") {
        this.props.addNotification("warning", "Missing Server URL!");
        missingArgs.createNsfarmserverurl = true;
        formError = true;
      }

      if (this.state.createLinkName == "") {
        this.props.addNotification("warning", "Missing Link Name");
        missingArgs.createLinkName = true;
        formError = true;
      }

      if (this.state.createNsmultiplexorbinddn == "") {
        this.props.addNotification("warning", "Missing Bind DN");
        missingArgs.createNsmultiplexorbinddn = true;
        formError = true;
      } // Check passwords match


      if (this.state.createNsmultiplexorcredentials == "" && this.state.createNsmultiplexorcredentialsConfirm == "") {
        this.props.addNotification("warning", "Missing Bind Password");
        missingArgs.createNsmultiplexorcredentialsConfirm = true;
        missingArgs.createNsmultiplexorcredentials = true;
        formError = true;
      }

      if (this.state.createNsmultiplexorcredentials != this.state.createNsmultiplexorcredentialsConfirm) {
        this.props.addNotification("warning", "Passwords do not match");
        missingArgs.createNsmultiplexorcredentialsConfirm = true;
        missingArgs.createNsmultiplexorcredentials = false;
        formError = true;
      }

      if (formError) {
        this.setState({
          errObj: missingArgs
        });
        return;
      } // Add chaining link


      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "chaining", "link-create", "--suffix=" + this.state.createLinkSuffix + "," + this.props.suffix, "--server-url=" + this.state.createNsfarmserverurl, "--bind-mech=" + this.state.createNsbindmechanism, "--bind-dn=" + this.state.createNsmultiplexorbinddn, "--bind-pw=" + this.state.createNsmultiplexorcredentials, this.state.createLinkName];

      if (this.state.createUseStartTLS) {
        cmd.push("--use-starttls=on");
      }

      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("createLink", "Create database link", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this6.props.loadSuffixTree(false);

        _this6.closeLinkModal();

        _this6.props.addNotification("success", "Successfully created database link");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this6.props.loadSuffixTree(false);

        _this6.closeLinkModal();

        _this6.props.addNotification("error", "Error creating database link - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "checkPasswords",
    value: function checkPasswords() {
      var pwdMatch = false;

      if (this.state.createNsmultiplexorcredentials == this.state.createNsmultiplexorcredentialsConfirm) {
        pwdMatch = true;
      }

      this.setState({
        linkPwdMatch: pwdMatch
      });
    }
  }, {
    key: "handleLinkChange",
    value: function handleLinkChange(e) {
      var _this$setState2;

      // Check for matching credentials
      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var valueErr = false;
      var errObj = this.state.errObj;

      if (value == "") {
        valueErr = true;
      }

      errObj[e.target.id] = valueErr;
      this.setState((_this$setState2 = {}, _defineProperty(_this$setState2, e.target.id, value), _defineProperty(_this$setState2, "errObj", errObj), _this$setState2), this.checkPasswords);
    }
  }, {
    key: "handleRadioChange",
    value: function handleRadioChange(e) {
      // Handle the create suffix init option radio button group
      var noInit = false;
      var addSuffix = false;
      var addSample = false;

      if (e.target.id == "noSuffixInit") {
        noInit = true;
      } else if (e.target.id == "createSuffixEntry") {
        addSuffix = true;
      } else {
        // createSampleEntries
        addSample = true;
      }

      this.setState({
        noSuffixInit: noInit,
        createSuffixEntry: addSuffix,
        createSampleEntries: addSample
      });
    } //
    // Delete suffix
    //

  }, {
    key: "showDeleteConfirm",
    value: function showDeleteConfirm(item) {
      this.setState({
        showDeleteConfirm: true,
        modalSpinning: false,
        modalChecked: false
      });
    }
  }, {
    key: "closeDeleteConfirm",
    value: function closeDeleteConfirm() {
      this.setState({
        showDeleteConfirm: false,
        modalChecked: false,
        modalSpinning: false
      });
    }
  }, {
    key: "doDelete",
    value: function doDelete() {
      var _this7 = this;

      // Delete suffix
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "delete", this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("doDelete", "Delete database", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this7.props.loadSuffixTree(true);

        _this7.closeLinkModal();

        _this7.props.addNotification("success", "Successfully deleted database");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this7.props.loadSuffixTree(true);

        _this7.closeLinkModal();

        _this7.props.addNotification("error", "Error deleting database - ".concat(errMsg.desc));
      });
    } // Save config

  }, {
    key: "saveSuffixConfig",
    value: function saveSuffixConfig() {
      var _this8 = this;

      console.log("Save suffix config: ", this.props.suffix);
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'backend', 'suffix', 'set', this.props.suffix];
      var requireRestart = false;

      if (this.state._readOnly != this.state.readOnly) {
        if (this.state.readOnly) {
          cmd.push("--enable-readonly");
        } else {
          cmd.push("--disable-readonly");
        }
      }

      if (this.state._requireIndex != this.state.requireIndex) {
        if (this.state.requireIndex) {
          cmd.push("--require-index");
        } else {
          cmd.push("--ignore-index");
        }
      }

      if (this.state._cachememsize != this.state.cachememsize) {
        cmd.push("--cache-memsize=" + this.state.cachememsize);
        requireRestart = true;
      }

      if (this.state._cachesize != this.state.cachesize) {
        cmd.push("--cache-size=" + this.state.cachesize);
        requireRestart = true;
      }

      if (this.state._dncachememsize != this.state.dncachememsize) {
        cmd.push("--dncache-memsize=" + this.state.dncachememsize);
        requireRestart = true;
      }

      if (cmd.length > 7) {
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("saveSuffixConfig", "Save suffix config", cmd);
        var msg = "Successfully updated suffix configuration";

        if (requireRestart) {
          msg = "Successfully updated suffix configuration.  These " + "changes require the server to be restarted to take effect";
        }

        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          "err": "message"
        }).done(function (content) {
          // Continue with the next mod
          _this8.props.reload(_this8.props.suffix);

          _this8.props.addNotification("success", msg);
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this8.props.reload(_this8.props.suffix);

          _this8.props.addNotification("error", "Error updating suffix configuration - ".concat(errMsg.desc));
        });
      }
    } //
    // Render the component
    //

  }, {
    key: "render",
    value: function render() {
      var _this9 = this;

      var suffixIcon = "tree";

      if (this.props.dbtype == "subsuffix") {
        suffixIcon = "leaf";
      }

      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        id: "suffix-page"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["Col"], {
        sm: 10,
        className: "ds-word-wrap"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["ControlLabel"], {
        className: "ds-suffix-header"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["Icon"], {
        type: "fa",
        name: suffixIcon
      }), " ", this.props.suffix, " (", react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, this.props.bename), ")", react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh suffix",
        onClick: function onClick() {
          return _this9.props.reload(_this9.props.suffix);
        }
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["DropdownButton"], {
        className: "ds-action-button",
        bsStyle: "primary",
        title: "Suffix Tasks",
        id: "mydropdown",
        pullRight: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["MenuItem"], {
        eventKey: "1",
        onClick: this.showImportModal,
        title: "Import an LDIF file to initialize the database"
      }, "Initialize Suffix"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["MenuItem"], {
        eventKey: "2",
        onClick: this.showExportModal,
        title: "Export the database to an LDIF file"
      }, "Export Suffix"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["MenuItem"], {
        eventKey: "3",
        onClick: this.showReindexConfirm,
        title: "Reindex the entire database"
      }, "Reindex Suffix"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["MenuItem"], {
        eventKey: "4",
        onClick: this.showSubSuffixModal,
        title: "Create a sub-suffix under this suffix"
      }, "Create Sub-Suffix"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["MenuItem"], {
        eventKey: "5",
        onClick: this.showLinkModal,
        title: "Create a database chaining link subtree"
      }, "Create Database Link"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["MenuItem"], {
        divider: true
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["MenuItem"], {
        eventKey: "6",
        onClick: this.showDeleteConfirm,
        title: "This will permanently delete the database"
      }, "Delete Suffix"))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["TabContainer"], {
        id: "basic-tabs-pf",
        onSelect: this.handleNavSelect,
        activeKey: this.state.activeKey
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["Nav"], {
        bsClass: "nav nav-tabs nav-tabs-pf"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["NavItem"], {
        eventKey: 1
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Settings'
        }
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["NavItem"], {
        eventKey: 2
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Referrals'
        }
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["NavItem"], {
        eventKey: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Indexes'
        }
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["NavItem"], {
        eventKey: 5
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'VLV Indexes'
        }
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["NavItem"], {
        eventKey: 4
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Encrypted Attributes'
        }
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["TabContent"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["TabPane"], {
        eventKey: 1
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_suffixConfig_jsx__WEBPACK_IMPORTED_MODULE_4__["SuffixConfig"], {
        cachememsize: this.state.cachememsize,
        cachesize: this.state.cachesize,
        dncachememsize: this.state.dncachememsize,
        readOnly: this.state.readOnly,
        requireIndex: this.state.requireIndex,
        autoTuning: this.state.autoTuning,
        handleChange: this.handleChange,
        saveHandler: this.saveSuffixConfig
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["TabPane"], {
        eventKey: 2
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_referrals_jsx__WEBPACK_IMPORTED_MODULE_5__["SuffixReferrals"], {
        rows: this.props.data.refRows,
        suffix: this.props.suffix,
        reload: this.props.reloadRefs,
        addNotification: this.props.addNotification,
        serverId: this.props.serverId,
        key: this.state.refRows
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["TabPane"], {
        eventKey: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-indent ds-tab-table"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["TabContainer"], {
        id: "index-tabs",
        defaultActiveKey: 1
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_indexes_jsx__WEBPACK_IMPORTED_MODULE_6__["SuffixIndexes"], {
        systemIndexRows: this.props.data.systemIndexRows,
        indexRows: this.props.data.indexRows,
        suffix: this.props.suffix,
        serverId: this.props.serverId,
        addNotification: this.props.addNotification,
        reload: this.props.reloadIndexes
      })))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["TabPane"], {
        eventKey: 4
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-sub-header"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_attrEncryption_jsx__WEBPACK_IMPORTED_MODULE_3__["AttrEncryption"], {
        rows: this.props.data.encAttrsRows,
        suffix: this.props.suffix,
        serverId: this.props.serverId,
        addNotification: this.props.addNotification,
        attrs: this.props.attrs,
        reload: this.props.reloadAttrEnc
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["TabPane"], {
        eventKey: 5
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_vlvIndexes_jsx__WEBPACK_IMPORTED_MODULE_7__["VLVIndexes"], {
        suffix: this.props.suffix,
        serverId: this.props.serverId,
        vlvItems: this.props.data.vlvItems,
        addNotification: this.props.addNotification,
        attrs: this.props.attrs,
        reload: this.props.reloadVLV
      }))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["DoubleConfirmModal"], {
        showModal: this.state.showDeleteConfirm,
        closeHandler: this.closeDeleteConfirm,
        handleChange: this.handleChange,
        actionHandler: this.doDelete,
        spinning: this.state.modalSpinning,
        item: this.props.suffix,
        checked: this.state.modalChecked,
        mTitle: "Delete Replication Agreement",
        mMsg: "Are you really sure you want to delete the database?",
        mSpinningMsg: "Deleting database ...",
        mBtnName: "Delete Database"
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_databaseModal_jsx__WEBPACK_IMPORTED_MODULE_9__["CreateLinkModal"], {
        showModal: this.state.showLinkModal,
        closeHandler: this.closeLinkModal,
        handleChange: this.handleLinkChange,
        saveHandler: this.createLink,
        suffix: this.props.suffix,
        pwdMatch: this.state.linkPwdMatch,
        error: this.state.errObj
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_databaseModal_jsx__WEBPACK_IMPORTED_MODULE_9__["CreateSubSuffixModal"], {
        showModal: this.state.showSubSuffixModal,
        closeHandler: this.closeSubSuffixModal,
        handleChange: this.handleChange,
        handleRadioChange: this.handleRadioChange,
        saveHandler: this.createSubSuffix,
        suffix: this.props.suffix,
        noInit: this.state.noSuffixInit,
        addSuffix: this.state.createSuffixEntry,
        addSample: this.state.createSampleEntries,
        error: this.state.errObj
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_databaseModal_jsx__WEBPACK_IMPORTED_MODULE_9__["ImportModal"], {
        showModal: this.state.showImportModal,
        closeHandler: this.closeImportModal,
        handleChange: this.handleChange,
        saveHandler: this.doImport,
        showConfirmImport: this.showConfirmLDIFImport,
        spinning: this.state.importSpinner,
        rows: this.props.LDIFRows,
        suffix: this.props.suffix
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["DoubleConfirmModal"], {
        showModal: this.state.showConfirmLDIFImport,
        closeHandler: this.closeConfirmLDIFImport,
        handleChange: this.handleChange,
        actionHandler: this.importLDIF,
        spinning: this.state.modalSpinning,
        item: this.state.importLDIFName,
        checked: this.state.modalChecked,
        mTitle: "Initialize Database From LDIF",
        mMsg: "Are you sure you want to initialize the database (it will permanently overwrite the current database)?",
        mSpinningMsg: "Initializing Database ...",
        mBtnName: "Initialize Database"
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_databaseModal_jsx__WEBPACK_IMPORTED_MODULE_9__["ExportModal"], {
        showModal: this.state.showExportModal,
        closeHandler: this.closeExportModal,
        handleChange: this.handleChange,
        saveHandler: this.doExport,
        spinning: this.state.exportSpinner,
        error: this.state.errObj
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["DoubleConfirmModal"], {
        showModal: this.state.showReindexConfirm,
        closeHandler: this.closeReindexConfirm,
        handleChange: this.handlChange,
        actionHandler: this.doReindex,
        spinning: this.state.modalSpinning,
        item: this.props.suffix,
        checked: this.state.modalChecked,
        mTitle: "Reindex All Attributes",
        mMsg: "Are you sure you want to reindex all the attribute indexes?",
        mSpinningMsg: "Reindexing Database ...",
        mBtnName: "Reindex"
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_databaseModal_jsx__WEBPACK_IMPORTED_MODULE_9__["ReindexModal"], {
        showModal: this.state.showReindexModal,
        closeHandler: this.closeReindexModal,
        msg: "Reindexing All Attribute Indexes"
      }));
    }
  }]);

  return Suffix;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Property types and defaults

Suffix.propTypes = {
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.string,
  suffix: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.string,
  bename: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.string,
  loadSuffixTree: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.func,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.func,
  reloadRefs: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.func,
  reloadIndexes: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.func,
  reloadVLV: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.func,
  reloadAttrEnc: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.func,
  reloadLDIFs: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.func,
  dbtype: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.string,
  data: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.object,
  attrs: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.array,
  LDIFRows: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.array,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.func
};
Suffix.defaultProps = {
  serverId: "",
  suffix: "",
  bename: "",
  loadSuffixTree: patternfly_react__WEBPACK_IMPORTED_MODULE_10__["noop"],
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_10__["noop"],
  reloadRefs: patternfly_react__WEBPACK_IMPORTED_MODULE_10__["noop"],
  reloadIndexes: patternfly_react__WEBPACK_IMPORTED_MODULE_10__["noop"],
  reloadVLV: patternfly_react__WEBPACK_IMPORTED_MODULE_10__["noop"],
  reloadAttrEnc: patternfly_react__WEBPACK_IMPORTED_MODULE_10__["noop"],
  reloadLDIFs: patternfly_react__WEBPACK_IMPORTED_MODULE_10__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_10__["noop"],
  dbtype: "",
  data: {},
  attrs: [],
  LDIFRows: [],
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.noop
};

/***/ }),

/***/ "./src/lib/database/suffixConfig.jsx":
/*!*******************************************!*\
  !*** ./src/lib/database/suffixConfig.jsx ***!
  \*******************************************/
/*! exports provided: SuffixConfig */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SuffixConfig", function() { return SuffixConfig; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }





var SuffixConfig =
/*#__PURE__*/
function (_React$Component) {
  _inherits(SuffixConfig, _React$Component);

  function SuffixConfig() {
    _classCallCheck(this, SuffixConfig);

    return _possibleConstructorReturn(this, _getPrototypeOf(SuffixConfig).apply(this, arguments));
  }

  _createClass(SuffixConfig, [{
    key: "render",
    value: function render() {
      var cacheInputs;

      if (this.props.autoTuning) {
        var cacheValue = this.props.cachesize + "  (auto-sized)";
        var cachememValue = this.props.cachememsize + "  (auto-sized)";
        cacheInputs = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Form"], {
          horizontal: true
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "The entry cache size in bytes setting is being auto-sized and is read-only - see Global Database Configuration"
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 4
        }, "Entry Cache Size"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 8
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
          disabled: true,
          value: cachememValue,
          className: "ds-input-auto",
          type: "text",
          id: "cachememsize"
        }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "The entry cache max entries setting is being auto-sized and is read-only - see Global Database Configuration"
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 4
        }, "Entry Cache Max Entries"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 8
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
          disabled: true,
          value: cacheValue,
          className: "ds-input-auto",
          type: "text",
          id: "cachesize"
        }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "The available memory space in bytes for the DN cache. The DN cache is similar to the entry cache for a database, only its table stores only the entry ID and the entry DN (nsslapd-dncachememsize)."
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 4
        }, "DN Cache Size"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 8
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
          onChange: this.props.handleChange,
          value: this.props.dncachememsize,
          className: "ds-input-auto",
          type: "text",
          id: "dncachememsize"
        }))));
      } else {
        cacheInputs = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Form"], {
          horizontal: true
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "The size for the available memory space in bytes for the entry cache (nsslapd-cachememsize)."
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 4
        }, "Entry Cache Size"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 8
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
          onChange: this.props.handleChange,
          value: this.props.cachememsize,
          className: "ds-input-auto",
          type: "text",
          id: "cachememsize"
        }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "The number of entries to keep in the entry cache, use'-1' for unlimited (nsslapd-cachesize)."
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 4
        }, "Entry Cache Max Entries"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 8
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
          onChange: this.props.handleChange,
          value: this.props.cachesize,
          className: "ds-input-auto",
          type: "text",
          id: "cachesize"
        }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "the available memory space in bytes for the DN cache. The DN cache is similar to the entry cache for a database, only its table stores only the entry ID and the entry DN (nsslapd-dncachememsize)."
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 4
        }, "DN Cache Size"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 8
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
          onChange: this.props.handleChange,
          value: this.props.dncachememsize,
          className: "ds-input-auto",
          type: "text",
          id: "dncachememsize"
        }))));
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-lg"
      }, cacheInputs, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top-lg",
        title: "Put database in Read-Only mode (nsslapd-readonly)."
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 4
      }, "Database Read-Only Mode"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "checkbox",
        onChange: this.props.handleChange,
        checked: this.props.readOnly,
        className: "ds-config-checkbox",
        id: "readOnly"
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top",
        title: "Block unindexed searches on this suffix (nsslapd-require-index)."
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 4
      }, "Block Unindexed Searches"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "checkbox",
        onChange: this.props.handleChange,
        checked: this.props.requireIndex,
        className: "ds-config-checkbox",
        id: "requireIndex"
      })))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-lg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "btn btn-primary save-button",
        onClick: this.props.saveHandler
      }, "Save Configuration")));
    }
  }]);

  return SuffixConfig;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); // Property types and defaults

SuffixConfig.propTypes = {
  cachememsize: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  cachesize: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  dncachememsize: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  readOnly: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  requireIndex: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  autoTuning: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func
};
SuffixConfig.defaultProps = {
  cachememsize: "",
  cachesize: "",
  dncachememsize: "",
  readOnly: false,
  requireIndex: false,
  autoTuning: false,
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"]
};

/***/ }),

/***/ "./src/lib/database/vlvIndexes.jsx":
/*!*****************************************!*\
  !*** ./src/lib/database/vlvIndexes.jsx ***!
  \*****************************************/
/*! exports provided: VLVIndexes */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VLVIndexes", function() { return VLVIndexes; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _dsTable_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../dsTable.jsx */ "./src/lib/dsTable.jsx");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_8__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }










var VLVIndexes =
/*#__PURE__*/
function (_React$Component) {
  _inherits(VLVIndexes, _React$Component);

  function VLVIndexes(props) {
    var _this;

    _classCallCheck(this, VLVIndexes);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(VLVIndexes).call(this, props));
    _this.state = {
      vlvItems: [],
      showVLVModal: false,
      showVLVEditModal: false,
      showDeleteConfirm: false,
      showReindexConfirm: false,
      errObj: {},
      vlvName: "",
      vlvBase: "",
      vlvScope: "subtree",
      vlvFilter: "",
      vlvSortList: [],
      _vlvName: "",
      _vlvBase: "",
      _vlvScope: "",
      _vlvFilter: "",
      _vlvSortList: []
    }; // Create VLV Modal

    _this.showVLVModal = _this.showVLVModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeVLVModal = _this.closeVLVModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleVLVChange = _this.handleVLVChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleVLVSortChange = _this.handleVLVSortChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.saveVLV = _this.saveVLV.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.saveEditVLV = _this.saveEditVLV.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.deleteVLV = _this.deleteVLV.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.reindexVLV = _this.reindexVLV.bind(_assertThisInitialized(_assertThisInitialized(_this))); // Edit VLV modal

    _this.showVLVEditModal = _this.showVLVEditModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeVLVEditModal = _this.closeVLVEditModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showDeleteConfirm = _this.showDeleteConfirm.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeDeleteConfirm = _this.closeDeleteConfirm.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showReindexConfirm = _this.showReindexConfirm.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeReindexConfirm = _this.closeReindexConfirm.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  } //
  // VLV index functions
  //


  _createClass(VLVIndexes, [{
    key: "showVLVModal",
    value: function showVLVModal() {
      this.setState({
        showVLVModal: true,
        errObj: {},
        vlvName: "",
        vlvBase: "",
        vlvScope: "subtree",
        vlvFilter: "",
        vlvSortList: [],
        vlvSortRows: []
      });
    }
  }, {
    key: "closeVLVModal",
    value: function closeVLVModal() {
      this.setState({
        showVLVModal: false
      });
    }
  }, {
    key: "handleVLVChange",
    value: function handleVLVChange(e) {
      var _this$setState;

      var value = e.target.value;
      var valueErr = false;
      var errObj = this.state.errObj;

      if (value == "") {
        valueErr = true;
      }

      errObj[e.target.id] = valueErr;
      this.setState((_this$setState = {}, _defineProperty(_this$setState, e.target.id, value), _defineProperty(_this$setState, "errObj", errObj), _this$setState));
    }
  }, {
    key: "handleVLVSortChange",
    value: function handleVLVSortChange(sorts) {
      // "sorts" is a table obj that uses the key "sortName"
      var sortList = [];
      var _iteratorNormalCompletion = true;
      var _didIteratorError = false;
      var _iteratorError = undefined;

      try {
        for (var _iterator = sorts[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
          var sort = _step.value;
          // Create array of sorts from array of objs
          sortList.push(sort.sortName);
        }
      } catch (err) {
        _didIteratorError = true;
        _iteratorError = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion && _iterator.return != null) {
            _iterator.return();
          }
        } finally {
          if (_didIteratorError) {
            throw _iteratorError;
          }
        }
      }

      this.setState({
        vlvSortList: sortList
      });
    } // Edit VLVIndex

  }, {
    key: "showVLVEditModal",
    value: function showVLVEditModal(e) {
      var vlvName = e.target.name;
      var _iteratorNormalCompletion2 = true;
      var _didIteratorError2 = false;
      var _iteratorError2 = undefined;

      try {
        for (var _iterator2 = this.props.vlvItems[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
          var item = _step2.value;
          var vlvAttrs = item.attrs;

          if (vlvAttrs.cn[0] == vlvName) {
            var sortRows = [];
            var sortList = [];
            var _iteratorNormalCompletion3 = true;
            var _didIteratorError3 = false;
            var _iteratorError3 = undefined;

            try {
              for (var _iterator3 = item.sorts[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
                var vlvSort = _step3.value;
                sortRows.push({
                  sortName: vlvSort.attrs.vlvsort[0]
                });
                sortList.push(vlvSort.attrs.vlvsort[0]);
              }
            } catch (err) {
              _didIteratorError3 = true;
              _iteratorError3 = err;
            } finally {
              try {
                if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
                  _iterator3.return();
                }
              } finally {
                if (_didIteratorError3) {
                  throw _iteratorError3;
                }
              }
            }

            this.setState({
              showVLVEditModal: true,
              errObj: {},
              vlvName: vlvAttrs.cn[0],
              vlvBase: vlvAttrs.vlvbase[0],
              vlvScope: this.getScopeKey(vlvAttrs.vlvscope[0]),
              vlvFilter: vlvAttrs.vlvfilter[0],
              vlvSortList: sortList,
              vlvSortRows: sortRows,
              _vlvName: vlvAttrs.cn[0],
              _vlvBase: vlvAttrs.vlvbase[0],
              _vlvScope: this.getScopeKey(vlvAttrs.vlvscope[0]),
              _vlvFilter: vlvAttrs.vlvfilter[0],
              _vlvSortList: sortList,
              _vlvSortRows: sortRows
            });
            break;
          }
        }
      } catch (err) {
        _didIteratorError2 = true;
        _iteratorError2 = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
            _iterator2.return();
          }
        } finally {
          if (_didIteratorError2) {
            throw _iteratorError2;
          }
        }
      }
    }
  }, {
    key: "closeVLVEditModal",
    value: function closeVLVEditModal() {
      this.setState({
        showVLVEditModal: false
      });
    }
  }, {
    key: "getScopeVal",
    value: function getScopeVal(scope) {
      var mapping = {
        'subtree': '2',
        'one': '1',
        'base': '0'
      };
      return mapping[scope];
    }
  }, {
    key: "getScopeKey",
    value: function getScopeKey(scope) {
      var mapping = {
        '2': 'subtree',
        '1': 'one',
        '0': 'base'
      };
      return mapping[scope];
    }
  }, {
    key: "saveEditVLV",
    value: function saveEditVLV() {
      var _this2 = this;

      var missingArgs = {};
      var errors = false;

      if (this.state.vlvBase == "") {
        this.props.addNotification("warning", "Missing VLV search base");
        missingArgs.vlvBase = true;
        errors = true;
      }

      if (this.state.vlvFilter == "") {
        this.props.addNotification("warning", "Missing VLV search filter");
        missingArgs.vlvFilter = true;
        errors = true;
      }

      if (errors) {
        this.setState({
          errObj: missingArgs
        });
        return;
      }

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "vlv-index", "edit-search", "--name=" + this.state.vlvName, this.props.suffix];

      if (this.state.vlvBase != this.state._vlvBase) {
        cmd.push("--search-base=" + this.state.vlvBase);
      }

      if (this.state.vlvScope != this.state._vlvScope) {
        cmd.push("--search-scope=" + this.getScopeVal(this.state.vlvScope));
      }

      if (this.state.vlvFilter != this.state._vlvFilter) {
        cmd.push("--search-filter=" + this.state.vlvFilter);
      }

      if (cmd.length > 8) {
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("saveEditVLV", "Add vlv search", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          _this2.closeVLVEditModal();

          _this2.props.reload(_this2.props.suffix);

          _this2.props.addNotification("success", "Successfully edited VLV search");
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this2.closeVLVEditModal();

          _this2.props.reload(_this2.props.suffix);

          _this2.props.addNotification("error", "Failed to edit VLV search - ".concat(errMsg.desc));
        });
      } // Check the sort indexes now
      // Loop over sorts and create indexes or each one


      var addIndexList = [];
      var delIndexList = [];
      var _iteratorNormalCompletion4 = true;
      var _didIteratorError4 = false;
      var _iteratorError4 = undefined;

      try {
        for (var _iterator4 = this.state.vlvSortList[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {
          var sort = _step4.value;

          if (this.state._vlvSortList.indexOf(sort) == -1) {
            // Add sort index
            addIndexList.push(sort);
          }
        }
      } catch (err) {
        _didIteratorError4 = true;
        _iteratorError4 = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion4 && _iterator4.return != null) {
            _iterator4.return();
          }
        } finally {
          if (_didIteratorError4) {
            throw _iteratorError4;
          }
        }
      }

      var _iteratorNormalCompletion5 = true;
      var _didIteratorError5 = false;
      var _iteratorError5 = undefined;

      try {
        for (var _iterator5 = this.state._vlvSortList[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) {
          var _sort = _step5.value;

          if (this.state.vlvSortList.indexOf(_sort) == -1) {
            // Del sort index
            delIndexList.push(_sort);
          }
        } // Add VLV index/sort

      } catch (err) {
        _didIteratorError5 = true;
        _iteratorError5 = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion5 && _iterator5.return != null) {
            _iterator5.return();
          }
        } finally {
          if (_didIteratorError5) {
            throw _iteratorError5;
          }
        }
      }

      var _loop = function _loop() {
        var index = addIndexList[_i];
        cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + _this2.props.serverId + ".socket", "backend", "vlv-index", "add-index", "--parent-name=" + _this2.state.vlvName, "--index-name=" + _this2.state.vlvName + " - " + index, "--sort=" + index, _this2.props.suffix];

        if (_this2.state.reindexVLV) {
          cmd.push("--index-it");
        }

        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("saveEditVLV", "Add index", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          _this2.closeVLVEditModal();

          _this2.props.reload(_this2.props.suffix);

          _this2.props.addNotification("success", "Successfully added VLV index " + _this2.state.vlvName + " - " + index);
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this2.closeVLVEditModal();

          _this2.props.reload(_this2.props.suffix);

          _this2.props.addNotification("error", "Failed to add VLV index entry - ".concat(errMsg.desc));
        });
      };

      for (var _i = 0; _i < addIndexList.length; _i++) {
        _loop();
      } // Del VLV index/sort


      var _loop2 = function _loop2() {
        var index = delIndexList[_i2];
        cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + _this2.props.serverId + ".socket", "backend", "vlv-index", "del-index", "--parent-name=" + _this2.state.vlvName, "--sort=" + index, _this2.props.suffix];

        if (_this2.state.reindexVLV) {
          cmd.push("--index-it");
        }

        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("saveEditVLV", "delete index", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          _this2.closeVLVEditModal();

          _this2.props.reload(_this2.props.suffix);

          _this2.props.addNotification("success", "Successfully added VLV index " + _this2.state.vlvName + " - " + index);
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this2.closeVLVEditModal();

          _this2.props.reload(_this2.props.suffix);

          _this2.props.addNotification("error", "Failed to add VLV index entry - ".concat(errMsg.desc));
        });
      };

      for (var _i2 = 0; _i2 < delIndexList.length; _i2++) {
        _loop2();
      }
    }
  }, {
    key: "saveVLV",
    value: function saveVLV() {
      var _this3 = this;

      var missingArgs = {};
      var errors = false;

      if (this.state.vlvName == "") {
        this.props.addNotification("warning", "Missing VLV Search Name");
        missingArgs.vlvName = true;
        errors = true;
      }

      if (this.state.vlvBase == "") {
        this.props.addNotification("warning", "Missing VLV search base");
        missingArgs.vlvBase = true;
        errors = true;
      }

      if (this.state.vlvFilter == "") {
        this.props.addNotification("warning", "Missing VLV search filter");
        missingArgs.vlvFilter = true;
        errors = true;
      }

      if (errors) {
        this.setState({
          errObj: missingArgs
        });
        return;
      }

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "vlv-index", "add-search", "--name=" + this.state.vlvName, "--search-base=" + this.state.vlvBase, "--search-filter=" + this.state.vlvFilter, "--search-scope=" + this.getScopeVal(this.state.vlvScope), this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("saveVLV", "Add vlv search", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this3.props.reload(_this3.props.suffix);

        _this3.props.addNotification("success", "Successfully added VLV search: " + _this3.state.vlvName); // Loop over sorts and create indexes or each one


        var _iteratorNormalCompletion6 = true;
        var _didIteratorError6 = false;
        var _iteratorError6 = undefined;

        try {
          var _loop3 = function _loop3() {
            var sort = _step6.value;
            var indexName = _this3.state.vlvName + " - " + sort;
            var idx_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + _this3.props.serverId + ".socket", "backend", "vlv-index", "add-index", "--parent-name=" + _this3.state.vlvName, "--index-name=" + indexName, "--sort=" + sort, _this3.props.suffix];

            if (_this3.state.reindexVLV) {
              idx_cmd.push("--index");
            }

            Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("saveVLV", "Add vlv index", idx_cmd);
            cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(idx_cmd, {
              superuser: true,
              err: "message"
            }).done(function (content) {
              _this3.props.reload(_this3.props.suffix);

              _this3.props.addNotification("success", "Successfully added VLV index: " + indexName);
            }).fail(function (err) {
              var errMsg = JSON.parse(err);

              _this3.props.addNotification("error", "Failed create VLV index entry - ".concat(errMsg.desc));
            });
          };

          for (var _iterator6 = _this3.state.vlvSortList[Symbol.iterator](), _step6; !(_iteratorNormalCompletion6 = (_step6 = _iterator6.next()).done); _iteratorNormalCompletion6 = true) {
            _loop3();
          }
        } catch (err) {
          _didIteratorError6 = true;
          _iteratorError6 = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion6 && _iterator6.return != null) {
              _iterator6.return();
            }
          } finally {
            if (_didIteratorError6) {
              throw _iteratorError6;
            }
          }
        }
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.addNotification("error", "Failed create VLV search entry - ".concat(errMsg.desc));
      });
      this.closeVLVModal();
    }
  }, {
    key: "renderVLVActions",
    value: function renderVLVActions(id) {
      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["DropdownButton"], {
        bsStyle: "default",
        title: "Actions",
        id: id
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["MenuItem"], {
        eventKey: "1",
        name: id,
        onClick: this.showVLVEditModal
      }, "Edit VLV Index"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["MenuItem"], {
        eventKey: "2",
        name: id,
        onClick: this.showReindexConfirm
      }, "Reindex VLV Index"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["MenuItem"], {
        divider: true
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["MenuItem"], {
        eventKey: "3",
        name: id,
        onClick: this.showDeleteConfirm
      }, "Delete VLV Index")));
    }
  }, {
    key: "showDeleteConfirm",
    value: function showDeleteConfirm(e) {
      this.setState({
        showDeleteConfirm: true,
        deleteVLVName: e.target.name
      });
    }
  }, {
    key: "closeDeleteConfirm",
    value: function closeDeleteConfirm() {
      this.setState({
        showDeleteConfirm: false
      });
    }
  }, {
    key: "deleteVLV",
    value: function deleteVLV(vlv) {
      var _this4 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "vlv-index", "del-search", "--name=" + vlv, this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("deleteVLV", "delete LV search and indexes", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this4.props.reload(_this4.props.suffix);

        _this4.props.addNotification("success", "Successfully deleted VLV index");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this4.props.reload(_this4.props.suffix);

        _this4.props.addNotification("error", "Failed to deletre VLV index - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "showReindexConfirm",
    value: function showReindexConfirm(e) {
      this.setState({
        showReindexConfirm: true,
        reindexVLVName: e.target.name
      });
    }
  }, {
    key: "closeReindexConfirm",
    value: function closeReindexConfirm() {
      this.setState({
        showReindexConfirm: false
      });
    }
  }, {
    key: "reindexVLV",
    value: function reindexVLV(vlv) {
      var _this5 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "vlv-index", "reindex", "--parent-name=" + vlv, this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("reindexVLV", "reindex VLV indexes", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this5.props.reload(_this5.props.suffix);

        _this5.props.addNotification("success", "Successfully completed VLV indexing");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.props.reload(_this5.props.suffix);

        _this5.props.addNotification("error", "Failed to index VLV index - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this6 = this;

      var vlvIndexes = this.props.vlvItems.map(function (vlvItem) {
        return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ListViewItem"], {
          actions: _this6.renderVLVActions(vlvItem.attrs.cn[0]),
          leftContent: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ListViewIcon"], {
            name: "list"
          }),
          key: vlvItem.attrs.cn[0],
          heading: vlvItem.attrs.cn[0]
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          sm: 11,
          key: vlvItem.dn
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", {
          key: vlvItem.dn + "-p"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", {
          className: "ds-divider-lrg"
        }, "Base"), vlvItem.attrs.vlvbase[0]), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", {
          className: "ds-divider-lrg"
        }, "Filter"), vlvItem.attrs.vlvfilter[0]), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", {
          className: "ds-divider-lrg"
        }, "Scope"), _this6.getScopeKey(vlvItem.attrs.vlvscope[0])), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), vlvItem.sorts.map(function (sort) {
          var indexState;

          if (sort.attrs.vlvenabled[0] == "0") {
            indexState = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("font", {
              size: "1",
              color: "#d01c8b"
            }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, "Disabled"));
          } else {
            indexState = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("font", {
              size: "1",
              color: "#4dac26"
            }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, "Uses: "), sort.attrs.vlvuses[0]);
          }

          return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", {
            key: sort.dn + sort.attrs.vlvsort[0]
          }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", {
            className: "ds-divider-lrg"
          }, "Sort"), sort.attrs.vlvsort[0], " (", indexState, ")");
        }))));
      });
      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-tab-table"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h5", null, "Virtual List View Indexes"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ListView"], null, vlvIndexes), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "btn btn-primary ds-margin-top",
        onClick: this.showVLVModal,
        type: "button"
      }, "Create VLV Index"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(AddVLVModal, {
        showModal: this.state.showVLVModal,
        closeHandler: this.closeVLVModal,
        handleChange: this.handleVLVChange,
        handleSortChange: this.handleVLVSortChange,
        saveHandler: this.saveVLV,
        error: this.state.errObj,
        attrs: this.props.attrs
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(AddVLVModal, {
        showModal: this.state.showVLVEditModal,
        closeHandler: this.closeVLVEditModal,
        handleChange: this.handleVLVChange,
        handleSortChange: this.handleVLVSortChange,
        saveHandler: this.saveEditVLV,
        edit: true,
        error: this.state.errObj,
        attrs: this.props.attrs,
        vlvName: this.state.vlvName,
        vlvBase: this.state.vlvBase,
        vlvScope: this.state.vlvScope,
        vlvFilter: this.state.vlvFilter,
        vlvSortList: this.state.vlvSortRows
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showDeleteConfirm,
        closeHandler: this.closeDeleteConfirm,
        actionFunc: this.deleteVLV,
        actionParam: this.state.deleteVLVName,
        msg: "Are you sure you want to delete this VLV index?",
        msgContent: this.state.deleteVLVName
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showReindexConfirm,
        closeHandler: this.closeReindexConfirm,
        actionFunc: this.reindexVLV,
        actionParam: this.state.reindexVLVName,
        msg: "Are you sure you want to reindex this VLV index?",
        msgContent: this.state.reindexVLVName
      }));
    }
  }]);

  return VLVIndexes;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Add and edit modal

var AddVLVModal =
/*#__PURE__*/
function (_React$Component2) {
  _inherits(AddVLVModal, _React$Component2);

  function AddVLVModal(props) {
    var _this7;

    _classCallCheck(this, AddVLVModal);

    _this7 = _possibleConstructorReturn(this, _getPrototypeOf(AddVLVModal).call(this, props));
    var sortRows = [];

    if (_this7.props.edit !== undefined && _this7.props.vlvSortList !== undefined) {
      sortRows = _this7.props.vlvSortList;
    }

    _this7.state = {
      sortRows: sortRows,
      sortValue: "",
      columns: [],
      edit: false
    };
    _this7.getColumns = _this7.getColumns.bind(_assertThisInitialized(_assertThisInitialized(_this7)));
    _this7.getSingleColumn = _this7.getSingleColumn.bind(_assertThisInitialized(_assertThisInitialized(_this7)));
    _this7.updateSorts = _this7.updateSorts.bind(_assertThisInitialized(_assertThisInitialized(_this7)));
    _this7.handleVLVSortChange = _this7.handleVLVSortChange.bind(_assertThisInitialized(_assertThisInitialized(_this7)));
    _this7.close = _this7.close.bind(_assertThisInitialized(_assertThisInitialized(_this7)));
    _this7.save = _this7.save.bind(_assertThisInitialized(_assertThisInitialized(_this7)));
    return _this7;
  }

  _createClass(AddVLVModal, [{
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "VLV Sort Indexes",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_4__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_4__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "getColumns",
    value: function getColumns() {
      var _this8 = this;

      return [{
        property: "sortName",
        header: {
          label: "VLV Sort Indexes",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_4__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_4__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          label: "",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_4__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [function (value, _ref) {
            var rowData = _ref.rowData;
            return [react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
              key: rowData.sortName[0]
            }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
              onClick: function onClick() {
                _this8.handleVLVSortChange(rowData);
              }
            }, "Remove"))];
          }]
        }
      }];
    }
  }, {
    key: "handleVLVSortChange",
    value: function handleVLVSortChange(e) {
      // VLV index was removed from table
      var rows = this.state.sortRows;

      for (var i = 0; i < rows.length; i++) {
        if (rows[i].sortName == e.sortName) {
          rows.splice(i, 1);
          this.setState({
            sortRows: rows
          });
          this.props.handleSortChange(rows);
          return;
        }
      }
    }
  }, {
    key: "handleTypeaheadChange",
    value: function handleTypeaheadChange(values) {
      var value = values.join(' ');
      this.setState({
        sortValue: value
      });
    }
  }, {
    key: "updateSorts",
    value: function updateSorts() {
      var rows = this.state.sortRows;

      if (this.state.sortValue != "") {
        rows.push({
          sortName: this.state.sortValue
        });
        this.typeahead.getInstance().clear();
        this.setState({
          sortRows: rows,
          sortValue: ""
        });
        this.props.handleSortChange(rows);
      }
    }
  }, {
    key: "save",
    value: function save() {
      // reset the rows, and call the save handler
      this.state.sortRows = [];
      this.props.saveHandler();
    }
  }, {
    key: "close",
    value: function close() {
      this.state.sortRows = [];
      this.props.closeHandler();
    }
  }, {
    key: "render",
    value: function render() {
      var _this9 = this;

      var _this$props = this.props,
          showModal = _this$props.showModal,
          closeHandler = _this$props.closeHandler,
          handleChange = _this$props.handleChange,
          error = _this$props.error,
          attrs = _this$props.attrs;
      var title;
      var nameInput;
      var base = "";
      var scope = "subtree";
      var filter = "";
      var sortTable;

      if (this.props.edit) {
        title = "Edit VLV Index";
        nameInput = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
          className: "ds-input-auto",
          type: "text",
          value: this.props.vlvName,
          readOnly: true
        });
        base = this.props.vlvBase;
        scope = this.props.vlvScope;
        filter = this.props.vlvFilter;

        if (this.props.vlvSortList !== undefined) {
          // {sortName: "value"},
          this.state.sortRows = this.props.vlvSortList;
        }
      } else {
        // Create new index
        // this.state.sortRows = [];
        title = "Create VLV Index";
        nameInput = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
          className: error.vlvName ? "ds-input-auto-bad" : "ds-input-auto",
          type: "text",
          onChange: handleChange,
          id: "vlvName"
        });
      }

      var vlvscope = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], null, "Search Scope")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
        defaultValue: scope,
        onChange: this.props.handleChange,
        className: "btn btn-default dropdown",
        id: "vlvScope"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "subtree"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "one"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "base"))));

      if (this.state.sortRows.length == 0) {
        sortTable = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_7__["DSShortTable"], {
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No sort indexes"
          }]
        });
      } else {
        sortTable = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_7__["DSShortTable"], {
          getColumns: this.getColumns,
          rowKey: "sortName",
          rows: this.state.sortRows
        });
      }

      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"], {
        show: showModal,
        onHide: this.close
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Title, null, title)), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], null, "VLV Index Name")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 9
      }, nameInput)), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], null, "Search Base")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: error.vlvBase ? "ds-input-auto-bad" : "ds-input-auto",
        onChange: handleChange,
        type: "text",
        id: "vlvBase",
        defaultValue: base
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], null, "Search Filter")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: error.vlvFilter ? "ds-input-auto-bad" : "ds-input-auto",
        onChange: handleChange,
        type: "text",
        id: "vlvFilter",
        defaultValue: filter
      }))), vlvscope, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top"
      }, sortTable, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_6__["Typeahead"], {
        multiple: true,
        className: "ds-margin-top",
        id: "vlvsortindex",
        onChange: function onChange(values) {
          _this9.handleTypeaheadChange(values);
        },
        maxResults: 1000,
        options: attrs,
        placeholder: "Start typing attribute names to create a sort index",
        ref: function ref(typeahead) {
          _this9.typeahead = typeahead;
        }
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "ds-margin-top",
        type: "button",
        onClick: this.updateSorts
      }, "Add Sort Index"))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Checkbox"], {
        className: "ds-float-right",
        id: "reindexVLV",
        onChange: handleChange
      }, "Index VLV on Save"))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.close
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "primary",
        onClick: this.save
      }, "Save VLV Index"))));
    }
  }]);

  return AddVLVModal;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Property types and defaults


VLVIndexes.propTypes = {
  suffix: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,
  vlvItems: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.array,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,
  attrs: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.array,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func
};
VLVIndexes.defaultProps = {
  suffix: "",
  serverId: "",
  vlvItems: [],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"],
  attrs: [],
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"]
};
AddVLVModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,
  handleSortChange: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,
  edit: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,
  error: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.object,
  attrs: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.array,
  vlvName: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,
  vlvBase: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,
  vlvScope: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,
  vlvFilter: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,
  vlvSortList: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.array
};
AddVLVModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"],
  handleSortChange: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"],
  edit: false,
  error: {},
  attrs: [],
  vlvName: "",
  vlvBase: "",
  vlvScope: "",
  vlvFilter: "",
  vlvSortList: []
};

/***/ }),

/***/ "./src/lib/dsTable.jsx":
/*!*****************************!*\
  !*** ./src/lib/dsTable.jsx ***!
  \*****************************/
/*! exports provided: DSTable, DSShortTable */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DSTable", function() { return DSTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DSShortTable", function() { return DSShortTable; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash */ "./node_modules/lodash/lodash.js");
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var sortabular__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! sortabular */ "./node_modules/sortabular/dist/index.js");
/* harmony import */ var sortabular__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(sortabular__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var table_resolver__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! table-resolver */ "./node_modules/table-resolver/dist/index.js");
/* harmony import */ var table_resolver__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(table_resolver__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var recompose__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! recompose */ "./node_modules/recompose/dist/Recompose.esm.js");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _customTableToolbar_jsx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./customTableToolbar.jsx */ "./src/lib/customTableToolbar.jsx");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_9__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }












var DSTable =
/*#__PURE__*/
function (_React$Component) {
  _inherits(DSTable, _React$Component);

  // props:
  // getColumns={this.getColumns}
  // fieldsToSearch={this.state.fieldsToSearch}
  // searchField={this.state.searchField}
  // rowKey
  // rows: table rows
  //
  function DSTable(props) {
    var _this;

    _classCallCheck(this, DSTable);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(DSTable).call(this, props)); // Point the transform to your sortingColumns. React state can work for this purpose
    // but you can use a state manager as well.

    var getSortingColumns = function getSortingColumns() {
      return _this.state.sortingColumns || {};
    };

    var pagination_list = [6, 12, 24, 48, 96];
    var pagination_per_page = 12;

    if (_this.props.toolBarPagination !== undefined) {
      pagination_list = _this.props.toolBarPagination;
    }

    if (_this.props.toolBarPaginationPerPage !== undefined) {
      pagination_per_page = _this.props.toolBarPaginationPerPage;
    }

    var sortableTransform = sortabular__WEBPACK_IMPORTED_MODULE_4__["sort"]({
      getSortingColumns: getSortingColumns,
      onSort: function onSort(selectedColumn) {
        _this.setState({
          sortingColumns: sortabular__WEBPACK_IMPORTED_MODULE_4__["byColumn"]({
            sortingColumns: _this.state.sortingColumns,
            sortingOrder: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["defaultSortingOrder"],
            selectedColumn: selectedColumn
          })
        });
      },
      // Use property or index dependening on the sortingColumns structure specified
      strategy: sortabular__WEBPACK_IMPORTED_MODULE_4__["strategies"].byProperty
    });
    var sortingFormatter = sortabular__WEBPACK_IMPORTED_MODULE_4__["header"]({
      sortableTransform: sortableTransform,
      getSortingColumns: getSortingColumns,
      strategy: sortabular__WEBPACK_IMPORTED_MODULE_4__["strategies"].byProperty
    }); // Update column formatter stuff

    var customColumns = _this.props.getColumns();

    var _iteratorNormalCompletion = true;
    var _didIteratorError = false;
    var _iteratorError = undefined;

    try {
      for (var _iterator = customColumns[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
        var customColumn = _step.value;

        if (customColumn.header.formatters.length == 0) {
          customColumn.header.formatters = [sortingFormatter];
          customColumn.header.transforms = [sortableTransform];
        }
      } // Enables our custom header formatters extensions to reactabular

    } catch (err) {
      _didIteratorError = true;
      _iteratorError = err;
    } finally {
      try {
        if (!_iteratorNormalCompletion && _iterator.return != null) {
          _iterator.return();
        }
      } finally {
        if (_didIteratorError) {
          throw _iteratorError;
        }
      }
    }

    _this.customHeaderFormatters = patternfly_react__WEBPACK_IMPORTED_MODULE_1__["customHeaderFormattersDefinition"];
    _this.handleSearchValueChange = _this.handleSearchValueChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.totalPages = _this.totalPages.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.onPageInput = _this.onPageInput.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.onSubmit = _this.onSubmit.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.setPage = _this.setPage.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.onPerPageSelect = _this.onPerPageSelect.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.onFirstPage = _this.onFirstPage.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.onPreviousPage = _this.onPreviousPage.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.onNextPage = _this.onNextPage.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.onLastPage = _this.onLastPage.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.currentRows = _this.currentRows.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.filteredSearchedRows = _this.filteredSearchedRows.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.state = {
      searchFilterValue: "",
      fieldsToSearch: _this.props.fieldsToSearch,
      // Sort the first column in an ascending way by default.
      sortingColumns: {
        name: {
          direction: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["TABLE_SORT_DIRECTION"].ASC,
          position: 0
        }
      },
      columns: customColumns,
      // pagination default states
      pagination: {
        page: 1,
        perPage: pagination_per_page,
        perPageOptions: pagination_list
      },
      // page input value
      pageChangeValue: 1
    };
    return _this;
  }

  _createClass(DSTable, [{
    key: "handleSearchValueChange",
    value: function handleSearchValueChange(event) {
      this.setState({
        searchFilterValue: event.target.value
      });
    }
  }, {
    key: "totalPages",
    value: function totalPages() {
      var rows = this.props.rows;
      var perPage = this.state.pagination.perPage;
      return Math.ceil(rows.length / perPage);
    }
  }, {
    key: "onPageInput",
    value: function onPageInput(e) {
      this.setState({
        pageChangeValue: e.target.value
      });
    }
  }, {
    key: "onSubmit",
    value: function onSubmit() {
      this.setPage(this.state.pageChangeValue);
    }
  }, {
    key: "setPage",
    value: function setPage(value) {
      var page = Number(value);

      if (!Number.isNaN(value) && value !== "" && page > 0 && page <= this.totalPages()) {
        var newPaginationState = Object.assign({}, this.state.pagination);
        newPaginationState.page = page;
        this.setState({
          pagination: newPaginationState,
          pageChangeValue: page
        });
      }
    }
  }, {
    key: "onPerPageSelect",
    value: function onPerPageSelect(eventKey, e) {
      var newPaginationState = Object.assign({}, this.state.pagination);
      newPaginationState.perPage = eventKey;
      newPaginationState.page = 1;
      this.setState({
        pagination: newPaginationState
      });
    }
  }, {
    key: "onFirstPage",
    value: function onFirstPage() {
      this.setPage(1);
    }
  }, {
    key: "onPreviousPage",
    value: function onPreviousPage() {
      if (this.state.pagination.page > 1) {
        this.setPage(this.state.pagination.page - 1);
      }
    }
  }, {
    key: "onNextPage",
    value: function onNextPage() {
      var page = this.state.pagination.page;

      if (page < this.totalPages()) {
        this.setPage(this.state.pagination.page + 1);
      }
    }
  }, {
    key: "onLastPage",
    value: function onLastPage() {
      var page = this.state.pagination.page;
      var totalPages = this.totalPages();

      if (page < totalPages) {
        this.setPage(totalPages);
      }
    }
  }, {
    key: "currentRows",
    value: function currentRows(filteredRows) {
      var _this$state = this.state,
          sortingColumns = _this$state.sortingColumns,
          columns = _this$state.columns,
          pagination = _this$state.pagination;
      return Object(recompose__WEBPACK_IMPORTED_MODULE_6__["compose"])(Object(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["paginate"])(pagination), sortabular__WEBPACK_IMPORTED_MODULE_4__["sorter"]({
        columns: columns,
        sortingColumns: sortingColumns,
        sort: lodash__WEBPACK_IMPORTED_MODULE_3__["orderBy"],
        strategy: sortabular__WEBPACK_IMPORTED_MODULE_4__["strategies"].byProperty
      }))(filteredRows);
    }
  }, {
    key: "filteredSearchedRows",
    value: function filteredSearchedRows() {
      var rows = this.props.rows;
      var _this$state2 = this.state,
          fieldsToSearch = _this$state2.fieldsToSearch,
          searchFilterValue = _this$state2.searchFilterValue;

      if (searchFilterValue) {
        return Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["searchFilter"])(searchFilterValue, fieldsToSearch, rows);
      }

      return rows;
    }
  }, {
    key: "render",
    value: function render() {
      var _this2 = this;

      var _this$state3 = this.state,
          columns = _this$state3.columns,
          pagination = _this$state3.pagination,
          sortingColumns = _this$state3.sortingColumns,
          pageChangeValue = _this$state3.pageChangeValue;
      var filteredRows = this.filteredSearchedRows();
      var sortedPaginatedRows = this.currentRows(filteredRows);
      var dsSearchBar = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_customTableToolbar_jsx__WEBPACK_IMPORTED_MODULE_8__["default"], {
        searchFilterValue: this.state.searchFilterValue,
        handleValueChange: this.handleSearchValueChange,
        children: this.props.toolBarChildren,
        className: this.props.toolBarClassName,
        placeholder: this.props.toolBarPlaceholder,
        modelToSearch: this.props.toolBarSearchField,
        loading: this.props.toolBarLoading,
        disableLoadingSpinner: this.props.toolBarDisableLoadingSpinner
      });

      if (this.props.noSearchBar) {
        dsSearchBar = "";
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, dsSearchBar, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Table"].PfProvider, {
        className: "display ds-db-table",
        striped: true,
        hover: true,
        dataTable: true,
        columns: columns,
        components: {
          header: {
            cell: function cell(cellProps) {
              return _this2.customHeaderFormatters({
                cellProps: cellProps,
                columns: columns,
                sortingColumns: sortingColumns,
                rows: sortedPaginatedRows.rows
              });
            }
          }
        }
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Header, {
        className: "ds-table-header",
        headerRows: table_resolver__WEBPACK_IMPORTED_MODULE_5__["headerRows"]({
          columns: columns
        })
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Body, {
        rows: sortedPaginatedRows.rows,
        rowKey: this.props.rowKey,
        onRow: function onRow() {
          return {
            role: "row"
          };
        }
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["PaginationRow"], {
        viewType: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["PAGINATION_VIEW"].TABLE,
        className: "ds-table-pagination",
        pagination: pagination,
        pageInputValue: pageChangeValue,
        amountOfPages: sortedPaginatedRows.amountOfPages,
        itemCount: sortedPaginatedRows.itemCount,
        itemsStart: sortedPaginatedRows.itemsStart,
        itemsEnd: sortedPaginatedRows.itemsEnd,
        onPerPageSelect: this.onPerPageSelect,
        onFirstPage: this.onFirstPage,
        onPreviousPage: this.onPreviousPage,
        onPageInput: this.onPageInput,
        onNextPage: this.onNextPage,
        onLastPage: this.onLastPage,
        onSubmit: this.onSubmit,
        id: this.props.searchField
      }));
    }
  }]);

  return DSTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var DSShortTable =
/*#__PURE__*/
function (_React$Component2) {
  _inherits(DSShortTable, _React$Component2);

  // This table is designed for smaller tables that don't need pagination or filtering,
  // and can be empty.  So log a nice "empty" value we need the columns to be dynamic
  // and relaoded every time we render
  function DSShortTable(props) {
    var _this3;

    _classCallCheck(this, DSShortTable);

    _this3 = _possibleConstructorReturn(this, _getPrototypeOf(DSShortTable).call(this, props)); // Enables our custom header formatters extensions to reactabular

    _this3.customHeaderFormatters = patternfly_react__WEBPACK_IMPORTED_MODULE_1__["customHeaderFormattersDefinition"];
    _this3.currentRows = _this3.currentRows.bind(_assertThisInitialized(_assertThisInitialized(_this3)));
    _this3.state = {
      // Sort the first column in an ascending way by default.
      sortingColumns: {
        name: {
          direction: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["TABLE_SORT_DIRECTION"].ASC,
          position: 0
        }
      }
    };
    return _this3;
  }

  _createClass(DSShortTable, [{
    key: "currentRows",
    value: function currentRows(rows, columns) {
      var sortingColumns = this.state.sortingColumns;
      return Object(recompose__WEBPACK_IMPORTED_MODULE_6__["compose"])(sortabular__WEBPACK_IMPORTED_MODULE_4__["sorter"]({
        columns: columns,
        sortingColumns: sortingColumns,
        sort: lodash__WEBPACK_IMPORTED_MODULE_3__["orderBy"],
        strategy: sortabular__WEBPACK_IMPORTED_MODULE_4__["strategies"].byProperty
      }))(rows);
    }
  }, {
    key: "render",
    value: function render() {
      var _this4 = this;

      var sortingColumns = this.state.sortingColumns;

      var getSortingColumns = function getSortingColumns() {
        return _this4.state.sortingColumns || {};
      };

      var sortableTransform = sortabular__WEBPACK_IMPORTED_MODULE_4__["sort"]({
        getSortingColumns: getSortingColumns,
        onSort: function onSort(selectedColumn) {
          _this4.setState({
            sortingColumns: sortabular__WEBPACK_IMPORTED_MODULE_4__["byColumn"]({
              sortingColumns: _this4.state.sortingColumns,
              sortingOrder: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["defaultSortingOrder"],
              selectedColumn: selectedColumn
            })
          });
        },
        // Use property or index dependening on the sortingColumns structure specified
        strategy: sortabular__WEBPACK_IMPORTED_MODULE_4__["strategies"].byProperty
      });
      var sortingFormatter = sortabular__WEBPACK_IMPORTED_MODULE_4__["header"]({
        sortableTransform: sortableTransform,
        getSortingColumns: getSortingColumns,
        strategy: sortabular__WEBPACK_IMPORTED_MODULE_4__["strategies"].byProperty
      });
      var columns = this.props.getColumns();
      var _iteratorNormalCompletion2 = true;
      var _didIteratorError2 = false;
      var _iteratorError2 = undefined;

      try {
        for (var _iterator2 = columns[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
          var column = _step2.value;

          if (column.header.formatters.length == 0) {
            column.header.formatters = [sortingFormatter];
            column.header.transforms = [sortableTransform];
          }
        }
      } catch (err) {
        _didIteratorError2 = true;
        _iteratorError2 = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
            _iterator2.return();
          }
        } finally {
          if (_didIteratorError2) {
            throw _iteratorError2;
          }
        }
      }

      var sortedRows = this.currentRows(this.props.rows, columns);
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Table"].PfProvider, {
        className: "display ds-db-table",
        striped: true,
        hover: true,
        dataTable: true,
        columns: columns,
        components: {
          header: {
            cell: function cell(cellProps) {
              return _this4.customHeaderFormatters({
                cellProps: cellProps,
                columns: columns,
                sortingColumns: sortingColumns,
                rows: sortedRows.rows
              });
            }
          }
        }
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Header, {
        className: "ds-table-header",
        headerRows: table_resolver__WEBPACK_IMPORTED_MODULE_5__["headerRows"]({
          columns: columns
        })
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Body, {
        rows: sortedRows,
        rowKey: this.props.rowKey,
        onRow: function onRow() {
          return {
            role: "row"
          };
        }
      })));
    }
  }]);

  return DSShortTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); // Properties


DSTable.propTypes = {
  getColumns: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  fieldsToSearch: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array,
  rowKey: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  rows: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array,
  toolBarSearchField: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  toolBarChildren: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.any,
  toolBarClassName: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  toolBarPlaceholder: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  toolBarLoading: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  toolBarDisableLoadingSpinner: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  toolBarPagination: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array,
  toolBarPaginationPerPage: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,
  noSearchBar: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
DSShortTable.propTypes = {
  getColumns: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  rowKey: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  rows: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array
};


/***/ }),

/***/ "./src/lib/monitor/accesslog.jsx":
/*!***************************************!*\
  !*** ./src/lib/monitor/accesslog.jsx ***!
  \***************************************/
/*! exports provided: AccessLogMonitor, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AccessLogMonitor", function() { return AccessLogMonitor; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }





var AccessLogMonitor =
/*#__PURE__*/
function (_React$Component) {
  _inherits(AccessLogMonitor, _React$Component);

  function AccessLogMonitor() {
    _classCallCheck(this, AccessLogMonitor);

    return _possibleConstructorReturn(this, _getPrototypeOf(AccessLogMonitor).apply(this, arguments));
  }

  _createClass(AccessLogMonitor, [{
    key: "componentDidUpdate",
    value: function componentDidUpdate() {
      // Set the textarea to be scrolled down to the bottom
      var textarea = document.getElementById('accesslog-area');
      textarea.scrollTop = textarea.scrollHeight;
    }
  }, {
    key: "componentDidMount",
    value: function componentDidMount() {
      this.props.enableTree();
    }
  }, {
    key: "render",
    value: function render() {
      var _this = this;

      var spinner = "";

      if (this.props.reloading) {
        spinner = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Spinner"], {
          inline: true,
          loading: true,
          size: "sm"
        }), "Reloading access log...");
      }

      var contRefreshCheckbox = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "checkbox",
        className: "ds-sm-left-margin",
        onChange: this.props.handleRefresh
      });

      if (this.props.refreshing) {
        contRefreshCheckbox = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
          type: "checkbox",
          className: "ds-sm-left-margin",
          defaultChecked: true,
          onChange: this.props.handleRefresh
        });
      }

      var selectLines = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", {
        htmlFor: "accesslog-lines"
      }, " Log Lines To Show"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
        className: "btn btn-default dropdown ds-left-margin",
        onChange: this.props.handleChange,
        id: "accesslog-lines",
        value: this.props.lines
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "50"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "100"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "200"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "300"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "400"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "500"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "1000"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "2000"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "5000"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "10000"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "50000")));
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        id: "monitor-log-access-page"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], {
        className: "ds-suffix-header"
      }, "Access Log", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh access log",
        onClick: function onClick() {
          return _this.props.reload(_this.props.reload);
        }
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 9,
        className: "ds-float-left"
      }, spinner)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top-lg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 6
      }, selectLines), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 6
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-float-right"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", null, contRefreshCheckbox, " Continuously Refresh")))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("textarea", {
        id: "accesslog-area",
        className: "ds-logarea",
        value: this.props.data,
        readOnly: true
      }));
    }
  }]);

  return AccessLogMonitor;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); // Props and defaultProps

AccessLogMonitor.propTypes = {
  data: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  handleRefresh: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  reloading: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  refreshing: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  lines: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
AccessLogMonitor.defaultProps = {
  data: "",
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"],
  handleRefresh: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"],
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"],
  reloading: false,
  refreshing: false,
  line: "50",
  enableTree: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (AccessLogMonitor);

/***/ }),

/***/ "./src/lib/monitor/auditfaillog.jsx":
/*!******************************************!*\
  !*** ./src/lib/monitor/auditfaillog.jsx ***!
  \******************************************/
/*! exports provided: AuditFailLogMonitor, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuditFailLogMonitor", function() { return AuditFailLogMonitor; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }





var AuditFailLogMonitor =
/*#__PURE__*/
function (_React$Component) {
  _inherits(AuditFailLogMonitor, _React$Component);

  function AuditFailLogMonitor() {
    _classCallCheck(this, AuditFailLogMonitor);

    return _possibleConstructorReturn(this, _getPrototypeOf(AuditFailLogMonitor).apply(this, arguments));
  }

  _createClass(AuditFailLogMonitor, [{
    key: "componentDidUpdate",
    value: function componentDidUpdate() {
      // Set the textarea to be scrolled down to the bottom
      var textarea = document.getElementById('auditfaillog-area');
      textarea.scrollTop = textarea.scrollHeight;
    }
  }, {
    key: "componentDidMount",
    value: function componentDidMount() {
      this.props.enableTree();
    }
  }, {
    key: "render",
    value: function render() {
      var _this = this;

      var spinner = "";

      if (this.props.reloading) {
        spinner = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Spinner"], {
          inline: true,
          loading: true,
          size: "sm"
        }), "Reloading audit failure log...");
      }

      var contRefreshCheckbox = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "checkbox",
        className: "ds-sm-left-margin",
        onChange: this.props.handleRefresh
      });

      if (this.props.refreshing) {
        contRefreshCheckbox = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
          type: "checkbox",
          className: "ds-sm-left-margin",
          defaultChecked: true,
          onChange: this.props.handleRefresh
        });
      }

      var selectLines = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", {
        htmlFor: "auditfaillog-lines"
      }, " Log Lines To Show"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
        className: "btn btn-default dropdown ds-left-margin",
        onChange: this.props.handleChange,
        id: "auditfaillog-lines",
        value: this.props.lines
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "50"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "100"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "200"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "300"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "400"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "500"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "1000"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "2000"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "5000"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "10000"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "50000")));
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        id: "monitor-log-auditfail-page"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], {
        className: "ds-suffix-header"
      }, "Audit Failure Log", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh audit failure log",
        onClick: function onClick() {
          return _this.props.reload(_this.props.reload);
        }
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 8,
        className: "ds-float-left"
      }, spinner)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top-lg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 6
      }, selectLines), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 6
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-float-right"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", null, contRefreshCheckbox, " Continuously Refresh")))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("textarea", {
        id: "auditfaillog-area",
        className: "ds-logarea",
        value: this.props.data,
        readOnly: true
      }));
    }
  }]);

  return AuditFailLogMonitor;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); // Props and defaultProps

AuditFailLogMonitor.propTypes = {
  data: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  handleRefresh: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  reloading: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  refreshing: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  lines: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
AuditFailLogMonitor.defaultProps = {
  data: "",
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"],
  handleRefresh: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"],
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"],
  reloading: false,
  refreshing: false,
  line: "50",
  enableTree: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (AuditFailLogMonitor);

/***/ }),

/***/ "./src/lib/monitor/auditlog.jsx":
/*!**************************************!*\
  !*** ./src/lib/monitor/auditlog.jsx ***!
  \**************************************/
/*! exports provided: AuditLogMonitor, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuditLogMonitor", function() { return AuditLogMonitor; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }





var AuditLogMonitor =
/*#__PURE__*/
function (_React$Component) {
  _inherits(AuditLogMonitor, _React$Component);

  function AuditLogMonitor() {
    _classCallCheck(this, AuditLogMonitor);

    return _possibleConstructorReturn(this, _getPrototypeOf(AuditLogMonitor).apply(this, arguments));
  }

  _createClass(AuditLogMonitor, [{
    key: "componentDidUpdate",
    value: function componentDidUpdate() {
      // Set the textarea to be scrolled down to the bottom
      var textarea = document.getElementById('auditlog-area');
      textarea.scrollTop = textarea.scrollHeight;
    }
  }, {
    key: "componentDidMount",
    value: function componentDidMount() {
      this.props.enableTree();
    }
  }, {
    key: "render",
    value: function render() {
      var _this = this;

      var spinner = "";

      if (this.props.reloading) {
        spinner = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Spinner"], {
          inline: true,
          loading: true,
          size: "sm"
        }), "Reloading audit log...");
      }

      var contRefreshCheckbox = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "checkbox",
        className: "ds-sm-left-margin",
        onChange: this.props.handleRefresh
      });

      if (this.props.refreshing) {
        contRefreshCheckbox = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
          type: "checkbox",
          className: "ds-sm-left-margin",
          defaultChecked: true,
          onChange: this.props.handleRefresh
        });
      }

      var selectLines = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", {
        htmlFor: "auditlog-lines"
      }, " Log Lines To Show"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
        className: "btn btn-default dropdown ds-left-margin",
        onChange: this.props.handleChange,
        id: "auditlog-lines",
        value: this.props.lines
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "50"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "100"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "200"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "300"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "400"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "500"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "1000"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "2000"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "5000"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "10000"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "50000")));
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        id: "monitor-log-audit-page"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], {
        className: "ds-suffix-header"
      }, "Audit Log", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh audit log",
        onClick: function onClick() {
          return _this.props.reload(_this.props.reload);
        }
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 8,
        className: "ds-float-left"
      }, spinner)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top-lg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 6
      }, selectLines), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 6
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-float-right"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", null, contRefreshCheckbox, " Continuously Refresh")))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("textarea", {
        id: "auditlog-area",
        className: "ds-logarea",
        value: this.props.data,
        readOnly: true
      }));
    }
  }]);

  return AuditLogMonitor;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); // Props and defaultProps

AuditLogMonitor.propTypes = {
  data: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  handleRefresh: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  reloading: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  refreshing: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  lines: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
AuditLogMonitor.defaultProps = {
  data: "",
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"],
  handleRefresh: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"],
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"],
  reloading: false,
  refreshing: false,
  line: "50",
  enableTree: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (AuditLogMonitor);

/***/ }),

/***/ "./src/lib/monitor/chainingMonitor.jsx":
/*!*********************************************!*\
  !*** ./src/lib/monitor/chainingMonitor.jsx ***!
  \*********************************************/
/*! exports provided: ChainingMonitor, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChainingMonitor", function() { return ChainingMonitor; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }





var ChainingMonitor =
/*#__PURE__*/
function (_React$Component) {
  _inherits(ChainingMonitor, _React$Component);

  function ChainingMonitor() {
    _classCallCheck(this, ChainingMonitor);

    return _possibleConstructorReturn(this, _getPrototypeOf(ChainingMonitor).apply(this, arguments));
  }

  _createClass(ChainingMonitor, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.props.enableTree();
    }
  }, {
    key: "render",
    value: function render() {
      var _this = this;

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        id: "monitor-server-page",
        className: "container-fluid"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 12,
        className: "ds-word-wrap"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], {
        className: "ds-suffix-header"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
        type: "fa",
        name: "link"
      }), " ", this.props.suffix, " (", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("i", null, this.props.bename), ")", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh chaining monitor",
        onClick: function onClick() {
          return _this.props.reload(_this.props.suffix);
        }
      })))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-lg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], null, "Add Operations")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.nsaddcount,
        size: "35",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], null, "Delete Operations")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.nsdeletecount,
        size: "35",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], null, "Modify Operations")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.nsmodifycount,
        size: "35",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], null, "ModRDN Operations")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.nsrenamecount,
        size: "35",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], null, "Base Searches")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.nssearchbasecount,
        size: "35",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], null, "One-Level Searches")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.nssearchonelevelcount,
        size: "35",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], null, "Subtree Searches")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.nssearchsubtreecount,
        size: "35",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], null, "Abandon Operations")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.nsabandoncount,
        size: "35",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], null, "Bind Operations")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.nsbindcount,
        size: "35",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], null, "Unbind Operations")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.nsunbindcount,
        size: "35",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], null, "Compare Operations")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.nscomparecount,
        size: "35",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], null, "Outgoing Connections")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.nsopenopconnectioncount,
        size: "35",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], null, "Outgoing Bind Connections")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.nsopenbindconnectioncount,
        size: "35",
        readOnly: true
      })))));
    }
  }]);

  return ChainingMonitor;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
ChainingMonitor.propTypes = {
  suffix: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  bename: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  data: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
ChainingMonitor.defaultProps = {
  suffix: "",
  bename: "",
  data: {},
  enableTree: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (ChainingMonitor);

/***/ }),

/***/ "./src/lib/monitor/dbMonitor.jsx":
/*!***************************************!*\
  !*** ./src/lib/monitor/dbMonitor.jsx ***!
  \***************************************/
/*! exports provided: DatabaseMonitor, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DatabaseMonitor", function() { return DatabaseMonitor; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! d3 */ "./node_modules/d3/d3.js");
/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(d3__WEBPACK_IMPORTED_MODULE_4__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }






var DatabaseMonitor =
/*#__PURE__*/
function (_React$Component) {
  _inherits(DatabaseMonitor, _React$Component);

  function DatabaseMonitor(props) {
    var _this;

    _classCallCheck(this, DatabaseMonitor);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(DatabaseMonitor).call(this, props));
    _this.state = {
      activeKey: 1,
      disableTabs: false
    };
    _this.handleNavSelect = _this.handleNavSelect.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(DatabaseMonitor, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.props.enableTree();
    }
  }, {
    key: "handleNavSelect",
    value: function handleNavSelect(key) {
      this.setState({
        activeKey: key
      });
    }
  }, {
    key: "render",
    value: function render() {
      var badColor = "#d01c8b";
      var warningColor = "#ffc107";
      var goodColor = "#4dac26";
      var emptyColor = "#d3d3d3";
      var donutColorDB = goodColor;
      var donutColorNDN = goodColor;
      var donutColorNDNUtil = goodColor;
      var donutColorNDNMiss = emptyColor;
      var donutColorDBMiss = emptyColor;
      var dbcachehit = parseInt(this.props.data.dbcachehitratio[0]);
      var ndncachehit = parseInt(this.props.data.normalizeddncachehitratio[0]);
      var ndncachemax = parseInt(this.props.data.maxnormalizeddncachesize[0]);
      var ndncachecurr = parseInt(this.props.data.currentnormalizeddncachesize[0]);
      var utilratio = Math.round(ndncachecurr / ndncachemax * 100); // Database cache

      if (dbcachehit > 89) {
        donutColorDB = goodColor;
      } else if (dbcachehit > 74) {
        donutColorDB = warningColor;
      } else {
        if (dbcachehit < 50) {
          // Pie chart shows higher catagory, so we need to highlight the misses
          donutColorDBMiss = badColor;
        } else {
          donutColorDB = badColor;
        }
      } // NDN cache ratio


      if (ndncachehit > 89) {
        donutColorNDN = goodColor;
      } else if (ndncachehit > 74) {
        donutColorNDN = warningColor;
      } else {
        if (ndncachehit < 50) {
          // Pie chart shows higher catagory, so we need to highlight the misses
          donutColorNDNMiss = badColor;
        } else {
          donutColorNDN = badColor;
        }
      } // NDN cache utilization


      if (ndncachehit < 90) {
        if (utilratio > 95) {
          donutColorNDNUtil = badColor;
        } else if (utilratio > 90) {
          donutColorNDNUtil = warningColor;
        }
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        id: "db-content"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 12,
        className: "ds-word-wrap"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], {
        className: "ds-suffix-header"
      }, "Database Performance Statistics", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh database monitor",
        onClick: this.props.reload
      })))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabContainer"], {
        className: "ds-margin-top-lg",
        id: "basic-tabs-pf",
        onSelect: this.handleNavSelect,
        activeKey: this.state.activeKey
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Nav"], {
        bsClass: "nav nav-tabs nav-tabs-pf"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["NavItem"], {
        eventKey: 1
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Database Cache'
        }
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["NavItem"], {
        eventKey: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Normalized DN Cache'
        }
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabContent"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabPane"], {
        eventKey: 1
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-lg ds-margin-left-piechart"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["DonutChart"], {
        id: "monitor-db-cache-hitratio-chart",
        size: {
          width: 180,
          height: 120
        },
        data: {
          columns: [['miss', 100 - dbcachehit], ['hit', dbcachehit]],
          colors: {
            'hit': donutColorDB,
            'miss': donutColorDBMiss
          },
          order: null
        },
        title: {
          type: 'percent'
        },
        legend: {
          show: true,
          position: 'right'
        }
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", {
        className: "ds-left-margin"
      }, "DB Cache Hit Ratio")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Database Cache Hit Ratio"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.dbcachehitratio,
        size: "28",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Database Cache Tries"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.dbcachetries,
        size: "28",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Database Cache Hits"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.dbcachehits,
        size: "28",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Cache Pages Read"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.dbcachepagein,
        size: "28",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Cache Pages Written"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.dbcachepageout,
        size: "28",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Read-Only Page Evictions"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.dbcacheroevict,
        size: "28",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Read-Write Page Evictions"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.dbcacherwevict,
        size: "28",
        readOnly: true
      }))))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabPane"], {
        eventKey: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-lg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-container"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-divider"
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-left-margin"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["DonutChart"], {
        id: "monitor-db-cache-ndn-hitratio-chart",
        size: {
          width: 180,
          height: 120
        },
        data: {
          columns: [['miss', 100 - ndncachehit], ['hit', ndncachehit]],
          colors: {
            'hit': donutColorNDN,
            'miss': donutColorNDNMiss
          },
          order: null
        },
        title: {
          type: 'percent'
        },
        legend: {
          show: true,
          position: 'right'
        }
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "NDN Cache Hit Ratio")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-divider"
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-divider"
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-chart-right"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["PieChart"], {
        id: "monitor-db-cache-ndn-util-chart",
        size: {
          width: 180,
          height: 120
        },
        data: {
          columns: [['Used', utilratio], ['Unused', 100 - utilratio]],
          colors: {
            'Used': donutColorNDNUtil,
            'Unused': emptyColor
          },
          order: null
        },
        pie: {
          label: {
            format: function format(value, ratio, id) {
              return d3__WEBPACK_IMPORTED_MODULE_4___default.a.format(',%')(value / 100);
            }
          }
        },
        title: {
          type: 'pie'
        },
        legend: {
          show: true,
          position: 'right'
        },
        unloadBeforeLoad: true
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "NDN Cache Utilization"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, "(DN's in cache: ", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, this.props.data.currentnormalizeddncachecount), ")"))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "NDN Cache Hit Ratio"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.normalizeddncachehitratio,
        size: "28",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "NDN Cache Tries"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.normalizeddncachetries,
        size: "28",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "NDN Cache Hits"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.normalizeddncachehits,
        size: "28",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "NDN Cache Evictions"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.normalizeddncacheevictions,
        size: "28",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "NDN Cache Max Size"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.maxnormalizeddncachesize,
        size: "28",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "NDN Current Cache Size"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.currentnormalizeddncachesize,
        size: "28",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "NDN Cache DN Count"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.currentnormalizeddncachecount,
        size: "28",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "NDN Cache Thread Size"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.normalizeddncachethreadsize,
        size: "28",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "NDN Cache Thread Slots"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.normalizeddncachethreadslots,
        size: "28",
        readOnly: true
      }))))))))));
    }
  }]);

  return DatabaseMonitor;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); // Prop types and defaults

DatabaseMonitor.propTypes = {
  data: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
DatabaseMonitor.defaultProps = {
  data: {},
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"],
  enableTree: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (DatabaseMonitor);

/***/ }),

/***/ "./src/lib/monitor/errorlog.jsx":
/*!**************************************!*\
  !*** ./src/lib/monitor/errorlog.jsx ***!
  \**************************************/
/*! exports provided: ErrorLogMonitor, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ErrorLogMonitor", function() { return ErrorLogMonitor; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }





var ErrorLogMonitor =
/*#__PURE__*/
function (_React$Component) {
  _inherits(ErrorLogMonitor, _React$Component);

  function ErrorLogMonitor() {
    _classCallCheck(this, ErrorLogMonitor);

    return _possibleConstructorReturn(this, _getPrototypeOf(ErrorLogMonitor).apply(this, arguments));
  }

  _createClass(ErrorLogMonitor, [{
    key: "componentDidUpdate",
    value: function componentDidUpdate() {
      // Set the textarea to be scrolled down to the bottom
      var textarea = document.getElementById('errorslog-area');
      textarea.scrollTop = textarea.scrollHeight;
    }
  }, {
    key: "componentDidMount",
    value: function componentDidMount() {
      this.props.enableTree();
    }
  }, {
    key: "render",
    value: function render() {
      var _this = this;

      var spinner = "";

      if (this.props.reloading) {
        spinner = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Spinner"], {
          inline: true,
          loading: true,
          size: "sm"
        }), "Reloading errors log...");
      }

      var contRefreshCheckbox = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "checkbox",
        className: "ds-sm-left-margin",
        onChange: this.props.handleRefresh
      });

      if (this.props.refreshing) {
        contRefreshCheckbox = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
          type: "checkbox",
          className: "ds-sm-left-margin",
          defaultChecked: true,
          onChange: this.props.handleRefresh
        });
      }

      var selectLines = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", {
        htmlFor: "errorlog-lines"
      }, " Log Lines To Show"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
        className: "btn btn-default dropdown ds-left-margin",
        onChange: this.props.handleChange,
        id: "errorlog-lines",
        value: this.props.lines
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "50"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "100"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "200"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "300"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "400"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "500"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "1000"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "2000"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "5000"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "10000"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "50000")));
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        id: "monitor-log-errors-page"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], {
        className: "ds-suffix-header"
      }, "Errors Log", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh errors log",
        onClick: function onClick() {
          return _this.props.reload(_this.props.reload);
        }
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 9,
        className: "ds-float-left"
      }, spinner)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top-lg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 5
      }, selectLines), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "dropdown"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", {
        htmlFor: "errorslog-sev-level"
      }, "Filter"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
        className: "btn btn-default dropdown ds-left-margin",
        onChange: this.props.handleSevLevel
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "Everything"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "Error Messages"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "Info Messages"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
        disabled: true
      }, "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "Emergency"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "Alert"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "Critical"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "Error"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "Warning"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "Notice"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "Info"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "Debug")))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-float-right"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", null, contRefreshCheckbox, " Continuously Refresh")))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("textarea", {
        id: "errorslog-area",
        className: "ds-logarea",
        value: this.props.data,
        readOnly: true
      }));
    }
  }]);

  return ErrorLogMonitor;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); // Props and defaultProps

ErrorLogMonitor.propTypes = {
  data: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  reloading: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  handleSevLevel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  refreshing: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  handleRefresh: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  lines: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
ErrorLogMonitor.defaultProps = {
  data: "",
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"],
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"],
  reloading: false,
  handleSevLevel: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"],
  refreshing: false,
  handleRefresh: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"],
  lines: "50",
  enableTree: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (ErrorLogMonitor);

/***/ }),

/***/ "./src/lib/monitor/monitorModals.jsx":
/*!*******************************************!*\
  !*** ./src/lib/monitor/monitorModals.jsx ***!
  \*******************************************/
/*! exports provided: TaskLogModal, AgmtDetailsModal, ReplLagReportModal, ReplLoginModal, WinsyncAgmtDetailsModal, ConflictCompareModal */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TaskLogModal", function() { return TaskLogModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AgmtDetailsModal", function() { return AgmtDetailsModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReplLagReportModal", function() { return ReplLagReportModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReplLoginModal", function() { return ReplLoginModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WinsyncAgmtDetailsModal", function() { return WinsyncAgmtDetailsModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConflictCompareModal", function() { return ConflictCompareModal; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _monitorTables_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./monitorTables.jsx */ "./src/lib/monitor/monitorTables.jsx");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_5__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }








var ReplLoginModal =
/*#__PURE__*/
function (_React$Component) {
  _inherits(ReplLoginModal, _React$Component);

  function ReplLoginModal() {
    _classCallCheck(this, ReplLoginModal);

    return _possibleConstructorReturn(this, _getPrototypeOf(ReplLoginModal).apply(this, arguments));
  }

  _createClass(ReplLoginModal, [{
    key: "render",
    value: function render() {
      var _this$props = this.props,
          showModal = _this$props.showModal,
          closeHandler = _this$props.closeHandler,
          handleChange = _this$props.handleChange,
          doReport = _this$props.doReport,
          spinning = _this$props.spinning,
          error = _this$props.error;
      var spinner = "";

      if (spinning) {
        spinner = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
          className: "ds-margin-top"
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-modal-spinner"
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Spinner"], {
          loading: true,
          inline: true,
          size: "lg"
        }), "Authenticating to all the replicas ..."));
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Replication Login Credentials")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null, "In order to get the replication agreement lag times and state the authentication credentials to the remote replicas must be provided. This only works if the bind credentials used are valid on all the replicas."), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Bind DN")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: error.binddn ? "ds-input-auto-bad" : "ds-input-auto",
        onChange: handleChange,
        defaultValue: "cn=Directory Manager",
        type: "text",
        id: "binddn"
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Password")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: error.bindpw ? "ds-input-auto-bad" : "ds-input-auto",
        onChange: handleChange,
        type: "password",
        id: "bindpw"
      }))), spinner)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Close"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: doReport
      }, "Get Report"))));
    }
  }]);

  return ReplLoginModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var ReplLagReportModal =
/*#__PURE__*/
function (_React$Component2) {
  _inherits(ReplLagReportModal, _React$Component2);

  function ReplLagReportModal() {
    _classCallCheck(this, ReplLagReportModal);

    return _possibleConstructorReturn(this, _getPrototypeOf(ReplLagReportModal).apply(this, arguments));
  }

  _createClass(ReplLagReportModal, [{
    key: "render",
    value: function render() {
      var _this$props2 = this.props,
          showModal = _this$props2.showModal,
          closeHandler = _this$props2.closeHandler,
          agmts = _this$props2.agmts,
          pokeAgmt = _this$props2.pokeAgmt,
          viewAgmt = _this$props2.viewAgmt;
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        backdrop: "static",
        contentClassName: "ds-lag-report",
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Replication Lag Report")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorTables_jsx__WEBPACK_IMPORTED_MODULE_4__["LagReportTable"], {
        agmts: agmts,
        pokeAgmt: pokeAgmt,
        viewAgmt: viewAgmt
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Close")));
    }
  }]);

  return ReplLagReportModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var TaskLogModal =
/*#__PURE__*/
function (_React$Component3) {
  _inherits(TaskLogModal, _React$Component3);

  function TaskLogModal() {
    _classCallCheck(this, TaskLogModal);

    return _possibleConstructorReturn(this, _getPrototypeOf(TaskLogModal).apply(this, arguments));
  }

  _createClass(TaskLogModal, [{
    key: "render",
    value: function render() {
      var _this$props3 = this.props,
          showModal = _this$props3.showModal,
          closeHandler = _this$props3.closeHandler,
          logData = _this$props3.logData;
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Task Log")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("textarea", {
        className: "ds-logarea",
        value: logData,
        readOnly: true
      })))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Close"))));
    }
  }]);

  return TaskLogModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var AgmtDetailsModal =
/*#__PURE__*/
function (_React$Component4) {
  _inherits(AgmtDetailsModal, _React$Component4);

  function AgmtDetailsModal() {
    _classCallCheck(this, AgmtDetailsModal);

    return _possibleConstructorReturn(this, _getPrototypeOf(AgmtDetailsModal).apply(this, arguments));
  }

  _createClass(AgmtDetailsModal, [{
    key: "render",
    value: function render() {
      var _this$props4 = this.props,
          showModal = _this$props4.showModal,
          closeHandler = _this$props4.closeHandler,
          agmt = _this$props4.agmt; // Format status dates from agmt

      var convertedDate = {};
      var dateAttrs = ['last-update-start', 'last-update-end', 'last-init-start', 'last-init-end'];

      for (var _i = 0; _i < dateAttrs.length; _i++) {
        var attr = dateAttrs[_i];

        if (agmt[attr] == "19700101000000Z") {
          convertedDate[attr] = "Unavailable";
        } else {
          convertedDate[attr] = Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["get_date_string"])(agmt[attr]);
        }
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Replication Agreement Details (", agmt['agmt-name'], ")")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Replica")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        size: "22",
        value: agmt['replica'],
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Agreement Enabled")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        size: "22",
        value: agmt['replica-enabled'],
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Last Init Started")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        size: "22",
        value: convertedDate['last-init-start'],
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Last Init Ended")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        size: "22",
        value: convertedDate['last-init-end'],
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Last Initialization Status")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("textarea", {
        value: agmt['last-init-status'],
        rows: "5",
        className: "ds-agmt-textarea",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Replication In Progress")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        size: "22",
        value: agmt['update-in-progress'],
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Changes Sent")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        size: "22",
        value: agmt['number-changes-sent'],
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Last Update Started")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        size: "22",
        value: convertedDate['last-update-start'],
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Last Update Ended")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        size: "22",
        value: convertedDate['last-update-end'],
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Last Update Status")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("textarea", {
        value: agmt['last-update-status'],
        rows: "5",
        className: "ds-agmt-textarea",
        readOnly: true
      }))))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-primary ds-float-left",
        onClick: this.props.initAgmt
      }, "Initialize Agreement"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Close"))));
    }
  }]);

  return AgmtDetailsModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var WinsyncAgmtDetailsModal =
/*#__PURE__*/
function (_React$Component5) {
  _inherits(WinsyncAgmtDetailsModal, _React$Component5);

  function WinsyncAgmtDetailsModal() {
    _classCallCheck(this, WinsyncAgmtDetailsModal);

    return _possibleConstructorReturn(this, _getPrototypeOf(WinsyncAgmtDetailsModal).apply(this, arguments));
  }

  _createClass(WinsyncAgmtDetailsModal, [{
    key: "render",
    value: function render() {
      var _this$props5 = this.props,
          showModal = _this$props5.showModal,
          closeHandler = _this$props5.closeHandler,
          agmt = _this$props5.agmt; // Format status dates from agmt

      var dateAttrs = ['last-update-start', 'last-update-end', 'last-init-start', 'last-init-end'];

      for (var _i2 = 0; _i2 < dateAttrs.length; _i2++) {
        var attr = dateAttrs[_i2];

        if (agmt[attr] == "19700101000000Z") {
          agmt[attr] = "Unavailable";
        } else {
          agmt[attr] = Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["get_date_string"])(agmt[attr]);
        }
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Replication Winsync Agreement Details (", agmt['agmt-name'], ")")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Windows Replica")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        size: "22",
        value: agmt['replica'],
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Agreement Enabled")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        size: "22",
        value: agmt['replica-enabled'],
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Last Init Started")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        size: "22",
        value: agmt['last-init-start'],
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Last Init Ended")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        size: "22",
        value: agmt['last-init-end'],
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Last Initialization Status")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("textarea", {
        value: agmt['last-init-status'],
        rows: "5",
        className: "ds-agmt-textarea",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Replication In Progress")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        size: "22",
        value: agmt['update-in-progress'],
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Changes Sent")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        size: "22",
        value: agmt['number-changes-sent'],
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Last Update Started")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        size: "22",
        value: agmt['last-update-start'],
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Last Update Ended")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        size: "22",
        value: agmt['last-update-end'],
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Last Update Status")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("textarea", {
        value: agmt['last-update-status'],
        rows: "5",
        className: "ds-agmt-textarea",
        readOnly: true
      }))))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-primary ds-float-left",
        onClick: this.props.initAgmt
      }, "Initialize Agreement"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Close"))));
    }
  }]);

  return WinsyncAgmtDetailsModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var ConflictCompareModal =
/*#__PURE__*/
function (_React$Component6) {
  _inherits(ConflictCompareModal, _React$Component6);

  function ConflictCompareModal() {
    _classCallCheck(this, ConflictCompareModal);

    return _possibleConstructorReturn(this, _getPrototypeOf(ConflictCompareModal).apply(this, arguments));
  }

  _createClass(ConflictCompareModal, [{
    key: "render",
    value: function render() {
      var _this$props6 = this.props,
          showModal = _this$props6.showModal,
          conflictEntry = _this$props6.conflictEntry,
          validEntry = _this$props6.validEntry,
          swapFunc = _this$props6.swapFunc,
          convertFunc = _this$props6.convertFunc,
          deleteFunc = _this$props6.deleteFunc,
          handleConvertChange = _this$props6.handleConvertChange,
          closeHandler = _this$props6.closeHandler;
      var ignoreAttrs = ['createtimestamp', 'creatorsname', 'modifytimestamp', 'modifiersname', 'entryid', 'entrydn', 'parentid', 'numsubordinates'];
      var conflict = "dn: " + conflictEntry.dn + "\n";
      var valid = "dn: " + validEntry.dn + "\n";
      var conflictChildren = "0";
      var validChildren = "0";

      for (var key in conflictEntry.attrs) {
        if (key == "numsubordinates") {
          conflictChildren = conflictEntry.attrs[key];
        }

        if (!ignoreAttrs.includes(key)) {
          var _iteratorNormalCompletion = true;
          var _didIteratorError = false;
          var _iteratorError = undefined;

          try {
            for (var _iterator = conflictEntry.attrs[key][Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
              var attr = _step.value;
              conflict += key + ": " + attr + "\n";
            }
          } catch (err) {
            _didIteratorError = true;
            _iteratorError = err;
          } finally {
            try {
              if (!_iteratorNormalCompletion && _iterator.return != null) {
                _iterator.return();
              }
            } finally {
              if (_didIteratorError) {
                throw _iteratorError;
              }
            }
          }
        }
      }

      for (var _key in validEntry.attrs) {
        if (_key == "numsubordinates") {
          validChildren = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("font", {
            color: "red"
          }, validEntry.attrs[_key]);
        }

        if (!ignoreAttrs.includes(_key)) {
          var _iteratorNormalCompletion2 = true;
          var _didIteratorError2 = false;
          var _iteratorError2 = undefined;

          try {
            for (var _iterator2 = validEntry.attrs[_key][Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
              var _attr = _step2.value;
              valid += _key + ": " + _attr + "\n";
            }
          } catch (err) {
            _didIteratorError2 = true;
            _iteratorError2 = err;
          } finally {
            try {
              if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
                _iterator2.return();
              }
            } finally {
              if (_didIteratorError2) {
                throw _iteratorError2;
              }
            }
          }
        }
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        className: "ds-modal-wide",
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Resolve Replication Conflicts")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-modal-row"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 5
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h3", null, "Conflict Entry")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("textarea", {
        className: "ds-conflict",
        value: conflict,
        readOnly: true
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null, "Child Entries: ", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, conflictChildren)))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 1
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 5
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h3", null, "Valid Entry")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("textarea", {
        className: "ds-conflict",
        value: valid,
        readOnly: true
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null, "Child Entries: ", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, validChildren))))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h4", null, "You can convert the ", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Conflict Entry"), " into a new valid entry by providing a new RDN value below, like \"", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("i", null, "cn=NEW_RDN"), "\"")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        className: "ds-conflict-btn",
        onClick: function onClick() {
          convertFunc(conflictEntry.dn);
        }
      }, "Convert Conflict")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        onChange: handleConvertChange,
        type: "text",
        placeholder: "Enter new RDN here",
        size: "30"
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h4", null, "Or, you can replace, or swap, the ", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Valid Entry"), " (and its child entries) with the ", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Conflict Entry"))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        className: "ds-conflict-btn",
        onClick: function onClick() {
          swapFunc(conflictEntry.dn);
        }
      }, "Swap Entries"))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h4", null, "Or, you can delete the ", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Conflict Entry"))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        className: "ds-conflict-btn",
        onClick: function onClick() {
          deleteFunc(conflictEntry.dn);
        }
      }, "Delete Conflict")))))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Close"))));
    }
  }]);

  return ConflictCompareModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); // Prototypes and defaultProps


AgmtDetailsModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  agmt: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object,
  initAgmt: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func
};
AgmtDetailsModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  agmt: {},
  initAgmt: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
WinsyncAgmtDetailsModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  agmt: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object,
  initAgmt: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func
};
WinsyncAgmtDetailsModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  agmt: {},
  initAgmt: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
TaskLogModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  logData: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
TaskLogModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  agreement: ""
};
ReplLoginModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  doReport: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  error: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object
};
ReplLoginModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  doReport: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  spinning: false,
  error: {}
};
ConflictCompareModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  conflictEntry: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object,
  validEntry: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object,
  swapFunc: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  convertFunc: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func
};
ConflictCompareModal.defaultProps = {
  showModal: false,
  conflictEntry: {},
  validEntry: {},
  swapFunc: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  convertFunc: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};


/***/ }),

/***/ "./src/lib/monitor/monitorTables.jsx":
/*!*******************************************!*\
  !*** ./src/lib/monitor/monitorTables.jsx ***!
  \*******************************************/
/*! exports provided: ConnectionTable, AgmtTable, WinsyncAgmtTable, LagReportTable, CleanALLRUVTable, AbortCleanALLRUVTable, ConflictTable, GlueTable, DiskTable */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConnectionTable", function() { return ConnectionTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AgmtTable", function() { return AgmtTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WinsyncAgmtTable", function() { return WinsyncAgmtTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LagReportTable", function() { return LagReportTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CleanALLRUVTable", function() { return CleanALLRUVTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AbortCleanALLRUVTable", function() { return AbortCleanALLRUVTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConflictTable", function() { return ConflictTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GlueTable", function() { return GlueTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DiskTable", function() { return DiskTable; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dsTable.jsx */ "./src/lib/dsTable.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }








var AbortCleanALLRUVTable =
/*#__PURE__*/
function (_React$Component) {
  _inherits(AbortCleanALLRUVTable, _React$Component);

  function AbortCleanALLRUVTable(props) {
    var _this;

    _classCallCheck(this, AbortCleanALLRUVTable);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(AbortCleanALLRUVTable).call(this, props));
    _this.state = {
      rowKey: "name",
      columns: [{
        property: "name",
        header: {
          label: "Task Name",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "created",
        header: {
          label: "Created",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "rid",
        header: {
          label: "Replica ID",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "status",
        header: {
          label: "Status",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "log",
        header: {
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [function (value, _ref) {
            var rowData = _ref.rowData;
            return [react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.name[0]
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
              onClick: function onClick() {
                _this.props.viewLog(_this.props.viewLog(rowData.name));
              }
            }, "View Log"))];
          }]
        }
      }]
    };
    _this.getColumns = _this.getColumns.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.getSingleColumn = _this.getSingleColumn.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  } // Constructor


  _createClass(AbortCleanALLRUVTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "Abort CleanAllRUV Tasks",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "render",
    value: function render() {
      var rows = [];
      var _iteratorNormalCompletion = true;
      var _didIteratorError = false;
      var _iteratorError = undefined;

      try {
        for (var _iterator = this.props.tasks[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
          var task = _step.value;
          rows.push({
            'name': task.cn,
            'created': Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["get_date_string"])(task.nstaskcreated),
            'rid': task['replica-id'],
            'status': task.nstaskstatus
          });
        }
      } catch (err) {
        _didIteratorError = true;
        _iteratorError = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion && _iterator.return != null) {
            _iterator.return();
          }
        } finally {
          if (_didIteratorError) {
            throw _iteratorError;
          }
        }
      }

      var taskTable;

      if (rows.length < 1) {
        taskTable = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          noSearchBar: true,
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No Tasks"
          }]
        });
      } else {
        taskTable = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          noSearchBar: true,
          getColumns: this.getColumns,
          rowKey: this.state.rowKey,
          rows: rows,
          toolBarPagination: [6, 12, 24, 48, 96],
          toolBarPaginationPerPage: 6
        });
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, taskTable);
    }
  }]);

  return AbortCleanALLRUVTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var CleanALLRUVTable =
/*#__PURE__*/
function (_React$Component2) {
  _inherits(CleanALLRUVTable, _React$Component2);

  function CleanALLRUVTable(props) {
    var _this2;

    _classCallCheck(this, CleanALLRUVTable);

    _this2 = _possibleConstructorReturn(this, _getPrototypeOf(CleanALLRUVTable).call(this, props));
    _this2.state = {
      rowKey: "name",
      columns: [{
        property: "name",
        header: {
          label: "Task Name",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "created",
        header: {
          label: "Created",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "rid",
        header: {
          label: "Replica ID",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "status",
        header: {
          label: "Status",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "log",
        header: {
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [function (value, _ref2) {
            var rowData = _ref2.rowData;
            return [react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.name[0]
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
              onClick: function onClick() {
                _this2.props.viewLog(rowData.name);
              }
            }, "View Log"))];
          }]
        }
      }]
    };
    _this2.getColumns = _this2.getColumns.bind(_assertThisInitialized(_assertThisInitialized(_this2)));
    _this2.getSingleColumn = _this2.getSingleColumn.bind(_assertThisInitialized(_assertThisInitialized(_this2)));
    return _this2;
  } // Constructor


  _createClass(CleanALLRUVTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "CleanAllRUV Tasks",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "render",
    value: function render() {
      var rows = [];
      var _iteratorNormalCompletion2 = true;
      var _didIteratorError2 = false;
      var _iteratorError2 = undefined;

      try {
        for (var _iterator2 = this.props.tasks[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
          var task = _step2.value;
          // task.attrs.nstaskcreated[0]
          rows.push({
            'name': task.attrs.cn[0],
            'created': Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["get_date_string"])(task.attrs.nstaskcreated[0]),
            'rid': task.attrs['replica-id'][0],
            'status': task.attrs.nstaskstatus[0]
          });
        }
      } catch (err) {
        _didIteratorError2 = true;
        _iteratorError2 = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
            _iterator2.return();
          }
        } finally {
          if (_didIteratorError2) {
            throw _iteratorError2;
          }
        }
      }

      var taskTable;

      if (rows.length < 1) {
        taskTable = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          noSearchBar: true,
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No Tasks"
          }]
        });
      } else {
        taskTable = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          noSearchBar: true,
          getColumns: this.getColumns,
          rowKey: this.state.rowKey,
          rows: rows,
          toolBarPagination: [6, 12, 24, 48, 96],
          toolBarPaginationPerPage: 6
        });
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, taskTable);
    }
  }]);

  return CleanALLRUVTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var WinsyncAgmtTable =
/*#__PURE__*/
function (_React$Component3) {
  _inherits(WinsyncAgmtTable, _React$Component3);

  function WinsyncAgmtTable(props) {
    var _this3;

    _classCallCheck(this, WinsyncAgmtTable);

    _this3 = _possibleConstructorReturn(this, _getPrototypeOf(WinsyncAgmtTable).call(this, props));
    _this3.state = {
      fieldsToSearch: ["agmt-name", "replica", "replica-enabled"],
      rowKey: "agmt-name",
      columns: [{
        property: "agmt-name",
        header: {
          label: "Agreement",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "replica",
        header: {
          label: "Windows Replica",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "replica-enabled",
        header: {
          label: "Enabled",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "last-update-status",
        header: {
          label: "Update Status",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "number-changes-sent",
        header: {
          label: "Changes Sent",
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 5,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 5
          },
          formatters: [function (value, _ref3) {
            var rowData = _ref3.rowData;
            return [react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData['agmt-name']
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData['agmt-name'],
              bsStyle: "default",
              title: "Actions"
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this3.props.viewAgmt(rowData['agmt-name']);
              }
            }, "View Agreement Details"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this3.props.pokeAgmt(rowData['agmt-name']);
              }
            }, "Poke Agreement")))];
          }]
        }
      }]
    };
    _this3.getColumns = _this3.getColumns.bind(_assertThisInitialized(_assertThisInitialized(_this3)));
    _this3.getSingleColumn = _this3.getSingleColumn.bind(_assertThisInitialized(_assertThisInitialized(_this3)));
    return _this3;
  } // Constructor


  _createClass(WinsyncAgmtTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "Replication Winsync Agreements",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "render",
    value: function render() {
      var agmtTable;

      if (this.props.agmts.length < 1) {
        agmtTable = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          noSearchBar: true,
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No agreements"
          }]
        });
      } else {
        agmtTable = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          getColumns: this.getColumns,
          fieldsToSearch: this.state.fieldsToSearch,
          toolBarSearchField: this.state.searchField,
          rowKey: this.state.rowKey,
          rows: this.props.agmts,
          disableLoadingSpinner: true,
          toolBarPagination: [6, 12, 24, 48, 96],
          toolBarPaginationPerPage: 6
        });
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, agmtTable);
    }
  }]);

  return WinsyncAgmtTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var AgmtTable =
/*#__PURE__*/
function (_React$Component4) {
  _inherits(AgmtTable, _React$Component4);

  function AgmtTable(props) {
    var _this4;

    _classCallCheck(this, AgmtTable);

    _this4 = _possibleConstructorReturn(this, _getPrototypeOf(AgmtTable).call(this, props));
    _this4.state = {
      fieldsToSearch: ["agmt-name", "replica", "replica-enabled"],
      rowKey: "agmt-name",
      columns: [{
        property: "agmt-name",
        header: {
          label: "Agreement",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "replica",
        header: {
          label: "Replica",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "replica-enabled",
        header: {
          label: "Enabled",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "last-update-status",
        header: {
          label: "Update Status",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "number-changes-sent",
        header: {
          label: "Changes Sent",
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 5,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 5
          },
          formatters: [function (value, _ref4) {
            var rowData = _ref4.rowData;
            return [react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData['agmt-name']
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData['agmt-name'],
              bsStyle: "default",
              title: "Actions"
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this4.props.viewAgmt(rowData['agmt-name']);
              }
            }, "View Agreement Details"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this4.props.pokeAgmt(rowData['agmt-name']);
              }
            }, "Poke Agreement")))];
          }]
        }
      }]
    };
    _this4.getColumns = _this4.getColumns.bind(_assertThisInitialized(_assertThisInitialized(_this4)));
    _this4.getSingleColumn = _this4.getSingleColumn.bind(_assertThisInitialized(_assertThisInitialized(_this4)));
    return _this4;
  } // Constructor


  _createClass(AgmtTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "Replication Agreements",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "render",
    value: function render() {
      var agmtTable = "";

      if (this.props.agmts.length < 1) {
        agmtTable = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          noSearchBar: true,
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No agreements"
          }]
        });
      } else {
        agmtTable = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          getColumns: this.getColumns,
          rowKey: this.state.rowKey,
          rows: this.props.agmts,
          toolBarPagination: [6, 12, 24, 48, 96],
          toolBarPaginationPerPage: 6
        });
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, agmtTable);
    }
  }]);

  return AgmtTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var ConnectionTable =
/*#__PURE__*/
function (_React$Component5) {
  _inherits(ConnectionTable, _React$Component5);

  function ConnectionTable(props) {
    var _this5;

    _classCallCheck(this, ConnectionTable);

    _this5 = _possibleConstructorReturn(this, _getPrototypeOf(ConnectionTable).call(this, props));
    _this5.state = {
      rowKey: "connid",
      columns: [{
        property: "date",
        header: {
          label: "Connection Opened",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "ip",
        header: {
          label: "IP Address",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "connid",
        header: {
          label: "ID",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "opStarted",
        header: {
          label: "Ops Started",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "opCompleted",
        header: {
          label: "Ops Finished",
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "binddn",
        header: {
          label: "Bind DN",
          props: {
            index: 5,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 5
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "readwrite",
        header: {
          label: "Read/Write",
          props: {
            index: 6,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 6
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }]
    };
    _this5.getColumns = _this5.getColumns.bind(_assertThisInitialized(_assertThisInitialized(_this5)));
    return _this5;
  } // Constructor


  _createClass(ConnectionTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      // connection: %s:%s:%s:%s:%s:%s:%s:%s:%s:%s
      //
      // parts:
      //   0 = file descriptor
      //   1 = connection start date
      //   2 = ops initiated
      //   3 = ops completed
      //   4 = r/w blocked
      //   5 = bind DN
      //   6 = connection is currently at max threads (1 = yes, 0 = no)
      //   7 = number of times connection hit max threads
      //   8 = number of operations blocked by max threads
      //   9 = connection ID
      //   10 = IP address (ip=###################)
      //
      // This is too many items to fit in the table, we have to pick and choose
      // what "we" think are the most useful stats...
      var rows = [];
      var _iteratorNormalCompletion3 = true;
      var _didIteratorError3 = false;
      var _iteratorError3 = undefined;

      try {
        for (var _iterator3 = this.props.conns[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
          var conn = _step3.value;
          var parts = conn.split(':'); // Process the IP address

          var ip = parts[10].replace("ip=", "");

          if (ip == "local") {
            ip = "LDAPI";
          }

          rows.push({
            'date': [Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["get_date_string"])(parts[1])],
            'ip': [ip],
            'connid': [parts[9]],
            'opStarted': [parts[2]],
            'opCompleted': [parts[3]],
            'binddn': [parts[5]],
            'readwrite': [parts[4]]
          });
        }
      } catch (err) {
        _didIteratorError3 = true;
        _iteratorError3 = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
            _iterator3.return();
          }
        } finally {
          if (_didIteratorError3) {
            throw _iteratorError3;
          }
        }
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
        getColumns: this.getColumns,
        rowKey: this.state.rowKey,
        rows: rows,
        toolBarPagination: [6, 12, 24, 48, 96],
        toolBarPaginationPerPage: 12
      }));
    }
  }]);

  return ConnectionTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var LagReportTable =
/*#__PURE__*/
function (_React$Component6) {
  _inherits(LagReportTable, _React$Component6);

  function LagReportTable(props) {
    var _this6;

    _classCallCheck(this, LagReportTable);

    _this6 = _possibleConstructorReturn(this, _getPrototypeOf(LagReportTable).call(this, props));
    _this6.state = {
      rowKey: "agmt-name",
      columns: [{
        property: "agmt-name",
        header: {
          label: "Agreement",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "replica-enabled",
        header: {
          label: "Enabled",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "replication-status",
        header: {
          label: "State",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true,
            style: {
              color: 'blue'
            }
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "replication-lag-time",
        header: {
          label: "Lag Time",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true,
            style: {
              color: 'blue'
            }
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [function (value, _ref5) {
            var rowData = _ref5.rowData;
            return [react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData['agmt-name']
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData['agmt-name'],
              bsStyle: "default",
              title: "Actions"
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this6.props.viewAgmt(rowData['agmt-name']);
              }
            }, "View Agreement Details"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this6.props.pokeAgmt(rowData['agmt-name']);
              }
            }, "Poke Agreement")))];
          }]
        }
      }]
    };
    _this6.getColumns = _this6.getColumns.bind(_assertThisInitialized(_assertThisInitialized(_this6)));
    return _this6;
  } // Constructor


  _createClass(LagReportTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
        noSearchBar: true,
        getColumns: this.getColumns,
        rowKey: this.state.rowKey,
        rows: this.props.agmts,
        toolBarPagination: [6, 12, 24, 48, 96],
        toolBarPaginationPerPage: 6
      }));
    }
  }]);

  return LagReportTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var GlueTable =
/*#__PURE__*/
function (_React$Component7) {
  _inherits(GlueTable, _React$Component7);

  function GlueTable(props) {
    var _this7;

    _classCallCheck(this, GlueTable);

    _this7 = _possibleConstructorReturn(this, _getPrototypeOf(GlueTable).call(this, props));
    _this7.state = {
      fieldsToSearch: ["dn", "created"],
      rowKey: "dn",
      columns: [{
        property: "dn",
        header: {
          label: "Glue Entry",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "desc",
        header: {
          label: "Conflict Description",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "created",
        header: {
          label: "Created",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [function (value, _ref6) {
            var rowData = _ref6.rowData;
            return [react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.dn[0]
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.dn[0],
              bsStyle: "default",
              title: "Actions"
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this7.props.convertGlue(rowData.dn[0]);
              }
            }, "Convert Glue Entry"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this7.props.deleteGlue(rowData.dn[0]);
              }
            }, "Delete Glue Entry")))];
          }]
        }
      }]
    };
    _this7.getColumns = _this7.getColumns.bind(_assertThisInitialized(_assertThisInitialized(_this7)));
    _this7.getSingleColumn = _this7.getSingleColumn.bind(_assertThisInitialized(_assertThisInitialized(_this7)));
    return _this7;
  } // Constructor


  _createClass(GlueTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "Replication Glue Entries",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "render",
    value: function render() {
      var glueTable;

      if (this.props.glues.length < 1) {
        glueTable = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          noSearchBar: true,
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No glue entries"
          }]
        });
      } else {
        var rows = [];
        var _iteratorNormalCompletion4 = true;
        var _didIteratorError4 = false;
        var _iteratorError4 = undefined;

        try {
          for (var _iterator4 = this.props.glues[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {
            var glue = _step4.value;
            rows.push({
              dn: [glue.dn],
              desc: glue.attrs.nsds5replconflict,
              created: [Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["get_date_string"])(glue.attrs.createtimestamp[0])]
            });
          }
        } catch (err) {
          _didIteratorError4 = true;
          _iteratorError4 = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion4 && _iterator4.return != null) {
              _iterator4.return();
            }
          } finally {
            if (_didIteratorError4) {
              throw _iteratorError4;
            }
          }
        }

        glueTable = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          getColumns: this.getColumns,
          fieldsToSearch: this.state.fieldsToSearch,
          toolBarSearchField: this.state.searchField,
          rowKey: this.state.rowKey,
          rows: rows,
          disableLoadingSpinner: true,
          toolBarPagination: [6, 12, 24, 48, 96],
          toolBarPaginationPerPage: 6
        });
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, glueTable);
    }
  }]);

  return GlueTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var ConflictTable =
/*#__PURE__*/
function (_React$Component8) {
  _inherits(ConflictTable, _React$Component8);

  function ConflictTable(props) {
    var _this8;

    _classCallCheck(this, ConflictTable);

    _this8 = _possibleConstructorReturn(this, _getPrototypeOf(ConflictTable).call(this, props));
    _this8.state = {
      fieldsToSearch: ["dn", "desc"],
      rowKey: "dn",
      columns: [{
        property: "dn",
        header: {
          label: "Conflict DN",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "desc",
        header: {
          label: "Conflict Description",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "created",
        header: {
          label: "Created",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [function (value, _ref7) {
            var rowData = _ref7.rowData;
            return [react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.dn[0]
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
              onClick: function onClick() {
                _this8.props.resolveConflict(rowData.dn[0]);
              }
            }, "Resolve"))];
          }]
        }
      }]
    };
    _this8.getColumns = _this8.getColumns.bind(_assertThisInitialized(_assertThisInitialized(_this8)));
    _this8.getSingleColumn = _this8.getSingleColumn.bind(_assertThisInitialized(_assertThisInitialized(_this8)));
    return _this8;
  } // Constructor


  _createClass(ConflictTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "Replication Conflict Entries",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "render",
    value: function render() {
      var conflictTable;

      if (this.props.conflicts.length < 1) {
        conflictTable = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          noSearchBar: true,
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No conflict entries"
          }]
        });
      } else {
        var rows = [];
        var _iteratorNormalCompletion5 = true;
        var _didIteratorError5 = false;
        var _iteratorError5 = undefined;

        try {
          for (var _iterator5 = this.props.conflicts[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) {
            var conflict = _step5.value;
            rows.push({
              dn: [conflict.dn],
              desc: conflict.attrs.nsds5replconflict,
              created: [Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["get_date_string"])(conflict.attrs.createtimestamp[0])]
            });
          }
        } catch (err) {
          _didIteratorError5 = true;
          _iteratorError5 = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion5 && _iterator5.return != null) {
              _iterator5.return();
            }
          } finally {
            if (_didIteratorError5) {
              throw _iteratorError5;
            }
          }
        }

        conflictTable = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          getColumns: this.getColumns,
          fieldsToSearch: this.state.fieldsToSearch,
          toolBarSearchField: this.state.searchField,
          rowKey: this.state.rowKey,
          rows: rows,
          disableLoadingSpinner: true,
          toolBarPagination: [6, 12, 24, 48, 96],
          toolBarPaginationPerPage: 6
        });
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, conflictTable);
    }
  }]);

  return ConflictTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var DiskTable =
/*#__PURE__*/
function (_React$Component9) {
  _inherits(DiskTable, _React$Component9);

  function DiskTable(props) {
    var _this9;

    _classCallCheck(this, DiskTable);

    _this9 = _possibleConstructorReturn(this, _getPrototypeOf(DiskTable).call(this, props));
    _this9.state = {
      rowKey: "mount",
      columns: [{
        property: "mount",
        header: {
          label: "Disk Partition",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "size",
        header: {
          label: "Disk Size",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "used",
        header: {
          label: "Used Space",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "avail",
        header: {
          label: "Available Space",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }]
    };
    _this9.getColumns = _this9.getColumns.bind(_assertThisInitialized(_assertThisInitialized(_this9)));
    return _this9;
  }

  _createClass(DiskTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
        getColumns: this.getColumns,
        rowKey: this.state.rowKey,
        rows: this.props.disks,
        disableLoadingSpinner: true
      }));
    }
  }]);

  return DiskTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); // Proptypes and defaults


LagReportTable.propTypes = {
  agmts: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  viewAgmt: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  pokeAgmt: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
LagReportTable.defaultProps = {
  agmts: [],
  viewAgmt: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  pokeAgmt: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
AgmtTable.propTypes = {
  agmts: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  viewAgmt: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  pokeAgmt: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
AgmtTable.defaultProps = {
  agmts: [],
  viewAgmt: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  pokeAgmt: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
WinsyncAgmtTable.propTypes = {
  agmts: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  viewAgmt: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  pokeAgmt: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
WinsyncAgmtTable.defaultProps = {
  agmts: [],
  viewAgmt: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  pokeAgmt: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
ConnectionTable.propTypes = {
  conns: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array
};
ConnectionTable.defaultProps = {
  conns: []
};
CleanALLRUVTable.propTypes = {
  tasks: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  viewLog: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
CleanALLRUVTable.defaultProps = {
  tasks: [],
  viewLog: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
AbortCleanALLRUVTable.propTypes = {
  tasks: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  viewLog: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
AbortCleanALLRUVTable.defaultProps = {
  tasks: [],
  viewLog: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
ConflictTable.propTypes = {
  conflicts: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  resolveConflict: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
ConflictTable.defaultProps = {
  conflicts: [],
  resolveConflict: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
GlueTable.propTypes = {
  glues: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  convertGlue: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  deleteGlue: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
GlueTable.defaultProps = {
  glues: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  convertGlue: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  deleteGlue: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};


/***/ }),

/***/ "./src/lib/monitor/replMonitor.jsx":
/*!*****************************************!*\
  !*** ./src/lib/monitor/replMonitor.jsx ***!
  \*****************************************/
/*! exports provided: ReplMonitor, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReplMonitor", function() { return ReplMonitor; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _monitorTables_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./monitorTables.jsx */ "./src/lib/monitor/monitorTables.jsx");
/* harmony import */ var _monitorModals_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./monitorModals.jsx */ "./src/lib/monitor/monitorModals.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }










var ReplMonitor =
/*#__PURE__*/
function (_React$Component) {
  _inherits(ReplMonitor, _React$Component);

  function ReplMonitor(props) {
    var _this;

    _classCallCheck(this, ReplMonitor);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(ReplMonitor).call(this, props));
    _this.state = {
      activeKey: 1,
      logData: "",
      showBindModal: false,
      showLogModal: false,
      showAgmtModal: false,
      showWinsyncAgmtModal: false,
      showInitWinsyncConfirm: false,
      showInitConfirm: false,
      showLoginModal: false,
      showLagReport: false,
      showCompareModal: false,
      showConfirmDeleteGlue: false,
      showConfirmConvertGlue: false,
      showConfirmSwapConflict: false,
      showConfirmConvertConflict: false,
      showConfirmDeleteConflict: false,
      reportLoading: false,
      lagAgmts: [],
      agmt: "",
      convertRDN: "",
      glueEntry: "",
      conflictEntry: "",
      binddn: "cn=Directory Manager",
      bindpw: "",
      errObj: {}
    };
    _this.handleNavSelect = _this.handleNavSelect.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.pokeAgmt = _this.pokeAgmt.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.initAgmt = _this.initAgmt.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.initWinsyncAgmt = _this.initWinsyncAgmt.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.confirmInit = _this.confirmInit.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.confirmWinsyncInit = _this.confirmWinsyncInit.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeInitConfirm = _this.closeInitConfirm.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeInitWinsyncConfirm = _this.closeInitWinsyncConfirm.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.pokeWinsyncAgmt = _this.pokeWinsyncAgmt.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showAgmtModal = _this.showAgmtModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeAgmtModal = _this.closeAgmtModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showWinsyncAgmtModal = _this.showWinsyncAgmtModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeWinsyncAgmtModal = _this.closeWinsyncAgmtModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.getLagReportCreds = _this.getLagReportCreds.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.doLagReport = _this.doLagReport.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeLagReport = _this.closeLagReport.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.viewCleanLog = _this.viewCleanLog.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.viewAbortLog = _this.viewAbortLog.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeLogModal = _this.closeLogModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleLoginModal = _this.handleLoginModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeLoginModal = _this.closeLoginModal.bind(_assertThisInitialized(_assertThisInitialized(_this))); // Conflict entry functions

    _this.convertConflict = _this.convertConflict.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.swapConflict = _this.swapConflict.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.deleteConflict = _this.deleteConflict.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.resolveConflict = _this.resolveConflict.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.convertGlue = _this.convertGlue.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.deleteGlue = _this.deleteGlue.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeCompareModal = _this.closeCompareModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.confirmDeleteGlue = _this.confirmDeleteGlue.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.confirmConvertGlue = _this.confirmConvertGlue.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmDeleteGlue = _this.closeConfirmDeleteGlue.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmConvertGlue = _this.closeConfirmConvertGlue.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleConvertChange = _this.handleConvertChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.confirmDeleteConflict = _this.confirmDeleteConflict.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.confirmConvertConflict = _this.confirmConvertConflict.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.confirmSwapConflict = _this.confirmSwapConflict.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmDeleteConflict = _this.closeConfirmDeleteConflict.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmConvertConflict = _this.closeConfirmConvertConflict.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmSwapConflict = _this.closeConfirmSwapConflict.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(ReplMonitor, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.props.enableTree();
    }
  }, {
    key: "convertConflict",
    value: function convertConflict(dn) {
      var _this2 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-conflict", "convert", dn, "--new-rdn=" + this.state.convertRDN];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("convertConflict", "convert conflict entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_1___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this2.props.reloadConflicts();

        _this2.props.addNotification("success", "Replication conflict entry was converted into a valid entry");

        _this2.setState({
          showCompareModal: false,
          convertRDN: ""
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.props.addNotification("error", "Failed to convert conflict entry entry: ".concat(dn, " - ").concat(errMsg.desc));
      });
    }
  }, {
    key: "swapConflict",
    value: function swapConflict(dn) {
      var _this3 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-conflict", "swap", dn];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("swapConflict", "swap in conflict entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_1___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this3.props.reloadConflicts();

        _this3.props.addNotification("success", "Replication Conflict Entry is now the Valid Entry");

        _this3.setState({
          showCompareModal: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.addNotification("error", "Failed to swap in conflict entry: ".concat(dn, " - ").concat(errMsg.desc));
      });
    }
  }, {
    key: "deleteConflict",
    value: function deleteConflict(dn) {
      var _this4 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-conflict", "delete", dn];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("deleteConflict", "Delete conflict entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_1___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this4.props.reloadConflicts();

        _this4.props.addNotification("success", "Replication conflict entry was deleted");

        _this4.setState({
          showCompareModal: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this4.props.addNotification("error", "Failed to delete conflict entry: ".concat(dn, " - ").concat(errMsg.desc));
      });
    }
  }, {
    key: "resolveConflict",
    value: function resolveConflict(dn) {
      var _this5 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-conflict", "compare", dn];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("resolveConflict", "Compare conflict entry with valid entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_1___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var entries = JSON.parse(content);

        _this5.setState({
          cmpConflictEntry: entries.items[0],
          cmpValidEntry: entries.items[1],
          showCompareModal: true
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.props.addNotification("error", "Failed to get conflict entries: ".concat(dn, " - ").concat(errMsg.desc));
      });
    }
  }, {
    key: "confirmConvertGlue",
    value: function confirmConvertGlue(dn) {
      this.setState({
        showConfirmConvertGlue: true,
        glueEntry: dn
      });
    }
  }, {
    key: "closeConfirmConvertGlue",
    value: function closeConfirmConvertGlue() {
      this.setState({
        showConfirmConvertGlue: false,
        glueEntry: ""
      });
    }
  }, {
    key: "convertGlue",
    value: function convertGlue(dn) {
      var _this6 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-conflict", "convert-glue", dn];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("convertGlue", "Convert glue entry to normal entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_1___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this6.props.reloadConflicts();

        _this6.props.addNotification("success", "Replication glue entry was converted");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this6.props.addNotification("error", "Failed to convert glue entry: ".concat(dn, " - ").concat(errMsg.desc));
      });
    }
  }, {
    key: "confirmDeleteGlue",
    value: function confirmDeleteGlue(dn) {
      this.setState({
        showConfirmDeleteGlue: true,
        glueEntry: dn
      });
    }
  }, {
    key: "deleteGlue",
    value: function deleteGlue(dn) {
      var _this7 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-conflict", "delete-glue", dn];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("deleteGlue", "Delete glue entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_1___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this7.props.reloadConflicts();

        _this7.props.addNotification("success", "Replication glue entry was deleted");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this7.props.addNotification("error", "Failed to delete glue entry: ".concat(dn, " - ").concat(errMsg.desc));
      });
    }
  }, {
    key: "closeConfirmDeleteGlue",
    value: function closeConfirmDeleteGlue() {
      this.setState({
        showConfirmDeleteGlue: false,
        glueEntry: ""
      });
    }
  }, {
    key: "confirmConvertConflict",
    value: function confirmConvertConflict(dn) {
      if (this.state.convertRDN == "") {
        this.props.addNotification("error", "You must provide a RDN if you want to convert the Conflict Entry");
        return;
      }

      this.setState({
        showConfirmConvertConflict: true,
        conflictEntry: dn
      });
    }
  }, {
    key: "closeConfirmConvertConflict",
    value: function closeConfirmConvertConflict() {
      this.setState({
        showConfirmConvertConflict: false,
        conflictEntry: ""
      });
    }
  }, {
    key: "confirmSwapConflict",
    value: function confirmSwapConflict(dn) {
      this.setState({
        showConfirmSwapConflict: true,
        conflictEntry: dn
      });
    }
  }, {
    key: "closeConfirmSwapConflict",
    value: function closeConfirmSwapConflict() {
      this.setState({
        showConfirmSwapConflict: false,
        conflictEntry: ""
      });
    }
  }, {
    key: "confirmDeleteConflict",
    value: function confirmDeleteConflict(dn) {
      this.setState({
        showConfirmDeleteConflict: true,
        conflictEntry: dn
      });
    }
  }, {
    key: "closeConfirmDeleteConflict",
    value: function closeConfirmDeleteConflict() {
      this.setState({
        showConfirmDeleteConflict: false,
        conflictEntry: ""
      });
    }
  }, {
    key: "closeCompareModal",
    value: function closeCompareModal() {
      this.setState({
        showCompareModal: false
      });
    }
  }, {
    key: "handleNavSelect",
    value: function handleNavSelect(key) {
      this.setState({
        activeKey: key
      });
    }
  }, {
    key: "closeLogModal",
    value: function closeLogModal() {
      this.setState({
        showLogModal: false
      });
    }
  }, {
    key: "viewCleanLog",
    value: function viewCleanLog(name) {
      var logData = "";
      var _iteratorNormalCompletion = true;
      var _didIteratorError = false;
      var _iteratorError = undefined;

      try {
        for (var _iterator = this.props.data.cleanTasks[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
          var task = _step.value;

          if (task.attrs.cn[0] == name) {
            logData = task.attrs.nstasklog[0];
            break;
          }
        }
      } catch (err) {
        _didIteratorError = true;
        _iteratorError = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion && _iterator.return != null) {
            _iterator.return();
          }
        } finally {
          if (_didIteratorError) {
            throw _iteratorError;
          }
        }
      }

      this.setState({
        showLogModal: true,
        logData: logData
      });
    }
  }, {
    key: "viewAbortLog",
    value: function viewAbortLog(name) {
      var logData = "";
      var _iteratorNormalCompletion2 = true;
      var _didIteratorError2 = false;
      var _iteratorError2 = undefined;

      try {
        for (var _iterator2 = this.props.data.abortTasks[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
          var task = _step2.value;

          if (task.attrs.cn[0] == name) {
            logData = task.attrs.nstasklog[0];
            break;
          }
        }
      } catch (err) {
        _didIteratorError2 = true;
        _iteratorError2 = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
            _iterator2.return();
          }
        } finally {
          if (_didIteratorError2) {
            throw _iteratorError2;
          }
        }
      }

      this.setState({
        showLogModal: true,
        logData: logData
      });
    }
  }, {
    key: "pokeAgmt",
    value: function pokeAgmt(name) {
      var _this8 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-agmt", "poke", "--suffix=" + this.props.suffix, name];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("pokeAgmt", "Awaken the agreement", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_1___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this8.props.addNotification("success", "Replication agreement has been poked");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this8.props.addNotification("error", "Failed to poke replication agreement ".concat(name, " - ").concat(errMsg.desc));
      });
    }
  }, {
    key: "pokeWinsyncAgmt",
    value: function pokeWinsyncAgmt(name) {
      var _this9 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-winsync-agmt", "poke", "--suffix=" + this.props.suffix, name];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("pokeAgmt", "Awaken the agreement", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_1___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this9.props.addNotification("success", "Replication winsync agreement has been poked");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this9.props.addNotification("error", "Failed to poke replication winsync agreement ".concat(name, " - ").concat(errMsg.desc));
      });
    }
  }, {
    key: "showAgmtModal",
    value: function showAgmtModal(name) {
      var _iteratorNormalCompletion3 = true;
      var _didIteratorError3 = false;
      var _iteratorError3 = undefined;

      try {
        for (var _iterator3 = this.props.data.replAgmts[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
          var agmt = _step3.value;

          if (agmt['agmt-name'] == name) {
            this.setState({
              showAgmtModal: true,
              agmt: agmt
            });
            break;
          }
        }
      } catch (err) {
        _didIteratorError3 = true;
        _iteratorError3 = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
            _iterator3.return();
          }
        } finally {
          if (_didIteratorError3) {
            throw _iteratorError3;
          }
        }
      }
    }
  }, {
    key: "closeAgmtModal",
    value: function closeAgmtModal() {
      this.setState({
        showAgmtModal: false
      });
    }
  }, {
    key: "showWinsyncAgmtModal",
    value: function showWinsyncAgmtModal(name) {
      var _iteratorNormalCompletion4 = true;
      var _didIteratorError4 = false;
      var _iteratorError4 = undefined;

      try {
        for (var _iterator4 = this.props.data.replWinsyncAgmts[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {
          var agmt = _step4.value;

          if (agmt['agmt-name'] == name) {
            this.setState({
              showWinsyncAgmtModal: true,
              agmt: agmt
            });
            break;
          }
        }
      } catch (err) {
        _didIteratorError4 = true;
        _iteratorError4 = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion4 && _iterator4.return != null) {
            _iterator4.return();
          }
        } finally {
          if (_didIteratorError4) {
            throw _iteratorError4;
          }
        }
      }
    }
  }, {
    key: "closeWinsyncAgmtModal",
    value: function closeWinsyncAgmtModal() {
      this.setState({
        showWinsyncAgmtModal: false
      });
    }
  }, {
    key: "confirmInit",
    value: function confirmInit() {
      this.setState({
        showInitConfirm: true
      });
    }
  }, {
    key: "closeInitConfirm",
    value: function closeInitConfirm() {
      this.setState({
        showInitConfirm: false
      });
    }
  }, {
    key: "confirmWinsyncInit",
    value: function confirmWinsyncInit() {
      this.setState({
        showInitWinsyncConfirm: true
      });
    }
  }, {
    key: "closeInitWinsyncConfirm",
    value: function closeInitWinsyncConfirm() {
      this.setState({
        showInitWinsyncConfirm: false
      });
    }
  }, {
    key: "initAgmt",
    value: function initAgmt() {
      var _this10 = this;

      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-agmt', 'init', '--suffix=' + this.props.suffix, this.state.agmt['agmt-name']];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])('initAgmt', 'Initialize agreement', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_1___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this10.props.reloadAgmts();

        _this10.props.addNotification("success", "Replication agreement initialization has started ...");

        _this10.setState({
          showAgmtModal: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this10.props.addNotification("error", "Failed to start agreement initialization - ".concat(errMsg.desc));

        _this10.setState({
          showAgmtModal: false
        });
      });
    }
  }, {
    key: "initWinsyncAgmt",
    value: function initWinsyncAgmt() {
      var _this11 = this;

      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-winsync-agmt', 'init', '--suffix=' + this.props.suffix, this.state.agmt['agmt-name']];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])('initWinsyncAgmt', 'Initialize winsync agreement', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_1___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this11.props.reloadWinsyncAgmts();

        _this11.props.addNotification("success", "Replication winsync agreement initialization has started ...");

        _this11.setState({
          showInitWinsyncConfirm: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this11.props.addNotification("error", "Failed to start winsync agreement initialization - ".concat(errMsg.desc));

        _this11.setState({
          showInitWinsyncConfirm: false
        });
      });
    }
  }, {
    key: "getLagReportCreds",
    value: function getLagReportCreds() {
      if (this.props.data.replAgmts.length == 0) {
        // No agreements, don't proceed...
        this.props.addNotification("error", "There are no replication agreements to report on");
      } else {
        this.setState({
          showLoginModal: true,
          errObj: {
            bindpw: true
          }
        });
      }
    }
  }, {
    key: "closeLoginModal",
    value: function closeLoginModal() {
      this.setState({
        showLoginModal: false
      });
    }
  }, {
    key: "handleLoginModal",
    value: function handleLoginModal(e) {
      var _this$setState;

      var value = e.target.value.trim();
      var valueErr = false;
      var errObj = this.state.errObj;

      if (value == "") {
        valueErr = true;
      }

      errObj[e.target.id] = valueErr;
      this.setState((_this$setState = {}, _defineProperty(_this$setState, e.target.id, value), _defineProperty(_this$setState, "errObj", errObj), _this$setState));
    }
  }, {
    key: "closeLagReport",
    value: function closeLagReport() {
      this.setState({
        showLagReport: false
      });
    }
  }, {
    key: "doLagReport",
    value: function doLagReport() {
      var _this12 = this;

      // Get agmts but this time with with bind credentials, then clear
      // out bind credentials after we use them
      if (this.state.binddn == "" || this.state.bindpw == "") {
        return;
      }

      this.setState({
        loginSpinning: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "replication", "status", "--suffix=" + this.props.suffix, "--bind-dn=" + this.state.binddn, "--bind-passwd=" + this.state.bindpw];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("doLagReport", "Get agmts for lag report", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_1___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this12.setState({
          lagAgmts: config.items,
          showLagReport: true,
          showLoginModal: false,
          loginSpinning: false,
          bindpw: ""
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this12.props.addNotification("error", "Failed to get replication status - ".concat(errMsg.desc));

        _this12.setState({
          showLoginModal: false,
          loginSpinning: false,
          bindpw: ""
        });
      });
    }
  }, {
    key: "handleConvertChange",
    value: function handleConvertChange(e) {
      var value = e.target.value;
      this.setState({
        convertRDN: value
      });
    }
  }, {
    key: "render",
    value: function render() {
      var replAgmts = this.props.data.replAgmts;
      var replWinsyncAgmts = this.props.data.replWinsyncAgmts;
      var cleanTasks = this.props.data.cleanTasks;
      var abortTasks = this.props.data.abortTasks;
      var conflictEntries = this.props.data.conflicts;
      var glueEntries = this.props.data.glues;
      var agmtDetailModal = "";
      var winsyncAgmtDetailModal = "";
      var compareConflictModal = "";

      if (this.state.showAgmtModal) {
        agmtDetailModal = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorModals_jsx__WEBPACK_IMPORTED_MODULE_7__["AgmtDetailsModal"], {
          showModal: this.state.showAgmtModal,
          closeHandler: this.closeAgmtModal,
          agmt: this.state.agmt,
          initAgmt: this.confirmInit
        });
      }

      if (this.state.showWinsyncAgmtModal) {
        winsyncAgmtDetailModal = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorModals_jsx__WEBPACK_IMPORTED_MODULE_7__["WinsyncAgmtDetailsModal"], {
          showModal: this.state.showWinsyncAgmtModal,
          closeHandler: this.closeWinsyncAgmtModal,
          agmt: this.state.agmt,
          initAgmt: this.confirmWinsyncInit
        });
      }

      if (this.state.showCompareModal) {
        compareConflictModal = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorModals_jsx__WEBPACK_IMPORTED_MODULE_7__["ConflictCompareModal"], {
          showModal: true,
          conflictEntry: this.state.cmpConflictEntry,
          validEntry: this.state.cmpValidEntry,
          swapFunc: this.confirmSwapConflict,
          convertFunc: this.confirmConvertConflict,
          deleteFunc: this.confirmDeleteConflict,
          handleConvertChange: this.handleConvertChange,
          closeHandler: this.closeCompareModal
        });
      }

      var cleanNavTitle = 'CleanAllRUV Tasks <font size="1">(' + cleanTasks.length + ')</font>';
      var abortNavTitle = 'Abort CleanAllRUV Tasks <font size="1">(' + abortTasks.length + ')</font>';
      var taskContent = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Nav"], {
        bsClass: "nav nav-tabs nav-tabs-pf"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["NavItem"], {
        className: "ds-nav-med",
        eventKey: 1
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: cleanNavTitle
        }
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["NavItem"], {
        className: "ds-nav-med",
        eventKey: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: abortNavTitle
        }
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["TabContent"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["TabPane"], {
        eventKey: 1
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-indent ds-margin-top-lg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorTables_jsx__WEBPACK_IMPORTED_MODULE_6__["CleanALLRUVTable"], {
        tasks: cleanTasks,
        viewLog: this.viewCleanLog
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["TabPane"], {
        eventKey: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-indent ds-margin-top-lg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorTables_jsx__WEBPACK_IMPORTED_MODULE_6__["AbortCleanALLRUVTable"], {
        tasks: abortTasks,
        viewLog: this.viewAbortLog
      })))));
      var conflictNavTitle = 'Conflict Entries <font size="1">(' + conflictEntries.length + ')</font>';
      var glueNavTitle = 'Glue Entries <font size="1">(' + glueEntries.length + ')</font>';
      var conflictContent = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Nav"], {
        bsClass: "nav nav-tabs nav-tabs-pf"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["NavItem"], {
        className: "ds-nav-med",
        eventKey: 1
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: conflictNavTitle
        }
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["NavItem"], {
        className: "ds-nav-med",
        eventKey: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: glueNavTitle
        }
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["TabContent"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["TabPane"], {
        eventKey: 1
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-indent ds-margin-top-lg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null, "Replication conflict entries occur when two entries are created with the same DN on different servers.  The automatic conflict resolution procedure renames the last entry created to include the entry's unique identifier (nsuniqueid) in the DN.  There are several ways to resolve a conflict, but that is up to you on which option to use."), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorTables_jsx__WEBPACK_IMPORTED_MODULE_6__["ConflictTable"], {
        conflicts: conflictEntries,
        resolveConflict: this.resolveConflict,
        key: conflictEntries
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["TabPane"], {
        eventKey: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-indent ds-margin-top-lg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null, "When a ", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Delete"), " operation is replicated and the consumer server finds that the entry to be deleted has child entries, the conflict resolution procedure creates a \"", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("i", null, "glue entry"), "\" to avoid having orphaned entries in the database.  In the same way, when an ", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Add"), " operation is replicated and the consumer server cannot find the parent entry, the conflict resolution procedure creates a \"", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("i", null, "glue entry"), "\" representing the parent so that the new entry is not an orphan entry."), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorTables_jsx__WEBPACK_IMPORTED_MODULE_6__["GlueTable"], {
        glues: glueEntries,
        convertGlue: this.confirmConvertGlue,
        deleteGlue: this.confirmDeleteGlue,
        key: glueEntries
      })))));
      var replAgmtNavTitle = 'Replication Agreements <font size="1">(' + replAgmts.length + ')</font>';
      var winsyncNavTitle = 'Winsync Agreements <font size="1">(' + replWinsyncAgmts.length + ')</font>';
      var tasksNavTitle = 'Tasks <font size="1">(' + (cleanTasks.length + abortTasks.length) + ')</font>';
      var conflictsNavTitle = 'Conflicts <font size="1">(' + (conflictEntries.length + glueEntries.length) + ')</font>';
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        id: "monitor-suffix-page",
        className: "ds-tab-table"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["TabContainer"], {
        className: "ds-margin-top-lg",
        id: "basic-tabs-pf",
        onSelect: this.handleNavSelect,
        activeKey: this.state.activeKey
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Nav"], {
        bsClass: "nav nav-tabs nav-tabs-pf"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["NavItem"], {
        eventKey: 1
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: replAgmtNavTitle
        }
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["NavItem"], {
        eventKey: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: winsyncNavTitle
        }
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["NavItem"], {
        eventKey: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: tasksNavTitle
        }
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["NavItem"], {
        eventKey: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: conflictsNavTitle
        }
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["TabContent"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["TabPane"], {
        eventKey: 1
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-indent ds-tab-table"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorTables_jsx__WEBPACK_IMPORTED_MODULE_6__["AgmtTable"], {
        agmts: replAgmts,
        pokeAgmt: this.pokeAgmt,
        viewAgmt: this.showAgmtModal
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Button"], {
        className: "ds-margin-top",
        bsStyle: "primary",
        onClick: this.getLagReportCreds,
        title: "Display report that shows the lag time and replication status of each agreement in relationship to its replica"
      }, "Get Lag Report"))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["TabPane"], {
        eventKey: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "dds-indent ds-tab-table"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorTables_jsx__WEBPACK_IMPORTED_MODULE_6__["WinsyncAgmtTable"], {
        agmts: replWinsyncAgmts,
        pokeAgmt: this.pokeWinsyncAgmt,
        viewAgmt: this.showWinsyncAgmtModal
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["TabPane"], {
        eventKey: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-indent ds-tab-table"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["TabContainer"], {
        id: "task-tabs",
        defaultActiveKey: 1
      }, taskContent))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["TabPane"], {
        eventKey: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-indent ds-tab-table"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["TabContainer"], {
        id: "task-tabs",
        defaultActiveKey: 1
      }, conflictContent)))))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorModals_jsx__WEBPACK_IMPORTED_MODULE_7__["TaskLogModal"], {
        showModal: this.state.showLogModal,
        closeHandler: this.closeLogModal,
        logData: this.state.logData
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_5__["ConfirmPopup"], {
        showModal: this.state.showInitConfirm,
        closeHandler: this.closeInitConfirm,
        actionFunc: this.initAgmt,
        actionParam: this.state.agmt['agmt-name'],
        msg: "Are you really sure you want to reinitialize this replication agreement?",
        msgContent: this.state.agmt['agmt-name']
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_5__["ConfirmPopup"], {
        showModal: this.state.showInitWinsyncConfirm,
        closeHandler: this.closeInitWinsyncConfirm,
        actionFunc: this.initWinsyncAgmt,
        actionParam: this.state.agmt['agmt-name'],
        msg: "Are you really sure you want to reinitialize this replication winsync agreement?",
        msgContent: this.state.agmt['agmt-name']
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorModals_jsx__WEBPACK_IMPORTED_MODULE_7__["ReplLoginModal"], {
        showModal: this.state.showLoginModal,
        closeHandler: this.closeLoginModal,
        handleChange: this.handleLoginModal,
        doReport: this.doLagReport,
        spinning: this.state.loginSpinning,
        error: this.state.errObj
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorModals_jsx__WEBPACK_IMPORTED_MODULE_7__["ReplLagReportModal"], {
        showModal: this.state.showLagReport,
        closeHandler: this.closeLagReport,
        agmts: this.state.lagAgmts,
        pokeAgmt: this.pokeAgmt,
        viewAgmt: this.showAgmtModal
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_5__["ConfirmPopup"], {
        showModal: this.state.showConfirmDeleteGlue,
        closeHandler: this.closeConfirmDeleteGlue,
        actionFunc: this.deleteGlue,
        actionParam: this.state.glueEntry,
        msg: "Are you really sure you want to delete this glue entry and its child entries?",
        msgContent: this.state.glueEntry
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_5__["ConfirmPopup"], {
        showModal: this.state.showConfirmConvertGlue,
        closeHandler: this.closeConfirmConvertGlue,
        actionFunc: this.convertGlue,
        actionParam: this.state.glueEntry,
        msg: "Are you really sure you want to convert this glue entry to a regular entry?",
        msgContent: this.state.glueEntry
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_5__["ConfirmPopup"], {
        showModal: this.state.showConfirmConvertConflict,
        closeHandler: this.closeConfirmConvertConflict,
        actionFunc: this.convertConflict,
        actionParam: this.state.conflictEntry,
        msg: "Are you really sure you want to convert this conflict entry to a regular entry?",
        msgContent: this.state.conflictEntry
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_5__["ConfirmPopup"], {
        showModal: this.state.showConfirmSwapConflict,
        closeHandler: this.closeConfirmSwapConflict,
        actionFunc: this.swapConflict,
        actionParam: this.state.conflictEntry,
        msg: "Are you really sure you want to swap this conflict entry with the valid entry (this would remove the valid entry and any child entries it might have)?",
        msgContent: this.state.conflictEntry
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_5__["ConfirmPopup"], {
        showModal: this.state.showConfirmDeleteConflict,
        closeHandler: this.closeConfirmDeleteConflict,
        actionFunc: this.deleteConflict,
        actionParam: this.state.conflictEntry,
        msg: "Are you really sure you want to delete this conflict entry?",
        msgContent: this.state.conflictEntry
      }), agmtDetailModal, winsyncAgmtDetailModal, compareConflictModal);
    }
  }]);

  return ReplMonitor;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); // Props and defaultProps

ReplMonitor.propTypes = {
  data: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object,
  suffix: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  reloadAgmts: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  reloadWinsyncAgmts: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  reloadConflicts: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
ReplMonitor.defaultProps = {
  data: {},
  suffix: "",
  serverId: "",
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_8__["noop"],
  reloadAgmts: patternfly_react__WEBPACK_IMPORTED_MODULE_8__["noop"],
  reloadWinsyncAgmts: patternfly_react__WEBPACK_IMPORTED_MODULE_8__["noop"],
  reloadConflicts: patternfly_react__WEBPACK_IMPORTED_MODULE_8__["noop"],
  enableTree: patternfly_react__WEBPACK_IMPORTED_MODULE_8__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (ReplMonitor);

/***/ }),

/***/ "./src/lib/monitor/serverMonitor.jsx":
/*!*******************************************!*\
  !*** ./src/lib/monitor/serverMonitor.jsx ***!
  \*******************************************/
/*! exports provided: ServerMonitor, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ServerMonitor", function() { return ServerMonitor; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _monitorTables_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./monitorTables.jsx */ "./src/lib/monitor/monitorTables.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }







var ServerMonitor =
/*#__PURE__*/
function (_React$Component) {
  _inherits(ServerMonitor, _React$Component);

  function ServerMonitor(props) {
    var _this;

    _classCallCheck(this, ServerMonitor);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(ServerMonitor).call(this, props));
    _this.state = {
      activeKey: 1
    };
    _this.handleNavSelect = _this.handleNavSelect.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(ServerMonitor, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.props.enableTree();
    }
  }, {
    key: "handleNavSelect",
    value: function handleNavSelect(key) {
      this.setState({
        activeKey: key
      });
    }
  }, {
    key: "render",
    value: function render() {
      // Generate start time and Uptime
      var startTime = this.props.data.starttime[0];
      var currTime = this.props.data.currenttime[0];
      var startDate = Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["get_date_string"])(this.props.data.starttime[0]);
      var uptime = Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["get_date_diff"])(startTime, currTime);
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        id: "monitor-server-page"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 12,
        className: "ds-word-wrap"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"], {
        className: "ds-suffix-header"
      }, "Server Statistics", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh server monitor",
        onClick: this.props.reload
      })))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["TabContainer"], {
        className: "ds-margin-top-lg",
        id: "server-tabs-pf",
        onSelect: this.handleNavSelect,
        activeKey: this.state.activeKey
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Nav"], {
        bsClass: "nav nav-tabs nav-tabs-pf"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["NavItem"], {
        eventKey: 1
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Server Information'
        }
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["NavItem"], {
        eventKey: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Connection Table'
        }
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["NavItem"], {
        eventKey: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Disk Space'
        }
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["TabContent"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["TabPane"], {
        eventKey: 1
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Form"], {
        horizontal: true,
        className: "ds-margin-top-lg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Server Instance"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        className: "ds-input-auto",
        id: "monitor-serverid",
        value: "slapd-" + this.props.serverId,
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Version"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        className: "ds-input-auto",
        id: "monitor-version",
        value: this.props.data.version,
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Server Started"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        className: "ds-input-auto",
        id: "monitor-server-starttime",
        value: startDate,
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Server Uptime"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        className: "ds-input-auto",
        id: "monitor-server-uptime",
        value: uptime,
        readOnly: true
      })))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Worker Threads"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        className: "ds-input-auto",
        id: "monitor-server-threads",
        value: this.props.data.threads,
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Threads Waiting To Read"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        className: "ds-input-auto",
        id: "monitor-server-readwaiters",
        value: this.props.data.readwaiters,
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Conns At Max Threads"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        className: "ds-input-auto",
        id: "monitor-server-currentconnectionsatmaxthreads",
        value: this.props.data.currentconnectionsatmaxthreads,
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Conns Exceeded Max Threads"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        className: "ds-input-auto",
        id: "monitor-server-maxthreadsperconnhits",
        value: this.props.data.maxthreadsperconnhits,
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Total Connections"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        className: "ds-input-auto",
        id: "monitor-server-totalconnections",
        value: this.props.data.totalconnections,
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Current Connections"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        className: "ds-input-auto",
        id: "monitor-server-currentconnections",
        value: this.props.data.currentconnections,
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Operations Started"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        className: "ds-input-auto",
        id: "monitor-server-opsinitiated",
        value: this.props.data.opsinitiated,
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Operations Completed"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        className: "ds-input-auto",
        id: "monitor-server-opscompleted",
        value: this.props.data.opscompleted,
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Entries Returned To Clients"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        className: "ds-input-auto",
        id: "monitor-server-entriessent",
        value: this.props.data.entriessent,
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Bytes Sent to Clients"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        className: "ds-input-auto",
        id: "monitor-server-bytessent",
        value: this.props.data.bytessent,
        readOnly: true
      }))))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["TabPane"], {
        eventKey: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorTables_jsx__WEBPACK_IMPORTED_MODULE_4__["ConnectionTable"], {
        conns: this.props.data.connection
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["TabPane"], {
        eventKey: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorTables_jsx__WEBPACK_IMPORTED_MODULE_4__["DiskTable"], {
        disks: this.props.disks
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Button"], {
        className: "ds-margin-top",
        onClick: this.props.reloadDisks
      }, "Refresh"))))));
    }
  }]);

  return ServerMonitor;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
ServerMonitor.propTypes = {
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  data: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
ServerMonitor.defaultProps = {
  serverId: "",
  data: {},
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["noop"],
  enableTree: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (ServerMonitor);

/***/ }),

/***/ "./src/lib/monitor/snmpMonitor.jsx":
/*!*****************************************!*\
  !*** ./src/lib/monitor/snmpMonitor.jsx ***!
  \*****************************************/
/*! exports provided: SNMPMonitor, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SNMPMonitor", function() { return SNMPMonitor; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }





var SNMPMonitor =
/*#__PURE__*/
function (_React$Component) {
  _inherits(SNMPMonitor, _React$Component);

  function SNMPMonitor() {
    _classCallCheck(this, SNMPMonitor);

    return _possibleConstructorReturn(this, _getPrototypeOf(SNMPMonitor).apply(this, arguments));
  }

  _createClass(SNMPMonitor, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.props.enableTree();
    }
  }, {
    key: "render",
    value: function render() {
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        id: "snmp-page"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 12,
        className: "ds-word-wrap"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], {
        className: "ds-suffix-header"
      }, "SNMP Counters", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh SNMP monitor",
        onClick: this.props.reload
      })))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Form"], {
        horizontal: true,
        className: "ds-margin-top-lg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Anonymous Binds"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.anonymousbinds,
        size: "10",
        readOnly: true
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Referrals"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.referrals,
        size: "10",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Unauthenticated Binds"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.anonymousbinds,
        size: "10",
        readOnly: true
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Returned Referrals"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.referralsreturned,
        size: "10",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Simple Auth Binds"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.simpleauthbinds,
        size: "10",
        readOnly: true
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Bind Security Errors"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.bindsecurityerrors,
        size: "10",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Strong Auth Binds"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.strongauthbinds,
        size: "10",
        readOnly: true
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Security Errors"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.securityerrors,
        size: "10",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Initiated Operations"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.inops,
        size: "10",
        readOnly: true
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Errors"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.errors,
        size: "10",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Compare Operations"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.compareops,
        size: "10",
        readOnly: true
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Current Connections"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.connections,
        size: "10",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Add Operations"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.addentryops,
        size: "10",
        readOnly: true
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Total Connections"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.connectionseq,
        size: "10",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Delete Operations"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.removeentryops,
        size: "10",
        readOnly: true
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Conns in Max Threads"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.connectionsinmaxthreads,
        size: "10",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Modify Operation"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.modifyentryops,
        size: "10",
        readOnly: true
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Conns Exceeded Max Threads"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.connectionsmaxthreadscount,
        size: "10",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "ModRDN Operations"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.modifyrdnops,
        size: "10",
        readOnly: true
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Bytes Received"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.bytesrecv,
        size: "10",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Search Operations"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.searchops,
        size: "10",
        readOnly: true
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Bytes Sent"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.bytessent,
        size: "10",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "One Level Searches"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.onelevelsearchops,
        size: "10",
        readOnly: true
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Entries Sent"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.entriesreturned,
        size: "10",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Whole Tree Searches"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.wholesubtreesearchops,
        size: "10",
        readOnly: true
      })))));
    }
  }]);

  return SNMPMonitor;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); // Prop types and defaults

SNMPMonitor.propTypes = {
  data: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
SNMPMonitor.defaultProps = {
  data: {},
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"],
  enableTree: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (SNMPMonitor);

/***/ }),

/***/ "./src/lib/monitor/suffixMonitor.jsx":
/*!*******************************************!*\
  !*** ./src/lib/monitor/suffixMonitor.jsx ***!
  \*******************************************/
/*! exports provided: SuffixMonitor, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SuffixMonitor", function() { return SuffixMonitor; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! d3 */ "./node_modules/d3/d3.js");
/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(d3__WEBPACK_IMPORTED_MODULE_4__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }






var SuffixMonitor =
/*#__PURE__*/
function (_React$Component) {
  _inherits(SuffixMonitor, _React$Component);

  function SuffixMonitor(props) {
    var _this;

    _classCallCheck(this, SuffixMonitor);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(SuffixMonitor).call(this, props));
    _this.state = {
      activeKey: 1
    };
    _this.handleNavSelect = _this.handleNavSelect.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(SuffixMonitor, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.props.enableTree();
    }
  }, {
    key: "handleNavSelect",
    value: function handleNavSelect(key) {
      this.setState({
        activeKey: key
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this2 = this;

      var badColor = "#d01c8b";
      var warningColor = "#ffc107";
      var goodColor = "#4dac26";
      var emptyColor = "#d3d3d3";
      var donutColorEC = goodColor;
      var donutColorECMiss = emptyColor;
      var donutColorECUtil = goodColor;
      var donutColorDN = goodColor;
      var donutColorDNMiss = emptyColor;
      var donutColorDNUtil = goodColor; // Entry cache

      var cachehit = parseInt(this.props.data.entrycachehitratio[0]);
      var cachemax = parseInt(this.props.data.maxentrycachesize[0]);
      var cachecurr = parseInt(this.props.data.currententrycachesize[0]);
      var cachecount = parseInt(this.props.data.currententrycachecount[0]);
      var utilratio = Math.round(cachecurr / cachemax * 100); // DN cache

      var dncachehit = parseInt(this.props.data.dncachehitratio[0]);
      var dncachemax = parseInt(this.props.data.maxdncachesize[0]);
      var dncachecurr = parseInt(this.props.data.currentdncachesize[0]);
      var dncachecount = parseInt(this.props.data.currentdncachecount[0]);
      var dnutilratio = Math.round(dncachecurr / dncachemax * 100); // Adjust ratios if needed

      if (utilratio == 0) {
        utilratio = 1;
      }

      if (dnutilratio == 0) {
        dnutilratio = 1;
      } // Entry Cache


      if (cachehit > 89) {
        donutColorEC = goodColor;
      } else if (cachehit > 74) {
        donutColorEC = warningColor;
      } else {
        if (cachehit < 50) {
          // Pie chart shows higher catagory, so we need to highlight the misses
          donutColorECMiss = badColor;
        } else {
          donutColorEC = badColor;
        }
      } // Entry cache utilization


      if (cachehit < 90) {
        if (utilratio > 95) {
          donutColorECUtil = badColor;
        } else if (utilratio > 90) {
          donutColorECUtil = warningColor;
        }
      } // DN cache ratio


      if (dncachehit > 89) {
        donutColorDN = goodColor;
      } else if (dncachehit > 74) {
        donutColorDN = warningColor;
      } else {
        if (dncachehit < 50) {
          // Pie chart shows higher catagory, so we need to highlight the misses
          donutColorDNMiss = badColor;
        } else {
          donutColorDN = badColor;
        }
      } // DN cache utilization


      if (dncachehit < 90) {
        if (dnutilratio > 95) {
          donutColorDNUtil = badColor;
        } else if (dnutilratio > 90) {
          donutColorDNUtil = warningColor;
        }
      }

      var suffixIcon = "tree";

      if (this.props.dbtype == "subsuffix") {
        suffixIcon = "leaf";
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        id: "monitor-suffix-page"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 12,
        className: "ds-word-wrap"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], {
        className: "ds-suffix-header"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
        type: "fa",
        name: suffixIcon
      }), " ", this.props.suffix, " (", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("i", null, this.props.bename), ")", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh suffix monitor",
        onClick: function onClick() {
          return _this2.props.reload(_this2.props.suffix);
        }
      })))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabContainer"], {
        className: "ds-margin-top-lg",
        id: "basic-tabs-pf",
        onSelect: this.handleNavSelect,
        activeKey: this.state.activeKey
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Nav"], {
        bsClass: "nav nav-tabs nav-tabs-pf"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["NavItem"], {
        eventKey: 1
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Entry Cache'
        }
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["NavItem"], {
        eventKey: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'DN Cache'
        }
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabContent"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabPane"], {
        eventKey: 1
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-lg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-container"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-divider"
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-left-margin",
        title: "The entry cache hit ratio.  If the chart is RED then the hit ratio is below 90% and might require further cache tuning"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["DonutChart"], {
        id: "monitor-entry-cache-pie",
        size: {
          width: 180,
          height: 120
        },
        data: {
          columns: [['miss', 100 - cachehit], ['hit', cachehit]],
          colors: {
            'hit': donutColorEC,
            'miss': donutColorECMiss
          },
          order: null,
          unload: true
        },
        title: {
          type: 'percent'
        },
        legend: {
          show: true,
          position: 'right'
        }
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Entry Cache Hit Ratio")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-divider"
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-divider"
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-chart-right",
        title: "How much of the allocated cache space is used (max size vs current size).  If the chart is RED then you should to increase the max cache size because the cache hit ratio is below 90%"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["PieChart"], {
        id: "monitor-entry-util-pie",
        size: {
          width: 180,
          height: 120
        },
        data: {
          columns: [['Used', utilratio], ['Unused', 100 - utilratio]],
          colors: {
            'Used': donutColorECUtil,
            'Unused': emptyColor
          },
          order: null,
          type: 'pie'
        },
        pie: {
          label: {
            format: function format(value, ratio, id) {
              return d3__WEBPACK_IMPORTED_MODULE_4___default.a.format(',%')(value / 100);
            }
          }
        },
        title: {
          type: 'pie'
        },
        legend: {
          show: true,
          position: 'right'
        },
        unloadBeforeLoad: true
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Entry Cache Utilization"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, "(Entries in cache: ", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, cachecount), ")"))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Entry Cache Hit Ratio"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.entrycachehitratio,
        size: "35",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Entry Cache Tries"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.entrycachetries,
        size: "35",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Entry Cache Hits"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.entrycachehits,
        size: "35",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Entry Cache Max Size"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.maxentrycachesize,
        size: "35",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Entry Cache Current Size"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.currententrycachesize,
        size: "35",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Entry Cache Max Entries"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.maxentrycachecount,
        size: "35",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Entry Cache Count"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.currententrycachecount,
        size: "35",
        readOnly: true
      })))))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabPane"], {
        eventKey: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-lg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-container"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-divider"
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-left-margin",
        title: "The DN cache hit ratio.  If the chart is RED then the hit ratio is below 90% and might require further cache tuning"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["DonutChart"], {
        id: "monitor-entry-cache-pie",
        size: {
          width: 180,
          height: 120
        },
        data: {
          columns: [['miss', 100 - dncachehit], ['hit', dncachehit]],
          colors: {
            'hit': donutColorDN,
            'miss': donutColorDNMiss
          },
          order: null
        },
        title: {
          type: 'percent'
        },
        legend: {
          show: true,
          position: 'right'
        }
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", {
        className: "ds-left-margin"
      }, "DN Cache Hit Ratio")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-divider"
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-divider"
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-chart-right",
        title: "How much of the allocated cache space is used (max size vs current size).  If the chart is RED then you should to increase the max cache size because the cache hit ratio is below 90%"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["PieChart"], {
        id: "monitor-entry-util-pie",
        size: {
          width: 180,
          height: 120
        },
        data: {
          columns: [['Used', dnutilratio], ['Unused', 100 - dnutilratio]],
          colors: {
            'Used': donutColorDNUtil,
            'Unused': emptyColor
          },
          order: null,
          type: 'pie'
        },
        pie: {
          label: {
            format: function format(value, ratio, id) {
              return d3__WEBPACK_IMPORTED_MODULE_4___default.a.format(',%')(value / 100);
            }
          }
        },
        title: {
          type: 'pie'
        },
        legend: {
          show: true,
          position: 'right'
        },
        unloadBeforeLoad: true
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-left-margin"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "DN Cache Utilization"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, "(DN's in cache: ", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, dncachecount), ")")))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "DN Cache Hit Ratio"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.dncachehitratio,
        size: "35",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "DN Cache Tries"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.dncachetries,
        size: "35",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "DN Cache Hits"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.dncachehits,
        size: "35",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "DN Cache Max Size"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.maxdncachesize,
        size: "35",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "DN Cache Current Size"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.currentdncachesize,
        size: "35",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "DN Cache Max Count"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.maxdncachecount,
        size: "35",
        readOnly: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "DN Cache Current Count"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.currentdncachecount,
        size: "35",
        readOnly: true
      }))))))))));
    }
  }]);

  return SuffixMonitor;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
SuffixMonitor.propTypes = {
  suffix: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  data: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  bename: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
SuffixMonitor.defaultProps = {
  suffix: "",
  data: {},
  bename: "",
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"],
  enableTree: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (SuffixMonitor);

/***/ }),

/***/ "./src/lib/notifications.jsx":
/*!***********************************!*\
  !*** ./src/lib/notifications.jsx ***!
  \***********************************/
/*! exports provided: DoubleConfirmModal, NotificationController, ConfirmPopup */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DoubleConfirmModal", function() { return DoubleConfirmModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotificationController", function() { return NotificationController; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfirmPopup", function() { return ConfirmPopup; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }





var NotificationController =
/*#__PURE__*/
function (_React$Component) {
  _inherits(NotificationController, _React$Component);

  function NotificationController() {
    _classCallCheck(this, NotificationController);

    return _possibleConstructorReturn(this, _getPrototypeOf(NotificationController).apply(this, arguments));
  }

  _createClass(NotificationController, [{
    key: "render",
    value: function render() {
      var _this$props = this.props,
          notifications = _this$props.notifications,
          removeNotificationAction = _this$props.removeNotificationAction;
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ToastNotificationList"], null, notifications.map(function (notification) {
        return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["TimedToastNotification"], {
          key: notification.key,
          type: notification.type,
          persistent: notification.persistent,
          onDismiss: function onDismiss() {
            return removeNotificationAction(notification);
          },
          timerdelay: notification.timerdelay // By default - 8000

        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", null, notification.header && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("strong", null, notification.header), notification.type == "error" ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("pre", {
          className: "ds-width-auto"
        }, notification.message) : react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", null, notification.message)));
      }));
    }
  }]);

  return NotificationController;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

NotificationController.propTypes = {
  removeNotificationAction: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  notifications: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array
};
NotificationController.defaultProps = {
  notifications: []
};

var ConfirmPopup =
/*#__PURE__*/
function (_React$Component2) {
  _inherits(ConfirmPopup, _React$Component2);

  function ConfirmPopup(props) {
    var _this;

    _classCallCheck(this, ConfirmPopup);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(ConfirmPopup).call(this, props));
    _this.state = {}; // Chaining OIDs

    _this.primaryAction = _this.primaryAction.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(ConfirmPopup, [{
    key: "primaryAction",
    value: function primaryAction() {
      this.props.actionFunc(this.props.actionParam);
      this.props.closeHandler();
    }
  }, {
    key: "render",
    value: function render() {
      var _this$props2 = this.props,
          showModal = _this$props2.showModal,
          closeHandler = _this$props2.closeHandler;
      var secondaryContent = "";

      if (this.props.msgContent !== undefined) {
        if (this.props.msgContent.constructor === Array) {
          // Comma separate the lines of this list
          secondaryContent = this.props.msgContent.map(function (item) {
            return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", {
              key: item
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, item));
          });
        } else {
          secondaryContent = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, this.props.msgContent));
        }
      }

      var icon = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        style: {
          'fontSize': '30px',
          'marginRight': '15px'
        },
        name: "warning-triangle-o"
      });
      var msg = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", {
        className: "lead"
      }, this.props.msg);
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["MessageDialog"], {
        className: "ds-confirm",
        show: showModal,
        onHide: closeHandler,
        primaryAction: this.primaryAction,
        secondaryAction: closeHandler,
        primaryActionButtonContent: "Yes",
        secondaryActionButtonContent: "No",
        title: "Confirmation",
        icon: icon,
        primaryContent: msg,
        secondaryContent: secondaryContent,
        accessibleName: "questionDialog",
        accessibleDescription: "questionDialogContent"
      }));
    }
  }]);

  return ConfirmPopup;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var DoubleConfirmModal =
/*#__PURE__*/
function (_React$Component3) {
  _inherits(DoubleConfirmModal, _React$Component3);

  function DoubleConfirmModal() {
    _classCallCheck(this, DoubleConfirmModal);

    return _possibleConstructorReturn(this, _getPrototypeOf(DoubleConfirmModal).apply(this, arguments));
  }

  _createClass(DoubleConfirmModal, [{
    key: "render",
    value: function render() {
      var _this$props3 = this.props,
          showModal = _this$props3.showModal,
          closeHandler = _this$props3.closeHandler,
          handleChange = _this$props3.handleChange,
          actionHandler = _this$props3.actionHandler,
          checked = _this$props3.checked,
          spinning = _this$props3.spinning,
          item = _this$props3.item,
          mTitle = _this$props3.mTitle,
          mMsg = _this$props3.mMsg,
          mSpinningMsg = _this$props3.mSpinningMsg,
          mBtnName = _this$props3.mBtnName;
      var spinner = "";
      var saveDisabled = true;

      if (spinning) {
        spinner = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-margin-top ds-modal-spinner"
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Spinner"], {
          loading: true,
          inline: true,
          size: "md"
        }), mSpinningMsg));
        saveDisabled = true;
      }

      if (checked) {
        saveDisabled = false;
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, mTitle)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h4", null, mMsg), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h5", {
        className: "ds-center ds-margin-top-xlg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, item)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top-xlg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12,
        className: "ds-center"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Checkbox"], {
        id: "modalChecked",
        defaultChecked: checked,
        onChange: handleChange
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Yes"), ", I am sure."))), spinner)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: actionHandler,
        disabled: saveDisabled
      }, mBtnName))));
    }
  }]);

  return DoubleConfirmModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
DoubleConfirmModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  actionHandler: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  item: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  checked: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  mTitle: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  mMsg: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  mSpinningMsg: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  mBtnName: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
DoubleConfirmModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  actionHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  spinning: false,
  item: "",
  checked: false,
  mTitle: "",
  mMsg: "",
  mSpinningMsg: "",
  mBtnName: ""
};


/***/ }),

/***/ "./src/lib/plugins/accountPolicy.jsx":
/*!*******************************************!*\
  !*** ./src/lib/plugins/accountPolicy.jsx ***!
  \*******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_7__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }








 // Use default aacount policy name

var AccountPolicy =
/*#__PURE__*/
function (_React$Component) {
  _inherits(AccountPolicy, _React$Component);

  _createClass(AccountPolicy, [{
    key: "componentWillMount",
    value: function componentWillMount(prevProps) {
      this.updateFields();
    }
  }, {
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps) {
      if (this.props.rows !== prevProps.rows) {
        this.updateFields();
      }
    }
  }]);

  function AccountPolicy(props) {
    var _this;

    _classCallCheck(this, AccountPolicy);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(AccountPolicy).call(this, props));
    _this.getAttributes = _this.getAttributes.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.updateFields = _this.updateFields.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleCheckboxChange = _this.handleCheckboxChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.openModal = _this.openModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeModal = _this.closeModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.addConfig = _this.addConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.editConfig = _this.editConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.deleteConfig = _this.deleteConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.cmdOperation = _this.cmdOperation.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.state = {
      attributes: [],
      configArea: "",
      configDN: "",
      altStateAttrName: [],
      alwaysRecordLogin: false,
      alwaysRecordLoginAttr: [],
      limitAttrName: [],
      specAttrName: [],
      stateAttrName: [],
      configEntryModalShow: false,
      fixupModalShow: false,
      newEntry: false
    };
    return _this;
  }

  _createClass(AccountPolicy, [{
    key: "openModal",
    value: function openModal() {
      var _this2 = this;

      this.getAttributes();

      if (!this.state.configArea) {
        this.setState({
          configEntryModalShow: true,
          newEntry: true,
          configDN: "",
          altStateAttrName: [],
          alwaysRecordLogin: false,
          alwaysRecordLoginAttr: [],
          limitAttrName: [],
          specAttrName: [],
          stateAttrName: []
        });
      } else {
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "account-policy", "config-entry", "show", this.state.configArea];
        this.props.toggleLoadingHandler();
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("openModal", "Fetch the Account Policy Plugin config entry", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          var configEntry = JSON.parse(content).attrs;

          _this2.setState({
            configEntryModalShow: true,
            newEntry: false,
            configDN: _this2.state.configArea,
            altStateAttrName: configEntry["altstateattrname"] === undefined ? [] : [{
              id: configEntry["altstateattrname"][0],
              label: configEntry["altstateattrname"][0]
            }],
            alwaysRecordLogin: !(configEntry["alwaysrecordlogin"] === undefined || configEntry["alwaysrecordlogin"][0] == "no"),
            alwaysRecordLoginAttr: configEntry["alwaysrecordloginattr"] === undefined ? [] : [{
              id: configEntry["alwaysrecordloginattr"][0],
              label: configEntry["alwaysrecordloginattr"][0]
            }],
            limitAttrName: configEntry["limitattrname"] === undefined ? [] : [{
              id: configEntry["limitattrname"][0],
              label: configEntry["limitattrname"][0]
            }],
            specAttrName: configEntry["specattrname"] === undefined ? [] : [{
              id: configEntry["specattrname"][0],
              label: configEntry["specattrname"][0]
            }],
            stateAttrName: configEntry["stateattrname"] === undefined ? [] : [{
              id: configEntry["stateattrname"][0],
              label: configEntry["stateattrname"][0]
            }]
          });

          _this2.props.toggleLoadingHandler();
        }).fail(function (_) {
          _this2.setState({
            configEntryModalShow: true,
            newEntry: true,
            configDN: _this2.state.configArea,
            altStateAttrName: [],
            alwaysRecordLogin: false,
            alwaysRecordLoginAttr: [],
            limitAttrName: [],
            specAttrName: [],
            stateAttrName: []
          });

          _this2.props.toggleLoadingHandler();
        });
      }
    }
  }, {
    key: "closeModal",
    value: function closeModal() {
      this.setState({
        configEntryModalShow: false
      });
    }
  }, {
    key: "cmdOperation",
    value: function cmdOperation(action) {
      var _this3 = this;

      var _this$state = this.state,
          configDN = _this$state.configDN,
          altStateAttrName = _this$state.altStateAttrName,
          alwaysRecordLogin = _this$state.alwaysRecordLogin,
          alwaysRecordLoginAttr = _this$state.alwaysRecordLoginAttr,
          limitAttrName = _this$state.limitAttrName,
          specAttrName = _this$state.specAttrName,
          stateAttrName = _this$state.stateAttrName;
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "account-policy", "config-entry", action, configDN, "--always-record-login", alwaysRecordLogin ? "yes" : "no"];
      cmd = _toConsumableArray(cmd).concat(["--alt-state-attr"]);

      if (altStateAttrName.length != 0) {
        cmd = _toConsumableArray(cmd).concat([altStateAttrName[0].label]);
      } else if (action == "add") {
        cmd = _toConsumableArray(cmd).concat([""]);
      } else {
        cmd = _toConsumableArray(cmd).concat(["delete"]);
      }

      cmd = _toConsumableArray(cmd).concat(["--always-record-login-attr"]);

      if (alwaysRecordLoginAttr.length != 0) {
        cmd = _toConsumableArray(cmd).concat([alwaysRecordLoginAttr[0].label]);
      } else if (action == "add") {
        cmd = _toConsumableArray(cmd).concat([""]);
      } else {
        cmd = _toConsumableArray(cmd).concat(["delete"]);
      }

      cmd = _toConsumableArray(cmd).concat(["--limit-attr"]);

      if (limitAttrName.length != 0) {
        cmd = _toConsumableArray(cmd).concat([limitAttrName[0].label]);
      } else if (action == "add") {
        cmd = _toConsumableArray(cmd).concat([""]);
      } else {
        cmd = _toConsumableArray(cmd).concat(["delete"]);
      }

      cmd = _toConsumableArray(cmd).concat(["--spec-attr"]);

      if (specAttrName.length != 0) {
        cmd = _toConsumableArray(cmd).concat([specAttrName[0].label]);
      } else if (action == "add") {
        cmd = _toConsumableArray(cmd).concat([""]);
      } else {
        cmd = _toConsumableArray(cmd).concat(["delete"]);
      }

      cmd = _toConsumableArray(cmd).concat(["--state-attr"]);

      if (stateAttrName.length != 0) {
        cmd = _toConsumableArray(cmd).concat([stateAttrName[0].label]);
      } else if (action == "add") {
        cmd = _toConsumableArray(cmd).concat([""]);
      } else {
        cmd = _toConsumableArray(cmd).concat(["delete"]);
      }

      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("accountPolicyOperation", "Do the ".concat(action, " operation on the Account Policy Plugin"), cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("accountPolicyOperation", "Result", content);

        _this3.props.addNotification("success", "Config entry ".concat(configDN, " was successfully ").concat(action, "ed"));

        _this3.props.pluginListHandler();

        _this3.closeModal();

        _this3.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.addNotification("error", "Error during the config entry ".concat(action, " operation - ").concat(errMsg.desc));

        _this3.props.pluginListHandler();

        _this3.closeModal();

        _this3.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "deleteConfig",
    value: function deleteConfig() {
      var _this4 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "account-policy", "config-entry", "delete", this.state.configDN];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("deleteConfig", "Delete the Account Policy Plugin config entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("deleteConfig", "Result", content);

        _this4.props.addNotification("success", "Config entry ".concat(_this4.state.configDN, " was successfully deleted"));

        _this4.props.pluginListHandler();

        _this4.closeModal();

        _this4.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this4.props.addNotification("error", "Error during the config entry removal operation - ".concat(errMsg.desc));

        _this4.props.pluginListHandler();

        _this4.closeModal();

        _this4.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "addConfig",
    value: function addConfig() {
      this.cmdOperation("add");
    }
  }, {
    key: "editConfig",
    value: function editConfig() {
      this.cmdOperation("set");
    }
  }, {
    key: "handleCheckboxChange",
    value: function handleCheckboxChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.checked));
    }
  }, {
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.value));
    }
  }, {
    key: "updateFields",
    value: function updateFields() {
      if (this.props.rows.length > 0) {
        var pluginRow = this.props.rows.find(function (row) {
          return row.cn[0] === "Account Policy Plugin";
        });
        this.setState({
          configArea: pluginRow["nsslapd_pluginconfigarea"] === undefined ? "" : pluginRow["nsslapd_pluginconfigarea"][0]
        });
      }
    }
  }, {
    key: "getAttributes",
    value: function getAttributes() {
      var _this5 = this;

      var attr_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "list"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("getAttributes", "Get attrs", attr_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(attr_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var attrContent = JSON.parse(content);
        var attrs = [];
        var _iteratorNormalCompletion = true;
        var _didIteratorError = false;
        var _iteratorError = undefined;

        try {
          for (var _iterator = attrContent["items"][Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
            var _content = _step.value;
            attrs.push({
              id: _content.name,
              label: _content.name
            });
          }
        } catch (err) {
          _didIteratorError = true;
          _iteratorError = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion && _iterator.return != null) {
              _iterator.return();
            }
          } finally {
            if (_didIteratorError) {
              throw _iteratorError;
            }
          }
        }

        _this5.setState({
          attributes: attrs
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.props.addNotification("error", "Failed to get attributes - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this6 = this;

      var _this$state2 = this.state,
          attributes = _this$state2.attributes,
          configArea = _this$state2.configArea,
          configDN = _this$state2.configDN,
          altStateAttrName = _this$state2.altStateAttrName,
          alwaysRecordLogin = _this$state2.alwaysRecordLogin,
          alwaysRecordLoginAttr = _this$state2.alwaysRecordLoginAttr,
          limitAttrName = _this$state2.limitAttrName,
          specAttrName = _this$state2.specAttrName,
          stateAttrName = _this$state2.stateAttrName,
          newEntry = _this$state2.newEntry,
          configEntryModalShow = _this$state2.configEntryModalShow;
      var specificPluginCMD = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "account-policy", "set", "--config-entry", configArea || "delete"];
      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: configEntryModalShow,
        onHide: this.closeModal
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.closeModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, "Manage Account Policy Plugin Shared Config Entry")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "configDN"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "DN of the config entry"
      }, "Config DN")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: configDN,
        onChange: this.handleFieldChange,
        disabled: !newEntry
      })))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "alwaysRecordLoginAttr",
        controlId: "alwaysRecordLoginAttr",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 4,
        title: "Specifies the attribute to store the time of the last successful login in this attribute in the users directory entry (alwaysRecordLoginAttr)"
      }, "Always Record Login Attribute"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 5
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        onChange: function onChange(value) {
          _this6.setState({
            alwaysRecordLoginAttr: value
          });
        },
        selected: alwaysRecordLoginAttr,
        options: attributes,
        newSelectionPrefix: "Add a managed attribute: ",
        placeholder: "Type an attribute..."
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Checkbox"], {
        id: "alwaysRecordLogin",
        checked: alwaysRecordLogin,
        title: "Sets that every entry records its last login time (alwaysRecordLogin)",
        onChange: this.handleCheckboxChange
      }, "Always Record Login")))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "specAttrName",
        controlId: "specAttrName",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 4,
        title: "Specifies the attribute to identify which entries are account policy configuration entries (specAttrName)"
      }, "Specific Attribute"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        onChange: function onChange(value) {
          _this6.setState({
            specAttrName: value
          });
        },
        selected: specAttrName,
        options: attributes,
        newSelectionPrefix: "Add a managed attribute: ",
        placeholder: "Type an attribute..."
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "stateAttrName",
        controlId: "stateAttrName",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "Specifies the primary time attribute used to evaluate an account policy (stateAttrName)"
      }, "State Attribute")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        onChange: function onChange(value) {
          _this6.setState({
            stateAttrName: value
          });
        },
        selected: stateAttrName,
        options: attributes,
        newSelectionPrefix: "Add a managed attribute: ",
        placeholder: "Type an attribute..."
      })))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "altStateAttrName",
        controlId: "altStateAttrName",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 4,
        title: "Provides a backup attribute for the server to reference to evaluate the expiration time (altStateAttrName)"
      }, "Alternative State Attribute"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        onChange: function onChange(value) {
          _this6.setState({
            altStateAttrName: value
          });
        },
        selected: altStateAttrName,
        options: attributes,
        newSelectionPrefix: "Add a managed attribute: ",
        placeholder: "Type an attribute..."
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "limitAttrName",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "Specifies the attribute within the policy to use for the account inactivation limit (limitAttrName)"
      }, "Limit Attribute")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        onChange: function onChange(value) {
          _this6.setState({
            limitAttrName: value
          });
        },
        selected: limitAttrName,
        options: attributes,
        newSelectionPrefix: "Add a managed attribute: ",
        placeholder: "Type an attribute..."
      }))))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.closeModal
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.deleteConfig,
        disabled: newEntry
      }, "Delete"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.editConfig,
        disabled: newEntry
      }, "Save"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.addConfig,
        disabled: !newEntry
      }, "Add")))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__["default"], {
        rows: this.props.rows,
        serverId: this.props.serverId,
        cn: "Account Policy Plugin",
        pluginName: "Account Policy",
        cmdName: "account-policy",
        specificPluginCMD: specificPluginCMD,
        savePluginHandler: this.props.savePluginHandler,
        pluginListHandler: this.props.pluginListHandler,
        addNotification: this.props.addNotification,
        toggleLoadingHandler: this.props.toggleLoadingHandler
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 10
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "configArea",
        controlId: "configArea"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "DN of the shared config entry (nsslapd-pluginConfigArea)"
      }, "Shared Config Entry"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 7
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: configArea,
        onChange: this.handleFieldChange
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.openModal
      }, "Manage"))))))));
    }
  }]);

  return AccountPolicy;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

AccountPolicy.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.array,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
  savePluginHandler: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,
  pluginListHandler: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,
  toggleLoadingHandler: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func
};
AccountPolicy.defaultProps = {
  rows: [],
  serverId: "",
  savePluginHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  pluginListHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  toggleLoadingHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (AccountPolicy);

/***/ }),

/***/ "./src/lib/plugins/attributeUniqueness.jsx":
/*!*************************************************!*\
  !*** ./src/lib/plugins/attributeUniqueness.jsx ***!
  \*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _pluginTables_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pluginTables.jsx */ "./src/lib/plugins/pluginTables.jsx");
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_8__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }











var AttributeUniqueness =
/*#__PURE__*/
function (_React$Component) {
  _inherits(AttributeUniqueness, _React$Component);

  _createClass(AttributeUniqueness, [{
    key: "componentWillMount",
    value: function componentWillMount() {
      this.loadConfigs();
    }
  }]);

  function AttributeUniqueness(props) {
    var _this;

    _classCallCheck(this, AttributeUniqueness);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(AttributeUniqueness).call(this, props));
    _this.state = {
      configRows: [],
      attributes: [],
      objectClasses: [],
      configName: "",
      configEnabled: false,
      attrNames: [],
      subtrees: [],
      acrossAllSubtrees: false,
      topEntryOc: [],
      subtreeEnriesOc: [],
      newEntry: false,
      showConfigModal: false,
      showConfirmDeleteConfig: false
    };
    _this.handleSwitchChange = _this.handleSwitchChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleCheckboxChange = _this.handleCheckboxChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadConfigs = _this.loadConfigs.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showEditConfigModal = _this.showEditConfigModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showAddConfigModal = _this.showAddConfigModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.getAttributes = _this.getAttributes.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.getObjectClasses = _this.getObjectClasses.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeModal = _this.closeModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.openModal = _this.openModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.cmdOperation = _this.cmdOperation.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.deleteConfig = _this.deleteConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.addConfig = _this.addConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.editConfig = _this.editConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(AttributeUniqueness, [{
    key: "handleSwitchChange",
    value: function handleSwitchChange(value) {
      this.setState({
        configEnabled: !value
      });
    }
  }, {
    key: "handleCheckboxChange",
    value: function handleCheckboxChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.checked));
    }
  }, {
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.value));
    }
  }, {
    key: "loadConfigs",
    value: function loadConfigs() {
      var _this2 = this;

      // Get all the attributes and matching rules now
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "attr-uniq", "list"];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("loadConfigs", "Get Attribute Uniqueness Plugin configs", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var myObject = JSON.parse(content);

        _this2.setState({
          configRows: myObject.items.map(function (item) {
            return JSON.parse(item).attrs;
          })
        });

        _this2.props.toggleLoadingHandler();
      }).fail(function (err) {
        if (err != 0) {
          var errMsg = JSON.parse(err);
          console.log("loadConfigs failed", errMsg.desc);
        }

        _this2.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "showEditConfigModal",
    value: function showEditConfigModal(rowData) {
      this.openModal(rowData.cn[0]);
    }
  }, {
    key: "showAddConfigModal",
    value: function showAddConfigModal(rowData) {
      this.openModal();
    }
  }, {
    key: "openModal",
    value: function openModal(name) {
      var _this3 = this;

      this.getAttributes();
      this.getObjectClasses();

      if (!name) {
        this.setState({
          configEntryModalShow: true,
          newEntry: true,
          configName: "",
          attrNames: [],
          subtrees: [],
          acrossAllSubtrees: false,
          topEntryOc: [],
          subtreeEnriesOc: []
        });
      } else {
        var configAttrNamesList = [];
        var configSubtreesList = [];
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "attr-uniq", "show", name];
        this.props.toggleLoadingHandler();
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("openModal", "Fetch the Attribute Uniqueness Plugin config entry", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          var configEntry = JSON.parse(content).attrs;

          _this3.setState({
            configEntryModalShow: true,
            newEntry: false,
            configName: configEntry["cn"] === undefined ? "" : configEntry["cn"][0],
            configEnabled: !(configEntry["nsslapd-pluginenabled"] === undefined || configEntry["nsslapd-pluginenabled"][0] == "off"),
            acrossAllSubtrees: !(configEntry["uniqueness-across-all-subtrees"] === undefined || configEntry["uniqueness-across-all-subtrees"][0] == "off"),
            topEntryOc: configEntry["uniqueness-top-entry-oc"] === undefined ? [] : [{
              id: configEntry["uniqueness-top-entry-oc"][0],
              label: configEntry["uniqueness-top-entry-oc"][0]
            }],
            subtreeEnriesOc: configEntry["uniqueness-subtree-entries-oc"] === undefined ? [] : [{
              id: configEntry["uniqueness-subtree-entries-oc"][0],
              label: configEntry["uniqueness-subtree-entries-oc"][0]
            }]
          });

          if (configEntry["uniqueness-attribute-name"] === undefined) {
            _this3.setState({
              attrNames: []
            });
          } else {
            var _iteratorNormalCompletion = true;
            var _didIteratorError = false;
            var _iteratorError = undefined;

            try {
              for (var _iterator = configEntry["uniqueness-attribute-name"][Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
                var value = _step.value;
                configAttrNamesList = _toConsumableArray(configAttrNamesList).concat([{
                  id: value,
                  label: value
                }]);
              }
            } catch (err) {
              _didIteratorError = true;
              _iteratorError = err;
            } finally {
              try {
                if (!_iteratorNormalCompletion && _iterator.return != null) {
                  _iterator.return();
                }
              } finally {
                if (_didIteratorError) {
                  throw _iteratorError;
                }
              }
            }

            _this3.setState({
              attrNames: configAttrNamesList
            });
          }

          if (configEntry["uniqueness-subtrees"] === undefined) {
            _this3.setState({
              subtrees: []
            });
          } else {
            var _iteratorNormalCompletion2 = true;
            var _didIteratorError2 = false;
            var _iteratorError2 = undefined;

            try {
              for (var _iterator2 = configEntry["uniqueness-subtrees"][Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
                var _value = _step2.value;
                configSubtreesList = _toConsumableArray(configSubtreesList).concat([{
                  id: _value,
                  label: _value
                }]);
              }
            } catch (err) {
              _didIteratorError2 = true;
              _iteratorError2 = err;
            } finally {
              try {
                if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
                  _iterator2.return();
                }
              } finally {
                if (_didIteratorError2) {
                  throw _iteratorError2;
                }
              }
            }

            _this3.setState({
              subtrees: configSubtreesList
            });
          }

          _this3.props.toggleLoadingHandler();
        }).fail(function (_) {
          _this3.setState({
            configEntryModalShow: true,
            newEntry: true,
            configName: "",
            attrNames: [],
            subtrees: [],
            acrossAllSubtrees: false,
            topEntryOc: [],
            subtreeEnriesOc: []
          });

          _this3.props.toggleLoadingHandler();
        });
      }
    }
  }, {
    key: "closeModal",
    value: function closeModal() {
      this.setState({
        configEntryModalShow: false
      });
    }
  }, {
    key: "cmdOperation",
    value: function cmdOperation(action) {
      var _this4 = this;

      var _this$state = this.state,
          configName = _this$state.configName,
          configEnabled = _this$state.configEnabled,
          attrNames = _this$state.attrNames,
          subtrees = _this$state.subtrees,
          acrossAllSubtrees = _this$state.acrossAllSubtrees,
          topEntryOc = _this$state.topEntryOc,
          subtreeEnriesOc = _this$state.subtreeEnriesOc;
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "attr-uniq", action, configName, "--enabled", configEnabled ? "on" : "off", "--across-all-subtrees", acrossAllSubtrees ? "on" : "off"]; // Delete attributes if the user set an empty value to the field

      if (!(action == "add" && attrNames.length == 0)) {
        cmd = _toConsumableArray(cmd).concat(["--attr-name"]);

        if (attrNames.length != 0) {
          var _iteratorNormalCompletion3 = true;
          var _didIteratorError3 = false;
          var _iteratorError3 = undefined;

          try {
            for (var _iterator3 = attrNames[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
              var value = _step3.value;
              cmd = _toConsumableArray(cmd).concat([value.label]);
            }
          } catch (err) {
            _didIteratorError3 = true;
            _iteratorError3 = err;
          } finally {
            try {
              if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
                _iterator3.return();
              }
            } finally {
              if (_didIteratorError3) {
                throw _iteratorError3;
              }
            }
          }
        } else if (action == "add") {
          cmd = _toConsumableArray(cmd).concat([""]);
        } else {
          cmd = _toConsumableArray(cmd).concat(["delete"]);
        }
      }

      if (!(action == "add" && subtrees.length == 0)) {
        cmd = _toConsumableArray(cmd).concat(["--subtree"]);

        if (subtrees.length != 0) {
          var _iteratorNormalCompletion4 = true;
          var _didIteratorError4 = false;
          var _iteratorError4 = undefined;

          try {
            for (var _iterator4 = subtrees[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {
              var _value2 = _step4.value;
              cmd = _toConsumableArray(cmd).concat([_value2.label]);
            }
          } catch (err) {
            _didIteratorError4 = true;
            _iteratorError4 = err;
          } finally {
            try {
              if (!_iteratorNormalCompletion4 && _iterator4.return != null) {
                _iterator4.return();
              }
            } finally {
              if (_didIteratorError4) {
                throw _iteratorError4;
              }
            }
          }
        } else if (action == "add") {
          cmd = _toConsumableArray(cmd).concat([""]);
        } else {
          cmd = _toConsumableArray(cmd).concat(["delete"]);
        }
      }

      cmd = _toConsumableArray(cmd).concat(["--top-entry-oc"]);

      if (topEntryOc.length != 0) {
        cmd = _toConsumableArray(cmd).concat([topEntryOc[0].label]);
      } else if (action == "add") {
        cmd = _toConsumableArray(cmd).concat([""]);
      } else {
        cmd = _toConsumableArray(cmd).concat(["delete"]);
      }

      cmd = _toConsumableArray(cmd).concat(["--subtree-entries-oc"]);

      if (subtreeEnriesOc.length != 0) {
        cmd = _toConsumableArray(cmd).concat([subtreeEnriesOc[0].label]);
      } else if (action == "add") {
        cmd = _toConsumableArray(cmd).concat([""]);
      } else {
        cmd = _toConsumableArray(cmd).concat(["delete"]);
      }

      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("attrUniqOperation", "Do the ".concat(action, " operation on the Attribute Uniqueness Plugin"), cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("attrUniqOperation", "Result", content);

        _this4.props.addNotification("success", "The ".concat(action, " operation was successfully done on \"").concat(configName, "\" entry"));

        _this4.loadConfigs();

        _this4.closeModal();

        _this4.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this4.props.addNotification("error", "Error during the config entry ".concat(action, " operation - ").concat(errMsg.desc));

        _this4.loadConfigs();

        _this4.closeModal();

        _this4.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "deleteConfig",
    value: function deleteConfig(rowData) {
      var _this5 = this;

      var configName = rowData.cn[0];
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "attr-uniq", "delete", configName];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("deleteConfig", "Delete the Attribute Uniqueness Plugin config entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("deleteConfig", "Result", content);

        _this5.props.addNotification("success", "Config entry ".concat(configName, " was successfully deleted"));

        _this5.loadConfigs();

        _this5.closeModal();

        _this5.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.props.addNotification("error", "Error during the config entry removal operation - ".concat(errMsg.desc));

        _this5.loadConfigs();

        _this5.closeModal();

        _this5.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "addConfig",
    value: function addConfig() {
      this.cmdOperation("add");
    }
  }, {
    key: "editConfig",
    value: function editConfig() {
      this.cmdOperation("set");
    }
  }, {
    key: "getAttributes",
    value: function getAttributes() {
      var _this6 = this;

      var attr_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "list"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("getAttributes", "Get attrs", attr_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(attr_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var attrContent = JSON.parse(content);
        var attrs = [];
        var _iteratorNormalCompletion5 = true;
        var _didIteratorError5 = false;
        var _iteratorError5 = undefined;

        try {
          for (var _iterator5 = attrContent["items"][Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) {
            var _content = _step5.value;
            attrs.push({
              id: _content.name,
              label: _content.name
            });
          }
        } catch (err) {
          _didIteratorError5 = true;
          _iteratorError5 = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion5 && _iterator5.return != null) {
              _iterator5.return();
            }
          } finally {
            if (_didIteratorError5) {
              throw _iteratorError5;
            }
          }
        }

        _this6.setState({
          attributes: attrs
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this6.props.addNotification("error", "Failed to get attributes - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "getObjectClasses",
    value: function getObjectClasses() {
      var _this7 = this;

      var oc_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "objectclasses", "list"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("getObjectClasses", "Get objectClasses", oc_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(oc_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var ocContent = JSON.parse(content);
        var ocs = [];
        var _iteratorNormalCompletion6 = true;
        var _didIteratorError6 = false;
        var _iteratorError6 = undefined;

        try {
          for (var _iterator6 = ocContent["items"][Symbol.iterator](), _step6; !(_iteratorNormalCompletion6 = (_step6 = _iterator6.next()).done); _iteratorNormalCompletion6 = true) {
            var _content2 = _step6.value;
            ocs.push({
              id: _content2.name,
              label: _content2.name
            });
          }
        } catch (err) {
          _didIteratorError6 = true;
          _iteratorError6 = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion6 && _iterator6.return != null) {
              _iterator6.return();
            }
          } finally {
            if (_didIteratorError6) {
              throw _iteratorError6;
            }
          }
        }

        _this7.setState({
          objectClasses: ocs
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this7.props.addNotification("error", "Failed to get objectClasses - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this8 = this;

      var _this$state2 = this.state,
          configEntryModalShow = _this$state2.configEntryModalShow,
          configName = _this$state2.configName,
          attrNames = _this$state2.attrNames,
          subtrees = _this$state2.subtrees,
          acrossAllSubtrees = _this$state2.acrossAllSubtrees,
          configEnabled = _this$state2.configEnabled,
          topEntryOc = _this$state2.topEntryOc,
          subtreeEnriesOc = _this$state2.subtreeEnriesOc,
          newEntry = _this$state2.newEntry,
          attributes = _this$state2.attributes,
          objectClasses = _this$state2.objectClasses;
      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: configEntryModalShow,
        onHide: this.closeModal
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.closeModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, newEntry ? "Add" : "Edit", " Attribute Uniqueness Plugin Config Entry")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "configName"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "Sets the name of the plug-in configuration record. (cn) You can use any string, but \"attribute_name Attribute Uniqueness\" is recommended."
      }, "Config Name")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: configName,
        onChange: this.handleFieldChange,
        disabled: !newEntry
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "attrNames",
        controlId: "attrNames",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Sets the name of the attribute whose values must be unique. This attribute is multi-valued. (uniqueness-attribute-name)"
      }, "Attribute Names"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(values) {
          _this8.setState({
            attrNames: values
          });
        },
        selected: attrNames,
        newSelectionPrefix: "Add an attribute: ",
        options: attributes,
        placeholder: "Type an attribute name..."
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "subtrees",
        controlId: "subtrees",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Sets the DN under which the plug-in checks for uniqueness of the attributes value. This attribute is multi-valued (uniqueness-subtrees)"
      }, "Subtrees"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(values) {
          _this8.setState({
            subtrees: values
          });
        },
        selected: subtrees,
        options: [""],
        newSelectionPrefix: "Add a subtree: ",
        placeholder: "Type a subtree DN..."
      })))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "topEntryOc",
        controlId: "topEntryOc",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Verifies that the value of the attribute set in uniqueness-attribute-name is unique in this subtree (uniqueness-top-entry-oc)"
      }, "Top Entry OC"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        onChange: function onChange(value) {
          _this8.setState({
            topEntryOc: value
          });
        },
        selected: topEntryOc,
        options: objectClasses,
        newSelectionPrefix: "Add a top entry objectClass: ",
        placeholder: "Type an objectClass..."
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "subtreeEnriesOc",
        controlId: "subtreeEnriesOc",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Verifies if an attribute is unique, if the entry contains the object class set in this parameter (uniqueness-subtree-entries-oc)"
      }, "Subtree Entries OC"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        onChange: function onChange(value) {
          _this8.setState({
            subtreeEnriesOc: value
          });
        },
        selected: subtreeEnriesOc,
        options: objectClasses,
        newSelectionPrefix: "Add a subtree entries objectClass: ",
        placeholder: "Type an objectClass..."
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Checkbox"], {
        id: "acrossAllSubtrees",
        checked: acrossAllSubtrees,
        title: "If enabled (on), the plug-in checks that the attribute is unique across all subtrees set. If you set the attribute to off, uniqueness is only enforced within the subtree of the updated entry (uniqueness-across-all-subtrees)",
        onChange: this.handleCheckboxChange
      }, "Across All Subtrees"))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "configEnabled",
        controlId: "configEnabled",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Identifies whether or not the config is enabled."
      }, "Enable config"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Switch"], {
        bsSize: "normal",
        title: "normal",
        id: "configEnabled",
        value: configEnabled,
        onChange: function onChange() {
          return _this8.handleSwitchChange(configEnabled);
        },
        animate: false
      }))))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.closeModal
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: newEntry ? this.addConfig : this.editConfig
      }, "Save")))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__["default"], {
        removeSwitch: true,
        rows: this.props.rows,
        serverId: this.props.serverId,
        cn: "attribute uniqueness",
        pluginName: "Attribute Uniqueness",
        cmdName: "attr-uniq",
        savePluginHandler: this.props.savePluginHandler,
        pluginListHandler: this.props.pluginListHandler,
        addNotification: this.props.addNotification,
        toggleLoadingHandler: this.props.toggleLoadingHandler
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_4__["AttrUniqConfigTable"], {
        rows: this.state.configRows,
        editConfig: this.showEditConfigModal,
        deleteConfig: this.deleteConfig
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        className: "ds-margin-top",
        bsStyle: "primary",
        onClick: this.showAddConfigModal
      }, "Add Config")))));
    }
  }]);

  return AttributeUniqueness;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

AttributeUniqueness.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  savePluginHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  pluginListHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  toggleLoadingHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func
};
AttributeUniqueness.defaultProps = {
  rows: [],
  serverId: "",
  savePluginHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  pluginListHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  toggleLoadingHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (AttributeUniqueness);

/***/ }),

/***/ "./src/lib/plugins/autoMembership.jsx":
/*!********************************************!*\
  !*** ./src/lib/plugins/autoMembership.jsx ***!
  \********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _pluginTables_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pluginTables.jsx */ "./src/lib/plugins/pluginTables.jsx");
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_8__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }

function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }











var AutoMembership =
/*#__PURE__*/
function (_React$Component) {
  _inherits(AutoMembership, _React$Component);

  _createClass(AutoMembership, [{
    key: "componentWillMount",
    value: function componentWillMount() {
      this.loadDefinitions();
    }
  }]);

  function AutoMembership(props) {
    var _this;

    _classCallCheck(this, AutoMembership);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(AutoMembership).call(this, props));
    _this.state = {
      definitionRows: [],
      regexRows: [],
      regexesToDelete: [],
      attributes: [],
      definitionName: "",
      defaultGroup: "",
      filter: "",
      groupingAttrMember: [],
      groupingAttrEntry: "",
      scope: "",
      regexName: "",
      regexExclusive: [],
      regexInclusive: [],
      regexTargetGroup: "",
      newDefinitionEntry: false,
      newRegexEntry: false,
      definitionEntryModalShow: false,
      regexEntryModalShow: false
    };
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadDefinitions = _this.loadDefinitions.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadRegexes = _this.loadRegexes.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.getAttributes = _this.getAttributes.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.openModal = _this.openModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeModal = _this.closeModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showEditDefinitionModal = _this.showEditDefinitionModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showAddDefinitionModal = _this.showAddDefinitionModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.cmdOperation = _this.cmdOperation.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.deleteDefinition = _this.deleteDefinition.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.addDefinition = _this.addDefinition.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.editDefinition = _this.editDefinition.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.openRegexModal = _this.openRegexModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeRegexModal = _this.closeRegexModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showEditRegexModal = _this.showEditRegexModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showAddRegexModal = _this.showAddRegexModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.cmdRegexOperation = _this.cmdRegexOperation.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.deleteRegex = _this.deleteRegex.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.addRegex = _this.addRegex.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.editRegex = _this.editRegex.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(AutoMembership, [{
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.value));
    }
  }, {
    key: "loadDefinitions",
    value: function loadDefinitions() {
      var _this2 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "automember", "list", "definitions"];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("loadDefinitions", "Get Auto Membership Plugin definitions", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var myObject = JSON.parse(content);

        _this2.setState({
          definitionRows: myObject.items.map(function (item) {
            return JSON.parse(item).attrs;
          })
        });

        _this2.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        if (err != 0) {
          console.log("loadDefinitions failed", errMsg.desc);
        }

        _this2.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "loadRegexes",
    value: function loadRegexes(defName) {
      var _this3 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "automember", "list", "regexes", defName];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("loadRegexes", "Get Auto Membership Plugin regexes", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var myObject = JSON.parse(content);

        _this3.setState({
          regexRows: myObject.items.map(function (item) {
            return JSON.parse(item).attrs;
          })
        });

        _this3.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        if (err != 0) {
          console.log("loadRegexes failed", errMsg.desc);
        }

        _this3.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "showEditDefinitionModal",
    value: function showEditDefinitionModal(rowData) {
      this.openModal(rowData.cn[0]);
    }
  }, {
    key: "showAddDefinitionModal",
    value: function showAddDefinitionModal(rowData) {
      this.openModal();
    }
  }, {
    key: "openModal",
    value: function openModal(name) {
      var _this4 = this;

      this.getAttributes();

      if (!name) {
        this.setState({
          definitionEntryModalShow: true,
          newDefinitionEntry: true,
          regexRows: [],
          definitionName: "",
          defaultGroup: "",
          filter: "",
          groupingAttrMember: [],
          groupingAttrEntry: "",
          scope: ""
        });
      } else {
        this.loadRegexes(name);
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "automember", "definition", name, "show"];
        this.props.toggleLoadingHandler();
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("openModal", "Fetch the Auto Membership Plugin definition entry", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          var definitionEntry = JSON.parse(content).attrs;

          _this4.setState({
            definitionEntryModalShow: true,
            newDefinitionEntry: false,
            definitionName: definitionEntry["cn"] === undefined ? "" : definitionEntry["cn"][0],
            defaultGroup: definitionEntry["automemberdefaultgroup"] === undefined ? "" : definitionEntry["automemberdefaultgroup"][0],
            filter: definitionEntry["automemberfilter"] === undefined ? "" : definitionEntry["automemberfilter"][0],
            scope: definitionEntry["automemberscope"] === undefined ? "" : definitionEntry["automemberscope"][0]
          });

          if (definitionEntry["automembergroupingattr"] === undefined) {
            _this4.setState({
              groupingAttrMember: [],
              groupingAttrEntry: ""
            });
          } else {
            var groupingAttr = definitionEntry["automembergroupingattr"][0];

            _this4.setState({
              groupingAttrMember: [{
                id: groupingAttr.split(":")[0],
                label: groupingAttr.split(":")[0]
              }],
              groupingAttrEntry: groupingAttr.split(":")[1]
            });
          }

          _this4.props.toggleLoadingHandler();
        }).fail(function (_) {
          _this4.setState({
            definitionEntryModalShow: true,
            newDefinitionEntry: true,
            regexRows: [],
            definitionName: "",
            defaultGroup: "",
            filter: "",
            groupingAttrMember: [],
            groupingAttrEntry: "",
            scope: ""
          });

          _this4.props.toggleLoadingHandler();
        });
      }
    }
  }, {
    key: "showEditRegexModal",
    value: function showEditRegexModal(rowData) {
      this.openRegexModal(rowData.cn[0]);
    }
  }, {
    key: "showAddRegexModal",
    value: function showAddRegexModal(rowData) {
      this.openRegexModal();
    }
  }, {
    key: "closeModal",
    value: function closeModal() {
      this.setState({
        definitionEntryModalShow: false
      });
    }
  }, {
    key: "closeRegexModal",
    value: function closeRegexModal() {
      this.setState({
        regexEntryModalShow: false
      });
    }
  }, {
    key: "cmdOperation",
    value: function cmdOperation(action) {
      var _this5 = this;

      var _this$state = this.state,
          definitionName = _this$state.definitionName,
          defaultGroup = _this$state.defaultGroup,
          filter = _this$state.filter,
          groupingAttrMember = _this$state.groupingAttrMember,
          groupingAttrEntry = _this$state.groupingAttrEntry,
          scope = _this$state.scope;

      if (definitionName === "" || scope === "" || filter === "" || groupingAttrMember.length == 0 || groupingAttrEntry === "") {
        this.props.addNotification("warning", "Name, Scope, Filter and Grouping Attribute are required.");
      } else {
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "automember", "definition", definitionName, action, "--default-group", defaultGroup || action == "add" ? defaultGroup : "delete", "--filter", filter || action == "add" ? filter : "delete", "--scope", scope || action == "add" ? scope : "delete"];
        cmd = _toConsumableArray(cmd).concat(["--grouping-attr"]);

        if (groupingAttrMember.length != 0 && groupingAttrEntry.length != 0) {
          cmd = _toConsumableArray(cmd).concat(["".concat(groupingAttrMember[0].id, ":").concat(groupingAttrEntry)]);
        } else if (action == "add") {
          cmd = _toConsumableArray(cmd).concat([""]);
        } else {
          cmd = _toConsumableArray(cmd).concat(["delete"]);
        }

        this.props.toggleLoadingHandler();
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("AutoMembershipOperation", "Do the ".concat(action, " operation on the Auto Membership Plugin"), cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          console.info("AutoMembershipOperation", "Result", content);

          _this5.props.addNotification("success", "The ".concat(action, " operation was successfully done on \"").concat(definitionName, "\" entry"));

          _this5.loadDefinitions();

          _this5.purgeRegexUpdate();

          _this5.closeModal();

          _this5.props.toggleLoadingHandler();
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          if (errMsg.desc.indexOf("nothing to set") === 0) {
            _this5.props.addNotification("error", "Error during the definition entry ".concat(action, " operation - ").concat(errMsg.desc));
          } else {
            _this5.purgeRegexUpdate();
          }

          _this5.loadDefinitions();

          _this5.closeModal();

          _this5.props.toggleLoadingHandler();
        });
      }
    }
  }, {
    key: "purgeRegexUpdate",
    value: function purgeRegexUpdate() {
      var _this6 = this;

      var _this$state2 = this.state,
          definitionName = _this$state2.definitionName,
          regexesToDelete = _this$state2.regexesToDelete,
          regexRows = _this$state2.regexRows;
      var _iteratorNormalCompletion = true;
      var _didIteratorError = false;
      var _iteratorError = undefined;

      try {
        var _loop = function _loop() {
          var regexToDelete = _step.value;
          var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + _this6.props.serverId + ".socket", "plugin", "automember", "definition", definitionName, "regex", regexToDelete, "delete"];
          Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("AutoMembershipRegexOperation", "Do the delete operation on the Auto Membership Plugin Regex Entry", cmd);
          cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
            superuser: true,
            err: "message"
          }).done(function (content) {
            console.info("AutoMembershipRegexOperation", "Result", "The delete operation was successfully done on \"".concat(regexToDelete, "\" entry"));
          }).fail(function (err) {
            var errMsg = JSON.parse(err);

            _this6.props.addNotification("error", "Error during the regex \"".concat(regexToDelete, "\" entry delete operation - ").concat(errMsg.desc));
          });
        };

        for (var _iterator = regexesToDelete[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
          _loop();
        }
      } catch (err) {
        _didIteratorError = true;
        _iteratorError = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion && _iterator.return != null) {
            _iterator.return();
          }
        } finally {
          if (_didIteratorError) {
            throw _iteratorError;
          }
        }
      }

      var _iteratorNormalCompletion2 = true;
      var _didIteratorError2 = false;
      var _iteratorError2 = undefined;

      try {
        var _loop2 = function _loop2() {
          var row = _step2.value;
          var action = "";
          var regexName = "";

          if (row.needsadd !== undefined) {
            action = "add";
            regexName = row.cn[0];
          } else if (row.needsupdate !== undefined) {
            action = "set";
            regexName = row.cn[0];
          } else {
            return "continue";
          }

          var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + _this6.props.serverId + ".socket", "plugin", "automember", "definition", definitionName, "regex", regexName, action];
          var regexTargetGroup = row.automembertargetgroup[0];
          var regexExclusive = row.automemberexclusiveregex;
          var regexInclusive = row.automemberinclusiveregex;

          if (!(action == "add" && regexTargetGroup == 0)) {
            cmd = _toConsumableArray(cmd).concat(["--target-group"]);

            if (regexTargetGroup) {
              cmd = _toConsumableArray(cmd).concat([regexTargetGroup]);
            } else if (action == "add") {
              cmd = _toConsumableArray(cmd).concat([""]);
            } else {
              cmd = _toConsumableArray(cmd).concat(["delete"]);
            }
          }

          if (!(action == "add" && regexExclusive.length == 0)) {
            cmd = _toConsumableArray(cmd).concat(["--exclusive"]);

            if (regexExclusive.length != 0) {
              var _iteratorNormalCompletion3 = true;
              var _didIteratorError3 = false;
              var _iteratorError3 = undefined;

              try {
                for (var _iterator3 = regexExclusive[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
                  var regex = _step3.value;
                  cmd = _toConsumableArray(cmd).concat([regex]);
                }
              } catch (err) {
                _didIteratorError3 = true;
                _iteratorError3 = err;
              } finally {
                try {
                  if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
                    _iterator3.return();
                  }
                } finally {
                  if (_didIteratorError3) {
                    throw _iteratorError3;
                  }
                }
              }
            } else if (action == "add") {
              cmd = _toConsumableArray(cmd).concat([""]);
            } else {
              cmd = _toConsumableArray(cmd).concat(["delete"]);
            }
          }

          if (!(action == "add" && regexInclusive.length == 0)) {
            cmd = _toConsumableArray(cmd).concat(["--inclusive"]);

            if (regexInclusive.length != 0) {
              var _iteratorNormalCompletion4 = true;
              var _didIteratorError4 = false;
              var _iteratorError4 = undefined;

              try {
                for (var _iterator4 = regexInclusive[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {
                  var _regex = _step4.value;
                  cmd = _toConsumableArray(cmd).concat([_regex]);
                }
              } catch (err) {
                _didIteratorError4 = true;
                _iteratorError4 = err;
              } finally {
                try {
                  if (!_iteratorNormalCompletion4 && _iterator4.return != null) {
                    _iterator4.return();
                  }
                } finally {
                  if (_didIteratorError4) {
                    throw _iteratorError4;
                  }
                }
              }
            } else if (action == "add") {
              cmd = _toConsumableArray(cmd).concat([""]);
            } else {
              cmd = _toConsumableArray(cmd).concat(["delete"]);
            }
          }

          Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("AutoMembershipRegexOperation", "Do the ".concat(action, " operation on the Auto Membership Plugin Regex Entry"), cmd);
          cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
            superuser: true,
            err: "message"
          }).done(function (content) {
            console.info("AutoMembershipRegexOperation", "Result", "The ".concat(action, " operation was successfully done on \"").concat(regexName, "\" entry"));
          }).fail(function (err) {
            var errMsg = JSON.parse(err);

            _this6.props.addNotification("error", "Error during the regex \"".concat(regexName, "\" entry ").concat(action, " operation - ").concat(errMsg.desc));
          });
        };

        for (var _iterator2 = regexRows[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
          var _ret = _loop2();

          if (_ret === "continue") continue;
        }
      } catch (err) {
        _didIteratorError2 = true;
        _iteratorError2 = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
            _iterator2.return();
          }
        } finally {
          if (_didIteratorError2) {
            throw _iteratorError2;
          }
        }
      }
    }
  }, {
    key: "deleteDefinition",
    value: function deleteDefinition(rowData) {
      var _this7 = this;

      var definitionName = rowData.cn[0];
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "automember", "definition", definitionName, "delete"];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("deleteDefinition", "Delete the Auto Membership Plugin definition entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("deleteDefinition", "Result", content);

        _this7.props.addNotification("success", "Definition entry ".concat(definitionName, " was successfully deleted"));

        _this7.loadDefinitions();

        _this7.closeModal();

        _this7.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this7.props.addNotification("error", "Error during the definition entry removal operation - ".concat(errMsg.desc));

        _this7.loadDefinitions();

        _this7.closeModal();

        _this7.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "addDefinition",
    value: function addDefinition() {
      this.cmdOperation("add");
    }
  }, {
    key: "editDefinition",
    value: function editDefinition() {
      this.cmdOperation("set");
    }
  }, {
    key: "openRegexModal",
    value: function openRegexModal(name) {
      if (name) {
        var regexEntry = this.state.regexRows.filter(function (row) {
          return row.cn[0] === name;
        })[0];
        var exclusiveRegexList = [];
        var inclusiveRegexList = []; // Get all the attributes and matching rules now

        if (regexEntry["automemberexclusiveregex"] === undefined) {
          this.setState({
            regexExclusive: []
          });
        } else {
          var _iteratorNormalCompletion5 = true;
          var _didIteratorError5 = false;
          var _iteratorError5 = undefined;

          try {
            for (var _iterator5 = regexEntry["automemberexclusiveregex"][Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) {
              var value = _step5.value;
              exclusiveRegexList = _toConsumableArray(exclusiveRegexList).concat([{
                id: value,
                label: value
              }]);
            }
          } catch (err) {
            _didIteratorError5 = true;
            _iteratorError5 = err;
          } finally {
            try {
              if (!_iteratorNormalCompletion5 && _iterator5.return != null) {
                _iterator5.return();
              }
            } finally {
              if (_didIteratorError5) {
                throw _iteratorError5;
              }
            }
          }

          this.setState({
            regexExclusive: exclusiveRegexList
          });
        }

        if (regexEntry["automemberinclusiveregex"] === undefined) {
          this.setState({
            regexInclusive: []
          });
        } else {
          var _iteratorNormalCompletion6 = true;
          var _didIteratorError6 = false;
          var _iteratorError6 = undefined;

          try {
            for (var _iterator6 = regexEntry["automemberinclusiveregex"][Symbol.iterator](), _step6; !(_iteratorNormalCompletion6 = (_step6 = _iterator6.next()).done); _iteratorNormalCompletion6 = true) {
              var _value = _step6.value;
              inclusiveRegexList = _toConsumableArray(inclusiveRegexList).concat([{
                id: _value,
                label: _value
              }]);
            }
          } catch (err) {
            _didIteratorError6 = true;
            _iteratorError6 = err;
          } finally {
            try {
              if (!_iteratorNormalCompletion6 && _iterator6.return != null) {
                _iterator6.return();
              }
            } finally {
              if (_didIteratorError6) {
                throw _iteratorError6;
              }
            }
          }

          this.setState({
            regexInclusive: inclusiveRegexList
          });
        }

        this.setState({
          regexEntryModalShow: true,
          newRegexEntry: false,
          regexName: regexEntry["cn"][0],
          regexTargetGroup: regexEntry["automembertargetgroup"] === undefined ? "" : regexEntry["automembertargetgroup"][0]
        });
      } else {
        this.setState({
          regexEntryModalShow: true,
          newRegexEntry: true,
          regexName: "",
          regexExclusive: [],
          regexInclusive: [],
          regexTargetGroup: ""
        });
      }
    }
  }, {
    key: "cmdRegexOperation",
    value: function cmdRegexOperation(action) {
      var _this$state3 = this.state,
          regexRows = _this$state3.regexRows,
          regexName = _this$state3.regexName,
          regexExclusive = _this$state3.regexExclusive,
          regexInclusive = _this$state3.regexInclusive,
          regexTargetGroup = _this$state3.regexTargetGroup;
      var regexExists = false;

      if (regexRows.some(function (row) {
        return row.cn[0] === regexName;
      })) {
        regexExists = true;
      }

      if (regexName === "" || regexTargetGroup === "") {
        this.props.addNotification("warning", "Name and Target Group are required.");
      } else {
        if (action == "add") {
          if (!regexExists) {
            this.setState(function (prevState) {
              return {
                regexRows: _toConsumableArray(prevState.regexRows).concat([{
                  cn: [regexName],
                  automembertargetgroup: [regexTargetGroup],
                  automemberexclusiveregex: regexExclusive.length !== 0 ? regexExclusive.map(function (regex) {
                    return regex.label;
                  }) : [],
                  automemberinclusiveregex: regexInclusive.length !== 0 ? regexInclusive.map(function (regex) {
                    return regex.label;
                  }) : [],
                  needsadd: true
                }])
              };
            });
          } else {
            this.props.addNotification("error", "Regex \"".concat(regexName, "\" already exists"));
          }
        } else if (action == "set") {
          if (regexExists) {
            this.setState({
              regexRows: regexRows.filter(function (row) {
                return row.cn[0] !== regexName;
              })
            });
            this.setState(function (prevState) {
              return {
                regexRows: _toConsumableArray(prevState.regexRows).concat([{
                  cn: [regexName],
                  automembertargetgroup: [regexTargetGroup],
                  automemberexclusiveregex: regexExclusive.length !== 0 ? regexExclusive.map(function (regex) {
                    return regex.label;
                  }) : [],
                  automemberinclusiveregex: regexInclusive.length !== 0 ? regexInclusive.map(function (regex) {
                    return regex.label;
                  }) : [],
                  needsupdate: true
                }])
              };
            });
          } else {
            this.props.addNotification("error", "Regex \"".concat(regexName, "\" does not exist - \"").concat(action, "\" is impossible"));
          }
        }

        this.closeRegexModal();
      }
    }
  }, {
    key: "deleteRegex",
    value: function deleteRegex(rowData) {
      var regexRows = this.state.regexRows;
      var regexName = rowData.cn[0];

      if (regexRows.some(function (row) {
        return row.cn[0] === regexName;
      })) {
        this.setState({
          regexRows: regexRows.filter(function (row) {
            return row.cn[0] !== regexName;
          })
        });
        this.setState(function (prevState) {
          return {
            regexesToDelete: _toConsumableArray(prevState.regexesToDelete).concat([regexName])
          };
        });
      } else {
        this.props.addNotification("error", "Regex \"".concat(regexName, "\" does not exist - impossible to delete"));
      }
    }
  }, {
    key: "addRegex",
    value: function addRegex() {
      this.cmdRegexOperation("add");
    }
  }, {
    key: "editRegex",
    value: function editRegex() {
      this.cmdRegexOperation("set");
    }
  }, {
    key: "getAttributes",
    value: function getAttributes() {
      var _this8 = this;

      var attr_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "list"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("getAttributes", "Get attrs", attr_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(attr_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var attrContent = JSON.parse(content);
        var attrs = [];
        var _iteratorNormalCompletion7 = true;
        var _didIteratorError7 = false;
        var _iteratorError7 = undefined;

        try {
          for (var _iterator7 = attrContent["items"][Symbol.iterator](), _step7; !(_iteratorNormalCompletion7 = (_step7 = _iterator7.next()).done); _iteratorNormalCompletion7 = true) {
            var _content = _step7.value;
            attrs.push({
              id: _content.name,
              label: _content.name
            });
          }
        } catch (err) {
          _didIteratorError7 = true;
          _iteratorError7 = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion7 && _iterator7.return != null) {
              _iterator7.return();
            }
          } finally {
            if (_didIteratorError7) {
              throw _iteratorError7;
            }
          }
        }

        _this8.setState({
          attributes: attrs
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this8.props.addNotification("error", "Failed to get attributes - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this9 = this;

      var _this$state4 = this.state,
          regexRows = _this$state4.regexRows,
          definitionEntryModalShow = _this$state4.definitionEntryModalShow,
          definitionName = _this$state4.definitionName,
          newDefinitionEntry = _this$state4.newDefinitionEntry,
          regexEntryModalShow = _this$state4.regexEntryModalShow,
          newRegexEntry = _this$state4.newRegexEntry,
          attributes = _this$state4.attributes,
          groupingAttrEntry = _this$state4.groupingAttrEntry,
          groupingAttrMember = _this$state4.groupingAttrMember,
          regexName = _this$state4.regexName,
          regexExclusive = _this$state4.regexExclusive,
          regexInclusive = _this$state4.regexInclusive,
          regexTargetGroup = _this$state4.regexTargetGroup;
      var modalDefinitionFields = {
        defaultGroup: {
          name: "Default Group",
          value: this.state.defaultGroup,
          help: "Sets default or fallback group to add the entry to as a member attribute in group entry (autoMemberDefaultGroup)"
        },
        scope: {
          name: "Scope",
          value: this.state.scope,
          help: "Sets the subtree DN to search for entries (autoMemberScope)"
        },
        filter: {
          name: "Filter",
          value: this.state.filter,
          help: "Sets a standard LDAP search filter to use to search for matching entries (autoMemberFilter)"
        }
      };
      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: definitionEntryModalShow,
        onHide: this.closeModal
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.closeModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, newDefinitionEntry ? "Add" : "Edit", " Auto Membership Plugin Definition Entry")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "definitionName",
        controlId: "definitionName"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], null, "Definition Name")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        required: true,
        type: "text",
        value: definitionName,
        onChange: this.handleFieldChange,
        disabled: !newDefinitionEntry
      }))), Object.entries(modalDefinitionFields).map(function (_ref) {
        var _ref2 = _slicedToArray(_ref, 2),
            id = _ref2[0],
            content = _ref2[1];

        return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
          key: id,
          controlId: id
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 3
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
          title: content.help
        }, content.name)), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 9
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
          type: "text",
          value: content.value,
          onChange: _this9.handleFieldChange
        })));
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "groupingAttrEntry",
        controlId: "groupingAttrEntry"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "Specifies the name of the member attribute in the group entry and the attribute in the object entry that supplies the member attribute value, in the format group_member_attr:entry_attr (autoMemberGroupingAttr)"
      }, "Grouping Attributes")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        onChange: function onChange(value) {
          _this9.setState({
            groupingAttrMember: value
          });
        },
        selected: groupingAttrMember,
        options: attributes,
        newSelectionPrefix: "Set an attribute: ",
        placeholder: "Type an attribute..."
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 1
      }, ":"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        required: true,
        type: "text",
        value: groupingAttrEntry,
        onChange: this.handleFieldChange
      })))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_4__["AutoMembershipRegexTable"], {
        rows: regexRows,
        editConfig: this.showEditRegexModal,
        deleteConfig: this.deleteRegex
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        className: "ds-margin-top",
        bsStyle: "primary",
        onClick: this.showAddRegexModal
      }, "Add Regex")))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.closeModal
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: newDefinitionEntry ? this.addDefinition : this.editDefinition
      }, "Save")))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: regexEntryModalShow,
        onHide: this.closeRegexModal
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.closeRegexModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, "Manage Auto Membership Plugin Regex Entry")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "regexName",
        controlId: "regexName"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], null, "Regex Name")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        required: true,
        type: "text",
        value: regexName,
        onChange: this.handleFieldChange,
        disabled: !newRegexEntry
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "regexExclusive",
        controlId: "regexExclusive"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "Sets a single regular expression to use to identify entries to exclude (autoMemberExclusiveRegex)"
      }, "Exclusive Regex")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(value) {
          _this9.setState({
            regexExclusive: value
          });
        },
        selected: regexExclusive,
        options: [],
        newSelectionPrefix: "Set an exclusive regex: ",
        placeholder: "Type a regex..."
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "regexInclusive",
        controlId: "regexInclusive"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "Sets a single regular expression to use to identify entries to exclude (autoMemberExclusiveRegex)"
      }, "Inclusive Regex")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(value) {
          _this9.setState({
            regexInclusive: value
          });
        },
        selected: regexInclusive,
        options: [],
        newSelectionPrefix: "Set an inclusive regex: ",
        placeholder: "Type a regex..."
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "regexTargetGroup",
        controlId: "regexTargetGroup"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "Sets which group to add the entry to as a member, if it meets the regular expression conditions (autoMemberTargetGroup)"
      }, "Target Group")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        required: true,
        type: "text",
        value: regexTargetGroup,
        onChange: this.handleFieldChange
      }))))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.closeRegexModal
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: newRegexEntry ? this.addRegex : this.editRegex
      }, "Save")))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__["default"], {
        rows: this.props.rows,
        serverId: this.props.serverId,
        cn: "Auto Membership Plugin",
        pluginName: "Auto Membership",
        cmdName: "automember",
        savePluginHandler: this.props.savePluginHandler,
        pluginListHandler: this.props.pluginListHandler,
        addNotification: this.props.addNotification,
        toggleLoadingHandler: this.props.toggleLoadingHandler
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_4__["AutoMembershipDefinitionTable"], {
        rows: this.state.definitionRows,
        editConfig: this.showEditDefinitionModal,
        deleteConfig: this.deleteDefinition
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        className: "ds-margin-top",
        bsStyle: "primary",
        onClick: this.showAddDefinitionModal
      }, "Add Definition")))));
    }
  }]);

  return AutoMembership;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

AutoMembership.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  savePluginHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  pluginListHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  toggleLoadingHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func
};
AutoMembership.defaultProps = {
  rows: [],
  serverId: "",
  savePluginHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  pluginListHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  toggleLoadingHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (AutoMembership);

/***/ }),

/***/ "./src/lib/plugins/dna.jsx":
/*!*********************************!*\
  !*** ./src/lib/plugins/dna.jsx ***!
  \*********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _pluginTables_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./pluginTables.jsx */ "./src/lib/plugins/pluginTables.jsx");
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_9__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }

function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }












var DNA =
/*#__PURE__*/
function (_React$Component) {
  _inherits(DNA, _React$Component);

  _createClass(DNA, [{
    key: "componentWillMount",
    value: function componentWillMount() {
      this.loadConfigs();
    }
  }]);

  function DNA(props) {
    var _this;

    _classCallCheck(this, DNA);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(DNA).call(this, props));
    _this.state = {
      configRows: [],
      sharedConfigRows: [],
      attributes: [],
      configName: "",
      type: [],
      prefix: "",
      nextValue: "",
      maxValue: "",
      interval: "",
      magicRegen: "",
      filter: "",
      scope: "",
      remoteBindDN: "",
      remoteBindCred: "",
      sharedConfigEntry: "",
      threshold: "",
      nextRange: "",
      rangeRequesTimeout: "",
      sharedBaseDN: "",
      sharedHostname: "",
      sharedPort: "",
      sharedSecurePort: "",
      sharedRemainingValues: "",
      sharedRemoteBindMethod: "",
      sharedRemoteConnProtocol: "",
      newEntry: false,
      newSharedEntry: false,
      configEntryModalShow: false,
      sharedConfigListModalShow: false,
      sharedConfigEntryModalShow: false,
      showConfirmSharedSave: false
    };
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadConfigs = _this.loadConfigs.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadSharedConfigs = _this.loadSharedConfigs.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.getAttributes = _this.getAttributes.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.openModal = _this.openModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeModal = _this.closeModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showEditConfigModal = _this.showEditConfigModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showAddConfigModal = _this.showAddConfigModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.cmdOperation = _this.cmdOperation.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.deleteConfig = _this.deleteConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.addConfig = _this.addConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.editConfig = _this.editConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.openSharedListModal = _this.openSharedListModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeSharedListModal = _this.closeSharedListModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.openSharedModal = _this.openSharedModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeSharedModal = _this.closeSharedModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showEditSharedConfigModal = _this.showEditSharedConfigModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showAddSharedConfigModal = _this.showAddSharedConfigModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.cmdSharedOperation = _this.cmdSharedOperation.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.deleteSharedConfig = _this.deleteSharedConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.addSharedConfig = _this.addSharedConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.editSharedConfig = _this.editSharedConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showConfirmSharedSave = _this.showConfirmSharedSave.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmSharedSave = _this.closeConfirmSharedSave.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(DNA, [{
    key: "showConfirmSharedSave",
    value: function showConfirmSharedSave() {
      if (this.state.sharedConfigEntry != "") {
        this.setState({
          showConfirmSharedSave: true
        });
      } else {
        this.props.addNotification("warning", "Shared Config Entry attribute is required for the 'Manage' operation");
      }
    }
  }, {
    key: "closeConfirmSharedSave",
    value: function closeConfirmSharedSave() {
      this.setState({
        showConfirmSharedSave: false
      });
    }
  }, {
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.value));
    }
  }, {
    key: "loadConfigs",
    value: function loadConfigs() {
      var _this2 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "dna", "list", "configs"];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("loadConfigs", "Get DNA Plugin configs", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var myObject = JSON.parse(content);

        _this2.setState({
          configRows: myObject.items.map(function (item) {
            return JSON.parse(item).attrs;
          })
        });

        _this2.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        if (err != 0) {
          console.log("loadConfigs failed", errMsg.desc);
        }

        _this2.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "loadSharedConfigs",
    value: function loadSharedConfigs(basedn) {
      var _this3 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "dna", "list", "shared-configs", basedn];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("loadSharedConfigs", "Get DNA Plugin shared configs", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var myObject = JSON.parse(content);

        _this3.setState({
          sharedConfigRows: myObject.items.map(function (item) {
            return JSON.parse(item).attrs;
          })
        });

        _this3.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        if (err != 0) {
          console.log("loadSharedConfigs failed", errMsg.desc);
        }

        _this3.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "showEditConfigModal",
    value: function showEditConfigModal(rowData) {
      this.openModal(rowData.cn[0]);
    }
  }, {
    key: "showAddConfigModal",
    value: function showAddConfigModal(rowData) {
      this.openModal();
    }
  }, {
    key: "openModal",
    value: function openModal(name) {
      var _this4 = this;

      this.getAttributes();

      if (!name) {
        this.setState({
          configEntryModalShow: true,
          newEntry: true,
          configName: "",
          type: [],
          prefix: "",
          nextValue: "",
          maxValue: "",
          interval: "",
          magicRegen: "",
          filter: "",
          scope: "",
          remoteBindDN: "",
          remoteBindCred: "",
          sharedConfigEntry: "",
          threshold: "",
          nextRange: "",
          rangeRequesTimeout: ""
        });
      } else {
        var dnaTypeList = [];
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "dna", "config", name, "show"];
        this.props.toggleLoadingHandler();
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("openModal", "Fetch the DNA Plugin config entry", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          var configEntry = JSON.parse(content).attrs;

          _this4.setState({
            configEntryModalShow: true,
            newEntry: false,
            configName: configEntry["cn"] === undefined ? "" : configEntry["cn"][0],
            prefix: configEntry["dnaprefix"] === undefined ? "" : configEntry["dnaprefix"][0],
            nextValue: configEntry["dnanextvalue"] === undefined ? "" : configEntry["dnanextvalue"][0],
            maxValue: configEntry["dnamaxvalue"] === undefined ? "" : configEntry["dnamaxvalue"][0],
            interval: configEntry["dnainterval"] === undefined ? "" : configEntry["dnainterval"][0],
            magicRegen: configEntry["dnamagicregen"] === undefined ? "" : configEntry["dnamagicregen"][0],
            filter: configEntry["dnafilter"] === undefined ? "" : configEntry["dnafilter"][0],
            scope: configEntry["dnascope"] === undefined ? "" : configEntry["dnascope"][0],
            remoteBindDN: configEntry["dnaremotebindDN"] === undefined ? "" : configEntry["dnaremotebindDN"][0],
            remoteBindCred: configEntry["dnaremotebindcred"] === undefined ? "" : configEntry["dnaremotebindcred"][0],
            sharedConfigEntry: configEntry["dnasharedcfgdn"] === undefined ? "" : configEntry["dnasharedcfgdn"][0],
            threshold: configEntry["dnathreshold"] === undefined ? "" : configEntry["dnathreshold"][0],
            nextRange: configEntry["dnanextrange"] === undefined ? "" : configEntry["dnanextrange"][0],
            rangeRequesTimeout: configEntry["dnarangerequesttimeout"] === undefined ? "" : configEntry["dnarangerequesttimeout"][0]
          });

          if (configEntry["dnatype"] === undefined) {
            _this4.setState({
              type: []
            });
          } else {
            var _iteratorNormalCompletion = true;
            var _didIteratorError = false;
            var _iteratorError = undefined;

            try {
              for (var _iterator = configEntry["dnatype"][Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
                var value = _step.value;
                dnaTypeList = _toConsumableArray(dnaTypeList).concat([{
                  id: value,
                  label: value
                }]);
              }
            } catch (err) {
              _didIteratorError = true;
              _iteratorError = err;
            } finally {
              try {
                if (!_iteratorNormalCompletion && _iterator.return != null) {
                  _iterator.return();
                }
              } finally {
                if (_didIteratorError) {
                  throw _iteratorError;
                }
              }
            }

            _this4.setState({
              type: dnaTypeList
            });
          }

          _this4.props.toggleLoadingHandler();
        }).fail(function (_) {
          _this4.setState({
            configEntryModalShow: true,
            newEntry: true,
            configName: "",
            type: [],
            prefix: "",
            nextValue: "",
            maxValue: "",
            interval: "",
            magicRegen: "",
            filter: "",
            scope: "",
            remoteBindDN: "",
            remoteBindCred: "",
            sharedConfigEntry: "",
            threshold: "",
            nextRange: "",
            rangeRequesTimeout: ""
          });

          _this4.props.toggleLoadingHandler();
        });
      }
    }
  }, {
    key: "showEditSharedConfigModal",
    value: function showEditSharedConfigModal(rowData) {
      this.openSharedModal(rowData.dnahostname[0], rowData.dnaportnum[0]);
    }
  }, {
    key: "showAddSharedConfigModal",
    value: function showAddSharedConfigModal(rowData) {
      this.openSharedModal();
    }
  }, {
    key: "closeModal",
    value: function closeModal() {
      this.setState({
        configEntryModalShow: false
      });
    }
  }, {
    key: "closeSharedModal",
    value: function closeSharedModal() {
      this.setState({
        sharedConfigEntryModalShow: false
      });
    }
  }, {
    key: "cmdOperation",
    value: function cmdOperation(action, muteError) {
      var _this5 = this;

      var _this$state = this.state,
          configName = _this$state.configName,
          type = _this$state.type,
          prefix = _this$state.prefix,
          nextValue = _this$state.nextValue,
          maxValue = _this$state.maxValue,
          interval = _this$state.interval,
          magicRegen = _this$state.magicRegen,
          filter = _this$state.filter,
          scope = _this$state.scope,
          remoteBindDN = _this$state.remoteBindDN,
          remoteBindCred = _this$state.remoteBindCred,
          sharedConfigEntry = _this$state.sharedConfigEntry,
          threshold = _this$state.threshold,
          nextRange = _this$state.nextRange,
          rangeRequesTimeout = _this$state.rangeRequesTimeout;
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "dna", "config", configName, action, "--prefix", prefix || action == "add" ? prefix : "delete", "--next-value", nextValue || action == "add" ? nextValue : "delete", "--max-value", maxValue || action == "add" ? maxValue : "delete", "--interval", interval || action == "add" ? interval : "delete", "--magic-regen", magicRegen || action == "add" ? magicRegen : "delete", "--filter", filter || action == "add" ? filter : "delete", "--scope", scope || action == "add" ? scope : "delete", "--remote-bind-dn", remoteBindDN || action == "add" ? remoteBindDN : "delete", "--remote-bind-cred", remoteBindCred || action == "add" ? remoteBindCred : "delete", "--shared-config-entry", sharedConfigEntry || action == "add" ? sharedConfigEntry : "delete", "--threshold", threshold || action == "add" ? threshold : "delete", "--next-range", nextRange || action == "add" ? nextRange : "delete", "--range-request-timeout", rangeRequesTimeout || action == "add" ? rangeRequesTimeout : "delete"]; // Delete attributes if the user set an empty value to the field

      if (!(action == "add" && type.length == 0)) {
        cmd = _toConsumableArray(cmd).concat(["--type"]);

        if (type.length != 0) {
          var _iteratorNormalCompletion2 = true;
          var _didIteratorError2 = false;
          var _iteratorError2 = undefined;

          try {
            for (var _iterator2 = type[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
              var value = _step2.value;
              cmd = _toConsumableArray(cmd).concat([value.label]);
            }
          } catch (err) {
            _didIteratorError2 = true;
            _iteratorError2 = err;
          } finally {
            try {
              if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
                _iterator2.return();
              }
            } finally {
              if (_didIteratorError2) {
                throw _iteratorError2;
              }
            }
          }
        } else if (action == "add") {
          cmd = _toConsumableArray(cmd).concat([""]);
        } else {
          cmd = _toConsumableArray(cmd).concat(["delete"]);
        }
      }

      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("DNAOperation", "Do the ".concat(action, " operation on the DNA Plugin"), cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("DNAOperation", "Result", content);

        _this5.props.addNotification("success", "The ".concat(action, " operation was successfully done on \"").concat(configName, "\" entry"));

        _this5.loadConfigs();

        _this5.closeModal();

        _this5.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        if (muteError !== true) {
          _this5.props.addNotification("error", "Error during the config entry ".concat(action, " operation - ").concat(errMsg.desc));
        }

        _this5.loadConfigs();

        _this5.closeModal();

        _this5.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "deleteConfig",
    value: function deleteConfig(rowData) {
      var _this6 = this;

      var configName = rowData.cn[0];
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "dna", "config", configName, "delete"];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("deleteConfig", "Delete the DNA Plugin config entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("deleteConfig", "Result", content);

        _this6.props.addNotification("success", "Config entry ".concat(configName, " was successfully deleted"));

        _this6.loadConfigs();

        _this6.closeModal();

        _this6.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this6.props.addNotification("error", "Error during the config entry removal operation - ".concat(errMsg.desc));

        _this6.loadConfigs();

        _this6.closeModal();

        _this6.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "addConfig",
    value: function addConfig(muteError) {
      this.cmdOperation("add", muteError);
    }
  }, {
    key: "editConfig",
    value: function editConfig(muteError) {
      this.cmdOperation("set", muteError);
    }
  }, {
    key: "openSharedListModal",
    value: function openSharedListModal(sharedConfigEntry) {
      // Save the config entry that is being edited now
      if (this.state.newEntry) {
        this.addConfig(true);
      } else {
        this.editConfig(true);
      } // Get all of the sharedConfig entries located under the base DN


      this.loadSharedConfigs(sharedConfigEntry);
      this.setState({
        sharedConfigListModalShow: true
      });
    }
  }, {
    key: "closeSharedListModal",
    value: function closeSharedListModal() {
      this.setState({
        sharedConfigListModalShow: false
      });
    }
  }, {
    key: "openSharedModal",
    value: function openSharedModal(hostname, port) {
      var _this7 = this;

      if (hostname && port) {
        // Get all the attributes and matching rules now
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "dna", "config", this.state.configName, "shared-config-entry", hostname, port, "show"];
        this.props.toggleLoadingHandler();
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("openSharedModal", "Fetch the DNA Plugin shared config entry", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          var configEntry = JSON.parse(content).attrs;

          _this7.setState({
            sharedConfigEntryModalShow: true,
            newSharedEntry: false,
            sharedHostname: configEntry["dnahostname"] === undefined ? "" : configEntry["dnahostname"][0],
            sharedPort: configEntry["dnaportnum"] === undefined ? "" : configEntry["dnaportnum"][0],
            sharedSecurePort: configEntry["dnasecureportnum"] === undefined ? "" : configEntry["dnasecureportnum"][0],
            sharedRemainingValues: configEntry["dnaremainingvalues"] === undefined ? "" : configEntry["dnaremainingvalues"][0],
            sharedRemoteBindMethod: configEntry["dnaremotebindmethod"] === undefined ? "" : configEntry["dnaremotebindmethod"][0],
            sharedRemoteConnProtocol: configEntry["dnaremoteconnprotocol"] === undefined ? "" : configEntry["dnaremoteconnprotocol"][0]
          });

          _this7.props.toggleLoadingHandler();
        }).fail(function (_) {
          _this7.setState({
            sharedConfigEntryModalShow: true,
            newSharedEntry: true,
            sharedBaseDN: "",
            sharedHostname: "",
            sharedPort: "",
            sharedSecurePort: "",
            sharedRemainingValues: "",
            sharedRemoteBindMethod: "",
            sharedRemoteConnProtocol: ""
          });

          _this7.props.toggleLoadingHandler();
        });
      } else {
        this.setState({
          sharedConfigEntryModalShow: true,
          newSharedEntry: true,
          sharedBaseDN: "",
          sharedHostname: "",
          sharedPort: "",
          sharedSecurePort: "",
          sharedRemainingValues: "",
          sharedRemoteBindMethod: "",
          sharedRemoteConnProtocol: ""
        });
      }
    }
  }, {
    key: "cmdSharedOperation",
    value: function cmdSharedOperation(action) {
      var _this8 = this;

      var _this$state2 = this.state,
          configName = _this$state2.configName,
          sharedHostname = _this$state2.sharedHostname,
          sharedPort = _this$state2.sharedPort,
          sharedSecurePort = _this$state2.sharedSecurePort,
          sharedRemainingValues = _this$state2.sharedRemainingValues,
          sharedRemoteBindMethod = _this$state2.sharedRemoteBindMethod,
          sharedRemoteConnProtocol = _this$state2.sharedRemoteConnProtocol;
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "dna", "config", configName, "shared-config-entry", sharedHostname, sharedPort, action, "--secure-port", sharedSecurePort || action == "add" ? sharedSecurePort : "delete", "--remote-bind-method", sharedRemoteBindMethod || action == "add" ? sharedRemoteBindMethod : "delete", "--remote-conn-protocol", sharedRemoteConnProtocol || action == "add" ? sharedRemoteConnProtocol : "delete", "--remaining-values", sharedRemainingValues || action == "add" ? sharedRemainingValues : "delete"];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("DNASharedOperation", "Do the ".concat(action, " operation on the DNA Plugin Shared Entry"), cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("DNASharedOperation", "Result", content);

        _this8.props.addNotification("success", "The ".concat(action, " operation was successfully done on \"").concat(sharedHostname, ":").concat(sharedPort, "\" entry"));

        _this8.loadSharedConfigs(_this8.state.sharedConfigEntry);

        _this8.closeSharedModal();

        _this8.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this8.props.addNotification("error", "Error during the config entry ".concat(action, " operation - ").concat(errMsg.desc));

        _this8.loadSharedConfigs(_this8.state.sharedConfigEntry);

        _this8.closeSharedModal();

        _this8.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "deleteSharedConfig",
    value: function deleteSharedConfig(rowData) {
      var _this9 = this;

      var sharedHostname = rowData.dnahostname[0];
      var sharedPort = rowData.dnaportnum[0];
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "dna", "config", this.state.configName, "shared-config-entry", sharedHostname, sharedPort, "delete"];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("deleteSharedConfig", "Delete the DNA Plugin Shared config entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("deleteSharedConfig", "Result", content);

        _this9.props.addNotification("success", "Shared config entry ".concat(sharedHostname, " and ").concat(sharedPort, " was successfully deleted"));

        _this9.loadSharedConfigs(_this9.state.sharedConfigEntry);

        _this9.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this9.props.addNotification("error", "Error during the shared config entry removal operation - ".concat(errMsg.desc));

        _this9.loadSharedConfigs(_this9.state.sharedConfigEntry);

        _this9.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "addSharedConfig",
    value: function addSharedConfig() {
      this.cmdSharedOperation("add");
    }
  }, {
    key: "editSharedConfig",
    value: function editSharedConfig() {
      this.cmdSharedOperation("set");
    }
  }, {
    key: "getAttributes",
    value: function getAttributes() {
      var _this10 = this;

      var attr_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "list"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("getAttributes", "Get attrs", attr_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(attr_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var attrContent = JSON.parse(content);
        var attrs = [];
        var _iteratorNormalCompletion3 = true;
        var _didIteratorError3 = false;
        var _iteratorError3 = undefined;

        try {
          for (var _iterator3 = attrContent["items"][Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
            var _content = _step3.value;
            attrs.push({
              id: _content.name,
              label: _content.name
            });
          }
        } catch (err) {
          _didIteratorError3 = true;
          _iteratorError3 = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
              _iterator3.return();
            }
          } finally {
            if (_didIteratorError3) {
              throw _iteratorError3;
            }
          }
        }

        _this10.setState({
          attributes: attrs
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this10.props.addNotification("error", "Failed to get attributes - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this11 = this;

      var _this$state3 = this.state,
          sharedConfigRows = _this$state3.sharedConfigRows,
          configEntryModalShow = _this$state3.configEntryModalShow,
          configName = _this$state3.configName,
          newEntry = _this$state3.newEntry,
          type = _this$state3.type,
          sharedConfigEntry = _this$state3.sharedConfigEntry,
          sharedConfigListModalShow = _this$state3.sharedConfigListModalShow,
          sharedConfigEntryModalShow = _this$state3.sharedConfigEntryModalShow,
          sharedHostname = _this$state3.sharedHostname,
          sharedPort = _this$state3.sharedPort,
          newSharedEntry = _this$state3.newSharedEntry,
          attributes = _this$state3.attributes;
      var modalConfigFields = {
        prefix: {
          name: "Prefix",
          value: this.state.prefix,
          help: "Defines a prefix that can be prepended to the generated number values for the attribute (dnaPrefix)"
        },
        nextValue: {
          name: "Next Value",
          value: this.state.nextValue,
          help: "Gives the next available number which can be assigned (dnaNextValue)"
        },
        maxValue: {
          name: "Max Value",
          value: this.state.maxValue,
          help: "Sets the maximum value that can be assigned for the range (dnaMaxValue)"
        },
        interval: {
          name: "Interval",
          value: this.state.interval,
          help: "Sets an interval to use to increment through numbers in a range (dnaInterval)"
        },
        magicRegen: {
          name: "Magic Regen",
          value: this.state.magicRegen,
          help: "Sets a user-defined value that instructs the plug-in to assign a new value for the entry (dnaMagicRegen)"
        },
        filter: {
          name: "Filter",
          value: this.state.filter,
          help: "Sets an LDAP filter to use to search for and identify the entries to which to apply the distributed numeric assignment range (dnaFilter)"
        },
        scope: {
          name: "Scope",
          value: this.state.scope,
          help: "Sets the base DN to search for entries to which to apply the distributed numeric assignment (dnaScope)"
        },
        remoteBindDN: {
          name: "Remote Bind DN",
          value: this.state.remoteBindDN,
          help: "Specifies the Replication Manager DN (dnaRemoteBindDN)"
        },
        remoteBindCred: {
          name: "Remote Bind Credentials",
          value: this.state.remoteBindCred,
          help: "Specifies the Replication Manager's password (dnaRemoteBindCred)"
        },
        threshold: {
          name: "Threshold",
          value: this.state.threshold,
          help: "Sets a threshold of remaining available numbers in the range. When the server hits the threshold, it sends a request for a new range (dnaThreshold)"
        },
        nextRange: {
          name: "Next Range",
          value: this.state.nextRange,
          help: "Defines the next range to use when the current range is exhausted (dnaNextRange)"
        },
        rangeRequesTimeout: {
          name: "Range Request Timeout",
          value: this.state.rangeRequesTimeout,
          help: "Sets a timeout period, in seconds, for range requests so that the server does not stall waiting on a new range from one server and can request a range from a new server (dnaRangeRequestTimeout)"
        }
      };
      var modalSharedConfigFields = {
        sharedSecurePort: {
          name: "Secure Port",
          value: this.state.sharedSecurePort,
          help: "Gives the secure (TLS) port number to use to connect to the host identified in dnaHostname (dnaSecurePortNum)"
        },
        sharedRemainingValues: {
          name: "Remaining Values",
          value: this.state.sharedRemainingValues,
          help: "Specifies the remote bind method (dnaRemoteBindMethod)"
        },
        sharedRemoteBindMethod: {
          name: "Remote Bind Method",
          value: this.state.sharedRemoteBindMethod,
          help: "Specifies the remote connection protocol (dnaRemoteConnProtocol)"
        },
        sharedRemoteConnProtocol: {
          name: "Remote Connection Protocol",
          value: this.state.sharedRemoteConnProtocol,
          help: "Contains the number of values that are remaining and available to a server to assign to entries (dnaRemainingValues)"
        }
      };
      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: configEntryModalShow,
        onHide: this.closeModal
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.closeModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, newEntry ? "Add" : "Edit", " DNA Plugin Config Entry")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "configName",
        controlId: "configName"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], null, "Config Name")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        required: true,
        type: "text",
        value: configName,
        onChange: this.handleFieldChange,
        disabled: !newEntry
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "sharedConfigEntry",
        controlId: "sharedConfigEntry"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 4,
        title: "Defines a shared identity that the servers can use to transfer ranges to one another (dnaSharedCfgDN)"
      }, "Shared Config Entry"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 5
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: sharedConfigEntry,
        onChange: this.handleFieldChange
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.showConfirmSharedSave
      }, "Manage"))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "type",
        controlId: "type"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "Sets which attributes have unique numbers being generated for them (dnaType)"
      }, "Type")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(value) {
          _this11.setState({
            type: value
          });
        },
        selected: type,
        options: attributes,
        newSelectionPrefix: "Add a attribute: ",
        placeholder: "Type an attribute..."
      }))), Object.entries(modalConfigFields).map(function (_ref) {
        var _ref2 = _slicedToArray(_ref, 2),
            id = _ref2[0],
            content = _ref2[1];

        return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
          key: id,
          controlId: id
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 4
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
          title: content.help
        }, content.name)), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 8
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
          type: "text",
          value: content.value,
          onChange: _this11.handleFieldChange
        })));
      }))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.closeModal
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: newEntry ? this.addConfig : this.editConfig
      }, "Save")))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: sharedConfigListModalShow,
        onHide: this.closeSharedListModal
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.closeSharedListModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, "List DNA Plugin Shared Config Entries")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], null, "DNA Config: "), " ", configName), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], null, "Shared Config Base DN:"), " ", sharedConfigEntry)), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_5__["DNASharedTable"], {
        rows: sharedConfigRows,
        editConfig: this.showEditSharedConfigModal,
        deleteConfig: this.deleteSharedConfig
      })))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.closeSharedListModal
      }, "Close"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.showAddSharedConfigModal
      }, "Add Config")))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: sharedConfigEntryModalShow,
        onHide: this.closeSharedModal
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.closeSharedModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, "Manage DNA Plugin Shared Config Entry")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "sharedHostname",
        controlId: "sharedHostname"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], null, "Config Hostname")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        required: true,
        type: "text",
        value: sharedHostname,
        onChange: this.handleFieldChange,
        disabled: !newSharedEntry
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "sharedPort",
        controlId: "sharedPort"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], null, "Config Port")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        required: true,
        type: "text",
        value: sharedPort,
        onChange: this.handleFieldChange,
        disabled: !newSharedEntry
      }))), Object.entries(modalSharedConfigFields).map(function (_ref3) {
        var _ref4 = _slicedToArray(_ref3, 2),
            id = _ref4[0],
            content = _ref4[1];

        return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
          key: id,
          controlId: id
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 4
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
          title: content.help
        }, content.name)), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 8
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
          type: "text",
          value: content.value,
          onChange: _this11.handleFieldChange
        })));
      }))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.closeSharedModal
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: newSharedEntry ? this.addSharedConfig : this.editSharedConfig
      }, "Save")))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_6__["default"], {
        rows: this.props.rows,
        serverId: this.props.serverId,
        cn: "Distributed Numeric Assignment Plugin",
        pluginName: "Distributed Numeric Assignment",
        cmdName: "dna",
        savePluginHandler: this.props.savePluginHandler,
        pluginListHandler: this.props.pluginListHandler,
        addNotification: this.props.addNotification,
        toggleLoadingHandler: this.props.toggleLoadingHandler
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_5__["DNATable"], {
        rows: this.state.configRows,
        editConfig: this.showEditConfigModal,
        deleteConfig: this.deleteConfig
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        className: "ds-margin-top",
        bsStyle: "primary",
        onClick: this.showAddConfigModal
      }, "Add Config")))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_3__["ConfirmPopup"], {
        showModal: this.state.showConfirmSharedSave,
        closeHandler: this.closeConfirmSharedSave,
        actionFunc: this.openSharedListModal,
        actionParam: this.state.sharedConfigEntry,
        msg: "The current entry state will be saved to the directory. Also, make sure you've set the shared config entry area.",
        msgContent: "Are you ready to proceed?"
      }));
    }
  }]);

  return DNA;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

DNA.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.array,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.string,
  savePluginHandler: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,
  pluginListHandler: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,
  toggleLoadingHandler: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func
};
DNA.defaultProps = {
  rows: [],
  serverId: "",
  savePluginHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  pluginListHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  toggleLoadingHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (DNA);

/***/ }),

/***/ "./src/lib/plugins/linkedAttributes.jsx":
/*!**********************************************!*\
  !*** ./src/lib/plugins/linkedAttributes.jsx ***!
  \**********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _pluginTables_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pluginTables.jsx */ "./src/lib/plugins/pluginTables.jsx");
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_8__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }











var LinkedAttributes =
/*#__PURE__*/
function (_React$Component) {
  _inherits(LinkedAttributes, _React$Component);

  _createClass(LinkedAttributes, [{
    key: "componentWillMount",
    value: function componentWillMount() {
      this.loadConfigs();
    }
  }]);

  function LinkedAttributes(props) {
    var _this;

    _classCallCheck(this, LinkedAttributes);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(LinkedAttributes).call(this, props));
    _this.state = {
      configRows: [],
      attributes: [],
      configName: "",
      linkType: [],
      managedType: [],
      linkScope: "",
      newEntry: false,
      showConfigModal: false,
      showConfirmDeleteConfig: false
    };
    _this.getAttributes = _this.getAttributes.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadConfigs = _this.loadConfigs.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showEditConfigModal = _this.showEditConfigModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showAddConfigModal = _this.showAddConfigModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeModal = _this.closeModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.openModal = _this.openModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.cmdOperation = _this.cmdOperation.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.deleteConfig = _this.deleteConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.addConfig = _this.addConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.editConfig = _this.editConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(LinkedAttributes, [{
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.value));
    }
  }, {
    key: "loadConfigs",
    value: function loadConfigs() {
      var _this2 = this;

      // Get all the attributes and matching rules now
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "linked-attr", "list"];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("loadConfigs", "Get Linked Attributes Plugin configs", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var myObject = JSON.parse(content);

        _this2.setState({
          configRows: myObject.items.map(function (item) {
            return JSON.parse(item).attrs;
          })
        });

        _this2.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        if (err != 0) {
          console.log("loadConfigs failed", errMsg.desc);
        }

        _this2.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "showEditConfigModal",
    value: function showEditConfigModal(rowData) {
      this.openModal(rowData.cn[0]);
    }
  }, {
    key: "showAddConfigModal",
    value: function showAddConfigModal(rowData) {
      this.openModal();
    }
  }, {
    key: "openModal",
    value: function openModal(name) {
      var _this3 = this;

      this.getAttributes();

      if (!name) {
        this.setState({
          configEntryModalShow: true,
          newEntry: true,
          configName: "",
          linkType: [],
          managedType: [],
          linkScope: ""
        });
      } else {
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "linked-attr", "config", name, "show"];
        this.props.toggleLoadingHandler();
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("openModal", "Fetch the Linked Attributes Plugin config entry", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          var configEntry = JSON.parse(content).attrs;

          _this3.setState({
            configEntryModalShow: true,
            newEntry: false,
            configName: configEntry["cn"] === undefined ? "" : configEntry["cn"][0],
            linkType: configEntry["linktype"] === undefined ? [] : [{
              id: configEntry["linktype"][0],
              label: configEntry["linktype"][0]
            }],
            managedType: configEntry["managedtype"] === undefined ? [] : [{
              id: configEntry["managedtype"][0],
              label: configEntry["managedtype"][0]
            }],
            linkScope: configEntry["linkscope"] === undefined ? "" : configEntry["linkscope"][0]
          });

          _this3.props.toggleLoadingHandler();
        }).fail(function (_) {
          _this3.setState({
            configEntryModalShow: true,
            newEntry: true,
            configName: "",
            linkType: [],
            managedType: [],
            linkScope: ""
          });

          _this3.props.toggleLoadingHandler();
        });
      }
    }
  }, {
    key: "closeModal",
    value: function closeModal() {
      this.setState({
        configEntryModalShow: false
      });
    }
  }, {
    key: "cmdOperation",
    value: function cmdOperation(action) {
      var _this4 = this;

      var _this$state = this.state,
          configName = _this$state.configName,
          linkType = _this$state.linkType,
          managedType = _this$state.managedType,
          linkScope = _this$state.linkScope;
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "linked-attr", "config", configName, action, "--link-scope", linkScope || action == "add" ? linkScope : "delete"];
      cmd = _toConsumableArray(cmd).concat(["--link-type"]);

      if (linkType.length != 0) {
        cmd = _toConsumableArray(cmd).concat([linkType[0].label]);
      } else if (action == "add") {
        cmd = _toConsumableArray(cmd).concat([""]);
      } else {
        cmd = _toConsumableArray(cmd).concat(["delete"]);
      }

      cmd = _toConsumableArray(cmd).concat(["--managed-type"]);

      if (managedType.length != 0) {
        cmd = _toConsumableArray(cmd).concat([managedType[0].label]);
      } else if (action == "add") {
        cmd = _toConsumableArray(cmd).concat([""]);
      } else {
        cmd = _toConsumableArray(cmd).concat(["delete"]);
      }

      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("linkedAttributesOperation", "Do the ".concat(action, " operation on the Linked Attributes Plugin"), cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("linkedAttributesOperation", "Result", content);

        _this4.props.addNotification("success", "The ".concat(action, " operation was successfully done on \"").concat(configName, "\" entry"));

        _this4.loadConfigs();

        _this4.closeModal();

        _this4.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this4.props.addNotification("error", "Error during the config entry ".concat(action, " operation - ").concat(errMsg.desc));

        _this4.loadConfigs();

        _this4.closeModal();

        _this4.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "deleteConfig",
    value: function deleteConfig(rowData) {
      var _this5 = this;

      var configName = rowData.cn[0];
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "linked-attr", "config", configName, "delete"];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("deleteConfig", "Delete the Linked Attributes Plugin config entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("deleteConfig", "Result", content);

        _this5.props.addNotification("success", "Config entry ".concat(configName, " was successfully deleted"));

        _this5.loadConfigs();

        _this5.closeModal();

        _this5.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.props.addNotification("error", "Error during the config entry removal operation - ".concat(errMsg.desc));

        _this5.loadConfigs();

        _this5.closeModal();

        _this5.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "addConfig",
    value: function addConfig() {
      this.cmdOperation("add");
    }
  }, {
    key: "editConfig",
    value: function editConfig() {
      this.cmdOperation("set");
    }
  }, {
    key: "getAttributes",
    value: function getAttributes() {
      var _this6 = this;

      var attr_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "list"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("getAttributes", "Get attrs", attr_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(attr_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var attrContent = JSON.parse(content);
        var attrs = [];
        var _iteratorNormalCompletion = true;
        var _didIteratorError = false;
        var _iteratorError = undefined;

        try {
          for (var _iterator = attrContent["items"][Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
            var _content = _step.value;
            attrs.push({
              id: _content.name,
              label: _content.name
            });
          }
        } catch (err) {
          _didIteratorError = true;
          _iteratorError = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion && _iterator.return != null) {
              _iterator.return();
            }
          } finally {
            if (_didIteratorError) {
              throw _iteratorError;
            }
          }
        }

        _this6.setState({
          attributes: attrs
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this6.props.addNotification("error", "Failed to get attributes - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this7 = this;

      var _this$state2 = this.state,
          configEntryModalShow = _this$state2.configEntryModalShow,
          configName = _this$state2.configName,
          linkType = _this$state2.linkType,
          managedType = _this$state2.managedType,
          linkScope = _this$state2.linkScope,
          newEntry = _this$state2.newEntry,
          attributes = _this$state2.attributes;
      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: configEntryModalShow,
        onHide: this.closeModal
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.closeModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, newEntry ? "Add" : "Edit", " Linked Attributes Plugin Config Entry")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "configName"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "The Linked Attributes configuration name"
      }, "Config Name")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: configName,
        onChange: this.handleFieldChange,
        disabled: !newEntry
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "linkType"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "Sets the attribute that is managed manually by administrators (linkType)"
      }, "Link Type")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        onChange: function onChange(value) {
          _this7.setState({
            linkType: value
          });
        },
        selected: linkType,
        options: attributes,
        newSelectionPrefix: "Add a managed attribute: ",
        placeholder: "Type an attribute..."
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "managedType"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "Sets the attribute that is created dynamically by the plugin (managedType)"
      }, "Managed Type")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        onChange: function onChange(value) {
          _this7.setState({
            managedType: value
          });
        },
        selected: managedType,
        options: attributes,
        newSelectionPrefix: "Add a dynamic attribute: ",
        placeholder: "Type an attribute..."
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "linkScope"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "Sets the base DN that restricts the plugin to a specific part of the directory tree (linkScope)"
      }, "Link Scope")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: linkScope,
        onChange: this.handleFieldChange
      }))))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.closeModal
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: newEntry ? this.addConfig : this.editConfig
      }, "Save")))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__["default"], {
        rows: this.props.rows,
        serverId: this.props.serverId,
        cn: "Linked Attributes",
        pluginName: "Linked Attributes",
        cmdName: "linked-attr",
        savePluginHandler: this.props.savePluginHandler,
        pluginListHandler: this.props.pluginListHandler,
        addNotification: this.props.addNotification,
        toggleLoadingHandler: this.props.toggleLoadingHandler
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_4__["LinkedAttributesTable"], {
        rows: this.state.configRows,
        editConfig: this.showEditConfigModal,
        deleteConfig: this.deleteConfig
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        className: "ds-margin-top",
        bsStyle: "primary",
        onClick: this.showAddConfigModal
      }, "Add Config")))));
    }
  }]);

  return LinkedAttributes;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

LinkedAttributes.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  savePluginHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  pluginListHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  toggleLoadingHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func
};
LinkedAttributes.defaultProps = {
  rows: [],
  serverId: "",
  savePluginHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  pluginListHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  toggleLoadingHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (LinkedAttributes);

/***/ }),

/***/ "./src/lib/plugins/managedEntries.jsx":
/*!********************************************!*\
  !*** ./src/lib/plugins/managedEntries.jsx ***!
  \********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _pluginTables_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pluginTables.jsx */ "./src/lib/plugins/pluginTables.jsx");
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_8__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }

function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }











var ManagedEntries =
/*#__PURE__*/
function (_React$Component) {
  _inherits(ManagedEntries, _React$Component);

  _createClass(ManagedEntries, [{
    key: "componentWillMount",
    value: function componentWillMount() {
      this.updateFields();
    }
  }, {
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps) {
      if (this.props.rows !== prevProps.rows) {
        this.updateFields();
      }
    }
  }]);

  function ManagedEntries(props) {
    var _this;

    _classCallCheck(this, ManagedEntries);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(ManagedEntries).call(this, props));
    _this.state = {
      configArea: "",
      configRows: [],
      attributes: [],
      configName: "",
      originScope: "",
      originFilter: "",
      managedBase: "",
      managedTemplate: "",
      templateDN: "",
      templateRDNAttr: [],
      templateStaticAttr: [],
      templateMappedAttr: [],
      newConfigEntry: false,
      configEntryModalShow: false,
      newTemplateEntry: false,
      templateEntryModalShow: false
    };
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.updateFields = _this.updateFields.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadConfigs = _this.loadConfigs.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.getAttributes = _this.getAttributes.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.openModal = _this.openModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeModal = _this.closeModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showEditConfigModal = _this.showEditConfigModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showAddConfigModal = _this.showAddConfigModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.cmdOperation = _this.cmdOperation.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.deleteConfig = _this.deleteConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.addConfig = _this.addConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.editConfig = _this.editConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.openTemplateModal = _this.openTemplateModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeTemplateModal = _this.closeTemplateModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.cmdTemplateOperation = _this.cmdTemplateOperation.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.deleteTemplate = _this.deleteTemplate.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.addTemplate = _this.addTemplate.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.editTemplate = _this.editTemplate.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(ManagedEntries, [{
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.value));
    }
  }, {
    key: "loadConfigs",
    value: function loadConfigs() {
      var _this2 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "managed-entries", "list", "configs"];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("loadConfigs", "Get Managed Entries Plugin configs", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var myObject = JSON.parse(content);

        _this2.setState({
          configRows: myObject.items.map(function (item) {
            return JSON.parse(item).attrs;
          })
        });

        _this2.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        if (err != 0) {
          console.log("loadConfigs failed", errMsg.desc);
        }

        _this2.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "showEditConfigModal",
    value: function showEditConfigModal(rowData) {
      this.openModal(rowData.cn[0]);
    }
  }, {
    key: "showAddConfigModal",
    value: function showAddConfigModal(rowData) {
      this.openModal();
    }
  }, {
    key: "openModal",
    value: function openModal(name) {
      var _this3 = this;

      this.getAttributes();

      if (!name) {
        this.setState({
          configEntryModalShow: true,
          newConfigEntry: true,
          configName: "",
          originScope: "",
          originFilter: "",
          managedBase: "",
          managedTemplate: ""
        });
      } else {
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "managed-entries", "config", name, "show"];
        this.props.toggleLoadingHandler();
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("openModal", "Fetch the Managed Entries Plugin config entry", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          var configEntry = JSON.parse(content).attrs;

          _this3.setState({
            configEntryModalShow: true,
            newConfigEntry: false,
            configName: configEntry["cn"] === undefined ? "" : configEntry["cn"][0],
            originScope: configEntry["originscope"] === undefined ? "" : configEntry["originscope"][0],
            originFilter: configEntry["originfilter"] === undefined ? "" : configEntry["originfilter"][0],
            managedBase: configEntry["managedbase"] === undefined ? "" : configEntry["managedbase"][0],
            managedTemplate: configEntry["managedtemplate"] === undefined ? "" : configEntry["managedtemplate"][0]
          });

          _this3.props.toggleLoadingHandler();
        }).fail(function (_) {
          _this3.setState({
            configEntryModalShow: true,
            newConfigEntry: true,
            configName: "",
            originScope: "",
            originFilter: "",
            managedBase: "",
            managedTemplate: ""
          });

          _this3.props.toggleLoadingHandler();
        });
      }
    }
  }, {
    key: "closeModal",
    value: function closeModal() {
      this.setState({
        configEntryModalShow: false
      });
    }
  }, {
    key: "deleteConfig",
    value: function deleteConfig(rowData) {
      var _this4 = this;

      var configName = rowData.cn[0];
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "managed-entries", "config", configName, "delete"];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("deleteConfig", "Delete the Managed Entries Plugin config entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("deleteConfig", "Result", content);

        _this4.props.addNotification("success", "Config entry ".concat(configName, " was successfully deleted"));

        _this4.loadConfigs();

        _this4.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this4.props.addNotification("error", "Error during the config entry removal operation - ".concat(errMsg.desc));

        _this4.loadConfigs();

        _this4.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "addConfig",
    value: function addConfig() {
      this.cmdOperation("add");
    }
  }, {
    key: "editConfig",
    value: function editConfig() {
      this.cmdOperation("set");
    }
  }, {
    key: "cmdOperation",
    value: function cmdOperation(action) {
      var _this5 = this;

      var _this$state = this.state,
          configName = _this$state.configName,
          originScope = _this$state.originScope,
          originFilter = _this$state.originFilter,
          managedBase = _this$state.managedBase,
          managedTemplate = _this$state.managedTemplate;
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "managed-entries", "config", configName, action, "--scope", originScope || action == "add" ? originScope : "delete", "--filter", originFilter || action == "add" ? originFilter : "delete", "--managed-base", managedBase || action == "add" ? managedBase : "delete", "--managed-template", managedTemplate || action == "add" ? managedTemplate : "delete"];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("cmdOperation", "Do the ".concat(action, " operation on the Managed Entries Plugin"), cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("cmdOperation", "Result", content);

        _this5.props.addNotification("success", "The ".concat(action, " operation was successfully done on \"").concat(configName, "\" entry"));

        _this5.loadConfigs();

        _this5.closeModal();

        _this5.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.props.addNotification("error", "Error during the config entry ".concat(action, " operation - ").concat(errMsg.desc));

        _this5.loadConfigs();

        _this5.closeModal();

        _this5.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "updateFields",
    value: function updateFields() {
      if (this.props.rows.length > 0) {
        var pluginRow = this.props.rows.find(function (row) {
          return row.cn[0] === "Managed Entries";
        });
        this.setState({
          configArea: pluginRow["nsslapd-pluginConfigArea"] === undefined ? "" : pluginRow["nsslapd-pluginConfigArea"][0]
        });
        this.loadConfigs();
      }
    }
  }, {
    key: "openTemplateModal",
    value: function openTemplateModal() {
      var _this6 = this;

      this.getAttributes();

      if (!this.state.managedTemplate) {
        this.setState({
          templateEntryModalShow: true,
          newTemplateEntry: true,
          templateDN: "",
          templateRDNAttr: [],
          templateStaticAttr: [],
          templateMappedAttr: []
        });
      } else {
        var templateMappedAttrObjectList = [];
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "managed-entries", "template", this.state.managedTemplate, "show"];
        this.props.toggleLoadingHandler();
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("openTemplateModal", "Fetch the Managed Entries Plugin config entry", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          var configEntry = JSON.parse(content).attrs;

          _this6.setState({
            templateEntryModalShow: true,
            newTemplateEntry: false,
            templateDN: _this6.state.managedTemplate,
            templateRDNAttr: configEntry["meprdnattr"] === undefined ? [] : [{
              id: configEntry["meprdnattr"][0],
              label: configEntry["meprdnattr"][0]
            }],
            templateStaticAttr: configEntry["mepstaticattr"] === undefined ? [] : [{
              id: configEntry["mepstaticattr"][0],
              label: configEntry["mepstaticattr"][0]
            }]
          });

          if (configEntry["mepmappedattr"] === undefined) {
            _this6.setState({
              templateMappedAttr: []
            });
          } else {
            var _iteratorNormalCompletion = true;
            var _didIteratorError = false;
            var _iteratorError = undefined;

            try {
              for (var _iterator = configEntry["mepmappedattr"][Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
                var value = _step.value;
                templateMappedAttrObjectList = _toConsumableArray(templateMappedAttrObjectList).concat([{
                  id: value,
                  label: value
                }]);
              }
            } catch (err) {
              _didIteratorError = true;
              _iteratorError = err;
            } finally {
              try {
                if (!_iteratorNormalCompletion && _iterator.return != null) {
                  _iterator.return();
                }
              } finally {
                if (_didIteratorError) {
                  throw _iteratorError;
                }
              }
            }

            _this6.setState({
              templateMappedAttr: templateMappedAttrObjectList
            });
          }

          _this6.props.toggleLoadingHandler();
        }).fail(function (_) {
          _this6.setState({
            templateEntryModalShow: true,
            newTemplateEntry: true,
            templateDN: _this6.state.managedTemplate,
            templateRDNAttr: [],
            templateStaticAttr: [],
            templateMappedAttr: []
          });

          _this6.props.toggleLoadingHandler();
        });
      }
    }
  }, {
    key: "closeTemplateModal",
    value: function closeTemplateModal() {
      this.setState({
        templateEntryModalShow: false
      });
    }
  }, {
    key: "cmdTemplateOperation",
    value: function cmdTemplateOperation(action) {
      var _this7 = this;

      var _this$state2 = this.state,
          templateDN = _this$state2.templateDN,
          templateRDNAttr = _this$state2.templateRDNAttr,
          templateStaticAttr = _this$state2.templateStaticAttr,
          templateMappedAttr = _this$state2.templateMappedAttr;
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "managed-entries", "template", templateDN, action];
      cmd = _toConsumableArray(cmd).concat(["--rdn-attr"]);

      if (templateRDNAttr.length != 0) {
        cmd = _toConsumableArray(cmd).concat([templateRDNAttr[0].label]);
      } else if (action == "add") {
        cmd = _toConsumableArray(cmd).concat([""]);
      } else {
        cmd = _toConsumableArray(cmd).concat(["delete"]);
      }

      cmd = _toConsumableArray(cmd).concat(["--static-attr"]);

      if (templateStaticAttr.length != 0) {
        cmd = _toConsumableArray(cmd).concat([templateStaticAttr[0].label]);
      } else if (action == "add") {
        cmd = _toConsumableArray(cmd).concat([""]);
      } else {
        cmd = _toConsumableArray(cmd).concat(["delete"]);
      }

      cmd = _toConsumableArray(cmd).concat(["--mapped-attr"]);

      if (templateMappedAttr.length != 0) {
        var _iteratorNormalCompletion2 = true;
        var _didIteratorError2 = false;
        var _iteratorError2 = undefined;

        try {
          for (var _iterator2 = templateMappedAttr[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
            var value = _step2.value;
            cmd = _toConsumableArray(cmd).concat([value.label]);
          }
        } catch (err) {
          _didIteratorError2 = true;
          _iteratorError2 = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
              _iterator2.return();
            }
          } finally {
            if (_didIteratorError2) {
              throw _iteratorError2;
            }
          }
        }
      } else {
        cmd = _toConsumableArray(cmd).concat(["delete"]);
      }

      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("managedEntriesOperation", "Do the ".concat(action, " operation on the Managed Entries Plugin"), cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("managedEntriesOperation", "Result", content);

        _this7.props.addNotification("success", "Config entry ".concat(templateDN, " was successfully ").concat(action, "ed"));

        _this7.closeTemplateModal();

        _this7.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this7.props.addNotification("error", "Error during the config entry ".concat(action, " operation - ").concat(errMsg.desc));

        _this7.closeTemplateModal();

        _this7.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "deleteTemplate",
    value: function deleteTemplate() {
      var _this8 = this;

      var templateDN = this.state.templateDN;
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "managed-entries", "template", templateDN, "delete"];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("deleteConfig", "Delete the Managed Entries Plugin config entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("deleteConfig", "Result", content);

        _this8.props.addNotification("success", "Config entry ".concat(templateDN, " was successfully deleted"));

        _this8.closeTemplateModal();

        _this8.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this8.props.addNotification("error", "Error during the config entry removal operation - ".concat(errMsg.desc));

        _this8.closeTemplateModal();

        _this8.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "addTemplate",
    value: function addTemplate() {
      this.cmdTemplateOperation("add");
    }
  }, {
    key: "editTemplate",
    value: function editTemplate() {
      this.cmdTemplateOperation("set");
    }
  }, {
    key: "getAttributes",
    value: function getAttributes() {
      var _this9 = this;

      var attr_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "list"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("getAttributes", "Get attrs", attr_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(attr_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var attrContent = JSON.parse(content);
        var attrs = [];
        var _iteratorNormalCompletion3 = true;
        var _didIteratorError3 = false;
        var _iteratorError3 = undefined;

        try {
          for (var _iterator3 = attrContent["items"][Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
            var _content = _step3.value;
            attrs.push({
              id: _content.name,
              label: _content.name
            });
          }
        } catch (err) {
          _didIteratorError3 = true;
          _iteratorError3 = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
              _iterator3.return();
            }
          } finally {
            if (_didIteratorError3) {
              throw _iteratorError3;
            }
          }
        }

        _this9.setState({
          attributes: attrs
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this9.props.addNotification("error", "Failed to get attributes - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this10 = this;

      var _this$state3 = this.state,
          configArea = _this$state3.configArea,
          configRows = _this$state3.configRows,
          attributes = _this$state3.attributes,
          configName = _this$state3.configName,
          originScope = _this$state3.originScope,
          originFilter = _this$state3.originFilter,
          managedBase = _this$state3.managedBase,
          managedTemplate = _this$state3.managedTemplate,
          templateDN = _this$state3.templateDN,
          templateRDNAttr = _this$state3.templateRDNAttr,
          templateStaticAttr = _this$state3.templateStaticAttr,
          templateMappedAttr = _this$state3.templateMappedAttr,
          newConfigEntry = _this$state3.newConfigEntry,
          configEntryModalShow = _this$state3.configEntryModalShow,
          newTemplateEntry = _this$state3.newTemplateEntry,
          templateEntryModalShow = _this$state3.templateEntryModalShow;
      var specificPluginCMD = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "managed-entries", "set", "--config-area", configArea || "delete"];
      var modalConfigFields = {
        originScope: {
          name: "Scope",
          value: originScope,
          help: "Sets the search base DN to use to see which entries the plug-in monitors (originScope)"
        },
        originFilter: {
          name: "Filter",
          value: originFilter,
          help: "Sets the search filter to use to search for and identify the entries within the subtree which require a managed entry (originFilter)"
        },
        managedBase: {
          name: "Managed Base",
          value: managedBase,
          help: "Sets the subtree under which to create the managed entries (managedBase)"
        }
      };
      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: configEntryModalShow,
        onHide: this.closeModal
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.closeModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, newConfigEntry ? "Add" : "Edit", " Managed Entries Plugin Config Entry")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "configName",
        controlId: "configName"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], null, "Config Name")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        required: true,
        type: "text",
        value: configName,
        onChange: this.handleFieldChange,
        disabled: !newConfigEntry
      }))), Object.entries(modalConfigFields).map(function (_ref) {
        var _ref2 = _slicedToArray(_ref, 2),
            id = _ref2[0],
            content = _ref2[1];

        return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
          key: id,
          controlId: id
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 3
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
          title: content.help
        }, content.name)), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 9
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
          type: "text",
          value: content.value,
          onChange: _this10.handleFieldChange
        })));
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "managedTemplate",
        controlId: "managedTemplate"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Identifies the template entry to use to create the managed entry (managedTemplate)"
      }, "Managed Template"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: managedTemplate,
        onChange: this.handleFieldChange
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.openTemplateModal
      }, "Manage"))))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.closeModal
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: newConfigEntry ? this.addConfig : this.editConfig
      }, "Save")))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: templateEntryModalShow,
        onHide: this.closeTemplateModal
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.closeTemplateModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, "Handle Managed Entries Plugin Template Entry")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "templateDN"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "DN of the template entry"
      }, "Template DN")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: templateDN,
        onChange: this.handleFieldChange,
        disabled: !newTemplateEntry
      })))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "templateRDNAttr",
        controlId: "templateRDNAttr",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 4,
        title: "Sets which attribute to use as the naming attribute in the automatically-generated entry (mepRDNAttr)"
      }, "RDN Attribute"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        onChange: function onChange(value) {
          _this10.setState({
            templateRDNAttr: value
          });
        },
        selected: templateRDNAttr,
        options: attributes,
        newSelectionPrefix: "Add a RDN attribute: ",
        placeholder: "Type an attribute..."
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "templateStaticAttr",
        controlId: "templateStaticAttr",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "Sets an attribute with a defined value that must be added to the automatically-generated entry (mepStaticAttr)"
      }, "Static Attribute")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        onChange: function onChange(value) {
          _this10.setState({
            templateStaticAttr: value
          });
        },
        selected: templateStaticAttr,
        options: attributes,
        newSelectionPrefix: "Add a static attribute: ",
        placeholder: "Type an attribute..."
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "templateMappedAttr",
        controlId: "templateMappedAttr",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "Sets attributes in the Managed Entries template entry which must exist in the generated entry (mepMappedAttr)"
      }, "Mapped Attributes")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(value) {
          _this10.setState({
            templateMappedAttr: value
          });
        },
        selected: templateMappedAttr,
        options: attributes,
        newSelectionPrefix: "Add a mapped attribute: ",
        placeholder: "Type an attribute..."
      }))))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.closeTemplateModal
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.deleteTemplate,
        disabled: newTemplateEntry
      }, "Delete"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.editTemplate,
        disabled: newTemplateEntry
      }, "Save"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.addTemplate,
        disabled: !newTemplateEntry
      }, "Add")))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__["default"], {
        rows: this.props.rows,
        serverId: this.props.serverId,
        cn: "Managed Entries",
        pluginName: "Managed Entries",
        cmdName: "managed-entries",
        specificPluginCMD: specificPluginCMD,
        savePluginHandler: this.props.savePluginHandler,
        pluginListHandler: this.props.pluginListHandler,
        addNotification: this.props.addNotification,
        toggleLoadingHandler: this.props.toggleLoadingHandler
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "configArea",
        controlId: "configArea"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "DN of the shared config entry (nsslapd-pluginConfigArea)"
      }, "Shared Config Area"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: configArea,
        onChange: this.handleFieldChange
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_4__["ManagedEntriesTable"], {
        rows: configRows,
        editConfig: this.showEditConfigModal,
        deleteConfig: this.deleteConfig
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        className: "ds-margin-top",
        bsStyle: "primary",
        onClick: this.showAddConfigModal
      }, "Add Config"))));
    }
  }]);

  return ManagedEntries;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

ManagedEntries.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  savePluginHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  pluginListHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  toggleLoadingHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func
};
ManagedEntries.defaultProps = {
  rows: [],
  serverId: "",
  savePluginHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  pluginListHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  toggleLoadingHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (ManagedEntries);

/***/ }),

/***/ "./src/lib/plugins/memberOf.jsx":
/*!**************************************!*\
  !*** ./src/lib/plugins/memberOf.jsx ***!
  \**************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_7__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }










var MemberOf =
/*#__PURE__*/
function (_React$Component) {
  _inherits(MemberOf, _React$Component);

  _createClass(MemberOf, [{
    key: "componentWillMount",
    value: function componentWillMount(prevProps) {
      this.getObjectClasses();
      this.getAttributes();
      this.updateFields();
    }
  }, {
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps) {
      if (this.props.rows !== prevProps.rows) {
        this.updateFields();
      }
    }
  }]);

  function MemberOf(props) {
    var _this;

    _classCallCheck(this, MemberOf);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(MemberOf).call(this, props));
    _this.getObjectClasses = _this.getObjectClasses.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.getAttributes = _this.getAttributes.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.updateFields = _this.updateFields.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleCheckboxChange = _this.handleCheckboxChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.openModal = _this.openModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeModal = _this.closeModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.addConfig = _this.addConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.editConfig = _this.editConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.deleteConfig = _this.deleteConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.cmdOperation = _this.cmdOperation.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.runFixup = _this.runFixup.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.toggleFixupModal = _this.toggleFixupModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.state = {
      objectClasses: [],
      attributeTypes: [],
      memberOfAttr: [],
      memberOfGroupAttr: [],
      memberOfEntryScope: "",
      memberOfEntryScopeExcludeSubtree: "",
      memberOfAutoAddOC: [],
      memberOfAllBackends: false,
      memberOfSkipNested: false,
      memberOfConfigEntry: "",
      configEntryModalShow: false,
      fixupModalShow: false,
      configDN: "",
      configAttr: [],
      configGroupAttr: [],
      configEntryScope: "",
      configEntryScopeExcludeSubtree: "",
      configAutoAddOC: [],
      configAllBackends: false,
      configSkipNested: false,
      newEntry: true,
      fixupDN: "",
      fixupFilter: ""
    };
    return _this;
  }

  _createClass(MemberOf, [{
    key: "toggleFixupModal",
    value: function toggleFixupModal() {
      this.setState(function (prevState) {
        return {
          fixupModalShow: !prevState.fixupModalShow,
          fixupDN: "",
          fixupFilter: ""
        };
      });
    }
  }, {
    key: "runFixup",
    value: function runFixup() {
      var _this2 = this;

      if (!this.state.fixupDN) {
        this.props.addNotification("warning", "Fixup DN is required.");
      } else {
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "memberof", "fixup", this.state.fixupDN];

        if (this.state.fixupFilter) {
          cmd = _toConsumableArray(cmd).concat(["--filter", this.state.fixupFilter]);
        }

        this.props.toggleLoadingHandler();
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("runFixup", "Run fixup MemberOf Plugin ", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          _this2.props.addNotification("success", "Fixup task for ".concat(_this2.state.fixupDN, " was successfull"));

          _this2.props.toggleLoadingHandler();

          _this2.setState({
            fixupModalShow: false
          });
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this2.props.addNotification("error", "Fixup task for ".concat(_this2.state.fixupDN, " has failed ").concat(errMsg.desc));

          _this2.props.toggleLoadingHandler();

          _this2.setState({
            fixupModalShow: false
          });
        });
      }
    }
  }, {
    key: "openModal",
    value: function openModal() {
      var _this3 = this;

      this.getObjectClasses();
      this.getAttributes();

      if (!this.state.memberOfConfigEntry) {
        this.setState({
          configEntryModalShow: true,
          newEntry: true,
          configDN: "",
          configAttr: [],
          configGroupAttr: [],
          configEntryScope: "",
          configEntryScopeExcludeSubtree: "",
          configAutoAddOC: [],
          configAllBackends: false,
          configSkipNested: false
        });
      } else {
        var configAttrObjectList = [];
        var configGroupAttrObjectList = [];
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "memberof", "config-entry", "show", this.state.memberOfConfigEntry];
        this.props.toggleLoadingHandler();
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("openMemberOfModal", "Fetch the MemberOf Plugin config entry", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          var configEntry = JSON.parse(content).attrs;

          _this3.setState({
            configEntryModalShow: true,
            newEntry: false,
            configDN: _this3.state.memberOfConfigEntry,
            configAutoAddOC: configEntry["memberofautoaddoc"] === undefined ? [] : [{
              id: configEntry["memberofautoaddoc"][0],
              label: configEntry["memberofautoaddoc"][0]
            }],
            configAllBackends: !(configEntry["memberofallbackends"] === undefined || configEntry["memberofallbackends"][0] == "off"),
            configSkipNested: !(configEntry["memberofskipnested"] === undefined || configEntry["memberofskipnested"][0] == "off"),
            configConfigEntry: configEntry["nsslapd-pluginConfigArea"] === undefined ? "" : configEntry["nsslapd-pluginConfigArea"][0],
            configEntryScope: configEntry["memberofentryscope"] === undefined ? "" : configEntry["memberofentryscope"][0],
            configEntryScopeExcludeSubtree: configEntry["memberofentryscopeexcludesubtree"] === undefined ? "" : configEntry["memberofentryscopeexcludesubtree"][0]
          });

          if (configEntry["memberofattr"] === undefined) {
            _this3.setState({
              configAttr: []
            });
          } else {
            var _iteratorNormalCompletion = true;
            var _didIteratorError = false;
            var _iteratorError = undefined;

            try {
              for (var _iterator = configEntry["memberofattr"][Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
                var value = _step.value;
                configAttrObjectList = _toConsumableArray(configAttrObjectList).concat([{
                  id: value,
                  label: value
                }]);
              }
            } catch (err) {
              _didIteratorError = true;
              _iteratorError = err;
            } finally {
              try {
                if (!_iteratorNormalCompletion && _iterator.return != null) {
                  _iterator.return();
                }
              } finally {
                if (_didIteratorError) {
                  throw _iteratorError;
                }
              }
            }

            _this3.setState({
              configAttr: configAttrObjectList
            });
          }

          if (configEntry["memberofgroupattr"] === undefined) {
            _this3.setState({
              configGroupAttr: []
            });
          } else {
            var _iteratorNormalCompletion2 = true;
            var _didIteratorError2 = false;
            var _iteratorError2 = undefined;

            try {
              for (var _iterator2 = configEntry["memberofgroupattr"][Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
                var _value = _step2.value;
                configGroupAttrObjectList = _toConsumableArray(configGroupAttrObjectList).concat([{
                  id: _value,
                  label: _value
                }]);
              }
            } catch (err) {
              _didIteratorError2 = true;
              _iteratorError2 = err;
            } finally {
              try {
                if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
                  _iterator2.return();
                }
              } finally {
                if (_didIteratorError2) {
                  throw _iteratorError2;
                }
              }
            }

            _this3.setState({
              configGroupAttr: configGroupAttrObjectList
            });
          }

          _this3.props.toggleLoadingHandler();
        }).fail(function (_) {
          _this3.setState({
            configEntryModalShow: true,
            newEntry: true,
            configDN: _this3.state.memberOfConfigEntry,
            configAttr: [],
            configGroupAttr: [],
            configEntryScope: "",
            configEntryScopeExcludeSubtree: "",
            configAutoAddOC: [],
            configAllBackends: false,
            configSkipNested: false
          });

          _this3.props.toggleLoadingHandler();
        });
      }
    }
  }, {
    key: "closeModal",
    value: function closeModal() {
      this.setState({
        configEntryModalShow: false
      });
    }
  }, {
    key: "cmdOperation",
    value: function cmdOperation(action) {
      var _this4 = this;

      var _this$state = this.state,
          configDN = _this$state.configDN,
          configAttr = _this$state.configAttr,
          configGroupAttr = _this$state.configGroupAttr,
          configEntryScope = _this$state.configEntryScope,
          configEntryScopeExcludeSubtree = _this$state.configEntryScopeExcludeSubtree,
          configAutoAddOC = _this$state.configAutoAddOC,
          configAllBackends = _this$state.configAllBackends,
          configSkipNested = _this$state.configSkipNested;

      if (configAttr.length == 0 || configGroupAttr.length == 0) {
        this.props.addNotification("warning", "Config Attribute and Group Attribute are required.");
      } else {
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "memberof", "config-entry", action, configDN, "--scope", configEntryScope || action == "add" ? configEntryScope : "delete", "--exclude", configEntryScopeExcludeSubtree || action == "add" ? configEntryScopeExcludeSubtree : "delete", "--allbackends", configAllBackends ? "on" : "off", "--skipnested", configSkipNested ? "on" : "off"];
        cmd = _toConsumableArray(cmd).concat(["--autoaddoc"]);

        if (configAutoAddOC.length != 0) {
          cmd = _toConsumableArray(cmd).concat([configAutoAddOC[0].label]);
        } else if (action == "add") {
          cmd = _toConsumableArray(cmd).concat([""]);
        } else {
          cmd = _toConsumableArray(cmd).concat(["delete"]);
        } // Delete attributes if the user set an empty value to the field


        cmd = _toConsumableArray(cmd).concat(["--attr"]);

        if (configAttr.length != 0) {
          var _iteratorNormalCompletion3 = true;
          var _didIteratorError3 = false;
          var _iteratorError3 = undefined;

          try {
            for (var _iterator3 = configAttr[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
              var value = _step3.value;
              cmd = _toConsumableArray(cmd).concat([value.label]);
            }
          } catch (err) {
            _didIteratorError3 = true;
            _iteratorError3 = err;
          } finally {
            try {
              if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
                _iterator3.return();
              }
            } finally {
              if (_didIteratorError3) {
                throw _iteratorError3;
              }
            }
          }
        }

        cmd = _toConsumableArray(cmd).concat(["--groupattr"]);

        if (configGroupAttr.length != 0) {
          var _iteratorNormalCompletion4 = true;
          var _didIteratorError4 = false;
          var _iteratorError4 = undefined;

          try {
            for (var _iterator4 = configGroupAttr[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {
              var _value2 = _step4.value;
              cmd = _toConsumableArray(cmd).concat([_value2.label]);
            }
          } catch (err) {
            _didIteratorError4 = true;
            _iteratorError4 = err;
          } finally {
            try {
              if (!_iteratorNormalCompletion4 && _iterator4.return != null) {
                _iterator4.return();
              }
            } finally {
              if (_didIteratorError4) {
                throw _iteratorError4;
              }
            }
          }
        }

        this.props.toggleLoadingHandler();
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("memberOfOperation", "Do the ".concat(action, " operation on the MemberOf Plugin"), cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          console.info("memberOfOperation", "Result", content);

          _this4.props.addNotification("success", "Config entry ".concat(configDN, " was successfully ").concat(action, "ed"));

          _this4.props.pluginListHandler();

          _this4.closeModal();

          _this4.props.toggleLoadingHandler();
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this4.props.addNotification("error", "Error during the config entry ".concat(action, " operation - ").concat(errMsg.desc));

          _this4.props.pluginListHandler();

          _this4.closeModal();

          _this4.props.toggleLoadingHandler();
        });
      }
    }
  }, {
    key: "deleteConfig",
    value: function deleteConfig() {
      var _this5 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "memberof", "config-entry", "delete", this.state.configDN];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("deleteConfig", "Delete the MemberOf Plugin config entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("deleteConfig", "Result", content);

        _this5.props.addNotification("success", "Config entry ".concat(_this5.state.configDN, " was successfully deleted"));

        _this5.props.pluginListHandler();

        _this5.closeModal();

        _this5.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.props.addNotification("error", "Error during the config entry removal operation - ".concat(errMsg.desc));

        _this5.props.pluginListHandler();

        _this5.closeModal();

        _this5.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "addConfig",
    value: function addConfig() {
      this.cmdOperation("add");
    }
  }, {
    key: "editConfig",
    value: function editConfig() {
      this.cmdOperation("set");
    }
  }, {
    key: "handleCheckboxChange",
    value: function handleCheckboxChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.checked));
    }
  }, {
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.value));
    }
  }, {
    key: "updateFields",
    value: function updateFields() {
      var memberOfAttrObjectList = [];
      var memberOfGroupAttrObjectList = [];

      if (this.props.rows.length > 0) {
        var pluginRow = this.props.rows.find(function (row) {
          return row.cn[0] === "MemberOf Plugin";
        });
        this.setState({
          memberOfAutoAddOC: pluginRow["memberofautoaddoc"] === undefined ? [] : [{
            id: pluginRow["memberofautoaddoc"][0],
            label: pluginRow["memberofautoaddoc"][0]
          }],
          memberOfAllBackends: !(pluginRow["memberofallbackends"] === undefined || pluginRow["memberofallbackends"][0] == "off"),
          memberOfSkipNested: !(pluginRow["memberofskipnested"] === undefined || pluginRow["memberofskipnested"][0] == "off"),
          memberOfConfigEntry: pluginRow["nsslapd-pluginConfigArea"] === undefined ? "" : pluginRow["nsslapd-pluginConfigArea"][0],
          memberOfEntryScope: pluginRow["memberofentryscope"] === undefined ? "" : pluginRow["memberofentryscope"][0],
          memberOfEntryScopeExcludeSubtree: pluginRow["memberofentryscopeexcludesubtree"] === undefined ? "" : pluginRow["memberofentryscopeexcludesubtree"][0]
        });

        if (pluginRow["memberofattr"] === undefined) {
          this.setState({
            memberOfAttr: []
          });
        } else {
          var _iteratorNormalCompletion5 = true;
          var _didIteratorError5 = false;
          var _iteratorError5 = undefined;

          try {
            for (var _iterator5 = pluginRow["memberofattr"][Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) {
              var value = _step5.value;
              memberOfAttrObjectList = _toConsumableArray(memberOfAttrObjectList).concat([{
                id: value,
                label: value
              }]);
            }
          } catch (err) {
            _didIteratorError5 = true;
            _iteratorError5 = err;
          } finally {
            try {
              if (!_iteratorNormalCompletion5 && _iterator5.return != null) {
                _iterator5.return();
              }
            } finally {
              if (_didIteratorError5) {
                throw _iteratorError5;
              }
            }
          }

          this.setState({
            memberOfAttr: memberOfAttrObjectList
          });
        }

        if (pluginRow["memberofgroupattr"] === undefined) {
          this.setState({
            memberOfGroupAttr: []
          });
        } else {
          var _iteratorNormalCompletion6 = true;
          var _didIteratorError6 = false;
          var _iteratorError6 = undefined;

          try {
            for (var _iterator6 = pluginRow["memberofgroupattr"][Symbol.iterator](), _step6; !(_iteratorNormalCompletion6 = (_step6 = _iterator6.next()).done); _iteratorNormalCompletion6 = true) {
              var _value3 = _step6.value;
              memberOfGroupAttrObjectList = _toConsumableArray(memberOfGroupAttrObjectList).concat([{
                id: _value3,
                label: _value3
              }]);
            }
          } catch (err) {
            _didIteratorError6 = true;
            _iteratorError6 = err;
          } finally {
            try {
              if (!_iteratorNormalCompletion6 && _iterator6.return != null) {
                _iterator6.return();
              }
            } finally {
              if (_didIteratorError6) {
                throw _iteratorError6;
              }
            }
          }

          this.setState({
            memberOfGroupAttr: memberOfGroupAttrObjectList
          });
        }
      }
    }
  }, {
    key: "getObjectClasses",
    value: function getObjectClasses() {
      var _this6 = this;

      var oc_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "objectclasses", "list"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("getObjectClasses", "Get objectClasses", oc_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(oc_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var ocContent = JSON.parse(content);
        var ocs = [];
        var _iteratorNormalCompletion7 = true;
        var _didIteratorError7 = false;
        var _iteratorError7 = undefined;

        try {
          for (var _iterator7 = ocContent["items"][Symbol.iterator](), _step7; !(_iteratorNormalCompletion7 = (_step7 = _iterator7.next()).done); _iteratorNormalCompletion7 = true) {
            var _content = _step7.value;
            ocs.push({
              id: _content.name,
              label: _content.name
            });
          }
        } catch (err) {
          _didIteratorError7 = true;
          _iteratorError7 = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion7 && _iterator7.return != null) {
              _iterator7.return();
            }
          } finally {
            if (_didIteratorError7) {
              throw _iteratorError7;
            }
          }
        }

        _this6.setState({
          objectClasses: ocs
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this6.props.addNotification("error", "Failed to get objectClasses - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "getAttributes",
    value: function getAttributes() {
      var _this7 = this;

      var oc_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "list"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("getAttributes", "Get getAttributes", oc_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(oc_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var atContent = JSON.parse(content);
        var attrs = [];
        var _iteratorNormalCompletion8 = true;
        var _didIteratorError8 = false;
        var _iteratorError8 = undefined;

        try {
          for (var _iterator8 = atContent["items"][Symbol.iterator](), _step8; !(_iteratorNormalCompletion8 = (_step8 = _iterator8.next()).done); _iteratorNormalCompletion8 = true) {
            var _content2 = _step8.value;
            attrs.push({
              id: _content2.name,
              label: _content2.name
            });
          }
        } catch (err) {
          _didIteratorError8 = true;
          _iteratorError8 = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion8 && _iterator8.return != null) {
              _iterator8.return();
            }
          } finally {
            if (_didIteratorError8) {
              throw _iteratorError8;
            }
          }
        }

        _this7.setState({
          attributeTypes: attrs
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this7.props.addNotification("error", "Failed to get attributes - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this8 = this;

      var _this$state2 = this.state,
          objectClasses = _this$state2.objectClasses,
          attributeTypes = _this$state2.attributeTypes,
          memberOfAttr = _this$state2.memberOfAttr,
          memberOfGroupAttr = _this$state2.memberOfGroupAttr,
          memberOfEntryScope = _this$state2.memberOfEntryScope,
          memberOfEntryScopeExcludeSubtree = _this$state2.memberOfEntryScopeExcludeSubtree,
          memberOfAutoAddOC = _this$state2.memberOfAutoAddOC,
          memberOfAllBackends = _this$state2.memberOfAllBackends,
          memberOfSkipNested = _this$state2.memberOfSkipNested,
          memberOfConfigEntry = _this$state2.memberOfConfigEntry,
          configDN = _this$state2.configDN,
          configEntryModalShow = _this$state2.configEntryModalShow,
          configAttr = _this$state2.configAttr,
          configGroupAttr = _this$state2.configGroupAttr,
          configEntryScope = _this$state2.configEntryScope,
          configEntryScopeExcludeSubtree = _this$state2.configEntryScopeExcludeSubtree,
          configAutoAddOC = _this$state2.configAutoAddOC,
          configAllBackends = _this$state2.configAllBackends,
          configSkipNested = _this$state2.configSkipNested,
          newEntry = _this$state2.newEntry,
          fixupModalShow = _this$state2.fixupModalShow,
          fixupDN = _this$state2.fixupDN,
          fixupFilter = _this$state2.fixupFilter;
      var specificPluginCMD = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "memberof", "set", "--scope", memberOfEntryScope || "delete", "--exclude", memberOfEntryScopeExcludeSubtree || "delete", "--config-entry", memberOfConfigEntry || "delete", "--allbackends", memberOfAllBackends ? "on" : "off", "--skipnested", memberOfSkipNested ? "on" : "off"];
      specificPluginCMD = _toConsumableArray(specificPluginCMD).concat(["--autoaddoc"]);

      if (memberOfAutoAddOC.length != 0) {
        specificPluginCMD = _toConsumableArray(specificPluginCMD).concat([memberOfAutoAddOC[0].label]);
      } else {
        specificPluginCMD = _toConsumableArray(specificPluginCMD).concat(["delete"]);
      } // Delete attributes if the user set an empty value to the field


      specificPluginCMD = _toConsumableArray(specificPluginCMD).concat(["--attr"]);

      if (memberOfAttr.length != 0) {
        var _iteratorNormalCompletion9 = true;
        var _didIteratorError9 = false;
        var _iteratorError9 = undefined;

        try {
          for (var _iterator9 = memberOfAttr[Symbol.iterator](), _step9; !(_iteratorNormalCompletion9 = (_step9 = _iterator9.next()).done); _iteratorNormalCompletion9 = true) {
            var value = _step9.value;
            specificPluginCMD = _toConsumableArray(specificPluginCMD).concat([value.label]);
          }
        } catch (err) {
          _didIteratorError9 = true;
          _iteratorError9 = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion9 && _iterator9.return != null) {
              _iterator9.return();
            }
          } finally {
            if (_didIteratorError9) {
              throw _iteratorError9;
            }
          }
        }
      } else {
        specificPluginCMD = _toConsumableArray(specificPluginCMD).concat(["delete"]);
      }

      specificPluginCMD = _toConsumableArray(specificPluginCMD).concat(["--groupattr"]);

      if (memberOfGroupAttr.length != 0) {
        var _iteratorNormalCompletion10 = true;
        var _didIteratorError10 = false;
        var _iteratorError10 = undefined;

        try {
          for (var _iterator10 = memberOfGroupAttr[Symbol.iterator](), _step10; !(_iteratorNormalCompletion10 = (_step10 = _iterator10.next()).done); _iteratorNormalCompletion10 = true) {
            var _value4 = _step10.value;
            specificPluginCMD = _toConsumableArray(specificPluginCMD).concat([_value4.label]);
          }
        } catch (err) {
          _didIteratorError10 = true;
          _iteratorError10 = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion10 && _iterator10.return != null) {
              _iterator10.return();
            }
          } finally {
            if (_didIteratorError10) {
              throw _iteratorError10;
            }
          }
        }
      } else {
        specificPluginCMD = _toConsumableArray(specificPluginCMD).concat(["delete"]);
      }

      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: fixupModalShow,
        onHide: this.toggleFixupModal
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.toggleFixupModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, "Fixup MemberOf Task")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "fixupDN",
        key: "fixupDN"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "Base DN that contains entries to fix up"
      }, "Base DN")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: fixupDN,
        onChange: this.handleFieldChange
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "fixupFilter",
        key: "fixupFilter"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "Filter for entries to fix up. If omitted, all entries with objectclass inetuser/inetadmin/nsmemberof under the specified base will have their memberOf attribute regenerated."
      }, "Filter DN")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: fixupFilter,
        onChange: this.handleFieldChange
      }))))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.toggleFixupModal
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.runFixup
      }, "Run")))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: configEntryModalShow,
        onHide: this.closeModal
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.closeModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, "Manage MemberOf Plugin Shared Config Entry")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "configDN"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "The config entry full DN"
      }, "Config DN")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: configDN,
        onChange: this.handleFieldChange,
        disabled: !newEntry
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "configAttr",
        controlId: "configAttr",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies the attribute in the user entry for the Directory Server to manage to reflect group membership (memberOfAttr)"
      }, "Attribute"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(values) {
          _this8.setState({
            configAttr: values
          });
        },
        selected: configAttr,
        newSelectionPrefix: "Add a member: ",
        options: [{
          id: "memberOf",
          label: "memberOf"
        }],
        placeholder: "Type a member attribute..."
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "configGroupAttr",
        controlId: "configGroupAttr",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies the attribute in the group entry to use to identify the DNs of group members (memberOfGroupAttr)"
      }, "Group Attribute"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(values) {
          _this8.setState({
            configGroupAttr: values
          });
        },
        selected: configGroupAttr,
        newSelectionPrefix: "Add a group member attribute: ",
        options: attributeTypes,
        placeholder: "Type a member group attribute..."
      })))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "configEntryScope",
        controlId: "configEntryScope",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies backends or multiple-nested suffixes for the MemberOf plug-in to work on (memberOfEntryScope)"
      }, "Entry Scope"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: configEntryScope,
        onChange: this.handleFieldChange
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Checkbox"], {
        id: "configAllBackends",
        checked: configAllBackends,
        onChange: this.handleCheckboxChange,
        title: "Specifies whether to search the local suffix for user entries on all available suffixes (memberOfAllBackends)"
      }, "All Backends"))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "configEntryScopeExcludeSubtree",
        controlId: "configEntryScopeExcludeSubtree",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies backends or multiple-nested suffixes for the MemberOf plug-in to exclude (memberOfEntryScopeExcludeSubtree)"
      }, "Entry Scope Exclude Subtree"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: configEntryScopeExcludeSubtree,
        onChange: this.handleFieldChange
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Checkbox"], {
        id: "configSkipNested",
        checked: configSkipNested,
        onChange: this.handleCheckboxChange,
        title: "Specifies wherher to skip nested groups or not (memberOfSkipNested)"
      }, "Skip Nested")))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "configAutoAddOC",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "If an entry does not have an object class that allows the memberOf attribute then the memberOf plugin will automatically add the object class listed in the memberOfAutoAddOC parameter"
      }, "Auto Add OC")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        onChange: function onChange(value) {
          _this8.setState({
            configAutoAddOC: value
          });
        },
        selected: configAutoAddOC,
        options: objectClasses,
        newSelectionPrefix: "Add a memberOf objectClass: ",
        placeholder: "Type an objectClass..."
      }))))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.closeModal
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.deleteConfig,
        disabled: newEntry
      }, "Delete"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.editConfig,
        disabled: newEntry
      }, "Save"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.addConfig,
        disabled: !newEntry
      }, "Add")))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__["default"], {
        rows: this.props.rows,
        serverId: this.props.serverId,
        cn: "MemberOf Plugin",
        pluginName: "MemberOf",
        cmdName: "memberof",
        specificPluginCMD: specificPluginCMD,
        savePluginHandler: this.props.savePluginHandler,
        pluginListHandler: this.props.pluginListHandler,
        addNotification: this.props.addNotification,
        toggleLoadingHandler: this.props.toggleLoadingHandler
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "memberOfAttr",
        controlId: "memberOfAttr",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies the attribute in the user entry for the Directory Server to manage to reflect group membership (memberOfAttr)"
      }, "Attribute"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(values) {
          _this8.setState({
            memberOfAttr: values
          });
        },
        selected: memberOfAttr,
        newSelectionPrefix: "Add a member attrbiute: ",
        options: [{
          id: "member",
          label: "member"
        }, {
          id: "memberCertificate",
          label: "memberCertificate"
        }, {
          id: "uniqueMember",
          label: "uniqueMember"
        }],
        placeholder: "Type a member attribute..."
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "memberOfGroupAttr",
        controlId: "memberOfGroupAttr",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies the attribute in the group entry to use to identify the DNs of group members (memberOfGroupAttr)"
      }, "Group Attribute"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(values) {
          _this8.setState({
            memberOfGroupAttr: values
          });
        },
        selected: memberOfGroupAttr,
        newSelectionPrefix: "Add a group member attribute: ",
        options: attributeTypes,
        placeholder: "Type a member group attribute..."
      })))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "memberOfEntryScope",
        controlId: "memberOfEntryScope",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies backends or multiple-nested suffixes for the MemberOf plug-in to work on (memberOfEntryScope)"
      }, "Entry Scope"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: memberOfEntryScope,
        onChange: this.handleFieldChange
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Checkbox"], {
        id: "memberOfAllBackends",
        checked: memberOfAllBackends,
        onChange: this.handleCheckboxChange,
        title: "Specifies whether to search the local suffix for user entries on all available suffixes (memberOfAllBackends)"
      }, "All Backends"))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "memberOfEntryScopeExcludeSubtree",
        controlId: "memberOfEntryScopeExcludeSubtree",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies backends or multiple-nested suffixes for the MemberOf plug-in to exclude (memberOfEntryScopeExcludeSubtree)"
      }, "Entry Scope Exclude Subtree"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: memberOfEntryScopeExcludeSubtree,
        onChange: this.handleFieldChange
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Checkbox"], {
        id: "memberOfSkipNested",
        checked: memberOfSkipNested,
        onChange: this.handleCheckboxChange,
        title: "Specifies wherher to skip nested groups or not (memberOfSkipNested)"
      }, "Skip Nested")))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "memberOfConfigEntry",
        controlId: "memberOfConfigEntry"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "The value to set as nsslapd-pluginConfigArea"
      }, "Shared Config Entry"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: memberOfConfigEntry,
        onChange: this.handleFieldChange
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.openModal
      }, "Manage")))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "memberOfAutoAddOC",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3,
        title: "If an entry does not have an object class that allows the memberOf attribute then the memberOf plugin will automatically add the object class listed in the memberOfAutoAddOC parameter"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], null, "Auto Add OC")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        onChange: function onChange(value) {
          _this8.setState({
            memberOfAutoAddOC: value
          });
        },
        selected: memberOfAutoAddOC,
        options: objectClasses,
        newSelectionPrefix: "Add a memberOf objectClass: ",
        placeholder: "Type an objectClass..."
      })))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.toggleFixupModal
      }, "Run Fixup Task")))));
    }
  }]);

  return MemberOf;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

MemberOf.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.array,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
  savePluginHandler: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,
  pluginListHandler: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,
  toggleLoadingHandler: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func
};
MemberOf.defaultProps = {
  rows: [],
  serverId: "",
  savePluginHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  pluginListHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  toggleLoadingHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (MemberOf);

/***/ }),

/***/ "./src/lib/plugins/passthroughAuthentication.jsx":
/*!*******************************************************!*\
  !*** ./src/lib/plugins/passthroughAuthentication.jsx ***!
  \*******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _pluginTables_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pluginTables.jsx */ "./src/lib/plugins/pluginTables.jsx");
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_8__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }

function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }











var PassthroughAuthentication =
/*#__PURE__*/
function (_React$Component) {
  _inherits(PassthroughAuthentication, _React$Component);

  _createClass(PassthroughAuthentication, [{
    key: "componentWillMount",
    value: function componentWillMount() {
      this.loadPAMConfigs();
      this.loadURLs();
    }
  }]);

  function PassthroughAuthentication(props) {
    var _this;

    _classCallCheck(this, PassthroughAuthentication);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(PassthroughAuthentication).call(this, props));
    _this.state = {
      pamConfigRows: [],
      urlRows: [],
      attributes: [],
      pamConfigName: "",
      pamExcludeSuffix: [],
      pamIncludeSuffix: [],
      pamMissingSuffix: "",
      pamFilter: "",
      pamIDAttr: [],
      pamIDMapMethod: "",
      pamFallback: false,
      pamSecure: false,
      pamService: "",
      oldURL: "",
      urlConnType: "ldap",
      urlAuthDS: "",
      urlSubtree: "",
      urlMaxConns: "3",
      urlMaxOps: "5",
      urlTimeout: "300",
      urlLDVer: "3",
      urlConnLifeTime: "300",
      urlStartTLS: false,
      newPAMConfigEntry: false,
      newURLEntry: false,
      pamConfigEntryModalShow: false,
      urlEntryModalShow: false
    };
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleCheckboxChange = _this.handleCheckboxChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadPAMConfigs = _this.loadPAMConfigs.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadURLs = _this.loadURLs.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.getAttributes = _this.getAttributes.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.openPAMModal = _this.openPAMModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closePAMModal = _this.closePAMModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showEditPAMConfigModal = _this.showEditPAMConfigModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showAddPAMConfigModal = _this.showAddPAMConfigModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.cmdPAMOperation = _this.cmdPAMOperation.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.deletePAMConfig = _this.deletePAMConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.addPAMConfig = _this.addPAMConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.editPAMConfig = _this.editPAMConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.openURLModal = _this.openURLModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeURLModal = _this.closeURLModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showEditURLModal = _this.showEditURLModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showAddURLModal = _this.showAddURLModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.cmdURLOperation = _this.cmdURLOperation.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.deleteURL = _this.deleteURL.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.addURL = _this.addURL.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.editURL = _this.editURL.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(PassthroughAuthentication, [{
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.value));
    }
  }, {
    key: "handleCheckboxChange",
    value: function handleCheckboxChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.checked));
    }
  }, {
    key: "loadPAMConfigs",
    value: function loadPAMConfigs() {
      var _this2 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "pass-through-auth", "list", "pam-configs"];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("loadPAMConfigs", "Get PAM Passthough Authentication Plugin pamConfigs", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var myObject = JSON.parse(content);

        _this2.setState({
          pamConfigRows: myObject.items.map(function (item) {
            return JSON.parse(item).attrs;
          })
        });

        _this2.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        if (err != 0) {
          console.log("loadPAMConfigs failed", errMsg.desc);
        }

        _this2.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "loadURLs",
    value: function loadURLs() {
      var _this3 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "pass-through-auth", "list", "urls"];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("loadURLs", "Get PAM Passthough Authentication Plugin pamConfigs", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var myObject = JSON.parse(content);

        _this3.setState({
          urlRows: myObject.items
        });

        _this3.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        if (err != 0) {
          console.log("loadURLs failed", errMsg.desc);
        }

        _this3.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "showEditPAMConfigModal",
    value: function showEditPAMConfigModal(rowData) {
      this.openPAMModal(rowData.cn[0]);
    }
  }, {
    key: "showAddPAMConfigModal",
    value: function showAddPAMConfigModal(rowData) {
      this.openPAMModal();
    }
  }, {
    key: "openPAMModal",
    value: function openPAMModal(name) {
      var _this4 = this;

      this.getAttributes();

      if (!name) {
        this.setState({
          pamConfigEntryModalShow: true,
          newPAMConfigEntry: true,
          pamConfigName: "",
          pamExcludeSuffix: [],
          pamIncludeSuffix: [],
          pamMissingSuffix: "",
          pamFilter: "",
          pamIDAttr: [],
          pamIDMapMethod: "",
          pamFallback: false,
          pamSecure: false,
          pamService: ""
        });
      } else {
        var pamExcludeSuffixList = [];
        var pamIncludeSuffixList = [];
        var pamIDAttrList = [];
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "pass-through-auth", "pam-config", name, "show"];
        this.props.toggleLoadingHandler();
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("openModal", "Fetch the PAM Passthough Authentication Plugin pamConfig entry", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          var pamConfigEntry = JSON.parse(content).attrs;

          _this4.setState({
            pamConfigEntryModalShow: true,
            newPAMConfigEntry: false,
            pamConfigName: pamConfigEntry["cn"] === undefined ? "" : pamConfigEntry["cn"][0],
            pamMissingSuffix: pamConfigEntry["pammissingsuffix"] === undefined ? "" : pamConfigEntry["pammissingsuffix"][0],
            pamFilter: pamConfigEntry["pamfilter"] === undefined ? "" : pamConfigEntry["pamfilter"][0],
            pamIDMapMethod: pamConfigEntry["pamidmapmethod"] === undefined ? "" : pamConfigEntry["pamidmapmethod"][0],
            pamFallback: !(pamConfigEntry["pamfallback"] === undefined || pamConfigEntry["pamfallback"][0] == "FALSE"),
            pamSecure: !(pamConfigEntry["pamsecure"] === undefined || pamConfigEntry["pamsecure"][0] == "FALSE"),
            pamService: pamConfigEntry["pamservice"] === undefined ? "" : pamConfigEntry["pamservice"][0]
          });

          if (pamConfigEntry["pamexcludesuffix"] === undefined) {
            _this4.setState({
              pamExcludeSuffix: []
            });
          } else {
            var _iteratorNormalCompletion = true;
            var _didIteratorError = false;
            var _iteratorError = undefined;

            try {
              for (var _iterator = pamConfigEntry["pamexcludesuffix"][Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
                var value = _step.value;
                pamExcludeSuffixList = _toConsumableArray(pamExcludeSuffixList).concat([{
                  id: value,
                  label: value
                }]);
              }
            } catch (err) {
              _didIteratorError = true;
              _iteratorError = err;
            } finally {
              try {
                if (!_iteratorNormalCompletion && _iterator.return != null) {
                  _iterator.return();
                }
              } finally {
                if (_didIteratorError) {
                  throw _iteratorError;
                }
              }
            }

            _this4.setState({
              pamExcludeSuffix: pamExcludeSuffixList
            });
          }

          if (pamConfigEntry["pamincludesuffix"] === undefined) {
            _this4.setState({
              pamIncludeSuffix: []
            });
          } else {
            var _iteratorNormalCompletion2 = true;
            var _didIteratorError2 = false;
            var _iteratorError2 = undefined;

            try {
              for (var _iterator2 = pamConfigEntry["pamincludesuffix"][Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
                var _value = _step2.value;
                pamIncludeSuffixList = _toConsumableArray(pamIncludeSuffixList).concat([{
                  id: _value,
                  label: _value
                }]);
              }
            } catch (err) {
              _didIteratorError2 = true;
              _iteratorError2 = err;
            } finally {
              try {
                if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
                  _iterator2.return();
                }
              } finally {
                if (_didIteratorError2) {
                  throw _iteratorError2;
                }
              }
            }

            _this4.setState({
              pamIncludeSuffix: pamIncludeSuffixList
            });
          }

          if (pamConfigEntry["pamidattr"] === undefined) {
            _this4.setState({
              pamIDAttr: []
            });
          } else {
            var _iteratorNormalCompletion3 = true;
            var _didIteratorError3 = false;
            var _iteratorError3 = undefined;

            try {
              for (var _iterator3 = pamConfigEntry["pamidattr"][Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
                var _value2 = _step3.value;
                pamIDAttrList = _toConsumableArray(pamIDAttrList).concat([{
                  id: _value2,
                  label: _value2
                }]);
              }
            } catch (err) {
              _didIteratorError3 = true;
              _iteratorError3 = err;
            } finally {
              try {
                if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
                  _iterator3.return();
                }
              } finally {
                if (_didIteratorError3) {
                  throw _iteratorError3;
                }
              }
            }

            _this4.setState({
              pamIDAttr: pamIDAttrList
            });
          }

          _this4.props.toggleLoadingHandler();
        }).fail(function (_) {
          _this4.setState({
            pamConfigEntryModalShow: true,
            newPAMConfigEntry: true,
            pamConfigName: "",
            pamExcludeSuffix: [],
            pamIncludeSuffix: [],
            pamMissingSuffix: "",
            pamFilter: "",
            pamIDAttr: [],
            pamIDMapMethod: "",
            pamFallback: false,
            pamSecure: false,
            pamService: ""
          });

          _this4.props.toggleLoadingHandler();
        });
      }
    }
  }, {
    key: "closePAMModal",
    value: function closePAMModal() {
      this.setState({
        pamConfigEntryModalShow: false
      });
    }
  }, {
    key: "deletePAMConfig",
    value: function deletePAMConfig(rowData) {
      var _this5 = this;

      var pamConfigName = rowData.cn[0];
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "pass-through-auth", "pam-config", pamConfigName, "delete"];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("deletePAMConfig", "Delete the PAM Passthough Authentication Plugin pamConfig entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("deletePAMConfig", "Result", content);

        _this5.props.addNotification("success", "PAMConfig entry ".concat(pamConfigName, " was successfully deleted"));

        _this5.loadPAMConfigs();

        _this5.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.props.addNotification("error", "Error during the pamConfig entry removal operation - ".concat(errMsg.desc));

        _this5.loadPAMConfigs();

        _this5.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "addPAMConfig",
    value: function addPAMConfig() {
      this.cmdPAMOperation("add");
    }
  }, {
    key: "editPAMConfig",
    value: function editPAMConfig() {
      this.cmdPAMOperation("set");
    }
  }, {
    key: "cmdPAMOperation",
    value: function cmdPAMOperation(action) {
      var _this6 = this;

      // Save table here too
      var _this$state = this.state,
          pamConfigName = _this$state.pamConfigName,
          pamExcludeSuffix = _this$state.pamExcludeSuffix,
          pamIncludeSuffix = _this$state.pamIncludeSuffix,
          pamMissingSuffix = _this$state.pamMissingSuffix,
          pamFilter = _this$state.pamFilter,
          pamIDAttr = _this$state.pamIDAttr,
          pamIDMapMethod = _this$state.pamIDMapMethod,
          pamFallback = _this$state.pamFallback,
          pamSecure = _this$state.pamSecure,
          pamService = _this$state.pamService;
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "pass-through-auth", "pam-config", pamConfigName, action, "--missing-suffix", pamMissingSuffix || action == "add" ? pamMissingSuffix : "delete", "--filter", pamFilter || action == "add" ? pamFilter : "delete", "--id_map_method", pamIDMapMethod || action == "add" ? pamIDMapMethod : "delete", "--fallback", pamFallback ? "TRUE" : "FALSE", "--secure", pamSecure ? "TRUE" : "FALSE", "--service", pamService || action == "add" ? pamService : "delete"];
      cmd = _toConsumableArray(cmd).concat(["--exclude-suffix"]);

      if (pamExcludeSuffix.length != 0) {
        var _iteratorNormalCompletion4 = true;
        var _didIteratorError4 = false;
        var _iteratorError4 = undefined;

        try {
          for (var _iterator4 = pamExcludeSuffix[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {
            var value = _step4.value;
            cmd = _toConsumableArray(cmd).concat([value.label]);
          }
        } catch (err) {
          _didIteratorError4 = true;
          _iteratorError4 = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion4 && _iterator4.return != null) {
              _iterator4.return();
            }
          } finally {
            if (_didIteratorError4) {
              throw _iteratorError4;
            }
          }
        }
      } else if (action == "add") {
        cmd = _toConsumableArray(cmd).concat([""]);
      } else {
        cmd = _toConsumableArray(cmd).concat(["delete"]);
      }

      cmd = _toConsumableArray(cmd).concat(["--include-suffix"]);

      if (pamIncludeSuffix.length != 0) {
        var _iteratorNormalCompletion5 = true;
        var _didIteratorError5 = false;
        var _iteratorError5 = undefined;

        try {
          for (var _iterator5 = pamIncludeSuffix[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) {
            var _value3 = _step5.value;
            cmd = _toConsumableArray(cmd).concat([_value3.label]);
          }
        } catch (err) {
          _didIteratorError5 = true;
          _iteratorError5 = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion5 && _iterator5.return != null) {
              _iterator5.return();
            }
          } finally {
            if (_didIteratorError5) {
              throw _iteratorError5;
            }
          }
        }
      } else if (action == "add") {
        cmd = _toConsumableArray(cmd).concat([""]);
      } else {
        cmd = _toConsumableArray(cmd).concat(["delete"]);
      }

      cmd = _toConsumableArray(cmd).concat(["--id-attr"]);

      if (pamIDAttr.length != 0) {
        var _iteratorNormalCompletion6 = true;
        var _didIteratorError6 = false;
        var _iteratorError6 = undefined;

        try {
          for (var _iterator6 = pamIDAttr[Symbol.iterator](), _step6; !(_iteratorNormalCompletion6 = (_step6 = _iterator6.next()).done); _iteratorNormalCompletion6 = true) {
            var _value4 = _step6.value;
            cmd = _toConsumableArray(cmd).concat([_value4.label]);
          }
        } catch (err) {
          _didIteratorError6 = true;
          _iteratorError6 = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion6 && _iterator6.return != null) {
              _iterator6.return();
            }
          } finally {
            if (_didIteratorError6) {
              throw _iteratorError6;
            }
          }
        }
      } else if (action == "add") {
        cmd = _toConsumableArray(cmd).concat([""]);
      } else {
        cmd = _toConsumableArray(cmd).concat(["delete"]);
      }

      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("pamPassthroughAuthOperation", "Do the ".concat(action, " operation on the PAM Passthough Authentication Plugin"), cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("pamPassthroughAuthOperation", "Result", content);

        _this6.props.addNotification("success", "The ".concat(action, " operation was successfully done on \"").concat(pamConfigName, "\" entry"));

        _this6.loadPAMConfigs();

        _this6.closePAMModal();

        _this6.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this6.props.addNotification("error", "Error during the pamConfig entry ".concat(action, " operation - ").concat(errMsg.desc));

        _this6.loadPAMConfigs();

        _this6.closePAMModal();

        _this6.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "showEditURLModal",
    value: function showEditURLModal(rowData) {
      this.openURLModal(rowData.url);
    }
  }, {
    key: "showAddURLModal",
    value: function showAddURLModal(rowData) {
      this.openURLModal();
    }
  }, {
    key: "openURLModal",
    value: function openURLModal(url) {
      if (!url) {
        this.setState({
          urlEntryModalShow: true,
          newURLEntry: true,
          oldURL: "",
          urlConnType: "ldap",
          urlAuthDS: "",
          urlSubtree: "",
          urlMaxConns: "3",
          urlMaxOps: "5",
          urlTimeout: "300",
          urlLDVer: "3",
          urlConnLifeTime: "300",
          urlStartTLS: false
        });
      } else {
        var link = url.split(" ")[0];
        var params = url.split(" ")[1];
        this.setState({
          urlEntryModalShow: true,
          oldURL: url,
          newURLEntry: false,
          urlConnType: link.split(":")[0],
          urlAuthDS: link.split("/")[2],
          urlSubtree: link.split("/")[3],
          urlMaxConns: params.split(",")[0],
          urlMaxOps: params.split(",")[1],
          urlTimeout: params.split(",")[2],
          urlLDVer: params.split(",")[3],
          urlConnLifeTime: params.split(",")[4],
          urlStartTLS: !(params.split(",")[5] == "0")
        });
      }
    }
  }, {
    key: "closeURLModal",
    value: function closeURLModal() {
      this.setState({
        urlEntryModalShow: false
      });
    }
  }, {
    key: "deleteURL",
    value: function deleteURL(rowData) {
      var _this7 = this;

      var url = rowData.url;
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "pass-through-auth", "url", "delete", url];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("deleteURL", "Delete the Passthough Authentication Plugin URL entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("deleteURL", "Result", content);

        _this7.props.addNotification("success", "URL ".concat(url, " was successfully deleted"));

        _this7.loadURLs();

        _this7.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this7.props.addNotification("error", "Error during the URL removal operation - ".concat(errMsg.desc));

        _this7.loadURLs();

        _this7.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "addURL",
    value: function addURL() {
      this.cmdURLOperation("add");
    }
  }, {
    key: "editURL",
    value: function editURL() {
      this.cmdURLOperation("modify");
    }
  }, {
    key: "cmdURLOperation",
    value: function cmdURLOperation(action) {
      var _this8 = this;

      var _this$state2 = this.state,
          oldURL = _this$state2.oldURL,
          urlConnType = _this$state2.urlConnType,
          urlAuthDS = _this$state2.urlAuthDS,
          urlSubtree = _this$state2.urlSubtree,
          urlMaxConns = _this$state2.urlMaxConns,
          urlMaxOps = _this$state2.urlMaxOps,
          urlTimeout = _this$state2.urlTimeout,
          urlLDVer = _this$state2.urlLDVer,
          urlConnLifeTime = _this$state2.urlConnLifeTime,
          urlStartTLS = _this$state2.urlStartTLS;

      if (!urlAuthDS || !urlSubtree) {
        this.props.addNotification("warning", "Authentication Hostname and Subtree fields are required.");
      } else {
        var constructedURL = "".concat(urlConnType, "://").concat(urlAuthDS, "/").concat(urlSubtree, " ").concat(urlMaxConns, ",").concat(urlMaxOps, ",").concat(urlTimeout, ",").concat(urlLDVer, ",").concat(urlConnLifeTime, ",").concat(urlStartTLS ? "1" : "0");
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "pass-through-auth", "url", action];

        if (oldURL != "" && action == "modify") {
          cmd = _toConsumableArray(cmd).concat([oldURL, constructedURL]);
        } else {
          cmd = _toConsumableArray(cmd).concat([constructedURL]);
        }

        this.props.toggleLoadingHandler();
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("PassthroughAuthOperation", "Do the ".concat(action, " operation on the Passthough Authentication Plugin"), cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          console.info("PassthroughAuthOperation", "Result", content);

          _this8.props.addNotification("success", "The ".concat(action, " operation was successfully done on \"").concat(constructedURL, "\" entry"));

          _this8.loadURLs();

          _this8.closeURLModal();

          _this8.props.toggleLoadingHandler();
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this8.props.addNotification("error", "Error during the URL ".concat(action, " operation - ").concat(errMsg.desc));

          _this8.loadURLs();

          _this8.closeURLModal();

          _this8.props.toggleLoadingHandler();
        });
      }
    }
  }, {
    key: "getAttributes",
    value: function getAttributes() {
      var _this9 = this;

      var attr_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "list"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("getAttributes", "Get attrs", attr_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(attr_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var attrContent = JSON.parse(content);
        var attrs = [];
        var _iteratorNormalCompletion7 = true;
        var _didIteratorError7 = false;
        var _iteratorError7 = undefined;

        try {
          for (var _iterator7 = attrContent["items"][Symbol.iterator](), _step7; !(_iteratorNormalCompletion7 = (_step7 = _iterator7.next()).done); _iteratorNormalCompletion7 = true) {
            var _content = _step7.value;
            attrs.push({
              id: _content.name,
              label: _content.name
            });
          }
        } catch (err) {
          _didIteratorError7 = true;
          _iteratorError7 = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion7 && _iterator7.return != null) {
              _iterator7.return();
            }
          } finally {
            if (_didIteratorError7) {
              throw _iteratorError7;
            }
          }
        }

        _this9.setState({
          attributes: attrs
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this9.props.addNotification("error", "Failed to get attributes - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this10 = this;

      var _this$state3 = this.state,
          urlRows = _this$state3.urlRows,
          pamConfigRows = _this$state3.pamConfigRows,
          attributes = _this$state3.attributes,
          pamConfigName = _this$state3.pamConfigName,
          pamMissingSuffix = _this$state3.pamMissingSuffix,
          pamExcludeSuffix = _this$state3.pamExcludeSuffix,
          pamIncludeSuffix = _this$state3.pamIncludeSuffix,
          pamFilter = _this$state3.pamFilter,
          pamIDAttr = _this$state3.pamIDAttr,
          pamIDMapMethod = _this$state3.pamIDMapMethod,
          pamFallback = _this$state3.pamFallback,
          pamSecure = _this$state3.pamSecure,
          pamService = _this$state3.pamService,
          urlConnType = _this$state3.urlConnType,
          urlLDVer = _this$state3.urlLDVer,
          urlAuthDS = _this$state3.urlAuthDS,
          urlSubtree = _this$state3.urlSubtree,
          urlMaxConns = _this$state3.urlMaxConns,
          urlMaxOps = _this$state3.urlMaxOps,
          urlTimeout = _this$state3.urlTimeout,
          urlConnLifeTime = _this$state3.urlConnLifeTime,
          urlStartTLS = _this$state3.urlStartTLS,
          newPAMConfigEntry = _this$state3.newPAMConfigEntry,
          newURLEntry = _this$state3.newURLEntry,
          pamConfigEntryModalShow = _this$state3.pamConfigEntryModalShow,
          urlEntryModalShow = _this$state3.urlEntryModalShow;
      var modalPAMConfigFields = {
        pamFilter: {
          name: "Filter",
          value: pamFilter,
          help: "Sets an LDAP filter to use to identify specific entries within the included suffixes for which to use PAM pass-through authentication (pamFilter)"
        },
        pamIDMapMethod: {
          name: "Map Method",
          value: pamIDMapMethod,
          help: "Gives the method to use to map the LDAP bind DN to a PAM identity (pamIDMapMethod)"
        },
        pamService: {
          name: "Service",
          value: pamService,
          help: "Contains the service name to pass to PAM (pamService)"
        }
      };
      var modalURLFields = {
        urlAuthDS: {
          name: "Authentication Hostname",
          value: urlAuthDS,
          help: "The authenticating directory host name. The port number of the Directory Server can be given by adding a colon and then the port number. For example, dirserver.example.com:389. If the port number is not specified, the PTA server attempts to connect using either of the standard ports: Port 389 if ldap:// is specified in the URL. Port 636 if ldaps:// is specified in the URL."
        },
        urlSubtree: {
          name: "Subtree",
          value: urlSubtree,
          help: "The pass-through subtree. The PTA Directory Server passes through bind requests to the authenticating Directory Server from all clients whose DN is in this subtree."
        },
        urlMaxConns: {
          name: "Maximum Number of Connections",
          value: urlMaxConns,
          help: "The maximum number of connections the PTA directory can simultaneously open to the authenticating directory."
        },
        urlMaxOps: {
          name: "Maximum Number of Simultaneous Operations",
          value: urlMaxOps,
          help: "The maximum number of simultaneous operations (usually bind requests) the PTA directory can send to the authenticating directory within a single connection."
        },
        urlTimeout: {
          name: "Timeout",
          value: urlTimeout,
          help: "The time limit, in seconds, that the PTA directory waits for a response from the authenticating Directory Server. If this timeout is exceeded, the server returns an error to the client. The default is 300 seconds (five minutes). Specify zero (0) to indicate no time limit should be enforced."
        },
        urlConnLifeTime: {
          name: "Connection Life Time",
          value: urlConnLifeTime,
          help: "The time limit, in seconds, within which a connection may be used."
        }
      };
      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: pamConfigEntryModalShow,
        onHide: this.closePAMModal
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.closePAMModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, newPAMConfigEntry ? "Add" : "Edit", " PAM Passthough Authentication Plugin Config Entry")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "pamConfigName",
        controlId: "pamConfigName"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], null, "Config Name")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        required: true,
        type: "text",
        value: pamConfigName,
        onChange: this.handleFieldChange,
        disabled: !newPAMConfigEntry
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "pamExcludeSuffix",
        controlId: "pamExcludeSuffix",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies a suffix to exclude from PAM authentication (pamExcludeSuffix)"
      }, "Exclude Suffix"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(values) {
          _this10.setState({
            pamExcludeSuffix: values
          });
        },
        selected: pamExcludeSuffix,
        options: [""],
        newSelectionPrefix: "Add a suffix: ",
        placeholder: "Type a suffix DN..."
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "pamIncludeSuffix",
        controlId: "pamIncludeSuffix",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Sets a suffix to include for PAM authentication (pamIncludeSuffix)"
      }, "Include Suffix"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(values) {
          _this10.setState({
            pamIncludeSuffix: values
          });
        },
        selected: pamIncludeSuffix,
        options: [""],
        newSelectionPrefix: "Add a suffix: ",
        placeholder: "Type a suffix DN..."
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "pamIDAttr",
        controlId: "pamIDAttr",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "Contains the attribute name which is used to hold the PAM user ID (pamIDAttr)"
      }, "ID Attribute")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(value) {
          _this10.setState({
            pamIDAttr: value
          });
        },
        selected: pamIDAttr,
        options: attributes,
        newSelectionPrefix: "Add an attribute: ",
        placeholder: "Type an attribute..."
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "pamMissingSuffix",
        controlId: "pamMissingSuffix",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Identifies how to handle missing include or exclude suffixes (pamMissingSuffix)"
      }, "Missing Suffix"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Radio"], {
        id: "pamMissingSuffix",
        value: "ERROR",
        name: "ERROR",
        inline: true,
        checked: pamMissingSuffix === "ERROR",
        onChange: this.handleFieldChange
      }, "ERROR"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Radio"], {
        id: "pamMissingSuffix",
        value: "ALLOW",
        name: "ALLOW",
        inline: true,
        checked: pamMissingSuffix === "ALLOW",
        onChange: this.handleFieldChange
      }, "ALLOW"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Radio"], {
        id: "pamMissingSuffix",
        value: "IGNORE",
        name: "IGNORE",
        inline: true,
        checked: pamMissingSuffix === "IGNORE",
        onChange: this.handleFieldChange
      }, "IGNORE")))), Object.entries(modalPAMConfigFields).map(function (_ref) {
        var _ref2 = _slicedToArray(_ref, 2),
            id = _ref2[0],
            content = _ref2[1];

        return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
          key: id,
          controlId: id
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 3
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
          title: content.help
        }, content.name)), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 9
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
          type: "text",
          value: content.value,
          onChange: _this10.handleFieldChange
        })));
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "pamCheckboxes",
        controlId: "pamCheckboxes"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Checkbox"], {
        id: "pamFallback",
        checked: pamFallback,
        onChange: this.handleCheckboxChange,
        title: "Sets whether to fallback to regular LDAP authentication if PAM authentication fails (pamFallback)"
      }, "Fallback")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Checkbox"], {
        id: "pamSecure",
        checked: pamSecure,
        onChange: this.handleCheckboxChange,
        title: "Requires secure TLS connection for PAM authentication (pamSecure)"
      }, "Secure"))))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.closePAMModal
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: newPAMConfigEntry ? this.addPAMConfig : this.editPAMConfig
      }, "Save")))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: urlEntryModalShow,
        onHide: this.closeURLModal
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.closeURLModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, newPAMConfigEntry ? "Add" : "Edit", "Passthough Authentication Plugin URL")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "urlConnType",
        controlId: "urlConnType",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 5,
        title: "Defines whether TLS is used for communication between the two Directory Servers."
      }, "Connection Type"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 7
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Radio"], {
        id: "urlConnType",
        value: "ldap",
        name: "ldap",
        inline: true,
        checked: urlConnType === "ldap",
        onChange: this.handleFieldChange
      }, "ldap"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Radio"], {
        id: "urlConnType",
        value: "ldaps",
        name: "ldaps",
        inline: true,
        checked: urlConnType === "ldaps",
        onChange: this.handleFieldChange
      }, "ldaps")))), Object.entries(modalURLFields).map(function (_ref3) {
        var _ref4 = _slicedToArray(_ref3, 2),
            id = _ref4[0],
            content = _ref4[1];

        return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
          key: id,
          controlId: id
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 5
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
          title: content.help
        }, content.name)), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 7
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
          type: "text",
          value: content.value,
          onChange: _this10.handleFieldChange
        })));
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "urlLDVer",
        controlId: "urlLDVer",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 5,
        title: "The version of the LDAP protocol used to connect to the authenticating directory. Directory Server supports LDAP version 2 and 3. The default is version 3, and Red Hat strongly recommends against using LDAPv2, which is old and will be deprecated."
      }, "Version"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 7
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Radio"], {
        id: "urlLDVer",
        value: "2",
        name: "LDAPv2",
        inline: true,
        checked: urlLDVer === "2",
        onChange: this.handleFieldChange
      }, "LDAPv2"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Radio"], {
        id: "urlLDVer",
        value: "3",
        name: "LDAPv3",
        inline: true,
        checked: urlLDVer === "3",
        onChange: this.handleFieldChange
      }, "LDAPv3")))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "urlStartTLS",
        controlId: "urlStartTLS"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Checkbox"], {
        id: "urlStartTLS",
        checked: urlStartTLS,
        onChange: this.handleCheckboxChange,
        title: "A flag of whether to use Start TLS for the connection to the authenticating directory. Start TLS establishes a secure connection over the standard port, so it is useful for connecting using LDAP instead of LDAPS. The TLS server and CA certificates need to be available on both of the servers. To use Start TLS, the LDAP URL must use ldap:, not ldaps:."
      }, "Enable StartTLS"))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "resultURL",
        controlId: "resultURL"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 5
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "The URL that will be added or modified after you click 'Save'"
      }, "Result URL")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 7
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], null, urlConnType, "://", urlAuthDS, "/", urlSubtree, " ", urlMaxConns, ",", urlMaxOps, ",", urlTimeout, ",", urlLDVer, ",", urlConnLifeTime, ",", urlStartTLS ? "1" : "0"))))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.closeURLModal
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: newURLEntry ? this.addURL : this.editURL
      }, "Save")))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__["default"], {
        rows: this.props.rows,
        serverId: this.props.serverId,
        cn: "Pass Through Authentication",
        pluginName: "Pass Through Authentication",
        cmdName: "pass-through-auth",
        savePluginHandler: this.props.savePluginHandler,
        pluginListHandler: this.props.pluginListHandler,
        addNotification: this.props.addNotification,
        toggleLoadingHandler: this.props.toggleLoadingHandler
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_4__["PassthroughAuthURLsTable"], {
        rows: urlRows,
        editConfig: this.showEditURLModal,
        deleteConfig: this.deleteURL
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        className: "ds-margin-top",
        bsStyle: "primary",
        onClick: this.showAddURLModal
      }, "Add URL"))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_4__["PassthroughAuthConfigsTable"], {
        rows: pamConfigRows,
        editConfig: this.showEditPAMConfigModal,
        deleteConfig: this.deletePAMConfig
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        className: "ds-margin-top",
        bsStyle: "primary",
        onClick: this.showAddPAMConfigModal
      }, "Add Config")))));
    }
  }]);

  return PassthroughAuthentication;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

PassthroughAuthentication.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  savePluginHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  pluginListHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  toggleLoadingHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func
};
PassthroughAuthentication.defaultProps = {
  rows: [],
  serverId: "",
  savePluginHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  pluginListHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  toggleLoadingHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (PassthroughAuthentication);

/***/ }),

/***/ "./src/lib/plugins/pluginBasicConfig.jsx":
/*!***********************************************!*\
  !*** ./src/lib/plugins/pluginBasicConfig.jsx ***!
  \***********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _customCollapse_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../customCollapse.jsx */ "./src/lib/customCollapse.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_6__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }

function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }









var PluginBasicConfig =
/*#__PURE__*/
function (_React$Component) {
  _inherits(PluginBasicConfig, _React$Component);

  _createClass(PluginBasicConfig, [{
    key: "componentWillMount",
    value: function componentWillMount(prevProps) {
      this.updateFields();
    }
  }, {
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps) {
      if (this.props.rows !== prevProps.rows) {
        this.updateFields();
      }
    }
  }]);

  function PluginBasicConfig(props) {
    var _this;

    _classCallCheck(this, PluginBasicConfig);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(PluginBasicConfig).call(this, props));
    _this.updateFields = _this.updateFields.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.updateSwitch = _this.updateSwitch.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.state = {
      disableSwitch: false,
      currentPluginEnabled: true,
      currentPluginType: "",
      currentPluginPath: "",
      currentPluginInitfunc: "",
      currentPluginId: "",
      currentPluginVendor: "",
      currentPluginVersion: "",
      currentPluginDescription: "",
      currentPluginDependsOnType: "",
      currentPluginDependsOnNamed: "",
      currentPluginPrecedence: ""
    };
    return _this;
  }

  _createClass(PluginBasicConfig, [{
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.value));
    }
  }, {
    key: "handleSwitchChange",
    value: function handleSwitchChange(value) {
      var _this2 = this;

      var _this$props = this.props,
          pluginName = _this$props.pluginName,
          cmdName = _this$props.cmdName,
          serverId = _this$props.serverId,
          pluginListHandler = _this$props.pluginListHandler,
          addNotification = _this$props.addNotification,
          toggleLoadingHandler = _this$props.toggleLoadingHandler;
      var new_status = this.state.currentPluginEnabled ? "disable" : "enable";
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + serverId + ".socket", "plugin", cmdName, new_status];
      toggleLoadingHandler();
      this.setState({
        disableSwitch: true
      });
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("handleSwitchChange", "Switch plugin states from the plugin tab", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("savePlugin", "Result", content);
        pluginListHandler();
        addNotification("success", "".concat(pluginName, " plugin was successfully ").concat(new_status, "d.\n                        Please, restart the instance."));
        toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        addNotification("error", "Error during ".concat(pluginName, " plugin modification - ").concat(errMsg.desc));
        toggleLoadingHandler();

        _this2.setState({
          disableSwitch: false
        });
      });
    }
  }, {
    key: "updateFields",
    value: function updateFields() {
      var _this3 = this;

      if (this.props.rows.length > 0) {
        var pluginRow = this.props.rows.find(function (row) {
          return row.cn[0] === _this3.props.cn;
        });
        this.setState({
          currentPluginType: pluginRow["nsslapd-pluginType"][0],
          currentPluginPath: pluginRow["nsslapd-pluginPath"][0],
          currentPluginInitfunc: pluginRow["nsslapd-pluginInitfunc"][0],
          currentPluginId: pluginRow["nsslapd-pluginId"][0],
          currentPluginVendor: pluginRow["nsslapd-pluginVendor"][0],
          currentPluginVersion: pluginRow["nsslapd-pluginVersion"][0],
          currentPluginDescription: pluginRow["nsslapd-pluginDescription"][0],
          currentPluginDependsOnType: pluginRow["nsslapd-plugin-depends-on-type"] === undefined ? "" : pluginRow["nsslapd-plugin-depends-on-type"][0],
          currentPluginDependsOnNamed: pluginRow["nsslapd-plugin-depends-on-named"] === undefined ? "" : pluginRow["nsslapd-plugin-depends-on-named"][0],
          currentPluginPrecedence: pluginRow["nsslapd-pluginprecedence"] === undefined ? "" : pluginRow["nsslapd-pluginprecedence"][0]
        });
      }

      this.updateSwitch();
    }
  }, {
    key: "updateSwitch",
    value: function updateSwitch() {
      var _this4 = this;

      if (this.props.rows.length > 0) {
        var pluginRow = this.props.rows.find(function (row) {
          return row.cn[0] === _this4.props.cn;
        });
        var pluginEnabled;

        if (pluginRow["nsslapd-pluginEnabled"][0] === "on") {
          pluginEnabled = true;
        } else if (pluginRow["nsslapd-pluginEnabled"][0] === "off") {
          pluginEnabled = false;
        } else {
          console.error("openPluginModal failed", "wrong nsslapd-pluginenabled attribute value", pluginRow["nsslapd-pluginEnabled"][0]);
        }

        this.setState({
          currentPluginEnabled: pluginEnabled,
          disableSwitch: false
        });
      }
    }
  }, {
    key: "render",
    value: function render() {
      var _this5 = this;

      var _this$state = this.state,
          currentPluginEnabled = _this$state.currentPluginEnabled,
          currentPluginType = _this$state.currentPluginType,
          currentPluginPath = _this$state.currentPluginPath,
          currentPluginInitfunc = _this$state.currentPluginInitfunc,
          currentPluginId = _this$state.currentPluginId,
          currentPluginVendor = _this$state.currentPluginVendor,
          currentPluginVersion = _this$state.currentPluginVersion,
          currentPluginDescription = _this$state.currentPluginDescription,
          currentPluginDependsOnType = _this$state.currentPluginDependsOnType,
          currentPluginDependsOnNamed = _this$state.currentPluginDependsOnNamed,
          currentPluginPrecedence = _this$state.currentPluginPrecedence,
          disableSwitch = _this$state.disableSwitch;
      var modalFieldsCol1 = {
        currentPluginType: this.state.currentPluginType,
        currentPluginPath: this.state.currentPluginPath,
        currentPluginInitfunc: this.state.currentPluginInitfunc
      };
      var modalFieldsCol2 = {
        currentPluginVendor: this.state.currentPluginVendor,
        currentPluginVersion: this.state.currentPluginVersion,
        currentPluginDescription: this.state.currentPluginDescription,
        currentPluginId: this.state.currentPluginId,
        currentPluginPrecedence: this.state.currentPluginPrecedence
      };
      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        inline: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6,
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h3", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        className: "ds-plugin-tab-header"
      }, this.props.pluginName))), this.props.removeSwitch || react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        smOffset: 1,
        sm: 4,
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "switchPluginStatus",
        controlId: "switchPluginStatus"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        className: "toolbar-pf-find ds-float-left ds-right-indent"
      }, "Status"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Switch"], {
        bsSize: "normal",
        title: "normal",
        id: "bsSize-example",
        value: currentPluginEnabled,
        onChange: function onChange() {
          return _this5.handleSwitchChange(currentPluginEnabled);
        },
        animate: false,
        disabled: disableSwitch
      }))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top"
      }, this.props.children), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_customCollapse_jsx__WEBPACK_IMPORTED_MODULE_4__["default"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, Object.entries(modalFieldsCol1).map(function (_ref) {
        var _ref2 = _slicedToArray(_ref, 2),
            id = _ref2[0],
            value = _ref2[1];

        return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
          key: id,
          controlId: id,
          disabled: false
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
          sm: 3
        }, _this5.props.memberOfAttr, " Plugin", " ", id.replace("currentPlugin", "")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 6
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
          type: "text",
          value: value,
          onChange: _this5.handleFieldChange
        })));
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "currentPluginDependsOnType",
        controlId: "currentPluginDependsOnType",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Plugin Depends On Type"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: this.state.currentPluginDependsOnType,
        onChange: this.handleFieldChange
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "currentPluginDependsOnNamed",
        controlId: "currentPluginDependsOnNamed",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Plugin Depends On Named"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: this.state.currentPluginDependsOnNamed,
        onChange: this.handleFieldChange
      }))), Object.entries(modalFieldsCol2).map(function (_ref3) {
        var _ref4 = _slicedToArray(_ref3, 2),
            id = _ref4[0],
            value = _ref4[1];

        return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
          key: id,
          controlId: id,
          disabled: false
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
          sm: 3
        }, "Plugin ", id.replace("currentPlugin", "")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 6
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
          type: "text",
          value: value,
          onChange: _this5.handleFieldChange
        })));
      }))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top-lg"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 1
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: function onClick() {
          return _this5.props.savePluginHandler({
            name: _this5.props.cn,
            type: currentPluginType,
            path: currentPluginPath,
            initfunc: currentPluginInitfunc,
            id: currentPluginId,
            vendor: currentPluginVendor,
            version: currentPluginVersion,
            description: currentPluginDescription,
            dependsOnType: currentPluginDependsOnType,
            dependsOnNamed: currentPluginDependsOnNamed,
            precedence: currentPluginPrecedence,
            specificPluginCMD: _this5.props.specificPluginCMD
          });
        }
      }, "Save Config"))));
    }
  }]);

  return PluginBasicConfig;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

PluginBasicConfig.propTypes = {
  children: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.any.isRequired,
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  cn: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  pluginName: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  cmdName: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  removeSwitch: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
  specificPluginCMD: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  savePluginHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  pluginListHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  toggleLoadingHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
PluginBasicConfig.defaultProps = {
  rows: [],
  serverId: "",
  cn: "",
  pluginName: "",
  cmdName: "",
  removeSwitch: false,
  specificPluginCMD: [],
  savePluginHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  pluginListHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  toggleLoadingHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (PluginBasicConfig);

/***/ }),

/***/ "./src/lib/plugins/pluginModal.jsx":
/*!*****************************************!*\
  !*** ./src/lib/plugins/pluginModal.jsx ***!
  \*****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_3__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }

function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }






var PluginEditModal =
/*#__PURE__*/
function (_React$Component) {
  _inherits(PluginEditModal, _React$Component);

  function PluginEditModal() {
    _classCallCheck(this, PluginEditModal);

    return _possibleConstructorReturn(this, _getPrototypeOf(PluginEditModal).apply(this, arguments));
  }

  _createClass(PluginEditModal, [{
    key: "render",
    value: function render() {
      var _this$props = this.props,
          showModal = _this$props.showModal,
          closeHandler = _this$props.closeHandler,
          handleChange = _this$props.handleChange,
          handleSwitchChange = _this$props.handleSwitchChange,
          savePluginHandler = _this$props.savePluginHandler;
      var _this$props$pluginDat = this.props.pluginData,
          currentPluginName = _this$props$pluginDat.currentPluginName,
          currentPluginEnabled = _this$props$pluginDat.currentPluginEnabled,
          currentPluginType = _this$props$pluginDat.currentPluginType,
          currentPluginPath = _this$props$pluginDat.currentPluginPath,
          currentPluginInitfunc = _this$props$pluginDat.currentPluginInitfunc,
          currentPluginId = _this$props$pluginDat.currentPluginId,
          currentPluginVendor = _this$props$pluginDat.currentPluginVendor,
          currentPluginVersion = _this$props$pluginDat.currentPluginVersion,
          currentPluginDescription = _this$props$pluginDat.currentPluginDescription,
          currentPluginDependsOnType = _this$props$pluginDat.currentPluginDependsOnType,
          currentPluginDependsOnNamed = _this$props$pluginDat.currentPluginDependsOnNamed,
          currentPluginPrecedence = _this$props$pluginDat.currentPluginPrecedence;
      var modalFields = {
        currentPluginType: currentPluginType,
        currentPluginPath: currentPluginPath,
        currentPluginInitfunc: currentPluginInitfunc,
        currentPluginId: currentPluginId,
        currentPluginVendor: currentPluginVendor,
        currentPluginVersion: currentPluginVersion,
        currentPluginDescription: currentPluginDescription,
        currentPluginPrecedence: currentPluginPrecedence
      };
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Edit Plugin - ", currentPluginName)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        key: "currentPluginEnabled",
        controlId: "currentPluginEnabled",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 5
      }, "Plugin Status"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 6
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Switch"], {
        bsSize: "normal",
        title: "normal",
        id: "pluginEnableSwitch",
        value: currentPluginEnabled,
        onChange: function onChange() {
          return handleSwitchChange(currentPluginEnabled);
        },
        animate: false
      }))), Object.entries(modalFields).map(function (_ref) {
        var _ref2 = _slicedToArray(_ref, 2),
            id = _ref2[0],
            value = _ref2[1];

        return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
          key: id,
          controlId: id,
          disabled: false
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
          sm: 5
        }, "Plugin ", id.replace("currentPlugin", "")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
          sm: 6
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
          type: "text",
          value: value,
          onChange: handleChange
        })));
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        key: "currentPluginDependsOnType",
        controlId: "currentPluginDependsOnType",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 5
      }, "Plugin Depends On Type"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 6
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        value: currentPluginDependsOnType,
        onChange: handleChange
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        key: "currentPluginDependsOnNamed",
        controlId: "currentPluginDependsOnNamed",
        disabled: false
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 5
      }, "Plugin Depends On Named"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 6
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        value: currentPluginDependsOnNamed,
        onChange: handleChange
      }))))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: function onClick() {
          return savePluginHandler({
            name: currentPluginName,
            enabled: currentPluginEnabled,
            type: currentPluginType,
            path: currentPluginPath,
            initfunc: currentPluginInitfunc,
            id: currentPluginId,
            vendor: currentPluginVendor,
            version: currentPluginVersion,
            description: currentPluginDescription,
            dependsOnType: currentPluginDependsOnType,
            dependsOnNamed: currentPluginDependsOnNamed,
            precedence: currentPluginPrecedence
          });
        }
      }, "Save"))));
    }
  }]);

  return PluginEditModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

PluginEditModal.propTypes = {
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleSwitchChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  pluginData: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.exact({
    currentPluginName: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
    currentPluginType: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
    currentPluginEnabled: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
    currentPluginPath: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
    currentPluginInitfunc: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
    currentPluginId: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
    currentPluginVendor: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
    currentPluginVersion: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
    currentPluginDescription: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
    currentPluginDependsOnType: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
    currentPluginDependsOnNamed: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
    currentPluginPrecedence: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
  }),
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  savePluginHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
PluginEditModal.defaultProps = {
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleSwitchChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  pluginData: {
    currentPluginName: "",
    currentPluginType: "",
    currentPluginEnabled: false,
    currentPluginPath: "",
    currentPluginInitfunc: "",
    currentPluginId: "",
    currentPluginVendor: "",
    currentPluginVersion: "",
    currentPluginDescription: "",
    currentPluginDependsOnType: "",
    currentPluginDependsOnNamed: "",
    currentPluginPrecedence: ""
  },
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  savePluginHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  showModal: false
};
/* harmony default export */ __webpack_exports__["default"] = (PluginEditModal);

/***/ }),

/***/ "./src/lib/plugins/pluginTables.jsx":
/*!******************************************!*\
  !*** ./src/lib/plugins/pluginTables.jsx ***!
  \******************************************/
/*! exports provided: PluginTable, AttrUniqConfigTable, LinkedAttributesTable, DNATable, DNASharedTable, AutoMembershipDefinitionTable, AutoMembershipRegexTable, ManagedEntriesTable, PassthroughAuthURLsTable, PassthroughAuthConfigsTable */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PluginTable", function() { return PluginTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AttrUniqConfigTable", function() { return AttrUniqConfigTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LinkedAttributesTable", function() { return LinkedAttributesTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DNATable", function() { return DNATable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DNASharedTable", function() { return DNASharedTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AutoMembershipDefinitionTable", function() { return AutoMembershipDefinitionTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AutoMembershipRegexTable", function() { return AutoMembershipRegexTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManagedEntriesTable", function() { return ManagedEntriesTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PassthroughAuthURLsTable", function() { return PassthroughAuthURLsTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PassthroughAuthConfigsTable", function() { return PassthroughAuthConfigsTable; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dsTable.jsx */ "./src/lib/dsTable.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_4__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }







var PluginTable =
/*#__PURE__*/
function (_React$Component) {
  _inherits(PluginTable, _React$Component);

  function PluginTable(props) {
    var _this;

    _classCallCheck(this, PluginTable);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(PluginTable).call(this, props));
    _this.state = {
      searchFilterValue: "",
      fieldsToSearch: ["cn", "nsslapd-pluginType"],
      columns: [{
        property: "cn",
        header: {
          label: "Plugin Name",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "nsslapd-pluginType",
        header: {
          label: "Plugin Type",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "nsslapd-pluginEnabled",
        header: {
          label: "Enabled",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          label: "Actions",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [function (value, _ref) {
            var rowData = _ref.rowData;
            return [react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.cn[0]
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
              onClick: function onClick() {
                _this.props.loadModalHandler(rowData);
              }
            }, "Edit Plugin"))];
          }]
        }
      }]
    };
    _this.getColumns = _this.getColumns.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(PluginTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
        getColumns: this.getColumns,
        fieldsToSearch: this.state.fieldsToSearch,
        rowKey: "cn",
        rows: this.props.rows,
        toolBarSearchField: "Plugins",
        toolBarDisableLoadingSpinner: true
      }));
    }
  }]);

  return PluginTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

PluginTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  loadModalHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
PluginTable.defaultProps = {
  rows: [],
  loadModalHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};

var AttrUniqConfigTable =
/*#__PURE__*/
function (_React$Component2) {
  _inherits(AttrUniqConfigTable, _React$Component2);

  function AttrUniqConfigTable(props) {
    var _this2;

    _classCallCheck(this, AttrUniqConfigTable);

    _this2 = _possibleConstructorReturn(this, _getPrototypeOf(AttrUniqConfigTable).call(this, props));
    _this2.getColumns = _this2.getColumns.bind(_assertThisInitialized(_assertThisInitialized(_this2)));
    _this2.state = {
      searchField: "Configs",
      fieldsToSearch: ["cn", "uniqueness-attribute-name"],
      columns: [{
        property: "cn",
        header: {
          label: "Config Name",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "uniqueness-attribute-name",
        header: {
          label: "Attribute",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "nsslapd-pluginenabled",
        header: {
          label: "Enabled",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [function (value, _ref2) {
            var rowData = _ref2.rowData;
            return [react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.cn[0]
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.cn[0],
              bsStyle: "default",
              title: "Actions"
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this2.props.editConfig(rowData);
              }
            }, "Edit Config"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this2.props.deleteConfig(rowData);
              }
            }, "Delete Config")))];
          }]
        }
      }]
    };
    return _this2;
  }

  _createClass(AttrUniqConfigTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
        getColumns: this.getColumns,
        fieldsToSearch: this.state.fieldsToSearch,
        toolBarSearchField: this.state.searchField,
        rowKey: "cn",
        rows: this.props.rows,
        disableLoadingSpinner: true,
        toolBarPagination: [6, 12, 24, 48, 96],
        toolBarPaginationPerPage: 6
      }));
    }
  }]);

  return AttrUniqConfigTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

AttrUniqConfigTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  editConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  deleteConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
AttrUniqConfigTable.defaultProps = {
  rows: [],
  editConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  deleteConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};

var LinkedAttributesTable =
/*#__PURE__*/
function (_React$Component3) {
  _inherits(LinkedAttributesTable, _React$Component3);

  function LinkedAttributesTable(props) {
    var _this3;

    _classCallCheck(this, LinkedAttributesTable);

    _this3 = _possibleConstructorReturn(this, _getPrototypeOf(LinkedAttributesTable).call(this, props));
    _this3.getColumns = _this3.getColumns.bind(_assertThisInitialized(_assertThisInitialized(_this3)));
    _this3.state = {
      searchField: "Configs",
      fieldsToSearch: ["cn", "linkType", "managedType", "linkScope"],
      columns: [{
        property: "cn",
        header: {
          label: "Config Name",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "linktype",
        header: {
          label: "Link Type",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "managedtype",
        header: {
          label: "Managed Type",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "linkscope",
        header: {
          label: "Link Scope",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [function (value, _ref3) {
            var rowData = _ref3.rowData;
            return [react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.cn[0]
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.cn[0],
              bsStyle: "default",
              title: "Actions"
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this3.props.editConfig(rowData);
              }
            }, "Edit Config"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this3.props.deleteConfig(rowData);
              }
            }, "Delete Config")))];
          }]
        }
      }]
    };
    return _this3;
  }

  _createClass(LinkedAttributesTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
        getColumns: this.getColumns,
        fieldsToSearch: this.state.fieldsToSearch,
        toolBarSearchField: this.state.searchField,
        rowKey: "cn",
        rows: this.props.rows,
        disableLoadingSpinner: true,
        toolBarPagination: [6, 12, 24, 48, 96],
        toolBarPaginationPerPage: 6
      }));
    }
  }]);

  return LinkedAttributesTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

LinkedAttributesTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  editConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  deleteConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
LinkedAttributesTable.defaultProps = {
  rows: [],
  editConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  deleteConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};

var DNATable =
/*#__PURE__*/
function (_React$Component4) {
  _inherits(DNATable, _React$Component4);

  function DNATable(props) {
    var _this4;

    _classCallCheck(this, DNATable);

    _this4 = _possibleConstructorReturn(this, _getPrototypeOf(DNATable).call(this, props));
    _this4.getColumns = _this4.getColumns.bind(_assertThisInitialized(_assertThisInitialized(_this4)));
    _this4.state = {
      searchField: "Configs",
      fieldsToSearch: ["cn", "dnanextvalue", "dnafilter", "dnascope"],
      columns: [{
        property: "cn",
        header: {
          label: "Config Name",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "dnascope",
        header: {
          label: "Scope",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "dnafilter",
        header: {
          label: "Filter",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "dnanextvalue",
        header: {
          label: "Next Value",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [function (value, _ref4) {
            var rowData = _ref4.rowData;
            return [react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.cn[0]
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.cn[0],
              bsStyle: "default",
              title: "Actions"
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this4.props.editConfig(rowData);
              }
            }, "Edit Config"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this4.props.deleteConfig(rowData);
              }
            }, "Delete Config")))];
          }]
        }
      }]
    };
    return _this4;
  }

  _createClass(DNATable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
        getColumns: this.getColumns,
        fieldsToSearch: this.state.fieldsToSearch,
        toolBarSearchField: this.state.searchField,
        rowKey: "cn",
        rows: this.props.rows,
        disableLoadingSpinner: true,
        toolBarPagination: [6, 12, 24, 48, 96],
        toolBarPaginationPerPage: 6
      }));
    }
  }]);

  return DNATable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

DNATable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  editConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  deleteConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
DNATable.defaultProps = {
  rows: [],
  editConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  deleteConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};

var DNASharedTable =
/*#__PURE__*/
function (_React$Component5) {
  _inherits(DNASharedTable, _React$Component5);

  function DNASharedTable(props) {
    var _this5;

    _classCallCheck(this, DNASharedTable);

    _this5 = _possibleConstructorReturn(this, _getPrototypeOf(DNASharedTable).call(this, props));
    _this5.getColumns = _this5.getColumns.bind(_assertThisInitialized(_assertThisInitialized(_this5)));
    _this5.state = {
      searchField: "Configs",
      fieldsToSearch: ["dnahostname", "dnaportnum", "dnaremainingvalues"],
      columns: [{
        property: "dnahostname",
        header: {
          label: "Hostname",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "dnaportnum",
        header: {
          label: "Port",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "dnaremainingvalues",
        header: {
          label: "Remaining Values",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [function (value, _ref5) {
            var rowData = _ref5.rowData;
            return [react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.entrydn[0]
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.entrydn[0],
              bsStyle: "default",
              title: "Actions"
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this5.props.editConfig(rowData);
              }
            }, "Edit Config"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this5.props.deleteConfig(rowData);
              }
            }, "Delete Config")))];
          }]
        }
      }]
    };
    return _this5;
  }

  _createClass(DNASharedTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
        getColumns: this.getColumns,
        fieldsToSearch: this.state.fieldsToSearch,
        toolBarSearchField: this.state.searchField,
        rowKey: "entrydn",
        rows: this.props.rows,
        disableLoadingSpinner: true,
        toolBarPagination: [6, 12, 24, 48, 96],
        toolBarPaginationPerPage: 6
      }));
    }
  }]);

  return DNASharedTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

DNASharedTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  editConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  deleteConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
DNASharedTable.defaultProps = {
  rows: [],
  editConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  deleteConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};

var AutoMembershipDefinitionTable =
/*#__PURE__*/
function (_React$Component6) {
  _inherits(AutoMembershipDefinitionTable, _React$Component6);

  function AutoMembershipDefinitionTable(props) {
    var _this6;

    _classCallCheck(this, AutoMembershipDefinitionTable);

    _this6 = _possibleConstructorReturn(this, _getPrototypeOf(AutoMembershipDefinitionTable).call(this, props));
    _this6.getColumns = _this6.getColumns.bind(_assertThisInitialized(_assertThisInitialized(_this6)));
    _this6.state = {
      searchField: "Definitions",
      fieldsToSearch: ["cn", "automemberdefaultgroup", "automemberfilter", "automembergroupingattr", "automemberscope"],
      columns: [{
        property: "cn",
        header: {
          label: "Definition Name",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "automemberdefaultgroup",
        header: {
          label: "Default Group",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "automemberscope",
        header: {
          label: "Scope",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "automemberfilter",
        header: {
          label: "Filter",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [function (value, _ref6) {
            var rowData = _ref6.rowData;
            return [react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.cn[0]
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.cn[0],
              bsStyle: "default",
              title: "Actions"
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this6.props.editConfig(rowData);
              }
            }, "Edit Definition"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this6.props.deleteConfig(rowData);
              }
            }, "Delete Definition")))];
          }]
        }
      }]
    };
    return _this6;
  }

  _createClass(AutoMembershipDefinitionTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
        getColumns: this.getColumns,
        fieldsToSearch: this.state.fieldsToSearch,
        toolBarSearchField: this.state.searchField,
        rowKey: "cn",
        rows: this.props.rows,
        disableLoadingSpinner: true,
        toolBarPagination: [6, 12, 24, 48, 96],
        toolBarPaginationPerPage: 6
      }));
    }
  }]);

  return AutoMembershipDefinitionTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

AutoMembershipDefinitionTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  editConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  deleteConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
AutoMembershipDefinitionTable.defaultProps = {
  rows: [],
  editConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  deleteConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};

var AutoMembershipRegexTable =
/*#__PURE__*/
function (_React$Component7) {
  _inherits(AutoMembershipRegexTable, _React$Component7);

  function AutoMembershipRegexTable(props) {
    var _this7;

    _classCallCheck(this, AutoMembershipRegexTable);

    _this7 = _possibleConstructorReturn(this, _getPrototypeOf(AutoMembershipRegexTable).call(this, props));
    _this7.getColumns = _this7.getColumns.bind(_assertThisInitialized(_assertThisInitialized(_this7)));
    _this7.state = {
      searchField: "Configs",
      fieldsToSearch: ["cn", "automemberexclusiveregex", "automemberinclusiveregex", "automembertargetgroup"],
      columns: [{
        property: "cn",
        header: {
          label: "Config Name",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "automemberexclusiveregex",
        header: {
          label: "Exclusive Regex",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "automemberinclusiveregex",
        header: {
          label: "Inclusive Regex",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "automembertargetgroup",
        header: {
          label: "Target Group",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [function (value, _ref7) {
            var rowData = _ref7.rowData;
            return [react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.cn[0]
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.cn[0],
              bsStyle: "default",
              title: "Actions"
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this7.props.editConfig(rowData);
              }
            }, "Edit Regex"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this7.props.deleteConfig(rowData);
              }
            }, "Delete Regex")))];
          }]
        }
      }]
    };
    return _this7;
  }

  _createClass(AutoMembershipRegexTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
        getColumns: this.getColumns,
        fieldsToSearch: this.state.fieldsToSearch,
        toolBarSearchField: this.state.searchField,
        rowKey: "cn",
        rows: this.props.rows,
        disableLoadingSpinner: true,
        toolBarPagination: [6, 12, 24, 48, 96],
        toolBarPaginationPerPage: 6
      }));
    }
  }]);

  return AutoMembershipRegexTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

AutoMembershipRegexTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  editConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  deleteConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
AutoMembershipRegexTable.defaultProps = {
  rows: [],
  editConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  deleteConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};

var ManagedEntriesTable =
/*#__PURE__*/
function (_React$Component8) {
  _inherits(ManagedEntriesTable, _React$Component8);

  function ManagedEntriesTable(props) {
    var _this8;

    _classCallCheck(this, ManagedEntriesTable);

    _this8 = _possibleConstructorReturn(this, _getPrototypeOf(ManagedEntriesTable).call(this, props));
    _this8.getColumns = _this8.getColumns.bind(_assertThisInitialized(_assertThisInitialized(_this8)));
    _this8.state = {
      searchField: "Configs",
      fieldsToSearch: ["cn", "originscope", "originfilter", "managedbase"],
      columns: [{
        property: "cn",
        header: {
          label: "Config Name",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "originscope",
        header: {
          label: "Scope",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "originfilter",
        header: {
          label: "Filter",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "managedbase",
        header: {
          label: "Managed Base",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [function (value, _ref8) {
            var rowData = _ref8.rowData;
            return [react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.cn[0]
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.cn[0],
              bsStyle: "default",
              title: "Actions"
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this8.props.editConfig(rowData);
              }
            }, "Edit Config"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this8.props.deleteConfig(rowData);
              }
            }, "Delete Config")))];
          }]
        }
      }]
    };
    return _this8;
  }

  _createClass(ManagedEntriesTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
        getColumns: this.getColumns,
        fieldsToSearch: this.state.fieldsToSearch,
        toolBarSearchField: this.state.searchField,
        rowKey: "cn",
        rows: this.props.rows,
        disableLoadingSpinner: true,
        toolBarPagination: [6, 12, 24, 48, 96],
        toolBarPaginationPerPage: 6
      }));
    }
  }]);

  return ManagedEntriesTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

ManagedEntriesTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  editConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  deleteConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
ManagedEntriesTable.defaultProps = {
  rows: [],
  editConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  deleteConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};

var PassthroughAuthURLsTable =
/*#__PURE__*/
function (_React$Component9) {
  _inherits(PassthroughAuthURLsTable, _React$Component9);

  function PassthroughAuthURLsTable(props) {
    var _this9;

    _classCallCheck(this, PassthroughAuthURLsTable);

    _this9 = _possibleConstructorReturn(this, _getPrototypeOf(PassthroughAuthURLsTable).call(this, props));
    _this9.getColumns = _this9.getColumns.bind(_assertThisInitialized(_assertThisInitialized(_this9)));
    _this9.state = {
      searchField: "URLs",
      fieldsToSearch: ["url"],
      columns: [{
        property: "url",
        header: {
          label: "URL",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [function (value, _ref9) {
            var rowData = _ref9.rowData;
            return [react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.id[0]
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.id[0],
              bsStyle: "default",
              title: "Actions"
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this9.props.editConfig(rowData);
              }
            }, "Edit URL"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this9.props.deleteConfig(rowData);
              }
            }, "Delete URL")))];
          }]
        }
      }]
    };
    return _this9;
  }

  _createClass(PassthroughAuthURLsTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
        getColumns: this.getColumns,
        fieldsToSearch: this.state.fieldsToSearch,
        toolBarSearchField: this.state.searchField,
        rowKey: "id",
        rows: this.props.rows,
        disableLoadingSpinner: true,
        toolBarPagination: [6, 12, 24, 48, 96],
        toolBarPaginationPerPage: 6
      }));
    }
  }]);

  return PassthroughAuthURLsTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

PassthroughAuthURLsTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  editConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  deleteConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
PassthroughAuthURLsTable.defaultProps = {
  rows: [],
  editConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  deleteConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};

var PassthroughAuthConfigsTable =
/*#__PURE__*/
function (_React$Component10) {
  _inherits(PassthroughAuthConfigsTable, _React$Component10);

  function PassthroughAuthConfigsTable(props) {
    var _this10;

    _classCallCheck(this, PassthroughAuthConfigsTable);

    _this10 = _possibleConstructorReturn(this, _getPrototypeOf(PassthroughAuthConfigsTable).call(this, props));
    _this10.getColumns = _this10.getColumns.bind(_assertThisInitialized(_assertThisInitialized(_this10)));
    _this10.state = {
      searchField: "Configs",
      fieldsToSearch: ["cn", "pamfilter", "pamidattr", "pamidmapmethod"],
      columns: [{
        property: "cn",
        header: {
          label: "Config Name",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "pamidattr",
        header: {
          label: "Attribute",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "pamidmapmethod",
        header: {
          label: "Map Method",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "pamfilter",
        header: {
          label: "Filter",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [function (value, _ref10) {
            var rowData = _ref10.rowData;
            return [react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.cn[0]
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.cn[0],
              bsStyle: "default",
              title: "Actions"
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this10.props.editConfig(rowData);
              }
            }, "Edit Config"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this10.props.deleteConfig(rowData);
              }
            }, "Delete Config")))];
          }]
        }
      }]
    };
    return _this10;
  }

  _createClass(PassthroughAuthConfigsTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
        getColumns: this.getColumns,
        fieldsToSearch: this.state.fieldsToSearch,
        toolBarSearchField: this.state.searchField,
        rowKey: "cn",
        rows: this.props.rows,
        disableLoadingSpinner: true,
        toolBarPagination: [6, 12, 24, 48, 96],
        toolBarPaginationPerPage: 6
      }));
    }
  }]);

  return PassthroughAuthConfigsTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

PassthroughAuthConfigsTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  editConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  deleteConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
PassthroughAuthConfigsTable.defaultProps = {
  rows: [],
  editConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  deleteConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};


/***/ }),

/***/ "./src/lib/plugins/referentialIntegrity.jsx":
/*!**************************************************!*\
  !*** ./src/lib/plugins/referentialIntegrity.jsx ***!
  \**************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_7__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }










var ReferentialIntegrity =
/*#__PURE__*/
function (_React$Component) {
  _inherits(ReferentialIntegrity, _React$Component);

  _createClass(ReferentialIntegrity, [{
    key: "componentWillMount",
    value: function componentWillMount(prevProps) {
      this.getAttributes();
      this.updateFields();
    }
  }, {
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps) {
      if (this.props.rows !== prevProps.rows) {
        this.updateFields();
      }
    }
  }]);

  function ReferentialIntegrity(props) {
    var _this;

    _classCallCheck(this, ReferentialIntegrity);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(ReferentialIntegrity).call(this, props));
    _this.state = {
      updateDelay: "",
      membershipAttr: [],
      entryScope: "",
      excludeEntryScope: "",
      containerScope: "",
      logFile: "",
      referintConfigEntry: "",
      configEntryModalShow: false,
      configDN: "",
      configUpdateDelay: "",
      configMembershipAttr: [],
      configEntryScope: "",
      configExcludeEntryScope: "",
      configContainerScope: "",
      configLogFile: "",
      newEntry: true,
      attributes: []
    };
    _this.updateFields = _this.updateFields.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.getAttributes = _this.getAttributes.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.openModal = _this.openModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeModal = _this.closeModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.addConfig = _this.addConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.editConfig = _this.editConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.deleteConfig = _this.deleteConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.cmdOperation = _this.cmdOperation.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(ReferentialIntegrity, [{
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.value));
    }
  }, {
    key: "openModal",
    value: function openModal() {
      var _this2 = this;

      this.getAttributes();

      if (!this.state.referintConfigEntry) {
        this.setState({
          configEntryModalShow: true,
          newEntry: true,
          configDN: "",
          configUpdateDelay: "",
          configMembershipAttr: [],
          configEntryScope: "",
          configExcludeEntryScope: "",
          configContainerScope: "",
          configLogFile: ""
        });
      } else {
        var membershipAttrList = [];
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "referential-integrity", "config-entry", "show", this.state.referintConfigEntry];
        this.props.toggleLoadingHandler();
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("openModal", "Fetch the Referential Integrity Plugin config entry", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          var pluginRow = JSON.parse(content).attrs;

          _this2.setState({
            configEntryModalShow: true,
            newEntry: false,
            configDN: _this2.state.referintConfigEntry,
            configUpdateDelay: pluginRow["referint-update-delay"] === undefined ? "" : pluginRow["referint-update-delay"][0],
            configEntryScope: pluginRow["nsslapd-pluginentryscope"] === undefined ? "" : pluginRow["nsslapd-pluginentryscope"][0],
            configExcludeEntryScope: pluginRow["nsslapd-pluginexcludeentryscope"] === undefined ? "" : pluginRow["nsslapd-pluginexcludeentryscope"][0],
            configContainerScope: pluginRow["nsslapd-plugincontainerscope"] === undefined ? "" : pluginRow["nsslapd-plugincontainerscope"][0],
            configLogFile: pluginRow["referint-logfile"] === undefined ? "" : pluginRow["referint-logfile"][0]
          });

          if (pluginRow["referint-membership-attr"] === undefined) {
            _this2.setState({
              configMembershipAttr: []
            });
          } else {
            var _iteratorNormalCompletion = true;
            var _didIteratorError = false;
            var _iteratorError = undefined;

            try {
              for (var _iterator = pluginRow["referint-membership-attr"][Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
                var value = _step.value;
                membershipAttrList = _toConsumableArray(membershipAttrList).concat([{
                  id: value,
                  label: value
                }]);
              }
            } catch (err) {
              _didIteratorError = true;
              _iteratorError = err;
            } finally {
              try {
                if (!_iteratorNormalCompletion && _iterator.return != null) {
                  _iterator.return();
                }
              } finally {
                if (_didIteratorError) {
                  throw _iteratorError;
                }
              }
            }

            _this2.setState({
              configMembershipAttr: membershipAttrList
            });
          }

          _this2.props.toggleLoadingHandler();
        }).fail(function (_) {
          _this2.setState({
            configEntryModalShow: true,
            newEntry: true,
            configDN: _this2.state.referintConfigEntry,
            configUpdateDelay: "",
            configMembershipAttr: [],
            configEntryScope: "",
            configExcludeEntryScope: "",
            configContainerScope: "",
            configLogFile: ""
          });

          _this2.props.toggleLoadingHandler();
        });
      }
    }
  }, {
    key: "closeModal",
    value: function closeModal() {
      this.setState({
        configEntryModalShow: false
      });
    }
  }, {
    key: "cmdOperation",
    value: function cmdOperation(action) {
      var _this3 = this;

      var _this$state = this.state,
          configDN = _this$state.configDN,
          configUpdateDelay = _this$state.configUpdateDelay,
          configMembershipAttr = _this$state.configMembershipAttr,
          configEntryScope = _this$state.configEntryScope,
          configExcludeEntryScope = _this$state.configExcludeEntryScope,
          configContainerScope = _this$state.configContainerScope,
          configLogFile = _this$state.configLogFile;
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "referential-integrity", "config-entry", action, configDN, "--update-delay", configUpdateDelay || action == "add" ? configUpdateDelay : "delete", "--entry-scope", configEntryScope || action == "add" ? configEntryScope : "delete", "--exclude-entry-scope", configExcludeEntryScope || action == "add" ? configExcludeEntryScope : "delete", "--container-scope", configContainerScope || action == "add" ? configContainerScope : "delete", "--log-file", configLogFile || action == "add" ? configLogFile : "delete"]; // Delete attributes if the user set an empty value to the field

      cmd = _toConsumableArray(cmd).concat(["--membership-attr"]);

      if (configMembershipAttr.length != 0) {
        var _iteratorNormalCompletion2 = true;
        var _didIteratorError2 = false;
        var _iteratorError2 = undefined;

        try {
          for (var _iterator2 = configMembershipAttr[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
            var value = _step2.value;
            cmd = _toConsumableArray(cmd).concat([value.label]);
          }
        } catch (err) {
          _didIteratorError2 = true;
          _iteratorError2 = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
              _iterator2.return();
            }
          } finally {
            if (_didIteratorError2) {
              throw _iteratorError2;
            }
          }
        }
      } else if (action == "add") {
        cmd = _toConsumableArray(cmd).concat([""]);
      } else {
        cmd = _toConsumableArray(cmd).concat(["delete"]);
      }

      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("referintOperation", "Do the ".concat(action, " operation on the Referential Integrity Plugin"), cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("referintOperation", "Result", content);

        _this3.props.addNotification("success", "Config entry ".concat(configDN, " was successfully ").concat(action, "ed"));

        _this3.props.pluginListHandler();

        _this3.closeModal();

        _this3.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.addNotification("error", "Error during the config entry ".concat(action, " operation - ").concat(errMsg.desc));

        _this3.props.pluginListHandler();

        _this3.closeModal();

        _this3.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "deleteConfig",
    value: function deleteConfig() {
      var _this4 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "referential-integrity", "config-entry", "delete", this.state.configDN];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("deleteConfig", "Delete the Referential Integrity Plugin config entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("deleteConfig", "Result", content);

        _this4.props.addNotification("success", "Config entry ".concat(_this4.state.configDN, " was successfully deleted"));

        _this4.props.pluginListHandler();

        _this4.closeModal();

        _this4.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this4.props.addNotification("error", "Error during the config entry removal operation - ".concat(errMsg.desc));

        _this4.props.pluginListHandler();

        _this4.closeModal();

        _this4.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "addConfig",
    value: function addConfig() {
      this.cmdOperation("add");
    }
  }, {
    key: "editConfig",
    value: function editConfig() {
      this.cmdOperation("set");
    }
  }, {
    key: "updateFields",
    value: function updateFields() {
      var membershipAttrList = [];

      if (this.props.rows.length > 0) {
        var pluginRow = this.props.rows.find(function (row) {
          return row.cn[0] === "referential integrity postoperation";
        });
        this.setState({
          updateDelay: pluginRow["referint-update-delay"] === undefined ? "" : pluginRow["referint-update-delay"][0],
          entryScope: pluginRow["nsslapd-pluginEntryScope"] === undefined ? "" : pluginRow["nsslapd-pluginEntryScope"][0],
          excludeEntryScope: pluginRow["nsslapd-pluginExcludeEntryScope"] === undefined ? "" : pluginRow["nsslapd-pluginExcludeEntryScope"][0],
          containerScope: pluginRow["nsslapd-pluginContainerScope"] === undefined ? "" : pluginRow["nsslapd-pluginContainerScope"][0],
          referintConfigEntry: pluginRow["nsslapd-pluginConfigArea"] === undefined ? "" : pluginRow["nsslapd-pluginConfigArea"][0],
          logFile: pluginRow["referint-logfile"] === undefined ? "" : pluginRow["referint-logfile"][0]
        });

        if (pluginRow["referint-membership-attr"] === undefined) {
          this.setState({
            membershipAttr: []
          });
        } else {
          var _iteratorNormalCompletion3 = true;
          var _didIteratorError3 = false;
          var _iteratorError3 = undefined;

          try {
            for (var _iterator3 = pluginRow["referint-membership-attr"][Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
              var value = _step3.value;
              membershipAttrList = _toConsumableArray(membershipAttrList).concat([{
                id: value,
                label: value
              }]);
            }
          } catch (err) {
            _didIteratorError3 = true;
            _iteratorError3 = err;
          } finally {
            try {
              if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
                _iterator3.return();
              }
            } finally {
              if (_didIteratorError3) {
                throw _iteratorError3;
              }
            }
          }

          this.setState({
            membershipAttr: membershipAttrList
          });
        }
      }
    }
  }, {
    key: "getAttributes",
    value: function getAttributes() {
      var _this5 = this;

      var attr_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "list"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("getAttributes", "Get attrs", attr_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(attr_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var attrContent = JSON.parse(content);
        var attrs = [];
        var _iteratorNormalCompletion4 = true;
        var _didIteratorError4 = false;
        var _iteratorError4 = undefined;

        try {
          for (var _iterator4 = attrContent["items"][Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {
            var _content = _step4.value;
            attrs.push({
              id: _content.name,
              label: _content.name
            });
          }
        } catch (err) {
          _didIteratorError4 = true;
          _iteratorError4 = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion4 && _iterator4.return != null) {
              _iterator4.return();
            }
          } finally {
            if (_didIteratorError4) {
              throw _iteratorError4;
            }
          }
        }

        _this5.setState({
          attributes: attrs
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.props.addNotification("error", "Failed to get attributes - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this6 = this;

      var _this$state2 = this.state,
          updateDelay = _this$state2.updateDelay,
          membershipAttr = _this$state2.membershipAttr,
          entryScope = _this$state2.entryScope,
          excludeEntryScope = _this$state2.excludeEntryScope,
          containerScope = _this$state2.containerScope,
          logFile = _this$state2.logFile,
          referintConfigEntry = _this$state2.referintConfigEntry,
          attributes = _this$state2.attributes,
          configDN = _this$state2.configDN,
          configUpdateDelay = _this$state2.configUpdateDelay,
          configMembershipAttr = _this$state2.configMembershipAttr,
          configEntryScope = _this$state2.configEntryScope,
          configExcludeEntryScope = _this$state2.configExcludeEntryScope,
          configContainerScope = _this$state2.configContainerScope,
          configEntryModalShow = _this$state2.configEntryModalShow,
          configLogFile = _this$state2.configLogFile,
          newEntry = _this$state2.newEntry;
      var specificPluginCMD = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "referential-integrity", "set", "--update-delay", updateDelay || "delete", "--entry-scope", entryScope || "delete", "--exclude-entry-scope", excludeEntryScope || "delete", "--container-scope", containerScope || "delete", "--config-entry", referintConfigEntry || "delete", "--log-file", logFile || "delete"]; // Delete attributes if the user set an empty value to the field

      specificPluginCMD = _toConsumableArray(specificPluginCMD).concat(["--membership-attr"]);

      if (membershipAttr.length != 0) {
        var _iteratorNormalCompletion5 = true;
        var _didIteratorError5 = false;
        var _iteratorError5 = undefined;

        try {
          for (var _iterator5 = membershipAttr[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) {
            var value = _step5.value;
            specificPluginCMD = _toConsumableArray(specificPluginCMD).concat([value.label]);
          }
        } catch (err) {
          _didIteratorError5 = true;
          _iteratorError5 = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion5 && _iterator5.return != null) {
              _iterator5.return();
            }
          } finally {
            if (_didIteratorError5) {
              throw _iteratorError5;
            }
          }
        }
      } else {
        specificPluginCMD = _toConsumableArray(specificPluginCMD).concat(["delete"]);
      }

      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: configEntryModalShow,
        onHide: this.closeModal
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.closeModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, "Manage Referential Integrity Plugin Shared Config Entry")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "configDN"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "The config entry full DN"
      }, "Config DN")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: configDN,
        onChange: this.handleFieldChange,
        disabled: !newEntry
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "configUpdateDelay",
        controlId: "configUpdateDelay"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Sets the update interval. Special values: 0 - The check is performed immediately, -1 - No check is performed (referint-update-delay)"
      }, "Update Delay"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: configUpdateDelay,
        onChange: this.handleFieldChange
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "configMembershipAttr",
        controlId: "configMembershipAttr"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies attributes to check for and update (referint-membership-attr)"
      }, "Membership Attribute"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(value) {
          _this6.setState({
            configMembershipAttr: value
          });
        },
        selected: configMembershipAttr,
        options: attributes,
        newSelectionPrefix: "Add a membership attribute: ",
        placeholder: "Type an attribute..."
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "configEntryScope",
        controlId: "configEntryScope"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Defines the subtree in which the plug-in looks for the delete or rename operations of a user entry (nsslapd-pluginEntryScope)"
      }, "Entry Scope"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: configEntryScope,
        onChange: this.handleFieldChange
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "configExcludeEntryScope",
        controlId: "configExcludeEntryScope"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Defines the subtree in which the plug-in ignores any operations for deleting or renaming a user (nsslapd-pluginExcludeEntryScope)"
      }, "Exclude Entry Scope"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: configExcludeEntryScope,
        onChange: this.handleFieldChange
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "configContainerScope",
        controlId: "configContainerScope"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies which branch the plug-in searches for the groups to which the user belongs. It only updates groups that are under the specified container branch, and leaves all other groups not updated (nsslapd-pluginContainerScope)"
      }, "Container Scope"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: configContainerScope,
        onChange: this.handleFieldChange
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "configLogFile",
        controlId: "configLogFile"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies a path to the Referential integrity logfile. For example: /var/log/dirsrv/slapd-".concat(this.props.serverId, "/referint")
      }, "Logfile"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: configLogFile,
        onChange: this.handleFieldChange
      }))))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.closeModal
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.deleteConfig,
        disabled: newEntry
      }, "Delete"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.editConfig,
        disabled: newEntry
      }, "Save"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.addConfig,
        disabled: !newEntry
      }, "Add")))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__["default"], {
        rows: this.props.rows,
        serverId: this.props.serverId,
        cn: "referential integrity postoperation",
        pluginName: "Referential Integrity",
        cmdName: "referential-integrity",
        specificPluginCMD: specificPluginCMD,
        savePluginHandler: this.props.savePluginHandler,
        pluginListHandler: this.props.pluginListHandler,
        addNotification: this.props.addNotification,
        toggleLoadingHandler: this.props.toggleLoadingHandler
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "updateDelay",
        controlId: "updateDelay"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Sets the update interval. Special values: 0 - The check is performed immediately, -1 - No check is performed (referint-update-delay)"
      }, "Update Delay"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: updateDelay,
        onChange: this.handleFieldChange
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "membershipAttr",
        controlId: "membershipAttr"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies attributes to check for and update (referint-membership-attr)"
      }, "Membership Attribute"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(value) {
          _this6.setState({
            membershipAttr: value
          });
        },
        selected: membershipAttr,
        options: attributes,
        newSelectionPrefix: "Add a membership attribute: ",
        placeholder: "Type an attribute..."
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "entryScope",
        controlId: "entryScope"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Defines the subtree in which the plug-in looks for the delete or rename operations of a user entry (nsslapd-pluginEntryScope)"
      }, "Entry Scope"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: entryScope,
        onChange: this.handleFieldChange
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "excludeEntryScope",
        controlId: "excludeEntryScope"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Defines the subtree in which the plug-in ignores any operations for deleting or renaming a user (nsslapd-pluginExcludeEntryScope)"
      }, "Exclude Entry Scope"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: excludeEntryScope,
        onChange: this.handleFieldChange
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "containerScope",
        controlId: "containerScope"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies which branch the plug-in searches for the groups to which the user belongs. It only updates groups that are under the specified container branch, and leaves all other groups not updated (nsslapd-pluginContainerScope)"
      }, "Container Scope"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: containerScope,
        onChange: this.handleFieldChange
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "logFile",
        controlId: "logFile"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies a path to the Referential integrity logfile. For example: /var/log/dirsrv/slapd-".concat(this.props.serverId, "/referint")
      }, "Logfile"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: logFile,
        onChange: this.handleFieldChange
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "referintConfigEntry",
        controlId: "referintConfigEntry"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "The value to set as nsslapd-pluginConfigArea"
      }, "Shared Config Entry"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: referintConfigEntry,
        onChange: this.handleFieldChange
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.openModal
      }, "Manage"))))))));
    }
  }]);

  return ReferentialIntegrity;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

ReferentialIntegrity.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.array,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
  savePluginHandler: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,
  pluginListHandler: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,
  toggleLoadingHandler: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func
};
ReferentialIntegrity.defaultProps = {
  rows: [],
  serverId: "",
  savePluginHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  pluginListHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  toggleLoadingHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (ReferentialIntegrity);

/***/ }),

/***/ "./src/lib/plugins/retroChangelog.jsx":
/*!********************************************!*\
  !*** ./src/lib/plugins/retroChangelog.jsx ***!
  \********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_7__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }










var RetroChangelog =
/*#__PURE__*/
function (_React$Component) {
  _inherits(RetroChangelog, _React$Component);

  _createClass(RetroChangelog, [{
    key: "componentWillMount",
    value: function componentWillMount(prevProps) {
      this.getAttributes();
      this.updateFields();
    }
  }, {
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps) {
      if (this.props.rows !== prevProps.rows) {
        this.updateFields();
      }
    }
  }]);

  function RetroChangelog(props) {
    var _this;

    _classCallCheck(this, RetroChangelog);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(RetroChangelog).call(this, props));
    _this.state = {
      isReplicated: false,
      attribute: [],
      directory: "",
      maxAge: "",
      excludeSuffix: "",
      attributes: []
    };
    _this.updateFields = _this.updateFields.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleCheckboxChange = _this.handleCheckboxChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(RetroChangelog, [{
    key: "handleCheckboxChange",
    value: function handleCheckboxChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.checked));
    }
  }, {
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.value));
    }
  }, {
    key: "updateFields",
    value: function updateFields() {
      if (this.props.rows.length > 0) {
        var pluginRow = this.props.rows.find(function (row) {
          return row.cn[0] === "Retro Changelog Plugin";
        });
        this.setState({
          isReplicated: !(pluginRow["isReplicated"] === undefined || pluginRow["isReplicated"][0] == "FALSE"),
          attribute: pluginRow["nsslapd-attribute"] === undefined ? [] : [{
            id: pluginRow["nsslapd-attribute"][0],
            label: pluginRow["nsslapd-attribute"][0]
          }],
          directory: pluginRow["nsslapd-changelogdir"] === undefined ? "" : pluginRow["nsslapd-changelogdir"][0],
          maxAge: pluginRow["nsslapd-changelogmaxage"] === undefined ? "" : pluginRow["nsslapd-changelogmaxage"][0],
          excludeSuffix: pluginRow["nsslapd-exclude-suffix"] === undefined ? "" : pluginRow["nsslapd-exclude-suffix"][0]
        });
      }
    }
  }, {
    key: "getAttributes",
    value: function getAttributes() {
      var _this2 = this;

      var attr_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "list"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("getAttributes", "Get attrs", attr_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(attr_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var attrContent = JSON.parse(content);
        var attrs = [];
        var _iteratorNormalCompletion = true;
        var _didIteratorError = false;
        var _iteratorError = undefined;

        try {
          for (var _iterator = attrContent["items"][Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
            var _content = _step.value;
            attrs.push({
              id: _content.name,
              label: _content.name
            });
          }
        } catch (err) {
          _didIteratorError = true;
          _iteratorError = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion && _iterator.return != null) {
              _iterator.return();
            }
          } finally {
            if (_didIteratorError) {
              throw _iteratorError;
            }
          }
        }

        _this2.setState({
          attributes: attrs
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.props.addNotification("error", "Failed to get attributes - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this3 = this;

      var _this$state = this.state,
          isReplicated = _this$state.isReplicated,
          attribute = _this$state.attribute,
          directory = _this$state.directory,
          maxAge = _this$state.maxAge,
          excludeSuffix = _this$state.excludeSuffix,
          attributes = _this$state.attributes;
      var specificPluginCMD = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "retro-changelog", "set", "--is-replicated", isReplicated ? "TRUE" : "FALSE", "--attribute", attribute.length != 0 ? attribute[0].label : "delete", "--directory", directory || "delete", "--max-age", maxAge || "delete", "--exclude-suffix", excludeSuffix || "delete"];
      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__["default"], {
        rows: this.props.rows,
        serverId: this.props.serverId,
        cn: "Retro Changelog Plugin",
        pluginName: "Retro Changelog",
        cmdName: "retro-changelog",
        specificPluginCMD: specificPluginCMD,
        savePluginHandler: this.props.savePluginHandler,
        pluginListHandler: this.props.pluginListHandler,
        addNotification: this.props.addNotification,
        toggleLoadingHandler: this.props.toggleLoadingHandler
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "attribute",
        controlId: "attribute"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies another Directory Server attribute which must be included in the retro changelog entries (nsslapd-attribute)"
      }, "Attribute"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 7
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4__["Typeahead"], {
        allowNew: true,
        onChange: function onChange(value) {
          _this3.setState({
            attribute: value
          });
        },
        selected: attribute,
        options: attributes,
        newSelectionPrefix: "Add an attribute: ",
        placeholder: "Type an attribute..."
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "directory",
        controlId: "directory"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies the name of the directory in which the changelog database is created the first time the plug-in is run"
      }, "Directory"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 7
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: directory,
        onChange: this.handleFieldChange
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "maxAge",
        controlId: "maxAge"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "This attribute specifies the maximum age of any entry in the changelog (nsslapd-changelogmaxage)"
      }, "Max Age"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 7
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: maxAge,
        onChange: this.handleFieldChange
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "excludeSuffix",
        controlId: "excludeSuffix"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "This attribute specifies the suffix which will be excluded from the scope of the plugin (nsslapd-exclude-suffix)"
      }, "Exclude Suffix"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 5
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: excludeSuffix,
        onChange: this.handleFieldChange
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Checkbox"], {
        id: "isReplicated",
        checked: isReplicated,
        onChange: this.handleCheckboxChange,
        title: "Sets a flag to indicate on a change in the changelog whether the change is newly made on that server or whether it was replicated over from another server (isReplicated)"
      }, "Is Replicated"))))))));
    }
  }]);

  return RetroChangelog;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

RetroChangelog.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  savePluginHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  pluginListHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  toggleLoadingHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
RetroChangelog.defaultProps = {
  rows: [],
  serverId: "",
  savePluginHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  pluginListHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  toggleLoadingHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (RetroChangelog);

/***/ }),

/***/ "./src/lib/plugins/rootDNAccessControl.jsx":
/*!*************************************************!*\
  !*** ./src/lib/plugins/rootDNAccessControl.jsx ***!
  \*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_5__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }








var RootDNAccessControl =
/*#__PURE__*/
function (_React$Component) {
  _inherits(RootDNAccessControl, _React$Component);

  _createClass(RootDNAccessControl, [{
    key: "componentWillMount",
    value: function componentWillMount(prevProps) {
      this.updateFields();
    }
  }, {
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps) {
      if (this.props.rows !== prevProps.rows) {
        this.updateFields();
      }
    }
  }]);

  function RootDNAccessControl(props) {
    var _this;

    _classCallCheck(this, RootDNAccessControl);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(RootDNAccessControl).call(this, props));
    _this.state = {
      allowHost: [],
      denyHost: [],
      allowIP: [],
      denyIP: [],
      openTime: "",
      closeTime: "",
      daysAllowed: ""
    };
    _this.updateFields = _this.updateFields.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(RootDNAccessControl, [{
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.value));
    }
  }, {
    key: "updateFields",
    value: function updateFields() {
      var allowHostList = [];
      var denyHostList = [];
      var allowIPList = [];
      var denyIPList = [];

      if (this.props.rows.length > 0) {
        var pluginRow = this.props.rows.find(function (row) {
          return row.cn[0] === "RootDN Access Control";
        });
        this.setState({
          openTime: pluginRow["rootdn-open-time"] === undefined ? "" : pluginRow["rootdn-open-time"][0],
          closeTime: pluginRow["rootdn-close-time"] === undefined ? "" : pluginRow["rootdn-close-time"][0],
          daysAllowed: pluginRow["rootdn-days-allowed"] === undefined ? "" : pluginRow["rootdn-days-allowed"][0]
        });

        if (pluginRow["rootdn-allow-host"] === undefined) {
          this.setState({
            allowHost: []
          });
        } else {
          var _iteratorNormalCompletion = true;
          var _didIteratorError = false;
          var _iteratorError = undefined;

          try {
            for (var _iterator = pluginRow["rootdn-allow-host"][Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
              var value = _step.value;
              allowHostList = _toConsumableArray(allowHostList).concat([{
                id: value,
                label: value
              }]);
            }
          } catch (err) {
            _didIteratorError = true;
            _iteratorError = err;
          } finally {
            try {
              if (!_iteratorNormalCompletion && _iterator.return != null) {
                _iterator.return();
              }
            } finally {
              if (_didIteratorError) {
                throw _iteratorError;
              }
            }
          }

          this.setState({
            allowHost: allowHostList
          });
        }

        if (pluginRow["rootdn-deny-host"] === undefined) {
          this.setState({
            denyHost: []
          });
        } else {
          var _iteratorNormalCompletion2 = true;
          var _didIteratorError2 = false;
          var _iteratorError2 = undefined;

          try {
            for (var _iterator2 = pluginRow["rootdn-deny-host"][Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
              var _value = _step2.value;
              denyHostList = _toConsumableArray(denyHostList).concat([{
                id: _value,
                label: _value
              }]);
            }
          } catch (err) {
            _didIteratorError2 = true;
            _iteratorError2 = err;
          } finally {
            try {
              if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
                _iterator2.return();
              }
            } finally {
              if (_didIteratorError2) {
                throw _iteratorError2;
              }
            }
          }

          this.setState({
            denyHost: denyHostList
          });
        }

        if (pluginRow["rootdn-allow-ip"] === undefined) {
          this.setState({
            allowIP: []
          });
        } else {
          var _iteratorNormalCompletion3 = true;
          var _didIteratorError3 = false;
          var _iteratorError3 = undefined;

          try {
            for (var _iterator3 = pluginRow["rootdn-allow-ip"][Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
              var _value2 = _step3.value;
              allowIPList = _toConsumableArray(allowIPList).concat([{
                id: _value2,
                label: _value2
              }]);
            }
          } catch (err) {
            _didIteratorError3 = true;
            _iteratorError3 = err;
          } finally {
            try {
              if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
                _iterator3.return();
              }
            } finally {
              if (_didIteratorError3) {
                throw _iteratorError3;
              }
            }
          }

          this.setState({
            allowIP: allowIPList
          });
        }

        if (pluginRow["rootdn-deny-ip"] === undefined) {
          this.setState({
            denyIP: []
          });
        } else {
          var _iteratorNormalCompletion4 = true;
          var _didIteratorError4 = false;
          var _iteratorError4 = undefined;

          try {
            for (var _iterator4 = pluginRow["rootdn-deny-ip"][Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {
              var _value3 = _step4.value;
              denyIPList = _toConsumableArray(denyIPList).concat([{
                id: _value3,
                label: _value3
              }]);
            }
          } catch (err) {
            _didIteratorError4 = true;
            _iteratorError4 = err;
          } finally {
            try {
              if (!_iteratorNormalCompletion4 && _iterator4.return != null) {
                _iterator4.return();
              }
            } finally {
              if (_didIteratorError4) {
                throw _iteratorError4;
              }
            }
          }

          this.setState({
            denyIP: denyIPList
          });
        }
      }
    }
  }, {
    key: "render",
    value: function render() {
      var _this2 = this;

      var _this$state = this.state,
          allowHost = _this$state.allowHost,
          denyHost = _this$state.denyHost,
          allowIP = _this$state.allowIP,
          denyIP = _this$state.denyIP,
          openTime = _this$state.openTime,
          closeTime = _this$state.closeTime,
          daysAllowed = _this$state.daysAllowed;
      var specificPluginCMD = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "root-dn", "set", "--open-time", openTime || "delete", "--close-time", closeTime || "delete", "--days-allowed", daysAllowed || "delete"]; // Delete attributes if the user set an empty value to the field

      specificPluginCMD = _toConsumableArray(specificPluginCMD).concat(["--allow-host"]);

      if (allowHost.length != 0) {
        var _iteratorNormalCompletion5 = true;
        var _didIteratorError5 = false;
        var _iteratorError5 = undefined;

        try {
          for (var _iterator5 = allowHost[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) {
            var value = _step5.value;
            specificPluginCMD = _toConsumableArray(specificPluginCMD).concat([value.label]);
          }
        } catch (err) {
          _didIteratorError5 = true;
          _iteratorError5 = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion5 && _iterator5.return != null) {
              _iterator5.return();
            }
          } finally {
            if (_didIteratorError5) {
              throw _iteratorError5;
            }
          }
        }
      } else {
        specificPluginCMD = _toConsumableArray(specificPluginCMD).concat(["delete"]);
      }

      specificPluginCMD = _toConsumableArray(specificPluginCMD).concat(["--deny-host"]);

      if (denyHost.length != 0) {
        var _iteratorNormalCompletion6 = true;
        var _didIteratorError6 = false;
        var _iteratorError6 = undefined;

        try {
          for (var _iterator6 = denyHost[Symbol.iterator](), _step6; !(_iteratorNormalCompletion6 = (_step6 = _iterator6.next()).done); _iteratorNormalCompletion6 = true) {
            var _value4 = _step6.value;
            specificPluginCMD = _toConsumableArray(specificPluginCMD).concat([_value4.label]);
          }
        } catch (err) {
          _didIteratorError6 = true;
          _iteratorError6 = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion6 && _iterator6.return != null) {
              _iterator6.return();
            }
          } finally {
            if (_didIteratorError6) {
              throw _iteratorError6;
            }
          }
        }
      } else {
        specificPluginCMD = _toConsumableArray(specificPluginCMD).concat(["delete"]);
      }

      specificPluginCMD = _toConsumableArray(specificPluginCMD).concat(["--allow-ip"]);

      if (allowIP.length != 0) {
        var _iteratorNormalCompletion7 = true;
        var _didIteratorError7 = false;
        var _iteratorError7 = undefined;

        try {
          for (var _iterator7 = allowIP[Symbol.iterator](), _step7; !(_iteratorNormalCompletion7 = (_step7 = _iterator7.next()).done); _iteratorNormalCompletion7 = true) {
            var _value5 = _step7.value;
            specificPluginCMD = _toConsumableArray(specificPluginCMD).concat([_value5.label]);
          }
        } catch (err) {
          _didIteratorError7 = true;
          _iteratorError7 = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion7 && _iterator7.return != null) {
              _iterator7.return();
            }
          } finally {
            if (_didIteratorError7) {
              throw _iteratorError7;
            }
          }
        }
      } else {
        specificPluginCMD = _toConsumableArray(specificPluginCMD).concat(["delete"]);
      }

      specificPluginCMD = _toConsumableArray(specificPluginCMD).concat(["--allow-host"]);

      if (allowHost.length != 0) {
        var _iteratorNormalCompletion8 = true;
        var _didIteratorError8 = false;
        var _iteratorError8 = undefined;

        try {
          for (var _iterator8 = allowHost[Symbol.iterator](), _step8; !(_iteratorNormalCompletion8 = (_step8 = _iterator8.next()).done); _iteratorNormalCompletion8 = true) {
            var _value6 = _step8.value;
            specificPluginCMD = _toConsumableArray(specificPluginCMD).concat([_value6.label]);
          }
        } catch (err) {
          _didIteratorError8 = true;
          _iteratorError8 = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion8 && _iterator8.return != null) {
              _iterator8.return();
            }
          } finally {
            if (_didIteratorError8) {
              throw _iteratorError8;
            }
          }
        }
      } else {
        specificPluginCMD = _toConsumableArray(specificPluginCMD).concat(["delete"]);
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_4__["default"], {
        rows: this.props.rows,
        serverId: this.props.serverId,
        cn: "RootDN Access Control",
        pluginName: "RootDN Access Control",
        cmdName: "root-dn",
        specificPluginCMD: specificPluginCMD,
        savePluginHandler: this.props.savePluginHandler,
        pluginListHandler: this.props.pluginListHandler,
        addNotification: this.props.addNotification,
        toggleLoadingHandler: this.props.toggleLoadingHandler
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        key: "allowHost",
        controlId: "allowHost"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 3,
        title: "Sets what hosts, by fully-qualified domain name, the root user is allowed to use to access the Directory Server. Any hosts not listed are implicitly denied (rootdn-allow-host)"
      }, "Allow Host"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 6
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_2__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(value) {
          _this2.setState({
            allowHost: value
          });
        },
        selected: allowHost,
        options: [],
        newSelectionPrefix: "Add a host to allow: ",
        placeholder: "Type a hostname (wild cards are allowed)..."
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        key: "denyHost",
        controlId: "denyHost"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 3,
        title: "Sets what hosts, by fully-qualified domain name, the root user is not allowed to use to access the Directory Server Any hosts not listed are implicitly allowed (rootdn-deny-host). If an host address is listed in both the rootdn-allow-host and rootdn-deny-host attributes, it is denied access."
      }, "Deny Host"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 6
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_2__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(value) {
          _this2.setState({
            denyHost: value
          });
        },
        selected: denyHost,
        options: [],
        newSelectionPrefix: "Add a host to deny: ",
        placeholder: "Type a hostname (wild cards are allowed)..."
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        key: "allowIP",
        controlId: "allowIP"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 3,
        title: "Sets what IP addresses, either IPv4 or IPv6, for machines the root user is allowed to use to access the Directory Server Any IP addresses not listed are implicitly denied (rootdn-allow-ip)"
      }, "Allow IP address"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 6
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_2__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(value) {
          _this2.setState({
            allowIP: value
          });
        },
        selected: allowIP,
        options: [],
        newSelectionPrefix: "Add an IP address to allow: ",
        placeholder: "Type an IP address (wild cards are allowed)..."
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        key: "denyIP",
        controlId: "denyIP"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 3,
        title: "Sets what IP addresses, either IPv4 or IPv6, for machines the root user is not allowed to use to access the Directory Server. Any IP addresses not listed are implicitly allowed (rootdn-deny-ip) If an IP address is listed in both the rootdn-allow-ip and rootdn-deny-ip attributes, it is denied access."
      }, "Deny IP address"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 6
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_2__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(value) {
          _this2.setState({
            denyIP: value
          });
        },
        selected: denyIP,
        options: [],
        newSelectionPrefix: "Add an IP address to deny: ",
        placeholder: "Type an IP address (wild cards are allowed)..."
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        key: "openTime",
        controlId: "openTime"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 3,
        title: "Sets part of a time period or range when the root user is allowed to access the Directory Server. This sets when the time-based access begins (rootdn-open-time)"
      }, "Open Time"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 6
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        value: openTime,
        onChange: this.handleFieldChange
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        key: "closeTime",
        controlId: "closeTime"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 3,
        title: "Sets part of a time period or range when the root user is allowed to access the Directory Server. This sets when the time-based access ends (rootdn-close-time)"
      }, "Close Time"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 6
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        value: closeTime,
        onChange: this.handleFieldChange
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        key: "daysAllowed",
        controlId: "daysAllowed"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 3,
        title: "Gives a comma-separated list of what days the root user is allowed to use to access the Directory Server. Any days listed are implicitly denied (rootdn-days-allowed)"
      }, "Days Allowed"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 6
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        value: daysAllowed,
        onChange: this.handleFieldChange
      }))))))));
    }
  }]);

  return RootDNAccessControl;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

RootDNAccessControl.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  savePluginHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  pluginListHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  toggleLoadingHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
RootDNAccessControl.defaultProps = {
  rows: [],
  serverId: "",
  savePluginHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  pluginListHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  toggleLoadingHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (RootDNAccessControl);

/***/ }),

/***/ "./src/lib/plugins/usn.jsx":
/*!*********************************!*\
  !*** ./src/lib/plugins/usn.jsx ***!
  \*********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_6__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }









var USN =
/*#__PURE__*/
function (_React$Component) {
  _inherits(USN, _React$Component);

  _createClass(USN, [{
    key: "componentWillMount",
    value: function componentWillMount() {
      this.updateSwitch();
    }
  }]);

  function USN(props) {
    var _this;

    _classCallCheck(this, USN);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(USN).call(this, props));
    _this.runCleanup = _this.runCleanup.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.toggleCleanupModal = _this.toggleCleanupModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.updateSwitch = _this.updateSwitch.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleSwitchChange = _this.handleSwitchChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.state = {
      globalMode: false,
      disableSwitch: false,
      cleanupModalShow: false,
      cleanupSuffix: "",
      cleanupBackend: "",
      cleanupMaxUSN: ""
    };
    return _this;
  }

  _createClass(USN, [{
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.value));
    }
  }, {
    key: "handleSwitchChange",
    value: function handleSwitchChange(value) {
      var _this2 = this;

      var _this$props = this.props,
          serverId = _this$props.serverId,
          addNotification = _this$props.addNotification,
          toggleLoadingHandler = _this$props.toggleLoadingHandler;
      var new_status = this.state.globalMode ? "off" : "on";
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + serverId + ".socket", "plugin", "usn", "global", new_status];
      toggleLoadingHandler();
      this.setState({
        disableSwitch: true
      });
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("handleSwitchChange", "Switch global USN mode from the USN plugin tab", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("savePlugin", "Result", content);

        _this2.updateSwitch();

        addNotification("success", "Global USN mode was successfully set to ".concat(new_status, "."));
        toggleLoadingHandler();

        _this2.setState({
          disableSwitch: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        addNotification("error", "Error during global USN mode modification - ".concat(errMsg.desc));
        toggleLoadingHandler();

        _this2.setState({
          disableSwitch: false
        });
      });
    }
  }, {
    key: "updateSwitch",
    value: function updateSwitch() {
      var _this3 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "config", "get", "nsslapd-entryusn-global"];
      this.setState({
        disableSwitch: true
      });
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("updateSwitch", "Get global USN status", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var myObject = JSON.parse(content);
        var usnGlobalAttr = myObject.attrs["nsslapd-entryusn-global"][0];

        _this3.setState({
          globalMode: !(usnGlobalAttr == "off")
        });

        _this3.setState({
          disableSwitch: false
        });

        _this3.props.toggleLoadingHandler();
      }).fail(function (err) {
        if (err != 0) {
          var errMsg = JSON.parse(err);
          console.log("Get global USN failed", errMsg.desc);
        }

        _this3.setState({
          disableSwitch: false
        });

        _this3.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "toggleCleanupModal",
    value: function toggleCleanupModal() {
      this.setState(function (prevState) {
        return {
          cleanupModalShow: !prevState.cleanupModalShow,
          cleanupSuffix: "",
          cleanupBackend: "",
          cleanupMaxUSN: ""
        };
      });
    }
  }, {
    key: "runCleanup",
    value: function runCleanup() {
      var _this4 = this;

      if (!this.state.cleanupSuffix && !this.state.cleanupBackend) {
        this.props.addNotification("warning", "Suffix or backend name is required.");
      } else {
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "usn", "cleanup"];

        if (this.state.cleanupSuffix) {
          cmd = _toConsumableArray(cmd).concat(["--suffix", this.state.cleanupSuffix]);
        }

        if (this.state.cleanupBackend) {
          cmd = _toConsumableArray(cmd).concat(["--backend", this.state.cleanupBackend]);
        }

        if (this.state.cleanupMaxUSN) {
          cmd = _toConsumableArray(cmd).concat(["--max-usn", this.state.cleanupMaxUSN]);
        }

        this.props.toggleLoadingHandler();
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("runCleanup", "Run cleanup USN tombstones", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          _this4.props.addNotification("success", "Cleanup USN Tombstones task was successfull");

          _this4.props.toggleLoadingHandler();

          _this4.setState({
            cleanupModalShow: false
          });
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this4.props.addNotification("error", "Cleanup USN Tombstones task has failed ".concat(errMsg.desc));

          _this4.props.toggleLoadingHandler();

          _this4.setState({
            cleanupModalShow: false
          });
        });
      }
    }
  }, {
    key: "render",
    value: function render() {
      var _this5 = this;

      var _this$state = this.state,
          globalMode = _this$state.globalMode,
          disableSwitch = _this$state.disableSwitch,
          cleanupModalShow = _this$state.cleanupModalShow,
          cleanupSuffix = _this$state.cleanupSuffix,
          cleanupBackend = _this$state.cleanupBackend,
          cleanupMaxUSN = _this$state.cleanupMaxUSN;
      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: cleanupModalShow,
        onHide: this.toggleCleanupModal
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.toggleCleanupModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, "Fixup MemberOf Task")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "cleanupSuffix",
        key: "cleanupSuffix"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "Gives the suffix or subtree in the Directory Server to run the cleanup operation against"
      }, "Cleanup Suffix")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: cleanupSuffix,
        onChange: this.handleFieldChange
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "cleanupBackend",
        key: "cleanupBackend"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "Gives the Directory Server instance back end, or database, to run the cleanup operation against"
      }, "Cleanup Backend")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: cleanupBackend,
        onChange: this.handleFieldChange
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "cleanupMaxUSN",
        key: "cleanupMaxUSN"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "Gives the highest USN value to delete when removing tombstone entries. All tombstone entries up to and including that number are deleted. Tombstone entries with higher USN values (that means more recent entries) are not deleted"
      }, "Cleanup Max USN")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: cleanupMaxUSN,
        onChange: this.handleFieldChange
      }))))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.toggleCleanupModal
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.runCleanup
      }, "Run")))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_4__["default"], {
        rows: this.props.rows,
        serverId: this.props.serverId,
        cn: "USN",
        pluginName: "Update Sequence Numbers",
        cmdName: "usn",
        savePluginHandler: this.props.savePluginHandler,
        pluginListHandler: this.props.pluginListHandler,
        addNotification: this.props.addNotification,
        toggleLoadingHandler: this.props.toggleLoadingHandler
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "globalMode",
        controlId: "globalMode"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Defines if the USN plug-in assigns unique update sequence numbers (USN) across all back end databases or to each database individually"
      }, "USN Global"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Switch"], {
        bsSize: "normal",
        title: "normal",
        id: "bsSize-example",
        value: globalMode,
        onChange: function onChange() {
          return _this5.handleSwitchChange(globalMode);
        },
        animate: false,
        disabled: disableSwitch
      }))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        className: "ds-margin-top",
        bsStyle: "primary",
        onClick: this.toggleCleanupModal
      }, "Run Fixup Task")))));
    }
  }]);

  return USN;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

USN.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  savePluginHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  pluginListHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  toggleLoadingHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
USN.defaultProps = {
  rows: [],
  serverId: "",
  savePluginHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  pluginListHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  toggleLoadingHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (USN);

/***/ }),

/***/ "./src/lib/plugins/winsync.jsx":
/*!*************************************!*\
  !*** ./src/lib/plugins/winsync.jsx ***!
  \*************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_6__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }









var WinSync =
/*#__PURE__*/
function (_React$Component) {
  _inherits(WinSync, _React$Component);

  _createClass(WinSync, [{
    key: "componentWillMount",
    value: function componentWillMount(prevProps) {
      this.updateFields();
    }
  }, {
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps) {
      if (this.props.rows !== prevProps.rows) {
        this.updateFields();
      }
    }
  }]);

  function WinSync(props) {
    var _this;

    _classCallCheck(this, WinSync);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(WinSync).call(this, props));
    _this.handleCheckboxChange = _this.handleCheckboxChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.updateFields = _this.updateFields.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.runFixup = _this.runFixup.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.toggleFixupModal = _this.toggleFixupModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.state = {
      posixWinsyncCreateMemberOfTask: false,
      posixWinsyncLowerCaseUID: false,
      posixWinsyncMapMemberUID: false,
      posixWinsyncMapNestedGrouping: false,
      posixWinsyncMsSFUSchema: false,
      fixupModalShow: false,
      fixupDN: "",
      fixupFilter: ""
    };
    return _this;
  }

  _createClass(WinSync, [{
    key: "toggleFixupModal",
    value: function toggleFixupModal() {
      this.setState(function (prevState) {
        return {
          fixupModalShow: !prevState.fixupModalShow,
          fixupDN: "",
          fixupFilter: ""
        };
      });
    }
  }, {
    key: "runFixup",
    value: function runFixup() {
      var _this2 = this;

      if (!this.state.fixupDN) {
        this.props.addNotification("warning", "Fixup DN is required.");
      } else {
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "posix-winsync", "fixup", this.state.fixupDN];

        if (this.state.fixupFilter) {
          cmd = _toConsumableArray(cmd).concat(["--filter", this.state.fixupFilter]);
        }

        this.props.toggleLoadingHandler();
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("runFixup", "Run Member UID task", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          _this2.props.addNotification("success", "Fixup task for ".concat(_this2.state.fixupDN, " was successfull"));

          _this2.props.toggleLoadingHandler();

          _this2.setState({
            fixupModalShow: false
          });
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this2.props.addNotification("error", "Fixup task for ".concat(_this2.state.fixupDN, " has failed ").concat(errMsg.desc));

          _this2.props.toggleLoadingHandler();

          _this2.setState({
            fixupModalShow: false
          });
        });
      }
    }
  }, {
    key: "handleCheckboxChange",
    value: function handleCheckboxChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.checked));
    }
  }, {
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.value));
    }
  }, {
    key: "updateFields",
    value: function updateFields() {
      if (this.props.rows.length > 0) {
        var pluginRow = this.props.rows.find(function (row) {
          return row.cn[0] === "Posix Winsync API";
        });
        this.setState({
          posixWinsyncCreateMemberOfTask: !(pluginRow["posixwinsynccreatememberoftask"] === undefined || pluginRow["posixwinsynccreatememberoftask"][0] == "false"),
          posixWinsyncLowerCaseUID: !(pluginRow["posixwinsynclowercaseuid"] === undefined || pluginRow["posixwinsynclowercaseuid"][0] == "false"),
          posixWinsyncMapMemberUID: !(pluginRow["posixwinsyncmapmemberuid"] === undefined || pluginRow["posixwinsyncmapmemberuid"][0] == "false"),
          posixWinsyncMapNestedGrouping: !(pluginRow["posixwinsyncmapnestedgrouping"] === undefined || pluginRow["posixwinsyncmapnestedgrouping"][0] == "false"),
          posixWinsyncMsSFUSchema: !(pluginRow["posixwinsyncmssfuschema"] === undefined || pluginRow["posixwinsyncmssfuschema"][0] == "false")
        });
      }
    }
  }, {
    key: "render",
    value: function render() {
      var _this$state = this.state,
          posixWinsyncCreateMemberOfTask = _this$state.posixWinsyncCreateMemberOfTask,
          posixWinsyncLowerCaseUID = _this$state.posixWinsyncLowerCaseUID,
          posixWinsyncMapMemberUID = _this$state.posixWinsyncMapMemberUID,
          posixWinsyncMapNestedGrouping = _this$state.posixWinsyncMapNestedGrouping,
          posixWinsyncMsSFUSchema = _this$state.posixWinsyncMsSFUSchema,
          fixupModalShow = _this$state.fixupModalShow,
          fixupDN = _this$state.fixupDN,
          fixupFilter = _this$state.fixupFilter;
      var specificPluginCMD = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "posix-winsync", "set", "--create-memberof-task", posixWinsyncCreateMemberOfTask ? "true" : "false", "--lower-case-uid", posixWinsyncLowerCaseUID ? "true" : "false", "--map-member-uid", posixWinsyncMapMemberUID ? "true" : "false", "--map-nested-grouping", posixWinsyncMapNestedGrouping ? "true" : "false", "--ms-sfu-schema", posixWinsyncMsSFUSchema ? "true" : "false"];
      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: fixupModalShow,
        onHide: this.toggleFixupModal
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.toggleFixupModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, "MemberOf Task")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "fixupDN",
        key: "fixupDN"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "Base DN that contains entries to fix up"
      }, "Base DN")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: fixupDN,
        onChange: this.handleFieldChange
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "fixupFilter",
        key: "fixupFilter"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "Filter for entries to fix up. If omitted, all entries with objectclass inetuser/inetadmin/nsmemberof under the specified base will have their memberOf attribute regenerated."
      }, "Filter DN")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: fixupFilter,
        onChange: this.handleFieldChange
      }))))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.toggleFixupModal
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.runFixup
      }, "Run")))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_4__["default"], {
        rows: this.props.rows,
        serverId: this.props.serverId,
        cn: "Posix Winsync API",
        pluginName: "Posix Winsync API",
        cmdName: "posix-winsync",
        specificPluginCMD: specificPluginCMD,
        savePluginHandler: this.props.savePluginHandler,
        pluginListHandler: this.props.pluginListHandler,
        addNotification: this.props.addNotification,
        toggleLoadingHandler: this.props.toggleLoadingHandler
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "posixWinsyncCreateMemberOfTask",
        controlId: "posixWinsyncCreateMemberOfTask"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 6,
        title: "Sets whether to run the memberOf fix-up task immediately after a sync run in order to update group memberships for synced users"
      }, "Create MemberOf Task"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Checkbox"], {
        id: "posixWinsyncCreateMemberOfTask",
        checked: posixWinsyncCreateMemberOfTask,
        onChange: this.handleCheckboxChange
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "posixWinsyncLowerCaseUID",
        controlId: "posixWinsyncLowerCaseUID"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 6,
        title: "Sets whether to store (and, if necessary, convert) the UID value in the memberUID attribute in lower case"
      }, "Lower Case UID"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Checkbox"], {
        id: "posixWinsyncLowerCaseUID",
        checked: posixWinsyncLowerCaseUID,
        onChange: this.handleCheckboxChange
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "posixWinsyncMapMemberUID",
        controlId: "posixWinsyncMapMemberUID"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 6,
        title: "Sets whether to map the memberUID attribute in an Active Directory group to the uniqueMember attribute in a Directory Server group"
      }, "Map Member UID"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Checkbox"], {
        id: "posixWinsyncMapMemberUID",
        checked: posixWinsyncMapMemberUID,
        onChange: this.handleCheckboxChange
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "posixWinsyncMapNestedGrouping",
        controlId: "posixWinsyncMapNestedGrouping"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        title: "Manages if nested groups are updated when memberUID attributes in an Active Directory POSIX group change",
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 6
      }, "Map Nested Grouping"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Checkbox"], {
        id: "posixWinsyncMapNestedGrouping",
        checked: posixWinsyncMapNestedGrouping,
        onChange: this.handleCheckboxChange
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "posixWinsyncMsSFUSchema",
        controlId: "posixWinsyncMsSFUSchema"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 6,
        title: "Sets whether to the older Microsoft System Services  for Unix 3.0 (msSFU30) schema when syncing Posix attributes  from Active Directory"
      }, "Microsoft System Services for Unix 3.0 (msSFU30) schema"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Checkbox"], {
        id: "posixWinsyncMsSFUSchema",
        checked: posixWinsyncMsSFUSchema,
        onChange: this.handleCheckboxChange
      })))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.toggleFixupModal,
        title: "Corrects mismatched member and uniquemember values"
      }, "Run MemberOf Task")))));
    }
  }]);

  return WinSync;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

WinSync.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  savePluginHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  pluginListHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  toggleLoadingHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
WinSync.defaultProps = {
  rows: [],
  serverId: "",
  savePluginHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  pluginListHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  toggleLoadingHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (WinSync);

/***/ }),

/***/ "./src/lib/replication/replAgmts.jsx":
/*!*******************************************!*\
  !*** ./src/lib/replication/replAgmts.jsx ***!
  \*******************************************/
/*! exports provided: ReplAgmts */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReplAgmts", function() { return ReplAgmts; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _replTables_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./replTables.jsx */ "./src/lib/replication/replTables.jsx");
/* harmony import */ var _replModals_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./replModals.jsx */ "./src/lib/replication/replModals.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }









var ReplAgmts =
/*#__PURE__*/
function (_React$Component) {
  _inherits(ReplAgmts, _React$Component);

  function ReplAgmts(props) {
    var _this;

    _classCallCheck(this, ReplAgmts);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(ReplAgmts).call(this, props));

    _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_mounted", false);

    _this.state = {
      showCreateAgmtModal: false,
      showEditAgmtModal: false,
      showConfirmDeleteAgmt: false,
      showConfirmInitAgmt: false,
      showConfirmEnableAgmt: false,
      showConfirmDisableAgmt: false,
      errObj: {},
      modalMsg: "",
      modalScheduleMsg: "",
      savingAgmt: false,
      mounted: false,
      // Create agreement
      agmtName: "",
      agmtHost: "",
      agmtPort: "",
      agmtProtocol: "LDAP",
      agmtBindMethod: "SIMPLE",
      agmtBindDN: "",
      agmtBindPW: "",
      agmtBindPWConfirm: "",
      agmtStripAttrs: [],
      agmtFracAttrs: [],
      agmtFracInitAttrs: [],
      agmtSync: true,
      agmtSyncMon: true,
      agmtSyncTue: true,
      agmtSyncWed: true,
      agmtSyncThu: true,
      agmtSyncFri: true,
      agmtSyncSat: true,
      agmtSyncSun: true,
      agmtStartTime: "0",
      agmtEndTime: "0",
      agmtInit: "noinit",
      agmtSaveOK: false,
      modalChecked: false,
      modalSpinning: false,
      // Init agmt
      agmtInitCounter: 0,
      agmtInitIntervals: []
    };
    _this.showCreateAgmtModal = _this.showCreateAgmtModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeCreateAgmtModal = _this.closeCreateAgmtModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeEditAgmtModal = _this.closeEditAgmtModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleModalChange = _this.handleModalChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleTAFracInitAttrChange = _this.handleTAFracInitAttrChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleTAFracAttrChange = _this.handleTAFracAttrChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleTAStripAttrChange = _this.handleTAStripAttrChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleTAFracInitAttrChangeEdit = _this.handleTAFracInitAttrChangeEdit.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleTAFracAttrChangeEdit = _this.handleTAFracAttrChangeEdit.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleTAStripAttrChangeEdit = _this.handleTAStripAttrChangeEdit.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.createAgmt = _this.createAgmt.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showEditAgmt = _this.showEditAgmt.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.saveAgmt = _this.saveAgmt.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.pokeAgmt = _this.pokeAgmt.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.initAgmt = _this.initAgmt.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.enableAgmt = _this.enableAgmt.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.disableAgmt = _this.disableAgmt.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.deleteAgmt = _this.deleteAgmt.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showConfirmDeleteAgmt = _this.showConfirmDeleteAgmt.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmDeleteAgmt = _this.closeConfirmDeleteAgmt.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showConfirmInitAgmt = _this.showConfirmInitAgmt.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmInitAgmt = _this.closeConfirmInitAgmt.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.confirmToggle = _this.confirmToggle.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmEnableAgmt = _this.closeConfirmEnableAgmt.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmDisableAgmt = _this.closeConfirmDisableAgmt.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.watchAgmtInit = _this.watchAgmtInit.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(ReplAgmts, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this._mounted = true;
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      this._mounted = false;
    }
  }, {
    key: "listEqual",
    value: function listEqual(old_values, new_values) {
      if (old_values.length != new_values.length) {
        return false;
      }

      for (var i = old_values.length; i--;) {
        if (old_values[i] != new_values[i]) {
          return false;
        }
      }

      return true;
    }
  }, {
    key: "handleModalChange",
    value: function handleModalChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.checked));
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      var _this$setState2;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var time_val = "";
      var valueErr = false;
      var errObj = this.state.errObj;
      var all_good = true;
      var modal_msg = "";
      var modal_schedule_msg = "";
      var edit = false;

      if (value == "") {
        valueErr = true;
      }

      errObj[e.target.id] = valueErr;

      if (e.target.name == "agmt-modal-edit") {
        var orig_attr = "_" + e.target.id;
        var attr = e.target.id;
        all_good = false;

        if (attr != 'agmtHost' && this.state.agmtHost != this.state._agmtHost || attr != 'agmtPort' && this.state.agmtPort != this.state._agmtPort || attr != 'agmtBindDN' && this.state.agmtBindDN != this.state._agmtBindDN || attr != 'agmtBindMethod' && this.state.agmtBindMethod != this.state._agmtBindMethod || attr != 'agmtProtocol' && this.state.agmtProtocol != this.state._agmtProtocol || attr != 'agmtSync' && this.state.agmtSync != this.state._agmtSync || attr != 'agmtStripAttrs' && !this.listEqual(this.state.agmtStripAttrs, this.state._agmtStripAttrs) || attr != 'agmtFracAttrs' && !this.listEqual(this.state.agmtFracAttrs, this.state._agmtFracAttrs) || attr != 'agmtFracInitAttrs' && !this.listEqual(this.state.agmtFracInitAttrs, this.state._agmtFracInitAttrs)) {
          all_good = true;
        }

        if (!this.state._agmtSync) {
          if (attr != 'agmtSyncMon' && this.state.agmtSyncMon != this.state._agmtSyncMon || attr != 'agmtSyncTue' && this.state.agmtSyncTue != this.state._agmtSyncTue || attr != 'agmtSyncWed' && this.state.agmtSyncWed != this.state._agmtSyncWed || attr != 'agmtSyncThu' && this.state.agmtSyncThu != this.state._agmtSyncThu || attr != 'agmtSyncFri' && this.state.agmtSyncFri != this.state._agmtSyncFri || attr != 'agmtSyncSat' && this.state.agmtSyncSat != this.state._agmtSyncSat || attr != 'agmtSyncSun' && this.state.agmtSyncSun != this.state._agmtSyncSun) {
            all_good = true;
          }
        }

        if (attr != 'agmtStripAttrs' && attr != 'agmtFracAttrs' && attr != 'agmtFracInitAttrs' && value != this.state[orig_attr]) {
          all_good = true;
        } else if (attr == 'agmtStripAttrs' && !this.listEqual(value, this.state._agmtStripAttrs) || attr == 'agmtFracAttrs' && !this.listEqual(value, this.state._agmtFracAttrs) || attr == 'agmtFracInitAttrs' && !this.listEqual(value, this.state._agmtFracInitAttrs)) {
          all_good = true;
        }
      }

      if (e.target.type == "time") {
        // Strip out the colon from the time
        time_val = value.replace(':', '');
      }

      if (e.target.name.startsWith("agmt-modal")) {
        // Validate modal settings "live"
        if (e.target.id == 'agmtName') {
          if (value == "") {
            all_good = false;
          }
        } else if (this.state.agmtName == "") {
          all_good = false;
        }

        if (e.target.id == 'agmtHost') {
          if (value == "") {
            all_good = false;
          }
        } else if (this.state.agmtHost == "") {
          all_good = false;
        } else if (edit && value == this.state._agmtHost) {
          all_good = false;
        }

        if (e.target.id == 'agmtPort') {
          if (value == "") {
            all_good = false;
          } else if (!Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["valid_port"])(value)) {
            all_good = false;
            errObj['agmtPort'] = true;
            modal_msg = "Invalid Consumer Port number";
          }
        } else if (this.state.agmtPort == "") {
          all_good = false;
        }

        if (e.target.id == 'agmtBindDN') {
          if (value == "") {
            all_good = false;
          }

          if (!Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["valid_dn"])(value)) {
            errObj['agmtBindDN'] = true;
            all_good = false;
            modal_msg = "Invalid DN for Bind DN";
          }
        } else if (this.state.agmtBindDN == "") {
          all_good = false;
        } else if (!Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["valid_dn"])(this.state.agmtBindDN)) {
          modal_msg = "Invalid DN for Bind DN";
          errObj['agmtBindDN'] = true;
          all_good = false;
        }

        if (e.target.id == 'agmtBindPW') {
          if (value == "") {
            all_good = false;
          } else if (value != this.state.agmtBindPWConfirm) {
            modal_msg = "Passwords Do Not Match";
            errObj['agmtBindPW'] = true;
            errObj['agmtBindPWConfirm'] = true;
            all_good = false;
          } else {
            errObj['agmtBindPW'] = false;
            errObj['agmtBindPWConfirm'] = false;
          }
        } else if (this.state.agmtBindPW == "") {
          all_good = false;
        }

        if (e.target.id == 'agmtBindPWConfirm') {
          if (value == "") {
            all_good = false;
          } else if (value != this.state.agmtBindPW) {
            modal_msg = "Passwords Do Not Match";
            errObj['agmtBindPW'] = true;
            errObj['agmtBindPWConfirm'] = true;
            all_good = false;
          } else {
            errObj['agmtBindPW'] = false;
            errObj['agmtBindPWConfirm'] = false;
          }
        } else if (this.state.agmtBindPWConfirm == "") {
          all_good = false;
        }

        if (e.target.id == 'agmtSync') {
          if (!value) {
            if (this.state.agmtStartTime >= this.state.agmtEndTime) {
              modal_schedule_msg = "Schedule start time is greater than or equal to the end time";
              errObj['agmtStartTime'] = true;
              all_good = false;
            }
          }
        } else if (!this.state.agmtSync) {
          // Check the days first
          var have_days = false;
          var days = ["agmtSyncSun", "agmtSyncMon", "agmtSyncTue", "agmtSyncWed", "agmtSyncThu", "agmtSyncFri", "agmtSyncSat"];

          for (var _i = 0; _i < days.length; _i++) {
            var day = days[_i];

            if (e.target.id != day && this.state[day] || e.target.id == day && value) {
              have_days = true;
              break;
            }
          }

          if (!have_days) {
            modal_schedule_msg = "You must select at least one day for replication";
            all_good = false;
          } else if (e.target.id == 'agmtStartTime') {
            if (time_val == "") {
              all_good = false;
              errObj['agmtStartTime'] = true;
              modal_schedule_msg = "Schedule start time must be set";
            } else if (time_val >= this.state.agmtEndTime.replace(":", "")) {
              errObj['agmtStartTime'] = true;
              all_good = false;
              modal_schedule_msg = "Schedule start time is greater than or equal to the end time";
            } else {
              // All good, reset form
              modal_schedule_msg = "";
              errObj['agmtStartTime'] = false;
              errObj['agmtEndTime'] = false;
            }
          } else if (e.target.id == 'agmtEndTime') {
            if (time_val == "") {
              errObj['agmtEndTime'] = true;
              all_good = false;
            } else if (this.state.agmtStartTime.replace(":", "") >= time_val) {
              modal_schedule_msg = "Schedule start time is greater than or equal to the end time";
              errObj['agmtStartTime'] = true;
              all_good = false;
            } else {
              // All good, reset form
              modal_schedule_msg = "";
              errObj['agmtStartTime'] = false;
              errObj['agmtEndTime'] = false;
            }
          } else if (this.state.agmtStartTime >= this.state.agmtEndTime) {
            modal_schedule_msg = "Schedule start time is greater than or equal to the end time";
            errObj['agmtStartTime'] = true;
            all_good = false;
          }
        } // End of agmt modal live validation

      }

      this.setState((_this$setState2 = {}, _defineProperty(_this$setState2, e.target.id, value), _defineProperty(_this$setState2, "errObj", errObj), _defineProperty(_this$setState2, "agmtSaveOK", all_good), _defineProperty(_this$setState2, "modalMsg", modal_msg), _defineProperty(_this$setState2, "modalScheduleMsg", modal_schedule_msg), _this$setState2));
    }
  }, {
    key: "handleTAStripAttrChangeEdit",
    value: function handleTAStripAttrChangeEdit(values) {
      // TypeAhead handling
      var e = {
        target: {
          name: 'agmt-modal-edit',
          id: 'agmtStripAttrs',
          value: values,
          type: 'input'
        }
      };
      this.handleChange(e);
    }
  }, {
    key: "handleTAFracAttrChangeEdit",
    value: function handleTAFracAttrChangeEdit(values) {
      // TypeAhead handling
      var e = {
        target: {
          name: 'agmt-modal-edit',
          id: 'agmtFracAttrs',
          value: values,
          type: 'input'
        }
      };
      this.handleChange(e);
    }
  }, {
    key: "handleTAFracInitAttrChangeEdit",
    value: function handleTAFracInitAttrChangeEdit(values) {
      // TypeAhead handling
      var e = {
        target: {
          name: 'agmt-modal-edit',
          id: 'agmtFracInitAttrs',
          value: values,
          type: 'input'
        }
      };
      this.handleChange(e);
    }
  }, {
    key: "handleTAStripAttrChange",
    value: function handleTAStripAttrChange(values) {
      // TypeAhead handling
      var e = {
        target: {
          name: 'agmt-modal',
          id: 'agmtStripAttrs',
          value: values,
          type: 'input'
        }
      };
      this.handleChange(e);
    }
  }, {
    key: "handleTAFracAttrChange",
    value: function handleTAFracAttrChange(values) {
      // TypeAhead handling
      var e = {
        target: {
          name: 'agmt-modal',
          id: 'agmtFracAttrs',
          value: values,
          type: 'input'
        }
      };
      this.handleChange(e);
    }
  }, {
    key: "handleTAFracInitAttrChange",
    value: function handleTAFracInitAttrChange(values) {
      // TypeAhead handling
      var e = {
        target: {
          name: 'agmt-modal',
          id: 'agmtFracInitAttrs',
          value: values,
          type: 'input'
        }
      };
      this.handleChange(e);
    }
  }, {
    key: "showConfirmDeleteAgmt",
    value: function showConfirmDeleteAgmt(agmtName) {
      this.setState({
        agmtName: agmtName,
        showConfirmDeleteAgmt: true,
        modalChecked: false,
        modalSpinning: false
      });
    }
  }, {
    key: "closeConfirmDeleteAgmt",
    value: function closeConfirmDeleteAgmt() {
      this.setState({
        showConfirmDeleteAgmt: false,
        modalSpinning: false,
        modalChecked: false
      });
    }
  }, {
    key: "showConfirmInitAgmt",
    value: function showConfirmInitAgmt(agmtName) {
      this.setState({
        agmtName: agmtName,
        showConfirmInitAgmt: true,
        modalChecked: false,
        modalSpinning: false
      });
    }
  }, {
    key: "closeConfirmInitAgmt",
    value: function closeConfirmInitAgmt() {
      this.setState({
        showConfirmInitAgmt: false,
        modalSpinning: false,
        modalChecked: false
      });
    }
  }, {
    key: "showCreateAgmtModal",
    value: function showCreateAgmtModal() {
      this.setState({
        showCreateAgmtModal: true,
        agmtName: "",
        agmtHost: "",
        agmtPort: "",
        agmtProtocol: "LDAP",
        agmtBindMethod: "SIMPLE",
        agmtBindDN: "",
        agmtBindPW: "",
        agmtBindPWConfirm: "",
        agmtStripAttrs: [],
        agmtFracAttrs: [],
        agmtFracInitAttrs: [],
        agmtSync: true,
        agmtSyncMon: true,
        agmtSyncTue: true,
        agmtSyncWed: true,
        agmtSyncThu: true,
        agmtSyncFri: true,
        agmtSyncSat: true,
        agmtSyncSun: true,
        agmtStartTime: "00:00",
        agmtEndTime: "23:59",
        agmtInit: "noinit",
        agmtSaveOK: false,
        modalScheduleMsg: "",
        errObj: {
          // Marks all the fields as required
          agmtName: true,
          agmtHost: true,
          agmtPort: true,
          agmtBindDN: true,
          agmtBindPW: true,
          agmtBindPWConfirm: true,
          agmtStartTime: false,
          agmtEndTime: false
        }
      });
    }
  }, {
    key: "closeCreateAgmtModal",
    value: function closeCreateAgmtModal() {
      this.setState({
        showCreateAgmtModal: false
      });
    }
  }, {
    key: "closeEditAgmtModal",
    value: function closeEditAgmtModal() {
      this.setState({
        showEditAgmtModal: false
      });
    }
  }, {
    key: "showEditAgmt",
    value: function showEditAgmt(agmtName) {
      var _this2 = this;

      // Search for the agmt to get all the details
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-agmt', 'get', agmtName, '--suffix=' + this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('showEditAgmt', 'Edit replication agreement', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var agmtName = "";
        var agmtHost = "";
        var agmtPort = "";
        var agmtProtocol = "";
        var agmtBindMethod = "";
        var agmtBindDN = "";
        var agmtBindPW = "";
        var agmtBindPWConfirm = "";
        var agmtStripAttrs = [];
        var agmtFracAttrs = [];
        var agmtFracInitAttrs = [];
        var agmtSync = true;
        var agmtSyncMon = false;
        var agmtSyncTue = false;
        var agmtSyncWed = false;
        var agmtSyncThu = false;
        var agmtSyncFri = false;
        var agmtSyncSat = false;
        var agmtSyncSun = false;
        var agmtStartTime = "";
        var agmtEndTime = "";

        for (var attr in config['attrs']) {
          var val = config['attrs'][attr][0];

          if (attr == "cn") {
            agmtName = val;
          }

          if (attr == "nsds5replicahost") {
            agmtHost = val;
          }

          if (attr == "nsds5replicaport") {
            agmtPort = val;
          }

          if (attr == "nsds5replicatransportinfo") {
            agmtProtocol = val;
          }

          if (attr == "nsds5replicabindmethod") {
            agmtBindMethod = val.toUpperCase();
          }

          if (attr == "nsds5replicabinddn") {
            agmtBindDN = val;
          }

          if (attr == "nsds5replicacredentials") {
            agmtBindPW = val;
            agmtBindPWConfirm = val;
          }

          if (attr == "nsds5replicatedattributelist") {
            var attrs = val.replace("(objectclass=*) $ EXCLUDE", "").trim();
            agmtFracAttrs = attrs.split(' ');
          }

          if (attr == "nsds5replicatedattributelisttotal") {
            var _attrs = val.replace("(objectclass=*) $ EXCLUDE", "").trim();

            agmtFracInitAttrs = _attrs.split(' ');
          }

          if (attr == "nsds5replicastripattrs") {
            agmtStripAttrs = val.split(' ');
          }

          if (attr == "nsds5replicaupdateschedule") {
            agmtSync = false; // Parse schedule

            var parts = val.split(' ');
            var times = parts[0].split('-');
            var days = parts[1]; // Do the times

            agmtStartTime = times[0].substring(0, 2) + ":" + times[0].substring(2, 4);
            agmtEndTime = times[1].substring(0, 2) + ":" + times[1].substring(2, 4); // Do the days

            if (days.includes("0")) {
              agmtSyncSun = true;
            }

            if (days.includes("1")) {
              agmtSyncMon = true;
            }

            if (days.includes("2")) {
              agmtSyncTue = true;
            }

            if (days.includes("3")) {
              agmtSyncWed = true;
            }

            if (days.includes("4")) {
              agmtSyncThu = true;
            }

            if (days.includes("5")) {
              agmtSyncFri = true;
            }

            if (days.includes("6")) {
              agmtSyncSat = true;
            }
          }
        }

        if (_this2._mounted) {
          _this2.setState({
            showEditAgmtModal: true,
            agmtName: agmtName,
            agmtHost: agmtHost,
            agmtPort: agmtPort,
            agmtProtocol: agmtProtocol,
            agmtBindMethod: agmtBindMethod,
            agmtBindDN: agmtBindDN,
            agmtBindPW: agmtBindPW,
            agmtBindPWConfirm: agmtBindPWConfirm,
            agmtStripAttrs: agmtStripAttrs,
            agmtFracAttrs: agmtFracAttrs,
            agmtFracInitAttrs: agmtFracInitAttrs,
            agmtSync: agmtSync,
            agmtSyncMon: agmtSyncMon,
            agmtSyncTue: agmtSyncTue,
            agmtSyncWed: agmtSyncWed,
            agmtSyncThu: agmtSyncThu,
            agmtSyncFri: agmtSyncFri,
            agmtSyncSat: agmtSyncSat,
            agmtSyncSun: agmtSyncSun,
            agmtStartTime: agmtStartTime,
            agmtEndTime: agmtEndTime,
            agmtSaveOK: false,
            // Record original values before editing
            _agmtName: agmtName,
            _agmtHost: agmtHost,
            _agmtPort: agmtPort,
            _agmtProtocol: agmtProtocol,
            _agmtBindMethod: agmtBindMethod,
            _agmtBindDN: agmtBindDN,
            _agmtBindPW: agmtBindPW,
            _agmtBindPWConfirm: agmtBindPWConfirm,
            _agmtStripAttrs: agmtStripAttrs,
            _agmtFracAttrs: agmtFracAttrs,
            _agmtFracInitAttrs: agmtFracInitAttrs,
            _agmtSync: agmtSync,
            _agmtSyncMon: agmtSyncMon,
            _agmtSyncTue: agmtSyncTue,
            _agmtSyncWed: agmtSyncWed,
            _agmtSyncThu: agmtSyncThu,
            _agmtSyncFri: agmtSyncFri,
            _agmtSyncSat: agmtSyncSat,
            _agmtSyncSun: agmtSyncSun,
            _agmtStartTime: agmtStartTime,
            _agmtEndTime: agmtEndTime
          });
        }
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.props.addNotification("error", "Failed to get agreement information for: \"".concat(agmtName, "\" - ").concat(errMsg.desc));
      });
    }
  }, {
    key: "saveAgmt",
    value: function saveAgmt() {
      var _this3 = this;

      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-agmt', 'set', this.state.agmtName, '--suffix=' + this.props.suffix]; // Handle Schedule

      if (!this.state.agmtSync) {
        var agmt_days = "";

        if (this.state.agmtSyncSun) {
          agmt_days += "0";
        }

        if (this.state.agmtSyncMon) {
          agmt_days += "1";
        }

        if (this.state.agmtSyncTue) {
          agmt_days += "2";
        }

        if (this.state.agmtSyncWed) {
          agmt_days += "3";
        }

        if (this.state.agmtSyncThu) {
          agmt_days += "4";
        }

        if (this.state.agmtSyncFri) {
          agmt_days += "5";
        }

        if (this.state.agmtSyncSat) {
          agmt_days += "6";
        }

        cmd.push('--schedule=' + this.state.agmtStartTime.replace(':', '') + "-" + this.state.agmtEndTime.replace(':', '') + " " + agmt_days);
      } else if (this.state.agmtSync != this.state._agmtSync && this.state.agmtSync) {
        // We disabled custom scheduleRow
        cmd.push('--schedule=');
      }

      if (this.state.agmtBindMethod != this.state._agmtBindMethod) {
        cmd.push('--bind-method=' + this.state.agmtBindMethod);
      }

      if (this.state.agmtProtocol != this.state._agmtProtocol) {
        cmd.push('--conn-protocol=' + this.state.agmtProtocol);
      }

      if (this.state.agmtBindPW != this.state._agmtBindPW) {
        cmd.push('--bind-passwd=' + this.state.agmtBindPW);
      }

      if (this.state.agmtBindDN != this.state._agmtBindDN) {
        cmd.push('--bind-passwd=' + this.state.agmtBindDN);
      }

      if (this.state.agmtFracAttrs != this.state._agmtFracAttrs) {
        cmd.push('--frac-list=' + this.state.agmtFracAttrs.join(' '));
      }

      if (this.state.agmtFracInitAttrs != this.state._agmtFracInitAttrs) {
        cmd.push('--frac-list-total=' + this.state.agmtFracInitAttrs.join(' '));
      }

      if (this.state.agmtStripAttrs != this.state._agmtStripAttrs) {
        cmd.push('--strip-list=' + this.state.agmtStripAttrs.join(' '));
      }

      if (this.state.agmtHost != this.state._agmtHost) {
        cmd.push('--host=' + this.state.agmtHost);
      }

      if (this.state.agmtPort != this.state._agmtPort) {
        cmd.push('--port=' + this.state.agmtPort);
      }

      this.setState({
        savingAgmt: true
      });
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('saveAgmt', 'update replication agreement', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this3.props.reload(_this3.props.suffix);

        if (_this3._mounted) {
          _this3.setState({
            savingAgmt: false,
            showEditAgmtModal: false
          });
        }

        _this3.props.addNotification('success', 'Successfully updated replication agreement');
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.addNotification("error", "Failed to update replication agreement - ".concat(errMsg.desc));

        _this3.setState({
          savingAgmt: false
        });
      });
    }
  }, {
    key: "pokeAgmt",
    value: function pokeAgmt(agmtName) {
      var _this4 = this;

      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-agmt', 'poke', agmtName, '--suffix=' + this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('pokeAgmt', 'send updates now', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this4.props.reload(_this4.props.suffix);

        _this4.props.addNotification('success', 'Successfully poked replication agreement');
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this4.props.addNotification('error', "Failed to poke replication agreement - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "initAgmt",
    value: function initAgmt(agmtName) {
      var _this5 = this;

      var init_cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-agmt', 'init', '--suffix=' + this.props.suffix, this.state.agmtName];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('initAgmt', 'Initialize agreement', init_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(init_cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        var agmtIntervalCount = _this5.state.agmtInitCounter + 1;
        var intervals = _this5.state.agmtInitIntervals;

        _this5.props.reload(_this5.props.suffix);

        intervals[agmtIntervalCount] = setInterval(_this5.watchAgmtInit, 2000, _this5.state.agmtName, agmtIntervalCount);

        if (_this5._mounted) {
          _this5.setState({
            agmtInitCounter: agmtIntervalCount,
            agmtInitIntervals: intervals,
            showConfirmInitAgmt: false
          });
        }
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.props.addNotification('error', "Failed to initialize replication agreement - ".concat(errMsg.desc));

        _this5.setState({
          showConfirmInitAgmt: false
        });
      });
    }
  }, {
    key: "confirmToggle",
    value: function confirmToggle(agmtName, state) {
      if (state == 'Enabled') {
        this.setState({
          agmtName: agmtName,
          showConfirmDisableAgmt: true
        });
      } else {
        this.setState({
          agmtName: agmtName,
          showConfirmEnableAgmt: true
        });
      }
    }
  }, {
    key: "closeConfirmEnableAgmt",
    value: function closeConfirmEnableAgmt() {
      this.setState({
        showConfirmEnableAgmt: false
      });
    }
  }, {
    key: "closeConfirmDisableAgmt",
    value: function closeConfirmDisableAgmt() {
      this.setState({
        showConfirmDisableAgmt: false
      });
    }
  }, {
    key: "enableAgmt",
    value: function enableAgmt(agmtName) {
      var _this6 = this;

      // Enable/disable agmt
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-agmt', 'enable', agmtName, '--suffix=' + this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('enableAgmt', 'enable agmt', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this6.props.reload(_this6.props.suffix);

        _this6.props.addNotification('success', 'Successfully enabled replication agreement');
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this6.props.addNotification("error", "Failed to enabled replication agreement - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "disableAgmt",
    value: function disableAgmt(agmtName) {
      var _this7 = this;

      // Enable/disable agmt
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-agmt', 'disable', agmtName, '--suffix=' + this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('disableAgmt', 'Disable agmt', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this7.props.reload(_this7.props.suffix);

        _this7.props.addNotification('success', 'Successfully disabled replication agreement');
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this7.props.addNotification("error", "Failed to disable replication agreement - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "deleteAgmt",
    value: function deleteAgmt() {
      var _this8 = this;

      this.setState({
        deleteSpinning: true
      });
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-agmt', 'delete', '--suffix=' + this.props.suffix, this.state.agmtName];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('deleteAgmt', 'Delete agmt', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this8.props.reload(_this8.props.suffix);

        _this8.props.addNotification('success', 'Successfully deleted replication agreement');

        _this8.setState({
          showDeleteConfirm: false,
          deleteSpinning: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this8.props.addNotification("error", "Failed to delete replication agreement - ".concat(errMsg.desc));

        _this8.setState({
          showDeleteConfirm: false,
          deleteSpinning: false
        });
      });
    }
  }, {
    key: "createAgmt",
    value: function createAgmt() {
      var _this9 = this;

      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-agmt', 'create', this.state.agmtName, '--suffix=' + this.props.suffix, '--host=' + this.state.agmtHost, '--port=' + this.state.agmtPort, '--bind-method=' + this.state.agmtBindMethod, '--conn-protocol=' + this.state.agmtProtocol, '--bind-dn=' + this.state.agmtBindDN, '--bind-passwd=' + this.state.agmtBindPW]; // Handle Schedule

      if (!this.state.agmtSync) {
        var agmt_days = "";

        if (this.state.agmtSyncSun) {
          agmt_days += "0";
        }

        if (this.state.agmtSyncMon) {
          agmt_days += "1";
        }

        if (this.state.agmtSyncTue) {
          agmt_days += "2";
        }

        if (this.state.agmtSyncWed) {
          agmt_days += "3";
        }

        if (this.state.agmtSyncThu) {
          agmt_days += "4";
        }

        if (this.state.agmtSyncFri) {
          agmt_days += "5";
        }

        if (this.state.agmtSyncSat) {
          agmt_days += "6";
        }

        cmd.push('--schedule=' + this.state.agmtStartTime.replace(':', '') + "-" + this.state.agmtEndTime.replace(':', '') + " " + agmt_days);
      } // Handle fractional and stripped attributes


      if (this.state.agmtFracAttrs.length > 0) {
        cmd.push('--frac-list=' + this.state.agmtFracAttrs.join(' '));
      }

      if (this.state.agmtFracInitAttrs.length > 0) {
        cmd.push('--frac-list-total=' + this.state.agmtFracAttrs.join(' '));
      }

      if (this.state.agmtStripAttrs.length > 0) {
        cmd.push('--strip-list=' + this.state.agmtStripAttrs.join(' '));
      }

      this.setState({
        savingAgmt: true
      });
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('createAgmt', 'Create replication agreement', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this9.props.reload(_this9.props.suffix);

        if (_this9._mounted) {
          _this9.setState({
            savingAgmt: false,
            showCreateAgmtModal: false
          });
        }

        _this9.props.addNotification('success', 'Successfully created replication agreement');

        if (_this9.state.agmtInit == 'online-init') {
          _this9.initAgmt(_this9.state.agmtName);
        }
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this9.props.addNotification("error", "Failed to create replication agreement - ".concat(errMsg.desc));

        _this9.setState({
          savingAgmt: false
        });
      });
    }
  }, {
    key: "watchAgmtInit",
    value: function watchAgmtInit(agmtName, idx) {
      var _this10 = this;

      // Watch the init, then clear the interval index
      var status_cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-agmt', 'init-status', '--suffix=' + this.props.suffix, agmtName];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('watchAgmtInit', 'Get initialization status for agmt', status_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(status_cmd, {
        superuser: true,
        "err": "message"
      }).done(function (data) {
        var init_status = JSON.parse(data);

        if (init_status.startsWith('Agreement successfully initialized') || init_status.startsWith('Agreement initialization failed')) {
          // Either way we're done, stop watching the status
          clearInterval(_this10.state.agmtInitIntervals[idx]);
        }

        _this10.props.reload(_this10.props.suffix);
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this11 = this;

      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-right"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_replTables_jsx__WEBPACK_IMPORTED_MODULE_3__["ReplAgmtTable"], {
        rows: this.props.rows,
        edit: this.showEditAgmt,
        poke: this.pokeAgmt,
        init: this.showConfirmInitAgmt,
        enable: this.confirmToggle,
        delete: this.showConfirmDeleteAgmt
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top ds-container ds-inline"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Button"], {
        bsStyle: "primary",
        onClick: this.showCreateAgmtModal
      }, "Create Agreement"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Button"], {
        className: "ds-left-margin",
        bsStyle: "default",
        onClick: function onClick() {
          _this11.props.reload(_this11.props.suffix);
        }
      }, "Refresh Agreements")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_replModals_jsx__WEBPACK_IMPORTED_MODULE_4__["ReplAgmtModal"], {
        showModal: this.state.showCreateAgmtModal,
        closeHandler: this.closeCreateAgmtModal,
        handleChange: this.handleChange,
        handleStripChange: this.handleTAStripAttrChange,
        handleFracChange: this.handleTAFracAttrChange,
        handleFracInitChange: this.handleTAFracInitAttrChange,
        saveHandler: this.createAgmt,
        spinning: this.state.savingAgmt,
        agmtName: this.state.agmtName,
        agmtHost: this.state.agmtHost,
        agmtPort: this.state.agmtPort,
        agmtBindDN: this.state.agmtBindDN,
        agmtBindPW: this.state.agmtBindPW,
        agmtBindPWConfirm: this.state.agmtBindPWConfirm,
        agmtProtocol: this.state.agmtProtocol,
        agmtBindMethod: this.state.agmtBindMethod,
        agmtStripAttrs: this.state.agmtStripAttrs,
        agmtFracAttrs: this.state.agmtFracAttrs,
        agmtFracInitAttrs: this.state.agmtFracInitAttrs,
        agmtSync: this.state.agmtSync,
        agmtSyncMon: this.state.agmtSyncMon,
        agmtSyncTue: this.state.agmtSyncTue,
        agmtSyncWed: this.state.agmtSyncWed,
        agmtSyncThu: this.state.agmtSyncThu,
        agmtSyncFri: this.state.agmtSyncFri,
        agmtSyncSat: this.state.agmtSyncSat,
        agmtSyncSun: this.state.agmtSyncSun,
        agmtStartTime: this.state.agmtStartTime,
        agmtEndTime: this.state.agmtEndTime,
        availAttrs: this.props.attrs,
        error: this.state.errObj,
        errorMsg: this.state.modalMsg,
        errorScheduleMsg: this.state.modalScheduleMsg,
        saveOK: this.state.agmtSaveOK
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_replModals_jsx__WEBPACK_IMPORTED_MODULE_4__["ReplAgmtModal"], {
        showModal: this.state.showEditAgmtModal,
        closeHandler: this.closeEditAgmtModal,
        handleChange: this.handleChange,
        handleStripChange: this.handleTAStripAttrChangeEdit,
        handleFracChange: this.handleTAFracAttrChangeEdit,
        handleFracInitChange: this.handleTAFracInitAttrChangeEdit,
        saveHandler: this.saveAgmt,
        spinning: this.state.savingAgmt,
        agmtName: this.state.agmtName,
        agmtHost: this.state.agmtHost,
        agmtPort: this.state.agmtPort,
        agmtBindDN: this.state.agmtBindDN,
        agmtBindPW: this.state.agmtBindPW,
        agmtBindPWConfirm: this.state.agmtBindPWConfirm,
        agmtProtocol: this.state.agmtProtocol,
        agmtBindMethod: this.state.agmtBindMethod,
        agmtStripAttrs: this.state.agmtStripAttrs,
        agmtFracAttrs: this.state.agmtFracAttrs,
        agmtFracInitAttrs: this.state.agmtFracInitAttrs,
        agmtSync: this.state.agmtSync,
        agmtSyncMon: this.state.agmtSyncMon,
        agmtSyncTue: this.state.agmtSyncTue,
        agmtSyncWed: this.state.agmtSyncWed,
        agmtSyncThu: this.state.agmtSyncThu,
        agmtSyncFri: this.state.agmtSyncFri,
        agmtSyncSat: this.state.agmtSyncSat,
        agmtSyncSun: this.state.agmtSyncSun,
        agmtStartTime: this.state.agmtStartTime,
        agmtEndTime: this.state.agmtEndTime,
        availAttrs: this.props.attrs,
        error: this.state.errObj,
        errorMsg: this.state.modalMsg,
        errorScheduleMsg: this.state.modalScheduleMsg,
        saveOK: this.state.agmtSaveOK,
        edit: true
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["DoubleConfirmModal"], {
        showModal: this.state.showConfirmDeleteAgmt,
        closeHandler: this.closeConfirmDeleteAgmt,
        handleChange: this.handleModalChange,
        actionHandler: this.deleteAgmt,
        spinning: this.state.modalSpinning,
        item: this.state.agmtName,
        checked: this.state.modalChecked,
        mTitle: "Delete Replication Agreement",
        mMsg: "Are you sure you want to delete this replication agreement?",
        mSpinningMsg: "Deleting Replication Agreement ...",
        mBtnName: "Delete Agreement"
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["DoubleConfirmModal"], {
        showModal: this.state.showConfirmInitAgmt,
        closeHandler: this.closeConfirmInitAgmt,
        handleChange: this.handleModalChange,
        actionHandler: this.initAgmt,
        spinning: this.state.modalSpinning,
        item: this.state.agmtName,
        checked: this.state.modalChecked,
        mTitle: "Initialize Replication Agreement",
        mMsg: "Are you sure you want to initialize this replication agreement?",
        mSpinningMsg: "Initializing Replication Agreement ...",
        mBtnName: "Initialize Agreement"
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showConfirmEnableAgmt,
        closeHandler: this.closeConfirmEnableAgmt,
        actionFunc: this.enableAgmt,
        actionParam: this.state.agmtName,
        msg: "Are you sure you want to enable this replication agreement?",
        msgContent: this.state.agmtName
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showConfirmDisableAgmt,
        closeHandler: this.closeConfirmDisableAgmt,
        actionFunc: this.disableAgmt,
        actionParam: this.state.agmtName,
        msg: "Are you sure you want to disable this replication agreement?",
        msgContent: this.state.agmtName
      }));
    }
  }]);

  return ReplAgmts;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);
ReplAgmts.propTypes = {
  suffix: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  rows: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  attrs: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array
};
ReplAgmts.defaultProps = {
  serverId: "",
  suffix: "",
  rows: [],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["noop"],
  attrs: []
};

/***/ }),

/***/ "./src/lib/replication/replChangelog.jsx":
/*!***********************************************!*\
  !*** ./src/lib/replication/replChangelog.jsx ***!
  \***********************************************/
/*! exports provided: Changelog */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Changelog", function() { return Changelog; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }








var Changelog =
/*#__PURE__*/
function (_React$Component) {
  _inherits(Changelog, _React$Component);

  function Changelog(props) {
    var _this;

    _classCallCheck(this, Changelog);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(Changelog).call(this, props));
    _this.state = {
      loading: false,
      errObj: {},
      showConfirmDelete: false,
      // Changelog settings
      clDir: _this.props.clDir,
      clMaxEntries: _this.props.clMaxEntries,
      clMaxAge: _this.props.clMaxAge,
      clCompactInt: _this.props.clCompactInt,
      clTrimInt: _this.props.clTrimInt,
      clEncrypt: _this.props.clEncrypt,
      // Preserve original settings
      _clDir: _this.props.clDir,
      _clMaxEntries: _this.props.clMaxEntries,
      _clMaxAge: _this.props.clMaxAge,
      _clCompactInt: _this.props.clCompactInt,
      _clTrimInt: _this.props.clTrimInt,
      _clEncrypt: _this.props.clEncrypt
    };
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.saveSettings = _this.saveSettings.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.createChangelog = _this.createChangelog.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.confirmChangelogDelete = _this.confirmChangelogDelete.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmDelete = _this.closeConfirmDelete.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.deleteChangelog = _this.deleteChangelog.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(Changelog, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.props.enableTree();
    }
  }, {
    key: "createChangelog",
    value: function createChangelog() {
      var _this2 = this;

      this.setState({
        saving: true
      });
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'replication', 'create-changelog'];
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this2.props.reload();

        _this2.props.addNotification("success", "Successfully created replication changelog");

        _this2.setState({
          saving: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.props.reload();

        _this2.setState({
          saving: false
        });

        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this2.props.addNotification("error", "Error creating changelog - ".concat(msg));
      });
    }
  }, {
    key: "confirmChangelogDelete",
    value: function confirmChangelogDelete() {
      this.setState({
        showConfirmDelete: true
      });
    }
  }, {
    key: "closeConfirmDelete",
    value: function closeConfirmDelete() {
      this.setState({
        showConfirmDelete: false
      });
    }
  }, {
    key: "deleteChangelog",
    value: function deleteChangelog() {
      var _this3 = this;

      this.setState({
        saving: true
      });
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'replication', 'delete-changelog'];
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this3.props.reload();

        _this3.props.addNotification("success", "Successfully deleted replication changelog");

        _this3.setState({
          saving: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.reload();

        _this3.setState({
          saving: false
        });

        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this3.props.addNotification("error", "Error deleting changelog - ".concat(msg));
      });
    }
  }, {
    key: "saveSettings",
    value: function saveSettings() {
      var _this4 = this;

      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'replication', 'set-changelog'];

      if (this.state.clDir != this.state._clDir) {
        if (this.state.clDir == "") {
          // Changelog directory can not be empty
          var errObj = this.state.errObj;
          errObj["clDir"] = true;
          this.setState({
            errObj: errObj
          });
          return;
        }

        cmd.push("--cl-dir =" + this.state.clDir);
      }

      if (this.state.clMaxEntries != this.state._clMaxEntries) {
        cmd.push("--max-entries=" + this.state.clMaxEntries);
      }

      if (this.state.clMaxAge != this.state._clMaxAge) {
        cmd.push("--max-age=" + this.state.clMaxAge);
      }

      if (this.state.clCompactInt != this.state._clCompactInt) {
        cmd.push("--compact-interval=" + this.state.clCompactInt);
      }

      if (this.state.clTrimInt != this.state._clTrimInt) {
        cmd.push("--trim-interval=" + this.state.clTrimInt);
      }

      if (this.state.clEncrypt != this.state._clEncrypt) {// TODO - Not implemented in dsconf yet
        // cmd.push("--encrypt=" + this.state.clEncrypt);
      }

      if (cmd.length > 5) {
        this.setState({
          // Start the spinner
          saving: true
        });
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("saveSettings", "Applying replication changelog changes", cmd);
        var msg = "Successfully updated changelog configuration.";
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          "err": "message"
        }).done(function (content) {
          _this4.props.reload();

          _this4.props.addNotification("success", msg);

          _this4.setState({
            saving: false
          });
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this4.props.reload();

          _this4.setState({
            saving: false
          });

          var msg = errMsg.desc;

          if ('info' in errMsg) {
            msg = errMsg.desc + " - " + errMsg.info;
          }

          _this4.props.addNotification("error", "Error updating changelog configuration - ".concat(msg));
        });
      }
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      var _this$setState;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var valueErr = false;
      var errObj = this.state.errObj;

      if (e.target.id == "clDir" && value == "") {
        valueErr = true;
      }

      errObj[e.target.id] = valueErr;
      this.setState((_this$setState = {}, _defineProperty(_this$setState, e.target.id, value), _defineProperty(_this$setState, "errObj", errObj), _this$setState));
    }
  }, {
    key: "render",
    value: function render() {
      var clPage;

      if (this.state._clDir == "") {
        // No changelog, only show clDir and Create button
        clPage = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 12,
          className: "ds-word-wrap"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"], {
          className: "ds-suffix-header"
        }, "Replication Changelog", react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Icon"], {
          className: "ds-left-margin ds-refresh",
          type: "fa",
          name: "refresh",
          title: "Refresh changelog settings",
          onClick: this.props.reload
        })))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top-med ds-center"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null, "There is no Replication Changelog"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          className: "ds-margin-top-lg",
          title: "Create the replication changelog"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Button"], {
          bsStyle: "primary",
          onClick: this.createChangelog
        }, "Create Changelog"))));
      } else if (this.state.saving) {
        clPage = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top ds-loading-spinner ds-center"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Saving changelog configuration ..."), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Spinner"], {
          className: "ds-margin-top-lg",
          loading: true,
          size: "md"
        }));
      } else if (this.props.loading) {
        clPage = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-loading-spinner ds-center"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading changelog configuration ..."), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Spinner"], {
          className: "ds-margin-top-lg",
          loading: true,
          size: "md"
        }));
      } else {
        clPage = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 5,
          className: "ds-word-wrap"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Replication Changelog", react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Icon"], {
          className: "ds-left-margin ds-refresh",
          type: "fa",
          name: "refresh",
          title: "Refresh changelog settings",
          onClick: this.props.reload
        }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 7
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Button"], {
          className: "ds-float-right",
          bsStyle: "danger",
          onClick: this.confirmChangelogDelete
        }, "Delete Changelog"))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Form"], {
          horizontal: true
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          className: "ds-margin-top",
          title: "The filesystem location of the replication changelog database"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
          sm: 4
        }, "Changelog Directory"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 8
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
          value: this.state.clDir,
          id: "clDir",
          onChange: this.handleChange,
          className: this.state.errObj.clDir ? "ds-input-auto-bad" : "ds-input-auto"
        }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          className: "ds-margin-top",
          title: "Changelog trimming parameter.  Set the maximum number of changelog entries allowed in the database (nsslapd-changelogmaxentries)."
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
          sm: 4
        }, "Changelog Maximum Entries"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 8
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
          value: this.state.clMaxEntries,
          id: "clMaxEntries",
          onChange: this.handleChange,
          className: "ds-input-auto"
        }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          className: "ds-margin-top",
          title: "Changelog trimming parameter.  This set the maximum age of a changelog entry.  It is recommended to use the same value as the Replication Purge Delay.  (nsslapd-changelogmaxage)."
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
          sm: 4
        }, "Changelog Maximum Age"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 8
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
          value: this.state.clMaxAge,
          id: "clMaxAge",
          onChange: this.handleChange,
          className: "ds-input-auto"
        }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          className: "ds-margin-top",
          title: "The changelog trimming interval.  Set how often the changelog checks if there are entries that can be purged from the changelog based on the trimming parameters (nsslapd-changelogtrim-interval)."
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
          sm: 4
        }, "Changelog Trimming Interval"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 8
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
          value: this.state.clTrimInt,
          id: "clTrimInt",
          onChange: this.handleChange,
          className: "ds-input-auto"
        }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          className: "ds-margin-top",
          title: "The changelog compaction interval.  Set how often the changelog will compact itself, meaning remove empty/trimmed database slots.  The default is 30 days. (nsslapd-changelogcompactdb-interval)."
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
          sm: 4
        }, "Changelog Compaction Interval"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 8
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
          value: this.state.clCompactInt,
          id: "clCompactInt",
          onChange: this.handleChange,
          className: "ds-input-auto"
        }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          hidden: true,
          className: "ds-margin-top",
          title: "TLS must first be enabled in the server for change encryption to work.  Please consult Administration Guide for more details."
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
          sm: 4
        }, "Changelog Encryption"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 2
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
          id: "clEncrypt",
          checked: this.state.clEncrypt,
          onChange: this.handleChange
        }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          className: "ds-margin-top-lg"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 2
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Button"], {
          bsStyle: "primary",
          onClick: this.saveSettings
        }, "Save")))));
      }

      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, clPage, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_4__["ConfirmPopup"], {
        showModal: this.state.showConfirmDelete,
        closeHandler: this.closeConfirmDelete,
        actionFunc: this.deleteChangelog,
        msg: "Are you sure you want to delete the changelog?",
        msgContent: "This will invalidate all replication agreements, and they will need to be reinitialized."
      }));
    }
  }]);

  return Changelog;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);
Changelog.propTypes = {
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  clDir: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  clMaxEntries: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  clMaxAge: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  clCompactInt: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  clTrimInt: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  clEncrypt: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
Changelog.defaultProps = {
  serverId: "",
  clDir: "",
  clMaxEntries: "",
  clMaxAge: "",
  clCompactInt: "",
  clTrimInt: "",
  clEncrypt: false,
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["noop"],
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["noop"],
  enableTree: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["noop"]
};

/***/ }),

/***/ "./src/lib/replication/replConfig.jsx":
/*!********************************************!*\
  !*** ./src/lib/replication/replConfig.jsx ***!
  \********************************************/
/*! exports provided: ReplConfig */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReplConfig", function() { return ReplConfig; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _customCollapse_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../customCollapse.jsx */ "./src/lib/customCollapse.jsx");
/* harmony import */ var _replTables_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./replTables.jsx */ "./src/lib/replication/replTables.jsx");
/* harmony import */ var _replModals_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./replModals.jsx */ "./src/lib/replication/replModals.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_8__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }








 // import PropTypes from "prop-types";


var ReplConfig =
/*#__PURE__*/
function (_React$Component) {
  _inherits(ReplConfig, _React$Component);

  function ReplConfig(props) {
    var _this;

    _classCallCheck(this, ReplConfig);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(ReplConfig).call(this, props));
    _this.state = {
      saving: false,
      showConfirmManagerDelete: false,
      showAddManagerModal: false,
      showPromoteDemoteModal: false,
      addManagerSpinning: false,
      roleChangeSpinning: false,
      manager: "cn=replication manager,cn=config",
      manager_passwd: "",
      manager_passwd_confirm: "",
      newRole: _this.props.role == "Master" ? "Hub" : "Master",
      newRID: "1",
      modalChecked: false,
      errObj: {},
      // Config Settings
      nsds5replicabinddn: _this.props.data['nsds5replicabinddn'],
      nsds5replicabinddngroup: _this.props.data['nsds5replicabinddngroup'],
      nsds5replicabinddngroupcheckinterval: _this.props.data['nsds5replicabinddngroupcheckinterval'],
      nsds5replicareleasetimeout: _this.props.data['nsds5replicareleasetimeout'],
      nsds5replicapurgedelay: _this.props.data['nsds5replicapurgedelay'],
      nsds5replicatombstonepurgeinterval: _this.props.data['nsds5replicatombstonepurgeinterval'],
      nsds5replicaprecisetombstonepurging: _this.props.data['nsds5replicaprecisetombstonepurging'],
      nsds5replicaprotocoltimeout: _this.props.data['nsds5replicaprotocoltimeout'],
      nsds5replicabackoffmin: _this.props.data['nsds5replicabackoffmin'],
      nsds5replicabackoffmax: _this.props.data['nsds5replicabackoffmax'],
      // Original settings
      _nsds5replicabinddn: _this.props.data['nsds5replicabinddn'],
      _nsds5replicabinddngroup: _this.props.data['nsds5replicabinddngroup'],
      _nsds5replicabinddngroupcheckinterval: _this.props.data['nsds5replicabinddngroupcheckinterval'],
      _nsds5replicareleasetimeout: _this.props.data['nsds5replicareleasetimeout'],
      _nsds5replicapurgedelay: _this.props.data['nsds5replicapurgedelay'],
      _nsds5replicatombstonepurgeinterval: _this.props.data['nsds5replicatombstonepurgeinterval'],
      _nsds5replicaprecisetombstonepurging: _this.props.data['nsds5replicaprecisetombstonepurging'],
      _nsds5replicaprotocoltimeout: _this.props.data['nsds5replicaprotocoltimeout'],
      _nsds5replicabackoffmin: _this.props.data['nsds5replicabackoffmin'],
      _nsds5replicabackoffmax: _this.props.data['nsds5replicabackoffmax']
    };
    _this.confirmManagerDelete = _this.confirmManagerDelete.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmManagerDelete = _this.closeConfirmManagerDelete.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.deleteManager = _this.deleteManager.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showAddManager = _this.showAddManager.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeAddManagerModal = _this.closeAddManagerModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.addManager = _this.addManager.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleManagerChange = _this.handleManagerChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showPromoteDemoteModal = _this.showPromoteDemoteModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closePromoteDemoteModal = _this.closePromoteDemoteModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.doRoleChange = _this.doRoleChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.saveConfig = _this.saveConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(ReplConfig, [{
    key: "doRoleChange",
    value: function doRoleChange(changeType) {
      var _this2 = this;

      var action = "demote";

      if (changeType == "Promoting") {
        action = "promote";
      }

      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'replication', action, '--suffix=' + this.props.suffix, "--newrole=" + this.state.newRole];

      if (this.state.newRole == "Master") {
        var ridNum = parseInt(this.state.newRID, 10);

        if (ridNum < 1 || ridNum >= 65535) {
          this.props.addNotification("error", "A Master replica requires a unique numerical identifier.  Please enter an ID between 1 and 65534");
          return;
        }

        cmd.push("--replica-id=" + this.state.newRID);
      }

      this.setState({
        roleChangeSpinning: true
      });
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])('doRoleChange', 'change replica role', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this2.props.reload();

        _this2.props.addNotification("success", "Successfully ".concat(action, "d replica to a ").concat(_this2.state.newRole));

        _this2.setState({
          roleChangeSpinning: false,
          showPromoteDemoteModal: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.props.reload();

        _this2.props.addNotification("error", "Failed to ".concat(action, " replica - ").concat(errMsg.desc));

        _this2.setState({
          roleChangeSpinning: false,
          showPromoteDemoteModal: false
        });
      });
    }
  }, {
    key: "closePromoteDemoteModal",
    value: function closePromoteDemoteModal() {
      this.setState({
        showPromoteDemoteModal: false
      });
    }
  }, {
    key: "showPromoteDemoteModal",
    value: function showPromoteDemoteModal() {
      this.setState({
        showPromoteDemoteModal: true,
        modalChecked: false
      });
    }
  }, {
    key: "closeAddManagerModal",
    value: function closeAddManagerModal() {
      this.setState({
        showAddManagerModal: false
      });
    }
  }, {
    key: "showAddManager",
    value: function showAddManager() {
      this.setState({
        showAddManagerModal: true,
        manager: "cn=replication manager,cn=config",
        manager_passwd: "",
        manager_passwd_confirm: "",
        errObj: {
          manager_passwd: true,
          manager_passwd_confirm: true
        }
      });
    }
  }, {
    key: "addManager",
    value: function addManager() {
      var _this3 = this;

      // Validate DN
      if (!Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["valid_dn"])(this.state.manager)) {
        this.props.addNotification("error", "Invalid DN for the Replication Manager: ".concat(this.state.manager));
        return;
      }

      if (this.state.manager_passwd == "" || this.state.manager_passwd_confirm == "") {
        this.props.addNotification("error", "You must provide a password for the Replication Manager");
        return;
      }

      if (this.state.manager_passwd != this.state.manager_passwd_confirm) {
        this.props.addNotification("error", "Passwords do not match");
        return;
      }

      this.setState({
        addManagerSpinning: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "replication", "create-manager", "--suffix=" + this.props.suffix, "--name=" + this.state.manager, "--passwd=" + this.state.manager_passwd];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("addManager", "Adding Replication Manager", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this3.props.reloadConfig(_this3.props.suffix);

        _this3.props.addNotification("success", "Successfully added Replication Manager");

        _this3.setState({
          addManagerSpinning: false,
          showAddManagerModal: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.reloadConfig(_this3.props.suffix);

        _this3.props.addNotification("error", "Failure adding Replication Manager - ".concat(errMsg.desc));

        _this3.setState({
          addManagerSpinning: false,
          showAddManagerModal: false
        });
      });
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      var _this$setState;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var valueErr = false;
      var errObj = this.state.errObj;

      if (value == "") {
        valueErr = true;
      }

      errObj[e.target.id] = valueErr;
      this.setState((_this$setState = {}, _defineProperty(_this$setState, e.target.id, value), _defineProperty(_this$setState, "errObj", errObj), _this$setState));
    }
  }, {
    key: "handleManagerChange",
    value: function handleManagerChange(e) {
      var _this$setState2;

      var value = e.target.value;
      var attr = e.target.id;
      var valueErr = false;
      var errObj = this.state.errObj;

      if (value == "") {
        valueErr = true;
      } // Handle password chnages


      if (attr == "manager_passwd") {
        if (value != this.state.manager_passwd_confirm) {
          // No match
          valueErr = true;
        } else {
          errObj[attr] = false;
          errObj['manager_passwd_confirm'] = false;
        }
      } else if (attr == "manager_passwd_confirm") {
        if (value != this.state.manager_passwd) {
          // No match
          valueErr = true;
        } else {
          errObj[attr] = false;
          errObj['manager_passwd'] = false;
        }
      }

      errObj[attr] = valueErr;
      this.setState((_this$setState2 = {}, _defineProperty(_this$setState2, attr, value), _defineProperty(_this$setState2, "errObj", errObj), _this$setState2));
    }
  }, {
    key: "confirmManagerDelete",
    value: function confirmManagerDelete(item) {
      this.setState({
        showConfirmManagerDelete: true,
        manager: item.name
      });
    }
  }, {
    key: "closeConfirmManagerDelete",
    value: function closeConfirmManagerDelete() {
      this.setState({
        showConfirmManagerDelete: false,
        manager: ""
      });
    }
  }, {
    key: "deleteManager",
    value: function deleteManager(dn) {
      var _this4 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "replication", "delete-manager", "--suffix=" + this.props.suffix, "--name=" + dn];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("deleteManager", "Deleting Replication Manager", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this4.props.reloadConfig(_this4.props.suffix);

        _this4.props.addNotification("success", "Successfully removed Replication Manager");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this4.props.reloadConfig(_this4.props.suffix);

        _this4.props.addNotification("error", "Failure removing Replication Manager - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "saveConfig",
    value: function saveConfig() {
      var _this5 = this;

      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'replication', 'set', '--suffix=' + this.props.suffix];

      if (this.state.nsds5replicabackoffmax != this.state._nsds5replicabackoffmax) {
        cmd.push("--repl-backoff-max=" + this.state.nsds5replicabackoffmax);
      }

      if (this.state.nsds5replicabackoffmin != this.state._nsds5replicabackoffmin) {
        cmd.push("--repl-backoff-min=" + this.state.nsds5replicabackoffmin);
      }

      if (this.state.nsds5replicaprotocoltimeout != this.state._nsds5replicaprotocoltimeout) {
        cmd.push("--repl-protocol-timeout=" + this.state.nsds5replicaprotocoltimeout);
      }

      if (this.state.nsds5replicaprecisetombstonepurging != this.state._nsds5replicaprecisetombstonepurging) {
        if (this.state.nsds5replicaprecisetombstonepurging) {
          cmd.push("--repl-fast-tombstone-purging=on");
        } else {
          cmd.push("--repl-fast-tombstone-purging=off");
        }
      }

      if (this.state.nsds5replicatombstonepurgeinterval != this.state._nsds5replicatombstonepurgeinterval) {
        cmd.push("--repl-tombstone-purge-interval=" + this.state.nsds5replicatombstonepurgeinterval);
      }

      if (this.state.nsds5replicabinddngroup != this.state._nsds5replicabinddngroup) {
        cmd.push("--repl-bind-group=" + this.state.nsds5replicabinddngroup);
      }

      if (this.state.nsds5replicabinddngroupcheckinterval != this.state._nsds5replicabinddngroupcheckinterval) {
        cmd.push("--repl-bind-group-interval=" + this.state.nsds5replicabinddngroupcheckinterval);
      }

      if (this.state.nsds5replicareleasetimeout != this.state._nsds5replicareleasetimeout) {
        cmd.push("--repl-release-timeout=" + this.state.nsds5replicareleasetimeout);
      }

      if (this.state.nsds5replicapurgedelay != this.state._nsds5replicapurgedelay) {
        cmd.push("--repl-purge-delay=" + this.state.nsds5replicapurgedelay);
      }

      if (cmd.length > 6) {
        this.setState({
          // Start the spinner
          saving: true
        });
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("saveConfig", "Applying replication changes", cmd);
        var msg = "Successfully updated replication configuration.";
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          "err": "message"
        }).done(function (content) {
          _this5.props.reloadConfig(_this5.props.suffix);

          _this5.props.addNotification("success", msg);

          _this5.setState({
            saving: false
          });
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this5.props.reloadConfig(_this5.props.suffix);

          _this5.setState({
            saving: false
          });

          var msg = errMsg.desc;

          if ('info' in errMsg) {
            msg = errMsg.desc + " - " + errMsg.info;
          }

          _this5.props.addNotification("error", "Error updating replication configuration - ".concat(msg));
        });
      }
    }
  }, {
    key: "render",
    value: function render() {
      var content = "";
      var roleButton = "";
      var manager_rows = [];
      var _iteratorNormalCompletion = true;
      var _didIteratorError = false;
      var _iteratorError = undefined;

      try {
        for (var _iterator = this.props.data.nsds5replicabinddn[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
          var row = _step.value;
          manager_rows.push({
            'name': row
          });
        }
      } catch (err) {
        _didIteratorError = true;
        _iteratorError = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion && _iterator.return != null) {
            _iterator.return();
          }
        } finally {
          if (_didIteratorError) {
            throw _iteratorError;
          }
        }
      }

      if (this.props.role == "Master") {
        roleButton = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Button"], {
          bsStyle: "primary",
          onClick: this.showPromoteDemoteModal,
          title: "Demote this Master replica to a Hub or Consumer",
          className: "ds-inline-btn"
        }, "Demote");
      } else if (this.props.role == "Hub") {
        roleButton = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Button"], {
          bsStyle: "primary",
          onClick: this.showPromoteDemoteModal,
          title: "Promote or Demote this Hub replica to a Master or Consumer",
          className: "ds-inline-btn"
        }, "Promote/Demote");
      } else {
        // Consumer
        roleButton = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Button"], {
          bsStyle: "primary",
          onClick: this.showPromoteDemoteModal,
          title: "Promte this Consumer replica to a Master or Hub",
          className: "ds-inline-btn"
        }, "Promote");
      }

      if (this.state.saving) {
        content = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top-xxlg ds-loading-spinner-tree ds-center"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Saving replication configuration ..."), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Spinner"], {
          loading: true,
          size: "md"
        }));
      } else {
        content = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top-xxlg ds-left-margin"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Form"], {
          horizontal: true
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], {
          className: "ds-margin-top-xlg"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          sm: 2
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"], null, "Replica Role")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          sm: 6
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
          type: "text",
          defaultValue: this.props.role,
          size: "10",
          disabled: true
        }), roleButton)), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], {
          className: "ds-margin-top"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          sm: 2
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"], null, "Replica ID")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          sm: 4
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
          type: "text",
          defaultValue: this.props.data.nsds5replicaid,
          size: "10",
          disabled: true
        }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], {
          className: "ds-margin-top"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          sm: 9
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_replTables_jsx__WEBPACK_IMPORTED_MODULE_5__["ManagerTable"], {
          rows: manager_rows,
          confirmDelete: this.confirmManagerDelete
        }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], {
          className: "ds-margin-top"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          sm: 4
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Button"], {
          bsStyle: "primary",
          onClick: this.showAddManager
        }, "Add Replication Manager"))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_customCollapse_jsx__WEBPACK_IMPORTED_MODULE_4__["default"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-left"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], {
          className: "ds-margin-top-lg",
          title: "The DN of the replication manager"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"],
          sm: 4
        }, "Bind DN Group"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          sm: 6
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormControl"], {
          id: "nsds5replicabinddngroup",
          type: "text",
          defaultValue: this.state.nsds5replicabinddngroup,
          onChange: this.handleChange
        }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], {
          className: "ds-margin-top",
          title: "The interval to check for any changes in the group memebrship specified in the Bind DN Group and automatically rebuilds the list for the replication managers accordingly.  (nsds5replicabinddngroupcheckinterval)."
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"],
          sm: 4
        }, "Bind DN Group Check Interval"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          sm: 6
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormControl"], {
          id: "nsds5replicabinddngroupcheckinterval",
          type: "text",
          defaultValue: this.state.nsds5replicabinddngroupcheckinterval,
          onChange: this.handleChange
        }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], {
          className: "ds-margin-top",
          title: "This controls the maximum age of deleted entries (tombstone entries), and entry state information.  (nsds5replicapurgedelay)."
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"],
          sm: 4
        }, "Purge Delay"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          sm: 6
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormControl"], {
          id: "nsds5replicapurgedelay",
          type: "text",
          defaultValue: this.state.nsds5replicapurgedelay,
          onChange: this.handleChange
        }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], {
          className: "ds-margin-top",
          title: "This attribute specifies the time interval in seconds between purge operation cycles.  (nsds5replicatombstonepurgeinterval)."
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"],
          sm: 4
        }, "Tombstone Purge Interval"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          sm: 6
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormControl"], {
          id: "nsds5replicatombstonepurgeinterval",
          type: "text",
          defaultValue: this.state.nsds5replicatombstonepurgeinterval,
          onChange: this.handleChange
        }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], {
          className: "ds-margin-top",
          title: "A time limit (in seconds) that tells a replication session to yield if other replicas are trying to acquire this one (nsds5replicareleasetimeout)."
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"],
          sm: 4
        }, "Replica Release Timeout"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          sm: 6
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormControl"], {
          id: "nsds5replicareleasetimeout",
          type: "text",
          defaultValue: this.state.nsds5replicareleasetimeout,
          onChange: this.handleChange
        }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], {
          className: "ds-margin-top",
          title: "A timeout on how long to wait before stopping a replication session when the server is being stopped, replication is being disabled, or when removing a replication agreement. (nsds5replicaprotocoltimeout)."
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"],
          sm: 4
        }, "Replication Timeout"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          sm: 6
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormControl"], {
          id: "nsds5replicaprotocoltimeout",
          type: "text",
          defaultValue: this.state.nsds5replicaprotocoltimeout,
          onChange: this.handleChange
        }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], {
          className: "ds-margin-top",
          title: "This is the minimum amount of time in seconds that a replication will go into a backoff state  (nsds5replicabackoffmin)."
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"],
          sm: 4
        }, "Back Off Minimum"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          sm: 6
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormControl"], {
          id: "nsds5replicabackoffmin",
          type: "text",
          defaultValue: this.state.nsds5replicabackoffmin,
          onChange: this.handleChange
        }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], {
          className: "ds-margin-top",
          title: "This is the maximum amount of time in seconds that a replication will go into a backoff state  (nsds5replicabackoffmax)."
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"],
          sm: 4
        }, "Back Off Maximum"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          sm: 6
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormControl"], {
          id: "nsds5replicabackoffmax",
          type: "text",
          defaultValue: this.state.nsds5replicabackoffmax,
          onChange: this.handleChange
        }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], {
          className: "ds-margin-top",
          title: "Enables faster tombstone purging (nsds5replicaprecisetombstonepurging)"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"],
          sm: 4
        }, "Fast Tombstone Purging"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          sm: 6
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Checkbox"], {
          id: "nsds5replicaprecisetombstonepurging",
          defaultChecked: this.props.data.nsds5replicaprecisetombstonepurging,
          onChange: this.handleChange
        }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], {
          className: "ds-margin-top-lg"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"],
          sm: 4
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Button"], {
          bsStyle: "primary",
          onClick: this.saveConfig
        }, "Save Configuration"))))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_3__["ConfirmPopup"], {
          showModal: this.state.showConfirmManagerDelete,
          closeHandler: this.closeConfirmManagerDelete,
          actionFunc: this.deleteManager,
          actionParam: this.state.manager,
          msg: "Are you sure you want to remove this Replication Manager?",
          msgContent: this.state.manager
        }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_replModals_jsx__WEBPACK_IMPORTED_MODULE_6__["AddManagerModal"], {
          showModal: this.state.showAddManagerModal,
          closeHandler: this.closeAddManagerModal,
          handleChange: this.handleManagerChange,
          saveHandler: this.addManager,
          spinning: this.state.addManagerSpinning,
          error: this.state.errObj
        }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_replModals_jsx__WEBPACK_IMPORTED_MODULE_6__["ChangeReplRoleModal"], {
          showModal: this.state.showPromoteDemoteModal,
          closeHandler: this.closePromoteDemoteModal,
          handleChange: this.handleChange,
          saveHandler: this.doRoleChange,
          spinning: this.state.roleChangeSpinning,
          role: this.props.role,
          newRole: this.state.newRole,
          checked: this.state.modalChecked
        }));
      }

      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, content);
    }
  }]);

  return ReplConfig;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

/***/ }),

/***/ "./src/lib/replication/replModals.jsx":
/*!********************************************!*\
  !*** ./src/lib/replication/replModals.jsx ***!
  \********************************************/
/*! exports provided: WinsyncAgmtModal, ReplAgmtModal, ChangeReplRoleModal, AddManagerModal, EnableReplModal, ExportModal */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WinsyncAgmtModal", function() { return WinsyncAgmtModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReplAgmtModal", function() { return ReplAgmtModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChangeReplRoleModal", function() { return ChangeReplRoleModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AddManagerModal", function() { return AddManagerModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EnableReplModal", function() { return EnableReplModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExportModal", function() { return ExportModal; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _customCollapse_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../customCollapse.jsx */ "./src/lib/customCollapse.jsx");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_5__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }







var WinsyncAgmtModal =
/*#__PURE__*/
function (_React$Component) {
  _inherits(WinsyncAgmtModal, _React$Component);

  function WinsyncAgmtModal() {
    _classCallCheck(this, WinsyncAgmtModal);

    return _possibleConstructorReturn(this, _getPrototypeOf(WinsyncAgmtModal).apply(this, arguments));
  }

  _createClass(WinsyncAgmtModal, [{
    key: "handleNavSelect",
    value: function handleNavSelect(key) {
      this.setState({
        activeKey: key
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this$props = this.props,
          showModal = _this$props.showModal,
          closeHandler = _this$props.closeHandler,
          saveHandler = _this$props.saveHandler,
          handleChange = _this$props.handleChange,
          handleFracChange = _this$props.handleFracChange,
          spinning = _this$props.spinning,
          agmtName = _this$props.agmtName,
          agmtHost = _this$props.agmtHost,
          agmtPort = _this$props.agmtPort,
          agmtProtocol = _this$props.agmtProtocol,
          agmtBindDN = _this$props.agmtBindDN,
          agmtBindPW = _this$props.agmtBindPW,
          agmtBindPWConfirm = _this$props.agmtBindPWConfirm,
          agmtFracAttrs = _this$props.agmtFracAttrs,
          agmtSync = _this$props.agmtSync,
          agmtSyncMon = _this$props.agmtSyncMon,
          agmtSyncTue = _this$props.agmtSyncTue,
          agmtSyncWed = _this$props.agmtSyncWed,
          agmtSyncThu = _this$props.agmtSyncThu,
          agmtSyncFri = _this$props.agmtSyncFri,
          agmtSyncSat = _this$props.agmtSyncSat,
          agmtSyncSun = _this$props.agmtSyncSun,
          agmtStartTime = _this$props.agmtStartTime,
          agmtEndTime = _this$props.agmtEndTime,
          agmtSyncGroups = _this$props.agmtSyncGroups,
          agmtSyncUsers = _this$props.agmtSyncUsers,
          agmtWinDomain = _this$props.agmtWinDomain,
          agmtWinSubtree = _this$props.agmtWinSubtree,
          agmtDSSubtree = _this$props.agmtDSSubtree,
          agmtOneWaySync = _this$props.agmtOneWaySync,
          agmtSyncInterval = _this$props.agmtSyncInterval,
          availAttrs = _this$props.availAttrs,
          error = _this$props.error,
          errorMsg = _this$props.errorMsg,
          errorScheduleMsg = _this$props.errorScheduleMsg;
      var spinner = "";
      var saveDisabled = !this.props.saveOK;
      var title = "Create";
      var initRow = "";
      var errMsgClass = "ds-center ds-modal-error";
      var errMsg = errorMsg;
      var name = "agmt-modal";

      if (this.props.edit) {
        title = "Edit";
        name = "agmt-modal-edit";
      } else {
        initRow = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
          className: "ds-margin-top"
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
          sm: 4
        }, "Consumer Initialization"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
          sm: 8
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
          className: "btn btn-default dropdown",
          id: "agmtInit",
          name: name,
          onChange: handleChange
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
          value: "noinit"
        }, "Do Not Initialize"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
          value: "online-init"
        }, "Do Online Initialization"))));
      }

      if (errMsg == "") {
        // To keep the modal nice and stable during input validation
        // We need text that is invisible to keep the modal input from
        // jumping around
        errMsgClass = "ds-center ds-clear-text";
        errMsg = "No errors";
      }

      if (spinning) {
        spinner = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-margin-top ds-modal-spinner"
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Spinner"], {
          loading: true,
          inline: true,
          size: "md"
        }), "Creating winsync agreement ..."));
      }

      var scheduleRow = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-left-indent-md"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top-lg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("i", null, "Custom Synchronization Schedule"))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-indent"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSyncMon",
        onChange: handleChange,
        name: name,
        title: "Monday",
        defaultChecked: agmtSyncMon
      }, "Mon")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSyncWed",
        onChange: handleChange,
        title: "Wednesday",
        name: name,
        defaultChecked: agmtSyncWed
      }, "Wed")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSyncFri",
        onChange: handleChange,
        title: "Friday",
        name: name,
        defaultChecked: agmtSyncFri
      }, "Fri")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSyncSun",
        onChange: handleChange,
        title: "Sunday",
        name: name,
        defaultChecked: agmtSyncSun
      }, "Sun"))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSyncTue",
        onChange: handleChange,
        title: "Tuesday",
        name: name,
        defaultChecked: agmtSyncTue
      }, "Tue")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSyncThu",
        onChange: handleChange,
        title: "Thursday",
        name: name,
        defaultChecked: agmtSyncThu
      }, "Thu")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSyncSat",
        onChange: handleChange,
        title: "Saturday",
        name: name,
        defaultChecked: agmtSyncSat
      }, "Sat")))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 10
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", {
        className: "ds-modal-error"
      }, errorScheduleMsg))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "Time to start initiating replication sessions"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Replication Start Time"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "agmtStartTime",
        type: "time",
        name: name,
        className: error.agmtStartTime ? "ds-input-bad" : "",
        onChange: handleChange,
        defaultValue: agmtStartTime
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "Time to initiating replication sessions"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Replication End Time"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "agmtEndTime",
        type: "time",
        name: name,
        className: error.agmtEndTime ? "ds-input-bad" : "",
        onChange: handleChange,
        defaultValue: agmtEndTime
      }))));

      if (agmtSync) {
        scheduleRow = "";
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, title, " Winsync Agreement")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 10
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", {
        className: errMsgClass
      }, errMsg))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Agreement Name"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "agmtName",
        type: "text",
        name: name,
        className: error.agmtName ? "ds-input-bad" : "",
        onChange: handleChange,
        defaultValue: agmtName,
        disabled: this.props.edit
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Windows AD Host"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "agmtHost",
        type: "text",
        name: name,
        className: error.agmtHost ? "ds-input-bad" : "",
        onChange: handleChange,
        defaultValue: agmtHost
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Windows AD Port"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "agmtPort",
        type: "text",
        name: name,
        className: error.agmtPort ? "ds-input-bad" : "",
        onChange: handleChange,
        defaultValue: agmtPort
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Bind DN"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "agmtBindDN",
        type: "text",
        name: name,
        className: error.agmtBindDN ? "ds-input-bad" : "",
        onChange: handleChange,
        autoComplete: "false",
        defaultValue: agmtBindDN
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Bind Password"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "agmtBindPW",
        type: "password",
        name: name,
        className: error.agmtBindPW ? "ds-input-bad" : "",
        onChange: handleChange,
        autoComplete: "new-password",
        defaultValue: agmtBindPW
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Confirm Password"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "agmtBindPWConfirm",
        type: "password",
        name: name,
        className: error.agmtBindPWConfirm ? "ds-input-bad" : "",
        onChange: handleChange,
        autoComplete: "new-password",
        defaultValue: agmtBindPWConfirm
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Windows Domain Name"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        id: "agmtWinDomain",
        name: name,
        className: error.agmtWinDomain ? "ds-input-bad" : "",
        onChange: handleChange,
        defaultValue: agmtWinDomain
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "The Active Directory subtree to synchronize"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Windows Subtree"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        id: "agmtWinSubtree",
        name: name,
        className: error.agmtWinSubtree ? "ds-input-bad" : "",
        onChange: handleChange,
        defaultValue: agmtWinSubtree,
        placeholder: "e.g. cn=Users,dc=domain,dc=com"
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "Directory Server subtree to synchronize"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "DS Subtree"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        id: "agmtDSSubtree",
        name: name,
        className: error.agmtDSSubtree ? "ds-input-bad" : "",
        onChange: handleChange,
        defaultValue: agmtDSSubtree,
        placeholder: "e.g. ou=People,dc=domain,dc=com"
      }))), initRow, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_customCollapse_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], {
        className: "ds-margin-top",
        textOpened: "Hide Advanced Settings",
        textClosed: "Show Advanced Setting"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-left"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Connection Protocol"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
        className: "btn btn-default dropdown",
        id: "agmtProtocol",
        defaultValue: agmtProtocol,
        name: name,
        onChange: handleChange
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "LDAPS"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
        title: "Currently not recommended"
      }, "StartTLS")))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Synchronization Direction"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
        className: "btn btn-default dropdown",
        defaultValue: agmtOneWaySync,
        id: "agmtOneWaySync",
        name: name,
        onChange: handleChange
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
        title: "Synchronization in both directions (default behavior)."
      }, "both"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
        title: "Only synchronize Directory Server updates to Windows."
      }, "toWindows"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
        title: "Only synchronize Windows updates to Directory Server."
      }, "fromWindows")))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "The interval to check for updates on Windows.  Default is 300 seconds"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Synchronization Interval"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        id: "agmtSyncInterval",
        name: name,
        className: error.agmtSyncInterval ? "ds-input-bad" : "",
        onChange: handleChange,
        defaultValue: agmtSyncInterval
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "Attribute to exclude from replication"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Exclude Attributes"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4__["Typeahead"], {
        multiple: true,
        onChange: handleFracChange,
        selected: agmtFracAttrs,
        options: availAttrs,
        name: name,
        newSelectionPrefix: "Add a attribute: ",
        placeholder: "Start typing an attribute...",
        id: "agmtFracAttrs"
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top-med"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSyncGroups",
        onChange: handleChange,
        name: name,
        defaultChecked: agmtSyncGroups
      }, "Synchronize New Windows Groups"))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSyncUsers",
        onChange: handleChange,
        name: name,
        defaultChecked: agmtSyncUsers
      }, "Synchronize New Windows Users"))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSync",
        defaultChecked: agmtSync,
        onChange: handleChange,
        name: name,
        title: "Always keep replication in synchronization, or use a specific schedule by unchecking the box."
      }, "Keep Replication In Constant Synchronization"))), scheduleRow)), spinner)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler,
        disabled: saveDisabled
      }, "Save Agreement"))));
    }
  }]);

  return WinsyncAgmtModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
var ReplAgmtModal =
/*#__PURE__*/
function (_React$Component2) {
  _inherits(ReplAgmtModal, _React$Component2);

  function ReplAgmtModal() {
    _classCallCheck(this, ReplAgmtModal);

    return _possibleConstructorReturn(this, _getPrototypeOf(ReplAgmtModal).apply(this, arguments));
  }

  _createClass(ReplAgmtModal, [{
    key: "handleNavSelect",
    value: function handleNavSelect(key) {
      this.setState({
        activeKey: key
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this$props2 = this.props,
          showModal = _this$props2.showModal,
          closeHandler = _this$props2.closeHandler,
          saveHandler = _this$props2.saveHandler,
          handleChange = _this$props2.handleChange,
          handleStripChange = _this$props2.handleStripChange,
          handleFracChange = _this$props2.handleFracChange,
          handleFracInitChange = _this$props2.handleFracInitChange,
          spinning = _this$props2.spinning,
          agmtName = _this$props2.agmtName,
          agmtHost = _this$props2.agmtHost,
          agmtPort = _this$props2.agmtPort,
          agmtProtocol = _this$props2.agmtProtocol,
          agmtBindMethod = _this$props2.agmtBindMethod,
          agmtBindDN = _this$props2.agmtBindDN,
          agmtBindPW = _this$props2.agmtBindPW,
          agmtBindPWConfirm = _this$props2.agmtBindPWConfirm,
          agmtStripAttrs = _this$props2.agmtStripAttrs,
          agmtFracAttrs = _this$props2.agmtFracAttrs,
          agmtFracInitAttrs = _this$props2.agmtFracInitAttrs,
          agmtSync = _this$props2.agmtSync,
          agmtSyncMon = _this$props2.agmtSyncMon,
          agmtSyncTue = _this$props2.agmtSyncTue,
          agmtSyncWed = _this$props2.agmtSyncWed,
          agmtSyncThu = _this$props2.agmtSyncThu,
          agmtSyncFri = _this$props2.agmtSyncFri,
          agmtSyncSat = _this$props2.agmtSyncSat,
          agmtSyncSun = _this$props2.agmtSyncSun,
          agmtStartTime = _this$props2.agmtStartTime,
          agmtEndTime = _this$props2.agmtEndTime,
          availAttrs = _this$props2.availAttrs,
          error = _this$props2.error,
          errorMsg = _this$props2.errorMsg,
          errorScheduleMsg = _this$props2.errorScheduleMsg;
      var spinner = "";
      var saveDisabled = !this.props.saveOK;
      var title = "Create";
      var initRow = "";
      var errMsgClass = "ds-center ds-modal-error";
      var errMsg = errorMsg;
      var name = "agmt-modal";

      if (this.props.edit) {
        title = "Edit";
        name = "agmt-modal-edit";
      } else {
        initRow = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
          className: "ds-margin-top"
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
          sm: 4
        }, "Consumer Initialization"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
          sm: 8
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
          className: "btn btn-default dropdown",
          id: "agmtInit",
          name: name,
          onChange: handleChange
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
          value: "noinit"
        }, "Do Not Initialize"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
          value: "online-init"
        }, "Do Online Initialization"))));
      }

      if (errMsg == "") {
        // To keep the modal nice and stable during input validation
        // We need text that is invisible to keep the modal input from
        // jumping around
        errMsgClass = "ds-center ds-clear-text";
        errMsg = "No errors";
      }

      if (spinning) {
        spinner = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-margin-top ds-modal-spinner"
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Spinner"], {
          loading: true,
          inline: true,
          size: "md"
        }), "Creating replication agreement ..."));
      }

      var scheduleRow = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-left-indent-md"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top-lg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("i", null, "Custom Synchronization Schedule"))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-indent"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSyncMon",
        onChange: handleChange,
        name: name,
        title: "Monday",
        defaultChecked: agmtSyncMon
      }, "Mon")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSyncWed",
        onChange: handleChange,
        title: "Wednesday",
        name: name,
        defaultChecked: agmtSyncWed
      }, "Wed")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSyncFri",
        onChange: handleChange,
        title: "Friday",
        name: name,
        defaultChecked: agmtSyncFri
      }, "Fri")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSyncSun",
        onChange: handleChange,
        title: "Sunday",
        name: name,
        defaultChecked: agmtSyncSun
      }, "Sun"))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSyncTue",
        onChange: handleChange,
        title: "Tuesday",
        name: name,
        defaultChecked: agmtSyncTue
      }, "Tue")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSyncThu",
        onChange: handleChange,
        title: "Thursday",
        name: name,
        defaultChecked: agmtSyncThu
      }, "Thu")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSyncSat",
        onChange: handleChange,
        title: "Saturday",
        name: name,
        defaultChecked: agmtSyncSat
      }, "Sat")))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 10
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", {
        className: "ds-modal-error"
      }, errorScheduleMsg))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "Time to start initiating replication sessions"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Replication Start Time"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "agmtStartTime",
        type: "time",
        name: name,
        className: error.agmtStartTime ? "ds-input-bad" : "",
        onChange: handleChange,
        defaultValue: agmtStartTime
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "Time to initiating replication sessions"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Replication End Time"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "agmtEndTime",
        type: "time",
        name: name,
        className: error.agmtEndTime ? "ds-input-bad" : "",
        onChange: handleChange,
        defaultValue: agmtEndTime
      }), "                    ")));

      if (agmtSync) {
        scheduleRow = "";
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, title, " Replication Agreement")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 10
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", {
        className: errMsgClass
      }, errMsg))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Agreement Name"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "agmtName",
        type: "text",
        name: name,
        className: error.agmtName ? "ds-input-bad" : "",
        onChange: handleChange,
        defaultValue: agmtName,
        disabled: this.props.edit
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Consumer Host"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "agmtHost",
        type: "text",
        name: name,
        className: error.agmtHost ? "ds-input-bad" : "",
        onChange: handleChange,
        defaultValue: agmtHost
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Consumer Port"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "agmtPort",
        type: "text",
        name: name,
        className: error.agmtPort ? "ds-input-bad" : "",
        onChange: handleChange,
        defaultValue: agmtPort
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Bind DN"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "agmtBindDN",
        type: "text",
        name: name,
        className: error.agmtBindDN ? "ds-input-bad" : "",
        onChange: handleChange,
        autoComplete: "false",
        defaultValue: agmtBindDN
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Bind Password"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "agmtBindPW",
        type: "password",
        name: name,
        className: error.agmtBindPW ? "ds-input-bad" : "",
        onChange: handleChange,
        autoComplete: "new-password",
        defaultValue: agmtBindPW
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Confirm Password"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "agmtBindPWConfirm",
        type: "password",
        name: name,
        className: error.agmtBindPWConfirm ? "ds-input-bad" : "",
        onChange: handleChange,
        autoComplete: "new-password",
        defaultValue: agmtBindPWConfirm
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Connection Protocol"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
        className: "btn btn-default dropdown",
        id: "agmtProtocol",
        defaultValue: agmtProtocol,
        name: name,
        onChange: handleChange
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "LDAP"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "LDAPS"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
        title: "Currently not recommended"
      }, "StartTLS")))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Authentication Method"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
        className: "btn btn-default dropdown",
        defaultValue: agmtBindMethod,
        id: "agmtBindMethod",
        name: name,
        onChange: handleChange
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
        title: "Use bind DN and password"
      }, "SIMPLE"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
        title: "Use SSL Client Certificate"
      }, "SSLCLIENTAUTH"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
        title: "Use SASL Digest-MD5"
      }, "SASL/DIGEST-MD5"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
        title: "Use SASL GSSAPI"
      }, "SASL/GSSAPI")))), initRow, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_customCollapse_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], {
        className: "ds-margin-top",
        textOpened: "Hide Advanced Settings",
        textClosed: "Show Advanced Settings"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-left"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "Attribute to exclude from replication"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Exclude Attributes"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4__["Typeahead"], {
        multiple: true,
        onChange: handleFracChange,
        selected: agmtFracAttrs,
        options: availAttrs,
        name: name,
        newSelectionPrefix: "Add a attribute: ",
        placeholder: "Start typing an attribute...",
        id: "agmtFracAttrs"
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "Attribute to exclude from replica Initializations"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Exclude Init Attributes"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4__["Typeahead"], {
        multiple: true,
        onChange: handleFracInitChange,
        selected: agmtFracInitAttrs,
        options: availAttrs,
        name: name,
        newSelectionPrefix: "Add a attribute: ",
        placeholder: "Start typing an attribute...",
        id: "agmtFracInitAttrs"
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "Attributes to strip from a replication update"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Strip Attributes"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4__["Typeahead"], {
        multiple: true,
        onChange: handleStripChange,
        selected: agmtStripAttrs,
        options: availAttrs,
        name: name,
        newSelectionPrefix: "Add a attribute: ",
        placeholder: "Start typing an attribute...",
        id: "agmtStripAttrs"
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top-med"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSync",
        defaultChecked: agmtSync,
        onChange: handleChange,
        name: name,
        title: "Always keep replication in synchronization, or use a specific schedule by unchecking the box."
      }, "Keep Replication In Constant Synchronization"))), scheduleRow)), spinner)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler,
        disabled: saveDisabled
      }, "Save Agreement"))));
    }
  }]);

  return ReplAgmtModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
var ChangeReplRoleModal =
/*#__PURE__*/
function (_React$Component3) {
  _inherits(ChangeReplRoleModal, _React$Component3);

  function ChangeReplRoleModal(props) {
    var _this;

    _classCallCheck(this, ChangeReplRoleModal);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(ChangeReplRoleModal).call(this, props));
    _this.state = {
      showConfirmPromote: false,
      showConfirmDemote: false
    };
    return _this;
  }

  _createClass(ChangeReplRoleModal, [{
    key: "render",
    value: function render() {
      var _this$props3 = this.props,
          showModal = _this$props3.showModal,
          closeHandler = _this$props3.closeHandler,
          handleChange = _this$props3.handleChange,
          saveHandler = _this$props3.saveHandler,
          role = _this$props3.role,
          spinning = _this$props3.spinning,
          checked = _this$props3.checked;
      var spinner = "";
      var changeType = "";
      var roleOptions = [];
      var ridRow = "";
      var newRole = this.props.newRole;
      var saveDisabled = !checked; // Set the change type

      if (role == "Master") {
        changeType = "Demoting";
        roleOptions = ["Hub", "Consumer"];
      } else if (role == "Consumer") {
        changeType = "Promoting";
        roleOptions = ["Master", "Hub"];
      } else {
        // Hub
        if (newRole == "Master") {
          changeType = "Promoting";
        } else {
          changeType = "Demoting";
        }

        roleOptions = ["Master", "Consumer"];
      }

      if (newRole == "Master") {
        ridRow = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
          className: "ds-margin-top-lg",
          title: "Master Replica Identifier.  This must be unique across all the Master replicas in your environment"
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
          sm: 2
        }, "Replica ID"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
          sm: 4
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
          id: "newRID",
          type: "number",
          min: "1",
          max: "65534",
          onChange: handleChange,
          defaultValue: "1",
          size: "10"
        })));
      }

      var selectOptions = roleOptions.map(function (role) {
        return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
          key: role,
          value: role
        }, role);
      });

      if (spinning) {
        spinner = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-margin-top ds-modal-spinner"
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Spinner"], {
          loading: true,
          inline: true,
          size: "md"
        }), changeType, " replica ..."));
        saveDisabled = true;
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Change Replica Role")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h4", null, "Please choose the new replication role you would like for this suffix"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top-lg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 2
      }, "New Role"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
        id: "newRole",
        onChange: handleChange
      }, selectOptions))), ridRow, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top-xlg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 12,
        className: "ds-center"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "modalChecked",
        defaultChecked: checked,
        onChange: handleChange
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Yes"), ", I am sure."))), spinner)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: function onClick() {
          saveHandler(changeType);
        },
        disabled: saveDisabled
      }, "Change Role"))));
    }
  }]);

  return ChangeReplRoleModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
var AddManagerModal =
/*#__PURE__*/
function (_React$Component4) {
  _inherits(AddManagerModal, _React$Component4);

  function AddManagerModal() {
    _classCallCheck(this, AddManagerModal);

    return _possibleConstructorReturn(this, _getPrototypeOf(AddManagerModal).apply(this, arguments));
  }

  _createClass(AddManagerModal, [{
    key: "render",
    value: function render() {
      var _this$props4 = this.props,
          showModal = _this$props4.showModal,
          closeHandler = _this$props4.closeHandler,
          handleChange = _this$props4.handleChange,
          saveHandler = _this$props4.saveHandler,
          spinning = _this$props4.spinning,
          error = _this$props4.error;
      var spinner = "";

      if (spinning) {
        spinner = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-margin-top ds-modal-spinner"
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Spinner"], {
          loading: true,
          inline: true,
          size: "md"
        }), "Adding Replication Manager..."));
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Add Replication Manager")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null, "Create a Replication Manager entry, and add it to the replication configuration for this suffix.  If the entry already exists it will be overwritten with the new credentials."), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "The DN of the replication manager"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Replication Manager DN"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        id: "manager",
        defaultValue: "cn=replication manager,cn=config",
        className: error.manager ? "ds-input-auto-bad" : "ds-input-auto",
        onChange: handleChange
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "Replication Manager password"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Password"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "password",
        id: "manager_passwd",
        className: error.manager_passwd ? "ds-input-auto-bad" : "ds-input-auto",
        onChange: handleChange
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "Replication Manager password"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Confirm Password"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "password",
        id: "manager_passwd_confirm",
        className: error.manager_passwd_confirm ? "ds-input-auto-bad" : "ds-input-auto",
        onChange: handleChange
      }))), spinner)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Add Replication Manager"))));
    }
  }]);

  return AddManagerModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
var EnableReplModal =
/*#__PURE__*/
function (_React$Component5) {
  _inherits(EnableReplModal, _React$Component5);

  function EnableReplModal() {
    _classCallCheck(this, EnableReplModal);

    return _possibleConstructorReturn(this, _getPrototypeOf(EnableReplModal).apply(this, arguments));
  }

  _createClass(EnableReplModal, [{
    key: "render",
    value: function render() {
      var _this$props5 = this.props,
          showModal = _this$props5.showModal,
          closeHandler = _this$props5.closeHandler,
          handleChange = _this$props5.handleChange,
          saveHandler = _this$props5.saveHandler,
          spinning = _this$props5.spinning,
          role = _this$props5.role,
          error = _this$props5.error;
      var spinner = "";

      if (spinning) {
        spinner = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-margin-top ds-modal-spinner"
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Spinner"], {
          loading: true,
          inline: true,
          size: "md"
        }), "Enabling Replication ..."));
      }

      var replicaIDRow = "";

      if (role == "Master") {
        replicaIDRow = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
          className: "ds-margin-top"
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
          sm: 3,
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"]
        }, "Replica ID"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
          sm: 9
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
          id: "enableRID",
          type: "number",
          min: "1",
          max: "65534",
          onChange: handleChange,
          defaultValue: "1",
          size: "10"
        })));
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Enable Replication")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null, "Choose the replication role for this suffix.  If it is a Master replica then you must pick a unique ID to identify it among the other Master replicas in your environment.  The replication changelog will also automatically be created if it does not exist."), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top-lg"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3,
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"]
      }, "Replication Role"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
        className: "btn btn-default dropdown",
        id: "enableRole",
        defaultValue: "Master",
        onChange: handleChange
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "Master"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "Hub"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "Consumer")))), replicaIDRow, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", {
        className: "ds-margin-top-xxlg"
      }, "You can optionally define the authentication information for this replicated suffix.  Either a Manager DN and Password, a Bind Group DN, or both, can be provideed.  The Manager DN should be an entry under \"cn=config\" and if it does not exist it will be created, while the Bind Group DN is usually an existing group located in the database suffix.  Typically, just the Manager DN and Password are used when enabling replication for a suffix."), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top-lg",
        title: "The DN of the replication manager.  If you supply a password the entry will be created in the server (it will also overwrite the entry is it already exists)."
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Replication Manager DN"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        id: "enableBindDN",
        defaultValue: "cn=replication manager,cn=config",
        className: error.enableBindDN ? "ds-input-auto-bad" : "ds-input-auto",
        onChange: handleChange
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "Replication Manager password"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Password"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "password",
        id: "enableBindPW",
        className: error.enableBindPW ? "ds-input-auto-bad" : "ds-input-auto",
        onChange: handleChange
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "Confirm the Replication Manager password"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Confirm Password"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "password",
        id: "enableBindPWConfirm",
        className: error.enableBindPWConfirm ? "ds-input-auto-bad" : "ds-input-auto",
        onChange: handleChange
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "The DN of a group that contains users that can perform replication updates"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Bind Group DN"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        id: "enableBindGroupDN",
        className: error.enableBindGroupDN ? "ds-input-auto-bad" : "ds-input-auto",
        onChange: handleChange
      }))), spinner)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler,
        disabled: this.props.disabled
      }, "Enable Replication"))));
    }
  }]);

  return EnableReplModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
var ExportModal =
/*#__PURE__*/
function (_React$Component6) {
  _inherits(ExportModal, _React$Component6);

  function ExportModal() {
    _classCallCheck(this, ExportModal);

    return _possibleConstructorReturn(this, _getPrototypeOf(ExportModal).apply(this, arguments));
  }

  _createClass(ExportModal, [{
    key: "render",
    value: function render() {
      var _this$props6 = this.props,
          showModal = _this$props6.showModal,
          closeHandler = _this$props6.closeHandler,
          handleChange = _this$props6.handleChange,
          saveHandler = _this$props6.saveHandler,
          spinning = _this$props6.spinning,
          saveOK = _this$props6.saveOK;
      var spinner = "";

      if (spinning) {
        spinner = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-margin-top ds-modal-spinner"
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Spinner"], {
          loading: true,
          inline: true,
          size: "lg"
        }), "Exporting database... ", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("font", {
          size: "1"
        }, "(You can safely close this window)")));
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Create Replication Initialization LDIF File")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 11,
        className: "ds-left-indent-md"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null, "Enter the name of the LDIF file, do not use a path as the file will only be written to the server's LDIF directory"))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top-lg",
        title: "Name of the exported LDIF file"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "LDIF Name")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        id: "ldifLocation",
        className: saveOK ? "" : "ds-input-bad",
        onChange: handleChange
      }))), spinner)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler,
        disabled: !saveOK
      }, "Export Replica"))));
    }
  }]);

  return ExportModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
EnableReplModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  disabled: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  error: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object
};
EnableReplModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  spinning: false,
  disabled: false,
  error: {}
};
AddManagerModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  error: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object
};
AddManagerModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  spinning: false,
  error: {}
};
ChangeReplRoleModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  role: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  newRole: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
ChangeReplRoleModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  spinning: false,
  role: "",
  newRole: ""
};
ReplAgmtModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleStripChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleFracChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleFracInitChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  availAttrs: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array,
  agmtName: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtHost: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtPort: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtProtocol: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtBindMethod: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtBindDN: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtBindPW: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtBindPWConfirm: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtStripAttrs: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array,
  agmtFracAttrs: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array,
  agmtFracInitAttrs: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array,
  agmtSync: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtSyncMon: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtSyncTue: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtSyncWed: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtSyncThu: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtSyncFri: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtSyncSat: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtSyncSun: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtStartTime: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtEndTime: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  saveOK: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  error: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object,
  errorMsg: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  edit: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
ReplAgmtModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleStripChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleFracChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleFracInitChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  spinning: false,
  availAttrs: [],
  agmtName: "",
  agmtHost: "",
  agmtPort: "",
  agmtProtocol: "LDAP",
  agmtBindMethod: "SIMPLE",
  agmtBindDN: "",
  agmtBindPW: "",
  agmtBindPWConfirm: "",
  agmtStripAttrs: [],
  agmtFracAttrs: [],
  agmtFracInitAttrs: [],
  agmtSync: true,
  agmtSyncMon: false,
  agmtSyncTue: false,
  agmtSyncWed: false,
  agmtSyncThu: false,
  agmtSyncFri: false,
  agmtSyncSat: false,
  agmtSyncSun: false,
  agmtStartTime: "00:00",
  agmtEndTime: "23:59",
  saveOK: false,
  error: {},
  errorMsg: "",
  edit: false
};
WinsyncAgmtModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleFracChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  availAttrs: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array,
  agmtName: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtHost: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtPort: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtProtocol: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtBindDN: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtBindPW: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtBindPWConfirm: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtFracAttrs: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array,
  agmtSync: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtSyncMon: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtSyncTue: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtSyncWed: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtSyncThu: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtSyncFri: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtSyncSat: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtSyncSun: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtStartTime: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtEndTime: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtSyncGroups: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtSyncUsers: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtWinDomain: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtWinSubtree: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtDSSubtree: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtOneWaySync: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtSyncInterval: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  saveOK: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  error: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object,
  errorMsg: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  edit: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
WinsyncAgmtModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleFracChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  spinning: false,
  availAttrs: [],
  agmtName: "",
  agmtHost: "",
  agmtPort: "",
  agmtProtocol: "LDAPS",
  agmtBindDN: "",
  agmtBindPW: "",
  agmtBindPWConfirm: "",
  agmtFracAttrs: [],
  agmtSync: true,
  agmtSyncMon: false,
  agmtSyncTue: false,
  agmtSyncWed: false,
  agmtSyncThu: false,
  agmtSyncFri: false,
  agmtSyncSat: false,
  agmtSyncSun: false,
  agmtStartTime: "00:00",
  agmtEndTime: "23:59",
  agmtSyncGroups: false,
  agmtSyncUsers: false,
  agmtWinDomain: "",
  agmtWinSubtree: "",
  agmtDSSubtree: "",
  agmtOneWaySync: "both",
  // "both", "toWindows", "fromWindows"
  agmtSyncInterval: "",
  saveOK: false,
  error: {},
  errorMsg: "",
  edit: false
};
ExportModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  saveOK: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
ExportModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  saveOK: false,
  spinning: false
};

/***/ }),

/***/ "./src/lib/replication/replSuffix.jsx":
/*!********************************************!*\
  !*** ./src/lib/replication/replSuffix.jsx ***!
  \********************************************/
/*! exports provided: ReplSuffix */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReplSuffix", function() { return ReplSuffix; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _replConfig_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./replConfig.jsx */ "./src/lib/replication/replConfig.jsx");
/* harmony import */ var _winsyncAgmts_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./winsyncAgmts.jsx */ "./src/lib/replication/winsyncAgmts.jsx");
/* harmony import */ var _replAgmts_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./replAgmts.jsx */ "./src/lib/replication/replAgmts.jsx");
/* harmony import */ var _replTasks_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./replTasks.jsx */ "./src/lib/replication/replTasks.jsx");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _replModals_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./replModals.jsx */ "./src/lib/replication/replModals.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_11__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }













var ReplSuffix =
/*#__PURE__*/
function (_React$Component) {
  _inherits(ReplSuffix, _React$Component);

  function ReplSuffix(props) {
    var _this;

    _classCallCheck(this, ReplSuffix);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(ReplSuffix).call(this, props));
    _this.state = {
      loading: false,
      activeKey: 1,
      showDisableConfirm: false,
      replicationEnabled: false,
      errObj: {},
      replEnabled: _this.props.replicated,
      // Enable replication settings
      showEnableReplModal: false,
      enableRole: "Master",
      enableRID: "1",
      enableBindDN: "cn=replication manager,cn=config",
      enableBindPW: "",
      enableBindPWConfirm: "",
      enableBindGroupDN: "",
      disabled: false,
      // Disable repl enable button
      // Disable replication
      showDisableReplModal: false,
      disableChecked: false,
      disableSpinning: false,
      modalChecked: false,
      modalSpinning: false
    }; // General bindings

    _this.handleReplChange = _this.handleReplChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleEnableChange = _this.handleEnableChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleNavSelect = _this.handleNavSelect.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.disableReplication = _this.disableReplication.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.enableReplication = _this.enableReplication.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeEnableReplModal = _this.closeEnableReplModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeDisableReplModal = _this.closeDisableReplModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(ReplSuffix, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.props.enableTree();
    }
  }, {
    key: "handleNavSelect",
    value: function handleNavSelect(key) {
      this.setState({
        activeKey: key
      });
    }
  }, {
    key: "handleReplChange",
    value: function handleReplChange() {
      if (this.props.replicated) {
        // Disable Replication
        this.setState({
          showDisableReplModal: true,
          modalChecked: false,
          modalSpinning: false
        });
      } else {
        // Enable replication
        this.setState({
          showEnableReplModal: true
        });
      }
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      var _this$setState;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var valueErr = false;
      var errObj = this.state.errObj;

      if (value == "") {
        valueErr = true;
      }

      errObj[e.target.id] = valueErr;
      this.setState((_this$setState = {}, _defineProperty(_this$setState, e.target.id, value), _defineProperty(_this$setState, "errObj", errObj), _this$setState));
    }
  }, {
    key: "handleEnableChange",
    value: function handleEnableChange(e) {
      var _this$setState2;

      var value = e.target.value;
      var attr = e.target.id;
      var valueErr = false;
      var errObj = this.state.errObj;
      var disable = false;

      if (attr == "enableBindDN" && value != "" && (!Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_10__["valid_dn"])(value) || !value.includes(','))) {
        valueErr = true;
      }

      if (attr == "enableBindGroupDN" && value != "" && (!Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_10__["valid_dn"])(value) || !value.includes(','))) {
        valueErr = true;
      }

      if (attr == "enableBindPW") {
        if (value != this.state.enableBindPWConfirm) {
          valueErr = true;
        } else {
          errObj.enableBindPW = false;
          errObj.enableBindPWConfirm = false;
        }
      }

      if (attr == "enableBindPWConfirm") {
        if (value != this.state.enableBindPW) {
          valueErr = true;
        } else {
          errObj.enableBindPW = false;
          errObj.enableBindPWConfirm = false;
        }
      } // Validate form and disable enable button if something is wrong.


      if (valueErr) {
        disable = true;
      } else {
        if (attr != "enableBindPW" && attr != "enableBindPWConfirm" && this.state.enableBindPW != this.state.enableBindPWConfirm || this.state.enableBindDN != "" && attr != "enableBindDN" && (!Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_10__["valid_dn"])(this.state.enableBindDN) || !this.state.enableBindDN.includes(',')) || this.state.enableBindGroupDN != "" && attr != "enableBindGroupDN" && (!Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_10__["valid_dn"])(this.state.enableBindGroupDN) || !this.state.enableBindGroupDN.includes(','))) {
          disable = true;
        }
      }

      errObj[attr] = valueErr;
      this.setState((_this$setState2 = {}, _defineProperty(_this$setState2, attr, value), _defineProperty(_this$setState2, "errObj", errObj), _defineProperty(_this$setState2, "disabled", disable), _this$setState2));
    }
  }, {
    key: "closeEnableReplModal",
    value: function closeEnableReplModal() {
      this.setState({
        showEnableReplModal: false
      });
    }
  }, {
    key: "enableReplication",
    value: function enableReplication() {
      var _this2 = this;

      // First, Validate
      if (this.state.enableBindDN != "" && !Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_10__["valid_dn"])(this.state.enableBindDN)) {
        this.props.addNotification("error", "The Bind DN is not a valid DN (Distinguished Name) ".concat(this.state.enableBindDN));
        return;
      }

      if (this.state.enableBindGroupDN != "" && !Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_10__["valid_dn"])(this.state.enableBindGroupDN)) {
        this.props.addNotification("error", "The Group DN is not a valid DN (Distinguished Name)");
        return;
      }

      if (this.state.enableBindPW != this.state.enableBindPWConfirm) {
        this.props.addNotification("error", "The Bind DN passwords do not match");
        return;
      }

      if (this.state.enableRID != "" && (this.state.enableRID < 1 || this.state.enableRID > 65534)) {
        this.props.addNotification("error", "The Replica ID is not in the valid range of 1 - 65534");
        return;
      } // Now enable replication


      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'replication', 'enable', '--suffix=' + this.props.suffix, '--role=' + this.state.enableRole];

      if (this.state.enableBindDN != "") {
        cmd.push('--bind-dn=' + this.state.enableBindDN);
      }

      if (this.state.enableBindPW != "") {
        cmd.push('--bind-passwd=' + this.state.enableBindPW);
      }

      if (this.state.enableBindGroupDN != "") {
        cmd.push('--bind-group-dn=' + this.state.enableBindGroupDN);
      }

      if (this.state.enableRole == "Master") {
        cmd.push('--replica-id=' + this.state.enableRID);
      }

      this.props.disableTree();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_10__["log_cmd"])('enableReplication', 'Enable replication', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_1___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this2.props.reload(1);

        _this2.props.addNotification("success", "Successfully enabled replication for \"".concat(_this2.props.suffix, "\""));
      }).fail(function (err) {
        _this2.props.reload(1);

        var errMsg = JSON.parse(err);

        _this2.props.addNotification("error", "Failed to enable replication for \"".concat(_this2.props.suffix, "\" - ").concat(errMsg.desc));
      });
    }
  }, {
    key: "closeDisableReplModal",
    value: function closeDisableReplModal() {
      this.setState({
        showDisableReplModal: false
      });
    }
  }, {
    key: "disableReplication",
    value: function disableReplication() {
      var _this3 = this;

      this.props.disableTree();
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'replication', 'disable', '--suffix=' + this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_10__["log_cmd"])('disableReplication', 'Disable replication', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_1___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this3.props.reload(1);

        _this3.props.addNotification("success", "Successfully disabled replication for \"".concat(_this3.props.suffix, "\""));
      }).fail(function (err) {
        _this3.props.reload(1);

        var errMsg = JSON.parse(err);

        _this3.props.addNotification("error", "Failed to disable replication for \"".concat(_this3.props.suffix, "\" - ").concat(errMsg.desc));
      });
    } //
    // Render the component
    //

  }, {
    key: "render",
    value: function render() {
      var _this4 = this;

      var spinning = "";
      var spintext = "";
      var suffixIcon = "tree";

      if (this.props.replicated) {
        suffixIcon = "clone";
      } else {
        if (this.props.repl == "subsuffix") {
          suffixIcon = "leaf";
        }
      }

      if (this.props.spinning) {
        spinning = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Spinner"], {
          className: "ds-margin-top ds-margin-left ds-inline-spinner",
          loading: true,
          inline: true,
          size: "sm"
        });
        spintext = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("font", {
          size: "2"
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("i", null, "Refreshing"));
      }

      var suffixClass = "ds-margin-top-xlg";

      if (this.props.disabled) {
        suffixClass = "ds-margin-top-xlg ds-disabled";
      }

      var replAgmtNavTitle = 'Replication Agreements <font size="1">(' + this.props.agmtRows.length + ')</font>';
      var winsyncNavTitle = 'Winsync Agreements <font size="1">(' + this.props.winsyncRows.length + ')</font>';
      var enabledContent = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: suffixClass
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["TabContainer"], {
        id: "basic-tabs-pf",
        onSelect: this.handleNavSelect,
        activeKey: this.state.activeKey
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Nav"], {
        bsClass: "nav nav-tabs nav-tabs-pf"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["NavItem"], {
        eventKey: 1
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Configuration'
        }
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["NavItem"], {
        eventKey: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: replAgmtNavTitle
        }
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["NavItem"], {
        eventKey: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: winsyncNavTitle
        }
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["NavItem"], {
        eventKey: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: "RUV's & Tasks"
        }
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["TabContent"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["TabPane"], {
        eventKey: 1
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_replConfig_jsx__WEBPACK_IMPORTED_MODULE_2__["ReplConfig"], {
        suffix: this.props.suffix,
        role: this.props.role,
        data: this.props.data,
        serverId: this.props.serverId,
        addNotification: this.props.addNotification,
        reload: this.props.reload,
        reloadConfig: this.props.reloadConfig
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["TabPane"], {
        eventKey: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_replAgmts_jsx__WEBPACK_IMPORTED_MODULE_4__["ReplAgmts"], {
        suffix: this.props.suffix,
        serverId: this.props.serverId,
        rows: this.props.agmtRows,
        addNotification: this.props.addNotification,
        reload: this.props.reloadAgmts,
        attrs: this.props.attrs,
        disableTable: this.props.disableAgmtTable,
        key: this.props.agmtRows
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["TabPane"], {
        eventKey: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_winsyncAgmts_jsx__WEBPACK_IMPORTED_MODULE_3__["WinsyncAgmts"], {
        suffix: this.props.suffix,
        serverId: this.props.serverId,
        rows: this.props.winsyncRows,
        addNotification: this.props.addNotification,
        reload: this.props.reloadWinsyncAgmts,
        attrs: this.props.attrs,
        disableTable: this.props.disableWSAgmtTable,
        key: this.props.winsyncRows
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["TabPane"], {
        eventKey: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_replTasks_jsx__WEBPACK_IMPORTED_MODULE_5__["ReplRUV"], {
        suffix: this.props.suffix,
        serverId: this.props.serverId,
        rows: this.props.ruvRows,
        addNotification: this.props.addNotification,
        reload: this.props.reloadRUV,
        localRID: this.props.data.nsds5replicaid,
        key: this.props.ruvRows
      }))))));
      var replActionButton = "";

      if (this.props.replicated) {
        replActionButton = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Button"], {
          bsStyle: "danger",
          onClick: this.handleReplChange,
          title: "Disable replication, and remove all replication agreements."
        }, "Disable");
      } else {
        enabledContent = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-center ds-margin-top-xlg"
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h4", null, "Replication is not enabled for this suffix"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Button"], {
          bsStyle: "primary",
          onClick: this.handleReplChange,
          className: "ds-margin-top-lg"
        }, "Enable Replication"));
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        id: "suffix-page"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Col"], {
        sm: 8,
        className: "ds-word-wrap"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["ControlLabel"], {
        className: "ds-suffix-header"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Icon"], {
        type: "fa",
        name: suffixIcon
      }), " " + this.props.suffix, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh replication settings for this suffix",
        onClick: function onClick() {
          _this4.props.reload(false);
        }
      }), spinning, " ", spintext)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Col"], {
        className: "ds-no-padding ds-container",
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_8__["ControlLabel"],
        sm: 12
      }, replActionButton)))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null), enabledContent, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_replModals_jsx__WEBPACK_IMPORTED_MODULE_7__["EnableReplModal"], {
        showModal: this.state.showEnableReplModal,
        closeHandler: this.closeEnableReplModal,
        handleChange: this.handleEnableChange,
        saveHandler: this.enableReplication,
        spinning: this.state.addManagerSpinning,
        role: this.state.enableRole,
        disabled: this.state.disabled,
        error: this.state.errObj
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_6__["DoubleConfirmModal"], {
        showModal: this.state.showDisableReplModal,
        closeHandler: this.closeDisableReplModal,
        handleChange: this.handleChange,
        actionHandler: this.disableReplication,
        spinning: this.state.modalSpinning,
        item: this.props.suffix,
        checked: this.state.modalChecked,
        mTitle: "Disable Replication",
        mMsg: "Are you sure you want to disable replication for this suffix?",
        mSpinningMsg: "Disabling Replication ...",
        mBtnName: "Disable Replication"
      }));
    }
  }]);

  return ReplSuffix;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
ReplSuffix.propTypes = {
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.string,
  suffix: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.string,
  role: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.string,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func,
  agmtRows: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.array,
  winsyncRows: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.array,
  ruvRows: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.array,
  reloadAgmts: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func,
  reloadRUV: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func,
  reloadConfig: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func,
  replicated: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.bool,
  attrs: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.array,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func,
  disableTree: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.bool,
  disabled: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.bool
};
ReplSuffix.defaultProps = {
  serverId: "",
  suffix: "",
  role: "",
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_8__["noop"],
  agmtRows: [],
  winsyncRows: [],
  ruvRows: [],
  reloadAgmts: patternfly_react__WEBPACK_IMPORTED_MODULE_8__["noop"],
  reloadRUV: patternfly_react__WEBPACK_IMPORTED_MODULE_8__["noop"],
  reloadConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_8__["noop"],
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_8__["noop"],
  replicated: false,
  attrs: [],
  enableTree: patternfly_react__WEBPACK_IMPORTED_MODULE_8__["noop"],
  disableTree: patternfly_react__WEBPACK_IMPORTED_MODULE_8__["noop"],
  spinning: false,
  disabled: false
};

/***/ }),

/***/ "./src/lib/replication/replTables.jsx":
/*!********************************************!*\
  !*** ./src/lib/replication/replTables.jsx ***!
  \********************************************/
/*! exports provided: ReplAgmtTable, ManagerTable, RUVTable */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReplAgmtTable", function() { return ReplAgmtTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManagerTable", function() { return ManagerTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RUVTable", function() { return RUVTable; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dsTable.jsx */ "./src/lib/dsTable.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_4__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }







var ReplAgmtTable =
/*#__PURE__*/
function (_React$Component) {
  _inherits(ReplAgmtTable, _React$Component);

  function ReplAgmtTable(props) {
    var _this;

    _classCallCheck(this, ReplAgmtTable);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(ReplAgmtTable).call(this, props));
    _this.state = {
      searchField: "Agreements",
      fieldsToSearch: ["name"],
      rowKey: "name",
      columns: [{
        property: "name",
        header: {
          label: "Agreement Name",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "host",
        header: {
          label: "Replica Hostname",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "port",
        header: {
          label: "Replica Port",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "state",
        header: {
          label: "State",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "status",
        header: {
          label: "Last Update Status",
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "initstatus",
        header: {
          label: "Last Init Status",
          props: {
            index: 5,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 5
          }
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 6,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 6
          },
          formatters: [function (value, _ref) {
            var rowData = _ref.rowData;
            return [react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.name[0]
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              pullRight: true,
              id: rowData.name[0],
              className: "ds-action-button",
              bsStyle: "primary",
              title: "Actions"
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this.props.edit(rowData.name[0]);
              }
            }, "Edit Agreement"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this.props.init(rowData.name[0]);
              }
            }, "Initialize Agreement"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "3",
              onClick: function onClick() {
                _this.props.poke(rowData.name[0]);
              },
              title: "Awaken agreement if it is sleeping"
            }, "Poke Agreement"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "4",
              onClick: function onClick() {
                _this.props.enable(rowData.name[0], rowData.state[0]);
              }
            }, "Disable/Enable Agreement"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "3",
              onClick: function onClick() {
                _this.props.delete(rowData.name[0], rowData.state[0]);
              }
            }, "Delete Agreement")))];
          }]
        }
      }]
    };
    _this.getColumns = _this.getColumns.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.getSingleColumn = _this.getSingleColumn.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(ReplAgmtTable, [{
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "Agreements",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      var agmtTable;

      if (this.props.rows.length == 0) {
        agmtTable = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No Agreements"
          }]
        });
      } else {
        agmtTable = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          getColumns: this.getColumns,
          fieldsToSearch: this.state.fieldsToSearch,
          toolBarSearchField: this.state.searchField,
          rowKey: this.state.rowKey,
          rows: this.props.rows,
          disableLoadingSpinner: true,
          toolBarPagination: [6, 12, 24, 48, 96],
          toolBarPaginationPerPage: 6
        });
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, agmtTable);
    }
  }]);

  return ReplAgmtTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var ManagerTable =
/*#__PURE__*/
function (_React$Component2) {
  _inherits(ManagerTable, _React$Component2);

  function ManagerTable(props) {
    var _this2;

    _classCallCheck(this, ManagerTable);

    _this2 = _possibleConstructorReturn(this, _getPrototypeOf(ManagerTable).call(this, props));
    _this2.state = {
      rowKey: "name",
      columns: [{
        property: "name",
        header: {
          label: "Replication Manager",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          label: "",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [function (value, _ref2) {
            var rowData = _ref2.rowData;
            return [react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.name[0]
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
              bsStyle: "default",
              onClick: function onClick() {
                _this2.props.confirmDelete(rowData);
              },
              title: "Delete replication manager"
            }, "Delete"))];
          }]
        }
      }]
    };
    _this2.getColumns = _this2.getColumns.bind(_assertThisInitialized(_assertThisInitialized(_this2)));
    _this2.getSingleColumn = _this2.getSingleColumn.bind(_assertThisInitialized(_assertThisInitialized(_this2)));
    return _this2;
  }

  _createClass(ManagerTable, [{
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "Replication Managers",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      var managerTable;

      if (this.props.rows.length == 0) {
        managerTable = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No Replication Managers"
          }]
        });
      } else {
        managerTable = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getColumns,
          rowKey: this.state.rowKey,
          rows: this.props.rows,
          disableLoadingSpinner: true
        });
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, managerTable);
    }
  }]);

  return ManagerTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var RUVTable =
/*#__PURE__*/
function (_React$Component3) {
  _inherits(RUVTable, _React$Component3);

  function RUVTable(props) {
    var _this3;

    _classCallCheck(this, RUVTable);

    _this3 = _possibleConstructorReturn(this, _getPrototypeOf(RUVTable).call(this, props));
    _this3.state = {
      rowKey: "rid",
      columns: [{
        property: "rid",
        header: {
          label: "Replica ID",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "url",
        header: {
          label: "Replica LDAP URL",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "maxcsn",
        header: {
          label: "Max CSN",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          label: "",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [function (value, _ref3) {
            var rowData = _ref3.rowData;
            return [react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.rid[0]
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
              bsStyle: "default",
              onClick: function onClick() {
                _this3.props.confirmDelete(rowData.rid[0]);
              },
              title: "Attempt to clean and remove this Replica ID from this suffix"
            }, "Clean"))];
          }]
        }
      }]
    };
    _this3.getColumns = _this3.getColumns.bind(_assertThisInitialized(_assertThisInitialized(_this3)));
    _this3.getSingleColumn = _this3.getSingleColumn.bind(_assertThisInitialized(_assertThisInitialized(_this3)));
    return _this3;
  }

  _createClass(RUVTable, [{
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "Remote RUV's",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      var ruvTable;

      if (this.props.rows.length == 0) {
        ruvTable = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No RUV's"
          }]
        });
      } else {
        ruvTable = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getColumns,
          rowKey: this.state.rowKey,
          rows: this.props.rows,
          disableLoadingSpinner: true
        });
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, ruvTable);
    }
  }]);

  return RUVTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

ReplAgmtTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  edit: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  poke: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  init: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  enable: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  delete: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
ReplAgmtTable.defaultProps = {
  rows: [],
  edit: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  poke: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  init: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  enable: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  delete: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
ManagerTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  confirmDelete: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
ManagerTable.defaultProps = {
  rows: [],
  confirmDelete: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
RUVTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  confirmDelete: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
RUVTable.defaultProps = {
  rows: [],
  confirmDelete: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};


/***/ }),

/***/ "./src/lib/replication/replTasks.jsx":
/*!*******************************************!*\
  !*** ./src/lib/replication/replTasks.jsx ***!
  \*******************************************/
/*! exports provided: ReplRUV */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReplRUV", function() { return ReplRUV; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _replTables_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./replTables.jsx */ "./src/lib/replication/replTables.jsx");
/* harmony import */ var _replModals_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./replModals.jsx */ "./src/lib/replication/replModals.jsx");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }









var ReplRUV =
/*#__PURE__*/
function (_React$Component) {
  _inherits(ReplRUV, _React$Component);

  function ReplRUV(props) {
    var _this;

    _classCallCheck(this, ReplRUV);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(ReplRUV).call(this, props));
    _this.state = {
      errObj: {},
      rid: "",
      localRID: "",
      ldifLocatio: "",
      saveOK: false,
      showConfirmCleanRUV: false,
      modalChecked: false,
      modalSpinning: false
    };
    _this.showConfirmCleanRUV = _this.showConfirmCleanRUV.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmCleanRUV = _this.closeConfirmCleanRUV.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showConfirmExport = _this.showConfirmExport.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmExport = _this.closeConfirmExport.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleLDIFChange = _this.handleLDIFChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.cleanRUV = _this.cleanRUV.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.doExport = _this.doExport.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(ReplRUV, [{
    key: "showConfirmCleanRUV",
    value: function showConfirmCleanRUV(rid) {
      this.setState({
        rid: rid,
        showConfirmCleanRUV: true,
        modalChecked: false,
        modalSpinning: false
      });
    }
  }, {
    key: "closeConfirmCleanRUV",
    value: function closeConfirmCleanRUV() {
      this.setState({
        showConfirmCleanRUV: false,
        modalChecked: false,
        modalSpinning: false
      });
    }
  }, {
    key: "showConfirmExport",
    value: function showConfirmExport() {
      this.setState({
        saveOK: false,
        showConfirmExport: true
      });
    }
  }, {
    key: "closeConfirmExport",
    value: function closeConfirmExport() {
      this.setState({
        showConfirmExport: false
      });
    }
  }, {
    key: "cleanRUV",
    value: function cleanRUV() {
      var _this2 = this;

      // Enable/disable agmt
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-tasks', 'cleanallruv', '--replica-id=' + this.state.rid, '--force-cleaning', '--suffix=' + this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])('cleanRUV', 'Clean the rid', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this2.props.reload(_this2.props.suffix);

        _this2.props.addNotification('success', 'Successfully started CleanAllRUV task');

        _this2.closeConfirmCleanRUV();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.props.addNotification("error", "Failed to start CleanAllRUV task - ".concat(errMsg.desc));

        _this2.closeConfirmCleanRUV();
      });
    }
  }, {
    key: "handleLDIFChange",
    value: function handleLDIFChange(e) {
      var _this$setState;

      var value = e.target.value;
      var saveOK = true;

      if (value == "" || Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["bad_file_name"])(value)) {
        saveOK = false;
      }

      this.setState((_this$setState = {}, _defineProperty(_this$setState, e.target.id, value), _defineProperty(_this$setState, "saveOK", saveOK), _this$setState));
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.checked));
    }
  }, {
    key: "doExport",
    value: function doExport() {
      var _this3 = this;

      // Do Export
      var export_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "export", this.props.suffix, "--ldif=" + this.state.ldifLocation, '--replication', "--encrypted"];
      this.setState({
        exportSpinner: true
      });
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("doExport", "replication do online export", export_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(export_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this3.props.addNotification("success", "Database export complete");

        _this3.setState({
          showConfirmExport: false,
          exportSpinner: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.addNotification("error", "Error exporting database - ".concat(errMsg.desc));

        _this3.setState({
          showConfirmExport: false,
          exportSpinner: false
        });
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this4 = this;

      // Strip outthe loca RUV and display it diffent then onmly allow cleaning of remote rids
      var remote_rows = [];
      var localRID = "";
      var localURL = "";
      var localCSN = "";
      var localRawCSN = "";
      var localMinCSN = "";
      var localRawMinCSN = "";
      var _iteratorNormalCompletion = true;
      var _didIteratorError = false;
      var _iteratorError = undefined;

      try {
        for (var _iterator = this.props.rows[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
          var row = _step.value;

          if (row.rid == this.props.localRID) {
            localRID = row.rid;
            localURL = row.url;
            localCSN = row.maxcsn;
            localRawCSN = row.raw_maxcsn;
            localMinCSN = row.csn;
            localRawMinCSN = row.raw_csn;
          } else {
            remote_rows.push(row);
          }
        }
      } catch (err) {
        _didIteratorError = true;
        _iteratorError = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion && _iterator.return != null) {
            _iterator.return();
          }
        } finally {
          if (_didIteratorError) {
            throw _iteratorError;
          }
        }
      }

      var localRUV = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-left-indent-md"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], {
        className: "ds-margin-top-med"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"], null, "Replica ID")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        sm: 10
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, localRID))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"], null, "LDAP URL")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        sm: 10
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, localURL))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"], null, "Min CSN")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        sm: 10
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, localMinCSN), " (", localRawMinCSN, ")")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"], null, "Max CSN")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        sm: 10
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, localCSN), " (", localRawCSN, ")")));

      if (localRID == "") {
        localRUV = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-indent"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "There is no local RUV, the database might not have been initialized yet."));
      }

      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top-xlg ds-indent"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"], {
        className: "ds-h4"
      }, "Local RUV", react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh the RUV for this suffix",
        onClick: function onClick() {
          _this4.props.reload(_this4.props.suffix);
        }
      })), localRUV, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        sm: 12,
        className: "ds-word-wrap"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"], {
        className: "ds-h4"
      }, "Remote RUV's", react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh the RUV for this suffix",
        onClick: function onClick() {
          _this4.props.reload(_this4.props.suffix);
        }
      })))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-left-indent-md ds-margin-top-lg"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_replTables_jsx__WEBPACK_IMPORTED_MODULE_3__["RUVTable"], {
        rows: remote_rows,
        confirmDelete: this.showConfirmCleanRUV
      })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Create Initialization LDIF File"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-left-indent-md ds-margin-top-lg"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Export this suffix with the replication metadata needed to initialize another replica")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Button"], {
        bsStyle: "primary",
        onClick: this.showConfirmExport,
        className: "ds-margin-top",
        title: "See Database Tab -> Backups & LDIFs to manage the new LDIF"
      }, "Export To LDIF")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_5__["DoubleConfirmModal"], {
        showModal: this.state.showConfirmCleanRUV,
        closeHandler: this.closeConfirmCleanRUV,
        handleChange: this.handleChange,
        actionHandler: this.cleanRUV,
        spinning: this.state.modalSpinning,
        item: "Replica ID " + this.state.rid,
        checked: this.state.modalChecked,
        mTitle: "Remove RUV Element (CleanAllRUV)",
        mMsg: "Are you sure you want to attempt to clean this Replica ID from the suffix?",
        mSpinningMsg: "Starting cleaning task (CleanAllRUV) ...",
        mBtnName: "Remove RUV Element"
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_replModals_jsx__WEBPACK_IMPORTED_MODULE_4__["ExportModal"], {
        showModal: this.state.showConfirmExport,
        closeHandler: this.closeConfirmExport,
        handleChange: this.handleLDIFChange,
        saveHandler: this.doExport,
        spinning: this.state.exportSpinner,
        saveOK: this.state.saveOK
      }));
    }
  }]);

  return ReplRUV;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);
ReplRUV.propTypes = {
  suffix: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  rows: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  localRID: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func
};
ReplRUV.defaultProps = {
  serverId: "",
  suffix: "",
  rows: [],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["noop"],
  localRID: "",
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["noop"]
};

/***/ }),

/***/ "./src/lib/replication/winsyncAgmts.jsx":
/*!**********************************************!*\
  !*** ./src/lib/replication/winsyncAgmts.jsx ***!
  \**********************************************/
/*! exports provided: WinsyncAgmts */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WinsyncAgmts", function() { return WinsyncAgmts; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _replTables_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./replTables.jsx */ "./src/lib/replication/replTables.jsx");
/* harmony import */ var _replModals_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./replModals.jsx */ "./src/lib/replication/replModals.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }









var WinsyncAgmts =
/*#__PURE__*/
function (_React$Component) {
  _inherits(WinsyncAgmts, _React$Component);

  function WinsyncAgmts(props) {
    var _this;

    _classCallCheck(this, WinsyncAgmts);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(WinsyncAgmts).call(this, props));

    _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "_mounted", false);

    _this.state = {
      showCreateAgmtModal: false,
      showEditAgmtModal: false,
      showConfirmDeleteAgmt: false,
      showConfirmInitAgmt: false,
      showConfirmEnableAgmt: false,
      showConfirmDisableAgmt: false,
      errObj: {},
      modalMsg: "",
      modalScheduleMsg: "",
      savingAgmt: false,
      mounted: false,
      // Create agreement
      agmtName: "",
      agmtHost: "",
      agmtPort: "",
      agmtProtocol: "LDAPS",
      agmtBindDN: "",
      agmtBindPW: "",
      agmtBindPWConfirm: "",
      agmtFracAttrs: [],
      agmtSync: true,
      agmtSyncMon: true,
      agmtSyncTue: true,
      agmtSyncWed: true,
      agmtSyncThu: true,
      agmtSyncFri: true,
      agmtSyncSat: true,
      agmtSyncSun: true,
      agmtStartTime: "0",
      agmtEndTime: "0",
      agmtInit: "noinit",
      agmtSaveOK: false,
      modalChecked: false,
      modalSpinning: false,
      // Winsync specific settings
      agmtSyncGroups: false,
      agmtSyncUsers: true,
      agmtWinDomain: "",
      agmtWinSubtree: "",
      agmtDSSubtree: "",
      agmtOneWaySync: "both",
      // "both", "toWindows", "fromWindows"
      agmtSyncInterval: "",
      // Init agmt
      agmtInitCounter: 0,
      agmtInitIntervals: []
    };
    _this.showCreateAgmtModal = _this.showCreateAgmtModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeCreateAgmtModal = _this.closeCreateAgmtModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeEditAgmtModal = _this.closeEditAgmtModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleModalChange = _this.handleModalChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleTAFracAttrChange = _this.handleTAFracAttrChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleTAFracAttrChangeEdit = _this.handleTAFracAttrChangeEdit.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.createAgmt = _this.createAgmt.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showEditAgmt = _this.showEditAgmt.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.saveAgmt = _this.saveAgmt.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.pokeAgmt = _this.pokeAgmt.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.initAgmt = _this.initAgmt.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.enableAgmt = _this.enableAgmt.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.disableAgmt = _this.disableAgmt.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.deleteAgmt = _this.deleteAgmt.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showConfirmDeleteAgmt = _this.showConfirmDeleteAgmt.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmDeleteAgmt = _this.closeConfirmDeleteAgmt.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showConfirmInitAgmt = _this.showConfirmInitAgmt.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmInitAgmt = _this.closeConfirmInitAgmt.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.confirmToggle = _this.confirmToggle.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmEnableAgmt = _this.closeConfirmEnableAgmt.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmDisableAgmt = _this.closeConfirmDisableAgmt.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.watchAgmtInit = _this.watchAgmtInit.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(WinsyncAgmts, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this._mounted = true;
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      this._mounted = false;
    }
  }, {
    key: "listEqual",
    value: function listEqual(old_values, new_values) {
      if (old_values.length != new_values.length) {
        return false;
      }

      for (var i = old_values.length; i--;) {
        if (old_values[i] != new_values[i]) {
          return false;
        }
      }

      return true;
    }
  }, {
    key: "handleModalChange",
    value: function handleModalChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.checked));
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      var _this$setState2;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var time_val = "";
      var valueErr = false;
      var errObj = this.state.errObj;
      var all_good = true;
      var modal_msg = "";
      var modal_schedule_msg = "";
      var edit = false;

      if (value == "") {
        valueErr = true;
      }

      errObj[e.target.id] = valueErr;

      if (e.target.name == "agmt-modal-edit") {
        var orig_attr = "_" + e.target.id;
        var attr = e.target.id;
        all_good = false;

        if (attr != 'agmtHost' && this.state.agmtHost != this.state._agmtHost || attr != 'agmtPort' && this.state.agmtPort != this.state._agmtPort || attr != 'agmtBindDN' && this.state.agmtBindDN != this.state._agmtBindDN || attr != 'agmtProtocol' && this.state.agmtProtocol != this.state._agmtProtocol || attr != 'agmtSync' && this.state.agmtSync != this.state._agmtSync || attr != 'agmtSyncGroups' && this.state.agmtSyncGroups != this.state._agmtSyncGroups || attr != 'agmtSyncUsers' && this.state.agmtSyncUsers != this.state._agmtSyncUsers || attr != 'agmtWinDomain' && this.state.agmtWinDomain != this.state._agmtWinDomain || attr != 'agmtWinSubtree' && this.state.agmtWinSubtree != this.state._agmtWinSubtree || attr != 'agmtDSSubtree' && this.state.agmtDSSubtree != this.state._agmtDSSubtree || attr != 'agmtOneWaySync' && this.state.agmtOneWaySync != this.state._agmtOneWaySync || attr != 'agmtSyncInterval' && this.state.agmtSyncInterval != this.state._agmtSyncInterval || attr != 'agmtFracAttrs' && !this.listEqual(this.state.agmtFracAttrs, this.state._agmtFracAttrs)) {
          all_good = true;
        }

        if (!this.state._agmtSync) {
          if (attr != 'agmtSyncMon' && this.state.agmtSyncMon != this.state._agmtSyncMon || attr != 'agmtSyncTue' && this.state.agmtSyncTue != this.state._agmtSyncTue || attr != 'agmtSyncWed' && this.state.agmtSyncWed != this.state._agmtSyncWed || attr != 'agmtSyncThu' && this.state.agmtSyncThu != this.state._agmtSyncThu || attr != 'agmtSyncFri' && this.state.agmtSyncFri != this.state._agmtSyncFri || attr != 'agmtSyncSat' && this.state.agmtSyncSat != this.state._agmtSyncSat || attr != 'agmtSyncSun' && this.state.agmtSyncSun != this.state._agmtSyncSun) {
            all_good = true;
          }
        }

        if (attr != 'agmtFracAttrs' && value != this.state[orig_attr]) {
          all_good = true;
        } else if (attr == 'agmtFracAttrs' && !this.listEqual(value, this.state._agmtFracAttrs)) {
          all_good = true;
        }
      }

      if (e.target.type == "time") {
        // Strip out the colon from the time
        time_val = value.replace(':', '');
      }

      if (e.target.name.startsWith("agmt-modal")) {
        // Validate modal settings "live"
        if (e.target.id == 'agmtName') {
          if (value == "") {
            all_good = false;
          }
        } else if (this.state.agmtName == "") {
          all_good = false;
        }

        if (e.target.id == 'agmtHost') {
          if (value == "") {
            all_good = false;
          }
        } else if (this.state.agmtHost == "") {
          all_good = false;
        } else if (edit && value == this.state._agmtHost) {
          all_good = false;
        }

        if (e.target.id == 'agmtPort') {
          if (value == "") {
            all_good = false;
          } else if (!Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["valid_port"])(value)) {
            all_good = false;
            errObj['agmtPort'] = true;
            modal_msg = "Invalid Consumer Port number";
          }
        } else if (this.state.agmtPort == "") {
          all_good = false;
        }

        if (e.target.id == 'agmtBindDN') {
          if (value == "") {
            all_good = false;
          }

          if (!Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["valid_dn"])(value)) {
            errObj['agmtBindDN'] = true;
            all_good = false;
            modal_msg = "Invalid DN for Bind DN";
          }
        } else if (this.state.agmtBindDN == "") {
          all_good = false;
        } else if (!Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["valid_dn"])(this.state.agmtBindDN)) {
          modal_msg = "Invalid DN for Bind DN";
          errObj['agmtBindDN'] = true;
          all_good = false;
        }

        if (e.target.id == 'agmtBindPW') {
          if (value == "") {
            all_good = false;
          } else if (value != this.state.agmtBindPWConfirm) {
            modal_msg = "Passwords Do Not Match";
            errObj['agmtBindPW'] = true;
            errObj['agmtBindPWConfirm'] = true;
            all_good = false;
          } else {
            errObj['agmtBindPW'] = false;
            errObj['agmtBindPWConfirm'] = false;
          }
        } else if (this.state.agmtBindPW == "") {
          all_good = false;
        }

        if (e.target.id == 'agmtBindPWConfirm') {
          if (value == "") {
            all_good = false;
          } else if (value != this.state.agmtBindPW) {
            modal_msg = "Passwords Do Not Match";
            errObj['agmtBindPW'] = true;
            errObj['agmtBindPWConfirm'] = true;
            all_good = false;
          } else {
            errObj['agmtBindPW'] = false;
            errObj['agmtBindPWConfirm'] = false;
          }
        } else if (this.state.agmtBindPWConfirm == "") {
          all_good = false;
        }

        if (e.target.id == 'agmtSync') {
          if (!value) {
            if (this.state.agmtStartTime >= this.state.agmtEndTime) {
              modal_schedule_msg = "Schedule start time is greater than or equal to the end time";
              errObj['agmtStartTime'] = true;
              all_good = false;
            }
          }
        } else if (!this.state.agmtSync) {
          // Check the days first
          var have_days = false;
          var days = ["agmtSyncSun", "agmtSyncMon", "agmtSyncTue", "agmtSyncWed", "agmtSyncThu", "agmtSyncFri", "agmtSyncSat"];

          for (var _i = 0; _i < days.length; _i++) {
            var day = days[_i];

            if (e.target.id != day && this.state[day] || e.target.id == day && value) {
              have_days = true;
              break;
            }
          }

          if (!have_days) {
            modal_schedule_msg = "You must select at least one day for replication";
            all_good = false;
          } else if (e.target.id == 'agmtStartTime') {
            if (time_val == "") {
              all_good = false;
              errObj['agmtStartTime'] = true;
            } else if (time_val >= this.state.agmtEndTime.replace(":", "")) {
              errObj['agmtStartTime'] = true;
              all_good = false;
              modal_schedule_msg = "Schedule start time is greater than or equal to the end time";
            } else {
              // All good, reset form
              modal_schedule_msg = "";
              errObj['agmtStartTime'] = false;
              errObj['agmtEndTime'] = false;
            }
          } else if (e.target.id == 'agmtEndTime') {
            if (time_val == "") {
              errObj['agmtEndTime'] = true;
              all_good = false;
            } else if (this.state.agmtStartTime.replace(":", "") >= time_val) {
              modal_schedule_msg = "Schedule start time is greater than or equal to the end time";
              errObj['agmtStartTime'] = true;
              all_good = false;
            } else {
              // All good, reset form
              modal_schedule_msg = "";
              errObj['agmtStartTime'] = false;
              errObj['agmtEndTime'] = false;
            }
          } else if (this.state.agmtStartTime >= this.state.agmtEndTime) {
            modal_schedule_msg = "Schedule start time is greater than or equal to the end time";
            errObj['agmtStartTime'] = true;
            all_good = false;
          }
        }

        if (e.target.id == 'agmtSyncGroups') {
          if (edit && value == this.state._agmtSyncGroups) {
            all_good = false;
          }
        }

        if (e.target.id == 'agmtSyncUsers') {
          if (edit && value == this.state._agmtSyncUsers) {
            all_good = false;
          }
        }

        if (e.target.id == 'agmtWinSubtree') {
          if (value == "") {
            all_good = false;
          } else if (edit && value == this.state._agmtWinSubtree) {
            all_good = false;
          }

          if (!Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["valid_dn"])(value)) {
            errObj['agmtWinSubtree'] = true;
            all_good = false;
            modal_msg = "Invalid DN for Windows Subtree";
          }
        }

        if (e.target.id == 'agmtDSSubtree') {
          if (value == "") {
            all_good = false;
          } else if (edit && value == this.state._agmtDSSubtree) {
            all_good = false;
          }

          if (!Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["valid_dn"])(value)) {
            errObj['agmtDSSubtree'] = true;
            all_good = false;
            modal_msg = "Invalid DN for Directory Server Subtree";
          }
        }

        if (e.target.id == 'agmtSyncInterval') {
          if (value != "" && isNaN(value)) {
            errObj['agmtSyncInterval'] = true;
            all_good = false;
            modal_msg = "Invalid value, value must be a number";
          } else if (edit && value == this.state._agmtSyncInterval) {
            all_good = false;
          }
        }

        if (e.target.id == 'agmtOneWaySync') {
          if (edit && value == this.state._agmtOneWaySync) {
            all_good = false;
          }
        } // End of agmt modal live validation

      }

      this.setState((_this$setState2 = {}, _defineProperty(_this$setState2, e.target.id, value), _defineProperty(_this$setState2, "errObj", errObj), _defineProperty(_this$setState2, "agmtSaveOK", all_good), _defineProperty(_this$setState2, "modalMsg", modal_msg), _defineProperty(_this$setState2, "modalScheduleMsg", modal_schedule_msg), _this$setState2));
    }
  }, {
    key: "handleTAFracAttrChangeEdit",
    value: function handleTAFracAttrChangeEdit(values) {
      // TypeAhead handling
      var e = {
        target: {
          name: 'agmt-modal-edit',
          id: 'agmtFracAttrs',
          value: values,
          type: 'input'
        }
      };
      this.handleChange(e);
    }
  }, {
    key: "handleTAFracAttrChange",
    value: function handleTAFracAttrChange(values) {
      // TypeAhead handling
      var e = {
        target: {
          name: 'agmt-modal',
          id: 'agmtFracAttrs',
          value: values,
          type: 'input'
        }
      };
      this.handleChange(e);
    }
  }, {
    key: "showConfirmDeleteAgmt",
    value: function showConfirmDeleteAgmt(agmtName) {
      this.setState({
        agmtName: agmtName,
        showConfirmDeleteAgmt: true,
        modalSpinning: false,
        modalChecked: false
      });
    }
  }, {
    key: "closeConfirmDeleteAgmt",
    value: function closeConfirmDeleteAgmt() {
      this.setState({
        showConfirmDeleteAgmt: false,
        modalChecked: false
      });
    }
  }, {
    key: "showConfirmInitAgmt",
    value: function showConfirmInitAgmt(agmtName) {
      this.setState({
        agmtName: agmtName,
        showConfirmInitAgmt: true,
        modalSpinning: false,
        modalChecked: false
      });
    }
  }, {
    key: "closeConfirmInitAgmt",
    value: function closeConfirmInitAgmt() {
      this.setState({
        showConfirmInitAgmt: false,
        modalChecked: false
      });
    }
  }, {
    key: "showCreateAgmtModal",
    value: function showCreateAgmtModal() {
      this.setState({
        showCreateAgmtModal: true,
        agmtName: "",
        agmtHost: "",
        agmtPort: "",
        agmtProtocol: "LDAP",
        agmtBindDN: "",
        agmtBindPW: "",
        agmtBindPWConfirm: "",
        agmtFracAttrs: [],
        agmtSync: true,
        agmtSyncMon: true,
        agmtSyncTue: true,
        agmtSyncWed: true,
        agmtSyncThu: true,
        agmtSyncFri: true,
        agmtSyncSat: true,
        agmtSyncSun: true,
        agmtStartTime: "00:00",
        agmtEndTime: "23:59",
        agmtInit: "noinit",
        agmtSaveOK: false,
        agmtSyncGroups: false,
        agmtSyncUsers: true,
        agmtWinDomain: "",
        agmtWinSubtree: "",
        agmtDSSubtree: "",
        agmtOneWaySync: "both",
        // "both", "toWindows", "fromWindows"
        agmtSyncInterval: "",
        modalScheduleMsg: "",
        errObj: {
          // Marks all the fields as required
          agmtName: true,
          agmtHost: true,
          agmtPort: true,
          agmtBindDN: true,
          agmtBindPW: true,
          agmtBindPWConfirm: true,
          agmtStartTime: false,
          agmtEndTime: false,
          agmtWinDomain: true,
          agmtWinSubtree: true,
          agmtDSSubtree: true
        }
      });
    }
  }, {
    key: "closeCreateAgmtModal",
    value: function closeCreateAgmtModal() {
      this.setState({
        showCreateAgmtModal: false
      });
    }
  }, {
    key: "closeEditAgmtModal",
    value: function closeEditAgmtModal() {
      this.setState({
        showEditAgmtModal: false
      });
    }
  }, {
    key: "showEditAgmt",
    value: function showEditAgmt(agmtName) {
      var _this2 = this;

      // Search for the agmt to get all the details
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-winsync-agmt', 'get', agmtName, '--suffix=' + this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('showEditAgmt', 'Edit winsync agreement', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var agmtName = "";
        var agmtHost = "";
        var agmtPort = "";
        var agmtProtocol = "";
        var agmtBindDN = "";
        var agmtBindPW = "";
        var agmtBindPWConfirm = "";
        var agmtFracAttrs = [];
        var agmtSync = true;
        var agmtSyncMon = false;
        var agmtSyncTue = false;
        var agmtSyncWed = false;
        var agmtSyncThu = false;
        var agmtSyncFri = false;
        var agmtSyncSat = false;
        var agmtSyncSun = false;
        var agmtStartTime = "";
        var agmtEndTime = "";
        var agmtSyncGroups = false;
        var agmtSyncUsers = false;
        var agmtWinDomain = "";
        var agmtWinSubtree = "";
        var agmtDSSubtree = "";
        var agmtOneWaySync = "both";
        var agmtSyncInterval = "";

        for (var attr in config['attrs']) {
          var val = config['attrs'][attr][0];

          if (attr == "winsyncinterval") {
            agmtSyncInterval = val;
          }

          if (attr == "onewaysync") {
            agmtOneWaySync = val;
          }

          if (attr == "nsds7directoryreplicasubtree") {
            agmtDSSubtree = val;
          }

          if (attr == "nsds7windowsreplicasubtree") {
            agmtWinSubtree = val;
          }

          if (attr == "nsds7windowsdomain") {
            agmtWinDomain = val;
          }

          if (attr == "nsds7newwinusersyncenabled") {
            if (val.toLowerCase() == "on") {
              agmtSyncUsers = true;
            }
          }

          if (attr == "nsds7newwingroupsyncenabled") {
            if (val.toLowerCase() == "on") {
              agmtSyncGroups = true;
            }
          }

          if (attr == "cn") {
            agmtName = val;
          }

          if (attr == "nsds5replicahost") {
            agmtHost = val;
          }

          if (attr == "nsds5replicaport") {
            agmtPort = val;
          }

          if (attr == "nsds5replicatransportinfo") {
            agmtProtocol = val;
          }

          if (attr == "nsds5replicabinddn") {
            agmtBindDN = val;
          }

          if (attr == "nsds5replicacredentials") {
            agmtBindPW = val;
            agmtBindPWConfirm = val;
          }

          if (attr == "nsds5replicatedattributelist") {
            var attrs = val.replace("(objectclass=*) $ EXCLUDE", "").trim();
            agmtFracAttrs = attrs.split(' ');
          }

          if (attr == "nsds5replicaupdateschedule") {
            agmtSync = false; // Parse schedule

            var parts = val.split(' ');
            var times = parts[0].split('-');
            var days = parts[1]; // Do the times

            agmtStartTime = times[0].substring(0, 2) + ":" + times[0].substring(2, 4);
            agmtEndTime = times[1].substring(0, 2) + ":" + times[1].substring(2, 4); // Do the days

            if (days.includes("0")) {
              agmtSyncSun = true;
            }

            if (days.includes("1")) {
              agmtSyncMon = true;
            }

            if (days.includes("2")) {
              agmtSyncTue = true;
            }

            if (days.includes("3")) {
              agmtSyncWed = true;
            }

            if (days.includes("4")) {
              agmtSyncThu = true;
            }

            if (days.includes("5")) {
              agmtSyncFri = true;
            }

            if (days.includes("6")) {
              agmtSyncSat = true;
            }
          }
        }

        if (_this2._mounted) {
          _this2.setState({
            showEditAgmtModal: true,
            errObj: {},
            agmtName: agmtName,
            agmtHost: agmtHost,
            agmtPort: agmtPort,
            agmtProtocol: agmtProtocol,
            agmtBindDN: agmtBindDN,
            agmtBindPW: agmtBindPW,
            agmtBindPWConfirm: agmtBindPWConfirm,
            agmtFracAttrs: agmtFracAttrs,
            agmtSync: agmtSync,
            agmtSyncMon: agmtSyncMon,
            agmtSyncTue: agmtSyncTue,
            agmtSyncWed: agmtSyncWed,
            agmtSyncThu: agmtSyncThu,
            agmtSyncFri: agmtSyncFri,
            agmtSyncSat: agmtSyncSat,
            agmtSyncSun: agmtSyncSun,
            agmtStartTime: agmtStartTime,
            agmtEndTime: agmtEndTime,
            agmtSyncGroups: agmtSyncGroups,
            agmtSyncUsers: agmtSyncUsers,
            agmtWinDomain: agmtWinDomain,
            agmtWinSubtree: agmtWinSubtree,
            agmtDSSubtree: agmtDSSubtree,
            agmtOneWaySync: agmtOneWaySync,
            agmtSyncInterval: agmtSyncInterval,
            agmtSaveOK: false,
            // Record original values before editing
            _agmtName: agmtName,
            _agmtHost: agmtHost,
            _agmtPort: agmtPort,
            _agmtProtocol: agmtProtocol,
            _agmtBindDN: agmtBindDN,
            _agmtBindPW: agmtBindPW,
            _agmtBindPWConfirm: agmtBindPWConfirm,
            _agmtFracAttrs: agmtFracAttrs,
            _agmtSync: agmtSync,
            _agmtSyncMon: agmtSyncMon,
            _agmtSyncTue: agmtSyncTue,
            _agmtSyncWed: agmtSyncWed,
            _agmtSyncThu: agmtSyncThu,
            _agmtSyncFri: agmtSyncFri,
            _agmtSyncSat: agmtSyncSat,
            _agmtSyncSun: agmtSyncSun,
            _agmtStartTime: agmtStartTime,
            _agmtEndTime: agmtEndTime,
            _agmtSyncGroups: agmtSyncGroups,
            _agmtSyncUsers: agmtSyncUsers,
            _agmtWinDomain: agmtWinDomain,
            _agmtWinSubtree: agmtWinSubtree,
            _agmtDSSubtree: agmtDSSubtree,
            _agmtOneWaySync: agmtOneWaySync,
            _agmtSyncInterval: agmtSyncInterval
          });
        }
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.props.addNotification("error", "Failed to get agreement information for: \"".concat(agmtName, "\" - ").concat(errMsg.desc));
      });
    }
  }, {
    key: "saveAgmt",
    value: function saveAgmt() {
      var _this3 = this;

      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-winsync-agmt', 'set', this.state.agmtName, '--suffix=' + this.props.suffix]; // Handle Schedule

      if (!this.state.agmtSync) {
        var agmt_days = "";

        if (this.state.agmtSyncSun) {
          agmt_days += "0";
        }

        if (this.state.agmtSyncMon) {
          agmt_days += "1";
        }

        if (this.state.agmtSyncTue) {
          agmt_days += "2";
        }

        if (this.state.agmtSyncWed) {
          agmt_days += "3";
        }

        if (this.state.agmtSyncThu) {
          agmt_days += "4";
        }

        if (this.state.agmtSyncFri) {
          agmt_days += "5";
        }

        if (this.state.agmtSyncSat) {
          agmt_days += "6";
        }

        cmd.push('--schedule=' + this.state.agmtStartTime.replace(':', '') + "-" + this.state.agmtEndTime.replace(':', '') + " " + agmt_days);
      } else if (this.state.agmtSync != this.state._agmtSync && this.state.agmtSync) {
        // We disabled custom scheduleRow
        cmd.push('--schedule=');
      }

      if (this.state.agmtSyncGroups != this.state._agmtSyncGroups) {
        var val = "off";

        if (this.state.agmtSyncGroups) {
          val = "on";
        }

        cmd.push('--sync-groups=' + val);
      }

      if (this.state.agmtSyncUsers != this.state._agmtSyncUsers) {
        var _val = "off";

        if (this.state.agmtSyncUsers) {
          _val = "on";
        }

        cmd.push('--sync-users=' + _val);
      }

      if (this.state.agmtWinDomain != this.state._agmtWinDomain) {
        cmd.push('--win-domain=' + this.state.agmtWinDomain);
      }

      if (this.state.agmtWinSubtree != this.state._agmtWinSubtree) {
        cmd.push('--win-subtree=' + this.state.agmtWinSubtree);
      }

      if (this.state.agmtDSSubtree != this.state._agmtDSSubtree) {
        cmd.push('--ds-subtree=' + this.state.agmtDSSubtree);
      }

      if (this.state.agmtOneWaySync != this.state._agmtOneWaySync) {
        cmd.push('--one-way-sync=' + this.state.agmtOneWaySync);
      }

      if (this.state.agmtSyncInterval != this.state._agmtSyncInterval) {
        cmd.push('--sync-interval=' + this.state.agmtSyncInterval);
      }

      if (this.state.agmtProtocol != this.state._agmtProtocol) {
        cmd.push('--conn-protocol=' + this.state.agmtProtocol);
      }

      if (this.state.agmtBindPW != this.state._agmtBindPW) {
        cmd.push('--bind-passwd=' + this.state.agmtBindPW);
      }

      if (this.state.agmtBindDN != this.state._agmtBindDN) {
        cmd.push('--bind-passwd=' + this.state.agmtBindDN);
      }

      if (this.state.agmtFracAttrs != this.state._agmtFracAttrs) {
        cmd.push('--frac-list=' + this.state.agmtFracAttrs.join(' '));
      }

      if (this.state.agmtHost != this.state._agmtHost) {
        cmd.push('--host=' + this.state.agmtHost);
      }

      if (this.state.agmtPort != this.state._agmtPort) {
        cmd.push('--port=' + this.state.agmtPort);
      }

      this.setState({
        savingAgmt: true
      });
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('saveAgmt', 'update winsync agreement', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this3.props.reload(_this3.props.suffix);

        if (_this3._mounted) {
          _this3.setState({
            savingAgmt: false,
            showEditAgmtModal: false
          });
        }

        _this3.props.addNotification('success', 'Successfully updated winsync agreement');
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.addNotification("error", "Failed to update winsync agreement - ".concat(errMsg.desc));

        _this3.setState({
          savingAgmt: false
        });
      });
    }
  }, {
    key: "pokeAgmt",
    value: function pokeAgmt(agmtName) {
      var _this4 = this;

      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-winsync-agmt', 'poke', agmtName, '--suffix=' + this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('pokeAgmt', 'send updates now', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this4.props.reload(_this4.props.suffix);

        _this4.props.addNotification('success', 'Successfully poked winsync agreement');
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this4.props.addNotification('error', "Failed to poke winsync agreement - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "initAgmt",
    value: function initAgmt() {
      var _this5 = this;

      var init_cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-winsync-agmt', 'init', '--suffix=' + this.props.suffix, this.state.agmtName];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('initAgmt', 'Initialize agreement', init_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(init_cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        var agmtIntervalCount = _this5.state.agmtInitCounter + 1;
        var intervals = _this5.state.agmtInitIntervals;

        _this5.props.reload(_this5.props.suffix);

        intervals[agmtIntervalCount] = setInterval(_this5.watchAgmtInit, 2000, _this5.state.agmtName, agmtIntervalCount); // This triggers error and does not actually work

        if (_this5._mounted) {
          _this5.setState({
            agmtInitCounter: agmtIntervalCount,
            agmtInitIntervals: intervals,
            showConfirmInitAgmt: false
          });
        }
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.props.addNotification('error', "Failed to initialize winsync agreement - ".concat(errMsg.desc));

        _this5.setState({
          showConfirmInitAgmt: false
        });
      });
    }
  }, {
    key: "confirmToggle",
    value: function confirmToggle(agmtName, state) {
      if (state == 'Enabled') {
        this.setState({
          agmtName: agmtName,
          showConfirmDisableAgmt: true
        });
      } else {
        this.setState({
          agmtName: agmtName,
          showConfirmEnableAgmt: true
        });
      }
    }
  }, {
    key: "closeConfirmEnableAgmt",
    value: function closeConfirmEnableAgmt() {
      this.setState({
        showConfirmEnableAgmt: false
      });
    }
  }, {
    key: "closeConfirmDisableAgmt",
    value: function closeConfirmDisableAgmt() {
      this.setState({
        showConfirmDisableAgmt: false
      });
    }
  }, {
    key: "enableAgmt",
    value: function enableAgmt(agmtName) {
      var _this6 = this;

      // Enable/disable agmt
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-winsync-agmt', 'enable', agmtName, '--suffix=' + this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('enableAgmt', 'enable agmt', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this6.props.reload(_this6.props.suffix);

        _this6.props.addNotification('success', 'Successfully enabled winsync agreement');
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this6.props.addNotification("error", "Failed to enabled winsync agreement - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "disableAgmt",
    value: function disableAgmt(agmtName) {
      var _this7 = this;

      // Enable/disable agmt
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-winsync-agmt', 'disable', agmtName, '--suffix=' + this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('disableAgmt', 'Disable agmt', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this7.props.reload(_this7.props.suffix);

        _this7.props.addNotification('success', 'Successfully disabled winsync agreement');
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this7.props.addNotification("error", "Failed to disable winsync agreement - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "deleteAgmt",
    value: function deleteAgmt() {
      var _this8 = this;

      this.setState({
        deleteSpinning: true
      });
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-winsync-agmt', 'delete', '--suffix=' + this.props.suffix, this.state.agmtName];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('deleteAgmt', 'Delete agmt', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this8.props.reload(_this8.props.suffix);

        _this8.props.addNotification('success', 'Successfully deleted winsync agreement');

        _this8.setState({
          showDeleteConfirm: false,
          deleteSpinning: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this8.props.addNotification("error", "Failed to delete winsync agreement - ".concat(errMsg.desc));

        _this8.setState({
          showDeleteConfirm: false,
          deleteSpinning: false
        });
      });
    }
  }, {
    key: "createAgmt",
    value: function createAgmt() {
      var _this9 = this;

      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-winsync-agmt', 'create', this.state.agmtName, '--suffix=' + this.props.suffix, '--host=' + this.state.agmtHost, '--port=' + this.state.agmtPort, '--conn-protocol=' + this.state.agmtProtocol, '--bind-dn=' + this.state.agmtBindDN, '--bind-passwd=' + this.state.agmtBindPW, '--ds-subtree=' + this.state.agmtDSSubtree, '--win-subtree=' + this.state.agmtWinSubtree, '--win-domain=' + this.state.agmtWinDomain, '--one-way-sync=' + this.state.agmtOneWaySync]; // Handle Schedule

      if (!this.state.agmtSync) {
        var agmt_days = "";

        if (this.state.agmtSyncSun) {
          agmt_days += "0";
        }

        if (this.state.agmtSyncMon) {
          agmt_days += "1";
        }

        if (this.state.agmtSyncTue) {
          agmt_days += "2";
        }

        if (this.state.agmtSyncWed) {
          agmt_days += "3";
        }

        if (this.state.agmtSyncThu) {
          agmt_days += "4";
        }

        if (this.state.agmtSyncFri) {
          agmt_days += "5";
        }

        if (this.state.agmtSyncSat) {
          agmt_days += "6";
        }

        cmd.push('--schedule=' + this.state.agmtStartTime.replace(':', '') + "-" + this.state.agmtEndTime.replace(':', '') + " " + agmt_days);
      }

      if (this.state.agmtFracAttrs.length > 0) {
        cmd.push('--frac-list=' + this.state.agmtFracAttrs.join(' '));
      }

      if (this.state.agmtSyncGroups) {
        cmd.push('--sync-groups=on');
      }

      if (this.state.agmtSyncUsers) {
        cmd.push('--sync-users=on');
      }

      if (this.state.agmtSyncInterval != "") {
        cmd.push('--sync-interval=' + this.state.agmtSyncInterval);
      }

      this.setState({
        savingAgmt: true
      });
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('createAgmt', 'Create winsync agreement', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this9.props.reload(_this9.props.suffix);

        if (_this9._mounted) {
          _this9.setState({
            savingAgmt: false,
            showCreateAgmtModal: false
          });
        }

        _this9.props.addNotification('success', 'Successfully created winsync agreement');

        if (_this9.state.agmtInit == 'online-init') {
          _this9.initAgmt(_this9.state.agmtName);
        }
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this9.props.addNotification("error", "Failed to create winsync agreement - ".concat(errMsg.desc));

        _this9.setState({
          savingAgmt: false
        });
      });
    }
  }, {
    key: "watchAgmtInit",
    value: function watchAgmtInit(agmtName, idx) {
      var _this10 = this;

      // Watch the init, then clear the interval index
      var status_cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-winsync-agmt', 'init-status', '--suffix=' + this.props.suffix, agmtName];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('watchAgmtInit', 'Get initialization status for agmt', status_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(status_cmd, {
        superuser: true,
        "err": "message"
      }).done(function (data) {
        var init_status = JSON.parse(data);

        if (init_status.startsWith('Agreement successfully initialized') || init_status.startsWith('Agreement initialization failed')) {
          // Either way we're done, stop watching the status
          clearInterval(_this10.state.agmtInitIntervals[idx]);
        }

        _this10.props.reload(_this10.props.suffix);
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this11 = this;

      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-right"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_replTables_jsx__WEBPACK_IMPORTED_MODULE_3__["ReplAgmtTable"], {
        rows: this.props.rows,
        edit: this.showEditAgmt,
        poke: this.pokeAgmt,
        init: this.showConfirmInitAgmt,
        enable: this.confirmToggle,
        delete: this.showConfirmDeleteAgmt
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top ds-container ds-inline"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Button"], {
        bsStyle: "primary",
        onClick: this.showCreateAgmtModal
      }, "Create Agreement"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Button"], {
        className: "ds-left-margin",
        bsStyle: "default",
        onClick: function onClick() {
          _this11.props.reload(_this11.props.suffix);
        }
      }, "Refresh Agreements")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_replModals_jsx__WEBPACK_IMPORTED_MODULE_4__["WinsyncAgmtModal"], {
        showModal: this.state.showCreateAgmtModal,
        closeHandler: this.closeCreateAgmtModal,
        handleChange: this.handleChange,
        handleFracChange: this.handleTAFracAttrChange,
        saveHandler: this.createAgmt,
        spinning: this.state.savingAgmt,
        agmtName: this.state.agmtName,
        agmtHost: this.state.agmtHost,
        agmtPort: this.state.agmtPort,
        agmtBindDN: this.state.agmtBindDN,
        agmtBindPW: this.state.agmtBindPW,
        agmtBindPWConfirm: this.state.agmtBindPWConfirm,
        agmtProtocol: this.state.agmtProtocol,
        agmtFracAttrs: this.state.agmtFracAttrs,
        agmtSync: this.state.agmtSync,
        agmtSyncMon: this.state.agmtSyncMon,
        agmtSyncTue: this.state.agmtSyncTue,
        agmtSyncWed: this.state.agmtSyncWed,
        agmtSyncThu: this.state.agmtSyncThu,
        agmtSyncFri: this.state.agmtSyncFri,
        agmtSyncSat: this.state.agmtSyncSat,
        agmtSyncSun: this.state.agmtSyncSun,
        agmtStartTime: this.state.agmtStartTime,
        agmtEndTime: this.state.agmtEndTime,
        agmtSyncGroups: this.state.agmtSyncGroups,
        agmtSyncUsers: this.state.agmtSyncUsers,
        agmtWinDomain: this.state.agmtWinDomain,
        agmtWinSubtree: this.state.agmtWinSubtree,
        agmtDSSubtree: this.state.agmtDSSubtree,
        agmtOneWaySync: this.state.agmtOneWaySync,
        agmtSyncInterval: this.state.agmtSyncInterval,
        availAttrs: this.props.attrs,
        error: this.state.errObj,
        errorMsg: this.state.modalMsg,
        errorScheduleMsg: this.state.modalScheduleMsg,
        saveOK: this.state.agmtSaveOK
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_replModals_jsx__WEBPACK_IMPORTED_MODULE_4__["WinsyncAgmtModal"], {
        showModal: this.state.showEditAgmtModal,
        closeHandler: this.closeEditAgmtModal,
        handleChange: this.handleChange,
        handleFracChange: this.handleTAFracAttrChangeEdit,
        saveHandler: this.saveAgmt,
        spinning: this.state.savingAgmt,
        agmtName: this.state.agmtName,
        agmtHost: this.state.agmtHost,
        agmtPort: this.state.agmtPort,
        agmtBindDN: this.state.agmtBindDN,
        agmtBindPW: this.state.agmtBindPW,
        agmtBindPWConfirm: this.state.agmtBindPWConfirm,
        agmtProtocol: this.state.agmtProtocol,
        agmtStripAttrs: this.state.agmtStripAttrs,
        agmtFracAttrs: this.state.agmtFracAttrs,
        agmtFracInitAttrs: this.state.agmtFracInitAttrs,
        agmtSync: this.state.agmtSync,
        agmtSyncMon: this.state.agmtSyncMon,
        agmtSyncTue: this.state.agmtSyncTue,
        agmtSyncWed: this.state.agmtSyncWed,
        agmtSyncThu: this.state.agmtSyncThu,
        agmtSyncFri: this.state.agmtSyncFri,
        agmtSyncSat: this.state.agmtSyncSat,
        agmtSyncSun: this.state.agmtSyncSun,
        agmtStartTime: this.state.agmtStartTime,
        agmtEndTime: this.state.agmtEndTime,
        agmtSyncGroups: this.state.agmtSyncGroups,
        agmtSyncUsers: this.state.agmtSyncUsers,
        agmtWinDomain: this.state.agmtWinDomain,
        agmtWinSubtree: this.state.agmtWinSubtree,
        agmtDSSubtree: this.state.agmtDSSubtree,
        agmtOneWaySync: this.state.agmtOneWaySync,
        agmtSyncInterval: this.state.agmtSyncInterval,
        availAttrs: this.props.attrs,
        error: this.state.errObj,
        errorMsg: this.state.modalMsg,
        errorScheduleMsg: this.state.modalScheduleMsg,
        saveOK: this.state.agmtSaveOK,
        edit: true
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["DoubleConfirmModal"], {
        showModal: this.state.showConfirmDeleteAgmt,
        closeHandler: this.closeConfirmDeleteAgmt,
        handleChange: this.handleModalChange,
        actionHandler: this.deleteAgmt,
        spinning: this.state.modalSpinning,
        item: this.state.agmtName,
        checked: this.state.modalChecked,
        mTitle: "Delete Winsync Agreement",
        mMsg: "Are you sure you want to delete this winsync agreement",
        mSpinningMsg: "Deleting Winsync Agreement ...",
        mBtnName: "Delete Agreement"
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["DoubleConfirmModal"], {
        showModal: this.state.showConfirmInitAgmt,
        closeHandler: this.closeConfirmInitAgmt,
        handleChange: this.handleModalChange,
        actionHandler: this.initAgmt,
        spinning: this.state.modalSpinning,
        item: this.state.agmtName,
        checked: this.state.modalChecked,
        mTitle: "Initialize Winsync Agreement",
        mMsg: "Are you sure you want to initialize this winsync agreement",
        mSpinningMsg: "Initializing Winsync Agreement ...",
        mBtnName: "Initialize Agreement"
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showConfirmEnableAgmt,
        closeHandler: this.closeConfirmEnableAgmt,
        actionFunc: this.enableAgmt,
        actionParam: this.state.agmtName,
        msg: "Are you sure you want to enable this winsync agreement?",
        msgContent: this.state.agmtName
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showConfirmDisableAgmt,
        closeHandler: this.closeConfirmDisableAgmt,
        actionFunc: this.disableAgmt,
        actionParam: this.state.agmtName,
        msg: "Are you sure you want to disable this winsync agreement?",
        msgContent: this.state.agmtName
      }));
    }
  }]);

  return WinsyncAgmts;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);
WinsyncAgmts.propTypes = {
  suffix: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  rows: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func
};
WinsyncAgmts.defaultProps = {
  serverId: "",
  suffix: "",
  rows: [],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["noop"]
};

/***/ }),

/***/ "./src/lib/security/certificateManagement.jsx":
/*!****************************************************!*\
  !*** ./src/lib/security/certificateManagement.jsx ***!
  \****************************************************/
/*! exports provided: CertificateManagement, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CertificateManagement", function() { return CertificateManagement; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../lib/notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _securityTables_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./securityTables.jsx */ "./src/lib/security/securityTables.jsx");
/* harmony import */ var _securityModals_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./securityModals.jsx */ "./src/lib/security/securityModals.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _lib_tools_jsx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../lib/tools.jsx */ "./src/lib/tools.jsx");
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }

function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }










var CertificateManagement =
/*#__PURE__*/
function (_React$Component) {
  _inherits(CertificateManagement, _React$Component);

  function CertificateManagement(props) {
    var _this;

    _classCallCheck(this, CertificateManagement);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(CertificateManagement).call(this, props));
    _this.state = {
      activeKey: 1,
      ServerCerts: _this.props.ServerCerts,
      CACerts: _this.props.CACerts,
      showEditModal: false,
      showAddModal: false,
      modalSpinner: false,
      showConfirmDelete: false,
      certName: "",
      certFile: "",
      flags: "",
      errObj: {},
      isCACert: false,
      showConfirmCAChange: false,
      loading: false,
      modalSpinning: false,
      modalChecked: false
    };
    _this.handleNavSelect = _this.handleNavSelect.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.addCACert = _this.addCACert.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.addCert = _this.addCert.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showAddModal = _this.showAddModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeAddModal = _this.closeAddModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showAddCAModal = _this.showAddCAModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeAddCAModal = _this.closeAddCAModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showEditModal = _this.showEditModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeEditModal = _this.closeEditModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showEditCAModal = _this.showEditCAModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleFlagChange = _this.handleFlagChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.editCert = _this.editCert.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.doEditCert = _this.doEditCert.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmCAChange = _this.closeConfirmCAChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.showDeleteConfirm = _this.showDeleteConfirm.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.delCert = _this.delCert.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmDelete = _this.closeConfirmDelete.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.reloadCerts = _this.reloadCerts.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.reloadCACerts = _this.reloadCACerts.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(CertificateManagement, [{
    key: "handleNavSelect",
    value: function handleNavSelect(key) {
      this.setState({
        activeKey: key
      });
    }
  }, {
    key: "showAddModal",
    value: function showAddModal() {
      this.setState({
        showAddModal: true,
        errObj: {
          certName: true,
          certFile: true
        }
      });
    }
  }, {
    key: "closeAddModal",
    value: function closeAddModal() {
      this.setState({
        showAddModal: false,
        certName: "",
        certFile: ""
      });
    }
  }, {
    key: "showAddCAModal",
    value: function showAddCAModal() {
      this.setState({
        showAddCAModal: true,
        errObj: {
          certName: true,
          certFile: true
        }
      });
    }
  }, {
    key: "closeAddCAModal",
    value: function closeAddCAModal() {
      this.setState({
        showAddCAModal: false,
        certName: "",
        certFile: ""
      });
    }
  }, {
    key: "addCert",
    value: function addCert() {
      var _this2 = this;

      if (this.state.certName == "") {
        this.props.addNotification("warning", "Missing certificate nickname");
        return;
      } else if (this.state.certFile == "") {
        this.props.addNotification("warning", "Missing certificate file name");
        return;
      }

      this.setState({
        modalSpinner: true,
        loading: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "certificate", "add", "--name=" + this.state.certName, "--file=" + this.state.certFile];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("addCert", "Adding server cert", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function () {
        _this2.reloadCACerts();

        _this2.setState({
          showAddModal: false,
          certFile: '',
          certName: '',
          modalSpinner: false
        });

        _this2.props.addNotification("success", "Successfully added certificate");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this2.setState({
          modalSpinner: false,
          loading: false
        });

        _this2.props.addNotification("error", "Error adding certificate - ".concat(msg));
      });
    }
  }, {
    key: "addCACert",
    value: function addCACert() {
      var _this3 = this;

      if (this.state.certName == "") {
        this.props.addNotification("warning", "Missing certificate nickname");
        return;
      } else if (this.state.certFile == "") {
        this.props.addNotification("warning", "Missing certificate file name");
        return;
      }

      this.setState({
        modalSpinner: true,
        loading: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "ca-certificate", "add", "--name=" + this.state.certName, "--file=" + this.state.certFile];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("addCACert", "Adding CA certificate", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function () {
        _this3.reloadCACerts();

        _this3.setState({
          showAddCAModal: false,
          certFile: '',
          certName: '',
          modalSpinner: false
        });

        _this3.props.addNotification("success", "Successfully added certificate");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this3.setState({
          modalSpinner: false,
          loading: false
        });

        _this3.props.addNotification("error", "Error adding certificate - ".concat(msg));
      });
    }
  }, {
    key: "showDeleteConfirm",
    value: function showDeleteConfirm(dataRow) {
      this.setState({
        showConfirmDelete: true,
        certName: dataRow.nickname[0],
        modalSpinning: false,
        modalChecked: false
      });
    }
  }, {
    key: "delCert",
    value: function delCert() {
      var _this4 = this;

      this.setState({
        modalSpinner: true,
        loading: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "certificate", "del", this.state.certName];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("delCert", "Deleting certificate", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function () {
        _this4.reloadCACerts();

        _this4.setState({
          certName: '',
          modalSpinner: false,
          showConfirmDelete: false
        });

        _this4.props.addNotification("success", "Successfully deleted certificate");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this4.setState({
          certName: '',
          modalSpinner: false,
          loading: false
        });

        _this4.props.addNotification("error", "Error deleting certificate - ".concat(msg));
      });
    }
  }, {
    key: "showEditModal",
    value: function showEditModal(rowData) {
      this.setState({
        showEditModal: true,
        certName: rowData.nickname[0],
        flags: rowData.flags[0],
        isCACert: false
      });
    }
  }, {
    key: "closeEditModal",
    value: function closeEditModal() {
      this.setState({
        showEditModal: false,
        flags: ''
      });
    }
  }, {
    key: "showEditCAModal",
    value: function showEditCAModal(rowData) {
      this.setState({
        showEditModal: true,
        certName: rowData.nickname[0],
        flags: rowData.flags[0],
        isCACert: true
      });
    }
  }, {
    key: "editCert",
    value: function editCert() {
      // Check if CA cert flags were removed
      if (this.state.isCACert) {
        var SSLFlags = '';
        SSLFlags = this.state.flags.split(',', 1);

        if (!SSLFlags[0].includes('C') || !SSLFlags[0].includes('T')) {
          // This could remove the CA cert properties, better warn user
          this.setState({
            showConfirmCAChange: true,
            modalSpinning: false,
            modalChecked: false
          });
          return;
        }
      }

      this.doEditCert();
    }
  }, {
    key: "closeConfirmCAChange",
    value: function closeConfirmCAChange() {
      this.setState({
        showConfirmCAChange: false,
        modalSpinning: false,
        modalChecked: false
      });
    }
  }, {
    key: "doEditCert",
    value: function doEditCert() {
      var _this5 = this;

      this.setState({
        modalSpinner: true,
        loading: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "certificate", "set-trust-flags", this.state.certName, "--flags=" + this.state.flags];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("doEditCert", "Editing trust flags", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function () {
        _this5.reloadCACerts();

        _this5.setState({
          showEditModal: false,
          flags: '',
          certName: '',
          modalSpinner: false
        });

        _this5.props.addNotification("success", "Successfully changed certificate's trust flags");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this5.setState({
          showEditModal: false,
          flags: '',
          certName: '',
          modalSpinner: false,
          loading: false
        });

        _this5.props.addNotification("error", "Error setting trust flags - ".concat(msg));
      });
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      var _this$setState;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var valueErr = false;
      var errObj = this.state.errObj;

      if (value == "") {
        valueErr = true;
      }

      errObj[e.target.id] = valueErr;
      this.setState((_this$setState = {}, _defineProperty(_this$setState, e.target.id, value), _defineProperty(_this$setState, "errObj", errObj), _this$setState));
    }
  }, {
    key: "handleFlagChange",
    value: function handleFlagChange(e) {
      var checked = e.target.checked;
      var id = e.target.id;
      var flags = this.state.flags;
      var SSLFlags = '';
      var EmailFlags = '';
      var OSFlags = '';

      var _flags$split = flags.split(',');

      var _flags$split2 = _slicedToArray(_flags$split, 3);

      SSLFlags = _flags$split2[0];
      EmailFlags = _flags$split2[1];
      OSFlags = _flags$split2[2];

      if (id.endsWith('SSL')) {
        var _arr2 = ['C', 'T', 'c', 'P', 'p'];

        for (var _i2 = 0; _i2 < _arr2.length; _i2++) {
          var trustFlag = _arr2[_i2];

          if (id.startsWith(trustFlag)) {
            if (checked) {
              SSLFlags += trustFlag;
            } else {
              SSLFlags = SSLFlags.replace(trustFlag, '');
            }
          }
        }
      } else if (id.endsWith('Email')) {
        var _arr3 = ['C', 'T', 'c', 'P', 'p'];

        for (var _i3 = 0; _i3 < _arr3.length; _i3++) {
          var _trustFlag = _arr3[_i3];

          if (id.startsWith(_trustFlag)) {
            if (checked) {
              EmailFlags += _trustFlag;
            } else {
              EmailFlags = EmailFlags.replace(_trustFlag, '');
            }
          }
        }
      } else {
        // Object Signing (OS)
        var _arr4 = ['C', 'T', 'c', 'P', 'p'];

        for (var _i4 = 0; _i4 < _arr4.length; _i4++) {
          var _trustFlag2 = _arr4[_i4];

          if (id.startsWith(_trustFlag2)) {
            if (checked) {
              OSFlags += _trustFlag2;
            } else {
              OSFlags = OSFlags.replace(_trustFlag2, '');
            }
          }
        }
      }

      this.setState({
        flags: SSLFlags + "," + EmailFlags + "," + OSFlags
      });
    }
  }, {
    key: "closeConfirmDelete",
    value: function closeConfirmDelete() {
      this.setState({
        showConfirmDelete: false,
        modalSpinning: false,
        modalChecked: false
      });
    }
  }, {
    key: "reloadCerts",
    value: function reloadCerts() {
      var _this6 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "certificate", "list"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("reloadCerts", "Load certificates", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var certs = JSON.parse(content);
        var certNames = [];
        var _iteratorNormalCompletion = true;
        var _didIteratorError = false;
        var _iteratorError = undefined;

        try {
          for (var _iterator = certs[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
            var cert = _step.value;
            certNames.push(cert.attrs['nickname']);
          }
        } catch (err) {
          _didIteratorError = true;
          _iteratorError = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion && _iterator.return != null) {
              _iterator.return();
            }
          } finally {
            if (_didIteratorError) {
              throw _iteratorError;
            }
          }
        }

        _this6.setState({
          ServerCerts: certs,
          loading: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this6.props.addNotification("error", "Error loading server certificates - ".concat(msg));
      });
    }
  }, {
    key: "reloadCACerts",
    value: function reloadCACerts() {
      var _this7 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "ca-certificate", "list"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("reloadCACerts", "Load certificates", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var certs = JSON.parse(content);

        _this7.setState({
          CACerts: certs,
          loading: false
        }, _this7.reloadCerts);
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this7.props.addNotification("error", "Error loading CA certificates - ".concat(msg));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this8 = this;

      var CATitle = 'Trusted Certificate Authorites <font size="1">(' + this.state.CACerts.length + ')</font>';
      var ServerTitle = 'TLS Certificates <font size="1">(' + this.state.ServerCerts.length + ')</font>';
      var certificatePage = '';

      if (this.state.loading) {
        certificatePage = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-loading-spinner ds-center"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading certificates ..."), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Spinner"], {
          loading: true,
          size: "md"
        }));
      } else {
        certificatePage = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "container-fluid"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-tab-table"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["TabContainer"], {
          id: "basic-tabs-pf",
          onSelect: this.handleNavSelect,
          activeKey: this.state.activeKey
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Nav"], {
          bsClass: "nav nav-tabs nav-tabs-pf"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["NavItem"], {
          eventKey: 1
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          dangerouslySetInnerHTML: {
            __html: CATitle
          }
        })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["NavItem"], {
          eventKey: 2
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          dangerouslySetInnerHTML: {
            __html: ServerTitle
          }
        }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["TabContent"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["TabPane"], {
          eventKey: 1
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top-lg"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_securityTables_jsx__WEBPACK_IMPORTED_MODULE_4__["CertTable"], {
          certs: this.state.CACerts,
          key: this.state.CACerts,
          editCert: this.showEditCAModal,
          delCert: this.showDeleteConfirm
        }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
          bsStyle: "primary",
          className: "ds-margin-top-med",
          onClick: function onClick() {
            _this8.showAddCAModal();
          }
        }, "Add CA Certificate"))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["TabPane"], {
          eventKey: 2
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top-lg"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_securityTables_jsx__WEBPACK_IMPORTED_MODULE_4__["CertTable"], {
          certs: this.state.ServerCerts,
          key: this.state.ServerCerts,
          editCert: this.showEditModal,
          delCert: this.showDeleteConfirm
        }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
          bsStyle: "primary",
          className: "ds-margin-top-med",
          onClick: function onClick() {
            _this8.showAddModal();
          }
        }, "Add Server Certificate"))))))));
      }

      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, certificatePage, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_securityModals_jsx__WEBPACK_IMPORTED_MODULE_5__["EditCertModal"], {
        showModal: this.state.showEditModal,
        closeHandler: this.closeEditModal,
        handleChange: this.handleFlagChange,
        saveHandler: this.editCert,
        flags: this.state.flags,
        spinning: this.state.modalSpinner
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_securityModals_jsx__WEBPACK_IMPORTED_MODULE_5__["SecurityAddCertModal"], {
        showModal: this.state.showAddModal,
        closeHandler: this.closeAddModal,
        handleChange: this.handleChange,
        saveHandler: this.addCert,
        spinning: this.state.modalSpinner,
        error: this.state.errObj
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_securityModals_jsx__WEBPACK_IMPORTED_MODULE_5__["SecurityAddCACertModal"], {
        showModal: this.state.showAddCAModal,
        closeHandler: this.closeAddCAModal,
        handleChange: this.handleChange,
        saveHandler: this.addCACert,
        spinning: this.state.modalSpinner,
        error: this.state.errObj
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_3__["DoubleConfirmModal"], {
        showModal: this.state.showConfirmDelete,
        closeHandler: this.closeConfirmDelete,
        handleChange: this.handleChange,
        actionHandler: this.delCert,
        spinning: this.state.modalSpinning,
        item: this.state.certName,
        checked: this.state.modalChecked,
        mTitle: "Delete Certificate",
        mMsg: "Are you sure you want to delete this certificate?",
        mSpinningMsg: "Deleting Certificate ...",
        mBtnName: "Delete Certificate"
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_3__["DoubleConfirmModal"], {
        showModal: this.state.showConfirmCAChange,
        closeHandler: this.closeConfirmCAChange,
        handleChange: this.handleChange,
        actionHandler: this.doEditCert,
        spinning: this.state.modalSpinning,
        item: this.state.certName,
        checked: this.state.modalChecked,
        mTitle: "Warning - ",
        mMsg: "Removing the 'C' or 'T' flags from the SSL trust catagory could break all TLS connectivity to and from the server, are you sure you want to proceed?",
        mSpinningMsg: "Editing CA Certificate ...",
        mBtnName: "Change Trust Flags"
      }));
    }
  }]);

  return CertificateManagement;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Props and defaults

CertificateManagement.propTypes = {
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  CACerts: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array,
  ServerCerts: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func
};
CertificateManagement.defaultProps = {
  serverId: "",
  CACerts: [],
  ServerCerts: [],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (CertificateManagement);

/***/ }),

/***/ "./src/lib/security/ciphers.jsx":
/*!**************************************!*\
  !*** ./src/lib/security/ciphers.jsx ***!
  \**************************************/
/*! exports provided: Ciphers, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ciphers", function() { return Ciphers; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../lib/tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_6__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }








var Ciphers =
/*#__PURE__*/
function (_React$Component) {
  _inherits(Ciphers, _React$Component);

  function Ciphers(props) {
    var _this;

    _classCallCheck(this, Ciphers);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(Ciphers).call(this, props));
    _this.state = {
      allowCiphers: [],
      denyCiphers: [],
      cipherPref: "default",
      prefs: _this.props.cipherPref,
      saving: false,
      availableCiphers: _this.props.supportedCiphers
    };
    _this.handlePrefChange = _this.handlePrefChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.saveCipherPref = _this.saveCipherPref.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleCipherChange = _this.handleCipherChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(Ciphers, [{
    key: "componentWillMount",
    value: function componentWillMount() {
      var cipherPref = "default";
      var allowedCiphers = [];
      var deniedCiphers = [];
      var availableCiphers = this.props.supportedCiphers.slice(0); // Copy array
      // Parse SSL cipher attributes (nsSSL3Ciphers)

      if (this.props.cipherPref != "") {
        var rawCiphers = this.props.cipherPref.split(","); // First check the first element as it has special meaning

        if (rawCiphers[0].toLowerCase() == "default") {
          rawCiphers.shift();
        } else if (rawCiphers[0].toLowerCase() == "+all") {
          cipherPref = "+all";
          rawCiphers.shift();
        } else if (rawCiphers[0].toLowerCase() == "-all") {
          cipherPref = "-all";
          rawCiphers.shift();
        } // Process the remaining ciphers


        rawCiphers = rawCiphers.map(function (x) {
          return x.toUpperCase();
        });
        var _iteratorNormalCompletion = true;
        var _didIteratorError = false;
        var _iteratorError = undefined;

        try {
          for (var _iterator = rawCiphers[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
            var cipher = _step.value;

            if (cipher.startsWith("+")) {
              allowedCiphers.push(cipher.substring(1));
            } else if (cipher.startsWith("-")) {
              deniedCiphers.push(cipher.substring(1));
            }
          } // Now modify the available list

        } catch (err) {
          _didIteratorError = true;
          _iteratorError = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion && _iterator.return != null) {
              _iterator.return();
            }
          } finally {
            if (_didIteratorError) {
              throw _iteratorError;
            }
          }
        }

        for (var i = 0; i < availableCiphers.length; i++) {
          for (var ii = 0; ii < allowedCiphers.length; ii++) {
            if (availableCiphers[i] === allowedCiphers[ii]) {
              availableCiphers.splice(i, 1);
              i--;
              break;
            }
          }

          for (var _ii = 0; _ii < deniedCiphers.length; _ii++) {
            if (availableCiphers[i] === deniedCiphers[_ii]) {
              availableCiphers.splice(i, 1);
              i--;
              break;
            }
          }
        }
      }

      this.setState({
        cipherPref: cipherPref,
        allowCiphers: allowedCiphers,
        denyCiphers: deniedCiphers,
        availableCiphers: availableCiphers
      });
    }
  }, {
    key: "saveCipherPref",
    value: function saveCipherPref() {
      var _this2 = this;

      /* start the spinner */
      this.setState({
        saving: true
      });
      var prefs = this.state.cipherPref;
      var _iteratorNormalCompletion2 = true;
      var _didIteratorError2 = false;
      var _iteratorError2 = undefined;

      try {
        for (var _iterator2 = this.state.allowCiphers[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
          var cipher = _step2.value;
          prefs += ",+" + cipher;
        }
      } catch (err) {
        _didIteratorError2 = true;
        _iteratorError2 = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
            _iterator2.return();
          }
        } finally {
          if (_didIteratorError2) {
            throw _iteratorError2;
          }
        }
      }

      var _iteratorNormalCompletion3 = true;
      var _didIteratorError3 = false;
      var _iteratorError3 = undefined;

      try {
        for (var _iterator3 = this.state.denyCiphers[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
          var _cipher = _step3.value;
          prefs += ",-" + _cipher;
        }
      } catch (err) {
        _didIteratorError3 = true;
        _iteratorError3 = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
            _iterator3.return();
          }
        } finally {
          if (_didIteratorError3) {
            throw _iteratorError3;
          }
        }
      }

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "ciphers", "set", "--", prefs];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("saveCipherPref", "Saving cipher preferences", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_1___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function () {
        _this2.props.addNotification("success", "Successfully set cipher preferences.  You must restart the Directory Server for these changes to take effect.");

        _this2.setState({
          saving: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this2.props.addNotification("error", "Error setting cipher preferences - ".concat(msg));

        _this2.setState({
          saving: false
        });
      });
    }
  }, {
    key: "handlePrefChange",
    value: function handlePrefChange(e) {
      this.setState({
        cipherPref: e.target.value
      });
    }
  }, {
    key: "handleCipherChange",
    value: function handleCipherChange(type, values) {
      var availableCiphers = this.props.supportedCiphers.slice(0); // Copy array

      for (var i = 0; i < availableCiphers.length; i++) {
        for (var ci = 0; ci < values.length; ci++) {
          if (availableCiphers[i] === values[ci]) {
            availableCiphers.splice(i, 1);
            i--;
            break;
          }
        }
      }

      if (type == "allow") {
        this.setState({
          allowCiphers: values,
          availableCiphers: availableCiphers
        });
      } else {
        this.setState({
          denyCiphers: values,
          availableCiphers: availableCiphers
        });
      }
    }
  }, {
    key: "render",
    value: function render() {
      var _this3 = this;

      var supportedCiphers = [];
      var enabledCiphers = [];
      var cipherPage;
      var _iteratorNormalCompletion4 = true;
      var _didIteratorError4 = false;
      var _iteratorError4 = undefined;

      try {
        for (var _iterator4 = this.props.supportedCiphers[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {
          var cipher = _step4.value;

          if (!this.props.enabledCiphers.includes(cipher)) {
            // This cipher is not currently enabled, so list it as available
            supportedCiphers.push(cipher);
          }
        }
      } catch (err) {
        _didIteratorError4 = true;
        _iteratorError4 = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion4 && _iterator4.return != null) {
            _iterator4.return();
          }
        } finally {
          if (_didIteratorError4) {
            throw _iteratorError4;
          }
        }
      }

      var _iteratorNormalCompletion5 = true;
      var _didIteratorError5 = false;
      var _iteratorError5 = undefined;

      try {
        for (var _iterator5 = this.props.enabledCiphers[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) {
          var _cipher2 = _step5.value;
          enabledCiphers.push(_cipher2);
        }
      } catch (err) {
        _didIteratorError5 = true;
        _iteratorError5 = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion5 && _iterator5.return != null) {
            _iterator5.return();
          }
        } finally {
          if (_didIteratorError5) {
            throw _iteratorError5;
          }
        }
      }

      var supportedList = supportedCiphers.map(function (name) {
        return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
          key: name
        }, name);
      });
      var enabledList = enabledCiphers.map(function (name) {
        return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
          key: name
        }, name);
      });

      if (this.state.saving) {
        cipherPage = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-loading-spinner ds-center"
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h4", null, "Saving cipher preferences ..."), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Spinner"], {
          loading: true,
          size: "md"
        }));
      } else {
        cipherPage = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "container-fluid"
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-container"
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-inline"
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h4", null, "Enabled Ciphers")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
          className: "ds-cipher-width",
          size: "16",
          title: "The current ciphers the server is accepting.  This is only updated after a server restart"
        }, enabledList))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-divider-lrg"
        }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-inline"
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h4", null, "Other Available Ciphers")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
          className: "ds-cipher-width",
          size: "16"
        }, supportedList)))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
          sm: 2
        }, "Cipher Suite"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 9
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
          id: "cipherPref",
          onChange: this.handlePrefChange,
          defaultValue: this.state.cipherPref
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
          title: "default",
          value: "default",
          key: "default"
        }, "Default Ciphers"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
          title: "+all",
          value: "+all",
          key: "all"
        }, "All Ciphers"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
          title: "-all",
          value: "-all",
          key: "none"
        }, "No Ciphers")))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
          className: "ds-margin-top"
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
          sm: 2
        }, "Allow Specific Ciphers"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 9
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_6__["Typeahead"], {
          multiple: true,
          onChange: function onChange(value) {
            _this3.handleCipherChange("allow", value);
          },
          selected: this.state.allowCiphers,
          options: this.state.availableCiphers,
          newSelectionPrefix: "Add a cipher: ",
          placeholder: "Type a cipher...",
          id: "allowCipher"
        }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
          className: "ds-margin-top"
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
          sm: 2
        }, "Deny Specific Ciphers"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 9
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_6__["Typeahead"], {
          multiple: true,
          onChange: function onChange(value) {
            _this3.handleCipherChange("deny", value);
          },
          selected: this.state.denyCiphers,
          options: this.state.availableCiphers,
          newSelectionPrefix: "Add a cipher: ",
          placeholder: "Type a cipher...",
          id: "denyCipher"
        }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
          bsStyle: "primary",
          className: "ds-margin-top",
          onClick: function onClick() {
            _this3.saveCipherPref();
          }
        }, "Save Cipher Preferences"));
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, cipherPage);
    }
  }]);

  return Ciphers;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); // Props and defaults

Ciphers.propTypes = {
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
  supportedCiphers: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.array,
  enabledCiphers: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.array,
  cipherPref: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func
};
Ciphers.defaultProps = {
  serverId: "",
  supportedCiphers: [],
  enabledCiphers: [],
  cipherPref: "",
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (Ciphers);

/***/ }),

/***/ "./src/lib/security/securityModals.jsx":
/*!*********************************************!*\
  !*** ./src/lib/security/securityModals.jsx ***!
  \*********************************************/
/*! exports provided: SecurityAddCACertModal, SecurityAddCertModal, SecurityEnableModal, EditCertModal */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SecurityAddCACertModal", function() { return SecurityAddCACertModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SecurityAddCertModal", function() { return SecurityAddCertModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SecurityEnableModal", function() { return SecurityEnableModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EditCertModal", function() { return EditCertModal; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_3__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }

function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }





var SecurityAddCACertModal =
/*#__PURE__*/
function (_React$Component) {
  _inherits(SecurityAddCACertModal, _React$Component);

  function SecurityAddCACertModal() {
    _classCallCheck(this, SecurityAddCACertModal);

    return _possibleConstructorReturn(this, _getPrototypeOf(SecurityAddCACertModal).apply(this, arguments));
  }

  _createClass(SecurityAddCACertModal, [{
    key: "render",
    value: function render() {
      var _this$props = this.props,
          showModal = _this$props.showModal,
          closeHandler = _this$props.closeHandler,
          handleChange = _this$props.handleChange,
          saveHandler = _this$props.saveHandler,
          spinning = _this$props.spinning,
          error = _this$props.error;
      var spinner = "";

      if (spinning) {
        spinner = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-modal-spinner"
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Spinner"], {
          loading: true,
          inline: true,
          size: "lg"
        }), "Adding CA certificate..."));
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Add Certificate Authority")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h4", null, "Add CA certificate to the security database."), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        title: "Enter full path to and and including certificate file name"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Certificate File")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        id: "certFile",
        className: error.certFile ? "ds-input-bad" : "",
        onChange: handleChange
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        title: "Enter name/nickname of the certificate"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Certificate Nickname")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        id: "certName",
        className: error.certName ? "ds-input-bad" : "",
        onChange: handleChange
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null), spinner)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Add Certificate"))));
    }
  }]);

  return SecurityAddCACertModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
var SecurityAddCertModal =
/*#__PURE__*/
function (_React$Component2) {
  _inherits(SecurityAddCertModal, _React$Component2);

  function SecurityAddCertModal() {
    _classCallCheck(this, SecurityAddCertModal);

    return _possibleConstructorReturn(this, _getPrototypeOf(SecurityAddCertModal).apply(this, arguments));
  }

  _createClass(SecurityAddCertModal, [{
    key: "render",
    value: function render() {
      var _this$props2 = this.props,
          showModal = _this$props2.showModal,
          closeHandler = _this$props2.closeHandler,
          handleChange = _this$props2.handleChange,
          saveHandler = _this$props2.saveHandler,
          spinning = _this$props2.spinning,
          error = _this$props2.error;
      var spinner = "";

      if (spinning) {
        spinner = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-modal-spinner"
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Spinner"], {
          loading: true,
          inline: true,
          size: "lg"
        }), "Adding certificate..."));
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Add Certificate")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h4", null, "Add certificate to the security database."), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        title: "Enter full path to and and including certificate file name"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Certificate File")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        id: "certFile",
        className: error.certFile ? "ds-input-bad" : "",
        onChange: handleChange
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        title: "Enter name/nickname of the certificate"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Certificate Nickname")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        id: "certName",
        className: error.certName ? "ds-input-bad" : "",
        onChange: handleChange
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null), spinner)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Add Certificate"))));
    }
  }]);

  return SecurityAddCertModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
var SecurityEnableModal =
/*#__PURE__*/
function (_React$Component3) {
  _inherits(SecurityEnableModal, _React$Component3);

  function SecurityEnableModal() {
    _classCallCheck(this, SecurityEnableModal);

    return _possibleConstructorReturn(this, _getPrototypeOf(SecurityEnableModal).apply(this, arguments));
  }

  _createClass(SecurityEnableModal, [{
    key: "render",
    value: function render() {
      var _this$props3 = this.props,
          showModal = _this$props3.showModal,
          closeHandler = _this$props3.closeHandler,
          handleChange = _this$props3.handleChange,
          saveHandler = _this$props3.saveHandler,
          primaryName = _this$props3.primaryName,
          certs = _this$props3.certs,
          spinning = _this$props3.spinning; // Build list of cert names for the select list

      var certNames = [];
      var _iteratorNormalCompletion = true;
      var _didIteratorError = false;
      var _iteratorError = undefined;

      try {
        for (var _iterator = certs[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
          var cert = _step.value;
          certNames.push(cert.attrs['nickname']);
        }
      } catch (err) {
        _didIteratorError = true;
        _iteratorError = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion && _iterator.return != null) {
            _iterator.return();
          }
        } finally {
          if (_didIteratorError) {
            throw _iteratorError;
          }
        }
      }

      var certNameOptions = certNames.map(function (name) {
        return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
          key: name,
          value: name
        }, name);
      });
      var spinner = "";

      if (spinning) {
        spinner = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-modal-spinner"
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Spinner"], {
          loading: true,
          inline: true,
          size: "lg"
        }), "Enabling security..."));
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Enable Security")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h4", null, "You are choosing to enable security for the Directory Server which allows the server to accept incoming client TLS connections.  Please select which certificate the server should use."), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "The server certificate the Directory Server will use"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Available Certificates")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
        id: "certNameSelect",
        onChange: handleChange,
        defaultValue: primaryName
      }, certNameOptions))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null), spinner)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Enable Security"))));
    }
  }]);

  return SecurityEnableModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
var EditCertModal =
/*#__PURE__*/
function (_React$Component4) {
  _inherits(EditCertModal, _React$Component4);

  function EditCertModal() {
    _classCallCheck(this, EditCertModal);

    return _possibleConstructorReturn(this, _getPrototypeOf(EditCertModal).apply(this, arguments));
  }

  _createClass(EditCertModal, [{
    key: "render",
    value: function render() {
      var _this$props4 = this.props,
          showModal = _this$props4.showModal,
          closeHandler = _this$props4.closeHandler,
          handleChange = _this$props4.handleChange,
          saveHandler = _this$props4.saveHandler,
          flags = _this$props4.flags,
          spinning = _this$props4.spinning;
      var spinner = "";

      if (spinning) {
        spinner = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-modal-spinner"
        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Spinner"], {
          loading: true,
          inline: true,
          size: "lg"
        }), "Saving certificate..."));
      } // Process the cert flags


      var CSSLChecked = false;
      var CEmailChecked = false;
      var COSChecked = false;
      var TSSLChecked = false;
      var TEmailChecked = false;
      var TOSChecked = false;
      var cSSLChecked = false;
      var cEmailChecked = false;
      var cOSChecked = false;
      var PSSLChecked = false;
      var PEmailChecked = false;
      var POSChecked = false;
      var pSSLChecked = false;
      var pEmailChecked = false;
      var pOSChecked = false;
      var uSSLChecked = false;
      var uEmailChecked = false;
      var uOSChecked = false;
      var SSLFlags = '';
      var EmailFlags = '';
      var OSFlags = '';

      if (flags != "") {
        var _flags$split = flags.split(',');

        var _flags$split2 = _slicedToArray(_flags$split, 3);

        SSLFlags = _flags$split2[0];
        EmailFlags = _flags$split2[1];
        OSFlags = _flags$split2[2];

        if (SSLFlags.includes('T')) {
          TSSLChecked = true;
        }

        if (EmailFlags.includes('T')) {
          TEmailChecked = true;
        }

        if (OSFlags.includes('T')) {
          TOSChecked = true;
        }

        if (SSLFlags.includes('C')) {
          CSSLChecked = true;
        }

        if (EmailFlags.includes('C')) {
          CEmailChecked = true;
        }

        if (OSFlags.includes('C')) {
          COSChecked = true;
        }

        if (SSLFlags.includes('c')) {
          cSSLChecked = true;
        }

        if (EmailFlags.includes('c')) {
          cEmailChecked = true;
        }

        if (OSFlags.includes('c')) {
          cOSChecked = true;
        }

        if (SSLFlags.includes('P')) {
          PSSLChecked = true;
        }

        if (EmailFlags.includes('P')) {
          PEmailChecked = true;
        }

        if (OSFlags.includes('P')) {
          POSChecked = true;
        }

        if (SSLFlags.includes('p')) {
          pSSLChecked = true;
        }

        if (EmailFlags.includes('p')) {
          pEmailChecked = true;
        }

        if (OSFlags.includes('p')) {
          pOSChecked = true;
        }

        if (SSLFlags.includes('u')) {
          uSSLChecked = true;
        }

        if (EmailFlags.includes('u')) {
          uEmailChecked = true;
        }

        if (OSFlags.includes('u')) {
          uOSChecked = true;
        }
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Edit Certificate Trust Flags")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Flags")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "SSL")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Email")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Object Signing"))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4,
        title: "Trusted CA (flag 'C', also implies 'c' flag)"
      }, "(C) - Trusted CA"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "CflagSSL",
        checked: CSSLChecked,
        onChange: handleChange
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "CflagEmail",
        checked: CEmailChecked,
        onChange: handleChange
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "CflagOS",
        checked: COSChecked,
        onChange: handleChange
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4,
        title: "Trusted CA for client authentication (flag 'T')"
      }, "(T) - Trusted CA Client Auth"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "TflagSSL",
        checked: TSSLChecked,
        onChange: handleChange
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "TflagEmail",
        checked: TEmailChecked,
        onChange: handleChange
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "TflagOS",
        checked: TOSChecked,
        onChange: handleChange
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4,
        title: "Valid CA (flag 'c')"
      }, "(c) - Valid CA"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "cflagSSL",
        checked: cSSLChecked,
        onChange: handleChange
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "cflagEmail",
        checked: cEmailChecked,
        onChange: handleChange
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "cflagOS",
        checked: cOSChecked,
        onChange: handleChange
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4,
        title: "Trusted Peer (flag 'P', implies flag 'p')"
      }, "(P) - Trusted Peer"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "PflagSSL",
        checked: PSSLChecked,
        onChange: handleChange
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "PflagEmail",
        checked: PEmailChecked,
        onChange: handleChange
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "PflagOS",
        checked: POSChecked,
        onChange: handleChange
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4,
        title: "Valid Peer (flag 'p')"
      }, "(p) - Valid Peer"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "pflagSSL",
        checked: pSSLChecked,
        onChange: handleChange
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "pflagEmail",
        checked: pEmailChecked,
        onChange: handleChange
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "pflagOS",
        checked: pOSChecked,
        onChange: handleChange
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4,
        title: "A private key is associated with the certificate. This is a dynamic flag and you cannot adjust it."
      }, "(u) - Private Key"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "uflagSSL",
        checked: uSSLChecked,
        disabled: true
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "uflagEmail",
        checked: uEmailChecked,
        disabled: true
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "uflagOS",
        checked: uOSChecked,
        disabled: true
      }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null), spinner)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Save"))));
    }
  }]);

  return EditCertModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
SecurityEnableModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  primaryName: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  certs: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
SecurityEnableModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  primaryName: "",
  certs: [],
  spinning: false
};
EditCertModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  flags: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
EditCertModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  flags: "",
  spinning: false
};
SecurityAddCertModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  error: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object
};
SecurityAddCertModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  spinning: false,
  error: {}
};
SecurityAddCACertModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  error: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object
};
SecurityAddCACertModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  spinning: false,
  error: {}
};

/***/ }),

/***/ "./src/lib/security/securityTables.jsx":
/*!*********************************************!*\
  !*** ./src/lib/security/securityTables.jsx ***!
  \*********************************************/
/*! exports provided: CertTable, CRLTable */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CertTable", function() { return CertTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CRLTable", function() { return CRLTable; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dsTable.jsx */ "./src/lib/dsTable.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_4__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }







var CertTable =
/*#__PURE__*/
function (_React$Component) {
  _inherits(CertTable, _React$Component);

  function CertTable(props) {
    var _this;

    _classCallCheck(this, CertTable);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(CertTable).call(this, props));
    _this.state = {
      rowKey: "nickname",
      columns: [{
        property: "nickname",
        header: {
          label: "Certificate Name",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "subject",
        header: {
          label: "Subject DN",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "issuer",
        header: {
          label: "Issued By",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "flags",
        header: {
          label: "Trust Flags",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "expires",
        header: {
          label: "Expiration Date",
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "action",
        header: {
          label: "",
          props: {
            index: 5,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 5
          },
          formatters: [function (value, _ref) {
            var rowData = _ref.rowData;
            return [react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.nickname[0]
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.nickname[0],
              className: "ds-action-button",
              bsStyle: "primary",
              title: "Actions"
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this.props.editCert(rowData);
              }
            }, "Edit Trust Flags"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this.props.delCert(rowData);
              }
            }, "Delete Certificate")))];
          }]
        }
      }]
    };
    _this.getColumns = _this.getColumns.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.getSingleColumn = _this.getSingleColumn.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(CertTable, [{
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "Certificates",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      var certRows = [];
      var serverTable;
      var _iteratorNormalCompletion = true;
      var _didIteratorError = false;
      var _iteratorError = undefined;

      try {
        for (var _iterator = this.props.certs[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
          var cert = _step.value;
          var obj = {
            'nickname': [cert.attrs['nickname']],
            'subject': [cert.attrs['subject']],
            'issuer': [cert.attrs['issuer']],
            'expires': [cert.attrs['expires']],
            'flags': [cert.attrs['flags']]
          };
          certRows.push(obj);
        }
      } catch (err) {
        _didIteratorError = true;
        _iteratorError = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion && _iterator.return != null) {
            _iterator.return();
          }
        } finally {
          if (_didIteratorError) {
            throw _iteratorError;
          }
        }
      }

      if (certRows.length == 0) {
        serverTable = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No Certificates"
          }],
          key: "nocerts"
        });
      } else {
        serverTable = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          getColumns: this.getColumns,
          rowKey: this.state.rowKey,
          rows: certRows,
          key: certRows,
          disableLoadingSpinner: true
        });
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, serverTable);
    }
  }]);

  return CertTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); // Future - https://pagure.io/389-ds-base/issue/50491


var CRLTable =
/*#__PURE__*/
function (_React$Component2) {
  _inherits(CRLTable, _React$Component2);

  function CRLTable(props) {
    var _this2;

    _classCallCheck(this, CRLTable);

    _this2 = _possibleConstructorReturn(this, _getPrototypeOf(CRLTable).call(this, props));
    _this2.state = {
      rowKey: "name",
      columns: [{
        property: "name",
        header: {
          label: "Issued By",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "effective",
        header: {
          label: "Effective Date",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "nextUpdate",
        header: {
          label: "Next Updateo",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "type",
        header: {
          label: "Type",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "action",
        header: {
          label: "",
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [function (value, _ref2) {
            var rowData = _ref2.rowData;
            return [react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.name[0]
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.name[0],
              className: "ds-action-button",
              bsStyle: "primary",
              title: "Actions"
            }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this2.props.editIndex(rowData);
              }
            }, "View CRL"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this2.props.reindexIndex(rowData);
              }
            }, "Delete CRL")))];
          }]
        }
      }]
    };
    _this2.getColumns = _this2.getColumns.bind(_assertThisInitialized(_assertThisInitialized(_this2)));
    return _this2;
  }

  _createClass(CRLTable, [{
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "Certificate Revocation Lists",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      var crlTable;

      if (this.props.rows.length == 0) {
        crlTable = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "None"
          }]
        });
      } else {
        crlTable = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          getColumns: this.getColumns,
          rowKey: this.state.rowKey,
          rows: this.props.rows,
          disableLoadingSpinner: true
        });
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, crlTable);
    }
  }]);

  return CRLTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); // Props and defaults


CertTable.propTypes = {
  // serverId: PropTypes.string,
  certs: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  editCert: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  delCert: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
CertTable.defaultProps = {
  // serverId: "",
  certs: [],
  editCert: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  delCert: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};


/***/ }),

/***/ "./src/lib/tools.jsx":
/*!***************************!*\
  !*** ./src/lib/tools.jsx ***!
  \***************************/
/*! exports provided: searchFilter, log_cmd, get_date_string, get_date_diff, bad_file_name, valid_port, valid_dn */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "searchFilter", function() { return searchFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "log_cmd", function() { return log_cmd; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "get_date_string", function() { return get_date_string; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "get_date_diff", function() { return get_date_diff; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bad_file_name", function() { return bad_file_name; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "valid_port", function() { return valid_port; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "valid_dn", function() { return valid_dn; });
function searchFilter(searchFilterValue, columnsToSearch, rows) {
  if (searchFilterValue && rows && rows.length) {
    var filteredRows = [];
    rows.forEach(function (row) {
      var rowToSearch = [];

      if (columnsToSearch && columnsToSearch.length) {
        columnsToSearch.forEach(function (column) {
          return rowToSearch.push(row[column]);
        });
      } else {
        rowToSearch = row;
      }

      var match = Object.values(rowToSearch).some(function (value) {
        return value.join().toLowerCase().includes(searchFilterValue.toLowerCase());
      });

      if (match) {
        filteredRows.push(row);
      }
    });
    return filteredRows;
  }

  return rows;
}
function log_cmd(js_func, desc, cmd_array) {
  if (console) {
    var pw_args = ["--passwd", "--bind-pw"];
    var cmd_list = [];
    var converted_pw = false;

    for (var idx in cmd_array) {
      var cmd = cmd_array[idx];
      converted_pw = false;

      for (var arg_idx in pw_args) {
        if (cmd.startsWith(pw_args[arg_idx])) {
          // We are setting a password, if it has a value we need to hide it
          var arg_len = cmd.indexOf("=");
          var arg = cmd.substring(0, arg_len);

          if (cmd.length != arg_len + 1) {
            // We are setting a password value...
            cmd_list.push(arg + "=**********");
            converted_pw = true;
          }

          break;
        }
      }

      if (!converted_pw) {
        cmd_list.push(cmd);
      }
    }

    console.log("CMD: " + js_func + ": " + desc + " ==> " + cmd_list.join(" "));
  }
} // Convert DS timestamp to a friendly string: 20180921142257Z -> 10/21/2018, 2:22:57 PM

function get_date_string(timestamp) {
  var year = timestamp.substr(0, 4);
  var month = timestamp.substr(4, 2);
  var day = timestamp.substr(6, 2);
  var hour = timestamp.substr(8, 2);
  var minute = timestamp.substr(10, 2);
  var sec = timestamp.substr(12, 2);
  var date = new Date(parseInt(year), parseInt(month) - 1, parseInt(day), parseInt(hour), parseInt(minute), parseInt(sec));
  return date.toLocaleString();
} // Take two directory server tiemstamps and get the elapsed time

function get_date_diff(start, end) {
  // Get the server's start up date
  var year = start.substr(0, 4);
  var month = start.substr(4, 2);
  var day = start.substr(6, 2);
  var hour = start.substr(8, 2);
  var minute = start.substr(10, 2);
  var sec = start.substr(12, 2);
  var startDate = new Date(parseInt(year), parseInt(month), parseInt(day), parseInt(hour), parseInt(minute), parseInt(sec)); // Get the servers current date

  year = end.substr(0, 4);
  month = end.substr(4, 2);
  day = end.substr(6, 2);
  hour = end.substr(8, 2);
  minute = end.substr(10, 2);
  sec = end.substr(12, 2);
  var currDate = new Date(parseInt(year), parseInt(month), parseInt(day), parseInt(hour), parseInt(minute), parseInt(sec)); // Generate pretty elapsed time string

  var seconds = Math.floor((currDate - startDate) / 1000);
  var minutes = Math.floor(seconds / 60);
  var hours = Math.floor(minutes / 60);
  var days = Math.floor(hours / 24);
  hours = hours - days * 24;
  minutes = minutes - days * 24 * 60 - hours * 60;
  seconds = seconds - days * 24 * 60 * 60 - hours * 60 * 60 - minutes * 60;
  return "".concat(days, " days, ").concat(hours, " hours, ").concat(minutes, " minutes, and ").concat(seconds, " seconds");
}
function bad_file_name(file_name) {
  // file_name must be a string, and not a location/directory
  if (file_name.includes("/")) {
    return true;
  }

  return false;
}
function valid_port(val) {
  // Validate value is a number and between 1 and 65535
  var result = !isNaN(val);

  if (result) {
    if (val < 1 || val > 65535) {
      result = false;
    }
  }

  return result;
}
function valid_dn(dn) {
  // Validate value is a valid DN (sanity validation)
  if (dn.endsWith(',')) {
    return false;
  }

  var dn_regex = new RegExp("^([A-Za-z]+=.*)");
  var result = dn_regex.test(dn);
  return result;
}

/***/ }),

/***/ "./src/monitor.jsx":
/*!*************************!*\
  !*** ./src/monitor.jsx ***!
  \*************************/
/*! exports provided: Monitor */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Monitor", function() { return Monitor; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lib/notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lib/tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _lib_monitor_snmpMonitor_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./lib/monitor/snmpMonitor.jsx */ "./src/lib/monitor/snmpMonitor.jsx");
/* harmony import */ var _lib_monitor_serverMonitor_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./lib/monitor/serverMonitor.jsx */ "./src/lib/monitor/serverMonitor.jsx");
/* harmony import */ var _lib_monitor_dbMonitor_jsx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./lib/monitor/dbMonitor.jsx */ "./src/lib/monitor/dbMonitor.jsx");
/* harmony import */ var _lib_monitor_suffixMonitor_jsx__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./lib/monitor/suffixMonitor.jsx */ "./src/lib/monitor/suffixMonitor.jsx");
/* harmony import */ var _lib_monitor_chainingMonitor_jsx__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./lib/monitor/chainingMonitor.jsx */ "./src/lib/monitor/chainingMonitor.jsx");
/* harmony import */ var _lib_monitor_accesslog_jsx__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./lib/monitor/accesslog.jsx */ "./src/lib/monitor/accesslog.jsx");
/* harmony import */ var _lib_monitor_auditlog_jsx__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./lib/monitor/auditlog.jsx */ "./src/lib/monitor/auditlog.jsx");
/* harmony import */ var _lib_monitor_auditfaillog_jsx__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./lib/monitor/auditfaillog.jsx */ "./src/lib/monitor/auditfaillog.jsx");
/* harmony import */ var _lib_monitor_errorlog_jsx__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./lib/monitor/errorlog.jsx */ "./src/lib/monitor/errorlog.jsx");
/* harmony import */ var _lib_monitor_replMonitor_jsx__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./lib/monitor/replMonitor.jsx */ "./src/lib/monitor/replMonitor.jsx");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_16__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }


















var treeViewContainerStyles = {
  width: '295px'
};
var Monitor =
/*#__PURE__*/
function (_React$Component) {
  _inherits(Monitor, _React$Component);

  function Monitor(props) {
    var _this;

    _classCallCheck(this, Monitor);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(Monitor).call(this, props));
    _this.state = {
      nodes: [],
      node_name: "",
      node_text: "",
      node_type: "",
      loaded: false,
      snmpData: {},
      ldbmData: {},
      serverData: {},
      disks: [],
      loadingMsg: "",
      notifications: [],
      disableTree: false,
      // Suffix
      suffixLoading: false,
      serverLoading: false,
      ldbmLoading: false,
      snmpLoading: false,
      chainingLoading: false,
      // replication
      replLoading: false,
      replInitLoaded: false,
      replSuffix: "",
      replRole: "",
      replRid: "",
      replicatedSuffixes: [],
      // Access log
      accesslogLocation: "",
      accesslogData: "",
      accessReloading: false,
      accesslog_cont_refresh: "",
      accessRefreshing: false,
      accessLines: "50",
      // Audit log
      auditlogLocation: "",
      auditlogData: "",
      auditReloading: false,
      auditlog_cont_refresh: "",
      auditRefreshing: false,
      auditLines: "50",
      // Audit Fail log
      auditfaillogLocation: "",
      auditfaillogData: "",
      auditfailReloading: false,
      auditfaillog_cont_refresh: "",
      auditfailRefreshing: false,
      auditfailLines: "50",
      // Error log
      errorlogLocation: "",
      errorlogData: "",
      errorReloading: false,
      errorlog_cont_refresh: "",
      errorRefreshing: false,
      errorSevLevel: "Everything",
      errorLines: "50"
    }; // Build the log severity sev_levels

    var sev_emerg = " - EMERG - ";
    var sev_crit = " - CRIT - ";
    var sev_alert = " - ALERT - ";
    var sev_err = " - ERR - ";
    var sev_warn = " - WARN - ";
    var sev_notice = " - NOTICE - ";
    var sev_info = " - INFO - ";
    var sev_debug = " - DEBUG - ";
    _this.sev_levels = {
      "Emergency": sev_emerg,
      "Critical": sev_crit,
      "Alert": sev_alert,
      "Error": sev_err,
      "Warning": sev_warn,
      "Notice": sev_notice,
      "Info": sev_info,
      "Debug": sev_debug
    };
    _this.sev_all_errs = [sev_emerg, sev_crit, sev_alert, sev_err];
    _this.sev_all_info = [sev_warn, sev_notice, sev_info, sev_debug]; // Bindings

    _this.addNotification = _this.addNotification.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.removeNotification = _this.removeNotification.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadSuffixTree = _this.loadSuffixTree.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.enableTree = _this.enableTree.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.update_tree_nodes = _this.update_tree_nodes.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.selectNode = _this.selectNode.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadMonitorSuffix = _this.loadMonitorSuffix.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.disableSuffixLoading = _this.disableSuffixLoading.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadMonitorLDBM = _this.loadMonitorLDBM.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.reloadLDBM = _this.reloadLDBM.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadMonitorSNMP = _this.loadMonitorSNMP.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.reloadSNMP = _this.reloadSNMP.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadMonitorServer = _this.loadMonitorServer.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.reloadServer = _this.reloadServer.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadMonitorChaining = _this.loadMonitorChaining.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadDiskSpace = _this.loadDiskSpace.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.reloadDisks = _this.reloadDisks.bind(_assertThisInitialized(_assertThisInitialized(_this))); // Replication

    _this.loadMonitorReplication = _this.loadMonitorReplication.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadCleanTasks = _this.loadCleanTasks.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadAbortTasks = _this.loadAbortTasks.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadReplicatedSuffixes = _this.loadReplicatedSuffixes.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadWinsyncAgmts = _this.loadWinsyncAgmts.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.replSuffixChange = _this.replSuffixChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.reloadReplAgmts = _this.reloadReplAgmts.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.reloadReplWinsyncAgmts = _this.reloadReplWinsyncAgmts.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadConflicts = _this.loadConflicts.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadGlues = _this.loadGlues.bind(_assertThisInitialized(_assertThisInitialized(_this))); // Logging

    _this.loadMonitor = _this.loadMonitor.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.refreshAccessLog = _this.refreshAccessLog.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.refreshAuditLog = _this.refreshAuditLog.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.refreshAuditFailLog = _this.refreshAuditFailLog.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.refreshErrorLog = _this.refreshErrorLog.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleAccessChange = _this.handleAccessChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleAuditChange = _this.handleAuditChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleAuditFailChange = _this.handleAuditFailChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleErrorChange = _this.handleErrorChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.accessRefreshCont = _this.accessRefreshCont.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.auditRefreshCont = _this.auditRefreshCont.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.auditFailRefreshCont = _this.auditFailRefreshCont.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.errorRefreshCont = _this.errorRefreshCont.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleSevChange = _this.handleSevChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(Monitor, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.loadMonitor();
    }
  }, {
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps) {
      if (this.props.serverId !== prevProps.serverId) {
        this.loadSuffixTree(false);
      }
    }
  }, {
    key: "addNotification",
    value: function addNotification(type, message, timerdelay, persistent) {
      this.setState(function (prevState) {
        return {
          notifications: _toConsumableArray(prevState.notifications).concat([{
            key: prevState.notifications.length + 1,
            type: type,
            persistent: persistent,
            timerdelay: timerdelay,
            message: message
          }])
        };
      });
    }
  }, {
    key: "removeNotification",
    value: function removeNotification(notificationToRemove) {
      this.setState({
        notifications: this.state.notifications.filter(function (notification) {
          return notificationToRemove.key !== notification.key;
        })
      });
    }
  }, {
    key: "loadSuffixTree",
    value: function loadSuffixTree(fullReset) {
      var _this2 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "get-tree"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("getTree", "Start building the suffix tree", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var treeData = JSON.parse(content);
        var basicData = [{
          text: "Database",
          selectable: true,
          selected: true,
          icon: "fa fa-database",
          state: {
            "expanded": true
          },
          id: "database-monitor",
          type: "database",
          nodes: []
        }, {
          text: "Logging",
          icon: "pficon-catalog",
          selectable: false,
          id: "log-monitor",
          state: {
            "expanded": true
          },
          nodes: [{
            text: "Access Log",
            icon: "glyphicon glyphicon-book",
            selectable: true,
            id: "access-log-monitor",
            type: "log"
          }, {
            text: "Audit Log",
            icon: "glyphicon glyphicon-book",
            selectable: true,
            id: "audit-log-monitor",
            type: "log"
          }, {
            text: "Audit Failure Log",
            icon: "glyphicon glyphicon-book",
            selectable: true,
            id: "auditfail-log-monitor",
            type: "log"
          }, {
            text: "Errors Log",
            icon: "glyphicon glyphicon-book",
            selectable: true,
            id: "error-log-monitor",
            type: "log"
          }]
        }, {
          text: "Replication",
          selectable: true,
          icon: "pficon-topology",
          id: "replication-monitor",
          type: "replication"
        }, {
          text: "Server Statistics",
          icon: "pficon-server",
          selectable: true,
          id: "server-monitor",
          type: "server"
        }, {
          text: "SNMP Counters",
          icon: "glyphicon glyphicon-list-alt",
          selectable: true,
          id: "snmp-monitor",
          type: "snmp"
        }];
        var current_node = _this2.state.node_name;
        var type = _this2.state.node_type;

        if (fullReset) {
          current_node = "database-monitor";
          type = "database";
        }

        basicData[0].nodes = treeData;

        _this2.setState(function () {
          return {
            nodes: basicData,
            node_name: current_node,
            node_type: type
          };
        }, _this2.update_tree_nodes);
      });
    }
  }, {
    key: "selectNode",
    value: function selectNode(selectedNode) {
      var _this3 = this;

      if (selectedNode.selected) {
        return;
      }

      this.setState({
        disableTree: true // Disable the tree to allow node to be fully loaded

      });

      if (selectedNode.id == "database-monitor" || selectedNode.id == "server-monitor" || selectedNode.id == "snmp-monitor") {
        // Nothing special to do, these configurations have already been loaded
        this.setState(function (prevState) {
          return {
            nodes: _this3.nodeSelector(prevState.nodes, selectedNode),
            node_name: selectedNode.id,
            node_text: selectedNode.text,
            bename: ""
          };
        });
      } else if (selectedNode.id == "access-log-monitor") {
        this.refreshAccessLog();
        this.setState(function (prevState) {
          return {
            nodes: _this3.nodeSelector(prevState.nodes, selectedNode),
            node_name: selectedNode.id,
            node_text: selectedNode.text
          };
        });
      } else if (selectedNode.id == "audit-log-monitor") {
        this.refreshAuditLog();
        this.setState(function (prevState) {
          return {
            nodes: _this3.nodeSelector(prevState.nodes, selectedNode),
            node_name: selectedNode.id,
            node_text: selectedNode.text
          };
        });
      } else if (selectedNode.id == "auditfail-log-monitor") {
        this.refreshAuditFailLog();
        this.setState(function (prevState) {
          return {
            nodes: _this3.nodeSelector(prevState.nodes, selectedNode),
            node_name: selectedNode.id,
            node_text: selectedNode.text
          };
        });
      } else if (selectedNode.id == "error-log-monitor") {
        this.refreshErrorLog();
        this.setState(function (prevState) {
          return {
            nodes: _this3.nodeSelector(prevState.nodes, selectedNode),
            node_name: selectedNode.id,
            node_text: selectedNode.text
          };
        });
      } else if (selectedNode.id == "replication-monitor") {
        if (!this.state.replInitLoaded) {
          this.loadMonitorReplication();
        }

        this.setState(function (prevState) {
          return {
            nodes: _this3.nodeSelector(prevState.nodes, selectedNode),
            node_name: selectedNode.id,
            node_text: selectedNode.text
          };
        });
      } else {
        if (selectedNode.id in this.state) {
          // This suffix is already cached
          this.setState(function (prevState) {
            return {
              nodes: _this3.nodeSelector(prevState.nodes, selectedNode),
              node_name: selectedNode.id,
              node_text: selectedNode.text,
              node_type: selectedNode.type,
              bename: selectedNode.be
            };
          });
        } else {
          // Load this suffix (db, chaining & replication)
          if (selectedNode.type == "dblink") {
            // Chaining
            this.loadMonitorChaining(selectedNode.id);
          } else {
            // Suffix
            this.loadMonitorSuffix(selectedNode.id);
          }

          this.setState(function (prevState) {
            return {
              nodes: _this3.nodeSelector(prevState.nodes, selectedNode),
              node_name: selectedNode.id,
              node_text: selectedNode.text,
              node_type: selectedNode.type,
              bename: selectedNode.be
            };
          });
        }
      }
    }
  }, {
    key: "nodeSelector",
    value: function nodeSelector(nodes, targetNode) {
      var _this4 = this;

      return nodes.map(function (node) {
        if (node.nodes) {
          return _objectSpread({}, node, {
            nodes: _this4.nodeSelector(node.nodes, targetNode),
            selected: node.id === targetNode.id ? !node.selected : false
          });
        } else if (node.id === targetNode.id) {
          return _objectSpread({}, node, {
            selected: !node.selected
          });
        } else if (node.id !== targetNode.id && node.selected) {
          return _objectSpread({}, node, {
            selected: false
          });
        } else {
          return node;
        }
      });
    }
  }, {
    key: "update_tree_nodes",
    value: function update_tree_nodes() {
      // Set title to the text value of each suffix node.  We need to do this
      // so we can read long suffixes in the UI tree div
      var elements = document.getElementsByClassName('treeitem-row');
      var _iteratorNormalCompletion = true;
      var _didIteratorError = false;
      var _iteratorError = undefined;

      try {
        for (var _iterator = elements[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
          var el = _step.value;
          el.setAttribute('title', el.innerText);
        }
      } catch (err) {
        _didIteratorError = true;
        _iteratorError = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion && _iterator.return != null) {
            _iterator.return();
          }
        } finally {
          if (_didIteratorError) {
            throw _iteratorError;
          }
        }
      }

      this.setState({
        loaded: true
      });
    }
  }, {
    key: "loadMonitor",
    value: function loadMonitor() {
      var _this5 = this;

      // Load the following componets in a chained fashion:
      //  - log file locations
      //  - LDBM
      //  - Server stats
      //  - SNMP
      //  - Finally load the "tree"
      //
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "config", "get", "nsslapd-auditlog", "nsslapd-accesslog", "nsslapd-errorlog", "nsslapd-auditfaillog"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadLogLocations", "Get log locations", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this5.setState({
          accesslogLocation: config.attrs['nsslapd-accesslog'][0],
          auditlogLocation: config.attrs['nsslapd-auditlog'][0],
          auditfaillogLocation: config.attrs['nsslapd-auditfaillog'][0],
          errorlogLocation: config.attrs['nsslapd-errorlog'][0]
        });
      }, this.loadReplicatedSuffixes());
    }
  }, {
    key: "loadReplicatedSuffixes",
    value: function loadReplicatedSuffixes() {
      var _this6 = this;

      // Load replicated suffix to populate the dropdown select list
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "replication", "list"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadReplicatedSuffixes", "Load replication suffixes", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var replSuffix = "";

        if (config.items.length > 0) {
          replSuffix = config.items[0];
        }

        _this6.setState({
          replicatedSuffixes: config.items,
          replSuffix: replSuffix
        });
      }, this.loadDiskSpace());
    }
  }, {
    key: "loadMonitorLDBM",
    value: function loadMonitorLDBM() {
      var _this7 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "monitor", "ldbm"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadMonitorLDBM", "Load database monitor", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this7.setState({
          ldbmData: config.attrs
        });
      }, this.loadMonitorServer());
    }
  }, {
    key: "reloadLDBM",
    value: function reloadLDBM() {
      var _this8 = this;

      this.setState({
        ldbmLoading: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "monitor", "ldbm"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("reloadLDBM", "Load database monitor", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this8.setState({
          ldbmLoading: false,
          ldbmData: config.attrs
        });
      });
    }
  }, {
    key: "loadMonitorServer",
    value: function loadMonitorServer() {
      var _this9 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "monitor", "server"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadMonitorServer", "Load server monitor", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this9.setState({
          serverData: config.attrs
        });
      }, this.loadMonitorSNMP());
    }
  }, {
    key: "reloadServer",
    value: function reloadServer() {
      var _this10 = this;

      this.setState({
        serverLoading: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "monitor", "server"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("reloadServer", "Load server monitor", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this10.setState({
          serverLoading: false,
          serverData: config.attrs
        }, _this10.reloadDisks());
      });
    }
  }, {
    key: "loadMonitorSNMP",
    value: function loadMonitorSNMP() {
      var _this11 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "monitor", "snmp"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadMonitorSNMP", "Load snmp monitor", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this11.setState({
          snmpData: config.attrs
        }, _this11.loadSuffixTree(true));
      });
    }
  }, {
    key: "loadDiskSpace",
    value: function loadDiskSpace() {
      var _this12 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "monitor", "disk"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadDiskSpace", "Load disk space info", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var disks = JSON.parse(content);
        var _iteratorNormalCompletion2 = true;
        var _didIteratorError2 = false;
        var _iteratorError2 = undefined;

        try {
          for (var _iterator2 = disks.items[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
            var disk = _step2.value;
            disk.used = disk.used + " (" + disk.percent + "%)";
          }
        } catch (err) {
          _didIteratorError2 = true;
          _iteratorError2 = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
              _iterator2.return();
            }
          } finally {
            if (_didIteratorError2) {
              throw _iteratorError2;
            }
          }
        }

        _this12.setState({
          disks: disks.items
        });
      }, this.loadMonitorLDBM());
    }
  }, {
    key: "reloadDisks",
    value: function reloadDisks() {
      var _this13 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "monitor", "disk"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("reloadDisks", "Reload disk stats", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var disks = JSON.parse(content);
        var _iteratorNormalCompletion3 = true;
        var _didIteratorError3 = false;
        var _iteratorError3 = undefined;

        try {
          for (var _iterator3 = disks.items[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
            var disk = _step3.value;
            disk.used = disk.used + " (" + disk.percent + "%)";
          }
        } catch (err) {
          _didIteratorError3 = true;
          _iteratorError3 = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
              _iterator3.return();
            }
          } finally {
            if (_didIteratorError3) {
              throw _iteratorError3;
            }
          }
        }

        _this13.setState({
          disks: disks.items
        });
      });
    }
  }, {
    key: "reloadSNMP",
    value: function reloadSNMP() {
      var _this14 = this;

      this.setState({
        snmpLoading: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "monitor", "snmp"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("reloadSNMP", "Load snmp monitor", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this14.setState({
          snmpLoading: false,
          snmpData: config.attrs
        });
      });
    }
  }, {
    key: "loadMonitorChaining",
    value: function loadMonitorChaining(suffix) {
      var _this15 = this;

      this.setState({
        chainingLoading: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "monitor", "chaining", suffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadMonitorChaining", "Load suffix monitor", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var _this15$setState;

        var config = JSON.parse(content);

        _this15.setState((_this15$setState = {}, _defineProperty(_this15$setState, suffix, _objectSpread({}, _this15.state[suffix], {
          chainingData: config.attrs
        })), _defineProperty(_this15$setState, "chainingLoading", false), _this15$setState));
      }).fail(function () {
        // Notification of failure (could only be server down)
        _this15.setState({
          chainingLoading: false
        });
      });
    }
  }, {
    key: "disableSuffixLoading",
    value: function disableSuffixLoading() {
      this.setState({
        suffixLoading: false
      });
    }
  }, {
    key: "loadMonitorSuffix",
    value: function loadMonitorSuffix(suffix) {
      var _this16 = this;

      this.setState({
        suffixLoading: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "monitor", "backend", suffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadMonitorSuffix", "Load suffix monitor", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this16.setState(_defineProperty({}, suffix, _objectSpread({}, _this16.state[suffix], {
          suffixData: config.attrs
        })), _this16.disableSuffixLoading);
      }).fail(function () {
        // Notification of failure (could only be server down)
        _this16.setState({
          suffixLoading: false
        });
      });
    }
  }, {
    key: "loadCleanTasks",
    value: function loadCleanTasks() {
      var _this17 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-tasks", "list-cleanruv-tasks", "--suffix=" + this.state.replSuffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadCleanTasks", "Load clean tasks", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this17.setState(_defineProperty({}, _this17.state.replSuffix, _objectSpread({}, _this17.state[_this17.state.replSuffix], {
          cleanTasks: config.items
        })), _this17.loadAbortTasks());
      }).fail(function () {
        // Notification of failure (could only be server down)
        _this17.setState({
          replLoading: false
        });
      });
    }
  }, {
    key: "loadAbortTasks",
    value: function loadAbortTasks() {
      var _this18 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-tasks", "list-abortruv-tasks", "--suffix=" + this.state.replSuffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadAbortCleanTasks", "Load abort tasks", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this18.setState(_defineProperty({}, _this18.state.replSuffix, _objectSpread({}, _this18.state[_this18.state.replSuffix], {
          abortTasks: config.items
        })), _this18.loadConflicts());
      }).fail(function () {
        // Notification of failure (could only be server down)
        _this18.setState({
          replLoading: false
        });
      });
    }
  }, {
    key: "loadConflicts",
    value: function loadConflicts() {
      var _this19 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-conflict", "list", this.state.replSuffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadConflicts", "Load conflict entries", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this19.setState(_defineProperty({}, _this19.state.replSuffix, _objectSpread({}, _this19.state[_this19.state.replSuffix], {
          conflicts: config.items,
          glues: []
        })), _this19.loadGlues());
      }).fail(function () {
        // Notification of failure (could only be server down)
        _this19.setState({
          replLoading: false
        });
      });
    }
  }, {
    key: "loadGlues",
    value: function loadGlues() {
      var _this20 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-conflict", "list-glue", this.state.replSuffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadGlues", "Load glue entries", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this20.setState(_defineProperty({}, _this20.state.replSuffix, _objectSpread({}, _this20.state[_this20.state.replSuffix], {
          glues: config.items
        })), _this20.setState({
          replLoading: false,
          replInitLoaded: true
        }));
      }).fail(function () {
        // Notification of failure (could only be server down)
        _this20.setState({
          replLoading: false
        });
      });
    }
  }, {
    key: "loadWinsyncAgmts",
    value: function loadWinsyncAgmts() {
      var _this21 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "replication", "winsync-status", "--suffix=" + this.state.replSuffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadWinsyncAgmts", "Load winsync agmt status", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this21.setState(_defineProperty({}, _this21.state.replSuffix, _objectSpread({}, _this21.state[_this21.state.replSuffix], {
          replWinsyncAgmts: config.items
        })), _this21.loadCleanTasks());
      }).fail(function () {
        // Notification of failure (could only be server down)
        _this21.setState({
          replLoading: false
        });
      });
    }
  }, {
    key: "loadMonitorReplication",
    value: function loadMonitorReplication() {
      var _this22 = this;

      var replSuffix = this.state.replSuffix;

      if (replSuffix != "") {
        this.setState({
          replLoading: true
        }); // Now load the agmts

        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "replication", "status", "--suffix=" + replSuffix];
        Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadMonitorReplication", "Load replication agmts", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          var config = JSON.parse(content);

          _this22.setState(_defineProperty({}, replSuffix, _objectSpread({}, _this22.state[replSuffix], {
            replAgmts: config.items,
            abortTasks: [],
            cleanTasks: [],
            replWinsyncAgmts: []
          })), _this22.loadWinsyncAgmts());
        }).fail(function () {
          // Notification of failure (could only be server down)
          _this22.setState({
            replLoading: false
          });
        });
      }
    }
  }, {
    key: "reloadReplAgmts",
    value: function reloadReplAgmts() {
      var _this23 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "replication", "status", "--suffix=" + this.state.replSuffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("reloadReplAgmts", "Load replication agmts", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this23.setState(_defineProperty({}, _this23.state.replSuffix, _objectSpread({}, _this23.state[_this23.state.replSuffix], {
          replAgmts: config.items
        })));
      });
    }
  }, {
    key: "reloadReplWinsyncAgmts",
    value: function reloadReplWinsyncAgmts() {
      var _this24 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "replication", "winsync-status", "--suffix=" + this.state.replSuffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("reloadReplWinsyncAgmts", "Load winysnc agmts", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this24.setState(_defineProperty({}, _this24.state.replSuffix, _objectSpread({}, _this24.state[_this24.state.replSuffix], {
          replWinsyncAgmts: config.items
        })));
      });
    }
  }, {
    key: "refreshAccessLog",
    value: function refreshAccessLog() {
      var _this25 = this;

      this.setState({
        accessReloading: true
      });
      var cmd = ["tail", "-" + this.state.accessLines, this.state.accesslogLocation];
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this25.setState(function () {
          return {
            accesslogData: content,
            accessReloading: false
          };
        });
      });
    }
  }, {
    key: "refreshAuditLog",
    value: function refreshAuditLog() {
      var _this26 = this;

      this.setState({
        auditReloading: true
      });
      var cmd = ["tail", "-" + this.state.auditLines, this.state.auditlogLocation];
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this26.setState(function () {
          return {
            auditlogData: content,
            auditReloading: false
          };
        });
      });
    }
  }, {
    key: "refreshAuditFailLog",
    value: function refreshAuditFailLog() {
      var _this27 = this;

      this.setState({
        auditfailReloading: true
      });
      var cmd = ["tail", "-" + this.state.auditfailLines, this.state.auditfaillogLocation];
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this27.setState(function () {
          return {
            auditfaillogData: content,
            auditfailReloading: false
          };
        });
      });
    }
  }, {
    key: "refreshErrorLog",
    value: function refreshErrorLog() {
      var _this28 = this;

      this.setState({
        errorReloading: true
      });
      var cmd = ["tail", "-" + this.state.errorLines, this.state.errorlogLocation];
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (data) {
        if (_this28.state.errorSevLevel != "Everything") {
          // Filter Data
          var lines = data.split('\n');
          var new_data = "";

          for (var i = 0; i < lines.length; i++) {
            var line = "";

            if (_this28.state.errorSevLevel == "Error Messages") {
              var _iteratorNormalCompletion4 = true;
              var _didIteratorError4 = false;
              var _iteratorError4 = undefined;

              try {
                for (var _iterator4 = _this28.sev_all_errs[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {
                  var lev = _step4.value;

                  if (lines[i].indexOf(lev) != -1) {
                    line = lines[i] + "\n";
                  }
                }
              } catch (err) {
                _didIteratorError4 = true;
                _iteratorError4 = err;
              } finally {
                try {
                  if (!_iteratorNormalCompletion4 && _iterator4.return != null) {
                    _iterator4.return();
                  }
                } finally {
                  if (_didIteratorError4) {
                    throw _iteratorError4;
                  }
                }
              }
            } else if (_this28.state.errorSevLevel == "Info Messages") {
              var _iteratorNormalCompletion5 = true;
              var _didIteratorError5 = false;
              var _iteratorError5 = undefined;

              try {
                for (var _iterator5 = _this28.sev_all_info[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) {
                  var _lev = _step5.value;

                  if (lines[i].indexOf(_lev) != -1) {
                    line = lines[i] + "\n";
                  }
                }
              } catch (err) {
                _didIteratorError5 = true;
                _iteratorError5 = err;
              } finally {
                try {
                  if (!_iteratorNormalCompletion5 && _iterator5.return != null) {
                    _iterator5.return();
                  }
                } finally {
                  if (_didIteratorError5) {
                    throw _iteratorError5;
                  }
                }
              }
            } else if (lines[i].indexOf(_this28.sev_levels[_this28.state.errorSevLevel]) != -1) {
              line = lines[i] + "\n";
            } // Add the filtered line to new data


            new_data += line;
          }

          data = new_data;
        }

        _this28.setState(function () {
          return {
            errorlogData: data,
            errorReloading: false
          };
        });
      });
    }
  }, {
    key: "accessRefreshCont",
    value: function accessRefreshCont(e) {
      if (e.target.checked) {
        this.state.accesslog_cont_refresh = setInterval(this.refreshAccessLog, 2000);
      } else {
        clearInterval(this.state.accesslog_cont_refresh);
      }

      this.setState({
        accessRefreshing: e.target.checked
      });
    }
  }, {
    key: "auditRefreshCont",
    value: function auditRefreshCont(e) {
      if (e.target.checked) {
        this.state.auditlog_cont_refresh = setInterval(this.refreshAuditLog, 2000);
      } else {
        clearInterval(this.state.auditlog_cont_refresh);
      }

      this.setState({
        auditRefreshing: e.target.checked
      });
    }
  }, {
    key: "auditFailRefreshCont",
    value: function auditFailRefreshCont(e) {
      if (e.target.checked) {
        this.state.auditfaillog_cont_refresh = setInterval(this.refreshAuditFailLog, 2000);
      } else {
        clearInterval(this.state.auditfaillog_cont_refresh);
      }

      this.setState({
        auditfailRefreshing: e.target.checked
      });
    }
  }, {
    key: "errorRefreshCont",
    value: function errorRefreshCont(e) {
      if (e.target.checked) {
        this.state.errorlog_cont_refresh = setInterval(this.refreshErrorLog, 2000);
      } else {
        clearInterval(this.state.errorlog_cont_refresh);
      }

      this.setState({
        errorRefreshing: e.target.checked
      });
    }
  }, {
    key: "handleAccessChange",
    value: function handleAccessChange(e) {
      var value = e.target.value;
      this.setState(function () {
        return {
          accessLines: value
        };
      }, this.refreshAccessLog);
    }
  }, {
    key: "handleAuditChange",
    value: function handleAuditChange(e) {
      var value = e.target.value;
      this.setState(function () {
        return {
          auditLines: value
        };
      }, this.refreshAuditLog);
    }
  }, {
    key: "handleAuditFailChange",
    value: function handleAuditFailChange(e) {
      var value = e.target.value;
      this.setState(function () {
        return {
          auditfailLines: value
        };
      }, this.refreshAuditFailLog);
    }
  }, {
    key: "handleErrorChange",
    value: function handleErrorChange(e) {
      var value = e.target.value;
      this.setState(function () {
        return {
          errorLines: value
        };
      }, this.refreshErrorLog);
    }
  }, {
    key: "handleSevChange",
    value: function handleSevChange(e) {
      var value = e.target.value;
      this.setState({
        errorSevLevel: value
      }, this.refreshErrorLog);
    }
  }, {
    key: "replSuffixChange",
    value: function replSuffixChange(e) {
      var value = e.target.value;
      this.setState(function () {
        return {
          replSuffix: value,
          replLoading: true
        };
      }, this.loadMonitorReplication);
    }
  }, {
    key: "enableTree",
    value: function enableTree() {
      this.setState({
        disableTree: false
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this29 = this;

      var nodes = this.state.nodes;
      var monitorPage = "";
      var monitor_element = "";
      var disabled = "tree-view-container";

      if (this.state.disableTree) {
        disabled = "tree-view-container ds-disabled";
      }

      if (this.state.loaded) {
        if (this.state.node_name == "database-monitor" || this.state.node_name == "") {
          if (this.state.ldbmLoading) {
            monitor_element = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
              className: "ds-loading-spinner ds-center"
            }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading database monitor information ..."), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
              className: "ds-margin-top-lg",
              loading: true,
              size: "md"
            }));
          } else {
            monitor_element = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_monitor_dbMonitor_jsx__WEBPACK_IMPORTED_MODULE_8__["default"], {
              data: this.state.ldbmData,
              reload: this.reloadLDBM,
              enableTree: this.enableTree
            });
          }
        } else if (this.state.node_name == "server-monitor") {
          if (this.state.serverLoading) {
            monitor_element = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
              className: "ds-loading-spinner ds-center"
            }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading server monitor information ..."), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
              className: "ds-margin-top-lg",
              loading: true,
              size: "md"
            }));
          } else {
            monitor_element = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_monitor_serverMonitor_jsx__WEBPACK_IMPORTED_MODULE_7__["default"], {
              data: this.state.serverData,
              reload: this.reloadServer,
              serverId: this.props.serverId,
              disks: this.state.disks,
              reloadDisks: this.reloadDisks,
              enableTree: this.enableTree
            });
          }
        } else if (this.state.node_name == "snmp-monitor") {
          if (this.state.snmpLoading) {
            monitor_element = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
              className: "ds-loading-spinner ds-center"
            }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading SNMP monitor information ..."), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
              className: "ds-margin-top-lg",
              loading: true,
              size: "md"
            }));
          } else {
            monitor_element = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_monitor_snmpMonitor_jsx__WEBPACK_IMPORTED_MODULE_6__["default"], {
              data: this.state.snmpData,
              reload: this.reloadSNMP,
              enableTree: this.enableTree
            });
          }
        } else if (this.state.node_name == "access-log-monitor") {
          monitor_element = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_monitor_accesslog_jsx__WEBPACK_IMPORTED_MODULE_11__["default"], {
            data: this.state.accesslogData,
            handleChange: this.handleAccessChange,
            reload: this.refreshAccessLog,
            reloading: this.state.accessReloading,
            refreshing: this.state.accessRefreshing,
            handleRefresh: this.accessRefreshCont,
            lines: this.state.accessLines,
            enableTree: this.enableTree
          });
        } else if (this.state.node_name == "audit-log-monitor") {
          monitor_element = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_monitor_auditlog_jsx__WEBPACK_IMPORTED_MODULE_12__["default"], {
            data: this.state.auditlogData,
            handleChange: this.handleAuditChange,
            reload: this.refreshAuditLog,
            reloading: this.state.auditReloading,
            refreshing: this.state.auditRefreshing,
            handleRefresh: this.auditRefreshCont,
            lines: this.state.auditLines,
            enableTree: this.enableTree
          });
        } else if (this.state.node_name == "auditfail-log-monitor") {
          monitor_element = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_monitor_auditfaillog_jsx__WEBPACK_IMPORTED_MODULE_13__["default"], {
            data: this.state.auditfaillogData,
            handleChange: this.handleAuditFailChange,
            reload: this.refreshAuditFailLog,
            reloading: this.state.auditfailReloading,
            refreshing: this.state.auditfailRefreshing,
            handleRefresh: this.auditFailRefreshCont,
            lines: this.state.auditfailLines,
            enableTree: this.enableTree
          });
        } else if (this.state.node_name == "error-log-monitor") {
          monitor_element = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_monitor_errorlog_jsx__WEBPACK_IMPORTED_MODULE_14__["default"], {
            data: this.state.errorlogData,
            handleChange: this.handleErrorChange,
            reload: this.refreshErrorLog,
            reloading: this.state.errorReloading,
            refreshing: this.state.errorRefreshing,
            handleRefresh: this.errorRefreshCont,
            handleSevLevel: this.handleSevChange,
            lines: this.state.errorLines,
            enableTree: this.enableTree
          });
        } else if (this.state.node_name == "replication-monitor") {
          if (this.state.replLoading) {
            monitor_element = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
              className: "ds-loading-spinner ds-center"
            }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading replication monitor information ..."), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
              className: "ds-margin-top-lg",
              loading: true,
              size: "md"
            }));
          } else {
            if (this.state.replicatedSuffixes.length < 1) {
              monitor_element = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null, "There are no suffixes that have been configured for replication"));
            } else {
              var suffixList = this.state.replicatedSuffixes.map(function (suffix) {
                return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", {
                  key: suffix,
                  value: suffix
                }, suffix);
              });
              monitor_element = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
                sm: 12
              }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], {
                className: "ds-header"
              }, "Replication Monitoring"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
                className: "ds-left-indent",
                defaultValue: this.state.replSuffix,
                onChange: this.replSuffixChange
              }, suffixList), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Icon"], {
                className: "ds-left-margin ds-refresh",
                type: "fa",
                name: "refresh",
                title: "Refresh replication monitor",
                onClick: function onClick() {
                  return _this29.loadMonitorReplication();
                }
              }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
                className: "ds-margin-top-med"
              }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_monitor_replMonitor_jsx__WEBPACK_IMPORTED_MODULE_15__["default"], {
                suffix: this.state.replSuffix,
                serverId: this.props.serverId,
                data: this.state[this.state.replSuffix],
                addNotification: this.addNotification,
                reloadAgmts: this.reloadReplAgmts,
                reloadWinsyncAgmts: this.reloadReplWinsyncAgmts,
                reloadConflicts: this.loadConflicts,
                enableTree: this.enableTree,
                key: this.state.replSuffix
              })));
            }
          }
        } else if (this.state.node_name != "") {
          // suffixes (example)
          if (this.state.suffixLoading) {
            monitor_element = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
              className: "ds-loading-spinner ds-center"
            }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading suffix monitor information for ", react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, this.state.node_text, " ...")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
              className: "ds-margin-top-lg",
              loading: true,
              size: "md"
            }));
          } else if (this.state.chainingLoading) {
            monitor_element = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
              className: "ds-loading-spinner ds-center"
            }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading chaining monitor information for ", react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, this.state.node_text, " ...")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
              className: "ds-margin-top-lg",
              loading: true,
              size: "md"
            }));
          } else {
            if (this.state.node_type == "dblink") {
              monitor_element = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_monitor_chainingMonitor_jsx__WEBPACK_IMPORTED_MODULE_10__["default"], {
                suffix: this.state.node_text,
                bename: this.state.bename,
                reload: this.loadMonitorChaining,
                data: this.state[this.state.node_text].chainingData,
                enableTree: this.enableTree,
                key: this.state.node_text
              });
            } else {
              // Suffix
              monitor_element = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_monitor_suffixMonitor_jsx__WEBPACK_IMPORTED_MODULE_9__["default"], {
                suffix: this.state.node_text,
                bename: this.state.bename,
                reload: this.loadMonitorSuffix,
                data: this.state[this.state.node_text].suffixData,
                enableTree: this.enableTree,
                key: this.state.node_text
              });
            }
          }
        }

        monitorPage = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "container-fluid"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["NotificationController"], {
          notifications: this.state.notifications,
          removeNotificationAction: this.removeNotification
        }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-container"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-tree"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: disabled,
          id: "monitor-tree",
          style: treeViewContainerStyles
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["TreeView"], {
          nodes: nodes,
          highlightOnHover: true,
          highlightOnSelect: true,
          selectNode: this.selectNode,
          key: this.state.node_text
        })))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-tree-content"
        }, monitor_element)));
      } else {
        monitorPage = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-loading-spinner ds-center"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading monitor information ..."), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
          className: "ds-margin-top-lg",
          loading: true,
          size: "md"
        }));
      }

      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, monitorPage);
    }
  }]);

  return Monitor;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Property types and defaults

Monitor.propTypes = {
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string
};
Monitor.defaultProps = {
  serverId: ""
};

/***/ }),

/***/ "./src/plugins.jsx":
/*!*************************!*\
  !*** ./src/plugins.jsx ***!
  \*************************/
/*! exports provided: Plugins */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Plugins", function() { return Plugins; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lib/tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _lib_plugins_pluginModal_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./lib/plugins/pluginModal.jsx */ "./src/lib/plugins/pluginModal.jsx");
/* harmony import */ var _lib_plugins_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./lib/plugins/pluginTables.jsx */ "./src/lib/plugins/pluginTables.jsx");
/* harmony import */ var _lib_plugins_accountPolicy_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./lib/plugins/accountPolicy.jsx */ "./src/lib/plugins/accountPolicy.jsx");
/* harmony import */ var _lib_plugins_attributeUniqueness_jsx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./lib/plugins/attributeUniqueness.jsx */ "./src/lib/plugins/attributeUniqueness.jsx");
/* harmony import */ var _lib_plugins_autoMembership_jsx__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./lib/plugins/autoMembership.jsx */ "./src/lib/plugins/autoMembership.jsx");
/* harmony import */ var _lib_plugins_dna_jsx__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./lib/plugins/dna.jsx */ "./src/lib/plugins/dna.jsx");
/* harmony import */ var _lib_plugins_linkedAttributes_jsx__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./lib/plugins/linkedAttributes.jsx */ "./src/lib/plugins/linkedAttributes.jsx");
/* harmony import */ var _lib_plugins_managedEntries_jsx__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./lib/plugins/managedEntries.jsx */ "./src/lib/plugins/managedEntries.jsx");
/* harmony import */ var _lib_plugins_memberOf_jsx__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./lib/plugins/memberOf.jsx */ "./src/lib/plugins/memberOf.jsx");
/* harmony import */ var _lib_plugins_passthroughAuthentication_jsx__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./lib/plugins/passthroughAuthentication.jsx */ "./src/lib/plugins/passthroughAuthentication.jsx");
/* harmony import */ var _lib_plugins_referentialIntegrity_jsx__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./lib/plugins/referentialIntegrity.jsx */ "./src/lib/plugins/referentialIntegrity.jsx");
/* harmony import */ var _lib_plugins_retroChangelog_jsx__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./lib/plugins/retroChangelog.jsx */ "./src/lib/plugins/retroChangelog.jsx");
/* harmony import */ var _lib_plugins_rootDNAccessControl_jsx__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./lib/plugins/rootDNAccessControl.jsx */ "./src/lib/plugins/rootDNAccessControl.jsx");
/* harmony import */ var _lib_plugins_usn_jsx__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./lib/plugins/usn.jsx */ "./src/lib/plugins/usn.jsx");
/* harmony import */ var _lib_plugins_winsync_jsx__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./lib/plugins/winsync.jsx */ "./src/lib/plugins/winsync.jsx");
/* harmony import */ var _lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./lib/notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_21__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }

function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }























var cmd;
var Plugins =
/*#__PURE__*/
function (_React$Component) {
  _inherits(Plugins, _React$Component);

  _createClass(Plugins, [{
    key: "componentWillMount",
    value: function componentWillMount() {
      this.pluginList();
      this.setState(function (prevState) {
        return {
          pluginTabs: _objectSpread({}, prevState.pluginTabs, {
            basicConfig: true
          })
        };
      });
    }
  }, {
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps) {
      if (this.props.serverId !== prevProps.serverId) {
        this.pluginList();
      }
    }
  }]);

  function Plugins() {
    var _this;

    _classCallCheck(this, Plugins);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(Plugins).call(this));
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleSwitchChange = _this.handleSwitchChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.openPluginModal = _this.openPluginModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closePluginModal = _this.closePluginModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.pluginList = _this.pluginList.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.removeNotification = _this.removeNotification.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.addNotification = _this.addNotification.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.onChangeTab = _this.onChangeTab.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.savePlugin = _this.savePlugin.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.toggleLoading = _this.toggleLoading.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.state = {
      notifications: [],
      loading: false,
      showPluginModal: false,
      currentPluginTab: "",
      rows: [],
      // Plugin attributes
      currentPluginName: "",
      currentPluginType: "",
      currentPluginEnabled: false,
      currentPluginPath: "",
      currentPluginInitfunc: "",
      currentPluginId: "",
      currentPluginVendor: "",
      currentPluginVersion: "",
      currentPluginDescription: "",
      currentPluginDependsOnType: "",
      currentPluginDependsOnNamed: "",
      currentPluginPrecedence: ""
    };
    return _this;
  }

  _createClass(Plugins, [{
    key: "onChangeTab",
    value: function onChangeTab(event) {
      this.setState({
        currentPluginTab: event.target.value
      });
    }
  }, {
    key: "addNotification",
    value: function addNotification(type, message, timerdelay, persistent) {
      this.setState(function (prevState) {
        return {
          notifications: _toConsumableArray(prevState.notifications).concat([{
            key: prevState.notifications.length + 1,
            type: type,
            persistent: persistent,
            timerdelay: timerdelay,
            message: message
          }])
        };
      });
    }
  }, {
    key: "removeNotification",
    value: function removeNotification(notificationToRemove) {
      this.setState({
        notifications: this.state.notifications.filter(function (notification) {
          return notificationToRemove.key !== notification.key;
        })
      });
    }
  }, {
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.value));
    }
  }, {
    key: "handleSwitchChange",
    value: function handleSwitchChange(value) {
      this.setState({
        currentPluginEnabled: !value
      });
    }
  }, {
    key: "closePluginModal",
    value: function closePluginModal() {
      this.setState({
        showPluginModal: false
      });
    }
  }, {
    key: "toggleLoading",
    value: function toggleLoading() {
      this.setState(function (prevState) {
        return {
          loading: !prevState.loading
        };
      });
    }
  }, {
    key: "openPluginModal",
    value: function openPluginModal(rowData) {
      var pluginEnabled;

      if (rowData["nsslapd-pluginEnabled"][0] === "on") {
        pluginEnabled = true;
      } else if (rowData["nsslapd-pluginEnabled"][0] === "off") {
        pluginEnabled = false;
      } else {
        console.error("openPluginModal failed", "wrong nsslapd-pluginenabled attribute value", rowData["nsslapd-pluginEnabled"][0]);
      }

      this.setState({
        currentPluginName: rowData.cn[0],
        currentPluginType: rowData["nsslapd-pluginType"][0],
        currentPluginEnabled: pluginEnabled,
        currentPluginPath: rowData["nsslapd-pluginPath"][0],
        currentPluginInitfunc: rowData["nsslapd-pluginInitfunc"][0],
        currentPluginId: rowData["nsslapd-pluginId"][0],
        currentPluginVendor: rowData["nsslapd-pluginVendor"][0],
        currentPluginVersion: rowData["nsslapd-pluginVersion"][0],
        currentPluginDescription: rowData["nsslapd-pluginDescription"][0],
        currentPluginDependsOnType: rowData["nsslapd-plugin-depends-on-type"] === undefined ? "" : rowData["nsslapd-plugin-depends-on-type"][0],
        currentPluginDependsOnNamed: rowData["nsslapd-plugin-depends-on-named"] === undefined ? "" : rowData["nsslapd-plugin-depends-on-named"][0],
        currentPluginPrecedence: rowData["nsslapd-pluginprecedence"] === undefined ? "" : rowData["nsslapd-pluginprecedence"][0],
        showPluginModal: true
      });
    }
  }, {
    key: "pluginList",
    value: function pluginList() {
      var _this2 = this;

      cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "list"];
      this.toggleLoading();
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("pluginList", "Get plugins for table rows", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var myObject = JSON.parse(content);

        _this2.setState({
          rows: myObject.items
        });

        _this2.toggleLoading();
      }).fail(function (err) {
        if (err != 0) {
          var errMsg = JSON.parse(err);
          console.log("pluginList failed: ", errMsg.desc);
        }

        _this2.toggleLoading();
      });
    }
  }, {
    key: "savePlugin",
    value: function savePlugin(data) {
      var _this3 = this;

      var nothingToSetErr = false;
      var basicPluginSuccess = false;
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "set", data.name, "--type", data.type || "delete", "--path", data.path || "delete", "--initfunc", data.initfunc || "delete", "--id", data.id || "delete", "--vendor", data.vendor || "delete", "--version", data.version || "delete", "--description", data.description || "delete", "--depends-on-type", data.dependsOnType || "delete", "--depends-on-named", data.dependsOnNamed || "delete", "--precedence", data.precedence || "delete"];

      if ("enabled" in data) {
        cmd = _toConsumableArray(cmd).concat(["--enabled", data.enabled ? "on" : "off"]);
      }

      this.toggleLoading();
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("savePlugin", "Edit the plugin", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("savePlugin", "Result", content);
        basicPluginSuccess = true;

        _this3.addNotification("success", "Plugin ".concat(data.name, " was successfully modified"));

        _this3.pluginList();

        _this3.closePluginModal();

        _this3.toggleLoading();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        if (errMsg.desc.indexOf("nothing to set") >= 0) {
          nothingToSetErr = true;
        } else {
          _this3.addNotification("error", "".concat(errMsg.desc, " error during ").concat(data.name, " modification"));
        }

        _this3.closePluginModal();

        _this3.toggleLoading();
      }).always(function () {
        if ("specificPluginCMD" in data && data.specificPluginCMD.length != 0) {
          _this3.toggleLoading();

          Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("savePlugin", "Edit the plugin from the plugin config tab", data.specificPluginCMD);
          cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(data.specificPluginCMD, {
            superuser: true,
            err: "message"
          }).done(function (content) {
            // Notify success only one time
            if (!basicPluginSuccess) {
              _this3.addNotification("success", "Plugin ".concat(data.name, " was successfully modified"));
            }

            _this3.pluginList();

            _this3.toggleLoading();

            console.info("savePlugin", "Result", content);
          }).fail(function (err) {
            var errMsg = JSON.parse(err);

            if (errMsg.desc.indexOf("nothing to set") >= 0 && nothingToSetErr || errMsg.desc.indexOf("nothing to set") < 0) {
              if (basicPluginSuccess) {
                _this3.addNotification("success", "Plugin ".concat(data.name, " was successfully modified"));

                _this3.pluginList();
              }

              _this3.addNotification("error", "".concat(errMsg.desc, " error during ").concat(data.name, " modification"));
            }

            _this3.toggleLoading();
          });
        } else {
          _this3.pluginList();
        }
      });
    }
  }, {
    key: "render",
    value: function render() {
      var selectPlugins = {
        allPlugins: {
          name: "All Plugins",
          component: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_plugins_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_6__["PluginTable"], {
            rows: this.state.rows,
            loadModalHandler: this.openPluginModal
          })
        },
        accountPolicy: {
          name: "Account Policy",
          component: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_plugins_accountPolicy_jsx__WEBPACK_IMPORTED_MODULE_7__["default"], {
            rows: this.state.rows,
            serverId: this.props.serverId,
            savePluginHandler: this.savePlugin,
            pluginListHandler: this.pluginList,
            addNotification: this.addNotification,
            toggleLoadingHandler: this.toggleLoading
          })
        },
        attributeUniqueness: {
          name: "Attribute Uniqueness",
          component: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_plugins_attributeUniqueness_jsx__WEBPACK_IMPORTED_MODULE_8__["default"], {
            rows: this.state.rows,
            serverId: this.props.serverId,
            savePluginHandler: this.savePlugin,
            pluginListHandler: this.pluginList,
            addNotification: this.addNotification,
            toggleLoadingHandler: this.toggleLoading
          })
        },
        linkedAttributes: {
          name: "Linked Attributes",
          component: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_plugins_linkedAttributes_jsx__WEBPACK_IMPORTED_MODULE_11__["default"], {
            rows: this.state.rows,
            serverId: this.props.serverId,
            savePluginHandler: this.savePlugin,
            pluginListHandler: this.pluginList,
            addNotification: this.addNotification,
            toggleLoadingHandler: this.toggleLoading
          })
        },
        dna: {
          name: "DNA",
          component: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_plugins_dna_jsx__WEBPACK_IMPORTED_MODULE_10__["default"], {
            rows: this.state.rows,
            serverId: this.props.serverId,
            savePluginHandler: this.savePlugin,
            pluginListHandler: this.pluginList,
            addNotification: this.addNotification,
            toggleLoadingHandler: this.toggleLoading
          })
        },
        autoMembership: {
          name: "Auto Membership",
          component: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_plugins_autoMembership_jsx__WEBPACK_IMPORTED_MODULE_9__["default"], {
            rows: this.state.rows,
            serverId: this.props.serverId,
            savePluginHandler: this.savePlugin,
            pluginListHandler: this.pluginList,
            addNotification: this.addNotification,
            toggleLoadingHandler: this.toggleLoading
          })
        },
        memberOf: {
          name: "MemberOf",
          component: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_plugins_memberOf_jsx__WEBPACK_IMPORTED_MODULE_13__["default"], {
            rows: this.state.rows,
            serverId: this.props.serverId,
            savePluginHandler: this.savePlugin,
            pluginListHandler: this.pluginList,
            addNotification: this.addNotification,
            toggleLoadingHandler: this.toggleLoading
          })
        },
        managedEntries: {
          name: "Managed Entries",
          component: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_plugins_managedEntries_jsx__WEBPACK_IMPORTED_MODULE_12__["default"], {
            rows: this.state.rows,
            serverId: this.props.serverId,
            savePluginHandler: this.savePlugin,
            pluginListHandler: this.pluginList,
            addNotification: this.addNotification,
            toggleLoadingHandler: this.toggleLoading
          })
        },
        passthroughAuthentication: {
          name: "Passthrough Authentication",
          component: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_plugins_passthroughAuthentication_jsx__WEBPACK_IMPORTED_MODULE_14__["default"], {
            rows: this.state.rows,
            serverId: this.props.serverId,
            savePluginHandler: this.savePlugin,
            pluginListHandler: this.pluginList,
            addNotification: this.addNotification,
            toggleLoadingHandler: this.toggleLoading
          })
        },
        winsync: {
          name: "Posix Winsync",
          component: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_plugins_winsync_jsx__WEBPACK_IMPORTED_MODULE_19__["default"], {
            rows: this.state.rows,
            serverId: this.props.serverId,
            savePluginHandler: this.savePlugin,
            pluginListHandler: this.pluginList,
            addNotification: this.addNotification,
            toggleLoadingHandler: this.toggleLoading
          })
        },
        referentialIntegrity: {
          name: "Referential Integrity",
          component: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_plugins_referentialIntegrity_jsx__WEBPACK_IMPORTED_MODULE_15__["default"], {
            rows: this.state.rows,
            serverId: this.props.serverId,
            savePluginHandler: this.savePlugin,
            pluginListHandler: this.pluginList,
            addNotification: this.addNotification,
            toggleLoadingHandler: this.toggleLoading
          })
        },
        retroChangelog: {
          name: "Retro Changelog",
          component: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_plugins_retroChangelog_jsx__WEBPACK_IMPORTED_MODULE_16__["default"], {
            rows: this.state.rows,
            serverId: this.props.serverId,
            savePluginHandler: this.savePlugin,
            pluginListHandler: this.pluginList,
            addNotification: this.addNotification,
            toggleLoadingHandler: this.toggleLoading
          })
        },
        rootDnaAccessControl: {
          name: "RootDN Access Control",
          component: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_plugins_rootDNAccessControl_jsx__WEBPACK_IMPORTED_MODULE_17__["default"], {
            rows: this.state.rows,
            serverId: this.props.serverId,
            savePluginHandler: this.savePlugin,
            pluginListHandler: this.pluginList,
            addNotification: this.addNotification,
            toggleLoadingHandler: this.toggleLoading
          })
        },
        usn: {
          name: "USN",
          component: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_plugins_usn_jsx__WEBPACK_IMPORTED_MODULE_18__["default"], {
            rows: this.state.rows,
            serverId: this.props.serverId,
            savePluginHandler: this.savePlugin,
            pluginListHandler: this.pluginList,
            addNotification: this.addNotification,
            toggleLoadingHandler: this.toggleLoading
          })
        }
      };
      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "container-fluid"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_20__["NotificationController"], {
        notifications: this.state.notifications,
        removeNotificationAction: this.removeNotification
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "clearfix"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 12
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
        className: "ds-float-left ds-plugin-spinner",
        loading: this.state.loading,
        size: "md"
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Tab"].Container, {
        id: "left-tabs-example",
        defaultActiveKey: Object.keys(selectPlugins)[0]
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "clearfix"
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Nav"], {
        bsStyle: "pills",
        stacked: true
      }, Object.entries(selectPlugins).map(function (_ref) {
        var _ref2 = _slicedToArray(_ref, 2),
            id = _ref2[0],
            item = _ref2[1];

        return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["NavItem"], {
          key: id,
          eventKey: id
        }, item.name);
      }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 9
      }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Tab"].Content, {
        animation: false
      }, Object.entries(selectPlugins).map(function (_ref3) {
        var _ref4 = _slicedToArray(_ref3, 2),
            id = _ref4[0],
            item = _ref4[1];

        return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Tab"].Pane, {
          key: id,
          eventKey: id
        }, item.component);
      }))))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_plugins_pluginModal_jsx__WEBPACK_IMPORTED_MODULE_5__["default"], {
        handleChange: this.handleFieldChange,
        handleSwitchChange: this.handleSwitchChange,
        pluginData: {
          currentPluginName: this.state.currentPluginName,
          currentPluginType: this.state.currentPluginType,
          currentPluginEnabled: this.state.currentPluginEnabled,
          currentPluginPath: this.state.currentPluginPath,
          currentPluginInitfunc: this.state.currentPluginInitfunc,
          currentPluginId: this.state.currentPluginId,
          currentPluginVendor: this.state.currentPluginVendor,
          currentPluginVersion: this.state.currentPluginVersion,
          currentPluginDescription: this.state.currentPluginDescription,
          currentPluginDependsOnType: this.state.currentPluginDependsOnType,
          currentPluginDependsOnNamed: this.state.currentPluginDependsOnNamed,
          currentPluginPrecedence: this.state.currentPluginPrecedence
        },
        closeHandler: this.closePluginModal,
        showModal: this.state.showPluginModal,
        savePluginHandler: this.savePlugin
      }));
    }
  }]);

  return Plugins;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);
Plugins.propTypes = {
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
Plugins.defaultProps = {
  serverId: ""
};

/***/ }),

/***/ "./src/replication.jsx":
/*!*****************************!*\
  !*** ./src/replication.jsx ***!
  \*****************************/
/*! exports provided: Replication, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Replication", function() { return Replication; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lib/notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lib/tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _lib_replication_replSuffix_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./lib/replication/replSuffix.jsx */ "./src/lib/replication/replSuffix.jsx");
/* harmony import */ var _lib_replication_replChangelog_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./lib/replication/replChangelog.jsx */ "./src/lib/replication/replChangelog.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_8__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }










var treeViewContainerStyles = {
  width: '295px'
};
var Replication =
/*#__PURE__*/
function (_React$Component) {
  _inherits(Replication, _React$Component);

  function Replication(props) {
    var _this;

    _classCallCheck(this, Replication);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(Replication).call(this, props));
    _this.state = {
      notifications: [],
      errObj: {},
      nodes: [],
      node_name: "",
      node_text: "",
      node_type: "",
      node_replicated: false,
      disableTree: true,
      // Changelog
      clLoading: false,
      clDir: "",
      clMaxEntries: "",
      clMaxAge: "",
      clCompactInt: "",
      clTrimInt: "",
      clEncrypt: false,
      // Suffix
      suffixLoading: false,
      attributes: [],
      role: "",
      rid: "0",
      bindDNs: [],
      bindDNGroup: "",
      agmtRows: [],
      winsyncRows: [],
      ruvRows: [],
      suffixSpinning: false,
      disabled: false,
      suffixKey: 0,
      showDisableConfirm: false,
      loaded: false
    }; // General

    _this.selectNode = _this.selectNode.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.removeNotification = _this.removeNotification.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.addNotification = _this.addNotification.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.disableTree = _this.disableTree.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.enableTree = _this.enableTree.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.reloadConfig = _this.reloadConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.reloadAgmts = _this.reloadAgmts.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.reloadWinsyncAgmts = _this.reloadWinsyncAgmts.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.reloadRUV = _this.reloadRUV.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadAttrs = _this.loadAttrs.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadReplication = _this.loadReplication.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadReplSuffix = _this.loadReplSuffix.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.reloadChangelog = _this.reloadChangelog.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadSuffixTree = _this.loadSuffixTree.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(Replication, [{
    key: "componentWillMount",
    value: function componentWillMount() {
      this.loadReplication();

      if (!this.state.loaded) {
        this.loadAttrs();
      }
    }
  }, {
    key: "componentDidMount",
    value: function componentDidMount() {// this.loadSuffixTree(false);
    }
  }, {
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps) {
      if (this.props.serverId !== prevProps.serverId) {
        this.loadSuffixTree(true);
      }
    }
  }, {
    key: "loadReplication",
    value: function loadReplication() {
      var _this2 = this;

      // Load the changelog, and build the suffix tree
      this.setState({
        loaded: false
      });
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'replication', 'get-changelog'];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadReplication", "Load the replication info", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var clDir = "";
        var clMaxEntries = "";
        var clMaxAge = "";
        var clCompactInt = "";
        var clTrimInt = "";
        var clEncrypt = false;

        for (var attr in config['attrs']) {
          var val = config['attrs'][attr][0];

          if (attr == "nsslapd-changelogdir") {
            clDir = val;
          }

          if (attr == "nsslapd-changelogmaxentries") {
            clMaxEntries = val;
          }

          if (attr == "nsslapd-changelogmaxage") {
            clMaxAge = val;
          }

          if (attr == "nsslapd-changelogcompactdb-interval") {
            clCompactInt = val;
          }

          if (attr == "nsslapd-changelogtrim-interval") {
            clTrimInt = val;
          }

          if (attr == "nsslapd-encryptionalgorithm") {
            clEncrypt = true;
          }
        }

        _this2.setState({
          clDir: clDir,
          clMaxEntries: clMaxEntries,
          clMaxAge: clMaxAge,
          clCompactInt: clCompactInt,
          clTrimInt: clTrimInt,
          clEncrypt: clEncrypt
        }, _this2.loadSuffixTree(true));
      }).fail(function () {
        _this2.setState({
          clDir: "",
          clMaxEntries: "",
          clMaxAge: "",
          clCompactInt: "",
          clTrimInt: "",
          clEncrypt: false
        }, _this2.loadSuffixTree(true));
      });
    }
  }, {
    key: "reloadChangelog",
    value: function reloadChangelog() {
      var _this3 = this;

      // Refresh the changelog
      this.setState({
        clLoading: true
      });
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'replication', 'get-changelog'];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("reloadChangelog", "Reload the changelog", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var clDir = "";
        var clMaxEntries = "";
        var clMaxAge = "";
        var clCompactInt = "";
        var clTrimInt = "";
        var clEncrypt = false;

        for (var attr in config['attrs']) {
          var val = config['attrs'][attr][0];

          if (attr == "nsslapd-changelogdir") {
            clDir = val;
          }

          if (attr == "nsslapd-changelogmaxentries") {
            clMaxEntries = val;
          }

          if (attr == "nsslapd-changelogmaxage") {
            clMaxAge = val;
          }

          if (attr == "nsslapd-changelogcompactdb-interval") {
            clCompactInt = val;
          }

          if (attr == "nsslapd-changelogtrim-interval") {
            clTrimInt = val;
          }

          if (attr == "nsslapd-encryptionalgorithm") {
            clEncrypt = true;
          }
        }

        _this3.setState({
          clDir: clDir,
          clMaxEntries: clMaxEntries,
          clMaxAge: clMaxAge,
          clCompactInt: clCompactInt,
          clTrimInt: clTrimInt,
          clEncrypt: clEncrypt,
          clLoading: false
        });
      }).fail(function () {
        _this3.setState({
          clDir: "",
          clMaxEntries: "",
          clMaxAge: "",
          clCompactInt: "",
          clTrimInt: "",
          clEncrypt: false,
          clLoading: false
        });
      });
    }
  }, {
    key: "processBranch",
    value: function processBranch(treeBranch) {
      if (treeBranch.length == 0) {
        return;
      }

      for (var sub in treeBranch) {
        if (!treeBranch[sub].type.endsWith("suffix")) {
          // Not a suffix, skip it
          treeBranch.splice(sub, 1);
          continue;
        } else if (treeBranch[sub].replicated) {
          treeBranch[sub].icon = "fa fa-clone";
          treeBranch[sub].replicated = true;
        }

        this.processBranch(treeBranch[sub].nodes);
      }
    }
  }, {
    key: "loadSuffixTree",
    value: function loadSuffixTree(fullReset) {
      var _this4 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "get-tree"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadSuffixTree", "Start building the suffix tree", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var treeData = [];

        if (content != "") {
          treeData = JSON.parse(content);
        }

        var basicData = [{
          text: "Replication Changelog",
          selectable: true,
          selected: false,
          icon: "pficon-catalog",
          id: "changelog"
        }, {
          text: "Suffixes",
          icon: "pficon-topology",
          state: {
            "expanded": true
          },
          selectable: false,
          id: "repl-suffixes",
          nodes: []
        }];
        var current_node = _this4.state.node_name;
        var current_type = _this4.state.node_type;
        var replicated = _this4.state.node_replicated;

        if (fullReset && treeData.length > 0) {
          var found = false;

          for (var i = 0; i < treeData.length; i++) {
            if (treeData[i].replicated) {
              treeData[i].icon = "fa fa-clone";
              replicated = true;

              if (!found) {
                // Load the first replicated suffix we find
                treeData[i].selected = true;
                current_node = treeData[i].id;
                current_type = treeData[i].type;

                _this4.loadReplSuffix(treeData[i].id);

                found = true;
              }
            }

            _this4.processBranch(treeData[i].nodes);
          }

          if (!found) {
            // No replicated suffixes, load the first one
            treeData[0].selected = true;
            current_node = treeData[0].id;
            current_type = treeData[0].type;

            _this4.loadReplSuffix(treeData[0].id);
          }
        } else if (treeData.length > 0) {
          // Reset current suffix
          var _iteratorNormalCompletion = true;
          var _didIteratorError = false;
          var _iteratorError = undefined;

          try {
            for (var _iterator = treeData[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
              var suffix = _step.value;

              _this4.processBranch(suffix.nodes);

              if (suffix.id == current_node) {
                suffix.selected = true;
                replicated = suffix.replicated;
              }

              if (suffix.replicated) {
                suffix.icon = "fa fa-clone";
              }
            }
          } catch (err) {
            _didIteratorError = true;
            _iteratorError = err;
          } finally {
            try {
              if (!_iteratorNormalCompletion && _iterator.return != null) {
                _iterator.return();
              }
            } finally {
              if (_didIteratorError) {
                throw _iteratorError;
              }
            }
          }

          _this4.loadReplSuffix(current_node);
        }

        basicData[1].nodes = treeData;

        _this4.setState(function () {
          return {
            nodes: basicData,
            node_name: current_node,
            node_type: current_type,
            node_replicated: replicated
          };
        }, _this4.update_tree_nodes);
      });
    }
  }, {
    key: "selectNode",
    value: function selectNode(selectedNode) {
      var _this5 = this;

      if (selectedNode.selected) {
        return;
      }

      this.setState({
        disableTree: true // Disable the tree to allow node to be fully loaded

      });

      if (selectedNode.id == "changelog") {
        // Nothing special to do, these configurations have already been loaded
        this.setState(function (prevState) {
          return {
            nodes: _this5.nodeSelector(prevState.nodes, selectedNode),
            node_name: selectedNode.id,
            node_text: selectedNode.text,
            node_type: selectedNode.id
          };
        });
      } else {
        if (selectedNode.id in this.state) {
          // This suffix is already cached, just use what we have...
          this.setState(function (prevState) {
            return {
              nodes: _this5.nodeSelector(prevState.nodes, selectedNode),
              node_name: selectedNode.id,
              node_text: selectedNode.text,
              node_type: selectedNode.type,
              node_replicated: selectedNode.replicated,
              disableTree: false,
              suffixKey: new Date()
            };
          });
        } else {
          // Suffix/subsuffix
          this.loadReplSuffix(selectedNode.id);
          this.setState(function (prevState) {
            return {
              nodes: _this5.nodeSelector(prevState.nodes, selectedNode),
              node_name: selectedNode.id,
              node_text: selectedNode.text,
              node_type: selectedNode.type,
              node_replicated: selectedNode.replicated,
              suffixKey: new Date()
            };
          });
        }
      }
    }
  }, {
    key: "nodeSelector",
    value: function nodeSelector(nodes, targetNode) {
      var _this6 = this;

      return nodes.map(function (node) {
        if (node.nodes) {
          return _objectSpread({}, node, {
            nodes: _this6.nodeSelector(node.nodes, targetNode),
            selected: node.id === targetNode.id ? !node.selected : false
          });
        } else if (node.id === targetNode.id) {
          return _objectSpread({}, node, {
            selected: !node.selected
          });
        } else if (node.id !== targetNode.id && node.selected) {
          return _objectSpread({}, node, {
            selected: false
          });
        } else {
          return node;
        }
      });
    }
  }, {
    key: "addNotification",
    value: function addNotification(type, message, timerdelay, persistent) {
      this.setState(function (prevState) {
        return {
          notifications: _toConsumableArray(prevState.notifications).concat([{
            key: prevState.notifications.length + 1,
            type: type,
            persistent: persistent,
            timerdelay: timerdelay,
            message: message
          }])
        };
      });
    }
  }, {
    key: "removeNotification",
    value: function removeNotification(notificationToRemove) {
      this.setState({
        notifications: this.state.notifications.filter(function (notification) {
          return notificationToRemove.key !== notification.key;
        })
      });
    }
  }, {
    key: "update_tree_nodes",
    value: function update_tree_nodes() {
      // Set title to the text value of each suffix node.  We need to do this
      // so we can read long suffixes in the UI tree div.  This is the last
      // step of loading the page, so mark it loaded!
      var elements = document.getElementsByClassName('treeitem-row');
      var _iteratorNormalCompletion2 = true;
      var _didIteratorError2 = false;
      var _iteratorError2 = undefined;

      try {
        for (var _iterator2 = elements[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
          var el = _step2.value;
          el.setAttribute('title', el.innerText);
        }
      } catch (err) {
        _didIteratorError2 = true;
        _iteratorError2 = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
            _iterator2.return();
          }
        } finally {
          if (_didIteratorError2) {
            throw _iteratorError2;
          }
        }
      }

      this.setState({
        loaded: true
      });
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      var _this$setState;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var valueErr = false;
      var errObj = this.state.errObj;

      if (value == "") {
        valueErr = true;
      }

      errObj[e.target.id] = valueErr;
      this.setState((_this$setState = {}, _defineProperty(_this$setState, e.target.id, value), _defineProperty(_this$setState, "errObj", errObj), _this$setState));
    }
  }, {
    key: "closeSuffixModal",
    value: function closeSuffixModal() {
      this.setState({
        showSuffixModal: false
      });
    }
  }, {
    key: "reloadAgmts",
    value: function reloadAgmts(suffix) {
      var _this7 = this;

      this.setState({
        suffixSpinning: true,
        disabled: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-agmt", "list", "--suffix", suffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("reloadAgmts", "get repl agreements", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var _this7$setState;

        var obj = JSON.parse(content);
        var rows = [];

        for (var idx in obj['items']) {
          var agmt_attrs = obj['items'][idx]['attrs'];
          var state = "Enabled";
          var update_status = "";
          var agmt_init_status = ""; // Compute state (enabled by default)

          if ('nsds5replicaenabled' in agmt_attrs) {
            if (agmt_attrs['nsds5replicaenabled'][0].toLowerCase() == 'off') {
              state = "Disabled";
            }
          } // Check for status msgs


          if ('nsds5replicalastupdatestatus' in agmt_attrs) {
            update_status = agmt_attrs['nsds5replicalastupdatestatus'][0];
          }

          if ('nsds5replicalastinitstatus' in agmt_attrs && agmt_attrs['nsds5replicalastinitstatus'][0] != "") {
            agmt_init_status = agmt_attrs['nsds5replicalastinitstatus'][0];

            if (agmt_init_status == "Error (0) Total update in progress" || agmt_init_status == "Error (0)") {
              agmt_init_status = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
                key: agmt_attrs['cn']
              }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Initializing"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Spinner"], {
                loading: true,
                size: "sm"
              }));
            } else if (agmt_init_status == "Error (0) Total update succeeded") {
              agmt_init_status = "Initialized";
              agmt_init_status = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
                key: agmt_attrs['cn']
              }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Initialized"));
            } else {
              agmt_init_status = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
                key: agmt_attrs['cn']
              }, agmt_init_status);
            }
          } else if (agmt_attrs['nsds5replicalastinitstart'][0] == "19700101000000Z") {
            agmt_init_status = "Not initialized";
            agmt_init_status = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
              key: agmt_attrs['cn']
            }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Not Initialized"));
          } else if ('nsds5beginreplicarefresh' in agmt_attrs) {
            agmt_init_status = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
              key: agmt_attrs['cn']
            }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Initializing"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Spinner"], {
              loading: true,
              size: "sm"
            }));
          } // Update table


          rows.push({
            'name': agmt_attrs['cn'],
            'host': agmt_attrs['nsds5replicahost'],
            'port': agmt_attrs['nsds5replicaport'],
            'state': [state],
            'status': [update_status],
            'initstatus': [agmt_init_status]
          });
        } // Set agmt


        _this7.setState((_this7$setState = {}, _defineProperty(_this7$setState, suffix, _objectSpread({}, _this7.state[suffix], {
          agmtRows: rows
        })), _defineProperty(_this7$setState, "suffixSpinning", false), _defineProperty(_this7$setState, "disabled", false), _this7$setState));
      }).fail(function () {
        _this7.setState({
          suffixSpinning: false,
          disabled: false
        });
      });
    }
  }, {
    key: "reloadWinsyncAgmts",
    value: function reloadWinsyncAgmts(suffix) {
      var _this8 = this;

      this.setState({
        suffixSpinning: true,
        disabled: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-winsync-agmt", "list", "--suffix", suffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("reloadWinsyncAgmts", "Get Winsync Agreements", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var _this8$setState;

        var obj = JSON.parse(content);
        var ws_rows = [];

        for (var idx in obj['items']) {
          var state = "Enabled";
          var update_status = "";
          var ws_agmt_init_status = "Initialized";
          var agmt_attrs = obj['items'][idx]['attrs']; // let agmt_name = agmt_attrs['cn'][0];
          // Compute state (enabled by default)

          if ('nsds5replicaenabled' in agmt_attrs) {
            if (agmt_attrs['nsds5replicaenabled'][0].toLowerCase() == 'off') {
              state = "Disabled";
            }
          }

          if ('nsds5replicalastupdatestatus' in agmt_attrs) {
            update_status = agmt_attrs['nsds5replicalastupdatestatus'][0];
          }

          if ('nsds5replicalastinitstatus' in agmt_attrs && agmt_attrs['nsds5replicalastinitstatus'][0] != "") {
            ws_agmt_init_status = agmt_attrs['nsds5replicalastinitstatus'][0];

            if (ws_agmt_init_status == "Error (0) Total update in progress" || ws_agmt_init_status == "Error (0)") {
              ws_agmt_init_status = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
                key: agmt_attrs['cn']
              }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Initializing"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Spinner"], {
                loading: true,
                size: "sm"
              }));
            } else if (ws_agmt_init_status == "Error (0) Total update succeeded") {
              ws_agmt_init_status = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
                key: agmt_attrs['cn']
              }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Initialized"));
            } else {
              ws_agmt_init_status = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
                key: agmt_attrs['cn']
              }, ws_agmt_init_status);
            }
          } else if ('nsds5replicalastinitstart' in agmt_attrs && agmt_attrs['nsds5replicalastinitstart'][0] == "19700101000000Z") {
            ws_agmt_init_status = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
              key: agmt_attrs['cn']
            }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Not initialized"));
          } else if ('nsds5beginreplicarefresh' in agmt_attrs) {
            ws_agmt_init_status = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
              key: agmt_attrs['cn']
            }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Initializing"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Spinner"], {
              loading: true,
              size: "sm"
            }));
          } // Update table


          ws_rows.push({
            'name': agmt_attrs['cn'],
            'host': agmt_attrs['nsds5replicahost'],
            'port': agmt_attrs['nsds5replicaport'],
            'state': [state],
            'status': [update_status],
            'initstatus': [ws_agmt_init_status]
          });
        } // Set winsync agmts


        _this8.setState((_this8$setState = {}, _defineProperty(_this8$setState, suffix, _objectSpread({}, _this8.state[suffix], {
          winsyncRows: ws_rows
        })), _defineProperty(_this8$setState, "suffixSpinning", false), _defineProperty(_this8$setState, "disabled", false), _this8$setState));
      }).fail(function () {
        _this8.setState({
          suffixSpinning: false,
          disabled: false
        });
      });
    }
  }, {
    key: "reloadConfig",
    value: function reloadConfig(suffix) {
      var _this9 = this;

      this.setState({
        suffixSpinning: true,
        disabled: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "replication", "get", "--suffix", suffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("reloadConfig", "Reload suffix repl config", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var _this9$setState;

        var config = JSON.parse(content);
        var current_role = "";
        var nsds5replicaprecisetombstonepurging = false;

        if ('nsds5replicaprecisetombstonepurging' in config['attrs']) {
          if (config['attrs']['nsds5replicaprecisetombstonepurging'][0].toLowerCase() == "on") {
            nsds5replicaprecisetombstonepurging = true;
          }
        } // Set the replica role


        if (config['attrs']['nsds5replicatype'][0] == "3") {
          current_role = "Master";
        } else {
          if (config['attrs']['nsds5flags'][0] == "1") {
            current_role = "Hub";
          } else {
            current_role = "Consumer";
          }
        }

        _this9.setState((_this9$setState = {}, _defineProperty(_this9$setState, suffix, {
          role: current_role,
          nsds5flags: config['attrs']['nsds5flags'][0],
          nsds5replicatype: config['attrs']['nsds5replicatype'][0],
          nsds5replicaid: 'nsds5replicaid' in config['attrs'] ? config['attrs']['nsds5replicaid'][0] : "",
          nsds5replicabinddn: 'nsds5replicabinddn' in config['attrs'] ? config['attrs']['nsds5replicabinddn'] : "",
          nsds5replicabinddngroup: 'nsds5replicabinddngroup' in config['attrs'] ? config['attrs']['nsds5replicabinddngroup'][0] : "",
          nsds5replicabinddngroupcheckinterval: 'nsds5replicabinddngroupcheckinterval' in config['attrs'] ? config['attrs']['nsds5replicabinddngroupcheckinterval'][0] : "",
          nsds5replicareleasetimeout: 'nsds5replicareleasetimeout' in config['attrs'] ? config['attrs']['nsds5replicareleasetimeout'][0] : "",
          nsds5replicapurgedelay: 'nsds5replicapurgedelay' in config['attrs'] ? config['attrs']['nsds5replicapurgedelay'][0] : "",
          nsds5replicatombstonepurgeinterval: 'nsds5replicatombstonepurgeinterval' in config['attrs'] ? config['attrs']['nsds5replicatombstonepurgeinterval'][0] : "",
          nsds5replicaprecisetombstonepurging: nsds5replicaprecisetombstonepurging,
          nsds5replicaprotocoltimeout: 'nsds5replicaprotocoltimeout' in config['attrs'] ? config['attrs']['nsds5replicaprotocoltimeout'][0] : "",
          nsds5replicabackoffmin: 'nsds5replicabackoffmin' in config['attrs'] ? config['attrs']['nsds5replicabackoffmin'][0] : "",
          nsds5replicabackoffmax: 'nsds5replicabackoffmax' in config['attrs'] ? config['attrs']['nsds5replicabackoffmax'][0] : ""
        }), _defineProperty(_this9$setState, "suffixSpinning", false), _defineProperty(_this9$setState, "disabled", false), _defineProperty(_this9$setState, "suffixKey", new Date()), _this9$setState));
      }).fail(function () {
        _this9.setState({
          suffixSpinning: false,
          disabled: false
        });
      });
    }
  }, {
    key: "reloadRUV",
    value: function reloadRUV(suffix) {
      var _this10 = this;

      this.setState({
        suffixSpinning: true,
        disabled: true
      }); // Load suffix RUV

      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'replication', 'get-ruv', '--suffix=' + suffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])('reloadRUV', 'Get the suffix RUV', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var _this10$setState;

        var ruvs = JSON.parse(content);
        var ruv_rows = [];

        for (var idx in ruvs['items']) {
          var ruv = ruvs['items'][idx]; // Update table

          ruv_rows.push({
            'rid': ruv['rid'],
            'url': ruv['url'],
            'csn': ruv['csn'],
            'raw_csn': ruv['raw_csn'],
            'maxcsn': ruv['maxcsn'],
            'raw_maxcsn': ruv['raw_maxcsn']
          });
        }

        _this10.setState((_this10$setState = {}, _defineProperty(_this10$setState, suffix, _objectSpread({}, _this10.state[suffix], {
          ruvRows: ruv_rows
        })), _defineProperty(_this10$setState, "suffixSpinning", false), _defineProperty(_this10$setState, "disabled", false), _this10$setState));
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        if (errMsg.desc != "No such object") {
          _this10.addNotification("error", "Error loading suffix RUV - ".concat(errMsg.desc));
        }

        _this10.setState({
          suffixSpinning: false,
          disabled: false
        });
      });
    }
  }, {
    key: "loadReplSuffix",
    value: function loadReplSuffix(suffix) {
      var _this11 = this;

      // Load everything, we must nest cockpit promise so we can proper set
      // the loading is finished.
      // - Get Suffix config
      // - Get Repl agmts
      // - Get Winsync Agmts
      // - Get RUV's
      this.setState(_defineProperty({
        activeKey: 1,
        suffixLoading: true
      }, suffix, {}));
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "replication", "get", "--suffix", suffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadReplSuffix", "Load suffix repl config", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var current_role = "";
        var nsds5replicaprecisetombstonepurging = false;

        if ('nsds5replicaprecisetombstonepurging' in config['attrs']) {
          if (config['attrs']['nsds5replicaprecisetombstonepurging'][0].toLowerCase() == "on") {
            nsds5replicaprecisetombstonepurging = true;
          }
        } // Set the replica role


        if (config['attrs']['nsds5replicatype'][0] == "3") {
          current_role = "Master";
        } else {
          if (config['attrs']['nsds5flags'][0] == "1") {
            current_role = "Hub";
          } else {
            current_role = "Consumer";
          }
        }

        _this11.setState(_defineProperty({}, suffix, {
          role: current_role,
          nsds5flags: config['attrs']['nsds5flags'][0],
          nsds5replicatype: config['attrs']['nsds5replicatype'][0],
          nsds5replicaid: 'nsds5replicaid' in config['attrs'] ? config['attrs']['nsds5replicaid'][0] : "",
          nsds5replicabinddn: 'nsds5replicabinddn' in config['attrs'] ? config['attrs']['nsds5replicabinddn'] : "",
          nsds5replicabinddngroup: 'nsds5replicabinddngroup' in config['attrs'] ? config['attrs']['nsds5replicabinddngroup'][0] : "",
          nsds5replicabinddngroupcheckinterval: 'nsds5replicabinddngroupcheckinterval' in config['attrs'] ? config['attrs']['nsds5replicabinddngroupcheckinterval'][0] : "",
          nsds5replicareleasetimeout: 'nsds5replicareleasetimeout' in config['attrs'] ? config['attrs']['nsds5replicareleasetimeout'][0] : "",
          nsds5replicapurgedelay: 'nsds5replicapurgedelay' in config['attrs'] ? config['attrs']['nsds5replicapurgedelay'][0] : "",
          nsds5replicatombstonepurgeinterval: 'nsds5replicatombstonepurgeinterval' in config['attrs'] ? config['attrs']['nsds5replicatombstonepurgeinterval'][0] : "",
          nsds5replicaprecisetombstonepurging: nsds5replicaprecisetombstonepurging,
          nsds5replicaprotocoltimeout: 'nsds5replicaprotocoltimeout' in config['attrs'] ? config['attrs']['nsds5replicaprotocoltimeout'][0] : "",
          nsds5replicabackoffmin: 'nsds5replicabackoffmin' in config['attrs'] ? config['attrs']['nsds5replicabackoffmin'][0] : "",
          nsds5replicabackoffmax: 'nsds5replicabackoffmax' in config['attrs'] ? config['attrs']['nsds5replicabackoffmax'][0] : ""
        })); // Now load agmts, then the winsync agreement, and finally the RUV


        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + _this11.props.serverId + ".socket", "repl-agmt", "list", "--suffix", suffix];
        Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadReplSuffix", "get repl agreements", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          var obj = JSON.parse(content);
          var rows = [];

          for (var idx in obj['items']) {
            var agmt_attrs = obj['items'][idx]['attrs'];
            var state = "Enabled";
            var update_status = "";
            var agmt_init_status = ""; // Compute state (enabled by default)

            if ('nsds5replicaenabled' in agmt_attrs) {
              if (agmt_attrs['nsds5replicaenabled'][0].toLowerCase() == 'off') {
                state = "Disabled";
              }
            } // Check for status msgs


            if ('nsds5replicalastupdatestatus' in agmt_attrs) {
              update_status = agmt_attrs['nsds5replicalastupdatestatus'][0];
            }

            if ('nsds5replicalastinitstatus' in agmt_attrs && agmt_attrs['nsds5replicalastinitstatus'][0] != "") {
              agmt_init_status = agmt_attrs['nsds5replicalastinitstatus'][0];

              if (agmt_init_status == "Error (0) Total update in progress" || agmt_init_status == "Error (0)") {
                agmt_init_status = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
                  key: agmt_attrs['cn']
                }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Initializing"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Spinner"], {
                  loading: true,
                  size: "sm"
                }));
              } else if (agmt_init_status == "Error (0) Total update succeeded") {
                agmt_init_status = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
                  key: agmt_attrs['cn']
                }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Initialized"));
              } else {
                agmt_init_status = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
                  key: agmt_attrs['cn']
                }, agmt_init_status);
              }
            } else if ('nsds5replicalastinitstart' in agmt_attrs && agmt_attrs['nsds5replicalastinitstart'][0] == "19700101000000Z") {
              agmt_init_status = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
                key: agmt_attrs['cn']
              }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Not initialized"));
            } else if ('nsds5beginreplicarefresh' in agmt_attrs) {
              agmt_init_status = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
                key: agmt_attrs['cn']
              }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Initializing"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Spinner"], {
                loading: true,
                size: "sm"
              }));
            } // Update table


            rows.push({
              'name': agmt_attrs['cn'],
              'host': agmt_attrs['nsds5replicahost'],
              'port': agmt_attrs['nsds5replicaport'],
              'state': [state],
              'status': [update_status],
              'initstatus': [agmt_init_status]
            });
          } // Set agmt


          _this11.setState(_defineProperty({}, suffix, _objectSpread({}, _this11.state[suffix], {
            agmtRows: rows
          }))); // Load winsync agreements


          var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + _this11.props.serverId + ".socket", "repl-winsync-agmt", "list", "--suffix", suffix];
          Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadReplSuffix", "Get Winsync Agreements", cmd);
          cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
            superuser: true,
            err: "message"
          }).done(function (content) {
            var obj = JSON.parse(content);
            var ws_rows = [];

            for (var idx in obj['items']) {
              var _state = "Enabled";
              var _update_status = "";
              var ws_agmt_init_status = "Initialized";
              var _agmt_attrs = obj['items'][idx]['attrs']; // let agmt_name = agmt_attrs['cn'][0];
              // Compute state (enabled by default)

              if ('nsds5replicaenabled' in _agmt_attrs) {
                if (_agmt_attrs['nsds5replicaenabled'][0].toLowerCase() == 'off') {
                  _state = "Disabled";
                }
              }

              if ('nsds5replicalastupdatestatus' in _agmt_attrs) {
                _update_status = _agmt_attrs['nsds5replicalastupdatestatus'][0];
              }

              if ('nsds5replicalastinitstatus' in _agmt_attrs && _agmt_attrs['nsds5replicalastinitstatus'][0] != "") {
                ws_agmt_init_status = _agmt_attrs['nsds5replicalastinitstatus'][0];

                if (ws_agmt_init_status == "Error (0) Total update in progress" || ws_agmt_init_status == "Error (0)") {
                  ws_agmt_init_status = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
                    key: _agmt_attrs['cn']
                  }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Initializing"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Spinner"], {
                    loading: true,
                    size: "sm"
                  }));
                } else if (ws_agmt_init_status == "Error (0) Total update succeeded") {
                  ws_agmt_init_status = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
                    key: _agmt_attrs['cn']
                  }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Initialized"));
                } else {
                  ws_agmt_init_status = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
                    key: _agmt_attrs['cn']
                  }, ws_agmt_init_status);
                }
              } else if ('nsds5replicalastinitstart' in _agmt_attrs && _agmt_attrs['nsds5replicalastinitstart'][0] == "19700101000000Z") {
                ws_agmt_init_status = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
                  key: _agmt_attrs['cn']
                }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Not initialized"));
              } else if ('nsds5beginreplicarefresh' in _agmt_attrs) {
                ws_agmt_init_status = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
                  key: _agmt_attrs['cn']
                }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Initializing"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Spinner"], {
                  loading: true,
                  size: "sm"
                }));
              } // Update table


              ws_rows.push({
                'name': _agmt_attrs['cn'],
                'host': _agmt_attrs['nsds5replicahost'],
                'port': _agmt_attrs['nsds5replicaport'],
                'state': [_state],
                'status': [_update_status],
                'initstatus': [ws_agmt_init_status]
              });
            } // Set winsync agmts


            _this11.setState(_defineProperty({}, suffix, _objectSpread({}, _this11.state[suffix], {
              winsyncRows: ws_rows
            }))); // Load suffix RUV


            var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + _this11.props.serverId + '.socket', 'replication', 'get-ruv', '--suffix=' + suffix];
            Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])('loadReplSuffix', 'Get the suffix RUV', cmd);
            cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
              superuser: true,
              err: "message"
            }).done(function (content) {
              var _this11$setState4;

              var ruvs = JSON.parse(content);
              var ruv_rows = [];

              for (var _idx in ruvs['items']) {
                var ruv = ruvs['items'][_idx]; // Update table

                ruv_rows.push({
                  'rid': ruv['rid'],
                  'url': ruv['url'],
                  'csn': ruv['csn'],
                  'raw_csn': ruv['raw_csn'],
                  'maxcsn': ruv['maxcsn'],
                  'raw_maxcsn': ruv['raw_maxcsn']
                });
              }

              _this11.setState((_this11$setState4 = {}, _defineProperty(_this11$setState4, suffix, _objectSpread({}, _this11.state[suffix], {
                ruvRows: ruv_rows
              })), _defineProperty(_this11$setState4, "suffixLoading", false), _defineProperty(_this11$setState4, "disableTree", false), _this11$setState4));
            }).fail(function (err) {
              var errMsg = JSON.parse(err);

              if (errMsg.desc != "No such object") {
                _this11.addNotification("error", "Error loading suffix RUV - ".concat(errMsg.desc));
              }

              _this11.setState({
                suffixLoading: false,
                disableTree: false
              });
            });
          }).fail(function (err) {
            var errMsg = JSON.parse(err);

            _this11.addNotification("error", "Error loading winsync agreements - ".concat(errMsg.desc));

            _this11.setState({
              suffixLoading: false,
              disableTree: false
            });
          });
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this11.addNotification("error", "Error loading replication agreements configuration - ".concat(errMsg.desc));

          _this11.setState({
            suffixLoading: false,
            disableTree: false
          });
        });
      }).fail(function () {
        _this11.setState({
          suffixLoading: false,
          disableTree: false,
          node_replicated: false
        });
      });
    }
  }, {
    key: "loadAttrs",
    value: function loadAttrs() {
      var _this12 = this;

      // Now get the schema that various tabs use
      var attr_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "list"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("Suffixes", "Get attrs", attr_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(attr_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var attrContent = JSON.parse(content);
        var attrs = [];
        var _iteratorNormalCompletion3 = true;
        var _didIteratorError3 = false;
        var _iteratorError3 = undefined;

        try {
          for (var _iterator3 = attrContent['items'][Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
            var _content = _step3.value;
            attrs.push(_content.name);
          }
        } catch (err) {
          _didIteratorError3 = true;
          _iteratorError3 = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
              _iterator3.return();
            }
          } finally {
            if (_didIteratorError3) {
              throw _iteratorError3;
            }
          }
        }

        _this12.setState({
          attributes: attrs
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this12.addNotification("error", "Failed to get attributes - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "enableTree",
    value: function enableTree() {
      this.setState({
        disableTree: false
      });
    }
  }, {
    key: "disableTree",
    value: function disableTree() {
      this.setState({
        disableTree: true
      });
    }
  }, {
    key: "render",
    value: function render() {
      var nodes = this.state.nodes;
      var repl_page = "";
      var disabled = "tree-view-container";

      if (this.state.disableTree) {
        disabled = "tree-view-container ds-disabled";
      }

      var repl_element = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "There are currently no databases to configure for replication");

      if (this.state.loaded) {
        // We have a suffix, or database link
        if (this.state.node_type == "suffix" || this.state.node_type == "subsuffix") {
          if (this.state.suffixLoading) {
            repl_element = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
              className: "ds-margin-top ds-loading-spinner ds-center"
            }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading replication configuration for ", react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, this.state.node_name, " ...")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Spinner"], {
              className: "ds-margin-top-lg",
              loading: true,
              size: "md"
            }));
          } else {
            if (this.state.node_name in this.state) {
              repl_element = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_replication_replSuffix_jsx__WEBPACK_IMPORTED_MODULE_4__["ReplSuffix"], {
                serverId: this.props.serverId,
                suffix: this.state.node_name,
                role: this.state[this.state.node_name].role,
                data: this.state[this.state.node_name],
                addNotification: this.addNotification,
                agmtRows: this.state[this.state.node_name].agmtRows,
                winsyncRows: this.state[this.state.node_name].winsyncRows,
                ruvRows: this.state[this.state.node_name].ruvRows,
                reloadAgmts: this.reloadAgmts,
                reloadWinsyncAgmts: this.reloadWinsyncAgmts,
                reloadRUV: this.reloadRUV,
                reloadConfig: this.reloadConfig,
                reload: this.loadSuffixTree,
                attrs: this.state.attributes,
                replicated: this.state.node_replicated,
                enableTree: this.enableTree,
                disableTree: this.disableTree,
                key: this.state.suffixKey,
                disabled: this.state.disabled,
                spinning: this.state.suffixSpinning
              }));
            } else {
              // Suffix is not replicated
              repl_element = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_replication_replSuffix_jsx__WEBPACK_IMPORTED_MODULE_4__["ReplSuffix"], {
                serverId: this.props.serverId,
                suffix: this.state.node_name,
                role: "",
                data: "",
                addNotification: this.addNotification,
                disableWSAgmtTable: this.state.disableWSAgmtTable,
                disableAgmtTable: this.state.disableAgmtTable,
                reloadAgmts: this.reloadAgmts,
                reloadWinsyncAgmts: this.reloadWinsyncAgmts,
                reloadRUV: this.reloadRUV,
                reloadConfig: this.reloadConfig,
                reload: this.loadSuffixTree,
                attrs: this.state.attributes,
                replicated: this.state.node_replicated,
                enableTree: this.enableTree,
                disableTree: this.disableTree,
                spinning: this.state.suffixSpinning,
                disabled: this.state.disabled,
                key: this.state.node_name
              });
            }
          }
        } else if (this.state.node_type == "changelog") {
          repl_element = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_replication_replChangelog_jsx__WEBPACK_IMPORTED_MODULE_5__["Changelog"], {
            serverId: this.props.serverId,
            clDir: this.state.clDir,
            clMaxEntries: this.state.clMaxEntries,
            clMaxAge: this.state.clMaxAge,
            clCompactInt: this.state.clCompactInt,
            clTrimInt: this.state.clTrimInt,
            clEncrypt: this.state.clEncrypt,
            addNotification: this.addNotification,
            enableTree: this.enableTree,
            reload: this.reloadChangelog,
            loading: this.state.clLoading,
            key: this.state.clDir
          });
        }

        repl_page = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "container-fluid"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["NotificationController"], {
          notifications: this.state.notifications,
          removeNotificationAction: this.removeNotification
        }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-container"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-tree"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: disabled,
          id: "repl-tree",
          style: treeViewContainerStyles
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["TreeView"], {
          nodes: nodes,
          highlightOnHover: true,
          highlightOnSelect: true,
          selectNode: this.selectNode
        })))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-tree-content"
        }, repl_element)));
      } else {
        repl_page = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top ds-loading-spinner ds-center"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading Replication Information ..."), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Spinner"], {
          className: "ds-margin-top-lg",
          loading: true,
          size: "md"
        }));
      }

      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, repl_page);
    }
  }]);

  return Replication;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Property types and defaults

Replication.propTypes = {
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.string
};
Replication.defaultProps = {
  serverId: ""
};
/* harmony default export */ __webpack_exports__["default"] = (Replication);

/***/ }),

/***/ "./src/security.jsx":
/*!**************************!*\
  !*** ./src/security.jsx ***!
  \**************************/
/*! exports provided: Security, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Security", function() { return Security; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var react_switch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-switch */ "./node_modules/react-switch/index.js");
/* harmony import */ var react_switch__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_switch__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lib/notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _lib_tools_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./lib/tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _lib_security_certificateManagement_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./lib/security/certificateManagement.jsx */ "./src/lib/security/certificateManagement.jsx");
/* harmony import */ var _lib_security_securityModals_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./lib/security/securityModals.jsx */ "./src/lib/security/securityModals.jsx");
/* harmony import */ var _lib_security_ciphers_jsx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./lib/security/ciphers.jsx */ "./src/lib/security/ciphers.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_11__);
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }













var Security =
/*#__PURE__*/
function (_React$Component) {
  _inherits(Security, _React$Component);

  function Security(props) {
    var _this;

    _classCallCheck(this, Security);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(Security).call(this, props));
    _this.state = {
      loaded: false,
      saving: false,
      notifications: [],
      activeKey: 1,
      errObj: {},
      showConfirmDisable: false,
      showSecurityEnableModal: false,
      primaryCertName: '',
      serverCertNames: [],
      serverCerts: [],
      // Ciphers
      supportedCiphers: [],
      enabledCiphers: [],
      // Config settings
      securityEnabled: false,
      requireSecureBinds: false,
      secureListenhost: false,
      securePort: '636',
      clientAuth: false,
      checkHostname: false,
      validateCert: '',
      sslVersionMin: '',
      sslVersionMax: '',
      allowWeakCipher: false,
      nssslpersonalityssl: '',
      // Original config Settings
      _securityEnabled: false,
      _requireSecureBinds: false,
      _secureListenhost: false,
      _securePort: '636',
      _clientAuth: false,
      _checkHostname: false,
      _validateCert: '',
      _sslVersionMin: '',
      _sslVersionMax: '',
      _allowWeakCipher: false,
      _nssslpersonalityssl: ''
    };
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.addNotification = _this.addNotification.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.removeNotification = _this.removeNotification.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleNavSelect = _this.handleNavSelect.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleSwitchChange = _this.handleSwitchChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.handleTypeaheadChange = _this.handleTypeaheadChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadSecurityConfig = _this.loadSecurityConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadEnabledCiphers = _this.loadEnabledCiphers.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadSupportedCiphers = _this.loadSupportedCiphers.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadCerts = _this.loadCerts.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.loadCACerts = _this.loadCACerts.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeConfirmDisable = _this.closeConfirmDisable.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.enableSecurity = _this.enableSecurity.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.disableSecurity = _this.disableSecurity.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.saveSecurityConfig = _this.saveSecurityConfig.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    _this.closeSecurityEnableModal = _this.closeSecurityEnableModal.bind(_assertThisInitialized(_assertThisInitialized(_this)));
    return _this;
  }

  _createClass(Security, [{
    key: "addNotification",
    value: function addNotification(type, message, timerdelay, persistent) {
      this.setState(function (prevState) {
        return {
          notifications: _toConsumableArray(prevState.notifications).concat([{
            key: prevState.notifications.length + 1,
            type: type,
            persistent: persistent,
            timerdelay: timerdelay,
            message: message
          }])
        };
      });
    }
  }, {
    key: "removeNotification",
    value: function removeNotification(notificationToRemove) {
      this.setState({
        notifications: this.state.notifications.filter(function (notification) {
          return notificationToRemove.key !== notification.key;
        })
      });
    }
  }, {
    key: "componentWillMount",
    value: function componentWillMount() {
      if (!this.state.loaded) {
        this.setState({
          securityEnabled: true
        }, this.setState({
          securityEnabled: false
        }));
        this.loadSecurityConfig();
      }
    }
  }, {
    key: "loadSupportedCiphers",
    value: function loadSupportedCiphers() {
      var _this2 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "ciphers", "list", "--supported"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["log_cmd"])("loadSupportedCiphers", "Load the security configuration", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this2.setState({
          supportedCiphers: config.items
        }, _this2.loadEnabledCiphers);
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this2.addNotification("error", "Error loading security configuration - ".concat(msg));
      });
    }
  }, {
    key: "loadEnabledCiphers",
    value: function loadEnabledCiphers() {
      var _this3 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "ciphers", "list", "--enabled"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["log_cmd"])("loadEnabledCiphers", "Load the security configuration", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this3.setState({
          enabledCiphers: config.items
        }, _this3.loadCerts);
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this3.addNotification("error", "Error loading security configuration - ".concat(msg));
      });
    }
  }, {
    key: "loadCACerts",
    value: function loadCACerts() {
      var _this4 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "ca-certificate", "list"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["log_cmd"])("loadCACerts", "Load certificates", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var certs = JSON.parse(content);

        _this4.setState(function () {
          return {
            CACerts: certs,
            loaded: true
          };
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this4.addNotification("error", "Error loading CA certificates - ".concat(msg));
      });
    }
  }, {
    key: "loadCerts",
    value: function loadCerts() {
      var _this5 = this;

      // Set loaded: true
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "certificate", "list"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["log_cmd"])("loadCerts", "Load certificates", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var certs = JSON.parse(content);
        var certNames = [];
        var _iteratorNormalCompletion = true;
        var _didIteratorError = false;
        var _iteratorError = undefined;

        try {
          for (var _iterator = certs[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
            var cert = _step.value;
            certNames.push(cert.attrs['nickname']);
          }
        } catch (err) {
          _didIteratorError = true;
          _iteratorError = err;
        } finally {
          try {
            if (!_iteratorNormalCompletion && _iterator.return != null) {
              _iterator.return();
            }
          } finally {
            if (_didIteratorError) {
              throw _iteratorError;
            }
          }
        }

        _this5.setState(function () {
          return {
            serverCerts: certs,
            serverCertNames: certNames
          };
        }, _this5.loadCACerts);
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this5.addNotification("error", "Error loading server certificates - ".concat(msg));
      });
    }
  }, {
    key: "loadRSAConfig",
    value: function loadRSAConfig() {
      var _this6 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "rsa", "get"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["log_cmd"])("loadRSAConfig", "Load the RSA configuration", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var nickname = config.items['nssslpersonalityssl'];

        _this6.setState(function () {
          return {
            nssslpersonalityssl: nickname,
            _nssslpersonalityssl: nickname
          };
        }, _this6.loadSupportedCiphers);
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this6.addNotification("error", "Error loading security RSA configuration - ".concat(msg));
      });
    }
  }, {
    key: "loadSecurityConfig",
    value: function loadSecurityConfig(saving) {
      var _this7 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "get"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["log_cmd"])("loadSecurityConfig", "Load the security configuration", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var attrs = config.items;
        var secEnabled = false;
        var secReqSecBinds = false;
        var clientAuth = "allowed";
        var validateCert = "warn";
        var cipherPref = "default";
        var allowWeak = false;

        if ('nsslapd-security' in attrs) {
          if (attrs['nsslapd-security'].toLowerCase() == "on") {
            secEnabled = true;
          }
        }

        if ('nsslapd-require-secure-binds' in attrs) {
          if (attrs['nsslapd-require-secure-binds'].toLowerCase() == "on") {
            secReqSecBinds = true;
          }
        }

        if ('nssslclientauth' in attrs) {
          if (attrs['nssslclientauth'] != "") {
            clientAuth = attrs['nssslclientauth'];
          }
        }

        if ('nsslapd-validate-cert' in attrs) {
          if (attrs['nsslapd-validate-cert'] != "") {
            validateCert = attrs['nsslapd-validate-cert'].toLowerCase();
          }
        }

        if ('allowweakcipher' in attrs) {
          if (attrs['allowweakcipher'].toLowerCase() == "on") {
            allowWeak = true;
          }
        }

        if ('nsssl3ciphers' in attrs) {
          if (attrs['nsssl3ciphers'] != "") {
            cipherPref = attrs['nsssl3ciphers'];
          }
        }

        _this7.setState(function () {
          return {
            securityEnabled: secEnabled,
            requireSecureBinds: secReqSecBinds,
            secureListenhost: attrs['nsslapd-securelistenhost'],
            securePort: attrs['nsslapd-secureport'],
            clientAuth: clientAuth,
            checkHostname: attrs['nsslapd-ssl-check-hostname'],
            validateCert: validateCert,
            sslVersionMin: attrs['sslversionmin'],
            sslVersionMax: attrs['sslversionmax'],
            allowWeakCipher: allowWeak,
            cipherPref: cipherPref,
            _securityEnabled: secEnabled,
            _requireSecureBinds: secReqSecBinds,
            _secureListenhost: attrs['nsslapd-securelistenhost'],
            _securePort: attrs['nsslapd-secureport'],
            _clientAuth: clientAuth,
            _checkHostname: attrs['nsslapd-ssl-check-hostname'],
            _validateCert: validateCert,
            _sslVersionMin: attrs['sslversionmin'],
            _sslVersionMax: attrs['sslversionmax'],
            _allowWeakCipher: allowWeak
          };
        }, function () {
          if (!saving) {
            this.loadRSAConfig();
          }
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this7.addNotification("error", "Error loading security configuration - ".concat(msg));
      });
    }
  }, {
    key: "handleNavSelect",
    value: function handleNavSelect(key) {
      this.setState({
        activeKey: key
      });
    }
  }, {
    key: "handleSwitchChange",
    value: function handleSwitchChange(value) {
      if (!value) {
        // We are disabling security, ask for confirmation
        this.setState({
          showConfirmDisable: true
        });
      } else {
        // Check if we have certs, if we do make the user choose one from dropdown list, otherwise reject the
        // enablement
        if (this.state.serverCerts.length > 0) {
          this.setState({
            primaryCertName: this.state.nssslpersonalityssl,
            showSecurityEnableModal: true
          });
        } else {
          this.addNotification("error", "There must be at least one server certificate present in the security database to enable security");
        }
      }
    }
  }, {
    key: "closeSecurityEnableModal",
    value: function closeSecurityEnableModal() {
      this.setState({
        showSecurityEnableModal: false
      });
    }
  }, {
    key: "handleSecEnableChange",
    value: function handleSecEnableChange(e) {
      var value = e.target.value.trim();
      this.setState({
        primaryCertName: value
      });
    }
  }, {
    key: "closeConfirmDisable",
    value: function closeConfirmDisable() {
      this.setState({
        showConfirmDisable: false
      });
    }
  }, {
    key: "enableSecurity",
    value: function enableSecurity() {
      var _this8 = this;

      /* start the spinner */
      this.setState({
        secEnableSpinner: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "enable"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["log_cmd"])("enableSecurity", "Enable security", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function () {
        _this8.addNotification("success", "Successfully enabled security.  You must restart the server for this to take effect.");

        _this8.setState({
          securityEnabled: true,
          secEnableSpinner: false,
          showSecurityEnableModal: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this8.addNotification("error", "Error enabling security - ".concat(msg));

        _this8.setState({
          secEnableSpinner: false,
          showSecurityEnableModal: false
        });
      });
    }
  }, {
    key: "disableSecurity",
    value: function disableSecurity() {
      var _this9 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "disable"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["log_cmd"])("disableSecurity", "Disable security", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function () {
        _this9.addNotification("success", "Successfully disabled security.  You must restart the server for this to take effect.");

        _this9.setState({
          securityEnabled: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this9.addNotification("error", "Error disabling security - ".concat(msg));
      });
    }
  }, {
    key: "saveSecurityConfig",
    value: function saveSecurityConfig() {
      var _this10 = this;

      // Validate some setting first
      var sslMin = this.state._sslVersionMin;
      var sslMax = this.state._sslVersionMax;

      if (this.state._sslVersionMin != this.state.sslVersionMin) {
        sslMin = this.state.sslVersionMin;
      }

      if (this.state._sslVersionMax != this.state.sslVersionMax) {
        sslMax = this.state.sslVersionMax;
      }

      if (sslMin > sslMax) {
        this.addNotification("error", "The TLS minimum version but be less than or equal to the TLS maximum version"); // Reset page

        this.loadSecurityConfig();
        return;
      }

      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'security', 'set'];

      if (this.state._validateCert != this.state.validateCert) {
        cmd.push("--verify-cert-chain-on-startup=" + this.state.validateCert);
      }

      if (this.state._sslVersionMin != this.state.sslVersionMin) {
        cmd.push("--tls-protocol-min=" + this.state.sslVersionMin);
      }

      if (this.state._sslVersionMax != this.state.sslVersionMax) {
        cmd.push("--tls-protocol-max=" + this.state.sslVersionMax);
      }

      if (this.state._clientAuth != this.state.clientAuth) {
        cmd.push("--tls-client-auth=" + this.state.clientAuth);
      }

      if (this.state._securePort != this.state.securePort) {
        if (!Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["valid_port"])(this.state.securePort)) {
          this.addNotification("error", "The Secure Port is invalid, it must be a number between 1 and 65535"); // Reset page

          this.loadSecurityConfig();
          return;
        }

        cmd.push("--secure-port=" + this.state.securePort);
      }

      if (this.state._secureListenhost != this.state.secureListenhost) {
        cmd.push("--listen-host=" + this.state.secureListenhost);
      }

      if (this.state._allowWeakCipher != this.state.allowWeakCipher) {
        var val = "off";

        if (this.state.allowWeakCipher) {
          val = "on";
        }

        cmd.push("--allow-insecure-ciphers=" + val);
      }

      if (this.state._checkHostname != this.state.checkHostname) {
        var _val = "off";

        if (this.state.checkHostname) {
          _val = "on";
        }

        cmd.push("--check-hostname=" + _val);
      }

      if (this.state._requireSecureBinds != this.state.requireSecureBinds) {
        var _val2 = "off";

        if (this.state.requireSecureBinds) {
          _val2 = "on";
        }

        cmd.push("--require-secure-authentication=" + _val2);
      }

      if (cmd.length > 5) {
        Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["log_cmd"])("saveSecurityConfig", "Applying security config change", cmd);
        var msg = "Successfully updated security configuration.  You must restart the Directory Server for these changes to take effect.";
        this.setState({
          // Start the spinner
          saving: true
        });
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          "err": "message"
        }).done(function (content) {
          _this10.loadSecurityConfig(1);

          _this10.addNotification("success", msg);

          _this10.setState({
            saving: false
          });
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this10.loadSecurityConfig();

          _this10.setState({
            saving: false
          });

          var msg = errMsg.desc;

          if ('info' in errMsg) {
            msg = errMsg.desc + " - " + errMsg.info;
          }

          _this10.addNotification("error", "Error updating security configuration - ".concat(msg));
        });
      }
    }
  }, {
    key: "handleTypeaheadChange",
    value: function handleTypeaheadChange(value) {
      if (value.length == 0) {
        return;
      }

      this.setState({
        nssslpersonalityssl: value[0]
      });
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      this.setState(_defineProperty({}, e.target.id, value));
    }
  }, {
    key: "handleLoginModal",
    value: function handleLoginModal(e) {
      var _this$setState2;

      var value = e.target.value.trim();
      var valueErr = false;
      var errObj = this.state.errObj;

      if (value == "") {
        valueErr = true;
      }

      errObj[e.target.id] = valueErr;
      this.setState((_this$setState2 = {}, _defineProperty(_this$setState2, e.target.id, value), _defineProperty(_this$setState2, "errObj", errObj), _this$setState2));
    }
  }, {
    key: "render",
    value: function render() {
      var _this11 = this;

      var securityPage = "";
      var serverCert = [this.state.nssslpersonalityssl];

      if (this.state.loaded && !this.state.saving) {
        var configPage = "";

        if (this.state.securityEnabled) {
          configPage = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Row"], {
            className: "ds-margin-top",
            title: "The server's secure port number (nsslapd-secureport)."
          }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
            componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_9__["ControlLabel"],
            sm: 3
          }, "Server Secure Port"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
            sm: 4
          }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
            id: "securePort",
            className: "ds-input-auto",
            onChange: this.handleChange,
            type: "text",
            value: this.state.securePort
          }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Row"], {
            className: "ds-margin-top",
            title: "This parameter can be used to restrict the Directory Server instance to a single IP interface (hostname, or IP address).  This parameter specifically sets what interface to use for TLS traffic.  Requires restart. (nsslapd-securelistenhost)."
          }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
            componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_9__["ControlLabel"],
            sm: 3
          }, "Secure Listen Host"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
            sm: 4
          }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
            id: "secureListenhost",
            className: "ds-input-auto",
            type: "text",
            onChange: this.handleChange,
            value: this.state.secureListenhost
          }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Row"], {
            className: "ds-margin-top",
            title: "The name, or nickname, of the server certificate inthe NSS datgabase the server should use (nsSSLPersonalitySSL)."
          }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
            sm: 3
          }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["ControlLabel"], null, "Server Certificate Name")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
            sm: 4
          }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_5__["Typeahead"], {
            id: "serverCertNameTypeahead",
            onChange: this.handleTypeaheadChange,
            selected: serverCert,
            emptyLabel: "No matching certificates found",
            options: this.state.serverCertNames,
            newSelectionPrefix: "Select a server certificate",
            placeholder: "Type a sever certificate nickname..."
          }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Row"], {
            className: "ds-margin-top",
            title: "The minimum SSL/TLS version the server will accept (sslversionmin)."
          }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
            componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_9__["ControlLabel"],
            sm: 3
          }, "Minimum TLS Version"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
            sm: 4
          }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
            id: "sslVersionMin",
            className: "btn btn-default dropdown ds-select",
            onChange: this.handleChange,
            value: this.state.sslVersionMin
          }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "TLS1.3"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "TLS1.2"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "TLS1.1"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "TLS1.0"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "SSL3")))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Row"], {
            className: "ds-margin-top",
            title: "The maximum SSL/TLS version the server will accept (sslversionmax)."
          }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
            componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_9__["ControlLabel"],
            sm: 3
          }, "Maximum TLS Version"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
            sm: 4
          }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
            id: "sslVersionMax",
            className: "btn btn-default dropdown ds-select",
            onChange: this.handleChange,
            value: this.state.sslVersionMax
          }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "TLS1.3"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "TLS1.2"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "TLS1.1"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "TLS1.0"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "SSL3")))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Row"], {
            className: "ds-margin-top",
            title: "Sets how the Directory Server enforces TLS client authentication (nsSSLClientAuth)."
          }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
            componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_9__["ControlLabel"],
            sm: 3
          }, "Client Authentication"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
            sm: 4
          }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
            id: "clientAuth",
            className: "btn btn-default dropdown ds-select",
            onChange: this.handleChange,
            value: this.state.clientAuth
          }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "off"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "allowed"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "required")))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Row"], {
            className: "ds-margin-top",
            title: "Validate server's certificate expiration date (nsslapd-validate-cert)."
          }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
            componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_9__["ControlLabel"],
            sm: 3
          }, "Validate Certificate"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
            sm: 4
          }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
            id: "validateCert",
            className: "btn btn-default dropdown ds-select",
            onChange: this.handleChange,
            value: this.state.validateCert
          }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "warn"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "on"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "off")))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
            sm: 5
          }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Checkbox"], {
            id: "requireSecureBinds",
            defaultChecked: this.state.requireSecureBinds,
            onChange: this.handleChange,
            title: "Require all connections use TLS (nsslapd-require-secure-binds)."
          }, "Require Secure Connections"))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
            sm: 5
          }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Checkbox"], {
            id: "checkHostname",
            defaultChecked: this.state.checkHostname,
            onChange: this.handleChange,
            title: "Verify authenticity of a request by matching the host name against the value assigned to the common name (cn) attribute of the subject name (subjectDN field) in the certificate being presented. (nsslapd-ssl-check-hostname)."
          }, "Verify Certificate Subject Hostname"))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
            sm: 5
          }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Checkbox"], {
            id: "allowWeakCipher",
            defaultChecked: this.state.allowWeakCipher,
            onChange: this.handleChange,
            title: "Allow weak ciphers (allowWeakCipher)."
          }, "Allow Weak Ciphers"))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Button"], {
            bsStyle: "primary",
            className: "ds-margin-top-med",
            onClick: function onClick() {
              _this11.saveSecurityConfig();
            }
          }, "Save Configuration"));
        }

        securityPage = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "container-fluid"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_3__["NotificationController"], {
          notifications: this.state.notifications,
          removeNotificationAction: this.removeNotification
        }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-tab-table"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["TabContainer"], {
          id: "basic-tabs-pf",
          onSelect: this.handleNavSelect,
          activeKey: this.state.activeKey
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Nav"], {
          bsClass: "nav nav-tabs nav-tabs-pf"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["NavItem"], {
          eventKey: 1
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          dangerouslySetInnerHTML: {
            __html: 'Security Configuration'
          }
        })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["NavItem"], {
          eventKey: 2
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          dangerouslySetInnerHTML: {
            __html: 'Certificate Management'
          }
        })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["NavItem"], {
          eventKey: 3
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          dangerouslySetInnerHTML: {
            __html: 'Cipher Preferences'
          }
        }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["TabContent"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["TabPane"], {
          eventKey: 1
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top-xlg ds-indent"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Row"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_9__["ControlLabel"],
          sm: 2
        }, "Security Enabled"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
          sm: 1
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_switch__WEBPACK_IMPORTED_MODULE_2___default.a, {
          className: "ds-switch",
          onChange: this.handleSwitchChange,
          checked: this.state.securityEnabled,
          height: 20
        })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Icon"], {
          className: "ds-left-margin ds-refresh",
          type: "fa",
          name: "refresh",
          title: "Refresh security settings",
          onClick: this.loadSecurityConfig
        }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), configPage)), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["TabPane"], {
          eventKey: 2
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top-lg"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_security_certificateManagement_jsx__WEBPACK_IMPORTED_MODULE_6__["CertificateManagement"], {
          serverId: this.props.serverId,
          CACerts: this.state.CACerts,
          ServerCerts: this.state.serverCerts,
          addNotification: this.addNotification
        }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["TabPane"], {
          eventKey: 3
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-indent ds-tab-table"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_security_ciphers_jsx__WEBPACK_IMPORTED_MODULE_8__["Ciphers"], {
          serverId: this.props.serverId,
          supportedCiphers: this.state.supportedCiphers,
          cipherPref: this.state.cipherPref,
          enabledCiphers: this.state.enabledCiphers,
          addNotification: this.addNotification
        }))))))));
      } else if (this.state.saving) {
        securityPage = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-loading-spinner ds-center"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Saving security information ..."), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Spinner"], {
          loading: true,
          size: "md"
        }));
      } else {
        securityPage = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-loading-spinner ds-center"
        }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading security information ..."), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Spinner"], {
          loading: true,
          size: "md"
        }));
      }

      return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, securityPage, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_3__["ConfirmPopup"], {
        showModal: this.state.showConfirmDisable,
        closeHandler: this.closeConfirmDisable,
        actionFunc: this.disableSecurity,
        msg: "Are you sure you want to disable security?",
        msgContent: "Attention: this requires the server to be restarted to take effect."
      }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_security_securityModals_jsx__WEBPACK_IMPORTED_MODULE_7__["SecurityEnableModal"], {
        showModal: this.state.showSecurityEnableModal,
        closeHandler: this.closeSecurityEnableModal,
        handleChange: this.handleSecEnableChange,
        saveHandler: this.enableSecurity,
        primaryName: this.state.primaryCertName,
        certs: this.state.serverCerts,
        spinning: this.state.secEnableSpinner
      }));
    }
  }]);

  return Security;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Props and defaultProps

Security.propTypes = {
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.string
};
Security.defaultProps = {
  serverId: ""
};
/* harmony default export */ __webpack_exports__["default"] = (Security);

/***/ }),

/***/ 0:
/*!*******************************!*\
  !*** multi ./src/./index.es6 ***!
  \*******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! /home/mareynol/source/ds389/389-ds-base/src/cockpit/389-console/src/./index.es6 */"./src/index.es6");


/***/ }),

/***/ "cockpit":
/*!**************************!*\
  !*** external "cockpit" ***!
  \**************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = cockpit;

/***/ })

/******/ });
//# sourceMappingURL=index.js.map